1 line
1.7 MiB
1 line
1.7 MiB
var e;!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.OptimalSelect=t():e.OptimalSelect=t()}(this,function(){return function(r){var i={};function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=r,n.c=i,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertNodeList=function(e){for(var t=e.length,r=new Array(t),i=0;i<t;i++)r[i]=e[i];return r},t.escapeValue=function(e){return e&&e.replace(/['"`\\/:\?&!#$%^()[\]{|}*+;,.<=>@~]/g,"\\$&").replace(/\n/g,"A")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCommonAncestor=function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).root,i=void 0===t?document:t,n=[];e.forEach(function(e,t){for(var r=[];e!==i;)e=e.parentNode,r.unshift(e);n[t]=r}),n.sort(function(e,t){return e.length-t.length});for(var r=n.shift(),a=null,o=function(){var t=r[s],e=n.some(function(e){return!e.some(function(e){return e===t})});if(e)return"break";a=t},s=0,u=r.length;s<u;s++){var l=o();if("break"===l)break}return a},t.getCommonProperties=function(e){var c={classes:[],attributes:{},tag:null};return e.forEach(function(e){var n,i,t,r,a=c.classes,o=c.attributes,s=c.tag;if(void 0!==a){var u=e.getAttribute("class");u?(u=u.trim().split(" "),a.length?(a=a.filter(function(t){return u.some(function(e){return e===t})})).length?c.classes=a:delete c.classes:c.classes=u):delete c.classes}if(void 0!==o&&(n=e.attributes,i=Object.keys(n).reduce(function(e,t){var r=n[t],i=r.name;return r&&"class"!==i&&(e[i]=r.value),e},{}),t=Object.keys(i),r=Object.keys(o),t.length?r.length?(o=r.reduce(function(e,t){var r=o[t];return r===i[t]&&(e[t]=r),e},{}),Object.keys(o).length?c.attributes=o:delete c.attributes):c.attributes=i:delete c.attributes),void 0!==s){var l=e.tagName.toLowerCase();s?l!==s&&delete c.tag:c.tag=l}}),c}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=t.length?(0,h.convertNodeList)(t):[t]);if(!t.length||t.some(function(e){return 1!==e.nodeType}))throw new Error('Invalid input - to compare HTMLElements its necessary to provide a reference of the selected node(s)! (missing "elements")');(0,c.default)(t[0],r);var i=e.replace(/> /g,">").split(/\s+(?=(?:(?:[^"]*"){2})*[^"]*$)/);if(i.length<2)return f("",e,"",t);var n=[i.pop()];for(;1<i.length;){var a=i.pop(),o=i.join(" "),s=n.join(" "),u=o+" "+s,l=document.querySelectorAll(u);l.length!==t.length&&n.unshift(f(o,a,s,t))}n.unshift(i[0]),(i=n)[0]=f("",i[0],i.slice(1).join(" "),t),i[i.length-1]=f(i.slice(0,-1).join(" "),i[i.length-1],"",t);return i.join(" ").replace(/>/g,"> ").trim()};var i,n=r(3),c=(i=n)&&i.__esModule?i:{default:i},h=r(0);function f(r,i,n,a){if(r.length&&(r+=" "),n.length&&(n=" "+n),/\[*\]/.test(i)){var e=i.replace(/=.*$/,"]"),o=""+r+e+n;if(g(document.querySelectorAll(o),a))i=e;else for(var s=document.querySelectorAll(""+r+e),t=function(){var t=s[u];if(a.some(function(e){return t.contains(e)})){var e=t.tagName.toLowerCase();return o=""+r+e+n,g(document.querySelectorAll(o),a)&&(i=e),"break"}},u=0,l=s.length;u<l;u++){if("break"===t())break}}if(/>/.test(i)){var c=i.replace(/>/,"");o=""+r+c+n;g(document.querySelectorAll(o),a)&&(i=c)}if(/:nth-child/.test(i)){var h=i.replace(/nth-child/g,"nth-of-type");o=""+r+h+n;g(document.querySelectorAll(o),a)&&(i=h)}if(/\.\S+\.\S+/.test(i)){for(var f=i.trim().split(".").slice(1).map(function(e){return"."+e}).sort(function(e,t){return e.length-t.length});f.length;){var d=i.replace(f.shift(),"").trim();if(!(o=(""+r+d+n).trim()).length||">"===o.charAt(0)||">"===o.charAt(o.length-1))break;g(document.querySelectorAll(o),a)&&(i=d)}if((f=i&&i.match(/\./g))&&2<f.length){var p=document.querySelectorAll(""+r+i),m=function(){var t=p[u];if(a.some(function(e){return t.contains(e)})){var e=t.tagName.toLowerCase();return o=""+r+e+n,g(document.querySelectorAll(o),a)&&(i=e),"break"}};for(u=0,l=p.length;u<l;u++){if("break"===m())break}}}return i}function g(r,e){var i=r.length;return i===e.length&&e.every(function(e){for(var t=0;t<i;t++)if(r[t]===e)return!0;return!1})}e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],i=!0,n=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function m(e,r){e.forEach(function(e){var t=!0;r(e,function(){return t=!1}),e.childTags&&t&&m(e.childTags,r)})}function g(e,t,r){for(;e.parent;){if(r(e=e.parent))return e;if(e===t)break}return null}t.default=function(e,t){return!1;var r=Object.getPrototypeOf(!0);Object.getOwnPropertyDescriptor(r,"childTags")||Object.defineProperty(r,"childTags",{enumerable:!0,get:function(){return this.children.filter(function(e){return"tag"===e.type||"script"===e.type||"style"===e.type})}});Object.getOwnPropertyDescriptor(r,"attributes")||Object.defineProperty(r,"attributes",{enumerable:!0,get:function(){var i=this.attribs,e=Object.keys(i),t=e.reduce(function(e,t,r){return e[r]={name:t,value:i[t]},e},{});return Object.defineProperty(t,"length",{enumerable:!1,configurable:!1,value:e.length}),t}});r.getAttribute||(r.getAttribute=function(e){return this.attribs[e]||null});r.getElementsByTagName||(r.getElementsByTagName=function(t){var r=[];return m(this.childTags,function(e){e.name!==t&&"*"!==t||r.push(e)}),r});r.getElementsByClassName||(r.getElementsByClassName=function(e){var r=e.trim().replace(/\s+/g," ").split(" "),i=[];return m([this],function(e){var t=e.attribs.class;t&&r.every(function(e){return-1<t.indexOf(e)})&&i.push(e)}),i});r.querySelectorAll||(r.querySelectorAll=function(e){var r=this,i=function(e){return e.split(" ").reverse().map(function(e,t){var o=0===t,r=e.split(":"),i=p(r,2),s=i[0],n=i[1],u=null,l=null;if(function(){switch(!0){case/>/.test(s):l=function(t){return function(e){return e(t.parent)&&t.parent}};break;case/^\./.test(s):var r=s.substr(1).split(".");u=function(e){var t=e.attribs.class;return t&&r.every(function(e){return-1<t.indexOf(e)})},l=function(e,t){return o?e.getElementsByClassName(r.join(" ")):"function"==typeof e?e(u):g(e,t,u)};break;case/^\[/.test(s):var e=s.replace(/\[|\]|"/g,"").split("="),t=p(e,2),i=t[0],n=t[1];u=function(e){var t=-1<Object.keys(e.attribs).indexOf(i);return t&&(!n||e.attribs[i]===n)},l=function(e,t){if(o){var r=function(){var t=[];return m([e],function(e){u(e)&&t.push(e)}),{v:t}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)};break;case/^#/.test(s):var a=s.substr(1);u=function(e){return e.attribs.id===a},l=function(e,t){if(o){var r=function(){var r=[];return m([e],function(e,t){u(e)&&(r.push(e),t())}),{v:r}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)};break;case/\*/.test(s):u=function(e){return!0},l=function(e,t){if(o){var r=function(){var t=[];return m([e],function(e){return t.push(e)}),{v:t}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)};break;default:u=function(e){return e.name===s},l=function(e,t){if(o){var r=function(){var t=[];return m([e],function(e){u(e)&&t.push(e)}),{v:t}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)}}}(),!n)return l;var a=n.match(/-(child|type)\((\d+)\)$/),c=a[1],h=parseInt(a[2],10)-1,f=function(t){if(t){var e=t.parent.childTags;"type"===c&&(e=e.filter(u));var r=e.findIndex(function(e){return e===t});if(r===h)return!0}return!1};return function(e){var t=l(e);return o?t.reduce(function(e,t){return f(t)&&e.push(t),e},[]):f(t)&&t}})}(e=e.replace(/(>)(\S)/g,"$1 $2").trim()),t=i.shift(),n=i.length;return t(this).filter(function(e){for(var t=0;t<n;){if(!(e=i[t](e,r)))return!1;t+=1}return!0})});r.contains||(r.contains=function(r){var i=!1;return m([this],function(e,t){e===r&&(i=!0,t())}),i});return!0},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.getSingleSelector=c,t.getMultiSelector=h,t.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return!e.length||e.name?c(e,t):h(e,t)};var o=a(r(3)),n=a(r(5)),s=a(r(2)),u=r(0),l=r(1);function a(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(3===e.nodeType&&(e=e.parentNode),1!==e.nodeType)throw new Error('Invalid input - only HTMLElements or representations of them are supported! (not "'+(void 0===e?"undefined":i(e))+'")');(0,o.default)(e,t);var r=(0,n.default)(e,t);return(0,s.default)(r,e,t)}function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(e)||(e=(0,u.convertNodeList)(e)),e.some(function(e){return 1!==e.nodeType}))throw new Error("Invalid input - only an Array of HTMLElements or representations of them is supported!");(0,o.default)(e[0],t);var r=c((0,l.getCommonAncestor)(e,t),t),i=function(e){var t=(0,l.getCommonProperties)(e),r=t.classes,i=t.attributes,n=t.tag,a=[];n&&a.push(n);if(r){var o=r.map(function(e){return"."+e}).join("");a.push(o)}if(i){var s=Object.keys(i).reduce(function(e,t){return e.push("["+t+'="'+i[t]+'"]'),e},[]).join("");a.push(s)}a.length;return[a.join("")]}(e)[0],n=(0,s.default)(r+" "+i,e,t),a=(0,u.convertNodeList)(document.querySelectorAll(n));return e.every(function(t){return a.some(function(e){return e===t})})?n:console.warn("\n The selected elements can't be efficiently mapped.\n Its probably best to use multiple single selectors instead!\n ",e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=t.root,i=void 0===r?document:r,n=t.skip,a=void 0===n?null:n,o=t.priority,s=void 0===o?["id","class","href","src"]:o,u=t.ignore,l=void 0===u?{}:u,c=[],h=e,f=c.length,d=!1,p=a&&(Array.isArray(a)?a:[a]).map(function(t){return"function"!=typeof t?function(e){return e===t}:t}),m=function(t){return a&&p.some(function(e){return e(t)})};Object.keys(l).forEach(function(e){"class"===e&&(d=!0);var r=l[e];"function"!=typeof r&&("number"==typeof r&&(r=r.toString()),"string"==typeof r&&(r=new RegExp((0,v.escapeValue)(r).replace(/\\/g,"\\\\"))),"boolean"==typeof r&&(r=r?/(?:)/:/.^/),l[e]=function(e,t){return r.test(t)})}),d&&function(){var i=l.attribute;l.attribute=function(e,t,r){return l.class(t)||i&&i(e,t,r)}}();for(;h!==i;){if(!0!==m(h)){if(b(s,h,l,c,i))break;if(y(h,l,c,i))break;b(s,h,l,c),c.length===f&&y(h,l,c),c.length===f&&_(s,h,l,c)}h=h.parentNode,f=c.length}if(h===i){var g=w(s,h,l);c.unshift(g)}return c.join(" ")};var v=r(0),f={attribute:function(e){return-1<["style","data-reactid","data-react-checksum"].indexOf(e)}};function b(e,t,r,i){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:t.parentNode,a=o(e,t,r);if(a&&1===n.querySelectorAll(a).length)return i.unshift(a),!0;return!1}function o(n,e,t){for(var a=e.attributes,r=Object.keys(a).sort(function(e,t){var r=n.indexOf(a[e].name),i=n.indexOf(a[t].name);return-1===i?-1===r?0:-1:r-i}),i=0,o=r.length;i<o;i++){var s=r[i],u=a[s],l=u.name,c=(0,v.escapeValue)(u.value);if(!d(t[l]||t.attribute,l,c,f[l]||f.attribute)){var h="["+l+'="'+c+'"]';if(!1===/\b\d/.test(c))if("id"===l&&(h="#"+c),"class"===l)h="."+c.trim().replace(/\s+/g,".");return h}}return null}function y(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.parentNode,n=a(e,t);if(n&&1===i.getElementsByTagName(n).length)return r.unshift(n),!0;return!1}function a(e,t){var r=e.tagName.toLowerCase();return d(t.tag,null,r)?null:r}function _(e,t,r,i){for(var n=t.parentNode,a=n.childTags||n.children,o=0,s=a.length;o<s;o++){var u=a[o];if(u===t){var l=w(e,u,r);if(!l)return console.warn("\n Element couldn't be matched through strict ignore pattern!\n ",u,r,l);var c="> "+l+":nth-child("+(o+1)+")";return i.unshift(c),!0}}return!1}function w(e,t,r){var i=o(e,t,r);return i||(i=a(t,r)),i}function d(e,t,r,i){if(!r)return!0;var n=e||i;return!!n&&n(t,r,i)}e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.common=t.optimize=t.getMultiSelector=t.getSingleSelector=t.select=void 0;var i=r(4);Object.defineProperty(t,"getSingleSelector",{enumerable:!0,get:function(){return i.getSingleSelector}}),Object.defineProperty(t,"getMultiSelector",{enumerable:!0,get:function(){return i.getMultiSelector}});var n=s(i),a=s(r(2)),o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(r(1));function s(e){return e&&e.__esModule?e:{default:e}}t.select=n.default,t.optimize=a.default,t.common=o,t.default=n.default}])}),function(a,n,e,h){"use strict";var o,s=["","webkit","Moz","MS","ms","o"],t=n.createElement("div"),r="function",u=Math.round,f=Math.abs,d=Date.now;function l(e,t,r){return setTimeout(b(e,r),t)}function i(e,t,r){return!!Array.isArray(e)&&(c(e,r[t],r),!0)}function c(e,t,r){var i;if(e)if(e.forEach)e.forEach(t,r);else if(e.length!==h)for(i=0;i<e.length;)t.call(r,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function p(i,e,t){var n="DEPRECATED METHOD: "+e+"\n"+t+" AT \n";return function(){var e=new Error("get-stack-trace"),t=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=a.console&&(a.console.warn||a.console.log);return r&&r.call(a.console,n,t),i.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===h||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(i!==h&&null!==i)for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}return t}:Object.assign;var m=p(function(e,t,r){for(var i=Object.keys(t),n=0;n<i.length;)(!r||r&&e[i[n]]===h)&&(e[i[n]]=t[i[n]]),n++;return e},"extend","Use `assign`."),g=p(function(e,t){return m(e,t,!0)},"merge","Use `assign`.");function v(e,t,r){var i,n=t.prototype;(i=e.prototype=Object.create(n)).constructor=e,i._super=n,r&&o(i,r)}function b(e,t){return function(){return e.apply(t,arguments)}}function y(e,t){return typeof e==r?e.apply(t&&t[0]||h,t):e}function _(e,t){return e===h?t:e}function w(t,e,r){c(S(e),function(e){t.addEventListener(e,r,!1)})}function x(t,e,r){c(S(e),function(e){t.removeEventListener(e,r,!1)})}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return-1<e.indexOf(t)}function S(e){return e.trim().split(/\s+/g)}function E(e,t,r){if(e.indexOf&&!r)return e.indexOf(t);for(var i=0;i<e.length;){if(r&&e[i][r]==t||!r&&e[i]===t)return i;i++}return-1}function M(e){return Array.prototype.slice.call(e,0)}function P(e,r,t){for(var i=[],n=[],a=0;a<e.length;){var o=r?e[a][r]:e[a];E(n,o)<0&&i.push(e[a]),n[a]=o,a++}return t&&(i=r?i.sort(function(e,t){return e[r]>t[r]}):i.sort()),i}function C(e,t){for(var r,i,n=t[0].toUpperCase()+t.slice(1),a=0;a<s.length;){if((i=(r=s[a])?r+n:t)in e)return i;a++}return h}var A=1;function O(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||a}var I="ontouchstart"in a,R=C(a,"PointerEvent")!==h,D=I&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",L="mouse",z=25,F=1,B=4,N=8,U=1,X=2,q=4,H=8,W=16,G=X|q,V=H|W,Y=G|V,J=["x","y"],K=["clientX","clientY"];function Z(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){y(t.options.enable,[t])&&r.handler(e)},this.init()}function Q(e,t,r){var i=r.pointers.length,n=r.changedPointers.length,a=t&F&&i-n==0,o=t&(B|N)&&i-n==0;r.isFirst=!!a,r.isFinal=!!o,a&&(e.session={}),r.eventType=t,function(e,t){var r=e.session,i=t.pointers,n=i.length;r.firstInput||(r.firstInput=$(t));1<n&&!r.firstMultiple?r.firstMultiple=$(t):1===n&&(r.firstMultiple=!1);var a=r.firstInput,o=r.firstMultiple,s=o?o.center:a.center,u=t.center=ee(i);t.timeStamp=d(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=ne(s,u),t.distance=ie(s,u),function(e,t){var r=t.center,i=e.offsetDelta||{},n=e.prevDelta||{},a=e.prevInput||{};t.eventType!==F&&a.eventType!==B||(n=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},i=e.offsetDelta={x:r.x,y:r.y});t.deltaX=n.x+(r.x-i.x),t.deltaY=n.y+(r.y-i.y)}(r,t),t.offsetDirection=re(t.deltaX,t.deltaY);var l=te(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=f(l.x)>f(l.y)?l.x:l.y,t.scale=o?function(e,t){return ie(t[0],t[1],K)/ie(e[0],e[1],K)}(o.pointers,i):1,t.rotation=o?function(e,t){return ne(t[1],t[0],K)+ne(e[1],e[0],K)}(o.pointers,i):0,t.maxPointers=r.prevInput?t.pointers.length>r.prevInput.maxPointers?t.pointers.length:r.prevInput.maxPointers:t.pointers.length,function(e,t){var r,i,n,a,o=e.lastInterval||t,s=t.timeStamp-o.timeStamp;if(t.eventType!=N&&(z<s||o.velocity===h)){var u=t.deltaX-o.deltaX,l=t.deltaY-o.deltaY,c=te(s,u,l);i=c.x,n=c.y,r=f(c.x)>f(c.y)?c.x:c.y,a=re(u,l),e.lastInterval=t}else r=o.velocity,i=o.velocityX,n=o.velocityY,a=o.direction;t.velocity=r,t.velocityX=i,t.velocityY=n,t.direction=a}(r,t);var c=e.element;k(t.srcEvent.target,c)&&(c=t.srcEvent.target);t.target=c}(e,r),e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function $(e){for(var t=[],r=0;r<e.pointers.length;)t[r]={clientX:u(e.pointers[r].clientX),clientY:u(e.pointers[r].clientY)},r++;return{timeStamp:d(),pointers:t,center:ee(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ee(e){var t=e.length;if(1===t)return{x:u(e[0].clientX),y:u(e[0].clientY)};for(var r=0,i=0,n=0;n<t;)r+=e[n].clientX,i+=e[n].clientY,n++;return{x:u(r/t),y:u(i/t)}}function te(e,t,r){return{x:t/e||0,y:r/e||0}}function re(e,t){return e===t?U:f(e)>=f(t)?e<0?X:q:t<0?H:W}function ie(e,t,r){r||(r=J);var i=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return Math.sqrt(i*i+n*n)}function ne(e,t,r){r||(r=J);var i=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return 180*Math.atan2(n,i)/Math.PI}Z.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(O(this.element),this.evWin,this.domHandler)}};var ae={mousedown:F,mousemove:2,mouseup:B},oe="mousedown",se="mousemove mouseup";function ue(){this.evEl=oe,this.evWin=se,this.pressed=!1,Z.apply(this,arguments)}v(ue,Z,{handler:function(e){var t=ae[e.type];t&F&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=B),this.pressed&&(t&B&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:L,srcEvent:e}))}});var le={pointerdown:F,pointermove:2,pointerup:B,pointercancel:N,pointerout:N},ce={2:j,3:"pen",4:L,5:"kinect"},he="pointerdown",fe="pointermove pointerup pointercancel";function de(){this.evEl=he,this.evWin=fe,Z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}a.MSPointerEvent&&!a.PointerEvent&&(he="MSPointerDown",fe="MSPointerMove MSPointerUp MSPointerCancel"),v(de,Z,{handler:function(e){var t=this.store,r=!1,i=e.type.toLowerCase().replace("ms",""),n=le[i],a=ce[e.pointerType]||e.pointerType,o=a==j,s=E(t,e.pointerId,"pointerId");n&F&&(0===e.button||o)?s<0&&(t.push(e),s=t.length-1):n&(B|N)&&(r=!0),s<0||(t[s]=e,this.callback(this.manager,n,{pointers:t,changedPointers:[e],pointerType:a,srcEvent:e}),r&&t.splice(s,1))}});var pe={touchstart:F,touchmove:2,touchend:B,touchcancel:N};function me(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Z.apply(this,arguments)}v(me,Z,{handler:function(e){var t=pe[e.type];if(t===F&&(this.started=!0),this.started){var r=function(e,t){var r=M(e.touches),i=M(e.changedTouches);t&(B|N)&&(r=P(r.concat(i),"identifier",!0));return[r,i]}.call(this,e,t);t&(B|N)&&r[0].length-r[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:r[0],changedPointers:r[1],pointerType:j,srcEvent:e})}}});var ge={touchstart:F,touchmove:2,touchend:B,touchcancel:N},ve="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ve,this.targetIds={},Z.apply(this,arguments)}v(be,Z,{handler:function(e){var t=ge[e.type],r=function(e,t){var r=M(e.touches),i=this.targetIds;if(t&(2|F)&&1===r.length)return i[r[0].identifier]=!0,[r,r];var n,a,o=M(e.changedTouches),s=[],u=this.target;if(a=r.filter(function(e){return k(e.target,u)}),t===F)for(n=0;n<a.length;)i[a[n].identifier]=!0,n++;n=0;for(;n<o.length;)i[o[n].identifier]&&s.push(o[n]),t&(B|N)&&delete i[o[n].identifier],n++;return s.length?[P(a.concat(s),"identifier",!0),s]:void 0}.call(this,e,t);r&&this.callback(this.manager,t,{pointers:r[0],changedPointers:r[1],pointerType:j,srcEvent:e})}});var ye=2500;function _e(){Z.apply(this,arguments);var e=b(this.handler,this);this.touch=new be(this.manager,e),this.mouse=new ue(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function we(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var r={x:t.clientX,y:t.clientY};this.lastTouches.push(r);var i=this.lastTouches;setTimeout(function(){var e=i.indexOf(r);-1<e&&i.splice(e,1)},ye)}}v(_e,Z,{handler:function(e,t,r){var i=r.pointerType==j,n=r.pointerType==L;if(!(n&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(i)(function(e,t){e&F?(this.primaryTouch=t.changedPointers[0].identifier,we.call(this,t)):e&(B|N)&&we.call(this,t)}).call(this,t,r);else if(n&&function(e){for(var t=e.srcEvent.clientX,r=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var n=this.lastTouches[i],a=Math.abs(t-n.x),o=Math.abs(r-n.y);if(a<=25&&o<=25)return!0}return!1}.call(this,r))return;this.callback(e,t,r)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var xe=C(t.style,"touchAction"),ke=xe!==h,Te="compute",Se="manipulation",Ee="none",Me="pan-x",Pe="pan-y",Ce=function(){if(!ke)return!1;var t={},r=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){t[e]=!r||a.CSS.supports("touch-action",e)}),t}();function Ae(e,t){this.manager=e,this.set(t)}Ae.prototype={set:function(e){e==Te&&(e=this.compute()),ke&&this.manager.element.style&&Ce[e]&&(this.manager.element.style[xe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return c(this.manager.recognizers,function(e){y(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(e){if(T(e,Ee))return Ee;var t=T(e,Me),r=T(e,Pe);if(t&&r)return Ee;if(t||r)return t?Me:Pe;if(T(e,Se))return Se;return"auto"}(t.join(" "))},preventDefaults:function(e){var t=e.srcEvent,r=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,n=T(i,Ee)&&!Ce[Ee],a=T(i,Pe)&&!Ce[Pe],o=T(i,Me)&&!Ce[Me];if(n){var s=1===e.pointers.length,u=e.distance<2,l=e.deltaTime<250;if(s&&u&&l)return}if(!o||!a)return n||a&&r&G||o&&r&V?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Oe=1;function Ie(e){this.options=o({},this.defaults,e||{}),this.id=A++,this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=Oe,this.simultaneous={},this.requireFail=[]}function Re(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function De(e){return e==W?"down":e==H?"up":e==X?"left":e==q?"right":""}function je(e,t){var r=t.manager;return r?r.get(e):e}function Le(){Ie.apply(this,arguments)}function ze(){Le.apply(this,arguments),this.pX=null,this.pY=null}function Fe(){Le.apply(this,arguments)}function Be(){Ie.apply(this,arguments),this._timer=null,this._input=null}function Ne(){Le.apply(this,arguments)}function Ue(){Le.apply(this,arguments)}function Xe(){Ie.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function qe(e,t){return(t=t||{}).recognizers=_(t.recognizers,qe.defaults.preset),new He(e,t)}Ie.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(i(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=je(e,this)).id]||(t[e.id]=e).recognizeWith(this),this},dropRecognizeWith:function(e){return i(e,"dropRecognizeWith",this)||(e=je(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(i(e,"requireFailure",this))return this;var t=this.requireFail;return-1===E(t,e=je(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(i(e,"dropRequireFailure",this))return this;e=je(e,this);var t=E(this.requireFail,e);return-1<t&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(t){var r=this,e=this.state;function i(e){r.manager.emit(e,t)}e<8&&i(r.options.event+Re(e)),i(r.options.event),t.additionalEvent&&i(t.additionalEvent),8<=e&&i(r.options.event+Re(e))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Oe)))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!y(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Oe),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},v(Le,Ie,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,r=e.eventType,i=6&t,n=this.attrTest(e);return i&&(r&N||!n)?16|t:i||n?r&B?8|t:2&t?4|t:2:32}}),v(ze,Le,{defaults:{event:"pan",threshold:10,pointers:1,direction:Y},getTouchAction:function(){var e=this.options.direction,t=[];return e&G&&t.push(Pe),e&V&&t.push(Me),t},directionTest:function(e){var t=this.options,r=!0,i=e.distance,n=e.direction,a=e.deltaX,o=e.deltaY;return n&t.direction||(i=t.direction&G?(n=0===a?U:a<0?X:q,r=a!=this.pX,Math.abs(e.deltaX)):(n=0===o?U:o<0?H:W,r=o!=this.pY,Math.abs(e.deltaY))),e.direction=n,r&&i>t.threshold&&n&t.direction},attrTest:function(e){return Le.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=De(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),v(Fe,Le,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ee]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),v(Be,Ie,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,r=e.pointers.length===t.pointers,i=e.distance<t.threshold,n=e.deltaTime>t.time;if(this._input=e,!i||!r||e.eventType&(B|N)&&!n)this.reset();else if(e.eventType&F)this.reset(),this._timer=l(function(){this.state=8,this.tryEmit()},t.time,this);else if(e.eventType&B)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&B?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),v(Ne,Le,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ee]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),v(Ue,Le,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:G|V,pointers:1},getTouchAction:function(){return ze.prototype.getTouchAction.call(this)},attrTest:function(e){var t,r=this.options.direction;return r&(G|V)?t=e.overallVelocity:r&G?t=e.overallVelocityX:r&V&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&e.eventType&B},emit:function(e){var t=De(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),v(Xe,Ie,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Se]},process:function(e){var t=this.options,r=e.pointers.length===t.pointers,i=e.distance<t.threshold,n=e.deltaTime<t.time;if(this.reset(),e.eventType&F&&0===this.count)return this.failTimeout();if(i&&n&&r){if(e.eventType!=B)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||ie(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&a?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=l(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),qe.VERSION="2.0.7",qe.defaults={domEvents:!1,touchAction:Te,enable:!0,inputTarget:null,inputClass:null,preset:[[Ne,{enable:!1}],[Fe,{enable:!1},["rotate"]],[Ue,{direction:G}],[ze,{direction:G},["swipe"]],[Xe],[Xe,{event:"doubletap",taps:2},["tap"]],[Be]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function He(e,t){this.options=o({},qe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(R?de:D?be:I?_e:ue))(e,Q)}(this),this.touchAction=new Ae(this,this.options.touchAction),We(this,!0),c(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function We(r,i){var n,a=r.element;a.style&&(c(r.options.cssProps,function(e,t){n=C(a.style,t),i?(r.oldCssProps[n]=a.style[n],a.style[n]=e):a.style[n]=r.oldCssProps[n]||""}),i||(r.oldCssProps={}))}He.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var r;this.touchAction.preventDefaults(e);var i=this.recognizers,n=t.curRecognizer;(!n||n&&8&n.state)&&(n=t.curRecognizer=null);for(var a=0;a<i.length;)r=i[a],2===t.stopped||n&&r!=n&&!r.canRecognizeWith(n)?r.reset():r.recognize(e),!n&&14&r.state&&(n=t.curRecognizer=r),a++}},get:function(e){if(e instanceof Ie)return e;for(var t=this.recognizers,r=0;r<t.length;r++)if(t[r].options.event==e)return t[r];return null},add:function(e){if(i(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),(e.manager=this).touchAction.update(),e},remove:function(e){if(i(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,r=E(t,e);-1!==r&&(t.splice(r,1),this.touchAction.update())}return this},on:function(e,t){if(e!==h&&t!==h){var r=this.handlers;return c(S(e),function(e){r[e]=r[e]||[],r[e].push(t)}),this}},off:function(e,t){if(e!==h){var r=this.handlers;return c(S(e),function(e){t?r[e]&&r[e].splice(E(r[e],t),1):delete r[e]}),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var r=n.createEvent("Event");r.initEvent(e,!0,!0),(r.gesture=t).target.dispatchEvent(r)}(e,t);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](t),i++}},destroy:function(){this.element&&We(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(qe,{INPUT_START:F,INPUT_MOVE:2,INPUT_END:B,INPUT_CANCEL:N,STATE_POSSIBLE:Oe,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:U,DIRECTION_LEFT:X,DIRECTION_RIGHT:q,DIRECTION_UP:H,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:G,DIRECTION_VERTICAL:V,DIRECTION_ALL:Y,Manager:He,Input:Z,TouchAction:Ae,TouchInput:be,MouseInput:ue,PointerEventInput:de,TouchMouseInput:_e,SingleTouchInput:me,Recognizer:Ie,AttrRecognizer:Le,Tap:Xe,Pan:ze,Swipe:Ue,Pinch:Fe,Rotate:Ne,Press:Be,on:w,off:x,each:c,merge:g,extend:m,assign:o,inherit:v,bindFn:b,prefixed:C}),(void 0!==a?a:"undefined"!=typeof self?self:{}).Hammer=qe,"function"==typeof define&&define.amd?define(function(){return qe}):"undefined"!=typeof module&&module.exports?module.exports=qe:a.Hammer=qe}(window,document),function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():window.propagating=e()}(function(){var c=null;return function i(n,e){var a=e||{preventDefault:!1};if(n.Manager){var o=n,t=function(e,t){var r=Object.create(a);return t&&o.assign(r,t),i(new o(e,r),r)};return o.assign(t,o),t.Manager=function(e,t){var r=Object.create(a);return t&&o.assign(r,t),i(new o.Manager(e,r),r)},t}var s=Object.create(n),r=n.element;function u(e){return e.match(/[^ ]+/g)}function l(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var r=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof r&&(e.srcEvent.stopPropagation=function(){r(),e.stopPropagation()});for(var i=e.firstTarget=c;i&&!t;){var n=i.hammer;if(n)for(var a,o=0;o<n.length;o++)if(a=n[o]._handlers[e.type])for(var s=0;s<a.length&&!t;s++)a[s](e);i=i.parentNode}}return r.hammer||(r.hammer=[]),r.hammer.push(s),n.on("hammer.input",function(e){!0!==a.preventDefault&&a.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(c=e.target)}),s._handlers={},s.on=function(e,r){return u(e).forEach(function(e){var t=s._handlers[e];t||(s._handlers[e]=t=[],n.on(e,l)),t.push(r)}),s},s.off=function(e,r){return u(e).forEach(function(e){var t=s._handlers[e];t&&(0<(t=r?t.filter(function(e){return e!==r}):[]).length?s._handlers[e]=t:(n.off(e,l),delete s._handlers[e]))}),s},s.emit=function(e,t){c=t.target,n.emit(e,t)},s.destroy=function(){var e=n.element.hammer,t=e.indexOf(s);-1!==t&&e.splice(t,1),e.length||delete n.element.hammer,s._handlers={},n.destroy()},s}}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PIXI=e()}}(function(){return function a(o,s,u){function l(r,e){if(!s[r]){if(!o[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(r,!0);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[r]={exports:{}};o[r][0].call(n.exports,function(e){var t=o[r][1][e];return l(t||e)},n,n.exports,a,o,s,u)}return s[r].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,r){"use strict";function i(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(e){return(0<e)-(e<0)},r.abs=function(e){var t=e>>31;return(e^t)-t},r.min=function(e,t){return t^(e^t)&-(e<t)},r.max=function(e,t){return e^(e^t)&-(e<t)},r.isPow2=function(e){return!(e&e-1||!e)},r.log2=function(e){var t,r;return t=(65535<e)<<4,t|=r=(255<(e>>>=t))<<3,t|=r=(15<(e>>>=r))<<2,(t|=r=(3<(e>>>=r))<<1)|(e>>>=r)>>1},r.log10=function(e){return 1e9<=e?9:1e8<=e?8:1e7<=e?7:1e6<=e?6:1e5<=e?5:1e4<=e?4:1e3<=e?3:100<=e?2:10<=e?1:0},r.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},r.countTrailingZeros=i,r.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},r.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},r.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var n=new Array(256);!function(e){for(var t=0;t<256;++t){var r=t,i=t,n=7;for(r>>>=1;r;r>>>=1)i<<=1,i|=1&r,--n;e[t]=i<<n&255}}(n),r.reverse=function(e){return n[255&e]<<24|n[e>>>8&255]<<16|n[e>>>16&255]<<8|n[e>>>24&255]},r.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},r.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},r.interleave3=function(e,t,r){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},r.nextCombination=function(e){var t=e|e-1;return 1+t|(~t&-~t)-1>>>i(e)+1}},{}],2:[function(e,t,r){"use strict";function i(e,t,r){r=r||2;var i,n,a,o,s,u,l,c=t&&t.length,h=c?t[0]*r:e.length,f=m(e,0,h,r,!0),d=[];if(!f||f.next===f.prev)return d;if(c&&(f=function(e,t,r,i){var n,a,o,s,u,l=[];for(n=0,a=t.length;n<a;n++)o=t[n]*i,s=n<a-1?t[n+1]*i:e.length,(u=m(e,o,s,i,!1))===u.next&&(u.steiner=!0),l.push(w(u));for(l.sort(b),n=0;n<l.length;n++)y(l[n],r),r=g(r,r.next);return r}(e,t,f,r)),e.length>80*r){i=a=e[0],n=o=e[1];for(var p=r;p<h;p+=r)(s=e[p])<i&&(i=s),(u=e[p+1])<n&&(n=u),a<s&&(a=s),o<u&&(o=u);l=0!==(l=Math.max(a-i,o-n))?1/l:0}return v(f,d,r,i,n,l),d}function m(e,t,r,i,n){var a,o;if(n===0<M(e,t,r,i))for(a=t;a<r;a+=i)o=u(a,e[a],e[a+1],o);else for(a=r-i;t<=a;a-=i)o=u(a,e[a],e[a+1],o);return o&&s(o,o.next)&&(E(o),o=o.next),o}function g(e,t){if(!e)return e;t||(t=e);var r,i=e;do{if(r=!1,i.steiner||!s(i,i.next)&&0!==k(i.prev,i,i.next))i=i.next;else{if(E(i),(i=t=i.prev)===i.next)break;r=!0}}while(r||i!==t);return t}function v(e,t,r,i,n,a,o){if(e){!o&&a&&function(e,t,r,i){var n=e;for(;null===n.z&&(n.z=_(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next,n!==e;);n.prevZ.nextZ=null,n.prevZ=null,function(e){var t,r,i,n,a,o,s,u,l=1;do{for(r=e,a=e=null,o=0;r;){for(o++,i=r,t=s=0;t<l&&(s++,i=i.nextZ);t++);for(u=l;0<s||0<u&&i;)0!==s&&(0===u||!i||r.z<=i.z)?(r=(n=r).nextZ,s--):(i=(n=i).nextZ,u--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,l*=2}while(1<o)}(n)}(e,i,n,a);for(var s,u,l=e;e.prev!==e.next;)if(s=e.prev,u=e.next,a?h(e,i,n,a):c(e))t.push(s.i/r),t.push(e.i/r),t.push(u.i/r),E(e),e=u.next,l=u.next;else if((e=u)===l){o?1===o?v(e=f(e,t,r),t,r,i,n,a,2):2===o&&d(e,t,r,i,n,a):v(g(e),t,r,i,n,a,1);break}}}function c(e){var t=e.prev,r=e,i=e.next;if(0<=k(t,r,i))return!1;for(var n=e.next.next;n!==e.prev;){if(x(t.x,t.y,r.x,r.y,i.x,i.y,n.x,n.y)&&0<=k(n.prev,n,n.next))return!1;n=n.next}return!0}function h(e,t,r,i){var n=e.prev,a=e,o=e.next;if(0<=k(n,a,o))return!1;for(var s=n.x<a.x?n.x<o.x?n.x:o.x:a.x<o.x?a.x:o.x,u=n.y<a.y?n.y<o.y?n.y:o.y:a.y<o.y?a.y:o.y,l=n.x>a.x?n.x>o.x?n.x:o.x:a.x>o.x?a.x:o.x,c=n.y>a.y?n.y>o.y?n.y:o.y:a.y>o.y?a.y:o.y,h=_(s,u,t,r,i),f=_(l,c,t,r,i),d=e.prevZ,p=e.nextZ;d&&d.z>=h&&p&&p.z<=f;){if(d!==e.prev&&d!==e.next&&x(n.x,n.y,a.x,a.y,o.x,o.y,d.x,d.y)&&0<=k(d.prev,d,d.next))return!1;if(d=d.prevZ,p!==e.prev&&p!==e.next&&x(n.x,n.y,a.x,a.y,o.x,o.y,p.x,p.y)&&0<=k(p.prev,p,p.next))return!1;p=p.nextZ}for(;d&&d.z>=h;){if(d!==e.prev&&d!==e.next&&x(n.x,n.y,a.x,a.y,o.x,o.y,d.x,d.y)&&0<=k(d.prev,d,d.next))return!1;d=d.prevZ}for(;p&&p.z<=f;){if(p!==e.prev&&p!==e.next&&x(n.x,n.y,a.x,a.y,o.x,o.y,p.x,p.y)&&0<=k(p.prev,p,p.next))return!1;p=p.nextZ}return!0}function f(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!s(n,a)&&p(n,i,i.next,a)&&T(n,a)&&T(a,n)&&(t.push(n.i/r),t.push(i.i/r),t.push(a.i/r),E(i),E(i.next),i=e=a),i=i.next}while(i!==e);return i}function d(e,t,r,i,n,a){var o,s,u=e;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&(s=l,(o=u).next.i!==s.i&&o.prev.i!==s.i&&!function(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&p(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}(o,s)&&T(o,s)&&T(s,o)&&function(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;for(;r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next,r!==e;);return i}(o,s))){var c=S(u,l);return u=g(u,u.next),c=g(c,c.next),v(u,t,r,i,n,a),void v(c,t,r,i,n,a)}l=l.next}u=u.next}while(u!==e)}function b(e,t){return e.x-t.x}function y(e,t){if(t=function(e,t){var r,i=t,n=e.x,a=e.y,o=-1/0;do{if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){var s=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=n&&o<s){if((o=s)===n){if(a===i.y)return i;if(a===i.next.y)return i.next}r=i.x<i.next.x?i:i.next}}i=i.next}while(i!==t);if(!r)return null;if(n===o)return r.prev;var u,l=r,c=r.x,h=r.y,f=1/0;i=r.next;for(;i!==l;)n>=i.x&&i.x>=c&&n!==i.x&&x(a<h?n:o,a,c,h,a<h?o:n,a,i.x,i.y)&&((u=Math.abs(a-i.y)/(n-i.x))<f||u===f&&i.x>r.x)&&T(i,e)&&(r=i,f=u),i=i.next;return r}(e,t)){var r=S(t,e);g(r,r.next)}}function _(e,t,r,i,n){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*n)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*n)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function w(e){for(var t=e,r=e;t.x<r.x&&(r=t),(t=t.next)!==e;);return r}function x(e,t,r,i,n,a,o,s){return 0<=(n-o)*(t-s)-(e-o)*(a-s)&&0<=(e-o)*(i-s)-(r-o)*(t-s)&&0<=(r-o)*(a-s)-(n-o)*(i-s)}function k(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function s(e,t){return e.x===t.x&&e.y===t.y}function p(e,t,r,i){return!!(s(e,t)&&s(r,i)||s(e,i)&&s(r,t))||0<k(e,t,r)!=0<k(e,t,i)&&0<k(r,i,e)!=0<k(r,i,t)}function T(e,t){return k(e.prev,e,e.next)<0?0<=k(e,t,e.next)&&0<=k(e,e.prev,t):k(e,t,e.prev)<0||k(e,e.next,t)<0}function S(e,t){var r=new o(e.i,e.x,e.y),i=new o(t.i,t.x,t.y),n=e.next,a=t.prev;return(e.next=t).prev=e,(r.next=n).prev=r,(i.next=r).prev=i,(a.next=i).prev=a,i}function u(e,t,r,i){var n=new o(e,t,r);return i?(n.next=i.next,(n.prev=i).next.prev=n,i.next=n):(n.prev=n).next=n,n}function E(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function o(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function M(e,t,r,i){for(var n=0,a=t,o=r-i;a<r;a+=i)n+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return n}t.exports=i,(t.exports.default=i).deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(M(e,0,a,r));if(n)for(var s=0,u=t.length;s<u;s++){var l=t[s]*r,c=s<u-1?t[s+1]*r:e.length;o-=Math.abs(M(e,l,c,r))}var h=0;for(s=0;s<i.length;s+=3){var f=i[s]*r,d=i[s+1]*r,p=i[s+2]*r;h+=Math.abs((e[f]-e[p])*(e[1+d]-e[1+f])-(e[f]-e[d])*(e[1+p]-e[1+f]))}return 0===o&&0===h?0:Math.abs((h-o)/o)},i.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},i=0,n=0;n<e.length;n++){for(var a=0;a<e[n].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[n][a][o]);0<n&&(i+=e[n-1].length,r.holes.push(i))}return r}},{}],3:[function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty,d="~";function l(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function n(){this._events=new l,this._eventsCount=0}Object.create&&(l.prototype=Object.create(null),(new l).__proto__||(d=!1)),n.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)i.call(e,t)&&r.push(d?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},n.prototype.listeners=function(e,t){var r=d?d+e:e,i=this._events[r];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var n=0,a=i.length,o=new Array(a);n<a;n++)o[n]=i[n].fn;return o},n.prototype.emit=function(e,t,r,i,n,a){var o=d?d+e:e;if(!this._events[o])return!1;var s,u,l=this._events[o],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,n),!0;case 6:return l.fn.call(l.context,t,r,i,n,a),!0}for(u=1,s=new Array(c-1);u<c;u++)s[u-1]=arguments[u];l.fn.apply(l.context,s)}else{var h,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),c){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!s)for(h=1,s=new Array(c-1);h<c;h++)s[h-1]=arguments[h];l[u].fn.apply(l[u].context,s)}}return!0},n.prototype.on=function(e,t,r){var i=new a(t,r||this),n=d?d+e:e;return this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],i]:this._events[n].push(i):(this._events[n]=i,this._eventsCount++),this},n.prototype.once=function(e,t,r){var i=new a(t,r||this,!0),n=d?d+e:e;return this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],i]:this._events[n].push(i):(this._events[n]=i,this._eventsCount++),this},n.prototype.removeListener=function(e,t,r,i){var n=d?d+e:e;if(!this._events[n])return this;if(!t)return 0==--this._eventsCount?this._events=new l:delete this._events[n],this;var a=this._events[n];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||(0==--this._eventsCount?this._events=new l:delete this._events[n]);else{for(var o=0,s=[],u=a.length;o<u;o++)(a[o].fn!==t||i&&!a[o].once||r&&a[o].context!==r)&&s.push(a[o]);s.length?this._events[n]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new l:delete this._events[n]}return this},n.prototype.removeAllListeners=function(e){var t;return e?(t=d?d+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new l:delete this._events[t])):(this._events=new l,this._eventsCount=0),this},n.prototype.off=n.prototype.removeListener,n.prototype.addListener=n.prototype.on,n.prototype.setMaxListeners=function(){return this},n.prefixed=d,n.EventEmitter=n,void 0!==t&&(t.exports=n)},{}],4:[function(e,r,t){!function(e){var n=/iPhone/i,a=/iPod/i,o=/iPad/i,s=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,l=/\bAndroid(?:.+)SD4930UR\b/i,c=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,f=/\bWindows(?:.+)ARM\b/i,d=/BlackBerry/i,p=/BB10/i,m=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/\Mobile(?:.+)Firefox\b/i;function b(e,t){return e.test(t)}function t(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),r=t.split("[FBAN");void 0!==r[1]&&(t=r[0]),void 0!==(r=t.split("Twitter"))[1]&&(t=r[0]);var i={apple:{phone:b(n,t)&&!b(h,t),ipod:b(a,t),tablet:!b(n,t)&&b(o,t)&&!b(h,t),device:(b(n,t)||b(a,t)||b(o,t))&&!b(h,t)},amazon:{phone:b(l,t),tablet:!b(l,t)&&b(c,t),device:b(l,t)||b(c,t)},android:{phone:!b(h,t)&&b(l,t)||!b(h,t)&&b(s,t),tablet:!b(h,t)&&!b(l,t)&&!b(s,t)&&(b(c,t)||b(u,t)),device:!b(h,t)&&(b(l,t)||b(c,t)||b(s,t)||b(u,t))},windows:{phone:b(h,t),tablet:b(f,t),device:b(h,t)||b(f,t)},other:{blackberry:b(d,t),blackberry10:b(p,t),opera:b(m,t),firefox:b(v,t),chrome:b(g,t),device:b(d,t)||b(p,t)||b(m,t)||b(v,t)||b(g,t)}};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}void 0!==r&&r.exports&&"undefined"==typeof window?r.exports=t:void 0!==r&&r.exports&&"undefined"!=typeof window?r.exports=t():e.isMobile=t()}(this)},{}],5:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function i(e,t,r){void 0===t&&(t=!1),a(this,i),this._fn=e,this._once=t,this._thisArg=r,this._next=this._prev=this._owner=null}return n(i,[{key:"detach",value:function(){return null!==this._owner&&(this._owner.detach(this),!0)}}]),i}();function o(e,t){return e._head?(e._tail._next=t)._prev=e._tail:e._head=t,(e._tail=t)._owner=e,t}var s=function(){function e(){a(this,e),this._head=this._tail=void 0}return n(e,[{key:"handlers",value:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=this._head;if(e)return!!t;for(var r=[];t;)r.push(t),t=t._next;return r}},{key:"has",value:function(e){if(!(e instanceof i))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return e._owner===this}},{key:"dispatch",value:function(){var e=this._head;if(!e)return!1;for(;e;)e._once&&this.detach(e),e._fn.apply(e._thisArg,arguments),e=e._next;return!0}},{key:"add",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#add(): First arg must be a Function.");return o(this,new i(e,!1,t))}},{key:"once",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#once(): First arg must be a Function.");return o(this,new i(e,!0,t))}},{key:"detach",value:function(e){if(!(e instanceof i))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return e._owner!==this||(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,null===e._next&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null),this}},{key:"detachAll",value:function(){var e=this._head;if(!e)return this;for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this}}]),e}();s.MiniSignalBinding=i,r.default=s,t.exports=r.default},{}],6:[function(e,t,r){"use strict";var u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,i,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var o in r=Object(arguments[a]))l.call(r,o)&&(n[o]=r[o]);if(u){i=u(r);for(var s=0;s<i.length;s++)c.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n}},{}],7:[function(e,t,r){"use strict";t.exports=function(e,t){t=t||{};for(var i={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},r=i.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[i.key[a]]=r[a]||"";return n[i.q.name]={},n[i.key[12]].replace(i.q.parser,function(e,t,r){t&&(n[i.q.name][t]=r)}),n}},{}],8:[function(e,t,l){(function(n){function a(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return t.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}l.resolve=function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i.charAt(0))}return(t?"/":"")+(e=a(s(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},l.normalize=function(e){var t=l.isAbsolute(e),r="/"===i(e,-1);return(e=a(s(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},l.isAbsolute=function(e){return"/"===e.charAt(0)},l.join=function(){var e=Array.prototype.slice.call(arguments,0);return l.normalize(s(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},l.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=l.resolve(e).substr(1),t=l.resolve(t).substr(1);for(var i=r(e.split("/")),n=r(t.split("/")),a=Math.min(i.length,n.length),o=a,s=0;s<a;s++)if(i[s]!==n[s]){o=s;break}var u=[];for(s=o;s<i.length;s++)u.push("..");return(u=u.concat(n.slice(o))).join("/")},l.sep="/",l.delimiter=":",l.dirname=function(e){var t=o(e),r=t[0],i=t[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},l.basename=function(e,t){var r=o(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},l.extname=function(e){return o(e)[3]};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:26}],9:[function(e,t,r){var n=new ArrayBuffer(0),a=function(e,t,r,i){this.gl=e,this.buffer=e.createBuffer(),this.type=t||e.ARRAY_BUFFER,this.drawType=i||e.STATIC_DRAW,this.data=n,r&&this.upload(r),this._updateID=0};a.prototype.upload=function(e,t,r){r||this.bind();var i=this.gl;e=e||this.data,t=t||0,this.data.byteLength>=e.byteLength?i.bufferSubData(this.type,t,e):i.bufferData(this.type,e,this.drawType),this.data=e},a.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},a.createVertexBuffer=function(e,t,r){return new a(e,e.ARRAY_BUFFER,t,r)},a.createIndexBuffer=function(e,t,r){return new a(e,e.ELEMENT_ARRAY_BUFFER,t,r)},a.create=function(e,t,r,i){return new a(e,t,r,i)},a.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},t.exports=a},{}],10:[function(e,t,r){var o=e("./GLTexture"),s=function(e,t,r){this.gl=e,this.framebuffer=e.createFramebuffer(),this.stencil=null,this.texture=null,this.width=t||100,this.height=r||100};s.prototype.enableTexture=function(e){var t=this.gl;this.texture=e||new o(t),this.texture.bind(),this.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture.texture,0)},s.prototype.enableStencil=function(){if(!this.stencil){var e=this.gl;this.stencil=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,this.stencil),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,this.stencil),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,this.width,this.height)}},s.prototype.clear=function(e,t,r,i){this.bind();var n=this.gl;n.clearColor(e,t,r,i),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT)},s.prototype.bind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer)},s.prototype.unbind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,null)},s.prototype.resize=function(e,t){var r=this.gl;this.width=e,this.height=t,this.texture&&this.texture.uploadData(null,e,t),this.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,this.stencil),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e,t))},s.prototype.destroy=function(){var e=this.gl;this.texture&&this.texture.destroy(),e.deleteFramebuffer(this.framebuffer),this.gl=null,this.stencil=null,this.texture=null},s.createRGBA=function(e,t,r,i){var n=o.fromData(e,null,t,r);n.enableNearestScaling(),n.enableWrapClamp();var a=new s(e,t,r);return a.enableTexture(n),a.unbind(),a},s.createFloat32=function(e,t,r,i){var n=new o.fromData(e,i,t,r);n.enableNearestScaling(),n.enableWrapClamp();var a=new s(e,t,r);return a.enableTexture(n),a.unbind(),a},t.exports=s},{"./GLTexture":12}],11:[function(e,t,r){var a=e("./shader/compileProgram"),o=e("./shader/extractAttributes"),s=e("./shader/extractUniforms"),u=e("./shader/setPrecision"),l=e("./shader/generateUniformAccessObject"),i=function(e,t,r,i,n){this.gl=e,i&&(t=u(t,i),r=u(r,i)),this.program=a(e,t,r,n),this.attributes=o(e,this.program),this.uniformData=s(e,this.program),this.uniforms=l(e,this.uniformData)};i.prototype.bind=function(){return this.gl.useProgram(this.program),this},i.prototype.destroy=function(){this.attributes=null,this.uniformData=null,this.uniforms=null,this.gl.deleteProgram(this.program)},t.exports=i},{"./shader/compileProgram":17,"./shader/extractAttributes":19,"./shader/extractUniforms":20,"./shader/generateUniformAccessObject":21,"./shader/setPrecision":25}],12:[function(e,t,r){var a=function(e,t,r,i,n){this.gl=e,this.texture=e.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=t||-1,this.height=r||-1,this.format=i||e.RGBA,this.type=n||e.UNSIGNED_BYTE},n=!(a.prototype.upload=function(e){this.bind();var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var r=e.videoWidth||e.width,i=e.videoHeight||e.height;i!==this.height||r!==this.width?t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,this.type,e):t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.format,this.type,e),this.width=r,this.height=i});a.prototype.uploadData=function(e,t,r){this.bind();var i=this.gl;if(e instanceof Float32Array){if(!n){if(!i.getExtension("OES_texture_float"))throw new Error("floating point textures not available");n=!0}this.type=i.FLOAT}else this.type=this.type||i.UNSIGNED_BYTE;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),t!==this.width||r!==this.height?i.texImage2D(i.TEXTURE_2D,0,this.format,t,r,0,this.format,this.type,e||null):i.texSubImage2D(i.TEXTURE_2D,0,0,0,t,r,this.format,this.type,e||null),this.width=t,this.height=r},a.prototype.bind=function(e){var t=this.gl;void 0!==e&&t.activeTexture(t.TEXTURE0+e),t.bindTexture(t.TEXTURE_2D,this.texture)},a.prototype.unbind=function(){var e=this.gl;e.bindTexture(e.TEXTURE_2D,null)},a.prototype.minFilter=function(e){var t=this.gl;this.bind(),this.mipmap?t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR_MIPMAP_LINEAR:t.NEAREST_MIPMAP_NEAREST):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR:t.NEAREST)},a.prototype.magFilter=function(e){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e?t.LINEAR:t.NEAREST)},a.prototype.enableMipmap=function(){var e=this.gl;this.bind(),this.mipmap=!0,e.generateMipmap(e.TEXTURE_2D)},a.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},a.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},a.prototype.enableWrapClamp=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)},a.prototype.enableWrapRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)},a.prototype.enableWrapMirrorRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.MIRRORED_REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.MIRRORED_REPEAT)},a.prototype.destroy=function(){this.gl.deleteTexture(this.texture)},a.fromSource=function(e,t,r){var i=new a(e);return i.premultiplyAlpha=r||!1,i.upload(t),i},a.fromData=function(e,t,r,i){var n=new a(e);return n.uploadData(t,r,i),n},t.exports=a},{}],13:[function(e,t,r){var n=e("./setVertexAttribArrays");function i(e,t){if(this.nativeVaoExtension=null,i.FORCE_NATIVE||(this.nativeVaoExtension=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=t,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var r=e.getParameter(e.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(r),attribState:new Array(r)}}this.gl=e,this.attributes=[],this.indexBuffer=null,this.dirty=!1}i.prototype.constructor=i,(t.exports=i).FORCE_NATIVE=!1,i.prototype.bind=function(){if(this.nativeVao){if(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty)return this.dirty=!1,this.activate(),this;this.indexBuffer&&this.indexBuffer.bind()}else this.activate();return this},i.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},i.prototype.activate=function(){for(var e=this.gl,t=null,r=0;r<this.attributes.length;r++){var i=this.attributes[r];t!==i.buffer&&(i.buffer.bind(),t=i.buffer),e.vertexAttribPointer(i.attribute.location,i.attribute.size,i.type||e.FLOAT,i.normalized||!1,i.stride||0,i.start||0)}return n(e,this.attributes,this.nativeState),this.indexBuffer&&this.indexBuffer.bind(),this},i.prototype.addAttribute=function(e,t,r,i,n,a){return this.attributes.push({buffer:e,attribute:t,location:t.location,type:r||this.gl.FLOAT,normalized:i||!1,stride:n||0,start:a||0}),this.dirty=!0,this},i.prototype.addIndex=function(e){return this.indexBuffer=e,this.dirty=!0,this},i.prototype.clear=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.attributes.length=0,this.indexBuffer=null,this},i.prototype.draw=function(e,t,r){var i=this.gl;return this.indexBuffer?i.drawElements(e,t||this.indexBuffer.data.length,i.UNSIGNED_SHORT,2*(r||0)):i.drawArrays(e,r,t||this.getSize()),this},i.prototype.destroy=function(){this.gl=null,this.indexBuffer=null,this.attributes=null,this.nativeState=null,this.nativeVao&&this.nativeVaoExtension.deleteVertexArrayOES(this.nativeVao),this.nativeVaoExtension=null,this.nativeVao=null},i.prototype.getSize=function(){var e=this.attributes[0];return e.buffer.data.length/(e.stride/4||e.attribute.size)}},{"./setVertexAttribArrays":16}],14:[function(e,t,r){t.exports=function(e,t){var r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t);if(!r)throw new Error("This browser does not support webGL. Try using the canvas renderer");return r}},{}],15:[function(e,t,r){var i={createContext:e("./createContext"),setVertexAttribArrays:e("./setVertexAttribArrays"),GLBuffer:e("./GLBuffer"),GLFramebuffer:e("./GLFramebuffer"),GLShader:e("./GLShader"),GLTexture:e("./GLTexture"),VertexArrayObject:e("./VertexArrayObject"),shader:e("./shader")};void 0!==t&&t.exports&&(t.exports=i),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=i)},{"./GLBuffer":9,"./GLFramebuffer":10,"./GLShader":11,"./GLTexture":12,"./VertexArrayObject":13,"./createContext":14,"./setVertexAttribArrays":16,"./shader":22}],16:[function(e,t,r){t.exports=function(e,t,r){var i;if(r){var n=r.tempAttribState,a=r.attribState;for(i=0;i<n.length;i++)n[i]=!1;for(i=0;i<t.length;i++)n[t[i].attribute.location]=!0;for(i=0;i<a.length;i++)a[i]!==n[i]&&(a[i]=n[i],r.attribState[i]?e.enableVertexAttribArray(i):e.disableVertexAttribArray(i))}else for(i=0;i<t.length;i++){var o=t[i];e.enableVertexAttribArray(o.attribute.location)}}},{}],17:[function(e,t,r){var u=function(e,t,r){var i=e.createShader(t);return e.shaderSource(i,r),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS)?i:(console.log(e.getShaderInfoLog(i)),null)};t.exports=function(e,t,r,i){var n=u(e,e.VERTEX_SHADER,t),a=u(e,e.FRAGMENT_SHADER,r),o=e.createProgram();if(e.attachShader(o,n),e.attachShader(o,a),i)for(var s in i)e.bindAttribLocation(o,i[s],s);return e.linkProgram(o),e.getProgramParameter(o,e.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",e.getProgramParameter(o,e.VALIDATE_STATUS)),console.error("gl.getError()",e.getError()),""!==e.getProgramInfoLog(o)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(o)),e.deleteProgram(o),o=null),e.deleteShader(n),e.deleteShader(a),o}},{}],18:[function(e,t,r){var i=function(e){for(var t=new Array(e),r=0;r<t.length;r++)t[r]=!1;return t};t.exports=function(e,t){switch(e){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"sampler2D":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"bool":return!1;case"bvec2":return i(2*t);case"bvec3":return i(3*t);case"bvec4":return i(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}}},{}],19:[function(e,t,r){var s=e("./mapType"),u=e("./mapSize"),l=function(e,t,r,i){gl.vertexAttribPointer(this.location,this.size,e||gl.FLOAT,t||!1,r||0,i||0)};t.exports=function(e,t){for(var r={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),n=0;n<i;n++){var a=e.getActiveAttrib(t,n),o=s(e,a.type);r[a.name]={type:o,size:u(o),location:e.getAttribLocation(t,a.name),pointer:l}}return r}},{"./mapSize":23,"./mapType":24}],20:[function(e,t,r){var u=e("./mapType"),l=e("./defaultValue");t.exports=function(e,t){for(var r={},i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),n=0;n<i;n++){var a=e.getActiveUniform(t,n),o=a.name.replace(/\[.*?\]/,""),s=u(e,a.type);r[o]={type:s,size:a.size,location:e.getUniformLocation(t,o),value:l(s,a.size)}}return r}},{"./defaultValue":18,"./mapType":24}],21:[function(e,t,r){var c=function(e){return function(){return this.data[e].value}},n={float:function(e,t,r){e.uniform1f(t,r)},vec2:function(e,t,r){e.uniform2f(t,r[0],r[1])},vec3:function(e,t,r){e.uniform3f(t,r[0],r[1],r[2])},vec4:function(e,t,r){e.uniform4f(t,r[0],r[1],r[2],r[3])},int:function(e,t,r){e.uniform1i(t,r)},ivec2:function(e,t,r){e.uniform2i(t,r[0],r[1])},ivec3:function(e,t,r){e.uniform3i(t,r[0],r[1],r[2])},ivec4:function(e,t,r){e.uniform4i(t,r[0],r[1],r[2],r[3])},bool:function(e,t,r){e.uniform1i(t,r)},bvec2:function(e,t,r){e.uniform2i(t,r[0],r[1])},bvec3:function(e,t,r){e.uniform3i(t,r[0],r[1],r[2])},bvec4:function(e,t,r){e.uniform4i(t,r[0],r[1],r[2],r[3])},mat2:function(e,t,r){e.uniformMatrix2fv(t,!1,r)},mat3:function(e,t,r){e.uniformMatrix3fv(t,!1,r)},mat4:function(e,t,r){e.uniformMatrix4fv(t,!1,r)},sampler2D:function(e,t,r){e.uniform1i(t,r)}},a={float:function(e,t,r){e.uniform1fv(t,r)},vec2:function(e,t,r){e.uniform2fv(t,r)},vec3:function(e,t,r){e.uniform3fv(t,r)},vec4:function(e,t,r){e.uniform4fv(t,r)},int:function(e,t,r){e.uniform1iv(t,r)},ivec2:function(e,t,r){e.uniform2iv(t,r)},ivec3:function(e,t,r){e.uniform3iv(t,r)},ivec4:function(e,t,r){e.uniform4iv(t,r)},bool:function(e,t,r){e.uniform1iv(t,r)},bvec2:function(e,t,r){e.uniform2iv(t,r)},bvec3:function(e,t,r){e.uniform3iv(t,r)},bvec4:function(e,t,r){e.uniform4iv(t,r)},sampler2D:function(e,t,r){e.uniform1iv(t,r)}};function h(r,i){return function(e){this.data[r].value=e;var t=this.data[r].location;1===i.size?n[i.type](this.gl,t,e):a[i.type](this.gl,t,e)}}function f(e,t){for(var r=t,i=0;i<e.length-1;i++){var n=r[e[i]]||{data:{}};r[e[i]]=n,r=n}return r}t.exports=function(e,t){var r={data:{}};r.gl=e;for(var i=Object.keys(t),n=0;n<i.length;n++){var a=i[n],o=a.split("."),s=o[o.length-1],u=f(o,r),l=t[a];u.data[s]=l,u.gl=e,Object.defineProperty(u,s,{get:c(s),set:h(s,l)})}return r}},{}],22:[function(e,t,r){t.exports={compileProgram:e("./compileProgram"),defaultValue:e("./defaultValue"),extractAttributes:e("./extractAttributes"),extractUniforms:e("./extractUniforms"),generateUniformAccessObject:e("./generateUniformAccessObject"),setPrecision:e("./setPrecision"),mapSize:e("./mapSize"),mapType:e("./mapType")}},{"./compileProgram":17,"./defaultValue":18,"./extractAttributes":19,"./extractUniforms":20,"./generateUniformAccessObject":21,"./mapSize":23,"./mapType":24,"./setPrecision":25}],23:[function(e,t,r){var i={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};t.exports=function(e){return i[e]}},{}],24:[function(e,t,r){var a=null,o={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D"};t.exports=function(e,t){if(!a){var r=Object.keys(o);a={};for(var i=0;i<r.length;++i){var n=r[i];a[e[n]]=o[n]}}return a[t]}},{}],25:[function(e,t,r){t.exports=function(e,t){return"precision"!==e.substring(0,9)?"precision "+t+" float;\n"+e:e}},{}],26:[function(e,t,r){var i,n,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l,c=[],h=!1,f=-1;function d(){h&&l&&(h=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!h){var e=u(d);h=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,h=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||h||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],27:[function(e,I,R){(function(O){!function(e){var t="object"==typeof R&&R&&!R.nodeType&&R,r="object"==typeof I&&I&&!I.nodeType&&I,i="object"==typeof O&&O;i.global!==i&&i.window!==i&&i.self!==i||(e=i);var n,a,v=2147483647,b=36,y=1,_=26,o=38,s=700,w=72,x=128,k="-",u=/^xn--/,l=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=b-y,T=Math.floor,S=String.fromCharCode;function E(e){throw new RangeError(h[e])}function d(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function p(e,t){var r=e.split("@"),i="";return 1<r.length&&(i=r[0]+"@",e=r[1]),i+d((e=e.replace(c,".")).split("."),t).join(".")}function M(e){for(var t,r,i=[],n=0,a=e.length;n<a;)55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<a?56320==(64512&(r=e.charCodeAt(n++)))?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),n--):i.push(t);return i}function P(e){return d(e,function(e){var t="";return 65535<e&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,r){var i=0;for(e=r?T(e/s):e>>1,e+=T(e/t);f*_>>1<e;i+=b)e=T(e/f);return T(i+(f+1)*e/(e+o))}function m(e){var t,r,i,n,a,o,s,u,l,c,h,f=[],d=e.length,p=0,m=x,g=w;for((r=e.lastIndexOf(k))<0&&(r=0),i=0;i<r;++i)128<=e.charCodeAt(i)&&E("not-basic"),f.push(e.charCodeAt(i));for(n=0<r?r+1:0;n<d;){for(a=p,o=1,s=b;d<=n&&E("invalid-input"),h=e.charCodeAt(n++),(b<=(u=h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:b)||u>T((v-p)/o))&&E("overflow"),p+=u*o,!(u<(l=s<=g?y:g+_<=s?_:s-g));s+=b)o>T(v/(c=b-l))&&E("overflow"),o*=c;g=A(p-a,t=f.length+1,0==a),T(p/t)>v-m&&E("overflow"),m+=T(p/t),p%=t,f.splice(p++,0,m)}return P(f)}function g(e){var t,r,i,n,a,o,s,u,l,c,h,f,d,p,m,g=[];for(f=(e=M(e)).length,t=x,a=w,o=r=0;o<f;++o)(h=e[o])<128&&g.push(S(h));for(i=n=g.length,n&&g.push(k);i<f;){for(s=v,o=0;o<f;++o)t<=(h=e[o])&&h<s&&(s=h);for(s-t>T((v-r)/(d=i+1))&&E("overflow"),r+=(s-t)*d,t=s,o=0;o<f;++o)if((h=e[o])<t&&++r>v&&E("overflow"),h==t){for(u=r,l=b;!(u<(c=l<=a?y:a+_<=l?_:l-a));l+=b)m=u-c,p=b-c,g.push(S(C(c+m%p,0))),u=T(m/p);g.push(S(C(u,0))),a=A(r,d,i==n),r=0,++i}++r,++t}return g.join("")}if(n={version:"1.4.1",ucs2:{decode:M,encode:P},decode:m,encode:g,toASCII:function(e){return p(e,function(e){return l.test(e)?"xn--"+g(e):e})},toUnicode:function(e){return p(e,function(e){return u.test(e)?m(e.slice(4).toLowerCase()):e})}},t&&r)if(I.exports==t)r.exports=n;else for(a in n)n.hasOwnProperty(a)&&(t[a]=n[a]);else e.punycode=n}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],28:[function(e,t,r){"use strict";t.exports=function(e,t,r,i){t=t||"&",r=r||"=";var n={};if("string"!=typeof e||0===e.length)return n;var a=/\+/g;e=e.split(t);var o=1e3;i&&"number"==typeof i.maxKeys&&(o=i.maxKeys);var s,u,l=e.length;0<o&&o<l&&(l=o);for(var c=0;c<l;++c){var h,f,d,p,m=e[c].replace(a,"%20"),g=m.indexOf(r);f=0<=g?(h=m.substr(0,g),m.substr(g+1)):(h=m,""),d=decodeURIComponent(h),p=decodeURIComponent(f),s=n,u=d,Object.prototype.hasOwnProperty.call(s,u)?v(n[d])?n[d].push(p):n[d]=[n[d],p]:n[d]=p}return n};var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],29:[function(e,t,r){"use strict";var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(r,i,n,e){return i=i||"&",n=n||"=",null===r&&(r=void 0),"object"==typeof r?s(u(r),function(e){var t=encodeURIComponent(a(e))+n;return o(r[e])?s(r[e],function(e){return t+encodeURIComponent(a(e))}).join(i):t+encodeURIComponent(a(r[e]))}).join(i):e?encodeURIComponent(a(e))+n+encodeURIComponent(a(r)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)r.push(t(e[i],i));return r}var u=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],30:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":28,"./encode":29}],31:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i,n=e.length;if(!(n<=t||0===r)){var a=n-(r=n<t+r?n-t:r);for(i=t;i<a;++i)e[i]=e[i+r];e.length=a}}},{}],32:[function(e,t,r){"use strict";r.__esModule=!0,r.Loader=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),o=a(e("mini-signals")),n=a(e("parse-uri")),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./async")),h=e("./Resource");function a(e){return e&&e.__esModule?e:{default:e}}var u=/(#[\w-]+)?$/,l=r.Loader=function(){function a(){var r=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.baseUrl=e,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,t){return r._loadResource(e,t)},this._queue=s.queue(this._boundLoadResource,t),this._queue.pause(),this.resources={},this.onProgress=new o.default,this.onError=new o.default,this.onLoad=new o.default,this.onStart=new o.default,this.onComplete=new o.default;for(var i=0;i<a._defaultBeforeMiddleware.length;++i)this.pre(a._defaultBeforeMiddleware[i]);for(var n=0;n<a._defaultAfterMiddleware.length;++n)this.use(a._defaultAfterMiddleware[n])}return a.prototype.add=function(e,t,r,i){if(Array.isArray(e)){for(var n=0;n<e.length;++n)this.add(e[n]);return this}if("object"===(void 0===e?"undefined":c(e))&&(i=t||e.callback||e.onComplete,t=(r=e).url,e=e.name||e.key||e.url),"string"!=typeof t&&(i=r,r=t,t=e),"string"!=typeof t)throw new Error("No url passed to add resource to loader.");if("function"==typeof r&&(i=r,r=null),this.loading&&(!r||!r.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[e])throw new Error('Resource named "'+e+'" already exists.');if(t=this._prepareUrl(t),this.resources[e]=new h.Resource(e,t,r),"function"==typeof i&&this.resources[e].onAfterMiddleware.once(i),this.loading){for(var a=r.parentResource,o=[],s=0;s<a.children.length;++s)a.children[s].isComplete||o.push(a.children[s]);var u=a.progressChunk*(o.length+1)/(o.length+2);a.children.push(this.resources[e]),a.progressChunk=u;for(var l=0;l<o.length;++l)o[l].progressChunk=u;this.resources[e].progressChunk=u}return this._queue.push(this.resources[e]),this},a.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},a.prototype.use=function(e){return this._afterMiddleware.push(e),this},a.prototype.reset=function(){for(var e in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){var t=this.resources[e];t._onLoadBinding&&t._onLoadBinding.detach(),t.isLoading&&t.abort()}return this.resources={},this},a.prototype.load=function(e){if("function"==typeof e&&this.onComplete.once(e),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var t=100/this._queue._tasks.length,r=0;r<this._queue._tasks.length;++r)this._queue._tasks[r].data.progressChunk=t;this._onStart(),this._queue.resume()}return this},a.prototype._prepareUrl=function(e){var t=(0,n.default)(e,{strictMode:!0}),r=void 0;if(r=t.protocol||!t.path||0===e.indexOf("//")?e:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==e.charAt(0)?this.baseUrl+"/"+e:this.baseUrl+e,this.defaultQueryString){var i=u.exec(r)[0];-1!==(r=r.substr(0,r.length-i.length)).indexOf("?")?r+="&"+this.defaultQueryString:r+="?"+this.defaultQueryString,r+=i}return r},a.prototype._loadResource=function(r,e){var i=this;r._dequeue=e,s.eachSeries(this._beforeMiddleware,function(e,t){e.call(i,r,function(){t(r.isComplete?{}:null)})},function(){r.isComplete?i._onLoad(r):(r._onLoadBinding=r.onComplete.once(i._onLoad,i),r.load())},!0)},a.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},a.prototype._onComplete=function(){this.progress=100,this.loading=!1,this.onComplete.dispatch(this,this.resources)},a.prototype._onLoad=function(r){var i=this;r._onLoadBinding=null,this._resourcesParsing.push(r),r._dequeue(),s.eachSeries(this._afterMiddleware,function(e,t){e.call(i,r,t)},function(){r.onAfterMiddleware.dispatch(r),i.progress=Math.min(100,i.progress+r.progressChunk),i.onProgress.dispatch(i,r),r.error?i.onError.dispatch(r.error,i,r):i.onLoad.dispatch(i,r),i._resourcesParsing.splice(i._resourcesParsing.indexOf(r),1),i._queue.idle()&&0===i._resourcesParsing.length&&i._onComplete()},!0)},i(a,[{key:"concurrency",get:function(){return this._queue.concurrency},set:function(e){this._queue.concurrency=e}}]),a}();l._defaultBeforeMiddleware=[],l._defaultAfterMiddleware=[],l.pre=function(e){return l._defaultBeforeMiddleware.push(e),l},l.use=function(e){return l._defaultAfterMiddleware.push(e),l}},{"./Resource":33,"./async":34,"mini-signals":5,"parse-uri":7}],33:[function(e,t,r){"use strict";r.__esModule=!0,r.Resource=void 0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=a(e("parse-uri")),o=a(e("mini-signals"));function a(e){return e&&e.__esModule?e:{default:e}}var s=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),u=null;function l(){}var c=r.Resource=function(){function a(e,t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),"string"!=typeof e||"string"!=typeof t)throw new Error("Both name and url are required for constructing a resource.");r=r||{},this._flags=0,this._setFlag(a.STATUS_FLAGS.DATA_URL,0===t.indexOf("data:")),this.name=e,this.url=t,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===r.crossOrigin?"anonymous":r.crossOrigin,this.timeout=r.timeout||0,this.loadType=r.loadType||this._determineLoadType(),this.xhrType=r.xhrType,this.metadata=r.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=a.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=l,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new o.default,this.onProgress=new o.default,this.onComplete=new o.default,this.onAfterMiddleware=new o.default}return a.setExtensionLoadType=function(e,t){h(a._loadTypeMap,e,t)},a.setExtensionXhrType=function(e,t){h(a._xhrTypeMap,e,t)},a.prototype.complete=function(){this._clearEvents(),this._finish()},a.prototype.abort=function(e){if(!this.error){if(this.error=new Error(e),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=a.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},a.prototype.load=function(e){var t=this;if(!this.isLoading)if(this.isComplete)e&&setTimeout(function(){return e(t)},1);else switch(e&&this.onComplete.once(e),this._setFlag(a.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case a.LOAD_TYPE.IMAGE:this.type=a.TYPE.IMAGE,this._loadElement("image");break;case a.LOAD_TYPE.AUDIO:this.type=a.TYPE.AUDIO,this._loadSourceElement("audio");break;case a.LOAD_TYPE.VIDEO:this.type=a.TYPE.VIDEO,this._loadSourceElement("video");break;case a.LOAD_TYPE.XHR:default:s&&this.crossOrigin?this._loadXdr():this._loadXhr()}},a.prototype._hasFlag=function(e){return 0!=(this._flags&e)},a.prototype._setFlag=function(e,t){this._flags=t?this._flags|e:this._flags&~e},a.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},a.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(a.STATUS_FLAGS.COMPLETE,!0),this._setFlag(a.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},a.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===e&&void 0!==window.Image?this.data=new Image:this.data=document.createElement(e),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},a.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===e&&void 0!==window.Audio?this.data=new Audio:this.data=document.createElement(e),null!==this.data){if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var t=this.metadata.mimeType,r=0;r<this.url.length;++r)this.data.appendChild(this._createSource(e,this.url[r],Array.isArray(t)?t[r]:t));else{var i=this.metadata.mimeType;this.data.appendChild(this._createSource(e,this.url,Array.isArray(i)?i[0]:i))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))}else this.abort("Unsupported element: "+e)},a.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;e.open("GET",this.url,!0),e.timeout=this.timeout,this.xhrType===a.XHR_RESPONSE_TYPE.JSON||this.xhrType===a.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=a.XHR_RESPONSE_TYPE.TEXT:e.responseType=this.xhrType,e.addEventListener("error",this._boundXhrOnError,!1),e.addEventListener("timeout",this._boundXhrOnTimeout,!1),e.addEventListener("abort",this._boundXhrOnAbort,!1),e.addEventListener("progress",this._boundOnProgress,!1),e.addEventListener("load",this._boundXhrOnLoad,!1),e.send()},a.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XDomainRequest;e.timeout=this.timeout||5e3,e.onerror=this._boundXhrOnError,e.ontimeout=this._boundXhrOnTimeout,e.onprogress=this._boundOnProgress,e.onload=this._boundXhrOnLoad,e.open("GET",this.url,!0),setTimeout(function(){return e.send()},1)},a.prototype._createSource=function(e,t,r){r||(r=e+"/"+this._getExtension(t));var i=document.createElement("source");return i.src=t,i.type=r,i},a.prototype._onError=function(e){this.abort("Failed to load element using: "+e.target.nodeName)},a.prototype._onProgress=function(e){e&&e.lengthComputable&&this.onProgress.dispatch(this,e.loaded/e.total)},a.prototype._onTimeout=function(){this.abort("Load timed out.")},a.prototype._xhrOnError=function(){var e=this.xhr;this.abort(f(e)+" Request failed. Status: "+e.status+', text: "'+e.statusText+'"')},a.prototype._xhrOnTimeout=function(){var e=this.xhr;this.abort(f(e)+" Request timed out.")},a.prototype._xhrOnAbort=function(){var e=this.xhr;this.abort(f(e)+" Request was aborted by the user.")},a.prototype._xhrOnLoad=function(){var e=this.xhr,t="",r=void 0===e.status?200:e.status;if(""!==e.responseType&&"text"!==e.responseType&&void 0!==e.responseType||(t=e.responseText),0===r&&(0<t.length||e.responseType===a.XHR_RESPONSE_TYPE.BUFFER)?r=200:1223===r&&(r=204),2==(r/100|0)){if(this.xhrType===a.XHR_RESPONSE_TYPE.TEXT)this.data=t,this.type=a.TYPE.TEXT;else if(this.xhrType===a.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(t),this.type=a.TYPE.JSON}catch(e){return void this.abort("Error trying to parse loaded json: "+e)}else if(this.xhrType===a.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var i=new DOMParser;this.data=i.parseFromString(t,"text/xml")}else{var n=document.createElement("div");n.innerHTML=t,this.data=n}this.type=a.TYPE.XML}catch(e){return void this.abort("Error trying to parse loaded xml: "+e)}else this.data=e.response||t;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},a.prototype._determineCrossOrigin=function(e,t){if(0===e.indexOf("data:"))return"";if(window.origin!==window.location.origin)return"anonymous";t=t||window.location,u||(u=document.createElement("a")),u.href=e;var r=!(e=(0,n.default)(u.href,{strictMode:!0})).port&&""===t.port||e.port===t.port,i=e.protocol?e.protocol+":":"";return e.host===t.hostname&&r&&i===t.protocol?"":"anonymous"},a.prototype._determineXhrType=function(){return a._xhrTypeMap[this.extension]||a.XHR_RESPONSE_TYPE.TEXT},a.prototype._determineLoadType=function(){return a._loadTypeMap[this.extension]||a.LOAD_TYPE.XHR},a.prototype._getExtension=function(){var e=this.url,t="";if(this.isDataUrl){var r=e.indexOf("/");t=e.substring(r+1,e.indexOf(";",r))}else{var i=e.indexOf("?"),n=e.indexOf("#"),a=Math.min(-1<i?i:e.length,-1<n?n:e.length);t=(e=e.substring(0,a)).substring(e.lastIndexOf(".")+1)}return t.toLowerCase()},a.prototype._getMimeFromXhrType=function(e){switch(e){case a.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case a.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case a.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case a.XHR_RESPONSE_TYPE.JSON:return"application/json";case a.XHR_RESPONSE_TYPE.DEFAULT:case a.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},i(a,[{key:"isDataUrl",get:function(){return this._hasFlag(a.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(a.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(a.STATUS_FLAGS.LOADING)}}]),a}();function h(e,t,r){t&&0===t.indexOf(".")&&(t=t.substring(1)),t&&(e[t]=r)}function f(e){return e.toString().replace("object ","")}c.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},c.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},c.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},c.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},c._loadTypeMap={gif:c.LOAD_TYPE.IMAGE,png:c.LOAD_TYPE.IMAGE,bmp:c.LOAD_TYPE.IMAGE,jpg:c.LOAD_TYPE.IMAGE,jpeg:c.LOAD_TYPE.IMAGE,tif:c.LOAD_TYPE.IMAGE,tiff:c.LOAD_TYPE.IMAGE,webp:c.LOAD_TYPE.IMAGE,tga:c.LOAD_TYPE.IMAGE,svg:c.LOAD_TYPE.IMAGE,"svg+xml":c.LOAD_TYPE.IMAGE,mp3:c.LOAD_TYPE.AUDIO,ogg:c.LOAD_TYPE.AUDIO,wav:c.LOAD_TYPE.AUDIO,mp4:c.LOAD_TYPE.VIDEO,webm:c.LOAD_TYPE.VIDEO},c._xhrTypeMap={xhtml:c.XHR_RESPONSE_TYPE.DOCUMENT,html:c.XHR_RESPONSE_TYPE.DOCUMENT,htm:c.XHR_RESPONSE_TYPE.DOCUMENT,xml:c.XHR_RESPONSE_TYPE.DOCUMENT,tmx:c.XHR_RESPONSE_TYPE.DOCUMENT,svg:c.XHR_RESPONSE_TYPE.DOCUMENT,tsx:c.XHR_RESPONSE_TYPE.DOCUMENT,gif:c.XHR_RESPONSE_TYPE.BLOB,png:c.XHR_RESPONSE_TYPE.BLOB,bmp:c.XHR_RESPONSE_TYPE.BLOB,jpg:c.XHR_RESPONSE_TYPE.BLOB,jpeg:c.XHR_RESPONSE_TYPE.BLOB,tif:c.XHR_RESPONSE_TYPE.BLOB,tiff:c.XHR_RESPONSE_TYPE.BLOB,webp:c.XHR_RESPONSE_TYPE.BLOB,tga:c.XHR_RESPONSE_TYPE.BLOB,json:c.XHR_RESPONSE_TYPE.JSON,text:c.XHR_RESPONSE_TYPE.TEXT,txt:c.XHR_RESPONSE_TYPE.TEXT,ttf:c.XHR_RESPONSE_TYPE.BUFFER,otf:c.XHR_RESPONSE_TYPE.BUFFER},c.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",void 0!==t&&(t.exports.default=c)},{"mini-signals":5,"parse-uri":7}],34:[function(e,t,r){"use strict";function o(){}function s(t){return function(){if(null===t)throw new Error("Callback was already called.");var e=t;t=null,e.apply(this,arguments)}}r.__esModule=!0,r.eachSeries=function(r,i,n,a){var o=0,s=r.length;!function e(t){t||o===s?n&&n(t):a?setTimeout(function(){i(r[o++],e)},1):i(r[o++],e)}()},r.queue=function(t,e){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var r=0,n={_tasks:[],concurrency:e,saturated:o,unsaturated:o,buffer:e/4,empty:o,drain:o,error:o,started:!1,paused:!1,push:function(e,t){i(e,!1,t)},kill:function(){r=0,n.drain=o,n.started=!1,n._tasks=[]},unshift:function(e,t){i(e,!0,t)},process:function(){for(;!n.paused&&r<n.concurrency&&n._tasks.length;){var e=n._tasks.shift();0===n._tasks.length&&n.empty(),(r+=1)===n.concurrency&&n.saturated(),t(e.data,s(a(e)))}},length:function(){return n._tasks.length},running:function(){return r},idle:function(){return n._tasks.length+r===0},pause:function(){!0!==n.paused&&(n.paused=!0)},resume:function(){if(!1!==n.paused){n.paused=!1;for(var e=1;e<=n.concurrency;e++)n.process()}}};function i(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,null==e&&n.idle())setTimeout(function(){return n.drain()},1);else{var i={data:e,callback:"function"==typeof r?r:o};t?n._tasks.unshift(i):n._tasks.push(i),setTimeout(function(){return n.process()},1)}}function a(e){return function(){r-=1,e.callback.apply(e,arguments),null!=arguments[0]&&n.error(arguments[0],e.data),r<=n.concurrency-n.buffer&&n.unsaturated(),n.idle()&&n.drain(),n.process()}}return n}},{}],35:[function(e,t,r){"use strict";r.__esModule=!0,r.encodeBinary=i;var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(e){for(var t="",r=0;r<e.length;){for(var i=[0,0,0],n=[0,0,0,0],a=0;a<i.length;++a)r<e.length?i[a]=255&e.charCodeAt(r++):i[a]=0;switch(n[0]=i[0]>>2,n[1]=(3&i[0])<<4|i[1]>>4,n[2]=(15&i[1])<<2|i[2]>>6,n[3]=63&i[2],r-(e.length-1)){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64}for(var o=0;o<n.length;++o)t+=s.charAt(n[o])}return t}void 0!==t&&(t.exports.default=i)},{}],36:[function(e,t,r){"use strict";var i=e("./Loader").Loader,n=e("./Resource").Resource,a=e("./async"),o=e("./b64");i.Resource=n,i.async=a,i.encodeBinary=o,i.base64=o,t.exports=i,t.exports.Loader=i,t.exports.default=i},{"./Loader":32,"./Resource":33,"./async":34,"./b64":35}],37:[function(e,t,r){"use strict";r.__esModule=!0,r.blobMiddlewareFactory=function(){return function(e,t){if(e.data){if(e.xhr&&e.xhrType===n.Resource.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&"string"!=typeof e.data){if(0===e.data.type.indexOf("image")){var r=o.createObjectURL(e.data);return e.blob=e.data,e.data=new Image,e.data.src=r,e.type=n.Resource.TYPE.IMAGE,void(e.data.onload=function(){o.revokeObjectURL(r),e.data.onload=null,t()})}}else{var i=e.xhr.getResponseHeader("content-type");if(i&&0===i.indexOf("image"))return e.data=new Image,e.data.src="data:"+i+";base64,"+(0,a.encodeBinary)(e.xhr.responseText),e.type=n.Resource.TYPE.IMAGE,void(e.data.onload=function(){e.data.onload=null,t()})}t()}else t()}};var n=e("../../Resource"),a=e("../../b64"),o=window.URL||window.webkitURL},{"../../Resource":33,"../../b64":35}],38:[function(e,t,r){"use strict";var R=e("punycode"),D=e("./util");function M(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=a,r.resolve=function(e,t){return a(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?a(e,!1,!0).resolveObject(t):t},r.format=function(e){D.isString(e)&&(e=a(e));return e instanceof M?e.format():M.prototype.format.call(e)},r.Url=M;var j=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,L=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),z=["'"].concat(n),F=["%","/","?",";","#"].concat(z),B=["/","?","#"],N=/^[+a-z0-9A-Z_-]{0,63}$/,U=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,X={javascript:!0,"javascript:":!0},q={javascript:!0,"javascript:":!0},H={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=e("querystring");function a(e,t,r){if(e&&D.isObject(e)&&e instanceof M)return e;var i=new M;return i.parse(e,t,r),i}M.prototype.parse=function(e,t,r){if(!D.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),n=-1!==i&&i<e.indexOf("#")?"?":"#",a=e.split(n);a[0]=a[0].replace(/\\/g,"/");var o=e=a.join(n);if(o=o.trim(),!r&&1===e.split("#").length){var s=L.exec(o);if(s)return this.path=o,this.href=o,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?W.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=j.exec(o);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,o=o.substr(u.length)}if(r||u||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===o.substr(0,2);!c||u&&q[u]||(o=o.substr(2),this.slashes=!0)}if(!q[u]&&(c||u&&!H[u])){for(var h,f,d=-1,p=0;p<B.length;p++){-1!==(m=o.indexOf(B[p]))&&(-1===d||m<d)&&(d=m)}-1!==(f=-1===d?o.lastIndexOf("@"):o.lastIndexOf("@",d))&&(h=o.slice(0,f),o=o.slice(f+1),this.auth=decodeURIComponent(h)),d=-1;for(p=0;p<F.length;p++){var m;-1!==(m=o.indexOf(F[p]))&&(-1===d||m<d)&&(d=m)}-1===d&&(d=o.length),this.host=o.slice(0,d),o=o.slice(d),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),b=(p=0,v.length);p<b;p++){var y=v[p];if(y&&!y.match(N)){for(var _="",w=0,x=y.length;w<x;w++)127<y.charCodeAt(w)?_+="x":_+=y[w];if(!_.match(N)){var k=v.slice(0,p),T=v.slice(p+1),S=y.match(U);S&&(k.push(S[1]),T.unshift(S[2])),T.length&&(o="/"+T.join(".")+o),this.hostname=k.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=R.toASCII(this.hostname));var E=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+E,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!X[l])for(p=0,b=z.length;p<b;p++){var P=z[p];if(-1!==o.indexOf(P)){var C=encodeURIComponent(P);C===P&&(C=escape(P)),o=o.split(P).join(C)}}var A=o.indexOf("#");-1!==A&&(this.hash=o.substr(A),o=o.slice(0,A));var O=o.indexOf("?");if(-1!==O?(this.search=o.substr(O),this.query=o.substr(O+1),t&&(this.query=W.parse(this.query)),o=o.slice(0,O)):t&&(this.search="",this.query={}),o&&(this.pathname=o),H[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){E=this.pathname||"";var I=this.search||"";this.path=E+I}return this.href=this.format(),this},M.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",n=!1,a="";this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&D.isObject(this.query)&&Object.keys(this.query).length&&(a=W.stringify(this.query));var o=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||H[t])&&!1!==n?(n="//"+(n||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):n||(n=""),i&&"#"!==i.charAt(0)&&(i="#"+i),o&&"?"!==o.charAt(0)&&(o="?"+o),t+n+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(o=o.replace("#","%23"))+i},M.prototype.resolve=function(e){return this.resolveObject(a(e,!1,!0)).format()},M.prototype.resolveObject=function(e){if(D.isString(e)){var t=new M;t.parse(e,!1,!0),e=t}for(var r=new M,i=Object.keys(this),n=0;n<i.length;n++){var a=i[n];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var o=Object.keys(e),s=0;s<o.length;s++){var u=o[s];"protocol"!==u&&(r[u]=e[u])}return H[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!H[e.protocol]){for(var l=Object.keys(e),c=0;c<l.length;c++){var h=l[c];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||q[e.protocol])r.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),r.pathname=f.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||m||r.host&&e.pathname,b=v,y=r.pathname&&r.pathname.split("/")||[],_=(f=e.pathname&&e.pathname.split("/")||[],r.protocol&&!H[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===y[0]?y[0]=r.host:y.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),v=v&&(""===f[0]||""===y[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,y=f;else if(f.length)y||(y=[]),y.pop(),y=y.concat(f),r.search=e.search,r.query=e.query;else if(!D.isNullOrUndefined(e.search)){if(_)r.hostname=r.host=y.shift(),(S=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift());return r.search=e.search,r.query=e.query,D.isNull(r.pathname)&&D.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=y.slice(-1)[0],x=(r.host||e.host||1<y.length)&&("."===w||".."===w)||""===w,k=0,T=y.length;0<=T;T--)"."===(w=y[T])?y.splice(T,1):".."===w?(y.splice(T,1),k++):k&&(y.splice(T,1),k--);if(!v&&!b)for(;k--;k)y.unshift("..");!v||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),x&&"/"!==y.join("/").substr(-1)&&y.push("");var S,E=""===y[0]||y[0]&&"/"===y[0].charAt(0);_&&(r.hostname=r.host=E?"":y.length?y.shift():"",(S=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift()));return(v=v||r.host&&y.length)&&!E&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),D.isNull(r.pathname)&&D.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},M.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":39,punycode:27,querystring:30}],39:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],40:[function(e,t,r){"use strict";r.__esModule=!0;var u=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),i=a(e("ismobilejs")),n=a(e("./accessibleTarget"));function a(e){return e&&e.__esModule?e:{default:e}}u.utils.mixins.delayMixin(u.DisplayObject.prototype,n.default);var o=function(){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),!i.default.tablet&&!i.default.phone||navigator.isCocoonJS||this.createTouchHook();var t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.zIndex=2,this.div=t,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=e,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessabillity=!1,window.addEventListener("keydown",this._onKeyDown,!1)}return r.prototype.createTouchHook=function(){var e=this,t=document.createElement("button");t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2,t.style.backgroundColor="#FF0000",t.title="HOOK DIV",t.addEventListener("focus",function(){e.isMobileAccessabillity=!0,e.activate(),document.body.removeChild(t)}),document.body.appendChild(t)},r.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},r.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessabillity&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},r.prototype.updateAccessibleObjects=function(e){if(e.visible){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);for(var t=e.children,r=0;r<t.length;r++)this.updateAccessibleObjects(t[r])}},r.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),t=e.width/this.renderer.width,r=e.height/this.renderer.height,i=this.div;i.style.left=e.left+"px",i.style.top=e.top+"px",i.style.width=this.renderer.width+"px",i.style.height=this.renderer.height+"px";for(var n=0;n<this.children.length;n++){var a=this.children[n];if(a.renderId!==this.renderId)a._accessibleActive=!1,u.utils.removeItems(this.children,n,1),this.div.removeChild(a._accessibleDiv),this.pool.push(a._accessibleDiv),a._accessibleDiv=null,n--,0===this.children.length&&this.deactivate();else{i=a._accessibleDiv;var o=a.hitArea,s=a.worldTransform;a.hitArea?(i.style.left=(s.tx+o.x*s.a)*t+"px",i.style.top=(s.ty+o.y*s.d)*r+"px",i.style.width=o.width*s.a*t+"px",i.style.height=o.height*s.d*r+"px"):(o=a.getBounds(),this.capHitArea(o),i.style.left=o.x*t+"px",i.style.top=o.y*r+"px",i.style.width=o.width*t+"px",i.style.height=o.height*r+"px",i.title!==a.accessibleTitle&&null!==a.accessibleTitle&&(i.title=a.accessibleTitle),i.getAttribute("aria-label")!==a.accessibleHint&&null!==a.accessibleHint&&i.setAttribute("aria-label",a.accessibleHint))}}this.renderId++}},r.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0),e.x+e.width>this.renderer.width&&(e.width=this.renderer.width-e.x),e.y+e.height>this.renderer.height&&(e.height=this.renderer.height-e.y)},r.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width="100px",t.style.height="100px",t.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=2,t.style.borderStyle="none",-1<navigator.userAgent.toLowerCase().indexOf("chrome")?t.setAttribute("aria-live","off"):t.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?t.setAttribute("aria-relevant","additions"):t.setAttribute("aria-relevant","text"),t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),e.accessibleTitle&&null!==e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleHint&&null!==e.accessibleHint||(t.title="displayObject "+e.tabIndex),e.accessibleHint&&null!==e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),e._accessibleActive=!0,(e._accessibleDiv=t).displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},r.prototype._onClick=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"click",t.eventData)},r.prototype._onFocus=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","assertive");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseover",t.eventData)},r.prototype._onFocusOut=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","polite");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseout",t.eventData)},r.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},r.prototype._onMouseMove=function(e){0===e.movementX&&0===e.movementY||this.deactivate()},r.prototype.destroy=function(){this.div=null;for(var e=0;e<this.children.length;e++)this.children[e].div=null;window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},r}();r.default=o,u.WebGLRenderer.registerPlugin("accessibility",o),u.CanvasRenderer.registerPlugin("accessibility",o)},{"../core":65,"./accessibleTarget":41,ismobilejs:4}],41:[function(e,t,r){"use strict";r.__esModule=!0,r.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},{}],42:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./accessibleTarget");Object.defineProperty(r,"accessibleTarget",{enumerable:!0,get:function(){return a(i).default}});var n=e("./AccessibilityManager");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"AccessibilityManager",{enumerable:!0,get:function(){return a(n).default}})},{"./AccessibilityManager":40,"./accessibleTarget":41}],43:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),o=e("./autoDetectRenderer"),s=a(e("./display/Container")),u=e("./ticker"),l=a(e("./settings")),n=e("./const");function a(e){return e&&e.__esModule?e:{default:e}}var c=function(){function a(e,t,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),"number"==typeof e&&(e=Object.assign({width:e,height:t||l.default.RENDER_OPTIONS.height,forceCanvas:!!i,sharedTicker:!!n},r)),this._options=e=Object.assign({autoStart:!0,sharedTicker:!1,forceCanvas:!1,sharedLoader:!1},e),this.renderer=(0,o.autoDetectRenderer)(e),this.stage=new s.default,this._ticker=null,this.ticker=e.sharedTicker?u.shared:new u.Ticker,e.autoStart&&this.start()}return a.prototype.render=function(){this.renderer.render(this.stage)},a.prototype.stop=function(){this._ticker.stop()},a.prototype.start=function(){this._ticker.start()},a.prototype.destroy=function(e,t){if(this._ticker){var r=this._ticker;this.ticker=null,r.destroy()}this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null,this._options=null},i(a,[{key:"ticker",set:function(e){this._ticker&&this._ticker.remove(this.render,this),(this._ticker=e)&&e.add(this.render,this,n.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}},{key:"view",get:function(){return this.renderer.view}},{key:"screen",get:function(){return this.renderer.screen}}]),a}();r.default=c},{"./autoDetectRenderer":45,"./const":46,"./display/Container":48,"./settings":101,"./ticker":121}],44:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("pixi-gl-core"),a=e("./settings"),s=(i=a)&&i.__esModule?i:{default:i};function u(e,t){if(e instanceof Array){if("precision"!==e[0].substring(0,9)){var r=e.slice(0);return r.unshift("precision "+t+" float;"),r}}else if("precision"!==e.trim().substring(0,9))return"precision "+t+" float;\n"+e;return e}var o=function(a){function o(e,t,r,i,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this,e,u(t,n||s.default.PRECISION_VERTEX),u(r,n||s.default.PRECISION_FRAGMENT),void 0,i))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,a),o}(n.GLShader);r.default=o},{"./settings":101,"pixi-gl-core":15}],45:[function(e,t,r){"use strict";r.__esModule=!0,r.autoDetectRenderer=function(e,t,r,i){var n=e&&e.forceCanvas;void 0!==i&&(n=i);return n||!a.isWebGLSupported()?new o.default(e,t,r):new s.default(e,t,r)};var a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./utils")),o=i(e("./renderers/canvas/CanvasRenderer")),s=i(e("./renderers/webgl/WebGLRenderer"));function i(e){return e&&e.__esModule?e:{default:e}}},{"./renderers/canvas/CanvasRenderer":77,"./renderers/webgl/WebGLRenderer":84,"./utils":125}],46:[function(e,t,r){"use strict";r.__esModule=!0;r.VERSION="4.8.8",r.PI_2=2*Math.PI,r.RAD_TO_DEG=180/Math.PI,r.DEG_TO_RAD=Math.PI/180,r.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},r.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,NORMAL_NPM:17,ADD_NPM:18,SCREEN_NPM:19},r.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},r.SCALE_MODES={LINEAR:0,NEAREST:1},r.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},r.GC_MODES={AUTO:0,MANUAL:1},r.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,r.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i,r.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,r.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},r.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},r.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},r.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},r.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50}},{}],47:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("../math");var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?i.Rectangle.EMPTY:((e=e||new i.Rectangle(0,0,1,1)).x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addQuad=function(e){var t=this.minX,r=this.minY,i=this.maxX,n=this.maxY,a=e[0],o=e[1];t=a<t?a:t,r=o<r?o:r,i=i<a?a:i,n=n<o?o:n,t=(a=e[2])<t?a:t,r=(o=e[3])<r?o:r,i=i<a?a:i,n=n<o?o:n,t=(a=e[4])<t?a:t,r=(o=e[5])<r?o:r,i=i<a?a:i,n=n<o?o:n,t=(a=e[6])<t?a:t,r=(o=e[7])<r?o:r,i=i<a?a:i,n=n<o?o:n,this.minX=t,this.minY=r,this.maxX=i,this.maxY=n},e.prototype.addFrame=function(e,t,r,i,n){var a=e.worldTransform,o=a.a,s=a.b,u=a.c,l=a.d,c=a.tx,h=a.ty,f=this.minX,d=this.minY,p=this.maxX,m=this.maxY,g=o*t+u*r+c,v=s*t+l*r+h;f=g<f?g:f,d=v<d?v:d,p=p<g?g:p,m=m<v?v:m,f=(g=o*i+u*r+c)<f?g:f,d=(v=s*i+l*r+h)<d?v:d,p=p<g?g:p,m=m<v?v:m,f=(g=o*t+u*n+c)<f?g:f,d=(v=s*t+l*n+h)<d?v:d,p=p<g?g:p,m=m<v?v:m,f=(g=o*i+u*n+c)<f?g:f,d=(v=s*i+l*n+h)<d?v:d,p=p<g?g:p,m=m<v?v:m,this.minX=f,this.minY=d,this.maxX=p,this.maxY=m},e.prototype.addVertices=function(e,t,r,i){for(var n=e.worldTransform,a=n.a,o=n.b,s=n.c,u=n.d,l=n.tx,c=n.ty,h=this.minX,f=this.minY,d=this.maxX,p=this.maxY,m=r;m<i;m+=2){var g=t[m],v=t[m+1],b=a*g+s*v+l,y=u*v+o*g+c;h=b<h?b:h,f=y<f?y:f,d=d<b?b:d,p=p<y?y:p}this.minX=h,this.minY=f,this.maxX=d,this.maxY=p},e.prototype.addBounds=function(e){var t=this.minX,r=this.minY,i=this.maxX,n=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<r?e.minY:r,this.maxX=e.maxX>i?e.maxX:i,this.maxY=e.maxY>n?e.maxY:n},e.prototype.addBoundsMask=function(e,t){var r=e.minX>t.minX?e.minX:t.minX,i=e.minY>t.minY?e.minY:t.minY,n=e.maxX<t.maxX?e.maxX:t.maxX,a=e.maxY<t.maxY?e.maxY:t.maxY;if(r<=n&&i<=a){var o=this.minX,s=this.minY,u=this.maxX,l=this.maxY;this.minX=r<o?r:o,this.minY=i<s?i:s,this.maxX=u<n?n:u,this.maxY=l<a?a:l}},e.prototype.addBoundsArea=function(e,t){var r=e.minX>t.x?e.minX:t.x,i=e.minY>t.y?e.minY:t.y,n=e.maxX<t.x+t.width?e.maxX:t.x+t.width,a=e.maxY<t.y+t.height?e.maxY:t.y+t.height;if(r<=n&&i<=a){var o=this.minX,s=this.minY,u=this.maxX,l=this.maxY;this.minX=r<o?r:o,this.minY=i<s?i:s,this.maxX=u<n?n:u,this.maxY=l<a?a:l}},e}();r.default=n},{"../math":70}],48:[function(e,t,r){"use strict";r.__esModule=!0;var i,a=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),o=e("../utils"),n=e("./DisplayObject");var s=function(n){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this));return e.children=[],e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n),t.prototype.onChildrenChange=function(){},t.prototype.addChild=function(e){var t=arguments.length;if(1<t)for(var r=0;r<t;r++)this.addChild(arguments[r]);else e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.push(e),this._boundsID++,this.onChildrenChange(this.children.length-1),e.emit("added",this);return e},t.prototype.addChildAt=function(e,t){if(t<0||t>this.children.length)throw new Error(e+"addChildAt: The index "+t+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),e},t.prototype.swapChildren=function(e,t){if(e!==t){var r=this.getChildIndex(e),i=this.getChildIndex(t);this.children[r]=t,this.children[i]=e,this.onChildrenChange(r<i?r:i)}},t.prototype.getChildIndex=function(e){var t=this.children.indexOf(e);if(-1===t)throw new Error("The supplied DisplayObject must be a child of the caller");return t},t.prototype.setChildIndex=function(e,t){if(t<0||t>=this.children.length)throw new Error("The index "+t+" supplied is out of bounds "+this.children.length);var r=this.getChildIndex(e);(0,o.removeItems)(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(e){var t=arguments.length;if(1<t)for(var r=0;r<t;r++)this.removeChild(arguments[r]);else{var i=this.children.indexOf(e);if(-1===i)return null;e.parent=null,e.transform._parentID=-1,(0,o.removeItems)(this.children,i,1),this._boundsID++,this.onChildrenChange(i),e.emit("removed",this)}return e},t.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,(0,o.removeItems)(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),t},t.prototype.removeChildren=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],r=e,i="number"==typeof t?t:this.children.length,n=i-r,a=void 0;if(0<n&&n<=i){a=this.children.splice(r,n);for(var o=0;o<a.length;++o)a[o].parent=null,a[o].transform&&(a[o].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(var s=0;s<a.length;++s)a[s].emit("removed",this);return a}if(0==n&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},t.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,t=this.children.length;e<t;++e){var r=this.children[e];r.visible&&r.updateTransform()}},t.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var t=this.children[e];t.visible&&t.renderable&&(t.calculateBounds(),t._mask?(t._mask.calculateBounds(),this._bounds.addBoundsMask(t._bounds,t._mask._bounds)):t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds))}this._lastBoundsID=this._boundsID},t.prototype._calculateBounds=function(){},t.prototype.renderWebGL=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this._filters)this.renderAdvancedWebGL(e);else{this._renderWebGL(e);for(var t=0,r=this.children.length;t<r;++t)this.children[t].renderWebGL(e)}},t.prototype.renderAdvancedWebGL=function(e){e.flush();var t=this._filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]);for(var i=this._enabledFilters.length=0;i<t.length;i++)t[i].enabled&&this._enabledFilters.push(t[i]);this._enabledFilters.length&&e.filterManager.pushFilter(this,this._enabledFilters)}r&&e.maskManager.pushMask(this,this._mask),this._renderWebGL(e);for(var n=0,a=this.children.length;n<a;n++)this.children[n].renderWebGL(e);e.flush(),r&&e.maskManager.popMask(this,this._mask),t&&this._enabledFilters&&this._enabledFilters.length&&e.filterManager.popFilter()},t.prototype._renderWebGL=function(e){},t.prototype._renderCanvas=function(e){},t.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e);for(var t=0,r=this.children.length;t<r;++t)this.children[t].renderCanvas(e);this._mask&&e.maskManager.popMask(e)}},t.prototype.destroy=function(e){n.prototype.destroy.call(this);var t="boolean"==typeof e?e:e&&e.children,r=this.removeChildren(0,this.children.length);if(t)for(var i=0;i<r.length;++i)r[i].destroy(e)},a(t,[{key:"width",get:function(){return this.scale.x*this.getLocalBounds().width},set:function(e){var t=this.getLocalBounds().width;this.scale.x=0!==t?e/t:1,this._width=e}},{key:"height",get:function(){return this.scale.y*this.getLocalBounds().height},set:function(e){var t=this.getLocalBounds().height;this.scale.y=0!==t?e/t:1,this._height=e}}]),t}(((i=n)&&i.__esModule?i:{default:i}).default);(r.default=s).prototype.containerUpdateTransform=s.prototype.updateTransform},{"../utils":125,"./DisplayObject":49}],49:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),i=h(e("eventemitter3")),a=e("../const"),o=h(e("../settings")),s=h(e("./TransformStatic")),u=h(e("./Transform")),l=h(e("./Bounds")),c=e("../math");function h(e){return e&&e.__esModule?e:{default:e}}var f=function(r){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this)),t=o.default.TRANSFORM_MODE===a.TRANSFORM_MODE.STATIC?s.default:u.default;return e.tempDisplayObjectParent=null,e.transform=new t,e.alpha=1,e.visible=!0,e.renderable=!0,e.parent=null,e.worldAlpha=1,e.filterArea=null,e._filters=null,e._enabledFilters=null,e._bounds=new l.default,e._boundsID=0,e._lastBoundsID=-1,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._destroyed=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},i.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},i.prototype.getBounds=function(e,t){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&this.calculateBounds(),t||(this._boundsRect||(this._boundsRect=new c.Rectangle),t=this._boundsRect),this._bounds.getRectangle(t)},i.prototype.getLocalBounds=function(e){var t=this.transform,r=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform,e||(this._localBoundsRect||(this._localBoundsRect=new c.Rectangle),e=this._localBoundsRect);var i=this.getBounds(!1,e);return this.parent=r,this.transform=t,i},i.prototype.toGlobal=function(e,t){return 2<arguments.length&&void 0!==arguments[2]&&arguments[2]||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,t)},i.prototype.toLocal=function(e,t,r,i){return t&&(e=t.toGlobal(e,r,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,r)},i.prototype.renderWebGL=function(e){},i.prototype.renderCanvas=function(e){},i.prototype.setParent=function(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e},i.prototype.setTransform=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,o=6<arguments.length&&void 0!==arguments[6]?arguments[6]:0,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:0,u=8<arguments.length&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=e,this.position.y=t,this.scale.x=r||1,this.scale.y=i||1,this.rotation=n,this.skew.x=a,this.skew.y=o,this.pivot.x=s,this.pivot.y=u,this},i.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},n(i,[{key:"_tempDisplayObjectParent",get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new i),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(e){this.transform.position.x=e}},{key:"y",get:function(){return this.position.y},set:function(e){this.transform.position.y=e}},{key:"worldTransform",get:function(){return this.transform.worldTransform}},{key:"localTransform",get:function(){return this.transform.localTransform}},{key:"position",get:function(){return this.transform.position},set:function(e){this.transform.position.copy(e)}},{key:"scale",get:function(){return this.transform.scale},set:function(e){this.transform.scale.copy(e)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copy(e)}},{key:"skew",get:function(){return this.transform.skew},set:function(e){this.transform.skew.copy(e)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e}},{key:"worldVisible",get:function(){var e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0}},{key:"mask",get:function(){return this._mask},set:function(e){this._mask&&(this._mask.renderable=!0,this._mask.isMask=!1),this._mask=e,this._mask&&(this._mask.renderable=!1,this._mask.isMask=!0)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(e){this._filters=e&&e.slice()}}]),i}(i.default);(r.default=f).prototype.displayObjectUpdateTransform=f.prototype.updateTransform},{"../const":46,"../math":70,"../settings":101,"./Bounds":47,"./Transform":50,"./TransformStatic":52,eventemitter3:3}],50:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=e("../math"),o=e("./TransformBase");var s=function(t){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this));return e.position=new a.Point(0,0),e.scale=new a.Point(1,1),e.skew=new a.ObservablePoint(e.updateSkew,e,0,0),e.pivot=new a.Point(0,0),e._rotation=0,e._cx=1,e._sx=0,e._cy=0,e._sy=1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x)},r.prototype.updateLocalTransform=function(){var e=this.localTransform;e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d)},r.prototype.updateTransform=function(e){var t=this.localTransform;t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d);var r=e.worldTransform,i=this.worldTransform;i.a=t.a*r.a+t.b*r.c,i.b=t.a*r.b+t.b*r.d,i.c=t.c*r.a+t.d*r.c,i.d=t.c*r.b+t.d*r.d,i.tx=t.tx*r.a+t.ty*r.c+r.tx,i.ty=t.tx*r.b+t.ty*r.d+r.ty,this._worldID++},r.prototype.setFromMatrix=function(e){e.decompose(this)},n(r,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation=e,this.updateSkew()}}]),r}(((i=o)&&i.__esModule?i:{default:i}).default);r.default=s},{"../math":70,"./TransformBase":51}],51:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("../math");var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.worldTransform=new i.Matrix,this.localTransform=new i.Matrix,this._worldID=0,this._parentID=0}return e.prototype.updateLocalTransform=function(){},e.prototype.updateTransform=function(e){var t=e.worldTransform,r=this.worldTransform,i=this.localTransform;r.a=i.a*t.a+i.b*t.c,r.b=i.a*t.b+i.b*t.d,r.c=i.c*t.a+i.d*t.c,r.d=i.c*t.b+i.d*t.d,r.tx=i.tx*t.a+i.ty*t.c+t.tx,r.ty=i.tx*t.b+i.ty*t.d+t.ty,this._worldID++},e}();(r.default=n).prototype.updateWorldTransform=n.prototype.updateTransform,n.IDENTITY=new n},{"../math":70}],52:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=e("../math"),o=e("./TransformBase");var s=function(t){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this));return e.position=new a.ObservablePoint(e.onChange,e,0,0),e.scale=new a.ObservablePoint(e.onChange,e,1,1),e.pivot=new a.ObservablePoint(e.onChange,e,0,0),e.skew=new a.ObservablePoint(e.updateSkew,e,0,0),e._rotation=0,e._cx=1,e._sx=0,e._cy=0,e._sy=1,e._localID=0,e._currentLocalID=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.onChange=function(){this._localID++},r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x),this._localID++},r.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale._x,e.b=this._sx*this.scale._x,e.c=this._cy*this.scale._y,e.d=this._sy*this.scale._y,e.tx=this.position._x-(this.pivot._x*e.a+this.pivot._y*e.c),e.ty=this.position._y-(this.pivot._x*e.b+this.pivot._y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},r.prototype.updateTransform=function(e){var t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale._x,t.b=this._sx*this.scale._x,t.c=this._cy*this.scale._y,t.d=this._sy*this.scale._y,t.tx=this.position._x-(this.pivot._x*t.a+this.pivot._y*t.c),t.ty=this.position._y-(this.pivot._x*t.b+this.pivot._y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){var r=e.worldTransform,i=this.worldTransform;i.a=t.a*r.a+t.b*r.c,i.b=t.a*r.b+t.b*r.d,i.c=t.c*r.a+t.d*r.c,i.d=t.c*r.b+t.d*r.d,i.tx=t.tx*r.a+t.ty*r.c+r.tx,i.ty=t.tx*r.b+t.ty*r.d+r.ty,this._parentID=e._worldID,this._worldID++}},r.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},n(r,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}}]),r}(((i=o)&&i.__esModule?i:{default:i}).default);r.default=s},{"../math":70,"./TransformBase":51}],53:[function(e,t,r){"use strict";r.__esModule=!0;var i=n(e("../display/Container")),a=n(e("../textures/RenderTexture")),o=n(e("../textures/Texture")),s=n(e("./GraphicsData")),u=n(e("../sprites/Sprite")),l=e("../math"),c=e("../utils"),T=e("../const"),h=n(e("../display/Bounds")),f=n(e("./utils/bezierCurveTo")),d=n(e("../renderers/canvas/CanvasRenderer"));function n(e){return e&&e.__esModule?e:{default:e}}var p=void 0,m=new l.Matrix,g=new l.Point,v=new Float32Array(4),b=new Float32Array(4),y=function(n){function k(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this));return t.fillAlpha=1,t.lineWidth=0,t.nativeLines=e,t.lineColor=0,t.lineAlignment=.5,t.graphicsData=[],t.tint=16777215,t._prevTint=16777215,t.blendMode=T.BLEND_MODES.NORMAL,t.currentPath=null,t._webGL={},t.isMask=!1,t.boundsPadding=0,t._localBounds=new h.default,t.dirty=0,t.fastRectDirty=-1,t.clearDirty=0,t.boundsDirty=-1,t.cachedSpriteDirty=!1,t._spriteRect=null,t._fastRect=!1,t._prevRectTint=null,t._prevRectFillColor=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(k,n),k.prototype.clone=function(){var e=new k;e.renderable=this.renderable,e.fillAlpha=this.fillAlpha,e.lineWidth=this.lineWidth,e.lineColor=this.lineColor,e.lineAlignment=this.lineAlignment,e.tint=this.tint,e.blendMode=this.blendMode,e.isMask=this.isMask,e.boundsPadding=this.boundsPadding,e.dirty=0,e.cachedSpriteDirty=this.cachedSpriteDirty;for(var t=0;t<this.graphicsData.length;++t)e.graphicsData.push(this.graphicsData[t].clone());return e.currentPath=e.graphicsData[e.graphicsData.length-1],e.updateLocalBounds(),e},k.prototype._quadraticCurveLength=function(e,t,r,i,n,a){var o=e-2*r+n,s=t-2*i+a,u=2*r-2*e,l=2*i-2*t,c=4*(o*o+s*s),h=4*(o*u+s*l),f=u*u+l*l,d=2*Math.sqrt(c+h+f),p=Math.sqrt(c),m=2*c*p,g=2*Math.sqrt(f),v=h/p;return(m*d+p*h*(d-g)+(4*f*c-h*h)*Math.log((2*p+v+d)/(v+g)))/(4*m)},k.prototype._bezierCurveLength=function(e,t,r,i,n,a,o,s){for(var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=e,_=t,w=1;w<=10;++w)v=y-(m=(p=(d=(f=1-(l=w/10))*f)*f)*e+3*d*l*r+3*f*(c=l*l)*n+(h=c*l)*o),b=_-(g=p*t+3*d*l*i+3*f*c*a+h*s),y=m,_=g,u+=Math.sqrt(v*v+b*b);return u},k.prototype._segmentsCount=function(e){var t=Math.ceil(e/k.CURVES.maxLength);return t<k.CURVES.minSegments?t=k.CURVES.minSegments:t>k.CURVES.maxSegments&&(t=k.CURVES.maxSegments),t},k.prototype.lineStyle=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.5;if(this.lineWidth=e,this.lineColor=t,this.lineAlpha=r,this.lineAlignment=i,this.currentPath)if(this.currentPath.shape.points.length){var n=new l.Polygon(this.currentPath.shape.points.slice(-2));n.closed=!1,this.drawShape(n)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha,this.currentPath.lineAlignment=this.lineAlignment;return this},k.prototype.moveTo=function(e,t){var r=new l.Polygon([e,t]);return r.closed=!1,this.drawShape(r),this},k.prototype.lineTo=function(e,t){var r=this.currentPath.shape.points,i=r[r.length-2],n=r[r.length-1];return i===e&&n===t||(r.push(e,t),this.dirty++),this},k.prototype.quadraticCurveTo=function(e,t,r,i){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var n=this.currentPath.shape.points,a=0,o=0;0===n.length&&this.moveTo(0,0);for(var s=n[n.length-2],u=n[n.length-1],l=k.CURVES.adaptive?this._segmentsCount(this._quadraticCurveLength(s,u,e,t,r,i)):20,c=1;c<=l;++c){var h=c/l;a=s+(e-s)*h,o=u+(t-u)*h,n.push(a+(e+(r-e)*h-a)*h,o+(t+(i-t)*h-o)*h)}return this.dirty++,this},k.prototype.bezierCurveTo=function(e,t,r,i,n,a){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var o=this.currentPath.shape.points,s=o[o.length-2],u=o[o.length-1];o.length-=2;var l=k.CURVES.adaptive?this._segmentsCount(this._bezierCurveLength(s,u,e,t,r,i,n,a)):20;return(0,f.default)(s,u,e,t,r,i,n,a,l,o),this.dirty++,this},k.prototype.arcTo=function(e,t,r,i,n){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(e,t):this.moveTo(e,t);var a=this.currentPath.shape.points,o=a[a.length-2],s=a[a.length-1]-t,u=o-e,l=i-t,c=r-e,h=Math.abs(s*c-u*l);if(h<1e-8||0===n)a[a.length-2]===e&&a[a.length-1]===t||a.push(e,t);else{var f=s*s+u*u,d=l*l+c*c,p=s*l+u*c,m=n*Math.sqrt(f)/h,g=n*Math.sqrt(d)/h,v=m*p/f,b=g*p/d,y=m*c+g*u,_=m*l+g*s,w=u*(g+v),x=s*(g+v),k=c*(m+b),T=l*(m+b),S=Math.atan2(x-_,w-y),E=Math.atan2(T-_,k-y);this.arc(y+e,_+t,n,S,E,c*s<u*l)}return this.dirty++,this},k.prototype.arc=function(e,t,r,i,n){var a=5<arguments.length&&void 0!==arguments[5]&&arguments[5];if(i===n)return this;!a&&n<=i?n+=T.PI_2:a&&i<=n&&(i+=T.PI_2);var o=n-i,s=k.CURVES.adaptive?this._segmentsCount(Math.abs(o)*r):40*Math.ceil(Math.abs(o)/T.PI_2);if(0==o)return this;var u=e+Math.cos(i)*r,l=t+Math.sin(i)*r,c=this.currentPath?this.currentPath.shape.points:null;if(c){var h=Math.abs(c[c.length-2]-u),f=Math.abs(c[c.length-1]-l);h<.001&&f<.001||c.push(u,l)}else this.moveTo(u,l),c=this.currentPath.shape.points;for(var d=o/(2*s),p=2*d,m=Math.cos(d),g=Math.sin(d),v=s-1,b=v%1/v,y=0;y<=v;++y){var _=d+i+p*(y+b*y),w=Math.cos(_),x=-Math.sin(_);c.push((m*w+g*x)*r+e,(m*-x+g*w)*r+t)}return this.dirty++,this},k.prototype.beginFill=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return this.filling=!0,this.fillColor=e,this.fillAlpha=t,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},k.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},k.prototype.drawRect=function(e,t,r,i){return this.drawShape(new l.Rectangle(e,t,r,i)),this},k.prototype.drawRoundedRect=function(e,t,r,i,n){return this.drawShape(new l.RoundedRectangle(e,t,r,i,n)),this},k.prototype.drawCircle=function(e,t,r){return this.drawShape(new l.Circle(e,t,r)),this},k.prototype.drawEllipse=function(e,t,r,i){return this.drawShape(new l.Ellipse(e,t,r,i)),this},k.prototype.drawPolygon=function(e){var t=e,r=!0;if(t instanceof l.Polygon&&(r=t.closed,t=t.points),!Array.isArray(t)){t=new Array(arguments.length);for(var i=0;i<t.length;++i)t[i]=arguments[i]}var n=new l.Polygon(t);return n.closed=r,this.drawShape(n),this},k.prototype.drawStar=function(e,t,r,i,n){var a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;n=n||i/2;for(var o=-1*Math.PI/2+a,s=2*r,u=T.PI_2/s,l=[],c=0;c<s;c++){var h=c%2?n:i,f=c*u+o;l.push(e+h*Math.cos(f),t+h*Math.sin(f))}return this.drawPolygon(l)},k.prototype.clear=function(){return(this.lineWidth||this.filling||0<this.graphicsData.length)&&(this.lineWidth=0,this.lineAlignment=.5,this.filling=!1,this.boundsDirty=-1,this.canvasTintDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},k.prototype.isFastRect=function(){return 1===this.graphicsData.length&&this.graphicsData[0].shape.type===T.SHAPES.RECT&&!this.graphicsData[0].lineWidth},k.prototype._renderWebGL=function(e){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(e):(e.setObjectRenderer(e.plugins.graphics),e.plugins.graphics.render(this))},k.prototype._renderSpriteRect=function(e){var t=this.graphicsData[0].shape;this._spriteRect||(this._spriteRect=new u.default(new o.default(o.default.WHITE)));var r=this._spriteRect,i=this.graphicsData[0].fillColor;if(16777215===this.tint)r.tint=i;else if(this.tint!==this._prevRectTint||i!==this._prevRectFillColor){var n=v,a=b;(0,c.hex2rgb)(i,n),(0,c.hex2rgb)(this.tint,a),n[0]*=a[0],n[1]*=a[1],n[2]*=a[2],r.tint=(0,c.rgb2hex)(n),this._prevRectTint=this.tint,this._prevRectFillColor=i}r.alpha=this.graphicsData[0].fillAlpha,r.worldAlpha=this.worldAlpha*r.alpha,r.blendMode=this.blendMode,r._texture._frame.width=t.width,r._texture._frame.height=t.height,r.transform.worldTransform=this.transform.worldTransform,r.anchor.set(-t.x/t.width,-t.y/t.height),r._onAnchorUpdate(),r._renderWebGL(e)},k.prototype._renderCanvas=function(e){!0!==this.isMask&&e.plugins.graphics.render(this)},k.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var e=this._localBounds;this._bounds.addFrame(this.transform,e.minX,e.minY,e.maxX,e.maxY)},k.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,g);for(var t=this.graphicsData,r=0;r<t.length;++r){var i=t[r];if(i.fill&&(i.shape&&i.shape.contains(g.x,g.y))){if(i.holes)for(var n=0;n<i.holes.length;n++){if(i.holes[n].contains(g.x,g.y))return!1}return!0}}return!1},k.prototype.updateLocalBounds=function(){var e=1/0,t=-1/0,r=1/0,i=-1/0;if(this.graphicsData.length)for(var n=0,a=0,o=0,s=0,u=0,l=0;l<this.graphicsData.length;l++){var c=this.graphicsData[l],h=c.type,f=c.lineWidth*c.lineAlignment;if(n=c.shape,h===T.SHAPES.RECT||h===T.SHAPES.RREC)a=n.x-f,o=n.y-f,e=a<e?a:e,t=t<a+(s=n.width+2*f)?a+s:t,r=o<r?o:r,i=i<o+(u=n.height+2*f)?o+u:i;else if(h===T.SHAPES.CIRC)a=n.x,o=n.y,e=a-(s=n.radius+f)<e?a-s:e,t=t<a+s?a+s:t,r=o-(u=n.radius+f)<r?o-u:r,i=i<o+u?o+u:i;else if(h===T.SHAPES.ELIP)a=n.x,o=n.y,e=a-(s=n.width+f)<e?a-s:e,t=t<a+s?a+s:t,r=o-(u=n.height+f)<r?o-u:r,i=i<o+u?o+u:i;else for(var d=n.points,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0;x+2<d.length;x+=2)a=d[x],o=d[x+1],p=d[x+2],m=d[x+3],g=Math.abs(p-a),v=Math.abs(m-o),u=2*f,(s=Math.sqrt(g*g+v*v))<1e-9||(e=(_=(p+a)/2)-(b=(u/s*v+g)/2)<e?_-b:e,t=t<_+b?_+b:t,r=(w=(m+o)/2)-(y=(u/s*g+v)/2)<r?w-y:r,i=i<w+y?w+y:i)}else i=r=t=e=0;var k=this.boundsPadding;this._localBounds.minX=e-k,this._localBounds.maxX=t+k,this._localBounds.minY=r-k,this._localBounds.maxY=i+k},k.prototype.drawShape=function(e){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var t=new s.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,this.nativeLines,e,this.lineAlignment);return this.graphicsData.push(t),t.type===T.SHAPES.POLY&&(t.shape.closed=t.shape.closed,this.currentPath=t),this.dirty++,t},k.prototype.generateCanvasTexture=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=this.getLocalBounds(),i=a.default.create(r.width,r.height,e,t);p||(p=new d.default),this.transform.updateLocalTransform(),this.transform.localTransform.copy(m),m.invert(),m.tx-=r.x,m.ty-=r.y,p.render(this,i,!0,m);var n=o.default.fromCanvas(i.baseTexture._canvasRenderTarget.canvas,e,"graphics");return n.baseTexture.resolution=t,n.baseTexture.update(),n},k.prototype.closePath=function(){var e=this.currentPath;return e&&e.shape&&e.shape.close(),this},k.prototype.addHole=function(){var e=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(e.shape),this.currentPath=null,this},k.prototype.destroy=function(e){n.prototype.destroy.call(this,e);for(var t=0;t<this.graphicsData.length;++t)this.graphicsData[t].destroy();for(var r in this._webGL)for(var i=0;i<this._webGL[r].data.length;++i)this._webGL[r].data[i].destroy();this._spriteRect&&this._spriteRect.destroy(),this.graphicsData=null,this.currentPath=null,this._webGL=null,this._localBounds=null},k}(i.default);(r.default=y)._SPRITE_TEXTURE=null,y.CURVES={adaptive:!1,maxLength:10,minSegments:8,maxSegments:2048}},{"../const":46,"../display/Bounds":47,"../display/Container":48,"../math":70,"../renderers/canvas/CanvasRenderer":77,"../sprites/Sprite":102,"../textures/RenderTexture":113,"../textures/Texture":115,"../utils":125,"./GraphicsData":54,"./utils/bezierCurveTo":56}],54:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function l(e,t,r,i,n,a,o,s,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.lineWidth=e,this.lineAlignment=u,this.nativeLines=o,this.lineColor=t,this.lineAlpha=r,this._lineTint=t,this.fillColor=i,this.fillAlpha=n,this._fillTint=i,this.fill=a,this.holes=[],this.shape=s,this.type=s.type}return l.prototype.clone=function(){return new l(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.nativeLines,this.shape,this.lineAlignment)},l.prototype.addHole=function(e){this.holes.push(e)},l.prototype.destroy=function(){this.shape=null,this.holes=null},l}();r.default=i},{}],55:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("../../renderers/canvas/CanvasRenderer"),a=(i=n)&&i.__esModule?i:{default:i},B=e("../../const");var o=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(e){var t=this.renderer,r=t.context,i=e.worldAlpha,n=e.transform.worldTransform,a=t.resolution;r.setTransform(n.a*a,n.b*a,n.c*a,n.d*a,n.tx*a,n.ty*a),e.canvasTintDirty===e.dirty&&e._prevTint===e.tint||this.updateGraphicsTint(e),t.setBlendMode(e.blendMode);for(var o=0;o<e.graphicsData.length;o++){var s=e.graphicsData[o],u=s.shape,l=s._fillTint,c=s._lineTint;if(r.lineWidth=s.lineWidth,s.type===B.SHAPES.POLY){r.beginPath();var h=u.points,f=s.holes,d=void 0,p=void 0,m=void 0,g=void 0;r.moveTo(h[0],h[1]);for(var v=2;v<h.length;v+=2)r.lineTo(h[v],h[v+1]);if(u.closed&&r.closePath(),0<f.length){m=h[d=0],g=h[1];for(var b=2;b+2<h.length;b+=2)d+=(h[b]-m)*(h[b+3]-g)-(h[b+2]-m)*(h[b+1]-g);for(var y=0;y<f.length;y++)if(h=f[y].points){m=h[p=0],g=h[1];for(var _=2;_+2<h.length;_+=2)p+=(h[_]-m)*(h[_+3]-g)-(h[_+2]-m)*(h[_+1]-g);if(p*d<0){r.moveTo(h[0],h[1]);for(var w=2;w<h.length;w+=2)r.lineTo(h[w],h[w+1])}else{r.moveTo(h[h.length-2],h[h.length-1]);for(var x=h.length-4;0<=x;x-=2)r.lineTo(h[x],h[x+1])}f[y].close&&r.closePath()}}s.fill&&(r.globalAlpha=s.fillAlpha*i,r.fillStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke())}else if(s.type===B.SHAPES.RECT)(s.fillColor||0===s.fillColor)&&(r.globalAlpha=s.fillAlpha*i,r.fillStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.fillRect(u.x,u.y,u.width,u.height)),s.lineWidth&&(r.globalAlpha=s.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.strokeRect(u.x,u.y,u.width,u.height));else if(s.type===B.SHAPES.CIRC)r.beginPath(),r.arc(u.x,u.y,u.radius,0,2*Math.PI),r.closePath(),s.fill&&(r.globalAlpha=s.fillAlpha*i,r.fillStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke());else if(s.type===B.SHAPES.ELIP){var k=2*u.width,T=2*u.height,S=u.x-k/2,E=u.y-T/2;r.beginPath();var M=k/2*.5522848,P=T/2*.5522848,C=S+k,A=E+T,O=S+k/2,I=E+T/2;r.moveTo(S,I),r.bezierCurveTo(S,I-P,O-M,E,O,E),r.bezierCurveTo(O+M,E,C,I-P,C,I),r.bezierCurveTo(C,I+P,O+M,A,O,A),r.bezierCurveTo(O-M,A,S,I+P,S,I),r.closePath(),s.fill&&(r.globalAlpha=s.fillAlpha*i,r.fillStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke())}else if(s.type===B.SHAPES.RREC){var R=u.x,D=u.y,j=u.width,L=u.height,z=u.radius,F=Math.min(j,L)/2|0;z=F<z?F:z,r.beginPath(),r.moveTo(R,D+z),r.lineTo(R,D+L-z),r.quadraticCurveTo(R,D+L,R+z,D+L),r.lineTo(R+j-z,D+L),r.quadraticCurveTo(R+j,D+L,R+j,D+L-z),r.lineTo(R+j,D+z),r.quadraticCurveTo(R+j,D,R+j-z,D),r.lineTo(R+z,D),r.quadraticCurveTo(R,D,R,D+z),r.closePath(),(s.fillColor||0===s.fillColor)&&(r.globalAlpha=s.fillAlpha*i,r.fillStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke())}}},t.prototype.updateGraphicsTint=function(e){e._prevTint=e.tint,e.canvasTintDirty=e.dirty;for(var t=(e.tint>>16&255)/255,r=(e.tint>>8&255)/255,i=(255&e.tint)/255,n=0;n<e.graphicsData.length;++n){var a=e.graphicsData[n],o=0|a.fillColor,s=0|a.lineColor;a._fillTint=((o>>16&255)/255*t*255<<16)+((o>>8&255)/255*r*255<<8)+(255&o)/255*i*255,a._lineTint=((s>>16&255)/255*t*255<<16)+((s>>8&255)/255*r*255<<8)+(255&s)/255*i*255}},t.prototype.renderPolygon=function(e,t,r){r.moveTo(e[0],e[1]);for(var i=1;i<e.length/2;++i)r.lineTo(e[2*i],e[2*i+1]);t&&r.closePath()},t.prototype.destroy=function(){this.renderer=null},t}();r.default=o,a.default.registerPlugin("graphics",o)},{"../../const":46,"../../renderers/canvas/CanvasRenderer":77}],56:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r,i,n,a,o,s,u){var l=9<arguments.length&&void 0!==arguments[9]?arguments[9]:[],c=0,h=0,f=0,d=0,p=0;l.push(e,t);for(var m=1,g=0;m<=u;++m)f=(h=(c=1-(g=m/u))*c)*c,p=(d=g*g)*g,l.push(f*e+3*h*g*r+3*c*d*n+p*o,f*t+3*h*g*i+3*c*d*a+p*s);return l}},{}],57:[function(e,t,r){"use strict";r.__esModule=!0;var l=e("../../utils"),c=e("../../const"),n=s(e("../../renderers/webgl/utils/ObjectRenderer")),i=s(e("../../renderers/webgl/WebGLRenderer")),a=s(e("./WebGLGraphicsData")),o=s(e("./shaders/PrimitiveShader")),h=s(e("./utils/buildPoly")),f=s(e("./utils/buildRectangle")),d=s(e("./utils/buildRoundedRectangle")),p=s(e("./utils/buildCircle"));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.graphicsDataPool=[],t.primitiveShader=null,t.gl=e.gl,t.CONTEXT_UID=0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new o.default(this.gl)},i.prototype.destroy=function(){n.default.prototype.destroy.call(this);for(var e=0;e<this.graphicsDataPool.length;++e)this.graphicsDataPool[e].destroy();this.graphicsDataPool=null},i.prototype.render=function(e){var t=this.renderer,r=t.gl,i=void 0,n=e._webGL[this.CONTEXT_UID];n&&e.dirty===n.dirty||(this.updateGraphics(e),n=e._webGL[this.CONTEXT_UID]);var a=this.primitiveShader;t.bindShader(a),t.state.setBlendMode(e.blendMode);for(var o=0,s=n.data.length;o<s;o++){var u=(i=n.data[o]).shader;t.bindShader(u),u.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),u.uniforms.tint=(0,l.hex2rgb)(e.tint),u.uniforms.alpha=e.worldAlpha,t.bindVao(i.vao),i.nativeLines?r.drawArrays(r.LINES,0,i.points.length/6):i.vao.draw(r.TRIANGLE_STRIP,i.indices.length)}},i.prototype.updateGraphics=function(e){var t=this.renderer.gl,r=e._webGL[this.CONTEXT_UID];if(r||(r=e._webGL[this.CONTEXT_UID]={lastIndex:0,data:[],gl:t,clearDirty:-1,dirty:-1}),r.dirty=e.dirty,e.clearDirty!==r.clearDirty){r.clearDirty=e.clearDirty;for(var i=0;i<r.data.length;i++)this.graphicsDataPool.push(r.data[i]);r.data.length=0,r.lastIndex=0}for(var n=void 0,a=void 0,o=r.lastIndex;o<e.graphicsData.length;o++){var s=e.graphicsData[o];n=this.getWebGLData(r,0),s.nativeLines&&s.lineWidth&&(a=this.getWebGLData(r,0,!0),r.lastIndex++),s.type===c.SHAPES.POLY&&(0,h.default)(s,n,a),s.type===c.SHAPES.RECT?(0,f.default)(s,n,a):s.type===c.SHAPES.CIRC||s.type===c.SHAPES.ELIP?(0,p.default)(s,n,a):s.type===c.SHAPES.RREC&&(0,d.default)(s,n,a),r.lastIndex++}this.renderer.bindVao(null);for(var u=0;u<r.data.length;u++)(n=r.data[u]).dirty&&n.upload()},i.prototype.getWebGLData=function(e,t,r){var i=e.data[e.data.length-1];return(!i||i.nativeLines!==r||32e4<i.points.length)&&((i=this.graphicsDataPool.pop()||new a.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState)).nativeLines=r,i.reset(t),e.data.push(i)),i.dirty=!0,i},i}(n.default);r.default=u,i.default.registerPlugin("graphics",u)},{"../../const":46,"../../renderers/webgl/WebGLRenderer":84,"../../renderers/webgl/utils/ObjectRenderer":94,"../../utils":125,"./WebGLGraphicsData":58,"./shaders/PrimitiveShader":59,"./utils/buildCircle":60,"./utils/buildPoly":62,"./utils/buildRectangle":63,"./utils/buildRoundedRectangle":64}],58:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("pixi-gl-core"),a=(i=n)&&i.__esModule?i:{default:i};var o=function(){function i(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.gl=e,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=a.default.GLBuffer.createVertexBuffer(e),this.indexBuffer=a.default.GLBuffer.createIndexBuffer(e),this.dirty=!0,this.nativeLines=!1,this.glPoints=null,this.glIndices=null,this.shader=t,this.vao=new a.default.VertexArrayObject(e,r).addIndex(this.indexBuffer).addAttribute(this.buffer,t.attributes.aVertexPosition,e.FLOAT,!1,24,0).addAttribute(this.buffer,t.attributes.aColor,e.FLOAT,!1,24,8)}return i.prototype.reset=function(){this.points.length=0,this.indices.length=0},i.prototype.upload=function(){this.glPoints=new Float32Array(this.points),this.buffer.upload(this.glPoints),this.glIndices=new Uint16Array(this.indices),this.indexBuffer.upload(this.glIndices),this.dirty=!1},i.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null},i}();r.default=o},{"pixi-gl-core":15}],59:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("../../../Shader");var a=function(t){function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,e,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"].join("\n"),["varying vec4 vColor;","void main(void){"," gl_FragColor = vColor;","}"].join("\n")))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r}(((i=n)&&i.__esModule?i:{default:i}).default);r.default=a},{"../../../Shader":44}],60:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var i=e.shape,n=i.x,a=i.y,o=void 0,s=void 0;s=e.type===x.SHAPES.CIRC?(o=i.radius,i.radius):(o=i.width,i.height);if(0===o||0===s)return;var u=Math.floor(30*Math.sqrt(i.radius))||Math.floor(15*Math.sqrt(i.width+i.height)),l=2*Math.PI/u;if(e.fill){var c=(0,k.hex2rgb)(e.fillColor),h=e.fillAlpha,f=c[0]*h,d=c[1]*h,p=c[2]*h,m=t.points,g=t.indices,v=m.length/6;g.push(v);for(var b=0;b<u+1;b++)m.push(n,a,f,d,p,h),m.push(n+Math.sin(l*b)*o,a+Math.cos(l*b)*s,f,d,p,h),g.push(v++,v++);g.push(v-1)}if(e.lineWidth){var y=e.points;e.points=[];for(var _=0;_<u;_++)e.points.push(n+Math.sin(l*-_)*o,a+Math.cos(l*-_)*s);e.points.push(e.points[0],e.points[1]),(0,w.default)(e,t,r),e.points=y}};var i,n=e("./buildLine"),w=(i=n)&&i.__esModule?i:{default:i},x=e("../../../const"),k=e("../../../utils")},{"../../../const":46,"../../../utils":125,"./buildLine":61}],61:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){e.nativeLines?function(e,t){var r=0,i=e.points;if(0===i.length)return;var n=t.points,a=i.length/2,o=(0,V.hex2rgb)(e.lineColor),s=e.lineAlpha,u=o[0]*s,l=o[1]*s,c=o[2]*s;for(r=1;r<a;r++){var h=i[2*(r-1)],f=i[2*(r-1)+1],d=i[2*r],p=i[2*r+1];n.push(h,f),n.push(u,l,c,s),n.push(d,p),n.push(u,l,c,s)}}(e,r):function(e,t){var r=e.points;if(0===r.length)return;var i=new G.Point(r[0],r[1]),n=new G.Point(r[r.length-2],r[r.length-1]);if(i.x===n.x&&i.y===n.y){(r=r.slice()).pop(),r.pop();var a=(n=new G.Point(r[r.length-2],r[r.length-1])).x+.5*(i.x-n.x),o=n.y+.5*(i.y-n.y);r.unshift(a,o),r.push(a,o)}var s=t.points,u=t.indices,l=r.length/2,c=r.length,h=s.length/6,f=e.lineWidth/2,d=(0,V.hex2rgb)(e.lineColor),p=e.lineAlpha,m=d[0]*p,g=d[1]*p,v=d[2]*p,b=r[0],y=r[1],_=r[2],w=r[3],x=0,k=0,T=-(y-w),S=b-_,E=0,M=0,P=0,C=0,A=Math.sqrt(T*T+S*S);T/=A,S/=A,T*=f,S*=f;var O=e.lineAlignment,I=2*(1-O),R=2*O;s.push(b-T*I,y-S*I,m,g,v,p),s.push(b+T*R,y+S*R,m,g,v,p);for(var D=1;D<l-1;++D){b=r[2*(D-1)],y=r[2*(D-1)+1],_=r[2*D],w=r[2*D+1],x=r[2*(D+1)],k=r[2*(D+1)+1],T=-(y-w),S=b-_,A=Math.sqrt(T*T+S*S),T/=A,S/=A,T*=f,S*=f,E=-(w-k),M=_-x,A=Math.sqrt(E*E+M*M),E/=A,M/=A;var j=-S+y-(-S+w),L=-T+_-(-T+b),z=(-T+b)*(-S+w)-(-T+_)*(-S+y),F=-(M*=f)+k-(-M+w),B=-(E*=f)+_-(-E+x),N=(-E+x)*(-M+w)-(-E+_)*(-M+k),U=j*B-F*L;if(Math.abs(U)<.1)U+=10.1,s.push(_-T*I,w-S*I,m,g,v,p),s.push(_+T*R,w+S*R,m,g,v,p);else{var X=(L*N-B*z)/U,q=(F*z-j*N)/U,H=(X-_)*(X-_)+(q-w)*(q-w);196*f*f<H?(P=T-E,C=S-M,A=Math.sqrt(P*P+C*C),P/=A,C/=A,P*=f,C*=f,s.push(_-P*I,w-C*I),s.push(m,g,v,p),s.push(_+P*R,w+C*R),s.push(m,g,v,p),s.push(_-P*R*I,w-C*I),s.push(m,g,v,p),c++):(s.push(_+(X-_)*I,w+(q-w)*I),s.push(m,g,v,p),s.push(_-(X-_)*R,w-(q-w)*R),s.push(m,g,v,p))}}b=r[2*(l-2)],y=r[2*(l-2)+1],_=r[2*(l-1)],w=r[2*(l-1)+1],T=-(y-w),S=b-_,A=Math.sqrt(T*T+S*S),T/=A,S/=A,T*=f,S*=f,s.push(_-T*I,w-S*I),s.push(m,g,v,p),s.push(_+T*R,w+S*R),s.push(m,g,v,p),u.push(h);for(var W=0;W<c;++W)u.push(h++);u.push(h-1)}(e,t)};var G=e("../../../math"),V=e("../../../utils")},{"../../../math":70,"../../../utils":125}],62:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){e.points=e.shape.points.slice();var i=e.points;if(e.fill&&6<=i.length){for(var n=[],a=e.holes,o=0;o<a.length;o++){var s=a[o];n.push(i.length/2),i=i.concat(s.points)}var u=t.points,l=t.indices,c=i.length/2,h=(0,w.hex2rgb)(e.fillColor),f=e.fillAlpha,d=h[0]*f,p=h[1]*f,m=h[2]*f,g=(0,x.default)(i,n,2);if(!g)return;for(var v=u.length/6,b=0;b<g.length;b+=3)l.push(g[b]+v),l.push(g[b]+v),l.push(g[b+1]+v),l.push(g[b+2]+v),l.push(g[b+2]+v);for(var y=0;y<c;y++)u.push(i[2*y],i[2*y+1],d,p,m,f)}0<e.lineWidth&&(0,_.default)(e,t,r)};var _=i(e("./buildLine")),w=e("../../../utils"),x=i(e("earcut"));function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../utils":125,"./buildLine":61,earcut:2}],63:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var i=e.shape,n=i.x,a=i.y,o=i.width,s=i.height;if(e.fill){var u=(0,b.hex2rgb)(e.fillColor),l=e.fillAlpha,c=u[0]*l,h=u[1]*l,f=u[2]*l,d=t.points,p=t.indices,m=d.length/6;d.push(n,a),d.push(c,h,f,l),d.push(n+o,a),d.push(c,h,f,l),d.push(n,a+s),d.push(c,h,f,l),d.push(n+o,a+s),d.push(c,h,f,l),p.push(m,m,1+m,2+m,3+m,3+m)}if(e.lineWidth){var g=e.points;e.points=[n,a,n+o,a,n+o,a+s,n,a+s,n,a],(0,v.default)(e,t,r),e.points=g}};var i,n=e("./buildLine"),v=(i=n)&&i.__esModule?i:{default:i},b=e("../../../utils")},{"../../../utils":125,"./buildLine":61}],64:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var i=e.shape,n=i.x,a=i.y,o=i.width,s=i.height,u=i.radius,l=[];if(l.push(n+u,a),M(n+o-u,a,n+o,a,n+o,a+u,l),M(n+o,a+s-u,n+o,a+s,n+o-u,a+s,l),M(n+u,a+s,n,a+s,n,a+s-u,l),M(n,a+u,n,a,n+u+1e-10,a,l),e.fill){for(var c=(0,E.hex2rgb)(e.fillColor),h=e.fillAlpha,f=c[0]*h,d=c[1]*h,p=c[2]*h,m=t.points,g=t.indices,v=m.length/6,b=(0,T.default)(l,null,2),y=0,_=b.length;y<_;y+=3)g.push(b[y]+v),g.push(b[y]+v),g.push(b[y+1]+v),g.push(b[y+2]+v),g.push(b[y+2]+v);for(var w=0,x=l.length;w<x;w++)m.push(l[w],l[++w],f,d,p,h)}if(e.lineWidth){var k=e.points;e.points=l,(0,S.default)(e,t,r),e.points=k}};var T=i(e("earcut")),S=i(e("./buildLine")),E=e("../../../utils");function i(e){return e&&e.__esModule?e:{default:e}}function m(e,t,r){return e+(t-e)*r}function M(e,t,r,i,n,a){for(var o=6<arguments.length&&void 0!==arguments[6]?arguments[6]:[],s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;d<=20;++d)s=m(e,r,p=d/20),u=m(t,i,p),l=m(r,n,p),c=m(i,a,p),h=m(s,l,p),f=m(u,c,p),o.push(h,f);return o}},{"../../../utils":125,"./buildLine":61,earcut:2}],65:[function(e,t,r){"use strict";r.__esModule=!0,r.autoDetectRenderer=r.Application=r.Filter=r.SpriteMaskFilter=r.Quad=r.RenderTarget=r.ObjectRenderer=r.WebGLManager=r.Shader=r.CanvasRenderTarget=r.TextureUvs=r.VideoBaseTexture=r.BaseRenderTexture=r.RenderTexture=r.BaseTexture=r.TextureMatrix=r.Texture=r.Spritesheet=r.CanvasGraphicsRenderer=r.GraphicsRenderer=r.GraphicsData=r.Graphics=r.TextMetrics=r.TextStyle=r.Text=r.SpriteRenderer=r.CanvasTinter=r.CanvasSpriteRenderer=r.Sprite=r.TransformBase=r.TransformStatic=r.Transform=r.Container=r.DisplayObject=r.Bounds=r.glCore=r.WebGLRenderer=r.CanvasRenderer=r.ticker=r.utils=r.settings=void 0;var i=e("./const");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}})});var n=e("./math");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}})});var a=e("pixi-gl-core");Object.defineProperty(r,"glCore",{enumerable:!0,get:function(){return V(a).default}});var o=e("./display/Bounds");Object.defineProperty(r,"Bounds",{enumerable:!0,get:function(){return V(o).default}});var s=e("./display/DisplayObject");Object.defineProperty(r,"DisplayObject",{enumerable:!0,get:function(){return V(s).default}});var u=e("./display/Container");Object.defineProperty(r,"Container",{enumerable:!0,get:function(){return V(u).default}});var l=e("./display/Transform");Object.defineProperty(r,"Transform",{enumerable:!0,get:function(){return V(l).default}});var c=e("./display/TransformStatic");Object.defineProperty(r,"TransformStatic",{enumerable:!0,get:function(){return V(c).default}});var h=e("./display/TransformBase");Object.defineProperty(r,"TransformBase",{enumerable:!0,get:function(){return V(h).default}});var f=e("./sprites/Sprite");Object.defineProperty(r,"Sprite",{enumerable:!0,get:function(){return V(f).default}});var d=e("./sprites/canvas/CanvasSpriteRenderer");Object.defineProperty(r,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return V(d).default}});var p=e("./sprites/canvas/CanvasTinter");Object.defineProperty(r,"CanvasTinter",{enumerable:!0,get:function(){return V(p).default}});var m=e("./sprites/webgl/SpriteRenderer");Object.defineProperty(r,"SpriteRenderer",{enumerable:!0,get:function(){return V(m).default}});var g=e("./text/Text");Object.defineProperty(r,"Text",{enumerable:!0,get:function(){return V(g).default}});var v=e("./text/TextStyle");Object.defineProperty(r,"TextStyle",{enumerable:!0,get:function(){return V(v).default}});var b=e("./text/TextMetrics");Object.defineProperty(r,"TextMetrics",{enumerable:!0,get:function(){return V(b).default}});var y=e("./graphics/Graphics");Object.defineProperty(r,"Graphics",{enumerable:!0,get:function(){return V(y).default}});var _=e("./graphics/GraphicsData");Object.defineProperty(r,"GraphicsData",{enumerable:!0,get:function(){return V(_).default}});var w=e("./graphics/webgl/GraphicsRenderer");Object.defineProperty(r,"GraphicsRenderer",{enumerable:!0,get:function(){return V(w).default}});var x=e("./graphics/canvas/CanvasGraphicsRenderer");Object.defineProperty(r,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return V(x).default}});var k=e("./textures/Spritesheet");Object.defineProperty(r,"Spritesheet",{enumerable:!0,get:function(){return V(k).default}});var T=e("./textures/Texture");Object.defineProperty(r,"Texture",{enumerable:!0,get:function(){return V(T).default}});var S=e("./textures/TextureMatrix");Object.defineProperty(r,"TextureMatrix",{enumerable:!0,get:function(){return V(S).default}});var E=e("./textures/BaseTexture");Object.defineProperty(r,"BaseTexture",{enumerable:!0,get:function(){return V(E).default}});var M=e("./textures/RenderTexture");Object.defineProperty(r,"RenderTexture",{enumerable:!0,get:function(){return V(M).default}});var P=e("./textures/BaseRenderTexture");Object.defineProperty(r,"BaseRenderTexture",{enumerable:!0,get:function(){return V(P).default}});var C=e("./textures/VideoBaseTexture");Object.defineProperty(r,"VideoBaseTexture",{enumerable:!0,get:function(){return V(C).default}});var A=e("./textures/TextureUvs");Object.defineProperty(r,"TextureUvs",{enumerable:!0,get:function(){return V(A).default}});var O=e("./renderers/canvas/utils/CanvasRenderTarget");Object.defineProperty(r,"CanvasRenderTarget",{enumerable:!0,get:function(){return V(O).default}});var I=e("./Shader");Object.defineProperty(r,"Shader",{enumerable:!0,get:function(){return V(I).default}});var R=e("./renderers/webgl/managers/WebGLManager");Object.defineProperty(r,"WebGLManager",{enumerable:!0,get:function(){return V(R).default}});var D=e("./renderers/webgl/utils/ObjectRenderer");Object.defineProperty(r,"ObjectRenderer",{enumerable:!0,get:function(){return V(D).default}});var j=e("./renderers/webgl/utils/RenderTarget");Object.defineProperty(r,"RenderTarget",{enumerable:!0,get:function(){return V(j).default}});var L=e("./renderers/webgl/utils/Quad");Object.defineProperty(r,"Quad",{enumerable:!0,get:function(){return V(L).default}});var z=e("./renderers/webgl/filters/spriteMask/SpriteMaskFilter");Object.defineProperty(r,"SpriteMaskFilter",{enumerable:!0,get:function(){return V(z).default}});var F=e("./renderers/webgl/filters/Filter");Object.defineProperty(r,"Filter",{enumerable:!0,get:function(){return V(F).default}});var B=e("./Application");Object.defineProperty(r,"Application",{enumerable:!0,get:function(){return V(B).default}});var N=e("./autoDetectRenderer");Object.defineProperty(r,"autoDetectRenderer",{enumerable:!0,get:function(){return N.autoDetectRenderer}});var U=G(e("./utils")),X=G(e("./ticker")),q=V(e("./settings")),H=V(e("./renderers/canvas/CanvasRenderer")),W=V(e("./renderers/webgl/WebGLRenderer"));function G(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function V(e){return e&&e.__esModule?e:{default:e}}r.settings=q.default,r.utils=U,r.ticker=X,r.CanvasRenderer=H.default,r.WebGLRenderer=W.default},{"./Application":43,"./Shader":44,"./autoDetectRenderer":45,"./const":46,"./display/Bounds":47,"./display/Container":48,"./display/DisplayObject":49,"./display/Transform":50,"./display/TransformBase":51,"./display/TransformStatic":52,"./graphics/Graphics":53,"./graphics/GraphicsData":54,"./graphics/canvas/CanvasGraphicsRenderer":55,"./graphics/webgl/GraphicsRenderer":57,"./math":70,"./renderers/canvas/CanvasRenderer":77,"./renderers/canvas/utils/CanvasRenderTarget":79,"./renderers/webgl/WebGLRenderer":84,"./renderers/webgl/filters/Filter":86,"./renderers/webgl/filters/spriteMask/SpriteMaskFilter":89,"./renderers/webgl/managers/WebGLManager":93,"./renderers/webgl/utils/ObjectRenderer":94,"./renderers/webgl/utils/Quad":95,"./renderers/webgl/utils/RenderTarget":96,"./settings":101,"./sprites/Sprite":102,"./sprites/canvas/CanvasSpriteRenderer":103,"./sprites/canvas/CanvasTinter":104,"./sprites/webgl/SpriteRenderer":106,"./text/Text":108,"./text/TextMetrics":109,"./text/TextStyle":110,"./textures/BaseRenderTexture":111,"./textures/BaseTexture":112,"./textures/RenderTexture":113,"./textures/Spritesheet":114,"./textures/Texture":115,"./textures/TextureMatrix":116,"./textures/TextureUvs":117,"./textures/VideoBaseTexture":118,"./ticker":121,"./utils":125,"pixi-gl-core":15}],66:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("./Matrix"),c=(i=n)&&i.__esModule?i:{default:i};var h=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],f=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],d=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],p=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],m=[],g=[];function v(e){return e<0?-1:0<e?1:0}!function(){for(var e=0;e<16;e++){var t=[];g.push(t);for(var r=0;r<16;r++)for(var i=v(h[e]*h[r]+d[e]*f[r]),n=v(f[e]*h[r]+p[e]*f[r]),a=v(h[e]*d[r]+d[e]*p[r]),o=v(f[e]*d[r]+p[e]*p[r]),s=0;s<16;s++)if(h[s]===i&&f[s]===n&&d[s]===a&&p[s]===o){t.push(s);break}}for(var u=0;u<16;u++){var l=new c.default;l.set(h[u],f[u],d[u],p[u],0,0),m.push(l)}}();var a={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(e){return h[e]},uY:function(e){return f[e]},vX:function(e){return d[e]},vY:function(e){return p[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return g[e][t]},sub:function(e,t){return g[e][a.inv(t)]},rotate180:function(e){return 4^e},isVertical:function(e){return 2==(3&e)},byDirection:function(e,t){return 2*Math.abs(e)<=Math.abs(t)?0<=t?a.S:a.N:2*Math.abs(t)<=Math.abs(e)?0<e?a.E:a.W:0<t?0<e?a.SE:a.SW:0<e?a.NE:a.NW},matrixAppendRotationInv:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,n=m[a.inv(t)];n.tx=r,n.ty=i,e.append(n)}};r.default=a},{"./Matrix":67}],67:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=e("./Point"),s=(i=a)&&i.__esModule?i:{default:i},u=e("../const");var o=function(){function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.a=e,this.b=t,this.c=r,this.d=i,this.tx=n,this.ty=a,this.array=null}return o.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},o.prototype.set=function(e,t,r,i,n,a){return this.a=e,this.b=t,this.c=r,this.d=i,this.tx=n,this.ty=a,this},o.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));var r=t||this.array;return e?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0),r[8]=1,r},o.prototype.apply=function(e,t){t=t||new s.default;var r=e.x,i=e.y;return t.x=this.a*r+this.c*i+this.tx,t.y=this.b*r+this.d*i+this.ty,t},o.prototype.applyInverse=function(e,t){t=t||new s.default;var r=1/(this.a*this.d+this.c*-this.b),i=e.x,n=e.y;return t.x=this.d*r*i+-this.c*r*n+(this.ty*this.c-this.tx*this.d)*r,t.y=this.a*r*n+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,t},o.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},o.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},o.prototype.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),i=this.a,n=this.c,a=this.tx;return this.a=i*t-this.b*r,this.b=i*r+this.b*t,this.c=n*t-this.d*r,this.d=n*r+this.d*t,this.tx=a*t-this.ty*r,this.ty=a*r+this.ty*t,this},o.prototype.append=function(e){var t=this.a,r=this.b,i=this.c,n=this.d;return this.a=e.a*t+e.b*i,this.b=e.a*r+e.b*n,this.c=e.c*t+e.d*i,this.d=e.c*r+e.d*n,this.tx=e.tx*t+e.ty*i+this.tx,this.ty=e.tx*r+e.ty*n+this.ty,this},o.prototype.setTransform=function(e,t,r,i,n,a,o,s,u){return this.a=Math.cos(o+u)*n,this.b=Math.sin(o+u)*n,this.c=-Math.sin(o-s)*a,this.d=Math.cos(o-s)*a,this.tx=e-(r*this.a+i*this.c),this.ty=t-(r*this.b+i*this.d),this},o.prototype.prepend=function(e){var t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){var r=this.a,i=this.c;this.a=r*e.a+this.b*e.c,this.b=r*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},o.prototype.decompose=function(e){var t=this.a,r=this.b,i=this.c,n=this.d,a=-Math.atan2(-i,n),o=Math.atan2(r,t),s=Math.abs(a+o);return s<1e-5||Math.abs(u.PI_2-s)<1e-5?(e.rotation=o,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=a,e.skew.y=o),e.scale.x=Math.sqrt(t*t+r*r),e.scale.y=Math.sqrt(i*i+n*n),e.position.x=this.tx,e.position.y=this.ty,e},o.prototype.invert=function(){var e=this.a,t=this.b,r=this.c,i=this.d,n=this.tx,a=e*i-t*r;return this.a=i/a,this.b=-t/a,this.c=-r/a,this.d=e/a,this.tx=(r*this.ty-i*n)/a,this.ty=-(e*this.ty-t*n)/a,this},o.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},o.prototype.clone=function(){var e=new o;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},o.prototype.copy=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},n(o,null,[{key:"IDENTITY",get:function(){return new o}},{key:"TEMP_MATRIX",get:function(){return new o}}]),o}();r.default=o},{"../const":46,"./Point":69}],68:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var n=function(){function n(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._x=r,this._y=i,this.cb=e,this.scope=t}return n.prototype.clone=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return new n(e||this.cb,t||this.scope,this._x,this._y)},n.prototype.set=function(e,t){var r=e||0,i=t||(0!==t?r:0);this._x===r&&this._y===i||(this._x=r,this._y=i,this.cb.call(this.scope))},n.prototype.copy=function(e){this._x===e.x&&this._y===e.y||(this._x=e.x,this._y=e.y,this.cb.call(this.scope))},n.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},i(n,[{key:"x",get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))}}]),n}();r.default=n},{}],69:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.x=e,this.y=t}return r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.copy=function(e){this.set(e.x,e.y)},r.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},r.prototype.set=function(e,t){this.x=e||0,this.y=t||(0!==t?this.x:0)},r}();r.default=i},{}],70:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./Point");Object.defineProperty(r,"Point",{enumerable:!0,get:function(){return f(i).default}});var n=e("./ObservablePoint");Object.defineProperty(r,"ObservablePoint",{enumerable:!0,get:function(){return f(n).default}});var a=e("./Matrix");Object.defineProperty(r,"Matrix",{enumerable:!0,get:function(){return f(a).default}});var o=e("./GroupD8");Object.defineProperty(r,"GroupD8",{enumerable:!0,get:function(){return f(o).default}});var s=e("./shapes/Circle");Object.defineProperty(r,"Circle",{enumerable:!0,get:function(){return f(s).default}});var u=e("./shapes/Ellipse");Object.defineProperty(r,"Ellipse",{enumerable:!0,get:function(){return f(u).default}});var l=e("./shapes/Polygon");Object.defineProperty(r,"Polygon",{enumerable:!0,get:function(){return f(l).default}});var c=e("./shapes/Rectangle");Object.defineProperty(r,"Rectangle",{enumerable:!0,get:function(){return f(c).default}});var h=e("./shapes/RoundedRectangle");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"RoundedRectangle",{enumerable:!0,get:function(){return f(h).default}})},{"./GroupD8":66,"./Matrix":67,"./ObservablePoint":68,"./Point":69,"./shapes/Circle":71,"./shapes/Ellipse":72,"./shapes/Polygon":73,"./shapes/Rectangle":74,"./shapes/RoundedRectangle":75}],71:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("./Rectangle"),a=(i=n)&&i.__esModule?i:{default:i},o=e("../../const");var s=function(){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.x=e,this.y=t,this.radius=r,this.type=o.SHAPES.CIRC}return i.prototype.clone=function(){return new i(this.x,this.y,this.radius)},i.prototype.contains=function(e,t){if(this.radius<=0)return!1;var r=this.radius*this.radius,i=this.x-e,n=this.y-t;return(i*=i)+(n*=n)<=r},i.prototype.getBounds=function(){return new a.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},i}();r.default=s},{"../../const":46,"./Rectangle":74}],72:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("./Rectangle"),a=(i=n)&&i.__esModule?i:{default:i},o=e("../../const");var s=function(){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.x=e,this.y=t,this.width=r,this.height=i,this.type=o.SHAPES.ELIP}return n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var r=(e-this.x)/this.width,i=(t-this.y)/this.height;return(r*=r)+(i*=i)<=1},n.prototype.getBounds=function(){return new a.default(this.x-this.width,this.y-this.height,this.width,this.height)},n}();r.default=s},{"../../const":46,"./Rectangle":74}],73:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("../Point"),s=(i=n)&&i.__esModule?i:{default:i},u=e("../../const");var a=function(){function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),Array.isArray(t[0])&&(t=t[0]),t[0]instanceof s.default){for(var i=[],n=0,a=t.length;n<a;n++)i.push(t[n].x,t[n].y);t=i}this.closed=!0,this.points=t,this.type=u.SHAPES.POLY}return o.prototype.clone=function(){return new o(this.points.slice())},o.prototype.close=function(){var e=this.points;e[0]===e[e.length-2]&&e[1]===e[e.length-1]||e.push(e[0],e[1])},o.prototype.contains=function(e,t){for(var r=!1,i=this.points.length/2,n=0,a=i-1;n<i;a=n++){var o=this.points[2*n],s=this.points[2*n+1],u=this.points[2*a],l=this.points[2*a+1];t<s!=t<l&&e<(t-s)/(l-s)*(u-o)+o&&(r=!r)}return r},o}();r.default=a},{"../../const":46,"../Point":69}],74:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=e("../../const");var n=function(){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.x=Number(e),this.y=Number(t),this.width=Number(r),this.height=Number(i),this.type=a.SHAPES.RECT}return n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},n.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height)},n.prototype.pad=function(e,t){e=e||0,t=t||(0!==t?e:0),this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t},n.prototype.fit=function(e){var t=Math.max(this.x,e.x),r=Math.min(this.x+this.width,e.x+e.width),i=Math.max(this.y,e.y),n=Math.min(this.y+this.height,e.y+e.height);this.x=t,this.width=Math.max(r-t,0),this.y=i,this.height=Math.max(n-i,0)},n.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),r=Math.max(this.x+this.width,e.x+e.width),i=Math.min(this.y,e.y),n=Math.max(this.y+this.height,e.y+e.height);this.x=t,this.width=r-t,this.y=i,this.height=n-i},n.prototype.ceil=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.001,r=Math.ceil((this.x+this.width-t)*e)/e,i=Math.ceil((this.y+this.height-t)*e)/e;this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=r-this.x,this.height=i-this.y},i(n,[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}}],[{key:"EMPTY",get:function(){return new n(0,0,0,0)}}]),n}();r.default=n},{"../../const":46}],75:[function(e,t,r){"use strict";r.__esModule=!0;var o=e("../../const");var i=function(){function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:20;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.x=e,this.y=t,this.width=r,this.height=i,this.radius=n,this.type=o.SHAPES.RREC}return a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.radius)},a.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){if(t>=this.y+this.radius&&t<=this.y+this.height-this.radius||e>=this.x+this.radius&&e<=this.x+this.width-this.radius)return!0;var r=e-(this.x+this.radius),i=t-(this.y+this.radius),n=this.radius*this.radius;if(r*r+i*i<=n)return!0;if((r=e-(this.x+this.width-this.radius))*r+i*i<=n)return!0;if(r*r+(i=t-(this.y+this.height-this.radius))*i<=n)return!0;if((r=e-(this.x+this.radius))*r+i*i<=n)return!0}return!1},a}();r.default=i},{"../../const":46}],76:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),s=e("../utils"),u=e("../math"),l=e("../const"),c=a(e("../settings")),h=a(e("../display/Container")),f=a(e("../textures/RenderTexture")),n=a(e("eventemitter3"));function a(e){return e&&e.__esModule?e:{default:e}}var d=new u.Matrix,o=function(a){function o(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this));return(0,s.sayHello)(e),"number"==typeof t&&(t=Object.assign({width:t,height:r||c.default.RENDER_OPTIONS.height},i)),t=Object.assign({},c.default.RENDER_OPTIONS,t),n.options=t,n.type=l.RENDERER_TYPE.UNKNOWN,n.screen=new u.Rectangle(0,0,t.width,t.height),n.view=t.view||document.createElement("canvas"),n.resolution=t.resolution||c.default.RESOLUTION,n.transparent=t.transparent,n.autoResize=t.autoResize||!1,n.blendModes=null,n.preserveDrawingBuffer=t.preserveDrawingBuffer,n.clearBeforeRender=t.clearBeforeRender,n.roundPixels=t.roundPixels,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,0],n._backgroundColorString="#000000",n.backgroundColor=t.backgroundColor||n._backgroundColor,n._tempDisplayObjectParent=new h.default,n._lastObjectRendered=n._tempDisplayObjectParent,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,a),o.prototype.resize=function(e,t){this.screen.width=e,this.screen.height=t,this.view.width=e*this.resolution,this.view.height=t*this.resolution,this.autoResize&&(this.view.style.width=e+"px",this.view.style.height=t+"px")},o.prototype.generateTexture=function(e,t,r,i){i=i||e.getLocalBounds();var n=f.default.create(0|i.width,0|i.height,t,r);return d.tx=-i.x,d.ty=-i.y,this.render(e,n,!1,d,!!e.parent),n},o.prototype.destroy=function(e){e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=l.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.options=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},i(o,[{key:"width",get:function(){return this.view.width}},{key:"height",get:function(){return this.view.height}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=(0,s.hex2string)(e),(0,s.hex2rgb)(e,this._backgroundColorRgba)}}]),o}(n.default);r.default=o},{"../const":46,"../display/Container":48,"../math":70,"../settings":101,"../textures/RenderTexture":113,"../utils":125,eventemitter3:3}],77:[function(e,t,r){"use strict";r.__esModule=!0;var i=a(e("../SystemRenderer")),o=a(e("./utils/CanvasMaskManager")),c=a(e("./utils/CanvasRenderTarget")),s=a(e("./utils/mapCanvasBlendModesToPixi")),n=e("../../utils"),h=e("../../const"),u=a(e("../../settings"));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(n){function a(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,"Canvas",e,t,r));return i.type=h.RENDERER_TYPE.CANVAS,i.rootContext=i.view.getContext("2d",{alpha:i.transparent}),i.context=i.rootContext,i.refresh=!0,i.maskManager=new o.default(i),i.smoothProperty="imageSmoothingEnabled",i.rootContext.imageSmoothingEnabled||(i.rootContext.webkitImageSmoothingEnabled?i.smoothProperty="webkitImageSmoothingEnabled":i.rootContext.mozImageSmoothingEnabled?i.smoothProperty="mozImageSmoothingEnabled":i.rootContext.oImageSmoothingEnabled?i.smoothProperty="oImageSmoothingEnabled":i.rootContext.msImageSmoothingEnabled&&(i.smoothProperty="msImageSmoothingEnabled")),i.initPlugins(),i.blendModes=(0,s.default)(),i._activeBlendMode=null,i.renderingToScreen=!1,i.resize(i.options.width,i.options.height),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.render=function(e,t,r,i,n){if(this.view){this.renderingToScreen=!t,this.emit("prerender");var a=this.resolution;t?((t=t.baseTexture||t)._canvasRenderTarget||(t._canvasRenderTarget=new c.default(t.width,t.height,t.resolution),t.source=t._canvasRenderTarget.canvas,t.valid=!0),this.context=t._canvasRenderTarget.context,this.resolution=t._canvasRenderTarget.resolution):this.context=this.rootContext;var o=this.context;if(t||(this._lastObjectRendered=e),!n){var s=e.parent,u=this._tempDisplayObjectParent.transform.worldTransform;i?(i.copy(u),this._tempDisplayObjectParent.transform._worldID=-1):u.identity(),e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=s}o.save(),o.setTransform(1,0,0,1,0,0),o.globalAlpha=1,this._activeBlendMode=h.BLEND_MODES.NORMAL,o.globalCompositeOperation=this.blendModes[h.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(o.fillStyle="black",o.clear()),(void 0!==r?r:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?o.clearRect(0,0,this.width,this.height):(o.fillStyle=this._backgroundColorString,o.fillRect(0,0,this.width,this.height)));var l=this.context;this.context=o,e.renderCanvas(this),this.context=l,o.restore(),this.resolution=a,this.emit("postrender")}},a.prototype.clear=function(e){var t=this.context;e=e||this._backgroundColorString,!this.transparent&&e?(t.fillStyle=e,t.fillRect(0,0,this.width,this.height)):t.clearRect(0,0,this.width,this.height)},a.prototype.setBlendMode=function(e){this._activeBlendMode!==e&&(this._activeBlendMode=e,this.context.globalCompositeOperation=this.blendModes[e])},a.prototype.destroy=function(e){this.destroyPlugins(),n.prototype.destroy.call(this,e),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},a.prototype.resize=function(e,t){n.prototype.resize.call(this,e,t),this.smoothProperty&&(this.rootContext[this.smoothProperty]=u.default.SCALE_MODE===h.SCALE_MODES.LINEAR)},a.prototype.invalidateBlendMode=function(){this._activeBlendMode=this.blendModes.indexOf(this.context.globalCompositeOperation)},a}(i.default);r.default=l,n.pluginTarget.mixin(l)},{"../../const":46,"../../settings":101,"../../utils":125,"../SystemRenderer":76,"./utils/CanvasMaskManager":78,"./utils/CanvasRenderTarget":79,"./utils/mapCanvasBlendModesToPixi":81}],78:[function(e,t,r){"use strict";r.__esModule=!0;var I=e("../../../const");var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.pushMask=function(e){var t=this.renderer;t.context.save();var r=e.alpha,i=e.transform.worldTransform,n=t.resolution;t.context.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n,i.ty*n),e._texture||(this.renderGraphicsShape(e),t.context.clip()),e.worldAlpha=r},t.prototype.renderGraphicsShape=function(e){var t=this.renderer.context,r=e.graphicsData.length;if(0!==r){t.beginPath();for(var i=0;i<r;i++){var n=e.graphicsData[i],a=n.shape;if(n.type===I.SHAPES.POLY){var o=a.points,s=n.holes,u=void 0,l=void 0;t.moveTo(o[0],o[1]);for(var c=2;c<o.length;c+=2)t.lineTo(o[c],o[c+1]);if(o[0]===o[o.length-2]&&o[1]===o[o.length-1]&&t.closePath(),0<s.length){for(var h=u=0;h<o.length;h+=2)u+=o[h]*o[h+3]-o[h+1]*o[h+2];for(var f=0;f<s.length;f++){o=s[f].points;for(var d=l=0;d<o.length;d+=2)l+=o[d]*o[d+3]-o[d+1]*o[d+2];if(t.moveTo(o[0],o[1]),l*u<0)for(var p=2;p<o.length;p+=2)t.lineTo(o[p],o[p+1]);else for(var m=o.length-2;2<=m;m-=2)t.lineTo(o[m],o[m+1])}}}else if(n.type===I.SHAPES.RECT)t.rect(a.x,a.y,a.width,a.height),t.closePath();else if(n.type===I.SHAPES.CIRC)t.arc(a.x,a.y,a.radius,0,2*Math.PI),t.closePath();else if(n.type===I.SHAPES.ELIP){var g=2*a.width,v=2*a.height,b=a.x-g/2,y=a.y-v/2,_=g/2*.5522848,w=v/2*.5522848,x=b+g,k=y+v,T=b+g/2,S=y+v/2;t.moveTo(b,S),t.bezierCurveTo(b,S-w,T-_,y,T,y),t.bezierCurveTo(T+_,y,x,S-w,x,S),t.bezierCurveTo(x,S+w,T+_,k,T,k),t.bezierCurveTo(T-_,k,b,S+w,b,S),t.closePath()}else if(n.type===I.SHAPES.RREC){var E=a.x,M=a.y,P=a.width,C=a.height,A=a.radius,O=Math.min(P,C)/2|0;A=O<A?O:A,t.moveTo(E,M+A),t.lineTo(E,M+C-A),t.quadraticCurveTo(E,M+C,E+A,M+C),t.lineTo(E+P-A,M+C),t.quadraticCurveTo(E+P,M+C,E+P,M+C-A),t.lineTo(E+P,M+A),t.quadraticCurveTo(E+P,M,E+P-A,M),t.lineTo(E+A,M),t.quadraticCurveTo(E,M,E,M+A),t.closePath()}}}},t.prototype.popMask=function(e){e.context.restore(),e.invalidateBlendMode()},t.prototype.destroy=function(){},t}();r.default=i},{"../../../const":46}],79:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=e("../../../settings"),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function i(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||o.default.RESOLUTION,this.resize(e,t)}return i.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},i.prototype.resize=function(e,t){this.canvas.width=e*this.resolution,this.canvas.height=t*this.resolution},i.prototype.destroy=function(){this.context=null,this.canvas=null},n(i,[{key:"width",get:function(){return this.canvas.width},set:function(e){this.canvas.width=e}},{key:"height",get:function(){return this.canvas.height},set:function(e){this.canvas.height=e}}]),i}();r.default=s},{"../../../settings":101}],80:[function(e,t,r){"use strict";function o(e){var t=document.createElement("canvas");t.width=6,t.height=1;var r=t.getContext("2d");return r.fillStyle=e,r.fillRect(0,0,6,1),t}r.__esModule=!0,r.default=function(){if("undefined"==typeof document)return!1;var e=o("#ff00ff"),t=o("#ffff00"),r=document.createElement("canvas");r.width=6,r.height=1;var i=r.getContext("2d");i.globalCompositeOperation="multiply",i.drawImage(e,0,0),i.drawImage(t,2,0);var n=i.getImageData(2,0,1,1);if(!n)return!1;var a=n.data;return 255===a[0]&&0===a[1]&&0===a[2]}},{}],81:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];(0,o.default)()?(e[n.BLEND_MODES.NORMAL]="source-over",e[n.BLEND_MODES.ADD]="lighter",e[n.BLEND_MODES.MULTIPLY]="multiply",e[n.BLEND_MODES.SCREEN]="screen",e[n.BLEND_MODES.OVERLAY]="overlay",e[n.BLEND_MODES.DARKEN]="darken",e[n.BLEND_MODES.LIGHTEN]="lighten",e[n.BLEND_MODES.COLOR_DODGE]="color-dodge",e[n.BLEND_MODES.COLOR_BURN]="color-burn",e[n.BLEND_MODES.HARD_LIGHT]="hard-light",e[n.BLEND_MODES.SOFT_LIGHT]="soft-light",e[n.BLEND_MODES.DIFFERENCE]="difference",e[n.BLEND_MODES.EXCLUSION]="exclusion",e[n.BLEND_MODES.HUE]="hue",e[n.BLEND_MODES.SATURATION]="saturate",e[n.BLEND_MODES.COLOR]="color",e[n.BLEND_MODES.LUMINOSITY]="luminosity"):(e[n.BLEND_MODES.NORMAL]="source-over",e[n.BLEND_MODES.ADD]="lighter",e[n.BLEND_MODES.MULTIPLY]="source-over",e[n.BLEND_MODES.SCREEN]="source-over",e[n.BLEND_MODES.OVERLAY]="source-over",e[n.BLEND_MODES.DARKEN]="source-over",e[n.BLEND_MODES.LIGHTEN]="source-over",e[n.BLEND_MODES.COLOR_DODGE]="source-over",e[n.BLEND_MODES.COLOR_BURN]="source-over",e[n.BLEND_MODES.HARD_LIGHT]="source-over",e[n.BLEND_MODES.SOFT_LIGHT]="source-over",e[n.BLEND_MODES.DIFFERENCE]="source-over",e[n.BLEND_MODES.EXCLUSION]="source-over",e[n.BLEND_MODES.HUE]="source-over",e[n.BLEND_MODES.SATURATION]="source-over",e[n.BLEND_MODES.COLOR]="source-over",e[n.BLEND_MODES.LUMINOSITY]="source-over");return e[n.BLEND_MODES.NORMAL_NPM]=e[n.BLEND_MODES.NORMAL],e[n.BLEND_MODES.ADD_NPM]=e[n.BLEND_MODES.ADD],e[n.BLEND_MODES.SCREEN_NPM]=e[n.BLEND_MODES.SCREEN],e};var i,n=e("../../../const"),a=e("./canUseNewCanvasBlendModes"),o=(i=a)&&i.__esModule?i:{default:i}},{"../../../const":46,"./canUseNewCanvasBlendModes":80}],82:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("../../const"),a=e("../../settings"),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=o.default.GC_MAX_IDLE,this.checkCountMax=o.default.GC_MAX_CHECK_COUNT,this.mode=o.default.GC_MODE}return t.prototype.update=function(){this.count++,this.mode!==n.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},t.prototype.run=function(){for(var e=this.renderer.textureManager,t=e._managedTextures,r=!1,i=0;i<t.length;i++){var n=t[i];!n._glRenderTargets&&this.count-n.touched>this.maxIdle&&(e.destroyTexture(n,!0),r=!(t[i]=null))}if(r){for(var a=0,o=0;o<t.length;o++)null!==t[o]&&(t[a++]=t[o]);t.length=a}},t.prototype.unload=function(e){var t=this.renderer.textureManager;e._texture&&e._texture._glRenderTargets&&t.destroyTexture(e._texture,!0);for(var r=e.children.length-1;0<=r;r--)this.unload(e.children[r])},t}();r.default=s},{"../../const":46,"../../settings":101}],83:[function(e,t,r){"use strict";r.__esModule=!0;var i,u=e("pixi-gl-core"),l=e("../../const"),n=e("./utils/RenderTarget"),c=(i=n)&&i.__esModule?i:{default:i},s=e("../../utils");var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.gl=e.gl,this._managedTextures=[]}return t.prototype.bindTexture=function(){},t.prototype.getTexture=function(){},t.prototype.updateTexture=function(e,t){var r=this.gl,i=!!e._glRenderTargets;if(!e.hasLoaded)return null;var n=this.renderer.boundTextures;if(void 0===t)for(var a=t=0;a<n.length;++a)if(n[a]===e){t=a;break}n[t]=e,r.activeTexture(r.TEXTURE0+t);var o=e._glTextures[this.renderer.CONTEXT_UID];if(o)i?e._glRenderTargets[this.renderer.CONTEXT_UID].resize(e.width,e.height):o.upload(e.source);else{if(i){var s=new c.default(this.gl,e.width,e.height,e.scaleMode,e.resolution);s.resize(e.width,e.height),o=(e._glRenderTargets[this.renderer.CONTEXT_UID]=s).texture,this.renderer._activeRenderTarget.root||this.renderer._activeRenderTarget.frameBuffer.bind()}else(o=new u.GLTexture(this.gl,null,null,null,null)).bind(t),o.premultiplyAlpha=!0,o.upload(e.source);e._glTextures[this.renderer.CONTEXT_UID]=o,e.on("update",this.updateTexture,this),e.on("dispose",this.destroyTexture,this),this._managedTextures.push(e),e.isPowerOfTwo?(e.mipmap&&o.enableMipmap(),e.wrapMode===l.WRAP_MODES.CLAMP?o.enableWrapClamp():e.wrapMode===l.WRAP_MODES.REPEAT?o.enableWrapRepeat():o.enableWrapMirrorRepeat()):o.enableWrapClamp(),e.scaleMode===l.SCALE_MODES.NEAREST?o.enableNearestScaling():o.enableLinearScaling()}return o},t.prototype.destroyTexture=function(e,t){if((e=e.baseTexture||e).hasLoaded){var r=this.renderer,i=r.CONTEXT_UID,n=e._glTextures,a=e._glRenderTargets;if(n[i]&&(r.unbindTexture(e),n[i].destroy(),e.off("update",this.updateTexture,this),e.off("dispose",this.destroyTexture,this),delete n[i],!t)){var o=this._managedTextures.indexOf(e);-1!==o&&(0,s.removeItems)(this._managedTextures,o,1)}a&&a[i]&&(r._activeRenderTarget===a[i]&&r.bindRenderTarget(r.rootRenderTarget),a[i].destroy(),delete a[i])}},t.prototype.removeAll=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];t._glTextures[this.renderer.CONTEXT_UID]&&delete t._glTextures[this.renderer.CONTEXT_UID]}},t.prototype.destroy=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];this.destroyTexture(t,!0),t.off("update",this.updateTexture,this),t.off("dispose",this.destroyTexture,this)}this._managedTextures=null},t}();r.default=a},{"../../const":46,"../../utils":125,"./utils/RenderTarget":96,"pixi-gl-core":15}],84:[function(e,t,r){"use strict";r.__esModule=!0;var i=a(e("../SystemRenderer")),o=a(e("./managers/MaskManager")),s=a(e("./managers/StencilManager")),u=a(e("./managers/FilterManager")),l=a(e("./utils/RenderTarget")),c=a(e("./utils/ObjectRenderer")),h=a(e("./TextureManager")),f=a(e("../../textures/BaseTexture")),d=a(e("./TextureGarbageCollector")),p=a(e("./WebGLState")),m=a(e("./utils/mapWebGLDrawModesToPixi")),g=a(e("./utils/validateContext")),n=e("../../utils"),v=a(e("pixi-gl-core")),b=e("../../const");function a(e){return e&&e.__esModule?e:{default:e}}var y=0,_=function(n){function a(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,"WebGL",e,t,r));return i.legacy=i.options.legacy,i.legacy&&(v.default.VertexArrayObject.FORCE_NATIVE=!0),i.type=b.RENDERER_TYPE.WEBGL,i.handleContextLost=i.handleContextLost.bind(i),i.handleContextRestored=i.handleContextRestored.bind(i),i.view.addEventListener("webglcontextlost",i.handleContextLost,!1),i.view.addEventListener("webglcontextrestored",i.handleContextRestored,!1),i._contextOptions={alpha:i.transparent,antialias:i.options.antialias,premultipliedAlpha:i.transparent&&"notMultiplied"!==i.transparent,stencil:!0,preserveDrawingBuffer:i.options.preserveDrawingBuffer,powerPreference:i.options.powerPreference},i._backgroundColorRgba[3]=i.transparent?0:1,i.maskManager=new o.default(i),i.stencilManager=new s.default(i),i.emptyRenderer=new c.default(i),i.currentRenderer=i.emptyRenderer,i.textureManager=null,i.filterManager=null,i.initPlugins(),i.options.context&&(0,g.default)(i.options.context),i.gl=i.options.context||v.default.createContext(i.view,i._contextOptions),i.CONTEXT_UID=y++,i.state=new p.default(i.gl),i.renderingToScreen=!0,i.boundTextures=null,i._activeShader=null,i._activeVao=null,i._activeRenderTarget=null,i._initContext(),i.drawModes=(0,m.default)(i.gl),i._nextTextureLocation=0,i.setBlendMode(0),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype._initContext=function(){var e=this.gl;e.isContextLost()&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").restoreContext();var t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this._activeShader=null,this._activeVao=null,this.boundTextures=new Array(t),this.emptyTextures=new Array(t),this._unknownBoundTextures=!1,this.textureManager=new h.default(this),this.filterManager=new u.default(this),this.textureGC=new d.default(this),this.state.resetToDefault(),this.rootRenderTarget=new l.default(e,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var r=new v.default.GLTexture.fromData(e,null,1,1),i={_glTextures:{}};i._glTextures[this.CONTEXT_UID]={};for(var n=0;n<t;n++){var a=new f.default;a._glTextures[this.CONTEXT_UID]=r,this.boundTextures[n]=i,this.emptyTextures[n]=a,this.bindTexture(null,n)}this.emit("context",e),this.resize(this.screen.width,this.screen.height)},a.prototype.render=function(e,t,r,i,n){if(this.renderingToScreen=!t,this.emit("prerender"),this.gl&&!this.gl.isContextLost()){if(this._nextTextureLocation=0,t||(this._lastObjectRendered=e),!n){var a=e.parent;e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=a}this.bindRenderTexture(t,i),this.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this._activeRenderTarget.clear(),e.renderWebGL(this),this.currentRenderer.flush(),this.textureGC.update(),this.emit("postrender")}},a.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},a.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},a.prototype.resize=function(e,t){i.default.prototype.resize.call(this,e,t),this.rootRenderTarget.resize(e,t),this._activeRenderTarget===this.rootRenderTarget&&(this.rootRenderTarget.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=this.rootRenderTarget.projectionMatrix.toArray(!0)))},a.prototype.setBlendMode=function(e){this.state.setBlendMode(e)},a.prototype.clear=function(e){this._activeRenderTarget.clear(e)},a.prototype.setTransform=function(e){this._activeRenderTarget.transform=e},a.prototype.clearRenderTexture=function(e,t){var r=e.baseTexture._glRenderTargets[this.CONTEXT_UID];return r&&r.clear(t),this},a.prototype.bindRenderTexture=function(e,t){var r=void 0;if(e){var i=e.baseTexture;i._glRenderTargets[this.CONTEXT_UID]||this.textureManager.updateTexture(i,0),this.unbindTexture(i),(r=i._glRenderTargets[this.CONTEXT_UID]).setFrame(e.frame)}else r=this.rootRenderTarget;return r.transform=t,this.bindRenderTarget(r),this},a.prototype.bindRenderTarget=function(e){return e!==this._activeRenderTarget&&((this._activeRenderTarget=e).activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=e.projectionMatrix.toArray(!0)),this.stencilManager.setMaskStack(e.stencilMaskStack)),this},a.prototype.bindShader=function(e,t){return this._activeShader!==e&&((this._activeShader=e).bind(),!1!==t&&(e.uniforms.projectionMatrix=this._activeRenderTarget.projectionMatrix.toArray(!0))),this},a.prototype.bindTexture=function(e,t,r){if((e=(e=e||this.emptyTextures[t]).baseTexture||e).touched=this.textureGC.count,r)t=t||0;else{for(var i=0;i<this.boundTextures.length;i++)if(this.boundTextures[i]===e)return i;void 0===t&&(this._nextTextureLocation++,this._nextTextureLocation%=this.boundTextures.length,t=this.boundTextures.length-this._nextTextureLocation-1)}var n=this.gl,a=e._glTextures[this.CONTEXT_UID];return a?(this.boundTextures[t]=e,n.activeTexture(n.TEXTURE0+t),n.bindTexture(n.TEXTURE_2D,a.texture)):this.textureManager.updateTexture(e,t),t},a.prototype.unbindTexture=function(e){var t=this.gl;if(e=e.baseTexture||e,this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var r=0;r<this.boundTextures.length;r++)this.boundTextures[r]===this.emptyTextures[r]&&(t.activeTexture(t.TEXTURE0+r),t.bindTexture(t.TEXTURE_2D,this.emptyTextures[r]._glTextures[this.CONTEXT_UID].texture))}for(var i=0;i<this.boundTextures.length;i++)this.boundTextures[i]===e&&(this.boundTextures[i]=this.emptyTextures[i],t.activeTexture(t.TEXTURE0+i),t.bindTexture(t.TEXTURE_2D,this.emptyTextures[i]._glTextures[this.CONTEXT_UID].texture));return this},a.prototype.createVao=function(){return new v.default.VertexArrayObject(this.gl,this.state.attribState)},a.prototype.bindVao=function(e){return this._activeVao===e||(e?e.bind():this._activeVao&&this._activeVao.unbind(),this._activeVao=e),this},a.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer),this.bindVao(null),this._activeShader=null,this._activeRenderTarget=this.rootRenderTarget,this._unknownBoundTextures=!0;for(var e=0;e<this.boundTextures.length;e++)this.boundTextures[e]=this.emptyTextures[e];return this.rootRenderTarget.activate(),this.state.resetToDefault(),this},a.prototype.handleContextLost=function(e){e.preventDefault()},a.prototype.handleContextRestored=function(){this.textureManager.removeAll(),this.filterManager.destroy(!0),this._initContext()},a.prototype.destroy=function(e){this.destroyPlugins(),this.view.removeEventListener("webglcontextlost",this.handleContextLost),this.view.removeEventListener("webglcontextrestored",this.handleContextRestored),this.textureManager.destroy(),n.prototype.destroy.call(this,e),this.uid=0,this.maskManager.destroy(),this.stencilManager.destroy(),this.filterManager.destroy(),this.maskManager=null,this.filterManager=null,this.textureManager=null,this.currentRenderer=null,this.handleContextLost=null,this.handleContextRestored=null,this._contextOptions=null,this.gl.useProgram(null),this.gl.getExtension("WEBGL_lose_context")&&this.gl.getExtension("WEBGL_lose_context").loseContext(),this.gl=null},a}(i.default);r.default=_,n.pluginTarget.mixin(_)},{"../../const":46,"../../textures/BaseTexture":112,"../../utils":125,"../SystemRenderer":76,"./TextureGarbageCollector":82,"./TextureManager":83,"./WebGLState":85,"./managers/FilterManager":90,"./managers/MaskManager":91,"./managers/StencilManager":92,"./utils/ObjectRenderer":94,"./utils/RenderTarget":96,"./utils/mapWebGLDrawModesToPixi":99,"./utils/validateContext":100,"pixi-gl-core":15}],85:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("./utils/mapWebGLBlendModesToPixi"),a=(i=n)&&i.__esModule?i:{default:i};var o=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=e,this.maxAttribs=e.getParameter(e.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,a.default)(e),this.nativeVaoExtension=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object")}return t.prototype.push=function(){var e=this.stack[this.stackIndex];e||(e=this.stack[this.stackIndex]=new Uint8Array(16)),++this.stackIndex;for(var t=0;t<this.activeState.length;t++)e[t]=this.activeState[t]},t.prototype.pop=function(){var e=this.stack[--this.stackIndex];this.setState(e)},t.prototype.setState=function(e){this.setBlend(e[0]),this.setDepthTest(e[1]),this.setFrontFace(e[2]),this.setCullFace(e[3]),this.setBlendMode(e[4])},t.prototype.setBlend=function(e){e=e?1:0,this.activeState[0]!==e&&(this.activeState[0]=e,this.gl[e?"enable":"disable"](this.gl.BLEND))},t.prototype.setBlendMode=function(e){if(e!==this.activeState[4]){this.activeState[4]=e;var t=this.blendModes[e];2===t.length?this.gl.blendFunc(t[0],t[1]):this.gl.blendFuncSeparate(t[0],t[1],t[2],t[3])}},t.prototype.setDepthTest=function(e){e=e?1:0,this.activeState[1]!==e&&(this.activeState[1]=e,this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST))},t.prototype.setCullFace=function(e){e=e?1:0,this.activeState[3]!==e&&(this.activeState[3]=e,this.gl[e?"enable":"disable"](this.gl.CULL_FACE))},t.prototype.setFrontFace=function(e){e=e?1:0,this.activeState[2]!==e&&(this.activeState[2]=e,this.gl.frontFace(this.gl[e?"CW":"CCW"]))},t.prototype.resetAttributes=function(){for(var e=0;e<this.attribState.tempAttribState.length;e++)this.attribState.tempAttribState[e]=0;for(var t=0;t<this.attribState.attribState.length;t++)this.attribState.attribState[t]=0;for(var r=1;r<this.maxAttribs;r++)this.gl.disableVertexAttribArray(r)},t.prototype.resetToDefault=function(){this.nativeVaoExtension&&this.nativeVaoExtension.bindVertexArrayOES(null),this.resetAttributes();for(var e=0;e<this.activeState.length;++e)this.activeState[e]=32;this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.setState(this.defaultState)},t}();r.default=o},{"./utils/mapWebGLBlendModesToPixi":98}],86:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=n(e("./extractUniformsFromSrc")),o=e("../../../utils"),s=e("../../../const"),u=n(e("../../../settings"));function n(e){return e&&e.__esModule?e:{default:e}}var l={},c=function(){function n(e,t,r){for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.vertexSrc=e||n.defaultVertexSrc,this.fragmentSrc=t||n.defaultFragmentSrc,this._blendMode=s.BLEND_MODES.NORMAL,this.uniformData=r||(0,a.default)(this.vertexSrc,this.fragmentSrc,"projectionMatrix|uSampler"),this.uniforms={},this.uniformData)this.uniforms[i]=this.uniformData[i].value,this.uniformData[i].type&&(this.uniformData[i].type=this.uniformData[i].type.toLowerCase());this.glShaders={},l[this.vertexSrc+this.fragmentSrc]||(l[this.vertexSrc+this.fragmentSrc]=(0,o.uid)()),this.glShaderKey=l[this.vertexSrc+this.fragmentSrc],this.padding=4,this.resolution=u.default.FILTER_RESOLUTION,this.enabled=!0,this.autoFit=!0}return n.prototype.apply=function(e,t,r,i,n){e.applyFilter(this,t,r,i)},i(n,[{key:"blendMode",get:function(){return this._blendMode},set:function(e){this._blendMode=e}}],[{key:"defaultVertexSrc",get:function(){return["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 projectionMatrix;","uniform mat3 filterMatrix;","varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","void main(void){"," gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;"," vTextureCoord = aTextureCoord ;","}"].join("\n")}},{key:"defaultFragmentSrc",get:function(){return["varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","uniform sampler2D uSampler;","uniform sampler2D filterSampler;","void main(void){"," vec4 masky = texture2D(filterSampler, vFilterCoord);"," vec4 sample = texture2D(uSampler, vTextureCoord);"," vec4 color;"," if(mod(vFilterCoord.x, 1.0) > 0.5)"," {"," color = vec4(1.0, 0.0, 0.0, 1.0);"," }"," else"," {"," color = vec4(0.0, 1.0, 0.0, 1.0);"," }"," gl_FragColor = mix(sample, masky, 0.5);"," gl_FragColor *= sample.a;","}"].join("\n")}}]),n}();r.default=c},{"../../../const":46,"../../../settings":101,"../../../utils":125,"./extractUniformsFromSrc":87}],87:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var i=a(e),n=a(t);return Object.assign(i,n)};var i,n=e("pixi-gl-core");var h=((i=n)&&i.__esModule?i:{default:i}).default.shader.defaultValue;function a(e){for(var t=new RegExp("^(projectionMatrix|uSampler|filterArea|filterClamp)$"),r={},i=void 0,n=e.replace(/\s+/g," ").split(/\s*;\s*/),a=0;a<n.length;a++){var o=n[a].trim();if(-1<o.indexOf("uniform")){var s=o.split(" "),u=s[1],l=s[2],c=1;-1<l.indexOf("[")&&(l=(i=l.split(/\[|]/))[0],c*=Number(i[1])),l.match(t)||(r[l]={value:h(u,c),name:l,type:u})}}return r}},{"pixi-gl-core":15}],88:[function(e,t,r){"use strict";r.__esModule=!0,r.calculateScreenSpaceMatrix=function(e,t,r){var i=e.identity();return i.translate(t.x/r.width,t.y/r.height),i.scale(r.width,r.height),i},r.calculateNormalizedScreenSpaceMatrix=function(e,t,r){var i=e.identity();i.translate(t.x/r.width,t.y/r.height);var n=r.width/t.width,a=r.height/t.height;return i.scale(n,a),i},r.calculateSpriteMatrix=function(e,t,r,i){var n=i._texture.orig,a=e.set(r.width,0,0,r.height,t.x,t.y),o=i.worldTransform.copy(s.Matrix.TEMP_MATRIX);return o.invert(),a.prepend(o),a.scale(1/n.width,1/n.height),a.translate(i.anchor.x,i.anchor.y),a};var s=e("../../../math")},{"../../../math":70}],89:[function(e,t,r){"use strict";r.__esModule=!0;var i=n(e("../Filter")),a=e("../../../../math"),o=(e("path"),n(e("../../../../textures/TextureMatrix")));function n(e){return e&&e.__esModule?e:{default:e}}var s=function(i){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=new a.Matrix,r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n\n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n"));return e.renderable=!1,r.maskSprite=e,r.maskMatrix=t,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),n.prototype.apply=function(e,t,r,i){var n=this.maskSprite,a=this.maskSprite.texture;a.valid&&(a.transform||(a.transform=new o.default(a,0)),a.transform.update(),this.uniforms.mask=a,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,n).prepend(a.transform.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=a.transform.uClampFrame,e.applyFilter(this,t,r,i))},n}(i.default);r.default=s},{"../../../../math":70,"../../../../textures/TextureMatrix":116,"../Filter":86,path:8}],90:[function(e,t,r){"use strict";r.__esModule=!0;var i=c(e("./WebGLManager")),s=c(e("../utils/RenderTarget")),n=c(e("../utils/Quad")),a=e("../../../math"),u=c(e("../../../Shader")),o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../filters/filterTransforms")),l=c(e("bit-twiddle"));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(){h(this,e),this.renderTarget=null,this.target=null,this.resolution=1,this.sourceFrame=new a.Rectangle,this.destinationFrame=new a.Rectangle,this.filters=[]}return e.prototype.clear=function(){this.filters=null,this.target=null,this.renderTarget=null},e}(),f="screen",d=function(r){function i(e){h(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.gl=t.renderer.gl,t.quad=new n.default(t.gl,e.state.attribState),t.shaderCache={},t.pool={},t.filterData=null,t.managedFilters=[],t.renderer.on("prerender",t.onPrerender,t),t._screenWidth=e.view.width,t._screenHeight=e.view.height,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.pushFilter=function(e,t){var r=this.renderer,i=this.filterData;if(!i){i=this.renderer._activeRenderTarget.filterStack;var n=new p;n.sourceFrame=n.destinationFrame=this.renderer._activeRenderTarget.size,n.renderTarget=r._activeRenderTarget,this.renderer._activeRenderTarget.filterData=i={index:0,stack:[n]},this.filterData=i}var a=i.stack[++i.index],o=i.stack[0].destinationFrame;a||(a=i.stack[i.index]=new p);var s=e.filterArea&&0===e.filterArea.x&&0===e.filterArea.y&&e.filterArea.width===r.screen.width&&e.filterArea.height===r.screen.height,u=t[0].resolution,l=0|t[0].padding,c=s?r.screen:e.filterArea||e.getBounds(!0),h=a.sourceFrame,f=a.destinationFrame;h.x=(c.x*u|0)/u,h.y=(c.y*u|0)/u,h.width=(c.width*u|0)/u,h.height=(c.height*u|0)/u,s||(i.stack[0].renderTarget.transform||t[0].autoFit&&h.fit(o),h.pad(l)),f.width=h.width,f.height=h.height;var d=this.getPotRenderTarget(r.gl,h.width,h.height,u);a.target=e,a.filters=t,a.resolution=u,(a.renderTarget=d).setFrame(f,h),r.bindRenderTarget(d),d.clear()},i.prototype.popFilter=function(){var e=this.filterData,t=e.stack[e.index-1],r=e.stack[e.index];this.quad.map(r.renderTarget.size,r.sourceFrame).upload();var i=r.filters;if(1===i.length)i[0].apply(this,r.renderTarget,t.renderTarget,!1,r),this.freePotRenderTarget(r.renderTarget);else{var n=r.renderTarget,a=this.getPotRenderTarget(this.renderer.gl,r.sourceFrame.width,r.sourceFrame.height,r.resolution);a.setFrame(r.destinationFrame,r.sourceFrame),a.clear();var o=0;for(o=0;o<i.length-1;++o){i[o].apply(this,n,a,!0,r);var s=n;n=a,a=s}i[o].apply(this,n,t.renderTarget,!1,r),this.freePotRenderTarget(n),this.freePotRenderTarget(a)}r.clear(),e.index--,0===e.index&&(this.filterData=null)},i.prototype.applyFilter=function(e,t,r,i){var n=this.renderer,a=n.gl,o=e.glShaders[n.CONTEXT_UID];o||(e.glShaderKey?(o=this.shaderCache[e.glShaderKey])||(o=new u.default(this.gl,e.vertexSrc,e.fragmentSrc),e.glShaders[n.CONTEXT_UID]=this.shaderCache[e.glShaderKey]=o,this.managedFilters.push(e)):(o=e.glShaders[n.CONTEXT_UID]=new u.default(this.gl,e.vertexSrc,e.fragmentSrc),this.managedFilters.push(e)),n.bindVao(null),this.quad.initVao(o)),n.bindVao(this.quad.vao),n.bindRenderTarget(r),i&&(a.disable(a.SCISSOR_TEST),n.clear(),a.enable(a.SCISSOR_TEST)),r===n.maskManager.scissorRenderTarget&&n.maskManager.pushScissorMask(null,n.maskManager.scissorData),n.bindShader(o);var s=this.renderer.emptyTextures[0];this.renderer.boundTextures[0]=s,this.syncUniforms(o,e),n.state.setBlendMode(e.blendMode),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,t.texture.texture),this.quad.vao.draw(this.renderer.gl.TRIANGLES,6,0),a.bindTexture(a.TEXTURE_2D,s._glTextures[this.renderer.CONTEXT_UID].texture)},i.prototype.syncUniforms=function(e,t){var r=t.uniformData,i=t.uniforms,n=1,a=void 0;if(e.uniforms.filterArea){a=this.filterData.stack[this.filterData.index];var o=e.uniforms.filterArea;o[0]=a.renderTarget.size.width,o[1]=a.renderTarget.size.height,o[2]=a.sourceFrame.x,o[3]=a.sourceFrame.y,e.uniforms.filterArea=o}if(e.uniforms.filterClamp){a=a||this.filterData.stack[this.filterData.index];var s=e.uniforms.filterClamp;s[0]=0,s[1]=0,s[2]=(a.sourceFrame.width-1)/a.renderTarget.size.width,s[3]=(a.sourceFrame.height-1)/a.renderTarget.size.height,e.uniforms.filterClamp=s}for(var u in r)if(e.uniforms.data[u]){var l=r[u].type;if("sampler2d"===l&&0!==i[u]){if(i[u].baseTexture)e.uniforms[u]=this.renderer.bindTexture(i[u].baseTexture,n);else{e.uniforms[u]=n;var c=this.renderer.gl;this.renderer.boundTextures[n]=this.renderer.emptyTextures[n],c.activeTexture(c.TEXTURE0+n),i[u].texture.bind()}n++}else if("mat3"===l)void 0!==i[u].a?e.uniforms[u]=i[u].toArray(!0):e.uniforms[u]=i[u];else if("vec2"===l)if(void 0!==i[u].x){var h=e.uniforms[u]||new Float32Array(2);h[0]=i[u].x,h[1]=i[u].y,e.uniforms[u]=h}else e.uniforms[u]=i[u];else"float"===l?e.uniforms.data[u].value!==r[u]&&(e.uniforms[u]=i[u]):e.uniforms[u]=i[u]}},i.prototype.getRenderTarget=function(e,t){var r=this.filterData.stack[this.filterData.index],i=this.getPotRenderTarget(this.renderer.gl,r.sourceFrame.width,r.sourceFrame.height,t||r.resolution);return i.setFrame(r.destinationFrame,r.sourceFrame),i},i.prototype.returnRenderTarget=function(e){this.freePotRenderTarget(e)},i.prototype.calculateScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return o.calculateScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size)},i.prototype.calculateNormalizedScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return o.calculateNormalizedScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size,t.destinationFrame)},i.prototype.calculateSpriteMatrix=function(e,t){var r=this.filterData.stack[this.filterData.index];return o.calculateSpriteMatrix(e,r.sourceFrame,r.renderTarget.size,t)},i.prototype.destroy=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.renderer,r=this.managedFilters;t.off("prerender",this.onPrerender,this);for(var i=0;i<r.length;i++)e||r[i].glShaders[t.CONTEXT_UID].destroy(),delete r[i].glShaders[t.CONTEXT_UID];this.shaderCache={},e?this.pool={}:this.emptyPool()},i.prototype.getPotRenderTarget=function(e,t,r,i){var n=f;r*=i,(t*=i)===this._screenWidth&&r===this._screenHeight||(n=(65535&(t=l.default.nextPow2(t)))<<16|65535&(r=l.default.nextPow2(r))),this.pool[n]||(this.pool[n]=[]);var a=this.pool[n].pop();if(!a){var o=this.renderer.boundTextures[0];e.activeTexture(e.TEXTURE0),a=new s.default(e,t,r,null,1),e.bindTexture(e.TEXTURE_2D,o._glTextures[this.renderer.CONTEXT_UID].texture)}return a.resolution=i,a.defaultFrame.width=a.size.width=t/i,a.defaultFrame.height=a.size.height=r/i,a.filterPoolKey=n,a},i.prototype.emptyPool=function(){for(var e in this.pool){var t=this.pool[e];if(t)for(var r=0;r<t.length;r++)t[r].destroy(!0)}this.pool={}},i.prototype.freePotRenderTarget=function(e){this.pool[e.filterPoolKey].push(e)},i.prototype.onPrerender=function(){if(this._screenWidth!==this.renderer.view.width||this._screenHeight!==this.renderer.view.height){this._screenWidth=this.renderer.view.width,this._screenHeight=this.renderer.view.height;var e=this.pool[f];if(e)for(var t=0;t<e.length;t++)e[t].destroy(!0);this.pool[f]=[]}},i}(i.default);r.default=d},{"../../../Shader":44,"../../../math":70,"../filters/filterTransforms":88,"../utils/Quad":95,"../utils/RenderTarget":96,"./WebGLManager":93,"bit-twiddle":1}],91:[function(e,t,r){"use strict";r.__esModule=!0;var i=a(e("./WebGLManager")),n=a(e("../filters/spriteMask/SpriteMaskFilter"));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.scissor=!1,t.scissorData=null,t.scissorRenderTarget=null,t.enableScissor=!0,t.alphaMaskPool=[],t.alphaMaskIndex=0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.pushMask=function(e,t){if(t.texture)this.pushSpriteMask(e,t);else if(this.enableScissor&&!this.scissor&&this.renderer._activeRenderTarget.root&&!this.renderer.stencilManager.stencilMaskStack.length&&t.isFastRect()){var r=t.worldTransform,i=Math.atan2(r.b,r.a);(i=Math.round(i*(180/Math.PI)))%90?this.pushStencilMask(t):this.pushScissorMask(e,t)}else this.pushStencilMask(t)},i.prototype.popMask=function(e,t){t.texture?this.popSpriteMask(e,t):this.enableScissor&&!this.renderer.stencilManager.stencilMaskStack.length?this.popScissorMask(e,t):this.popStencilMask(e,t)},i.prototype.pushSpriteMask=function(e,t){var r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new n.default(t)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=t;var i=e.filterArea;e.filterArea=t.getBounds(!0),this.renderer.filterManager.pushFilter(e,r),e.filterArea=i,this.alphaMaskIndex++},i.prototype.popSpriteMask=function(){this.renderer.filterManager.popFilter(),this.alphaMaskIndex--},i.prototype.pushStencilMask=function(e){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.pushStencil(e)},i.prototype.popStencilMask=function(){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.popStencil()},i.prototype.pushScissorMask=function(e,t){t.renderable=!0;var r=this.renderer._activeRenderTarget,i=t.getBounds();i.fit(r.size),t.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var n=this.renderer.resolution;this.renderer.gl.scissor(i.x*n,(r.root?r.size.height-i.y-i.height:i.y)*n,i.width*n,i.height*n),this.scissorRenderTarget=r,this.scissorData=t,this.scissor=!0},i.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var e=this.renderer.gl;e.disable(e.SCISSOR_TEST)},i}(i.default);r.default=o},{"../filters/spriteMask/SpriteMaskFilter":89,"./WebGLManager":93}],92:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("./WebGLManager"),a=(i=n)&&i.__esModule?i:{default:i};var o=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.stencilMaskStack=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.setMaskStack=function(e){this.stencilMaskStack=e;var t=this.renderer.gl;0===e.length?t.disable(t.STENCIL_TEST):t.enable(t.STENCIL_TEST)},i.prototype.pushStencil=function(e){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),this.renderer._activeRenderTarget.attachStencilBuffer();var t=this.renderer.gl,r=this.stencilMaskStack.length;0===r&&t.enable(t.STENCIL_TEST),this.stencilMaskStack.push(e),t.colorMask(!1,!1,!1,!1),t.stencilFunc(t.EQUAL,r,this._getBitwiseMask()),t.stencilOp(t.KEEP,t.KEEP,t.INCR),this.renderer.plugins.graphics.render(e),this._useCurrent()},i.prototype.popStencil=function(){this.renderer.setObjectRenderer(this.renderer.plugins.graphics);var e=this.renderer.gl,t=this.stencilMaskStack.pop();0===this.stencilMaskStack.length?(e.disable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),e.clearStencil(0)):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),this.renderer.plugins.graphics.render(t),this._useCurrent())},i.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.stencilMaskStack.length,this._getBitwiseMask()),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},i.prototype._getBitwiseMask=function(){return(1<<this.stencilMaskStack.length)-1},i.prototype.destroy=function(){a.default.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},i}(a.default);r.default=o},{"./WebGLManager":93}],93:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.renderer.on("context",this.onContextChange,this)}return t.prototype.onContextChange=function(){},t.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null},t}();r.default=i},{}],94:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("../managers/WebGLManager");var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.flush=function(){},t.prototype.render=function(e){},t}(((i=n)&&i.__esModule?i:{default:i}).default);r.default=a},{"../managers/WebGLManager":93}],95:[function(e,t,r){"use strict";r.__esModule=!0;var n=i(e("pixi-gl-core")),a=i(e("../../../utils/createIndicesForQuads"));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.gl=e,this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.interleaved=new Float32Array(16);for(var r=0;r<4;r++)this.interleaved[4*r]=this.vertices[2*r],this.interleaved[4*r+1]=this.vertices[2*r+1],this.interleaved[4*r+2]=this.uvs[2*r],this.interleaved[4*r+3]=this.uvs[2*r+1];this.indices=(0,a.default)(1),this.vertexBuffer=n.default.GLBuffer.createVertexBuffer(e,this.interleaved,e.STATIC_DRAW),this.indexBuffer=n.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.vao=new n.default.VertexArrayObject(e,t)}return i.prototype.initVao=function(e){this.vao.clear().addIndex(this.indexBuffer).addAttribute(this.vertexBuffer,e.attributes.aVertexPosition,this.gl.FLOAT,!1,16,0).addAttribute(this.vertexBuffer,e.attributes.aTextureCoord,this.gl.FLOAT,!1,16,8)},i.prototype.map=function(e,t){var r=0,i=0;return this.uvs[0]=r,this.uvs[1]=i,this.uvs[2]=r+t.width/e.width,this.uvs[3]=i,this.uvs[4]=r+t.width/e.width,this.uvs[5]=i+t.height/e.height,this.uvs[6]=r,this.uvs[7]=i+t.height/e.height,r=t.x,i=t.y,this.vertices[0]=r,this.vertices[1]=i,this.vertices[2]=r+t.width,this.vertices[3]=i,this.vertices[4]=r+t.width,this.vertices[5]=i+t.height,this.vertices[6]=r,this.vertices[7]=i+t.height,this},i.prototype.upload=function(){for(var e=0;e<4;e++)this.interleaved[4*e]=this.vertices[2*e],this.interleaved[4*e+1]=this.vertices[2*e+1],this.interleaved[4*e+2]=this.uvs[2*e],this.interleaved[4*e+3]=this.uvs[2*e+1];return this.vertexBuffer.upload(this.interleaved),this},i.prototype.destroy=function(){var e=this.gl;e.deleteBuffer(this.vertexBuffer),e.deleteBuffer(this.indexBuffer)},i}();r.default=o},{"../../../utils/createIndicesForQuads":123,"pixi-gl-core":15}],96:[function(e,t,r){"use strict";r.__esModule=!0;var i,s=e("../../../math"),u=e("../../../const"),n=e("../../../settings"),l=(i=n)&&i.__esModule?i:{default:i},c=e("pixi-gl-core");var a=function(){function o(e,t,r,i,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.gl=e,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new s.Rectangle(0,0,1,1),this.resolution=n||l.default.RESOLUTION,this.projectionMatrix=new s.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new s.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.filterPoolKey="",this.scaleMode=void 0!==i?i:l.default.SCALE_MODE,this.root=a||!1,this.root?(this.frameBuffer=new c.GLFramebuffer(e,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=c.GLFramebuffer.createRGBA(e,100,100),this.scaleMode===u.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(t,r)}return o.prototype.clear=function(e){var t=e||this.clearColor;this.frameBuffer.clear(t[0],t[1],t[2],t[3])},o.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},o.prototype.setFrame=function(e,t){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||this.destinationFrame},o.prototype.activate=function(){var e=this.gl;this.frameBuffer.bind(),this.calculateProjection(this.destinationFrame,this.sourceFrame),this.transform&&this.projectionMatrix.append(this.transform),this.destinationFrame!==this.sourceFrame?(e.enable(e.SCISSOR_TEST),e.scissor(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)):e.disable(e.SCISSOR_TEST),e.viewport(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)},o.prototype.calculateProjection=function(e,t){var r=this.projectionMatrix;t=t||e,r.identity(),this.root?(r.a=1/e.width*2,r.d=-1/e.height*2,r.tx=-1-t.x*r.a,r.ty=1-t.y*r.d):(r.a=1/e.width*2,r.d=1/e.height*2,r.tx=-1-t.x*r.a,r.ty=-1-t.y*r.d)},o.prototype.resize=function(e,t){if(e|=0,t|=0,this.size.width!==e||this.size.height!==t){this.size.width=e,this.size.height=t,this.defaultFrame.width=e,this.defaultFrame.height=t,this.frameBuffer.resize(e*this.resolution,t*this.resolution);var r=this.frame||this.size;this.calculateProjection(r)}},o.prototype.destroy=function(){this.frameBuffer.stencil&&this.gl.deleteRenderbuffer(this.frameBuffer.stencil),this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},o}();r.default=a},{"../../../const":46,"../../../math":70,"../../../settings":101,"pixi-gl-core":15}],97:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=!t;if(0===e)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");if(r){var i=document.createElement("canvas");i.width=1,i.height=1,t=o.default.createContext(i)}var n=t.createShader(t.FRAGMENT_SHADER);for(;;){var a=s.replace(/%forloop%/gi,u(e));if(t.shaderSource(n,a),t.compileShader(n),t.getShaderParameter(n,t.COMPILE_STATUS))break;e=e/2|0}r&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").loseContext();return e};var i,n=e("pixi-gl-core"),o=(i=n)&&i.__esModule?i:{default:i};var s=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function u(e){for(var t="",r=0;r<e;++r)0<r&&(t+="\nelse "),r<e-1&&(t+="if(test == "+r+".0){}");return t}},{"pixi-gl-core":15}],98:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return t[i.BLEND_MODES.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.ADD]=[e.ONE,e.ONE],t[i.BLEND_MODES.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[i.BLEND_MODES.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[i.BLEND_MODES.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t};var i=e("../../../const")},{"../../../const":46}],99:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t[i.DRAW_MODES.POINTS]=e.POINTS,t[i.DRAW_MODES.LINES]=e.LINES,t[i.DRAW_MODES.LINE_LOOP]=e.LINE_LOOP,t[i.DRAW_MODES.LINE_STRIP]=e.LINE_STRIP,t[i.DRAW_MODES.TRIANGLES]=e.TRIANGLES,t[i.DRAW_MODES.TRIANGLE_STRIP]=e.TRIANGLE_STRIP,t[i.DRAW_MODES.TRIANGLE_FAN]=e.TRIANGLE_FAN,t};var i=e("../../../const")},{"../../../const":46}],100:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){e.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}},{}],101:[function(e,t,r){"use strict";r.__esModule=!0;var i=a(e("./utils/maxRecommendedTextures")),n=a(e("./utils/canUploadSameBuffer"));function a(e){return e&&e.__esModule?e:{default:e}}r.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,i.default)(32),SPRITE_BATCH_SIZE:4096,RETINA_PREFIX:/@([0-9\.]+)x/,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1,width:800,height:600,legacy:!1},TRANSFORM_MODE:0,GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:0,SCALE_MODE:0,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:"mediump",CAN_UPLOAD_SAME_BUFFER:(0,n.default)(),MESH_CANVAS_PADDING:0}},{"./utils/canUploadSameBuffer":122,"./utils/maxRecommendedTextures":127}],102:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=e("../math"),o=e("../utils"),s=e("../const"),u=l(e("../textures/Texture")),i=l(e("../display/Container"));function l(e){return e&&e.__esModule?e:{default:e}}var c=new a.Point,h=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this));return t._anchor=new a.ObservablePoint(t._onAnchorUpdate,t,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),t._texture=null,t._width=0,t._height=0,t._tint=null,t._tintRGB=null,t.tint=16777215,t.blendMode=s.BLEND_MODES.NORMAL,t.shader=null,t.cachedTint=16777215,t.texture=e||u.default.EMPTY,t.vertexData=new Float32Array(8),t.vertexTrimmedData=null,t._transformID=-1,t._textureID=-1,t._transformTrimmedID=-1,t._textureTrimmedID=-1,t.pluginName="sprite",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this.cachedTint=16777215,this._width&&(this.scale.x=(0,o.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,o.sign)(this.scale.y)*this._height/this._texture.orig.height)},i.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},i.prototype.calculateVertices=function(){if(this._transformID!==this.transform._worldID||this._textureID!==this._texture._updateID){this._transformID=this.transform._worldID,this._textureID=this._texture._updateID;var e=this._texture,t=this.transform.worldTransform,r=t.a,i=t.b,n=t.c,a=t.d,o=t.tx,s=t.ty,u=this.vertexData,l=e.trim,c=e.orig,h=this._anchor,f=0,d=0,p=0,m=0;p=l?(f=(d=l.x-h._x*c.width)+l.width,(m=l.y-h._y*c.height)+l.height):(f=(d=-h._x*c.width)+c.width,(m=-h._y*c.height)+c.height),u[0]=r*d+n*m+o,u[1]=a*m+i*d+s,u[2]=r*f+n*m+o,u[3]=a*m+i*f+s,u[4]=r*f+n*p+o,u[5]=a*p+i*f+s,u[6]=r*d+n*p+o,u[7]=a*p+i*d+s}},i.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var e=this._texture,t=this.vertexTrimmedData,r=e.orig,i=this._anchor,n=this.transform.worldTransform,a=n.a,o=n.b,s=n.c,u=n.d,l=n.tx,c=n.ty,h=-i._x*r.width,f=h+r.width,d=-i._y*r.height,p=d+r.height;t[0]=a*h+s*d+l,t[1]=u*d+o*h+c,t[2]=a*f+s*d+l,t[3]=u*d+o*f+c,t[4]=a*f+s*p+l,t[5]=u*p+o*f+c,t[6]=a*h+s*p+l,t[7]=u*p+o*h+c},i.prototype._renderWebGL=function(e){this.calculateVertices(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},i.prototype._renderCanvas=function(e){e.plugins[this.pluginName].render(this)},i.prototype._calculateBounds=function(){var e=this._texture.trim,t=this._texture.orig;!e||e.width===t.width&&e.height===t.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},i.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._texture.orig.width*-this._anchor._x,this._bounds.minY=this._texture.orig.height*-this._anchor._y,this._bounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._bounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new a.Rectangle),e=this._localBoundsRect),this._bounds.getRectangle(e)):r.prototype.getLocalBounds.call(this,e)},i.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,c);var t=this._texture.orig.width,r=this._texture.orig.height,i=-t*this.anchor.x,n=0;return c.x>=i&&c.x<i+t&&(n=-r*this.anchor.y,c.y>=n&&c.y<n+r)},i.prototype.destroy=function(e){if(r.prototype.destroy.call(this,e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,"boolean"==typeof e?e:e&&e.texture){var t="boolean"==typeof e?e:e&&e.baseTexture;this._texture.destroy(!!t)}this._texture=null,this.shader=null},i.from=function(e){return new i(u.default.from(e))},i.fromFrame=function(e){var t=o.TextureCache[e];if(!t)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return new i(t)},i.fromImage=function(e,t,r){return new i(u.default.fromImage(e,t,r))},n(i,[{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){var t=(0,o.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){var t=(0,o.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"anchor",get:function(){return this._anchor},set:function(e){this._anchor.copy(e)}},{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16)}},{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e||u.default.EMPTY,this.cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}}]),i}(i.default);r.default=h},{"../const":46,"../display/Container":48,"../math":70,"../textures/Texture":115,"../utils":125}],103:[function(e,t,r){"use strict";r.__esModule=!0;var i=n(e("../../renderers/canvas/CanvasRenderer")),c=e("../../const"),h=e("../../math"),f=n(e("./CanvasTinter"));function n(e){return e&&e.__esModule?e:{default:e}}var d=new h.Matrix,a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(e){var t=e._texture,r=this.renderer,i=t._frame.width,n=t._frame.height,a=e.transform.worldTransform,o=0,s=0;if(!(t.orig.width<=0||t.orig.height<=0)&&t.baseTexture.source&&(r.setBlendMode(e.blendMode),t.valid)){r.context.globalAlpha=e.worldAlpha;var u=t.baseTexture.scaleMode===c.SCALE_MODES.LINEAR;r.smoothProperty&&r.context[r.smoothProperty]!==u&&(r.context[r.smoothProperty]=u),s=t.trim?(o=t.trim.width/2+t.trim.x-e.anchor.x*t.orig.width,t.trim.height/2+t.trim.y-e.anchor.y*t.orig.height):(o=(.5-e.anchor.x)*t.orig.width,(.5-e.anchor.y)*t.orig.height),t.rotate&&(a.copy(d),a=d,h.GroupD8.matrixAppendRotationInv(a,t.rotate,o,s),s=o=0),o-=i/2,s-=n/2,r.roundPixels?(r.context.setTransform(a.a,a.b,a.c,a.d,a.tx*r.resolution|0,a.ty*r.resolution|0),o|=0,s|=0):r.context.setTransform(a.a,a.b,a.c,a.d,a.tx*r.resolution,a.ty*r.resolution);var l=t.baseTexture.resolution;16777215!==e.tint?(e.cachedTint===e.tint&&e.tintedTexture.tintId===e._texture._updateID||(e.cachedTint=e.tint,e.tintedTexture=f.default.getTintedTexture(e,e.tint)),r.context.drawImage(e.tintedTexture,0,0,i*l,n*l,o*r.resolution,s*r.resolution,i*r.resolution,n*r.resolution)):r.context.drawImage(t.baseTexture.source,t._frame.x*l,t._frame.y*l,i*l,n*l,o*r.resolution,s*r.resolution,i*r.resolution,n*r.resolution)}},t.prototype.destroy=function(){this.renderer=null},t}();r.default=a,i.default.registerPlugin("sprite",a)},{"../../const":46,"../../math":70,"../../renderers/canvas/CanvasRenderer":77,"./CanvasTinter":104}],104:[function(e,t,r){"use strict";r.__esModule=!0;var i,d=e("../../utils"),n=e("../../renderers/canvas/utils/canUseNewCanvasBlendModes");var s={getTintedTexture:function(e,t){var r=e._texture,i="#"+("00000"+(0|(t=s.roundColor(t))).toString(16)).substr(-6);r.tintCache=r.tintCache||{};var n=r.tintCache[i],a=void 0;if(n){if(n.tintId===r._updateID)return r.tintCache[i];a=r.tintCache[i]}else a=s.canvas||document.createElement("canvas");if(s.tintMethod(r,t,a),a.tintId=r._updateID,s.convertTintToImage){var o=new Image;o.src=a.toDataURL(),r.tintCache[i]=o}else r.tintCache[i]=a,s.canvas=null;return a},tintWithMultiply:function(e,t,r){var i=r.getContext("2d"),n=e._frame.clone(),a=e.baseTexture.resolution;n.x*=a,n.y*=a,n.width*=a,n.height*=a,r.width=Math.ceil(n.width),r.height=Math.ceil(n.height),i.save(),i.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),i.fillRect(0,0,n.width,n.height),i.globalCompositeOperation="multiply",i.drawImage(e.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),i.globalCompositeOperation="destination-atop",i.drawImage(e.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),i.restore()},tintWithOverlay:function(e,t,r){var i=r.getContext("2d"),n=e._frame.clone(),a=e.baseTexture.resolution;n.x*=a,n.y*=a,n.width*=a,n.height*=a,r.width=Math.ceil(n.width),r.height=Math.ceil(n.height),i.save(),i.globalCompositeOperation="copy",i.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),i.fillRect(0,0,n.width,n.height),i.globalCompositeOperation="destination-atop",i.drawImage(e.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),i.restore()},tintWithPerPixel:function(e,t,r){var i=r.getContext("2d"),n=e._frame.clone(),a=e.baseTexture.resolution;n.x*=a,n.y*=a,n.width*=a,n.height*=a,r.width=Math.ceil(n.width),r.height=Math.ceil(n.height),i.save(),i.globalCompositeOperation="copy",i.drawImage(e.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),i.restore();for(var o=(0,d.hex2rgb)(t),s=o[0],u=o[1],l=o[2],c=i.getImageData(0,0,n.width,n.height),h=c.data,f=0;f<h.length;f+=4)h[f+0]*=s,h[f+1]*=u,h[f+2]*=l;i.putImageData(c,0,0)},roundColor:function(e){var t=s.cacheStepsPerColorChannel,r=(0,d.hex2rgb)(e);return r[0]=Math.min(255,r[0]/t*t),r[1]=Math.min(255,r[1]/t*t),r[2]=Math.min(255,r[2]/t*t),(0,d.rgb2hex)(r)},cacheStepsPerColorChannel:8,convertTintToImage:!1,canUseMultiply:(0,((i=n)&&i.__esModule?i:{default:i}).default)(),tintMethod:0};s.tintMethod=s.canUseMultiply?s.tintWithMultiply:s.tintWithPerPixel,r.default=s},{"../../renderers/canvas/utils/canUseNewCanvasBlendModes":80,"../../utils":125}],105:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.vertices=new ArrayBuffer(e),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return t.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},t}();r.default=i},{}],106:[function(e,t,r){"use strict";r.__esModule=!0;var i=a(e("../../renderers/webgl/utils/ObjectRenderer")),n=a(e("../../renderers/webgl/WebGLRenderer")),o=a(e("../../utils/createIndicesForQuads")),s=a(e("./generateMultiTextureShader")),u=a(e("../../renderers/webgl/utils/checkMaxIfStatmentsInShader")),l=a(e("./BatchBuffer")),z=a(e("../../settings")),F=e("../../utils"),B=a(e("pixi-gl-core")),N=a(e("bit-twiddle"));function a(e){return e&&e.__esModule?e:{default:e}}var U=0,X=0,c=function(n){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e));t.vertSize=5,t.vertByteSize=4*t.vertSize,t.size=z.default.SPRITE_BATCH_SIZE,t.buffers=[];for(var r=1;r<=N.default.nextPow2(t.size);r*=2)t.buffers.push(new l.default(4*r*t.vertByteSize));t.indices=(0,o.default)(t.size),t.shader=null,t.currentIndex=0,t.groups=[];for(var i=0;i<t.size;i++)t.groups[i]={textures:[],textureCount:0,ids:[],size:0,start:0,blend:0};return t.sprites=[],t.vertexBuffers=[],t.vaos=[],t.vaoMax=2,t.vertexCount=0,t.renderer.on("prerender",t.onPrerender,t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.onContextChange=function(){var e=this.renderer.gl;this.renderer.legacy?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),z.default.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=(0,u.default)(this.MAX_TEXTURES,e)),this.shader=(0,s.default)(e,this.MAX_TEXTURES),this.indexBuffer=B.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.renderer.bindVao(null);for(var t=this.shader.attributes,r=0;r<this.vaoMax;r++){var i=this.vertexBuffers[r]=B.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),n=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(i,t.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(i,t.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(i,t.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);t.aTextureId&&n.addAttribute(i,t.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[r]=n}this.vao=this.vaos[0],this.currentBlendMode=99999,this.boundTextures=new Array(this.MAX_TEXTURES)},a.prototype.onPrerender=function(){this.vertexCount=0},a.prototype.render=function(e){this.currentIndex>=this.size&&this.flush(),e._texture._uvs&&(this.sprites[this.currentIndex++]=e)},a.prototype.flush=function(){if(0!==this.currentIndex){var e=this.renderer.gl,t=this.MAX_TEXTURES,r=N.default.nextPow2(this.currentIndex),i=N.default.log2(r),n=this.buffers[i],a=this.sprites,o=this.groups,s=n.float32View,u=n.uint32View,l=this.boundTextures,c=this.renderer.boundTextures,h=this.renderer.textureGC.count,f=0,d=void 0,p=void 0,m=1,g=0,v=o[0],b=void 0,y=void 0,_=F.premultiplyBlendMode[a[0]._texture.baseTexture.premultipliedAlpha?1:0][a[0].blendMode];v.textureCount=0,v.start=0,v.blend=_,U++;var w=void 0;for(w=0;w<t;++w){var x=c[w];x._enabled!==U?((l[w]=x)._virtalBoundId=w,x._enabled=U):l[w]=this.renderer.emptyTextures[w]}for(U++,w=0;w<this.currentIndex;++w){var k=a[w];a[w]=null,d=k._texture.baseTexture;var T=F.premultiplyBlendMode[Number(d.premultipliedAlpha)][k.blendMode];if(_!==T&&(_=T,p=null,g=t,U++),p!==d&&(p=d)._enabled!==U){if(g===t&&(U++,v.size=w-v.start,g=0,(v=o[m++]).blend=_,v.textureCount=0,v.start=w),d.touched=h,-1===d._virtalBoundId)for(var S=0;S<t;++S){var E=(S+X)%t,M=l[E];if(M._enabled!==U){X++,M._virtalBoundId=-1,l[d._virtalBoundId=E]=d;break}}d._enabled=U,v.textureCount++,v.ids[g]=d._virtalBoundId,v.textures[g++]=d}if(b=k.vertexData,y=k._texture._uvs.uvsUint32,this.renderer.roundPixels){var P=this.renderer.resolution;s[f]=(b[0]*P|0)/P,s[f+1]=(b[1]*P|0)/P,s[f+5]=(b[2]*P|0)/P,s[f+6]=(b[3]*P|0)/P,s[f+10]=(b[4]*P|0)/P,s[f+11]=(b[5]*P|0)/P,s[f+15]=(b[6]*P|0)/P,s[f+16]=(b[7]*P|0)/P}else s[f]=b[0],s[f+1]=b[1],s[f+5]=b[2],s[f+6]=b[3],s[f+10]=b[4],s[f+11]=b[5],s[f+15]=b[6],s[f+16]=b[7];u[f+2]=y[0],u[f+7]=y[1],u[f+12]=y[2],u[f+17]=y[3];var C=Math.min(k.worldAlpha,1),A=C<1&&d.premultipliedAlpha?(0,F.premultiplyTint)(k._tintRGB,C):k._tintRGB+(255*C<<24);u[f+3]=u[f+8]=u[f+13]=u[f+18]=A,s[f+4]=s[f+9]=s[f+14]=s[f+19]=d._virtalBoundId,f+=20}if(v.size=w-v.start,z.default.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(n.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;var O=this.shader.attributes,I=this.vertexBuffers[this.vertexCount]=B.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),R=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(I,O.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(I,O.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(I,O.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);O.aTextureId&&R.addAttribute(I,O.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[this.vertexCount]=R}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(n.vertices,0,!1),this.vertexCount++}for(w=0;w<t;++w)c[w]._virtalBoundId=-1;for(w=0;w<m;++w){for(var D=o[w],j=D.textureCount,L=0;L<j;L++)p=D.textures[L],c[D.ids[L]]!==p&&this.renderer.bindTexture(p,D.ids[L],!0),p._virtalBoundId=-1;this.renderer.state.setBlendMode(D.blend),e.drawElements(e.TRIANGLES,6*D.size,e.UNSIGNED_SHORT,6*D.start*2)}this.currentIndex=0}},a.prototype.start=function(){this.renderer.bindShader(this.shader),z.default.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},a.prototype.stop=function(){this.flush()},a.prototype.destroy=function(){for(var e=0;e<this.vaoMax;e++)this.vertexBuffers[e]&&this.vertexBuffers[e].destroy(),this.vaos[e]&&this.vaos[e].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),n.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(var t=0;t<this.buffers.length;++t)this.buffers[t].destroy()},a}(i.default);r.default=c,n.default.registerPlugin("sprite",c)},{"../../renderers/webgl/WebGLRenderer":84,"../../renderers/webgl/utils/ObjectRenderer":94,"../../renderers/webgl/utils/checkMaxIfStatmentsInShader":97,"../../settings":101,"../../utils":125,"../../utils/createIndicesForQuads":123,"./BatchBuffer":105,"./generateMultiTextureShader":107,"bit-twiddle":1,"pixi-gl-core":15}],107:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=s;r=(r=r.replace(/%count%/gi,t)).replace(/%forloop%/gi,function(e){var t="";t+="\n",t+="\n";for(var r=0;r<e;r++)0<r&&(t+="\nelse "),r<e-1&&(t+="if(vTextureId < "+r+".5)"),t+="\n{",t+="\n\tcolor = texture2D(uSamplers["+r+"], vTextureCoord);",t+="\n}";return t+="\n",t+="\n"}(t));for(var i=new o.default(e,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor;\n}\n",r),n=[],a=0;a<t;a++)n[a]=a;return i.bind(),i.uniforms.uSamplers=n,i};var i,n=e("../../Shader"),o=(i=n)&&i.__esModule?i:{default:i};e("path");var s=["varying vec2 vTextureCoord;","varying vec4 vColor;","varying float vTextureId;","uniform sampler2D uSamplers[%count%];","void main(void){","vec4 color;","%forloop%","gl_FragColor = color * vColor;","}"].join("\n")},{"../../Shader":44,path:8}],108:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=a(e("../sprites/Sprite")),s=a(e("../textures/Texture")),u=e("../math"),l=e("../utils"),m=e("../const"),c=a(e("../settings")),h=a(e("./TextStyle")),v=a(e("./TextMetrics")),f=a(e("../utils/trimCanvas"));function a(e){return e&&e.__esModule?e:{default:e}}var d={texture:!0,children:!1,baseTexture:!0},o=function(a){function o(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(r=r||document.createElement("canvas")).width=3,r.height=3;var i=s.default.fromCanvas(r,c.default.SCALE_MODE,"text");i.orig=new u.Rectangle,i.trim=new u.Rectangle;var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this,i));return s.default.addToCache(n._texture,n._texture.baseTexture.textureCacheIds[0]),n.canvas=r,n.context=n.canvas.getContext("2d"),n.resolution=c.default.RESOLUTION,n._text=null,n._style=null,n._styleListener=null,n._font="",n.text=e,n.style=t,n.localStyleID=-1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,a),o.prototype.updateText=function(e){var t=this._style;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),this.dirty||!e){this._font=this._style.toFontString();var r=this.context,i=v.default.measureText(this._text,this._style,this._style.wordWrap,this.canvas),n=i.width,a=i.height,o=i.lines,s=i.lineHeight,u=i.lineWidths,l=i.maxLineWidth,c=i.fontProperties;this.canvas.width=Math.ceil((Math.max(1,n)+2*t.padding)*this.resolution),this.canvas.height=Math.ceil((Math.max(1,a)+2*t.padding)*this.resolution),r.scale(this.resolution,this.resolution),r.clearRect(0,0,this.canvas.width,this.canvas.height),r.font=this._font,r.strokeStyle=t.stroke,r.lineWidth=t.strokeThickness,r.textBaseline=t.textBaseline,r.lineJoin=t.lineJoin,r.miterLimit=t.miterLimit;var h=void 0,f=void 0;if(t.dropShadow){r.fillStyle=t.dropShadowColor,r.globalAlpha=t.dropShadowAlpha,r.shadowBlur=t.dropShadowBlur,0<t.dropShadowBlur&&(r.shadowColor=t.dropShadowColor);for(var d=Math.cos(t.dropShadowAngle)*t.dropShadowDistance,p=Math.sin(t.dropShadowAngle)*t.dropShadowDistance,m=0;m<o.length;m++)h=t.strokeThickness/2,f=t.strokeThickness/2+m*s+c.ascent,"right"===t.align?h+=l-u[m]:"center"===t.align&&(h+=(l-u[m])/2),t.fill&&(this.drawLetterSpacing(o[m],h+d+t.padding,f+p+t.padding),t.stroke&&t.strokeThickness&&(r.strokeStyle=t.dropShadowColor,this.drawLetterSpacing(o[m],h+d+t.padding,f+p+t.padding,!0),r.strokeStyle=t.stroke))}r.shadowBlur=0,r.globalAlpha=1,r.fillStyle=this._generateFillStyle(t,o);for(var g=0;g<o.length;g++)h=t.strokeThickness/2,f=t.strokeThickness/2+g*s+c.ascent,"right"===t.align?h+=l-u[g]:"center"===t.align&&(h+=(l-u[g])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(o[g],h+t.padding,f+t.padding,!0),t.fill&&this.drawLetterSpacing(o[g],h+t.padding,f+t.padding);this.updateTexture()}},o.prototype.drawLetterSpacing=function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],n=this._style.letterSpacing;if(0!==n)for(var a=String.prototype.split.call(e,""),o=t,s=0,u="";s<e.length;)u=a[s++],i?this.context.strokeText(u,o,r):this.context.fillText(u,o,r),o+=this.context.measureText(u).width+n;else i?this.context.strokeText(e,t,r):this.context.fillText(e,t,r)},o.prototype.updateTexture=function(){var e=this.canvas;if(this._style.trim){var t=(0,f.default)(e);t.data&&(e.width=t.width,e.height=t.height,this.context.putImageData(t.data,0,0))}var r=this._texture,i=this._style,n=i.trim?0:i.padding,a=r.baseTexture;a.hasLoaded=!0,a.resolution=this.resolution,a.realWidth=e.width,a.realHeight=e.height,a.width=e.width/this.resolution,a.height=e.height/this.resolution,r.trim.width=r._frame.width=e.width/this.resolution,r.trim.height=r._frame.height=e.height/this.resolution,r.trim.x=-n,r.trim.y=-n,r.orig.width=r._frame.width-2*n,r.orig.height=r._frame.height-2*n,this._onTextureUpdate(),a.emit("update",a),this.dirty=!1},o.prototype.renderWebGL=function(e){this.resolution!==e.resolution&&(this.resolution=e.resolution,this.dirty=!0),this.updateText(!0),a.prototype.renderWebGL.call(this,e)},o.prototype._renderCanvas=function(e){this.resolution!==e.resolution&&(this.resolution=e.resolution,this.dirty=!0),this.updateText(!0),a.prototype._renderCanvas.call(this,e)},o.prototype.getLocalBounds=function(e){return this.updateText(!0),a.prototype.getLocalBounds.call(this,e)},o.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},o.prototype._onStyleChange=function(){this.dirty=!0},o.prototype._generateFillStyle=function(e,t){if(!Array.isArray(e.fill))return e.fill;if(navigator.isCocoonJS)return e.fill[0];var r=void 0,i=void 0,n=void 0,a=void 0,o=this.canvas.width/this.resolution,s=this.canvas.height/this.resolution,u=e.fill.slice(),l=e.fillGradientStops.slice();if(!l.length)for(var c=u.length+1,h=1;h<c;++h)l.push(h/c);if(u.unshift(e.fill[0]),l.unshift(0),u.push(e.fill[e.fill.length-1]),l.push(1),e.fillGradientType===m.TEXT_GRADIENT.LINEAR_VERTICAL){r=this.context.createLinearGradient(o/2,0,o/2,s),i=(u.length+1)*t.length;for(var f=n=0;f<t.length;f++){n+=1;for(var d=0;d<u.length;d++)a="number"==typeof l[d]?l[d]/t.length+f/t.length:n/i,r.addColorStop(a,u[d]),n++}}else{r=this.context.createLinearGradient(0,s/2,o,s/2),i=u.length+1,n=1;for(var p=0;p<u.length;p++)a="number"==typeof l[p]?l[p]:n/i,r.addColorStop(a,u[p]),n++}return r},o.prototype.destroy=function(e){"boolean"==typeof e&&(e={children:e}),e=Object.assign({},d,e),a.prototype.destroy.call(this,e),this.context=null,this.canvas=null,this._style=null},i(o,[{key:"width",get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){this.updateText(!0);var t=(0,l.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){this.updateText(!0);var t=(0,l.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"style",get:function(){return this._style},set:function(e){(e=e||{})instanceof h.default?this._style=e:this._style=new h.default(e),this.localStyleID=-1,this.dirty=!0}},{key:"text",get:function(){return this._text},set:function(e){e=String(""===e||null==e?" ":e),this._text!==e&&(this._text=e,this.dirty=!0)}}]),o}(n.default);r.default=o},{"../const":46,"../math":70,"../settings":101,"../sprites/Sprite":102,"../textures/Texture":115,"../utils":125,"../utils/trimCanvas":130,"./TextMetrics":109,"./TextStyle":110}],109:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function M(e,t,r,i,n,a,o,s,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,M),this.text=e,this.style=t,this.width=r,this.height=i,this.lines=n,this.lineWidths=a,this.lineHeight=o,this.maxLineWidth=s,this.fontProperties=u}return M.measureText=function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:M._canvas;r=null==r?t.wordWrap:r;var n=t.toFontString(),a=M.measureFont(n),o=i.getContext("2d");o.font=n;for(var s=(r?M.wordWrap(e,t,i):e).split(/(?:\r\n|\r|\n)/),u=new Array(s.length),l=0,c=0;c<s.length;c++){var h=o.measureText(s[c]).width+(s[c].length-1)*t.letterSpacing;u[c]=h,l=Math.max(l,h)}var f=l+t.strokeThickness;t.dropShadow&&(f+=t.dropShadowDistance);var d=t.lineHeight||a.fontSize+t.strokeThickness,p=Math.max(d,a.fontSize+t.strokeThickness)+(s.length-1)*(d+t.leading);return t.dropShadow&&(p+=t.dropShadowDistance),new M(e,t,f,p,s,u,d+t.leading,l,a)},M.wordWrap=function(e,t){for(var r=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:M._canvas).getContext("2d"),i=0,n="",a="",o={},s=t.letterSpacing,u=t.whiteSpace,l=M.collapseSpaces(u),c=M.collapseNewlines(u),h=!l,f=t.wordWrapWidth+s,d=M.tokenize(e),p=0;p<d.length;p++){var m=d[p];if(M.isNewline(m)){if(!c){a+=M.addLine(n),h=!l,n="",i=0;continue}m=" "}if(l){var g=M.isBreakingSpace(m),v=M.isBreakingSpace(n[n.length-1]);if(g&&v)continue}var b=M.getFromCache(m,s,o,r);if(f<b)if(""!==n&&(a+=M.addLine(n),n="",i=0),M.canBreakWords(m,t.breakWords))for(var y=m.split(""),_=0;_<y.length;_++){for(var w=y[_],x=1;y[_+x];){var k=y[_+x],T=w[w.length-1];if(M.canBreakChars(T,k,m,_,t.breakWords))break;w+=k,x++}_+=w.length-1;var S=M.getFromCache(w,s,o,r);f<S+i&&(a+=M.addLine(n),h=!1,n="",i=0),n+=w,i+=S}else{0<n.length&&(a+=M.addLine(n),n="",i=0);var E=p===d.length-1;a+=M.addLine(m,!E),h=!1,n="",i=0}else f<b+i&&(h=!1,a+=M.addLine(n),n="",i=0),(0<n.length||!M.isBreakingSpace(m)||h)&&(n+=m,i+=b)}return a+=M.addLine(n,!1)},M.addLine=function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];return e=M.trimRight(e),e=t?e+"\n":e},M.getFromCache=function(e,t,r,i){var n=r[e];if(void 0===n){var a=e.length*t;n=i.measureText(e).width+a,r[e]=n}return n},M.collapseSpaces=function(e){return"normal"===e||"pre-line"===e},M.collapseNewlines=function(e){return"normal"===e},M.trimRight=function(e){if("string"!=typeof e)return"";for(var t=e.length-1;0<=t;t--){var r=e[t];if(!M.isBreakingSpace(r))break;e=e.slice(0,-1)}return e},M.isNewline=function(e){return"string"==typeof e&&0<=M._newlines.indexOf(e.charCodeAt(0))},M.isBreakingSpace=function(e){return"string"==typeof e&&0<=M._breakingSpaces.indexOf(e.charCodeAt(0))},M.tokenize=function(e){var t=[],r="";if("string"!=typeof e)return t;for(var i=0;i<e.length;i++){var n=e[i];M.isBreakingSpace(n)||M.isNewline(n)?(""!==r&&(t.push(r),r=""),t.push(n)):r+=n}return""!==r&&t.push(r),t},M.canBreakWords=function(e,t){return t},M.canBreakChars=function(e,t,r,i,n){return!0},M.measureFont=function(e){if(M._fonts[e])return M._fonts[e];var t={},r=M._canvas,i=M._context;i.font=e;var n=M.METRICS_STRING+M.BASELINE_SYMBOL,a=Math.ceil(i.measureText(n).width),o=Math.ceil(i.measureText(M.BASELINE_SYMBOL).width),s=2*o;o=o*M.BASELINE_MULTIPLIER|0,r.width=a,r.height=s,i.fillStyle="#f00",i.fillRect(0,0,a,s),i.font=e,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(n,0,o);var u=i.getImageData(0,0,a,s).data,l=u.length,c=4*a,h=0,f=0,d=!1;for(h=0;h<o;++h){for(var p=0;p<c;p+=4)if(255!==u[f+p]){d=!0;break}if(d)break;f+=c}for(t.ascent=o-h,f=l-c,d=!1,h=s;o<h;--h){for(var m=0;m<c;m+=4)if(255!==u[f+m]){d=!0;break}if(d)break;f-=c}return t.descent=h-o,t.fontSize=t.ascent+t.descent,M._fonts[e]=t},M.clearMetrics=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";e?delete M._fonts[e]:M._fonts={}},M}();r.default=i;var n=document.createElement("canvas");n.width=n.height=10,i._canvas=n,i._context=n.getContext("2d"),i._fonts={},i.METRICS_STRING="|Éq",i.BASELINE_SYMBOL="M",i.BASELINE_MULTIPLIER=1.4,i._newlines=[10,13],i._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},{}],110:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=e("../const"),a=e("../utils");var o={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:n.TEXT_GRADIENT.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},s=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],u=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.styleID=0,this.reset(),h(this,e,e)}return t.prototype.clone=function(){var e={};return h(e,this,o),new t(e)},t.prototype.reset=function(){h(this,o,o)},t.prototype.toFontString=function(){var e="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(var r=t.length-1;0<=r;r--){var i=t[r].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&s.indexOf(i)<0&&(i='"'+i+'"'),t[r]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},i(t,[{key:"align",get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}},{key:"dropShadowAlpha",get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}},{key:"dropShadowBlur",get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(e){var t=c(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(e){var t=c(e);this._fill!==t&&(this._fill=t,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}},{key:"fillGradientStops",get:function(){return this._fillGradientStops},set:function(e){(function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0})(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}},{key:"leading",get:function(){return this._leading},set:function(e){this._leading!==e&&(this._leading=e,this.styleID++)}},{key:"lineJoin",get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}},{key:"miterLimit",get:function(){return this._miterLimit},set:function(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.styleID++)}},{key:"stroke",get:function(){return this._stroke},set:function(e){var t=c(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}},{key:"strokeThickness",get:function(){return this._strokeThickness},set:function(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}},{key:"trim",get:function(){return this._trim},set:function(e){this._trim!==e&&(this._trim=e,this.styleID++)}},{key:"whiteSpace",get:function(){return this._whiteSpace},set:function(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}}]),t}();function l(e){return"number"==typeof e?(0,a.hex2string)(e):("string"==typeof e&&0===e.indexOf("0x")&&(e=e.replace("0x","#")),e)}function c(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=l(e[t]);return e}return l(e)}function h(e,t,r){for(var i in r)Array.isArray(t[i])?e[i]=t[i].slice():e[i]=t[i]}r.default=u},{"../const":46,"../utils":125}],111:[function(e,t,r){"use strict";r.__esModule=!0;var i=n(e("./BaseTexture")),s=n(e("../settings"));function n(e){return e&&e.__esModule?e:{default:e}}var a=function(a){function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,r=arguments[2],i=arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this,null,r));return n.resolution=i||s.default.RESOLUTION,n.width=Math.ceil(e),n.height=Math.ceil(t),n.realWidth=n.width*n.resolution,n.realHeight=n.height*n.resolution,n.scaleMode=void 0!==r?r:s.default.SCALE_MODE,n.hasLoaded=!0,n._glRenderTargets={},n._canvasRenderTarget=null,n.valid=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,a),o.prototype.resize=function(e,t){e=Math.ceil(e),t=Math.ceil(t),e===this.width&&t===this.height||(this.valid=0<e&&0<t,this.width=e,this.height=t,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},o.prototype.destroy=function(){a.prototype.destroy.call(this,!0),this.renderer=null},o}(i.default);r.default=a},{"../settings":101,"./BaseTexture":112}],112:[function(e,t,r){"use strict";r.__esModule=!0;var s=e("../utils"),a=n(e("../settings")),i=n(e("eventemitter3")),u=n(e("../utils/determineCrossOrigin")),l=n(e("bit-twiddle"));function n(e){return e&&e.__esModule?e:{default:e}}var o=function(n){function o(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this));return i.uid=(0,s.uid)(),i.touched=0,i.resolution=r||a.default.RESOLUTION,i.width=100,i.height=100,i.realWidth=100,i.realHeight=100,i.scaleMode=void 0!==t?t:a.default.SCALE_MODE,i.hasLoaded=!1,i.isLoading=!1,i.source=null,i.origSource=null,i.imageType=null,i.sourceScale=1,i.premultipliedAlpha=!0,i.imageUrl=null,i.isPowerOfTwo=!1,i.mipmap=a.default.MIPMAP_TEXTURES,i.wrapMode=a.default.WRAP_MODE,i._glTextures={},i._enabled=0,i._virtalBoundId=-1,i._destroyed=!1,i.textureCacheIds=[],e&&i.loadSource(e),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o.prototype.update=function(){"svg"!==this.imageType&&(this.realWidth=this.source.naturalWidth||this.source.videoWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.videoHeight||this.source.height,this._updateDimensions()),this.emit("update",this)},o.prototype._updateDimensions=function(){this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=l.default.isPow2(this.realWidth)&&l.default.isPow2(this.realHeight)},o.prototype.loadSource=function(e){var t=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,t&&this.source&&(this.source.onload=null,this.source.onerror=null);var r=!this.source;if(((this.source=e).src&&e.complete||e.getContext)&&e.width&&e.height)this._updateImageType(),"svg"===this.imageType?this._loadSvgSource():this._sourceLoaded(),r&&this.emit("loaded",this);else if(!e.getContext){this.isLoading=!0;var i=this;if(e.onload=function(){i._updateImageType(),e.onload=null,e.onerror=null,i.isLoading&&(i.isLoading=!1,i._sourceLoaded(),"svg"!==i.imageType?i.emit("loaded",i):i._loadSvgSource())},e.onerror=function(){e.onload=null,e.onerror=null,i.isLoading&&(i.isLoading=!1,i.emit("error",i))},e.complete&&e.src){if(e.onload=null,e.onerror=null,"svg"===i.imageType)return void i._loadSvgSource();this.isLoading=!1,e.width&&e.height?(this._sourceLoaded(),t&&this.emit("loaded",this)):t&&this.emit("error",this)}}},o.prototype._updateImageType=function(){if(this.imageUrl){var e=(0,s.decomposeDataUri)(this.imageUrl),t=void 0;if(e&&"image"===e.mediaType){var r=e.subType.split("+")[0];if(!(t=(0,s.getUrlFileExtension)("."+r)))throw new Error("Invalid image type in data URI.")}else(t=(0,s.getUrlFileExtension)(this.imageUrl))||(t="png");this.imageType=t}},o.prototype._loadSvgSource=function(){if("svg"===this.imageType){var e=(0,s.decomposeDataUri)(this.imageUrl);e?this._loadSvgSourceUsingDataUri(e):this._loadSvgSourceUsingXhr()}},o.prototype._loadSvgSourceUsingDataUri=function(e){var t=void 0;if("base64"===e.encoding){if(!atob)throw new Error("Your browser doesn't support base64 conversions.");t=atob(e.data)}else t=e.data;this._loadSvgSourceUsingString(t)},o.prototype._loadSvgSourceUsingXhr=function(){var e=this,t=new XMLHttpRequest;t.onload=function(){if(t.readyState!==t.DONE||200!==t.status)throw new Error("Failed to load SVG using XHR.");e._loadSvgSourceUsingString(t.response)},t.onerror=function(){return e.emit("error",e)},t.open("GET",this.imageUrl,!0),t.send()},o.prototype._loadSvgSourceUsingString=function(e){var t=(0,s.getSvgSize)(e),r=t.width,i=t.height;if(!r||!i)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(r*this.sourceScale),this.realHeight=Math.round(i*this.sourceScale),this._updateDimensions();var n=document.createElement("canvas");n.width=this.realWidth,n.height=this.realHeight,n._pixiId="canvas_"+(0,s.uid)(),n.getContext("2d").drawImage(this.source,0,0,r,i,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=n,o.addToCache(this,n._pixiId),this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},o.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},o.prototype.destroy=function(){this.imageUrl&&(delete s.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source=null,this.dispose(),o.removeFromCache(this),this.textureCacheIds=null,this._destroyed=!0},o.prototype.dispose=function(){this.emit("dispose",this)},o.prototype.updateSourceImage=function(e){this.source.src=e,this.loadSource(this.source)},o.fromImage=function(e,t,r,i){var n=s.BaseTextureCache[e];if(!n){var a=new Image;void 0===t&&0!==e.indexOf("data:")?a.crossOrigin=(0,u.default)(e):t&&(a.crossOrigin="string"==typeof t?t:"anonymous"),(n=new o(a,r)).imageUrl=e,i&&(n.sourceScale=i),n.resolution=(0,s.getResolutionOfUrl)(e),a.src=e,o.addToCache(n,e)}return n},o.fromCanvas=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"canvas";e._pixiId||(e._pixiId=r+"_"+(0,s.uid)());var i=s.BaseTextureCache[e._pixiId];return i||(i=new o(e,t),o.addToCache(i,e._pixiId)),i},o.from=function(e,t,r){if("string"==typeof e)return o.fromImage(e,void 0,t,r);if(e instanceof HTMLImageElement){var i=e.src,n=s.BaseTextureCache[i];return n||((n=new o(e,t)).imageUrl=i,r&&(n.sourceScale=r),n.resolution=(0,s.getResolutionOfUrl)(i),o.addToCache(n,i)),n}return e instanceof HTMLCanvasElement?o.fromCanvas(e,t):e},o.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),s.BaseTextureCache[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),s.BaseTextureCache[t]=e)},o.removeFromCache=function(e){if("string"==typeof e){var t=s.BaseTextureCache[e];if(t){var r=t.textureCacheIds.indexOf(e);return-1<r&&t.textureCacheIds.splice(r,1),delete s.BaseTextureCache[e],t}}else if(e&&e.textureCacheIds){for(var i=0;i<e.textureCacheIds.length;++i)delete s.BaseTextureCache[e.textureCacheIds[i]];return e.textureCacheIds.length=0,e}return null},o}(i.default);r.default=o},{"../settings":101,"../utils":125,"../utils/determineCrossOrigin":124,"bit-twiddle":1,eventemitter3:3}],113:[function(e,t,r){"use strict";r.__esModule=!0;var c=i(e("./BaseRenderTexture"));function i(e){return e&&e.__esModule?e:{default:e}}var n=function(u){function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=null;if(!(e instanceof c.default)){var i=arguments[1],n=arguments[2],a=arguments[3],o=arguments[4];console.warn("Please use RenderTexture.create("+i+", "+n+") instead of the ctor directly."),r=arguments[0],t=null,e=new c.default(i,n,a,o)}var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,u.call(this,e,t));return s.legacyRenderer=r,s.valid=!0,s._updateUvs(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,u),l.prototype.resize=function(e,t,r){e=Math.ceil(e),t=Math.ceil(t),this.valid=0<e&&0<t,this._frame.width=this.orig.width=e,this._frame.height=this.orig.height=t,r||this.baseTexture.resize(e,t),this._updateUvs()},l.create=function(e,t,r,i){return new l(new c.default(e,t,r,i))},l}(i(e("./Texture")).default);r.default=n},{"./BaseRenderTexture":111,"./Texture":115}],114:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),f=e("../"),n=e("../utils");var a=function(){function h(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),this.baseTexture=e,this.textures={},this.animations={},this.data=t,this.resolution=this._updateResolution(r||this.baseTexture.imageUrl),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return i(h,null,[{key:"BATCH_SIZE",get:function(){return 1e3}}]),h.prototype._updateResolution=function(e){var t=this.data.meta.scale,r=(0,n.getResolutionOfUrl)(e,null);return null===r&&(r=void 0!==t?parseFloat(t):1),1!==r&&(this.baseTexture.resolution=r,this.baseTexture.update()),r},h.prototype.parse=function(e){this._batchIndex=0,this._callback=e,this._frameKeys.length<=h.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},h.prototype._processFrames=function(e){for(var t=e,r=h.BATCH_SIZE,i=this.baseTexture.sourceScale;t-e<r&&t<this._frameKeys.length;){var n=this._frameKeys[t],a=this._frames[n],o=a.frame;if(o){var s=null,u=null,l=!1!==a.trimmed&&a.sourceSize?a.sourceSize:a.frame,c=new f.Rectangle(0,0,Math.floor(l.w*i)/this.resolution,Math.floor(l.h*i)/this.resolution);s=a.rotated?new f.Rectangle(Math.floor(o.x*i)/this.resolution,Math.floor(o.y*i)/this.resolution,Math.floor(o.h*i)/this.resolution,Math.floor(o.w*i)/this.resolution):new f.Rectangle(Math.floor(o.x*i)/this.resolution,Math.floor(o.y*i)/this.resolution,Math.floor(o.w*i)/this.resolution,Math.floor(o.h*i)/this.resolution),!1!==a.trimmed&&a.spriteSourceSize&&(u=new f.Rectangle(Math.floor(a.spriteSourceSize.x*i)/this.resolution,Math.floor(a.spriteSourceSize.y*i)/this.resolution,Math.floor(o.w*i)/this.resolution,Math.floor(o.h*i)/this.resolution)),this.textures[n]=new f.Texture(this.baseTexture,s,c,u,a.rotated?2:0,a.anchor),f.Texture.addToCache(this.textures[n],n)}t++}},h.prototype._processAnimations=function(){var e=this.data.animations||{};for(var t in e){this.animations[t]=[];var r=e[t],i=Array.isArray(r),n=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(n>=r.length)break;a=r[n++]}else{if((n=r.next()).done)break;a=n.value}var o=a;this.animations[t].push(this.textures[o])}}},h.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},h.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*h.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*h.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())},0)},h.prototype.destroy=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];for(var t in this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&this.baseTexture.destroy(),this.baseTexture=null},h}();r.default=a},{"../":65,"../utils":125}],115:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=u(e("./BaseTexture")),n=u(e("./VideoBaseTexture")),o=u(e("./TextureUvs")),s=u(e("eventemitter3")),l=e("../math"),c=e("../utils"),h=u(e("../settings"));function u(e){return e&&e.__esModule?e:{default:e}}var f=function(s){function u(e,t,r,i,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,s.call(this));if(o.noFrame=!1,t||(o.noFrame=!0,t=new l.Rectangle(0,0,1,1)),e instanceof u&&(e=e.baseTexture),o.baseTexture=e,o._frame=t,o.trim=i,o.valid=!1,o.requiresUpdate=!1,o._uvs=null,o.orig=r||t,o._rotate=Number(n||0),!0===n)o._rotate=2;else if(o._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return e.hasLoaded?(o.noFrame&&(t=new l.Rectangle(0,0,e.width,e.height),e.on("update",o.onBaseTextureUpdated,o)),o.frame=t):e.once("loaded",o.onBaseTextureLoaded,o),o.defaultAnchor=a?new l.Point(a.x,a.y):new l.Point(0,0),o._updateID=0,o.transform=null,o.textureCacheIds=[],o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,s),u.prototype.update=function(){this.baseTexture.update()},u.prototype.onBaseTextureLoaded=function(e){this._updateID++,this.noFrame?this.frame=new l.Rectangle(0,0,e.width,e.height):this.frame=this._frame,this.baseTexture.on("update",this.onBaseTextureUpdated,this),this.emit("update",this)},u.prototype.onBaseTextureUpdated=function(e){this._updateID++,this._frame.width=e.width,this._frame.height=e.height,this.emit("update",this)},u.prototype.destroy=function(e){this.baseTexture&&(e&&(c.TextureCache[this.baseTexture.imageUrl]&&u.removeFromCache(this.baseTexture.imageUrl),this.baseTexture.destroy()),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,u.removeFromCache(this),this.textureCacheIds=null},u.prototype.clone=function(){return new u(this.baseTexture,this.frame,this.orig,this.trim,this.rotate,this.defaultAnchor)},u.prototype._updateUvs=function(){this._uvs||(this._uvs=new o.default),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},u.fromImage=function(e,t,r,i){var n=c.TextureCache[e];return n||(n=new u(a.default.fromImage(e,t,r,i)),u.addToCache(n,e)),n},u.fromFrame=function(e){var t=c.TextureCache[e];if(!t)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return t},u.fromCanvas=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"canvas";return new u(a.default.fromCanvas(e,t,r))},u.fromVideo=function(e,t,r,i){return"string"==typeof e?u.fromVideoUrl(e,t,r,i):new u(n.default.fromVideo(e,t,i))},u.fromVideoUrl=function(e,t,r,i){return new u(n.default.fromUrl(e,t,r,i))},u.from=function(e){if("string"!=typeof e)return e instanceof HTMLImageElement?new u(a.default.from(e)):e instanceof HTMLCanvasElement?u.fromCanvas(e,h.default.SCALE_MODE,"HTMLCanvasElement"):e instanceof HTMLVideoElement?u.fromVideo(e):e instanceof a.default?new u(e):e;var t=c.TextureCache[e];return t||(null!==e.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)?u.fromVideoUrl(e):u.fromImage(e))},u.fromLoader=function(e,t,r){var i=new a.default(e,void 0,(0,c.getResolutionOfUrl)(t)),n=new u(i);return i.imageUrl=t,r||(r=t),a.default.addToCache(n.baseTexture,r),u.addToCache(n,r),r!==t&&(a.default.addToCache(n.baseTexture,t),u.addToCache(n,t)),n},u.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),c.TextureCache[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),c.TextureCache[t]=e)},u.removeFromCache=function(e){if("string"==typeof e){var t=c.TextureCache[e];if(t){var r=t.textureCacheIds.indexOf(e);return-1<r&&t.textureCacheIds.splice(r,1),delete c.TextureCache[e],t}}else if(e&&e.textureCacheIds){for(var i=0;i<e.textureCacheIds.length;++i)c.TextureCache[e.textureCacheIds[i]]===e&&delete c.TextureCache[e.textureCacheIds[i]];return e.textureCacheIds.length=0,e}return null},i(u,[{key:"frame",get:function(){return this._frame},set:function(e){this._frame=e,this.noFrame=!1;var t=e.x,r=e.y,i=e.width,n=e.height,a=t+i>this.baseTexture.width,o=r+n>this.baseTexture.height;if(a||o){var s=a&&o?"and":"or",u="X: "+t+" + "+i+" = "+(t+i)+" > "+this.baseTexture.width,l="Y: "+r+" + "+n+" = "+(r+n)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+s+" "+l)}this.valid=i&&n&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=e),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),u}(s.default);function d(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}(r.default=f).EMPTY=new f(new a.default),d(f.EMPTY),d(f.EMPTY.baseTexture),f.WHITE=function(){var e=document.createElement("canvas");e.width=10,e.height=10;var t=e.getContext("2d");return t.fillStyle="white",t.fillRect(0,0,10,10),new f(new a.default(e))}(),d(f.WHITE),d(f.WHITE.baseTexture)},{"../math":70,"../settings":101,"../utils":125,"./BaseTexture":112,"./TextureUvs":117,"./VideoBaseTexture":118,eventemitter3:3}],116:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=e("../math/Matrix"),o=(i=a)&&i.__esModule?i:{default:i};var l=new o.default,s=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this._texture=e,this.mapCoord=new o.default,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._lastTextureID=-1,this.clampOffset=0,this.clampMargin=void 0===t?.5:t}return r.prototype.multiplyUvs=function(e,t){void 0===t&&(t=e);for(var r=this.mapCoord,i=0;i<e.length;i+=2){var n=e[i],a=e[i+1];t[i]=n*r.a+a*r.c+r.tx,t[i+1]=n*r.b+a*r.d+r.ty}return t},r.prototype.update=function(e){var t=this._texture;if(!t||!t.valid)return!1;if(!e&&this._lastTextureID===t._updateID)return!1;this._lastTextureID=t._updateID;var r=t._uvs;this.mapCoord.set(r.x1-r.x0,r.y1-r.y0,r.x3-r.x0,r.y3-r.y0,r.x0,r.y0);var i=t.orig,n=t.trim;n&&(l.set(i.width/n.width,0,0,i.height/n.height,-n.x/n.width,-n.y/n.height),this.mapCoord.append(l));var a=t.baseTexture,o=this.uClampFrame,s=this.clampMargin/a.resolution,u=this.clampOffset;return o[0]=(t._frame.x+s+u)/a.width,o[1]=(t._frame.y+s+u)/a.height,o[2]=(t._frame.x+t._frame.width-s+u)/a.width,o[3]=(t._frame.y+t._frame.height-s+u)/a.height,this.uClampOffset[0]=u/a.realWidth,this.uClampOffset[1]=u/a.realHeight,!0},n(r,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture=e,this._lastTextureID=-1}}]),r}();r.default=s},{"../math/Matrix":67}],117:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("../math/GroupD8"),l=(i=n)&&i.__esModule?i:{default:i};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsUint32=new Uint32Array(4)}return e.prototype.set=function(e,t,r){var i=t.width,n=t.height;if(r){var a=e.width/2/i,o=e.height/2/n,s=e.x/i+a,u=e.y/n+o;r=l.default.add(r,l.default.NW),this.x0=s+a*l.default.uX(r),this.y0=u+o*l.default.uY(r),r=l.default.add(r,2),this.x1=s+a*l.default.uX(r),this.y1=u+o*l.default.uY(r),r=l.default.add(r,2),this.x2=s+a*l.default.uX(r),this.y2=u+o*l.default.uY(r),r=l.default.add(r,2),this.x3=s+a*l.default.uX(r),this.y3=u+o*l.default.uY(r)}else this.x0=e.x/i,this.y0=e.y/n,this.x1=(e.x+e.width)/i,this.y1=e.y/n,this.x2=(e.x+e.width)/i,this.y2=(e.y+e.height)/n,this.x3=e.x/i,this.y3=(e.y+e.height)/n;this.uvsUint32[0]=(65535&Math.round(65535*this.y0))<<16|65535&Math.round(65535*this.x0),this.uvsUint32[1]=(65535&Math.round(65535*this.y1))<<16|65535&Math.round(65535*this.x1),this.uvsUint32[2]=(65535&Math.round(65535*this.y2))<<16|65535&Math.round(65535*this.x2),this.uvsUint32[3]=(65535&Math.round(65535*this.y3))<<16|65535&Math.round(65535*this.x3)},e}();r.default=a},{"../math/GroupD8":66}],118:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),a=n(e("./BaseTexture")),o=e("../utils"),u=e("../ticker"),l=e("../const"),c=n(e("../utils/determineCrossOrigin"));function n(e){return e&&e.__esModule?e:{default:e}}var s=function(n){function s(e,t){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),!e)throw new Error("No video source element specified.");(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return i.width=e.videoWidth,i.height=e.videoHeight,i._autoUpdate=!0,i._isAutoUpdating=!1,i.autoPlay=r,i.update=i.update.bind(i),i._onCanPlay=i._onCanPlay.bind(i),e.addEventListener("play",i._onPlayStart.bind(i)),e.addEventListener("pause",i._onPlayStop.bind(i)),i.hasLoaded=!1,i.__loaded=!1,i._isSourceReady()?i._onCanPlay():(e.addEventListener("canplay",i._onCanPlay),e.addEventListener("canplaythrough",i._onCanPlay)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,n),s.prototype._isSourcePlaying=function(){var e=this.source;return 0<e.currentTime&&!1===e.paused&&!1===e.ended&&2<e.readyState},s.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},s.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(u.shared.add(this.update,this,l.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},s.prototype._onPlayStop=function(){this._isAutoUpdating&&(u.shared.remove(this.update,this),this._isAutoUpdating=!1)},s.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.__loaded||(this.__loaded=!0,this.emit("loaded",this)),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.source.play())},s.prototype.destroy=function(){this._isAutoUpdating&&u.shared.remove(this.update,this),this.source&&this.source._pixiId&&(a.default.removeFromCache(this.source._pixiId),delete this.source._pixiId,this.source.pause(),this.source.src="",this.source.load()),n.prototype.destroy.call(this)},s.fromVideo=function(e,t,r){e._pixiId||(e._pixiId="video_"+(0,o.uid)());var i=o.BaseTextureCache[e._pixiId];return i||(i=new s(e,t,r),a.default.addToCache(i,e._pixiId)),i},s.fromUrl=function(e,t,r,i){var n=document.createElement("video");n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline","");var a=Array.isArray(e)?e[0].src||e[0]:e.src||e;if(void 0===r&&0!==a.indexOf("data:")?n.crossOrigin=(0,c.default)(a):r&&(n.crossOrigin="string"==typeof r?r:"anonymous"),Array.isArray(e))for(var o=0;o<e.length;++o)n.appendChild(h(e[o].src||e[o],e[o].mime));else n.appendChild(h(a,e.mime));return n.load(),s.fromVideo(n,t,i)},i(s,[{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isAutoUpdating?(u.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(u.shared.add(this.update,this,l.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0))}}]),s}(a.default);function h(e,t){if(!t){var r=e.split("?").shift().toLowerCase();t="video/"+r.substr(r.lastIndexOf(".")+1)}var i=document.createElement("source");return i.src=e,i.type=t,i}(r.default=s).fromUrls=s.fromUrl},{"../const":46,"../ticker":121,"../utils":125,"../utils/determineCrossOrigin":124,"./BaseTexture":112}],119:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=s(e("../settings")),a=e("../const"),o=s(e("./TickerListener"));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._head=new o.default(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/n.default.TARGET_FPMS,this.lastTime=-1,this.speed=1,this.started=!1,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return e.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:a.UPDATE_PRIORITY.NORMAL;return this._addListener(new o.default(e,t,r))},e.prototype.addOnce=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:a.UPDATE_PRIORITY.NORMAL;return this._addListener(new o.default(e,t,r,!0))},e.prototype._addListener=function(e){var t=this._head.next,r=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(r);break}t=(r=t).next}e.previous||e.connect(r)}else e.connect(r);return this._startIfPossible(),this},e.prototype.remove=function(e,t){for(var r=this._head.next;r;)r=r.match(e,t)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this},e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null},e.prototype.update=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:performance.now(),t=void 0;if(e>this.lastTime){(t=this.elapsedMS=e-this.lastTime)>this._maxElapsedMS&&(t=this._maxElapsedMS),this.deltaTime=t*n.default.TARGET_FPMS*this.speed;for(var r=this._head,i=r.next;i;)i=i.emit(this.deltaTime);r.next||this._cancelIfNeeded()}else this.deltaTime=this.elapsedMS=0;this.lastTime=e},i(e,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(e){var t=Math.min(Math.max(0,e)/1e3,n.default.TARGET_FPMS);this._maxElapsedMS=1/t}}]),e}();r.default=u},{"../const":46,"../settings":101,"./TickerListener":120}],120:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.fn=e,this.context=t,this.priority=r,this.once=i,this.next=null,this.previous=null,this._destroyed=!1}return n.prototype.match=function(e,t){return t=t||null,this.fn===e&&this.context===t},n.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},n.prototype.connect=function(e){(this.previous=e).next&&(e.next.previous=this),this.next=e.next,e.next=this},n.prototype.destroy=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.next;return this.next=e?null:t,this.previous=null,t},n}();r.default=i},{}],121:[function(e,t,r){"use strict";r.__esModule=!0,r.Ticker=r.shared=void 0;var i,n=e("./Ticker"),a=(i=n)&&i.__esModule?i:{default:i};var o=new a.default;o.autoStart=!0,o.destroy=function(){},r.shared=o,r.Ticker=a.default},{"./Ticker":119}],122:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){return!(navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform))}},{}],123:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){for(var t=6*e,r=new Uint16Array(t),i=0,n=0;i<t;i+=6,n+=4)r[i+0]=n+0,r[i+1]=n+1,r[i+2]=n+2,r[i+3]=n+0,r[i+4]=n+2,r[i+5]=n+3;return r}},{}],124:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window.location;if(0===e.indexOf("data:"))return"";t=t||window.location,o||(o=document.createElement("a"));o.href=e;var r=!(e=a.default.parse(o.href)).port&&""===t.port||e.port===t.port;return e.hostname===t.hostname&&r&&e.protocol===t.protocol?"":"anonymous"};var i,n=e("url"),a=(i=n)&&i.__esModule?i:{default:i};var o=void 0},{url:38}],125:[function(e,t,r){"use strict";r.__esModule=!0,r.premultiplyBlendMode=r.BaseTextureCache=r.TextureCache=r.earcut=r.mixins=r.pluginTarget=r.EventEmitter=r.removeItems=r.isMobile=void 0,r.uid=function(){return++p},r.hex2rgb=function(e,t){return(t=t||[])[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},r.hex2string=function(e){return e=e.toString(16),"#"+(e="000000".substr(0,6-e.length)+e)},r.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},r.getResolutionOfUrl=function(e,t){var r=n.default.RETINA_PREFIX.exec(e);if(r)return parseFloat(r[1]);return void 0!==t?t:1},r.decomposeDataUri=function(e){var t=i.DATA_URI.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]};return},r.getUrlFileExtension=function(e){var t=i.URL_FILE_EXTENSION.exec(e);if(t)return t[1].toLowerCase();return},r.getSvgSize=function(e){var t=i.SVG_SIZE.exec(e),r={};t&&(r[t[1]]=Math.round(parseFloat(t[3])),r[t[5]]=Math.round(parseFloat(t[7])));return r},r.skipHello=function(){m=!0},r.sayHello=function(e){if(m)return;if(-1<navigator.userAgent.toLowerCase().indexOf("chrome")){var t=["\n %c %c %c PixiJS "+i.VERSION+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];window.console.log.apply(console,t)}else window.console&&window.console.log("PixiJS "+i.VERSION+" - "+e+" - http://www.pixijs.com/");m=!0},r.isWebGLSupported=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var t=document.createElement("canvas"),r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),i=!(!r||!r.getContextAttributes().stencil);if(r){var n=r.getExtension("WEBGL_lose_context");n&&n.loseContext()}return r=null,i}catch(e){return!1}},r.sign=function(e){return 0===e?0:e<0?-1:1},r.destroyTextureCache=function(){var e=void 0;for(e in g)g[e].destroy();for(e in v)v[e].destroy()},r.clearTextureCache=function(){var e=void 0;for(e in g)delete g[e];for(e in v)delete v[e]},r.correctBlendMode=function(e,t){return b[t?1:0][e]},r.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var r=e>>16&255,i=e>>8&255,n=255&e;return(255*t<<24)+((r=r*t+.5|0)<<16)+((i=i*t+.5|0)<<8)+(n=n*t+.5|0)},r.premultiplyRgba=function(e,t,r,i){r=r||new Float32Array(4),i||void 0===i?(r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t):(r[0]=e[0],r[1]=e[1],r[2]=e[2]);return r[3]=t,r},r.premultiplyTintToRgba=function(e,t,r,i){(r=r||new Float32Array(4))[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,(i||void 0===i)&&(r[0]*=t,r[1]*=t,r[2]*=t);return r[3]=t,r};var i=e("../const"),n=d(e("../settings")),a=d(e("eventemitter3")),o=d(e("./pluginTarget")),s=f(e("./mixin")),u=f(e("ismobilejs")),l=d(e("remove-array-items")),c=d(e("./mapPremultipliedBlendModes")),h=d(e("earcut"));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var p=0,m=!1;r.isMobile=u,r.removeItems=l.default,r.EventEmitter=a.default,r.pluginTarget=o.default,r.mixins=s,r.earcut=h.default;var g=r.TextureCache=Object.create(null),v=r.BaseTextureCache=Object.create(null);var b=r.premultiplyBlendMode=(0,c.default)()},{"../const":46,"../settings":101,"./mapPremultipliedBlendModes":126,"./mixin":128,"./pluginTarget":129,earcut:2,eventemitter3:3,ismobilejs:4,"remove-array-items":31}],126:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[n.BLEND_MODES.NORMAL_NPM]=n.BLEND_MODES.NORMAL,e[n.BLEND_MODES.ADD_NPM]=n.BLEND_MODES.ADD,e[n.BLEND_MODES.SCREEN_NPM]=n.BLEND_MODES.SCREEN,t[n.BLEND_MODES.NORMAL]=n.BLEND_MODES.NORMAL_NPM,t[n.BLEND_MODES.ADD]=n.BLEND_MODES.ADD_NPM,t[n.BLEND_MODES.SCREEN]=n.BLEND_MODES.SCREEN_NPM;var i=[];return i.push(t),i.push(e),i};var n=e("../const")},{"../const":46}],127:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){if(a.default.tablet||a.default.phone)return 4;return e};var i,n=e("ismobilejs"),a=(i=n)&&i.__esModule?i:{default:i}},{ismobilejs:4}],128:[function(e,t,r){"use strict";function i(e,t){if(e&&t)for(var r=Object.keys(t),i=0;i<r.length;++i){var n=r[i];Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}}r.__esModule=!0,r.mixin=i,r.delayMixin=function(e,t){n.push(e,t)},r.performMixins=function(){for(var e=0;e<n.length;e+=2)i(n[e],n[e+1]);n.length=0};var n=[]},{}],129:[function(e,t,r){"use strict";r.__esModule=!0,r.default={mixin:function(e){!function(r){r.__plugins={},r.registerPlugin=function(e,t){r.__plugins[e]=t},r.prototype.initPlugins=function(){for(var e in this.plugins=this.plugins||{},r.__plugins)this.plugins[e]=new r.__plugins[e](this)},r.prototype.destroyPlugins=function(){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;this.plugins=null}}(e)}}},{}],130:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=e.width,r=e.height,i=e.getContext("2d"),n=i.getImageData(0,0,t,r).data,a=n.length,o={top:null,left:null,right:null,bottom:null},s=null,u=void 0,l=void 0,c=void 0;for(u=0;u<a;u+=4)0!==n[u+3]&&(l=u/4%t,c=~~(u/4/t),null===o.top&&(o.top=c),null===o.left?o.left=l:l<o.left&&(o.left=l),null===o.right?o.right=l+1:o.right<l&&(o.right=l+1),null===o.bottom?o.bottom=c:o.bottom<c&&(o.bottom=c));null!==o.top&&(t=o.right-o.left,r=o.bottom-o.top+1,s=i.getImageData(o.left,o.top,t,r));return{height:r,width:t,data:s}}},{}],131:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(r){var e=r.mesh,t=r.particles,i=r.extras,n=r.filters,a=r.prepare,o=r.loaders,s=r.interaction;Object.defineProperties(r,{SpriteBatch:{get:function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")}},AssetLoader:{get:function(){throw new ReferenceError("The loader system was overhauled in PixiJS v3, please see the new PIXI.loaders.Loader class.")}},Stage:{get:function(){return p("You do not need to use a PIXI Stage any more, you can simply render any container."),r.Container}},DisplayObjectContainer:{get:function(){return p("DisplayObjectContainer has been shortened to Container, please use Container from now on."),r.Container}},Strip:{get:function(){return p("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),e.Mesh}},Rope:{get:function(){return p("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),e.Rope}},ParticleContainer:{get:function(){return p("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),t.ParticleContainer}},MovieClip:{get:function(){return p("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),i.AnimatedSprite}},TilingSprite:{get:function(){return p("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),i.TilingSprite}},BitmapText:{get:function(){return p("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),i.BitmapText}},blendModes:{get:function(){return p("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),r.BLEND_MODES}},scaleModes:{get:function(){return p("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),r.SCALE_MODES}},BaseTextureCache:{get:function(){return p("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),r.utils.BaseTextureCache}},TextureCache:{get:function(){return p("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),r.utils.TextureCache}},math:{get:function(){return p("The math namespace is deprecated, please access members already accessible on PIXI."),r}},AbstractFilter:{get:function(){return p("AstractFilter has been renamed to Filter, please use PIXI.Filter"),r.Filter}},TransformManual:{get:function(){return p("TransformManual has been renamed to TransformBase, please update your pixi-spine"),r.TransformBase}},TARGET_FPMS:{get:function(){return p("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),r.settings.TARGET_FPMS},set:function(e){p("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),r.settings.TARGET_FPMS=e}},FILTER_RESOLUTION:{get:function(){return p("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),r.settings.FILTER_RESOLUTION},set:function(e){p("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),r.settings.FILTER_RESOLUTION=e}},RESOLUTION:{get:function(){return p("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),r.settings.RESOLUTION},set:function(e){p("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),r.settings.RESOLUTION=e}},MIPMAP_TEXTURES:{get:function(){return p("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),r.settings.MIPMAP_TEXTURES},set:function(e){p("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),r.settings.MIPMAP_TEXTURES=e}},SPRITE_BATCH_SIZE:{get:function(){return p("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),r.settings.SPRITE_BATCH_SIZE},set:function(e){p("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),r.settings.SPRITE_BATCH_SIZE=e}},SPRITE_MAX_TEXTURES:{get:function(){return p("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),r.settings.SPRITE_MAX_TEXTURES},set:function(e){p("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),r.settings.SPRITE_MAX_TEXTURES=e}},RETINA_PREFIX:{get:function(){return p("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),r.settings.RETINA_PREFIX},set:function(e){p("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),r.settings.RETINA_PREFIX=e}},DEFAULT_RENDER_OPTIONS:{get:function(){return p("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),r.settings.RENDER_OPTIONS}}});for(var u=[{parent:"TRANSFORM_MODE",target:"TRANSFORM_MODE"},{parent:"GC_MODES",target:"GC_MODE"},{parent:"WRAP_MODES",target:"WRAP_MODE"},{parent:"SCALE_MODES",target:"SCALE_MODE"},{parent:"PRECISION",target:"PRECISION_FRAGMENT"}],l=function(e){var t=u[e];Object.defineProperty(r[t.parent],"DEFAULT",{get:function(){return p("PIXI."+t.parent+".DEFAULT has been deprecated, please use PIXI.settings."+t.target),r.settings[t.target]},set:function(e){p("PIXI."+t.parent+".DEFAULT has been deprecated, please use PIXI.settings."+t.target),r.settings[t.target]=e}})},c=0;c<u.length;c++)l(c);Object.defineProperties(r.settings,{PRECISION:{get:function(){return p("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),r.settings.PRECISION_FRAGMENT},set:function(e){p("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),r.settings.PRECISION_FRAGMENT=e}}}),i.AnimatedSprite&&Object.defineProperties(i,{MovieClip:{get:function(){return p("The MovieClip class has been renamed to AnimatedSprite, please use AnimatedSprite from now on."),i.AnimatedSprite}}});i&&Object.defineProperties(i,{TextureTransform:{get:function(){return p("The TextureTransform class has been renamed to TextureMatrix, please use PIXI.TextureMatrix from now on."),r.TextureMatrix}}});r.DisplayObject.prototype.generateTexture=function(e,t,r){return p("generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)"),e.generateTexture(this,t,r)},r.Graphics.prototype.generateTexture=function(e,t){return p("graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture"),this.generateCanvasTexture(e,t)},r.GroupD8.isSwapWidthHeight=function(e){return p("GroupD8.isSwapWidthHeight was renamed to GroupD8.isVertical"),r.GroupD8.isVertical(e)},r.RenderTexture.prototype.render=function(e,t,r,i){this.legacyRenderer.render(e,this,r,t,!i),p("RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)")},r.RenderTexture.prototype.getImage=function(e){return p("RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)"),this.legacyRenderer.extract.image(e)},r.RenderTexture.prototype.getBase64=function(e){return p("RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)"),this.legacyRenderer.extract.base64(e)},r.RenderTexture.prototype.getCanvas=function(e){return p("RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)"),this.legacyRenderer.extract.canvas(e)},r.RenderTexture.prototype.getPixels=function(e){return p("RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)"),this.legacyRenderer.pixels(e)},r.Sprite.prototype.setTexture=function(e){this.texture=e,p("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},i.BitmapText&&(i.BitmapText.prototype.setText=function(e){this.text=e,p("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")});r.Text.prototype.setText=function(e){this.text=e,p("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},r.Text.calculateFontProperties=function(e){return p("Text.calculateFontProperties is now deprecated, please use the TextMetrics.measureFont"),r.TextMetrics.measureFont(e)},Object.defineProperties(r.Text,{fontPropertiesCache:{get:function(){return p("Text.fontPropertiesCache is deprecated"),r.TextMetrics._fonts}},fontPropertiesCanvas:{get:function(){return p("Text.fontPropertiesCanvas is deprecated"),r.TextMetrics._canvas}},fontPropertiesContext:{get:function(){return p("Text.fontPropertiesContext is deprecated"),r.TextMetrics._context}}}),r.Text.prototype.setStyle=function(e){this.style=e,p("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},r.Text.prototype.determineFontProperties=function(e){return p("determineFontProperties is now deprecated, please use TextMetrics.measureFont method"),r.TextMetrics.measureFont(e)},r.Text.getFontStyle=function(e){return p("getFontStyle is now deprecated, please use TextStyle.toFontString() instead"),(e=e||{})instanceof r.TextStyle||(e=new r.TextStyle(e)),e.toFontString()},Object.defineProperties(r.TextStyle.prototype,{font:{get:function(){p("text style property 'font' is now deprecated, please use the 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant' and 'fontWeight' properties from now on");var e="number"==typeof this._fontSize?this._fontSize+"px":this._fontSize;return this._fontStyle+" "+this._fontVariant+" "+this._fontWeight+" "+e+" "+this._fontFamily},set:function(e){p("text style property 'font' is now deprecated, please use the 'fontFamily','fontSize',fontStyle','fontVariant' and 'fontWeight' properties from now on"),1<e.indexOf("italic")?this._fontStyle="italic":-1<e.indexOf("oblique")?this._fontStyle="oblique":this._fontStyle="normal",-1<e.indexOf("small-caps")?this._fontVariant="small-caps":this._fontVariant="normal";var t=e.split(" "),r=-1;this._fontSize=26;for(var i=0;i<t.length;++i)if(t[i].match(/(px|pt|em|%)/)){r=i,this._fontSize=t[i];break}this._fontWeight="normal";for(var n=0;n<r;++n)if(t[n].match(/(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/)){this._fontWeight=t[n];break}if(-1<r&&r<t.length-1){this._fontFamily="";for(var a=r+1;a<t.length;++a)this._fontFamily+=t[a]+" ";this._fontFamily=this._fontFamily.slice(0,-1)}else this._fontFamily="Arial";this.styleID++}}}),r.Texture.prototype.setFrame=function(e){this.frame=e,p("setFrame is now deprecated, please use the frame property, e.g: myTexture.frame = frame;")},r.Texture.addTextureToCache=function(e,t){r.Texture.addToCache(e,t),p("Texture.addTextureToCache is deprecated, please use Texture.addToCache from now on.")},r.Texture.removeTextureFromCache=function(e){return p("Texture.removeTextureFromCache is deprecated, please use Texture.removeFromCache from now on. Be aware that Texture.removeFromCache does not automatically its BaseTexture from the BaseTextureCache. For that, use BaseTexture.removeFromCache"),r.BaseTexture.removeFromCache(e),r.Texture.removeFromCache(e)},Object.defineProperties(n,{AbstractFilter:{get:function(){return p("AstractFilter has been renamed to Filter, please use PIXI.Filter"),r.AbstractFilter}},SpriteMaskFilter:{get:function(){return p("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),r.SpriteMaskFilter}},VoidFilter:{get:function(){return p("VoidFilter has been renamed to AlphaFilter, please use PIXI.filters.AlphaFilter"),n.AlphaFilter}}}),r.utils.uuid=function(){return p("utils.uuid() is deprecated, please use utils.uid() from now on."),r.utils.uid()},r.utils.canUseNewCanvasBlendModes=function(){return p("utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on"),r.CanvasTinter.canUseMultiply};var h=!0;Object.defineProperty(r.utils,"_saidHello",{set:function(e){e&&(p("PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()"),this.skipHello()),h=e},get:function(){return h}}),a.BasePrepare&&(a.BasePrepare.prototype.register=function(e,t){return p("renderer.plugins.prepare.register is now deprecated, please use renderer.plugins.prepare.registerFindHook & renderer.plugins.prepare.registerUploadHook"),e&&this.registerFindHook(e),t&&this.registerUploadHook(t),this});a.canvas&&Object.defineProperty(a.canvas,"UPLOADS_PER_FRAME",{set:function(){p("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return p("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});a.webgl&&Object.defineProperty(a.webgl,"UPLOADS_PER_FRAME",{set:function(){p("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return p("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});if(o.Loader){var f=o.Resource,d=o.Loader;Object.defineProperties(f.prototype,{isJson:{get:function(){return p("The isJson property is deprecated, please use `resource.type === Resource.TYPE.JSON`."),this.type===f.TYPE.JSON}},isXml:{get:function(){return p("The isXml property is deprecated, please use `resource.type === Resource.TYPE.XML`."),this.type===f.TYPE.XML}},isImage:{get:function(){return p("The isImage property is deprecated, please use `resource.type === Resource.TYPE.IMAGE`."),this.type===f.TYPE.IMAGE}},isAudio:{get:function(){return p("The isAudio property is deprecated, please use `resource.type === Resource.TYPE.AUDIO`."),this.type===f.TYPE.AUDIO}},isVideo:{get:function(){return p("The isVideo property is deprecated, please use `resource.type === Resource.TYPE.VIDEO`."),this.type===f.TYPE.VIDEO}}}),Object.defineProperties(d.prototype,{before:{get:function(){return p("The before() method is deprecated, please use pre()."),this.pre}},after:{get:function(){return p("The after() method is deprecated, please use use()."),this.use}}})}s.interactiveTarget&&Object.defineProperty(s.interactiveTarget,"defaultCursor",{set:function(e){p("Property defaultCursor has been replaced with 'cursor'. "),this.cursor=e},get:function(){return p("Property defaultCursor has been replaced with 'cursor'. "),this.cursor}});s.InteractionManager&&(Object.defineProperty(s.InteractionManager,"defaultCursorStyle",{set:function(e){p("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default=e},get:function(){return p("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default}}),Object.defineProperty(s.InteractionManager,"currentCursorStyle",{set:function(e){p("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode=e},get:function(){return p("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode}}))};var i={};function p(e){if(!i[e]){var t=(new Error).stack;void 0===t?console.warn("Deprecation Warning: ",e):(t=t.split("\n").splice(3).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cDeprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e),console.warn(t),console.groupEnd()):(console.warn("Deprecation Warning: ",e),console.warn(t))),i[e]=!0}}},{}],132:[function(e,t,r){"use strict";r.__esModule=!0;var c=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));var h=new c.Rectangle,i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(this.renderer=e).extract=this}return t.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},t.prototype.base64=function(e){return this.canvas(e).toDataURL()},t.prototype.canvas=function(e){var t=this.renderer,r=void 0,i=void 0,n=void 0,a=void 0;e&&(a=e instanceof c.RenderTexture?e:t.generateTexture(e)),a?(r=a.baseTexture._canvasRenderTarget.context,i=a.baseTexture._canvasRenderTarget.resolution,n=a.frame):(r=t.rootContext,i=t.resolution,(n=h).width=this.renderer.width,n.height=this.renderer.height);var o=n.width*i,s=n.height*i,u=new c.CanvasRenderTarget(o,s,1),l=r.getImageData(n.x*i,n.y*i,o,s);return u.context.putImageData(l,0,0),u.canvas},t.prototype.pixels=function(e){var t=this.renderer,r=void 0,i=void 0,n=void 0,a=void 0;return e&&(a=e instanceof c.RenderTexture?e:t.generateTexture(e)),a?(r=a.baseTexture._canvasRenderTarget.context,i=a.baseTexture._canvasRenderTarget.resolution,n=a.frame):(r=t.rootContext,(n=h).width=t.width,n.height=t.height),r.getImageData(0,0,n.width*i,n.height*i).data},t.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},t}();r.default=i,c.CanvasRenderer.registerPlugin("extract",i)},{"../../core":65}],133:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./webgl/WebGLExtract");Object.defineProperty(r,"webgl",{enumerable:!0,get:function(){return a(i).default}});var n=e("./canvas/CanvasExtract");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"canvas",{enumerable:!0,get:function(){return a(n).default}})},{"./canvas/CanvasExtract":132,"./webgl/WebGLExtract":134}],134:[function(e,t,r){"use strict";r.__esModule=!0;var p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));var m=new p.Rectangle,i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(this.renderer=e).extract=this}return t.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},t.prototype.base64=function(e){return this.canvas(e).toDataURL()},t.prototype.canvas=function(e){var t=this.renderer,r=void 0,i=void 0,n=void 0,a=!1,o=void 0,s=!1;e&&(e instanceof p.RenderTexture?o=e:(o=this.renderer.generateTexture(e),s=!0)),o?(i=(r=o.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,n=o.frame,a=!1):(i=(r=this.renderer.rootRenderTarget).resolution,a=!0,(n=m).width=r.size.width,n.height=r.size.height);var u=n.width*i,l=n.height*i,c=new p.CanvasRenderTarget(u,l,1);if(r){t.bindRenderTarget(r);var h=new Uint8Array(4*u*l),f=t.gl;f.readPixels(n.x*i,n.y*i,u,l,f.RGBA,f.UNSIGNED_BYTE,h);var d=c.context.getImageData(0,0,u,l);d.data.set(h),c.context.putImageData(d,0,0),a&&(c.context.scale(1,-1),c.context.drawImage(c.canvas,0,-l))}return s&&o.destroy(!0),c.canvas},t.prototype.pixels=function(e){var t=this.renderer,r=void 0,i=void 0,n=void 0,a=void 0,o=!1;e&&(e instanceof p.RenderTexture?a=e:(a=this.renderer.generateTexture(e),o=!0)),a?(i=(r=a.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,n=a.frame):(i=(r=this.renderer.rootRenderTarget).resolution,(n=m).width=r.size.width,n.height=r.size.height);var s=n.width*i,u=n.height*i,l=new Uint8Array(4*s*u);if(r){t.bindRenderTarget(r);var c=t.gl;c.readPixels(n.x*i,n.y*i,s,u,c.RGBA,c.UNSIGNED_BYTE,l)}return o&&a.destroy(!0),l},t.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},t}();r.default=i,p.WebGLRenderer.registerPlugin("extract",i)},{"../../core":65}],135:[function(e,t,r){"use strict";r.__esModule=!0;var a=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));var i=function(i){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e[0]instanceof o.Texture?e[0]:e[0].texture));return r._textures=null,r._durations=null,r.textures=e,r._autoUpdate=!1!==t,r.animationSpeed=1,r.loop=!0,r.updateAnchor=!1,r.onComplete=null,r.onFrameChange=null,r.onLoop=null,r._currentTime=0,r.playing=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),n.prototype.stop=function(){this.playing&&(this.playing=!1,this._autoUpdate&&o.ticker.shared.remove(this.update,this))},n.prototype.play=function(){this.playing||(this.playing=!0,this._autoUpdate&&o.ticker.shared.add(this.update,this,o.UPDATE_PRIORITY.HIGH))},n.prototype.gotoAndStop=function(e){this.stop();var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()},n.prototype.gotoAndPlay=function(e){var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture(),this.play()},n.prototype.update=function(e){var t=this.animationSpeed*e,r=this.currentFrame;if(null!==this._durations){var i=this._currentTime%1*this._durations[this.currentFrame];for(i+=t/60*1e3;i<0;)this._currentTime--,i+=this._durations[this.currentFrame];var n=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);i>=this._durations[this.currentFrame];)i-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=i/this._durations[this.currentFrame]}else this._currentTime+=t;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(0<this.animationSpeed&&this.currentFrame<r?this.onLoop():this.animationSpeed<0&&this.currentFrame>r&&this.onLoop()),this.updateTexture())},n.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.cachedTint=16777215,this.updateAnchor&&this._anchor.copy(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame)},n.prototype.destroy=function(e){this.stop(),i.prototype.destroy.call(this,e)},n.fromFrames=function(e){for(var t=[],r=0;r<e.length;++r)t.push(o.Texture.fromFrame(e[r]));return new n(t)},n.fromImages=function(e){for(var t=[],r=0;r<e.length;++r)t.push(o.Texture.fromImage(e[r]));return new n(t)},a(n,[{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(e){if(e[0]instanceof o.Texture)this._textures=e,this._durations=null;else{this._textures=[],this._durations=[];for(var t=0;t<e.length;t++)this._textures.push(e[t].texture),this._durations.push(e[t].time)}this.gotoAndStop(0),this.updateTexture()}},{key:"currentFrame",get:function(){var e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e}}]),n}(o.Sprite);r.default=i},{"../core":65}],136:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),O=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),a=i(e("../core/math/ObservablePoint")),k=e("../core/utils"),T=i(e("../core/settings"));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(i){function A(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this));return r._textWidth=0,r._textHeight=0,r._glyphs=[],r._font={tint:void 0!==t.tint?t.tint:16777215,align:t.align||"left",name:null,size:0},r.font=t.font,r._text=e,r._maxWidth=0,r._maxLineHeight=0,r._letterSpacing=0,r._anchor=new a.default(function(){r.dirty=!0},r,0,0),r.dirty=!1,r.updateText(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(A,i),A.prototype.updateText=function(){for(var e=A.fonts[this._font.name],t=this._font.size/e.size,r=new O.Point,i=[],n=[],a=this.text.replace(/(?:\r\n|\r)/g,"\n"),o=a.length,s=this._maxWidth*e.size/this._font.size,u=null,l=0,c=0,h=0,f=-1,d=0,p=0,m=0,g=0;g<o;g++){var v=a.charCodeAt(g),b=a.charAt(g);if(/(?:\s)/.test(b)&&(f=g,d=l),"\r"!==b&&"\n"!==b){var y=e.chars[v];y&&(u&&y.kerning[u]&&(r.x+=y.kerning[u]),i.push({texture:y.texture,line:h,charCode:v,position:new O.Point(r.x+y.xOffset+this._letterSpacing/2,r.y+y.yOffset)}),r.x+=y.xAdvance+this._letterSpacing,l=r.x,m=Math.max(m,y.yOffset+y.texture.height),u=v,-1!==f&&0<s&&r.x>s&&(++p,O.utils.removeItems(i,1+f-p,1+g-f),g=f,f=-1,n.push(d),c=Math.max(c,d),h++,r.x=0,r.y+=e.lineHeight,u=null))}else n.push(l),c=Math.max(c,l),++h,++p,r.x=0,r.y+=e.lineHeight,u=null}var _=a.charAt(a.length-1);"\r"!==_&&"\n"!==_&&(/(?:\s)/.test(_)&&(l=d),n.push(l),c=Math.max(c,l));for(var w=[],x=0;x<=h;x++){var k=0;"right"===this._font.align?k=c-n[x]:"center"===this._font.align&&(k=(c-n[x])/2),w.push(k)}for(var T=i.length,S=this.tint,E=0;E<T;E++){var M=this._glyphs[E];M?M.texture=i[E].texture:(M=new O.Sprite(i[E].texture),this._glyphs.push(M)),M.position.x=(i[E].position.x+w[i[E].line])*t,M.position.y=i[E].position.y*t,M.scale.x=M.scale.y=t,M.tint=S,M.parent||this.addChild(M)}for(var P=T;P<this._glyphs.length;++P)this.removeChild(this._glyphs[P]);if(this._textWidth=c*t,this._textHeight=(r.y+e.lineHeight)*t,0!==this.anchor.x||0!==this.anchor.y)for(var C=0;C<T;C++)this._glyphs[C].x-=this._textWidth*this.anchor.x,this._glyphs[C].y-=this._textHeight*this.anchor.y;this._maxLineHeight=m*t},A.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},A.prototype.getLocalBounds=function(){return this.validate(),i.prototype.getLocalBounds.call(this)},A.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},A.registerFont=function(e,t){var r={},i=e.getElementsByTagName("info")[0],n=e.getElementsByTagName("common")[0],a=e.getElementsByTagName("page"),o=(0,k.getResolutionOfUrl)(a[0].getAttribute("file"),T.default.RESOLUTION),s={};r.font=i.getAttribute("face"),r.size=parseInt(i.getAttribute("size"),10),r.lineHeight=parseInt(n.getAttribute("lineHeight"),10)/o,r.chars={},t instanceof O.Texture&&(t=[t]);for(var u=0;u<a.length;u++){var l=a[u].getAttribute("id"),c=a[u].getAttribute("file");s[l]=t instanceof Array?t[u]:t[c]}for(var h=e.getElementsByTagName("char"),f=0;f<h.length;f++){var d=h[f],p=parseInt(d.getAttribute("id"),10),m=d.getAttribute("page")||0,g=new O.Rectangle(parseInt(d.getAttribute("x"),10)/o+s[m].frame.x/o,parseInt(d.getAttribute("y"),10)/o+s[m].frame.y/o,parseInt(d.getAttribute("width"),10)/o,parseInt(d.getAttribute("height"),10)/o);r.chars[p]={xOffset:parseInt(d.getAttribute("xoffset"),10)/o,yOffset:parseInt(d.getAttribute("yoffset"),10)/o,xAdvance:parseInt(d.getAttribute("xadvance"),10)/o,kerning:{},texture:new O.Texture(s[m].baseTexture,g),page:m}}for(var v=e.getElementsByTagName("kerning"),b=0;b<v.length;b++){var y=v[b],_=parseInt(y.getAttribute("first"),10)/o,w=parseInt(y.getAttribute("second"),10)/o,x=parseInt(y.getAttribute("amount"),10)/o;r.chars[w]&&(r.chars[w].kerning[_]=x)}return A.fonts[r.font]=r},n(A,[{key:"tint",get:function(){return this._font.tint},set:function(e){this._font.tint="number"==typeof e&&0<=e?e:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(e){this._font.align=e||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(e){"number"==typeof e?this._anchor.set(e):this._anchor.copy(e)}},{key:"font",get:function(){return this._font},set:function(e){e&&("string"==typeof e?(e=e.split(" "),this._font.name=1===e.length?e[0]:e.slice(1).join(" "),this._font.size=2<=e.length?parseInt(e[0],10):A.fonts[this._font.name].size):(this._font.name=e.name,this._font.size="number"==typeof e.size?e.size:parseInt(e.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(e){e=e.toString()||" ",this._text!==e&&(this._text=e,this.dirty=!0)}},{key:"maxWidth",get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}},{key:"maxLineHeight",get:function(){return this.validate(),this._maxLineHeight}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),A}(O.Container);(r.default=o).fonts={}},{"../core":65,"../core/math/ObservablePoint":68,"../core/settings":101,"../core/utils":125}],137:[function(e,t,r){"use strict";r.__esModule=!0;var i,o=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),w=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),n=e("../core/sprites/canvas/CanvasTinter"),x=(i=n)&&i.__esModule?i:{default:i};var s=new w.Point,a=function(n){function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:100;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e));return i.tileTransform=new w.TransformStatic,i._width=t,i._height=r,i._canvasPattern=null,i.uvTransform=e.transform||new w.TextureMatrix(e),i.pluginName="tilingSprite",i.uvRespectAnchor=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture),this.cachedTint=16777215},a.prototype._renderWebGL=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},a.prototype._renderCanvas=function(e){var t=this._texture;if(t.baseTexture.hasLoaded){var r=e.context,i=this.worldTransform,n=e.resolution,a=2===t.rotate,o=t.baseTexture,s=o.resolution,u=this.tilePosition.x/this.tileScale.x%t.orig.width*s,l=this.tilePosition.y/this.tileScale.y%t.orig.height*s;if(this._textureID!==this._texture._updateID||this.cachedTint!==this.tint){this._textureID=this._texture._updateID;var c=new w.CanvasRenderTarget(t.orig.width,t.orig.height,s);if(16777215!==this.tint)this.tintedTexture=x.default.getTintedTexture(this,this.tint),c.context.drawImage(this.tintedTexture,0,0);else{var h=t._frame.x*s,f=t._frame.y*s,d=t._frame.width*s,p=t._frame.height*s,m=(t.trim?t.trim.width:t.orig.width)*s,g=(t.trim?t.trim.height:t.orig.height)*s,v=(t.trim?t.trim.x:0)*s,b=(t.trim?t.trim.y:0)*s;a?(c.context.rotate(-Math.PI/2),c.context.translate(-g,0),c.context.drawImage(o.source,h,f,d,p,-b,v,g,m)):c.context.drawImage(o.source,h,f,d,p,v,b,m,g)}this.cachedTint=this.tint,this._canvasPattern=c.context.createPattern(c.canvas,"repeat")}r.globalAlpha=this.worldAlpha,r.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n,i.ty*n),e.setBlendMode(this.blendMode),r.fillStyle=this._canvasPattern,r.scale(this.tileScale.x/s,this.tileScale.y/s);var y=this.anchor.x*-this._width*s,_=this.anchor.y*-this._height*s;this.uvRespectAnchor?(r.translate(u,l),r.fillRect(y-u,_-l,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s)):(r.translate(u+y,l+_),r.fillRect(-u,-l,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s))}},a.prototype._calculateBounds=function(){var e=this._width*-this._anchor._x,t=this._height*-this._anchor._y,r=this._width*(1-this._anchor._x),i=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,t,r,i)},a.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new w.Rectangle),e=this._localBoundsRect),this._bounds.getRectangle(e)):n.prototype.getLocalBounds.call(this,e)},a.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,s);var t=this._width,r=this._height,i=-t*this.anchor._x;if(s.x>=i&&s.x<i+t){var n=-r*this.anchor._y;if(s.y>=n&&s.y<n+r)return!0}return!1},a.prototype.destroy=function(e){n.prototype.destroy.call(this,e),this.tileTransform=null,this.uvTransform=null},a.from=function(e,t,r){return new a(w.Texture.from(e),t,r)},a.fromFrame=function(e,t,r){var i=w.utils.TextureCache[e];if(!i)throw new Error('The frameId "'+e+'" does not exist in the texture cache '+this);return new a(i,t,r)},a.fromImage=function(e,t,r,i,n){return new a(w.Texture.fromImage(e,i,n),t,r)},o(a,[{key:"clampMargin",get:function(){return this.uvTransform.clampMargin},set:function(e){this.uvTransform.clampMargin=e,this.uvTransform.update(!0)}},{key:"tileScale",get:function(){return this.tileTransform.scale},set:function(e){this.tileTransform.scale.copy(e)}},{key:"tilePosition",get:function(){return this.tileTransform.position},set:function(e){this.tileTransform.position.copy(e)}},{key:"width",get:function(){return this._width},set:function(e){this._width=e}},{key:"height",get:function(){return this._height},set:function(e){this._height=e}}]),a}(w.Sprite);r.default=a},{"../core":65,"../core/sprites/canvas/CanvasTinter":104}],138:[function(e,t,r){"use strict";var c=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),h=i(e("../core/textures/Texture")),f=i(e("../core/textures/BaseTexture")),d=e("../core/utils");function i(e){return e&&e.__esModule?e:{default:e}}var n=c.DisplayObject,p=new c.Matrix;n.prototype._cacheAsBitmap=!1,n.prototype._cacheData=!1;var a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.textureCacheId=null,this.originalRenderWebGL=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalHitTest=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.sprite=null};Object.defineProperties(n.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){var t=void 0;(this._cacheAsBitmap=e)?(this._cacheData||(this._cacheData=new a),(t=this._cacheData).originalRenderWebGL=this.renderWebGL,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((t=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.renderWebGL=t.originalRenderWebGL,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}}),n.prototype._renderCachedWebGL=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderWebGL(e))},n.prototype._initCachedDisplayObject=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.alpha;this.alpha=1,e.currentRenderer.flush();var r=this.getLocalBounds().clone();if(this._filters&&this._filters.length){var i=this._filters[0].padding;r.pad(i)}r.ceil(c.settings.RESOLUTION);var n=e._activeRenderTarget,a=e.filterManager.filterStack,o=c.RenderTexture.create(r.width,r.height),s="cacheAsBitmap_"+(0,d.uid)();this._cacheData.textureCacheId=s,f.default.addToCache(o.baseTexture,s),h.default.addToCache(o,s);var u=p;u.tx=-r.x,u.ty=-r.y,this.transform.worldTransform.identity(),this.renderWebGL=this._cacheData.originalRenderWebGL,e.render(this,o,!0,u,!0),e.bindRenderTarget(n),e.filterManager.filterStack=a,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null;var l=new c.Sprite(o);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-r.x/r.width,l.anchor.y=-r.y/r.height,l.alpha=t,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}},n.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(e))},n.prototype._initCachedDisplayObjectCanvas=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.getLocalBounds(),r=this.alpha;this.alpha=1;var i=e.context;t.ceil(c.settings.RESOLUTION);var n=c.RenderTexture.create(t.width,t.height),a="cacheAsBitmap_"+(0,d.uid)();this._cacheData.textureCacheId=a,f.default.addToCache(n.baseTexture,a),h.default.addToCache(n,a);var o=p;this.transform.localTransform.copy(o),o.invert(),o.tx-=t.x,o.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,n,!0,o,!1),e.context=i,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null;var s=new c.Sprite(n);s.transform.worldTransform=this.transform.worldTransform,s.anchor.x=-t.x/t.width,s.anchor.y=-t.y/t.height,s.alpha=r,s._bounds=this._bounds,this._cacheData.sprite=s,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=s.containsPoint.bind(s)}},n.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._lastBoundsID=this._boundsID},n.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},n.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,f.default.removeFromCache(this._cacheData.textureCacheId),h.default.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},n.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)}},{"../core":65,"../core/textures/BaseTexture":112,"../core/textures/Texture":115,"../core/utils":125}],139:[function(e,t,r){"use strict";var i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));i.DisplayObject.prototype.name=null,i.Container.prototype.getChildByName=function(e){for(var t=0;t<this.children.length;t++)if(this.children[t].name===e)return this.children[t];return null}},{"../core":65}],140:[function(e,t,r){"use strict";var i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));i.DisplayObject.prototype.getGlobalPosition=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new i.Point,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e}},{"../core":65}],141:[function(e,t,r){"use strict";r.__esModule=!0,r.BitmapText=r.TilingSpriteRenderer=r.TilingSprite=r.AnimatedSprite=void 0;var i=e("./AnimatedSprite");Object.defineProperty(r,"AnimatedSprite",{enumerable:!0,get:function(){return s(i).default}});var n=e("./TilingSprite");Object.defineProperty(r,"TilingSprite",{enumerable:!0,get:function(){return s(n).default}});var a=e("./webgl/TilingSpriteRenderer");Object.defineProperty(r,"TilingSpriteRenderer",{enumerable:!0,get:function(){return s(a).default}});var o=e("./BitmapText");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"BitmapText",{enumerable:!0,get:function(){return s(o).default}}),e("./cacheAsBitmap"),e("./getChildByName"),e("./getGlobalPosition")},{"./AnimatedSprite":135,"./BitmapText":136,"./TilingSprite":137,"./cacheAsBitmap":138,"./getChildByName":139,"./getGlobalPosition":140,"./webgl/TilingSpriteRenderer":142}],142:[function(e,t,r){"use strict";r.__esModule=!0;var p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),m=e("../../core/const");e("path");var g=new p.Matrix,i=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.shader=null,t.simpleShader=null,t.quad=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new p.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 sample = texture2D(uSampler, coord);\n gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new p.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new p.Quad(e,this.renderer.state.attribState),this.quad.initVao(this.shader)},i.prototype.render=function(e){var t=this.renderer,r=this.quad;t.bindVao(r.vao);var i=r.vertices;i[0]=i[6]=e._width*-e.anchor.x,i[1]=i[3]=e._height*-e.anchor.y,i[2]=i[4]=e._width*(1-e.anchor.x),i[5]=i[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&((i=r.uvs)[0]=i[6]=-e.anchor.x,i[1]=i[3]=-e.anchor.y,i[2]=i[4]=1-e.anchor.x,i[5]=i[7]=1-e.anchor.y),r.upload();var n=e._texture,a=n.baseTexture,o=e.tileTransform.localTransform,s=e.uvTransform,u=a.isPowerOfTwo&&n.frame.width===a.width&&n.frame.height===a.height;u&&(a._glTextures[t.CONTEXT_UID]?u=a.wrapMode!==m.WRAP_MODES.CLAMP:a.wrapMode===m.WRAP_MODES.CLAMP&&(a.wrapMode=m.WRAP_MODES.REPEAT));var l=u?this.simpleShader:this.shader;t.bindShader(l);var c=n.width,h=n.height,f=e._width,d=e._height;g.set(o.a*c/f,o.b*c/d,o.c*h/f,o.d*h/d,o.tx/f,o.ty/d),g.invert(),u?g.prepend(s.mapCoord):(l.uniforms.uMapCoord=s.mapCoord.toArray(!0),l.uniforms.uClampFrame=s.uClampFrame,l.uniforms.uClampOffset=s.uClampOffset),l.uniforms.uTransform=g.toArray(!0),l.uniforms.uColor=p.utils.premultiplyTintToRgba(e.tint,e.worldAlpha,l.uniforms.uColor,a.premultipliedAlpha),l.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),l.uniforms.uSampler=t.bindTexture(n),t.setBlendMode(p.utils.correctBlendMode(e.blendMode,a.premultipliedAlpha)),r.vao.draw(this.renderer.gl.TRIANGLES,6,0)},i}(p.ObjectRenderer);r.default=i,p.WebGLRenderer.registerPlugin("tilingSprite",i)},{"../../core":65,"../../core/const":46,path:8}],143:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var a=function(r){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n"));return t.alpha=e,t.glShaderKey="alpha",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),n(i,[{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),i}(i.Filter);r.default=a},{"../../core":65,path:8}],144:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),u=n(e("./BlurXFilter")),l=n(e("./BlurYFilter"));function n(e){return e&&e.__esModule?e:{default:e}}var a=function(a){function o(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this));return n.blurXFilter=new u.default(e,t,r,i),n.blurYFilter=new l.default(e,t,r,i),n.padding=0,n.resolution=r||s.settings.RESOLUTION,n.quality=t||4,n.blur=e||8,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,a),o.prototype.apply=function(e,t,r){var i=e.getRenderTarget(!0);this.blurXFilter.apply(e,t,i,!0),this.blurYFilter.apply(e,i,r,!1),e.returnRenderTarget(i)},i(o,[{key:"blur",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"quality",get:function(){return this.blurXFilter.quality},set:function(e){this.blurXFilter.quality=this.blurYFilter.quality=e}},{key:"blurX",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blurY",get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blendMode",get:function(){return this.blurYFilter._blendMode},set:function(e){this.blurYFilter._blendMode=e}}]),o}(s.Filter);r.default=a},{"../../core":65,"./BlurXFilter":145,"./BlurYFilter":146}],145:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),l=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),h=n(e("./generateBlurVertSource")),f=n(e("./generateBlurFragSource")),d=n(e("./getMaxBlurKernelSize"));function n(e){return e&&e.__esModule?e:{default:e}}var a=function(s){function u(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i=i||5;var n=(0,h.default)(i,!0),a=(0,f.default)(i),o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,s.call(this,n,a));return o.resolution=r||l.settings.RESOLUTION,o._quality=0,o.quality=t||4,o.strength=e||8,o.firstRun=!0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,s),u.prototype.apply=function(e,t,r,i){if(this.firstRun){var n=e.renderer.gl,a=(0,d.default)(n);this.vertexSrc=(0,h.default)(a,!0),this.fragmentSrc=(0,f.default)(a),this.firstRun=!1}if(this.uniforms.strength=1/r.size.width*(r.size.width/t.size.width),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,r,i);else{for(var o=e.getRenderTarget(!0),s=t,u=o,l=0;l<this.passes-1;l++){e.applyFilter(this,s,u,!0);var c=u;u=s,s=c}e.applyFilter(this,s,r,i),e.returnRenderTarget(o)}},i(u,[{key:"blur",get:function(){return this.strength},set:function(e){this.padding=2*Math.abs(e),this.strength=e}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e}}]),u}(l.Filter);r.default=a},{"../../core":65,"./generateBlurFragSource":147,"./generateBlurVertSource":148,"./getMaxBlurKernelSize":149}],146:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),l=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),h=n(e("./generateBlurVertSource")),f=n(e("./generateBlurFragSource")),d=n(e("./getMaxBlurKernelSize"));function n(e){return e&&e.__esModule?e:{default:e}}var a=function(s){function u(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i=i||5;var n=(0,h.default)(i,!1),a=(0,f.default)(i),o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,s.call(this,n,a));return o.resolution=r||l.settings.RESOLUTION,o._quality=0,o.quality=t||4,o.strength=e||8,o.firstRun=!0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,s),u.prototype.apply=function(e,t,r,i){if(this.firstRun){var n=e.renderer.gl,a=(0,d.default)(n);this.vertexSrc=(0,h.default)(a,!1),this.fragmentSrc=(0,f.default)(a),this.firstRun=!1}if(this.uniforms.strength=1/r.size.height*(r.size.height/t.size.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,r,i);else{for(var o=e.getRenderTarget(!0),s=t,u=o,l=0;l<this.passes-1;l++){e.applyFilter(this,s,u,!0);var c=u;u=s,s=c}e.applyFilter(this,s,r,i),e.returnRenderTarget(o)}},i(u,[{key:"blur",get:function(){return this.strength},set:function(e){this.padding=2*Math.abs(e),this.strength=e}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e}}]),u}(l.Filter);r.default=a},{"../../core":65,"./generateBlurFragSource":147,"./generateBlurVertSource":148,"./getMaxBlurKernelSize":149}],147:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){for(var t=u[e],r=t.length,i=l,n="",a=void 0,o=0;o<e;o++){var s="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",o);r<=(a=o)&&(a=e-o-1),s=s.replace("%value%",t[a]),n+=s,n+="\n"}return i=(i=i.replace("%blur%",n)).replace("%size%",e)};var u={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},l=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n")},{}],148:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=Math.ceil(e/2),i=u,n="",a=void 0;a=t?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var o=0;o<e;o++){var s=a.replace("%index%",o);s=s.replace("%sampleIndex%",o-(r-1)+".0"),n+=s,n+="\n"}return i=(i=i.replace("%blur%",n)).replace("%size%",e)};var u=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform float strength;","uniform mat3 projectionMatrix;","varying vec2 vBlurTexCoords[%size%];","void main(void)","{","gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);","%blur%","}"].join("\n")},{}],149:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=e.getParameter(e.MAX_VARYING_VECTORS),r=15;for(;t<r;)r-=2;return r}},{}],150:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var a=function(t){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n"));return e.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],e.alpha=1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype._loadMatrix=function(e){var t=e;1<arguments.length&&void 0!==arguments[1]&&arguments[1]&&(this._multiply(t,this.uniforms.m,e),t=this._colorMatrix(t)),this.uniforms.m=t},r.prototype._multiply=function(e,t,r){return e[0]=t[0]*r[0]+t[1]*r[5]+t[2]*r[10]+t[3]*r[15],e[1]=t[0]*r[1]+t[1]*r[6]+t[2]*r[11]+t[3]*r[16],e[2]=t[0]*r[2]+t[1]*r[7]+t[2]*r[12]+t[3]*r[17],e[3]=t[0]*r[3]+t[1]*r[8]+t[2]*r[13]+t[3]*r[18],e[4]=t[0]*r[4]+t[1]*r[9]+t[2]*r[14]+t[3]*r[19]+t[4],e[5]=t[5]*r[0]+t[6]*r[5]+t[7]*r[10]+t[8]*r[15],e[6]=t[5]*r[1]+t[6]*r[6]+t[7]*r[11]+t[8]*r[16],e[7]=t[5]*r[2]+t[6]*r[7]+t[7]*r[12]+t[8]*r[17],e[8]=t[5]*r[3]+t[6]*r[8]+t[7]*r[13]+t[8]*r[18],e[9]=t[5]*r[4]+t[6]*r[9]+t[7]*r[14]+t[8]*r[19]+t[9],e[10]=t[10]*r[0]+t[11]*r[5]+t[12]*r[10]+t[13]*r[15],e[11]=t[10]*r[1]+t[11]*r[6]+t[12]*r[11]+t[13]*r[16],e[12]=t[10]*r[2]+t[11]*r[7]+t[12]*r[12]+t[13]*r[17],e[13]=t[10]*r[3]+t[11]*r[8]+t[12]*r[13]+t[13]*r[18],e[14]=t[10]*r[4]+t[11]*r[9]+t[12]*r[14]+t[13]*r[19]+t[14],e[15]=t[15]*r[0]+t[16]*r[5]+t[17]*r[10]+t[18]*r[15],e[16]=t[15]*r[1]+t[16]*r[6]+t[17]*r[11]+t[18]*r[16],e[17]=t[15]*r[2]+t[16]*r[7]+t[17]*r[12]+t[18]*r[17],e[18]=t[15]*r[3]+t[16]*r[8]+t[17]*r[13]+t[18]*r[18],e[19]=t[15]*r[4]+t[16]*r[9]+t[17]*r[14]+t[18]*r[19]+t[19],e},r.prototype._colorMatrix=function(e){var t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},r.prototype.brightness=function(e,t){var r=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.greyscale=function(e,t){var r=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.blackAndWhite=function(e){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],e)},r.prototype.hue=function(e,t){e=(e||0)/180*Math.PI;var r=Math.cos(e),i=Math.sin(e),n=(0,Math.sqrt)(1/3),a=[r+1/3*(1-r),1/3*(1-r)-n*i,1/3*(1-r)+n*i,0,0,1/3*(1-r)+n*i,r+1/3*(1-r),1/3*(1-r)-n*i,0,0,1/3*(1-r)-n*i,1/3*(1-r)+n*i,r+1/3*(1-r),0,0,0,0,0,1,0];this._loadMatrix(a,t)},r.prototype.contrast=function(e,t){var r=(e||0)+1,i=-.5*(r-1),n=[r,0,0,0,i,0,r,0,0,i,0,0,r,0,i,0,0,0,1,0];this._loadMatrix(n,t)},r.prototype.saturate=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],r=2*e/3+1,i=-.5*(r-1),n=[r,i,i,0,0,i,r,i,0,0,i,i,r,0,0,0,0,0,1,0];this._loadMatrix(n,t)},r.prototype.desaturate=function(){this.saturate(-1)},r.prototype.negative=function(e){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],e)},r.prototype.sepia=function(e){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],e)},r.prototype.technicolor=function(e){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],e)},r.prototype.polaroid=function(e){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],e)},r.prototype.toBGR=function(e){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],e)},r.prototype.kodachrome=function(e){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],e)},r.prototype.browni=function(e){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],e)},r.prototype.vintage=function(e){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],e)},r.prototype.colorTone=function(e,t,r,i,n){var a=((r=r||16770432)>>16&255)/255,o=(r>>8&255)/255,s=(255&r)/255,u=((i=i||3375104)>>16&255)/255,l=(i>>8&255)/255,c=(255&i)/255,h=[.3,.59,.11,0,0,a,o,s,e=e||.2,0,u,l,c,t=t||.15,0,a-u,o-l,s-c,0,0];this._loadMatrix(h,n)},r.prototype.night=function(e,t){var r=[-2*(e=e||.1),-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.predator=function(e,t){var r=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.lsd=function(e){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],e)},r.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},i(r,[{key:"matrix",get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e}},{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),r}(n.Filter);(r.default=a).prototype.grayscale=a.prototype.greyscale},{"../../core":65,path:8}],151:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var n=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=new o.Matrix;e.renderable=!1;var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;\n vTextureCoord = aTextureCoord;\n}","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy *= scale / filterArea.xy;\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), filterClamp.xy, filterClamp.zw));\n}\n"));return i.maskSprite=e,i.maskMatrix=r,i.uniforms.mapSampler=e._texture,i.uniforms.filterMatrix=r,i.uniforms.scale={x:1,y:1},null==t&&(t=20),i.scale=new o.Point(t,t),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.apply=function(e,t,r){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y,e.applyFilter(this,t,r)},i(a,[{key:"map",get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e}}]),a}(o.Filter);r.default=n},{"../../core":65,path:8}],152:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var n=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform vec4 filterArea;\n\nvarying vec2 vTextureCoord;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n vec2 inverseVP = 1.0 / resolution.xy;\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n \n --\n \n From:\n https://github.com/mitsuhiko/webgl-meincraft\n \n Copyright (c) 2011 by Armin Ronacher.\n \n Some rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n \n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n \n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n \n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n \n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n \n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n \n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n \n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n vec4 color;\n\n color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n'))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.Filter);r.default=n},{"../../core":65,path:8}],153:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./fxaa/FXAAFilter");Object.defineProperty(r,"FXAAFilter",{enumerable:!0,get:function(){return h(i).default}});var n=e("./noise/NoiseFilter");Object.defineProperty(r,"NoiseFilter",{enumerable:!0,get:function(){return h(n).default}});var a=e("./displacement/DisplacementFilter");Object.defineProperty(r,"DisplacementFilter",{enumerable:!0,get:function(){return h(a).default}});var o=e("./blur/BlurFilter");Object.defineProperty(r,"BlurFilter",{enumerable:!0,get:function(){return h(o).default}});var s=e("./blur/BlurXFilter");Object.defineProperty(r,"BlurXFilter",{enumerable:!0,get:function(){return h(s).default}});var u=e("./blur/BlurYFilter");Object.defineProperty(r,"BlurYFilter",{enumerable:!0,get:function(){return h(u).default}});var l=e("./colormatrix/ColorMatrixFilter");Object.defineProperty(r,"ColorMatrixFilter",{enumerable:!0,get:function(){return h(l).default}});var c=e("./alpha/AlphaFilter");function h(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"AlphaFilter",{enumerable:!0,get:function(){return h(c).default}})},{"./alpha/AlphaFilter":143,"./blur/BlurFilter":144,"./blur/BlurXFilter":145,"./blur/BlurYFilter":146,"./colormatrix/ColorMatrixFilter":150,"./displacement/DisplacementFilter":151,"./fxaa/FXAAFilter":152,"./noise/NoiseFilter":154}],154:[function(e,t,r){"use strict";r.__esModule=!0;var a=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var n=function(i){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:.5,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Math.random();!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n"));return r.noise=e,r.seed=t,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),a(n,[{key:"noise",get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e}},{key:"seed",get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e}}]),n}(i.Filter);r.default=n},{"../../core":65,path:8}],155:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.global=new n.Point,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return e.prototype.getLocalPosition=function(e,t,r){return e.worldTransform.applyInverse(r||this.global,t)},e.prototype.copyEvent=function(e){e.isPrimary&&(this.isPrimary=!0),this.button=e.button,this.buttons=Number.isInteger(e.buttons)?e.buttons:e.which,this.width=e.width,this.height=e.height,this.tiltX=e.tiltX,this.tiltY=e.tiltY,this.pointerType=e.pointerType,this.pressure=e.pressure,this.rotationAngle=e.rotationAngle,this.twist=e.twist||0,this.tangentialPressure=e.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},i(e,[{key:"pointerId",get:function(){return this.identifier}}]),e}();r.default=a},{"../core":65}],156:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stopped=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0},e.prototype.reset=function(){this.stopped=!1,this.currentTarget=null,this.target=null},e}();r.default=i},{}],157:[function(e,t,r){"use strict";r.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),s=l(e("./InteractionData")),u=l(e("./InteractionEvent")),d=l(e("./InteractionTrackingData")),i=l(e("eventemitter3")),n=l(e("./interactiveTarget"));function l(e){return e&&e.__esModule?e:{default:e}}o.utils.mixins.delayMixin(o.DisplayObject.prototype,n.default);var c={target:null,data:{global:null}},h=function(i){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this));return t=t||{},r.renderer=e,r.autoPreventDefault=void 0===t.autoPreventDefault||t.autoPreventDefault,r.interactionFrequency=t.interactionFrequency||10,r.mouse=new s.default,r.mouse.identifier=1,r.mouse.global.set(-999999),r.activeInteractionData={},r.activeInteractionData[1]=r.mouse,r.interactionDataPool=[],r.eventData=new u.default,r.interactionDOMElement=null,r.moveWhenInside=!1,r.eventsAdded=!1,r.mouseOverRenderer=!1,r.supportsTouchEvents="ontouchstart"in window,r.supportsPointerEvents=!!window.PointerEvent,r.onPointerUp=r.onPointerUp.bind(r),r.processPointerUp=r.processPointerUp.bind(r),r.onPointerCancel=r.onPointerCancel.bind(r),r.processPointerCancel=r.processPointerCancel.bind(r),r.onPointerDown=r.onPointerDown.bind(r),r.processPointerDown=r.processPointerDown.bind(r),r.onPointerMove=r.onPointerMove.bind(r),r.processPointerMove=r.processPointerMove.bind(r),r.onPointerOut=r.onPointerOut.bind(r),r.processPointerOverOut=r.processPointerOverOut.bind(r),r.onPointerOver=r.onPointerOver.bind(r),r.cursorStyles={default:"inherit",pointer:"pointer"},r.currentCursorMode=null,r.cursor=null,r._tempPoint=new o.Point,r.resolution=1,r.setTargetElement(r.renderer.view,r.renderer.resolution),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),n.prototype.hitTest=function(e,t){return c.target=null,c.data.global=e,t||(t=this.renderer._lastObjectRendered),this.processInteractive(c,t,null,!0),c.target},n.prototype.setTargetElement=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=e,this.resolution=t,this.addEvents()},n.prototype.addEvents=function(){this.interactionDOMElement&&(o.ticker.shared.add(this.update,this,o.UPDATE_PRIORITY.INTERACTION),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]="none"),this.supportsPointerEvents?(window.document.addEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointercancel",this.onPointerCancel,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(window.document.addEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,!0),window.addEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.eventsAdded=!0)},n.prototype.removeEvents=function(){this.interactionDOMElement&&(o.ticker.shared.remove(this.update,this),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]=""),this.supportsPointerEvents?(window.document.removeEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointercancel",this.onPointerCancel,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(window.document.removeEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,!0),window.removeEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},n.prototype.update=function(e){if(this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.interactionDOMElement))if(this.didMove)this.didMove=!1;else{for(var t in this.cursor=null,this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(t)){var r=this.activeInteractionData[t];if(r.originalEvent&&"touch"!==r.pointerType){var i=this.configureInteractionEventForDOMEvent(this.eventData,r.originalEvent,r);this.processInteractive(i,this.renderer._lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},n.prototype.setCursorMode=function(e){if(e=e||"default",this.currentCursorMode!==e){this.currentCursorMode=e;var t=this.cursorStyles[e];if(t)switch(void 0===t?"undefined":a(t)){case"string":this.interactionDOMElement.style.cursor=t;break;case"function":t(e);break;case"object":Object.assign(this.interactionDOMElement.style,t)}else"string"!=typeof e||Object.prototype.hasOwnProperty.call(this.cursorStyles,e)||(this.interactionDOMElement.style.cursor=e)}},n.prototype.dispatchEvent=function(e,t,r){r.stopped||(r.currentTarget=e,r.type=t,e.emit(t,r),e[t]&&e[t](r))},n.prototype.mapPositionToPoint=function(e,t,r){var i=void 0;i=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:0,height:0};var n=navigator.isCocoonJS?this.resolution:1/this.resolution;e.x=(t-i.left)*(this.interactionDOMElement.width/i.width)*n,e.y=(r-i.top)*(this.interactionDOMElement.height/i.height)*n},n.prototype.processInteractive=function(e,t,r,i,n){if(!t||!t.visible)return!1;var a=e.data.global,o=!1,s=n=t.interactive||n,u=!0;if(t.hitArea?(i&&(t.worldTransform.applyInverse(a,this._tempPoint),t.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?o=!0:u=i=!1),s=!1):t._mask&&i&&(t._mask.containsPoint(a)||(u=i=!1)),u&&t.interactiveChildren&&t.children)for(var l=t.children,c=l.length-1;0<=c;c--){var h=l[c],f=this.processInteractive(e,h,r,i,s);if(f){if(!h.parent)continue;s=!1,f&&(e.target&&(i=!1),o=!0)}}return n&&(i&&!e.target&&!t.hitArea&&t.containsPoint&&t.containsPoint(a)&&(o=!0),t.interactive&&(o&&!e.target&&(e.target=t),r&&r(e,t,!!o))),o},n.prototype.onPointerDown=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&e.preventDefault();for(var r=t.length,i=0;i<r;i++){var n=t[i],a=this.getInteractionDataForPointerId(n),o=this.configureInteractionEventForDOMEvent(this.eventData,n,a);if(o.data.originalEvent=e,this.processInteractive(o,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",o),"touch"===n.pointerType)this.emit("touchstart",o);else if("mouse"===n.pointerType||"pen"===n.pointerType){var s=2===n.button;this.emit(s?"rightdown":"mousedown",this.eventData)}}}},n.prototype.processPointerDown=function(e,t,r){var i=e.data,n=e.data.identifier;if(r)if(t.trackedPointers[n]||(t.trackedPointers[n]=new d.default(n)),this.dispatchEvent(t,"pointerdown",e),"touch"===i.pointerType)this.dispatchEvent(t,"touchstart",e);else if("mouse"===i.pointerType||"pen"===i.pointerType){var a=2===i.button;a?t.trackedPointers[n].rightDown=!0:t.trackedPointers[n].leftDown=!0,this.dispatchEvent(t,a?"rightdown":"mousedown",e)}},n.prototype.onPointerComplete=function(e,t,r){for(var i=this.normalizeToPointerData(e),n=i.length,a=e.target!==this.interactionDOMElement?"outside":"",o=0;o<n;o++){var s=i[o],u=this.getInteractionDataForPointerId(s),l=this.configureInteractionEventForDOMEvent(this.eventData,s,u);if(l.data.originalEvent=e,this.processInteractive(l,this.renderer._lastObjectRendered,r,t||!a),this.emit(t?"pointercancel":"pointerup"+a,l),"mouse"===s.pointerType||"pen"===s.pointerType){var c=2===s.button;this.emit(c?"rightup"+a:"mouseup"+a,l)}else"touch"===s.pointerType&&(this.emit(t?"touchcancel":"touchend"+a,l),this.releaseInteractionDataForPointerId(s.pointerId,u))}},n.prototype.onPointerCancel=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!0,this.processPointerCancel)},n.prototype.processPointerCancel=function(e,t){var r=e.data,i=e.data.identifier;void 0!==t.trackedPointers[i]&&(delete t.trackedPointers[i],this.dispatchEvent(t,"pointercancel",e),"touch"===r.pointerType&&this.dispatchEvent(t,"touchcancel",e))},n.prototype.onPointerUp=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!1,this.processPointerUp)},n.prototype.processPointerUp=function(e,t,r){var i=e.data,n=e.data.identifier,a=t.trackedPointers[n],o="touch"===i.pointerType,s="mouse"===i.pointerType||"pen"===i.pointerType,u=!1;if(s){var l=2===i.button,c=d.default.FLAGS,h=l?c.RIGHT_DOWN:c.LEFT_DOWN,f=void 0!==a&&a.flags&h;r?(this.dispatchEvent(t,l?"rightup":"mouseup",e),f&&(this.dispatchEvent(t,l?"rightclick":"click",e),u=!0)):f&&this.dispatchEvent(t,l?"rightupoutside":"mouseupoutside",e),a&&(l?a.rightDown=!1:a.leftDown=!1)}r?(this.dispatchEvent(t,"pointerup",e),o&&this.dispatchEvent(t,"touchend",e),a&&(s&&!u||this.dispatchEvent(t,"pointertap",e),o&&(this.dispatchEvent(t,"tap",e),a.over=!1))):a&&(this.dispatchEvent(t,"pointerupoutside",e),o&&this.dispatchEvent(t,"touchendoutside",e)),a&&a.none&&delete t.trackedPointers[n]},n.prototype.onPointerMove=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);"mouse"!==t[0].pointerType&&"pen"!==t[0].pointerType||(this.didMove=!0,this.cursor=null);for(var r=t.length,i=0;i<r;i++){var n=t[i],a=this.getInteractionDataForPointerId(n),o=this.configureInteractionEventForDOMEvent(this.eventData,n,a);o.data.originalEvent=e;var s="touch"!==n.pointerType||this.moveWhenInside;this.processInteractive(o,this.renderer._lastObjectRendered,this.processPointerMove,s),this.emit("pointermove",o),"touch"===n.pointerType&&this.emit("touchmove",o),"mouse"!==n.pointerType&&"pen"!==n.pointerType||this.emit("mousemove",o)}"mouse"===t[0].pointerType&&this.setCursorMode(this.cursor)}},n.prototype.processPointerMove=function(e,t,r){var i=e.data,n="touch"===i.pointerType,a="mouse"===i.pointerType||"pen"===i.pointerType;a&&this.processPointerOverOut(e,t,r),this.moveWhenInside&&!r||(this.dispatchEvent(t,"pointermove",e),n&&this.dispatchEvent(t,"touchmove",e),a&&this.dispatchEvent(t,"mousemove",e))},n.prototype.onPointerOut=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e)[0];"mouse"===t.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var r=this.getInteractionDataForPointerId(t),i=this.configureInteractionEventForDOMEvent(this.eventData,t,r);i.data.originalEvent=t,this.processInteractive(i,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",i),"mouse"===t.pointerType||"pen"===t.pointerType?this.emit("mouseout",i):this.releaseInteractionDataForPointerId(r.identifier)}},n.prototype.processPointerOverOut=function(e,t,r){var i=e.data,n=e.data.identifier,a="mouse"===i.pointerType||"pen"===i.pointerType,o=t.trackedPointers[n];r&&!o&&(o=t.trackedPointers[n]=new d.default(n)),void 0!==o&&(r&&this.mouseOverRenderer?(o.over||(o.over=!0,this.dispatchEvent(t,"pointerover",e),a&&this.dispatchEvent(t,"mouseover",e)),a&&null===this.cursor&&(this.cursor=t.cursor)):o.over&&(o.over=!1,this.dispatchEvent(t,"pointerout",this.eventData),a&&this.dispatchEvent(t,"mouseout",e),o.none&&delete t.trackedPointers[n]))},n.prototype.onPointerOver=function(e){var t=this.normalizeToPointerData(e)[0],r=this.getInteractionDataForPointerId(t),i=this.configureInteractionEventForDOMEvent(this.eventData,t,r);"mouse"===(i.data.originalEvent=t).pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",i),"mouse"!==t.pointerType&&"pen"!==t.pointerType||this.emit("mouseover",i)},n.prototype.getInteractionDataForPointerId=function(e){var t=e.pointerId,r=void 0;return 1===t||"mouse"===e.pointerType?r=this.mouse:this.activeInteractionData[t]?r=this.activeInteractionData[t]:((r=this.interactionDataPool.pop()||new s.default).identifier=t,this.activeInteractionData[t]=r),r.copyEvent(e),r},n.prototype.releaseInteractionDataForPointerId=function(e){var t=this.activeInteractionData[e];t&&(delete this.activeInteractionData[e],t.reset(),this.interactionDataPool.push(t))},n.prototype.configureInteractionEventForDOMEvent=function(e,t,r){return e.data=r,this.mapPositionToPoint(r.global,t.clientX,t.clientY),navigator.isCocoonJS&&"touch"===t.pointerType&&(r.global.x=r.global.x/this.resolution,r.global.y=r.global.y/this.resolution),"touch"===t.pointerType&&(t.globalX=r.global.x,t.globalY=r.global.y),r.originalEvent=t,e.reset(),e},n.prototype.normalizeToPointerData=function(e){var t=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(var r=0,i=e.changedTouches.length;r<i;r++){var n=e.changedTouches[r];void 0===n.button&&(n.button=e.touches.length?1:0),void 0===n.buttons&&(n.buttons=e.touches.length?1:0),void 0===n.isPrimary&&(n.isPrimary=1===e.touches.length&&"touchstart"===e.type),void 0===n.width&&(n.width=n.radiusX||1),void 0===n.height&&(n.height=n.radiusY||1),void 0===n.tiltX&&(n.tiltX=0),void 0===n.tiltY&&(n.tiltY=0),void 0===n.pointerType&&(n.pointerType="touch"),void 0===n.pointerId&&(n.pointerId=n.identifier||0),void 0===n.pressure&&(n.pressure=n.force||.5),void 0===n.twist&&(n.twist=0),void 0===n.tangentialPressure&&(n.tangentialPressure=0),void 0===n.layerX&&(n.layerX=n.offsetX=n.clientX),void 0===n.layerY&&(n.layerY=n.offsetY=n.clientY),n.isNormalized=!0,t.push(n)}else!(e instanceof MouseEvent)||this.supportsPointerEvents&&e instanceof window.PointerEvent||(void 0===e.isPrimary&&(e.isPrimary=!0),void 0===e.width&&(e.width=1),void 0===e.height&&(e.height=1),void 0===e.tiltX&&(e.tiltX=0),void 0===e.tiltY&&(e.tiltY=0),void 0===e.pointerType&&(e.pointerType="mouse"),void 0===e.pointerId&&(e.pointerId=1),void 0===e.pressure&&(e.pressure=.5),void 0===e.twist&&(e.twist=0),void 0===e.tangentialPressure&&(e.tangentialPressure=0),e.isNormalized=!0),t.push(e);return t},n.prototype.destroy=function(){this.removeEvents(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this._tempPoint=null},n}(i.default);r.default=h,o.WebGLRenderer.registerPlugin("interaction",h),o.CanvasRenderer.registerPlugin("interaction",h)},{"../core":65,"./InteractionData":155,"./InteractionEvent":156,"./InteractionTrackingData":158,"./interactiveTarget":160,eventemitter3:3}],158:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(e,t){this._flags=t?this._flags|e:this._flags&~e},i(t,[{key:"pointerId",get:function(){return this._pointerId}},{key:"flags",get:function(){return this._flags},set:function(e){this._flags=e}},{key:"none",get:function(){return this._flags===this.constructor.FLAGS.NONE}},{key:"over",get:function(){return 0!=(this._flags&this.constructor.FLAGS.OVER)},set:function(e){this._doSet(this.constructor.FLAGS.OVER,e)}},{key:"rightDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.RIGHT_DOWN,e)}},{key:"leftDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.LEFT_DOWN,e)}}]),t}();(r.default=n).FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4})},{}],159:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./InteractionData");Object.defineProperty(r,"InteractionData",{enumerable:!0,get:function(){return u(i).default}});var n=e("./InteractionManager");Object.defineProperty(r,"InteractionManager",{enumerable:!0,get:function(){return u(n).default}});var a=e("./interactiveTarget");Object.defineProperty(r,"interactiveTarget",{enumerable:!0,get:function(){return u(a).default}});var o=e("./InteractionTrackingData");Object.defineProperty(r,"InteractionTrackingData",{enumerable:!0,get:function(){return u(o).default}});var s=e("./InteractionEvent");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"InteractionEvent",{enumerable:!0,get:function(){return u(s).default}})},{"./InteractionData":155,"./InteractionEvent":156,"./InteractionManager":157,"./InteractionTrackingData":158,"./interactiveTarget":160}],160:[function(e,t,r){"use strict";r.__esModule=!0,r.default={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(e){e?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0}},{}],161:[function(e,t,r){"use strict";r.__esModule=!0,r.parse=m,r.default=function(){return function(t,r){if(t.data&&t.type===p.Resource.TYPE.XML)if(0!==t.data.getElementsByTagName("page").length&&0!==t.data.getElementsByTagName("info").length&&null!==t.data.getElementsByTagName("info")[0].getAttribute("face")){var e=t.isDataUrl?"":d.dirname(t.url);t.isDataUrl&&("."===e&&(e=""),this.baseUrl&&e&&"/"===this.baseUrl.charAt(this.baseUrl.length-1)&&(e+="/")),(e=e.replace(this.baseUrl,""))&&"/"!==e.charAt(e.length-1)&&(e+="/");for(var i=t.data.getElementsByTagName("page"),n={},a=function(e){n[e.metadata.pageFile]=e.texture,Object.keys(n).length===i.length&&(m(t,n),r())},o=0;o<i.length;++o){var s=i[o].getAttribute("file"),u=e+s,l=!1;for(var c in this.resources){var h=this.resources[c];if(h.url===u){h.metadata.pageFile=s,h.texture?a(h):h.onAfterMiddleware.add(a),l=!0;break}}if(!l){var f={crossOrigin:t.crossOrigin,loadType:p.Resource.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:s},t.metadata.imageMetadata),parentResource:t};this.add(u,f,a)}}}else r();else r()}};var d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("path")),p=e("resource-loader"),i=e("../extras");function m(e,t){e.bitmapFont=i.BitmapText.registerFont(e.data,t)}},{"../extras":141,path:8,"resource-loader":36}],162:[function(e,t,r){"use strict";r.__esModule=!0,r.shared=r.Resource=r.textureParser=r.getResourcePath=r.spritesheetParser=r.parseBitmapFontData=r.bitmapFontParser=r.Loader=void 0;var i=e("./bitmapFontParser");Object.defineProperty(r,"bitmapFontParser",{enumerable:!0,get:function(){return l(i).default}}),Object.defineProperty(r,"parseBitmapFontData",{enumerable:!0,get:function(){return i.parse}});var n=e("./spritesheetParser");Object.defineProperty(r,"spritesheetParser",{enumerable:!0,get:function(){return l(n).default}}),Object.defineProperty(r,"getResourcePath",{enumerable:!0,get:function(){return n.getResourcePath}});var a=e("./textureParser");Object.defineProperty(r,"textureParser",{enumerable:!0,get:function(){return l(a).default}});var o=e("resource-loader");Object.defineProperty(r,"Resource",{enumerable:!0,get:function(){return o.Resource}});var s=l(e("../core/Application")),u=l(e("./loader"));function l(e){return e&&e.__esModule?e:{default:e}}r.Loader=u.default;var c=new u.default;c.destroy=function(){},r.shared=c;var h=s.default.prototype;h._loader=null,Object.defineProperty(h,"loader",{get:function(){if(!this._loader){var e=this._options.sharedLoader;this._loader=e?c:new u.default}return this._loader}}),h._parentDestroy=h.destroy,h.destroy=function(e,t){this._loader&&(this._loader.destroy(),this._loader=null),this._parentDestroy(e,t)}},{"../core/Application":43,"./bitmapFontParser":161,"./loader":163,"./spritesheetParser":164,"./textureParser":165,"resource-loader":36}],163:[function(e,t,r){"use strict";r.__esModule=!0;var i=l(e("resource-loader")),n=e("resource-loader/lib/middlewares/parsing/blob"),o=l(e("eventemitter3")),a=l(e("./textureParser")),s=l(e("./spritesheetParser")),u=l(e("./bitmapFontParser"));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));o.default.call(i);for(var r=0;r<a._pixiMiddleware.length;++r)i.use(a._pixiMiddleware[r]());return i.onStart.add(function(e){return i.emit("start",e)}),i.onProgress.add(function(e,t){return i.emit("progress",e,t)}),i.onError.add(function(e,t,r){return i.emit("error",e,t,r)}),i.onLoad.add(function(e,t){return i.emit("load",e,t)}),i.onComplete.add(function(e,t){return i.emit("complete",e,t)}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.addPixiMiddleware=function(e){a._pixiMiddleware.push(e)},a.prototype.destroy=function(){this.removeAllListeners(),this.reset()},a}(i.default);for(var h in r.default=c,o.default.prototype)c.prototype[h]=o.default.prototype[h];c._pixiMiddleware=[n.blobMiddlewareFactory,a.default,s.default,u.default];var f=i.default.Resource;f.setExtensionXhrType("fnt",f.XHR_RESPONSE_TYPE.DOCUMENT)},{"./bitmapFontParser":161,"./spritesheetParser":164,"./textureParser":165,eventemitter3:3,"resource-loader":36,"resource-loader/lib/middlewares/parsing/blob":37}],164:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){return function(r,i){var e=r.name+"_image";if(r.data&&r.type===a.Resource.TYPE.JSON&&r.data.frames&&!this.resources[e]){var t={crossOrigin:r.crossOrigin,metadata:r.metadata.imageMetadata,parentResource:r},n=u(r,this.baseUrl);this.add(e,n,t,function(e){if(e.error)i(e.error);else{var t=new s.Spritesheet(e.texture.baseTexture,r.data,r.url);t.parse(function(){r.spritesheet=t,r.textures=t.textures,i()})}})}else i()}},r.getResourcePath=u;var i,a=e("resource-loader"),n=e("url"),o=(i=n)&&i.__esModule?i:{default:i},s=e("../core");function u(e,t){return e.isDataUrl?e.data.meta.image:o.default.resolve(e.url.replace(t,""),e.data.meta.image)}},{"../core":65,"resource-loader":36,url:38}],165:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){return function(e,t){e.data&&e.type===n.Resource.TYPE.IMAGE&&(e.texture=o.default.fromLoader(e.data,e.url,e.name)),t()}};var i,n=e("resource-loader"),a=e("../core/textures/Texture"),o=(i=a)&&i.__esModule?i:{default:i}},{"../core/textures/Texture":115,"resource-loader":36}],166:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),a=e("../core/textures/Texture"),u=(i=a)&&i.__esModule?i:{default:i};var h=new s.Point,f=new s.Polygon,o=function(o){function c(e,t,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this));return a._texture=e||u.default.EMPTY,a.uvs=r||new Float32Array([0,0,1,0,1,1,0,1]),a.vertices=t||new Float32Array([0,0,100,0,100,100,0,100]),a.indices=i||new Uint16Array([0,1,3,2]),a.dirty=0,a.indexDirty=0,a.vertexDirty=0,a.autoUpdate=!0,a.blendMode=s.BLEND_MODES.NORMAL,a.canvasPadding=s.settings.MESH_CANVAS_PADDING,a.drawMode=n||c.DRAW_MODES.TRIANGLE_MESH,a.shader=null,a.tintRgb=new Float32Array([1,1,1]),a._glDatas={},a._uvTransform=new s.TextureMatrix(a._texture),a.uploadUvTransform=!1,a.pluginName="mesh",a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,o),c.prototype._renderWebGL=function(e){this.refresh(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},c.prototype._renderCanvas=function(e){this.refresh(),e.plugins[this.pluginName].render(this)},c.prototype._onTextureUpdate=function(){this._uvTransform.texture=this._texture,this.refresh()},c.prototype.multiplyUvs=function(){this.uploadUvTransform||this._uvTransform.multiplyUvs(this.uvs)},c.prototype.refresh=function(e){this.autoUpdate&&this.vertexDirty++,this._uvTransform.update(e)&&this._refresh()},c.prototype._refresh=function(){},c.prototype._calculateBounds=function(){this._bounds.addVertices(this.transform,this.vertices,0,this.vertices.length)},c.prototype.containsPoint=function(e){if(!this.getBounds().contains(e.x,e.y))return!1;this.worldTransform.applyInverse(e,h);for(var t=this.vertices,r=f.points,i=this.indices,n=this.indices.length,a=this.drawMode===c.DRAW_MODES.TRIANGLES?3:1,o=0;o+2<n;o+=a){var s=2*i[o],u=2*i[o+1],l=2*i[o+2];if(r[0]=t[s],r[1]=t[1+s],r[2]=t[u],r[3]=t[1+u],r[4]=t[l],r[5]=t[1+l],f.contains(h.x,h.y))return!0}return!1},c.prototype.destroy=function(e){for(var t in this._glDatas){var r=this._glDatas[t];r.destroy?r.destroy():(r.vertexBuffer&&(r.vertexBuffer.destroy(),r.vertexBuffer=null),r.indexBuffer&&(r.indexBuffer.destroy(),r.indexBuffer=null),r.uvBuffer&&(r.uvBuffer.destroy(),r.uvBuffer=null),r.vao&&(r.vao.destroy(),r.vao=null))}this._glDatas=null,o.prototype.destroy.call(this,e)},n(c,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e)&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this))}},{key:"tint",get:function(){return s.utils.rgb2hex(this.tintRgb)},set:function(e){this.tintRgb=s.utils.hex2rgb(e,this.tintRgb)}}]),c}(s.Container);(r.default=o).DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},{"../core":65,"../core/textures/Texture":115}],167:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=a(e("./Plane")),w=a(e("../core/sprites/canvas/CanvasTinter"));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(o){function s(e,t,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this,e,4,4));return a._origWidth=e.orig.width,a._origHeight=e.orig.height,a._width=a._origWidth,a._height=a._origHeight,a._leftWidth=void 0!==t?t:10,a._rightWidth=void 0!==i?i:10,a._topHeight=void 0!==r?r:10,a._bottomHeight=void 0!==n?n:10,a._cachedTint=16777215,a._tintedTexture=null,a._canvasUvs=null,a.refresh(!0),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,o),s.prototype.updateHorizontalVertices=function(){var e=this.vertices,t=this._topHeight+this._bottomHeight,r=this._height>t?1:this._height/t;e[9]=e[11]=e[13]=e[15]=this._topHeight*r,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*r,e[25]=e[27]=e[29]=e[31]=this._height},s.prototype.updateVerticalVertices=function(){var e=this.vertices,t=this._leftWidth+this._rightWidth,r=this._width>t?1:this._width/t;e[2]=e[10]=e[18]=e[26]=this._leftWidth*r,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*r,e[6]=e[14]=e[22]=e[30]=this._width},s.prototype._renderCanvas=function(e){var t=e.context,r=this.worldTransform,i=e.resolution,n=16777215!==this.tint,a=this._texture;n&&this._cachedTint!==this.tint&&(this._cachedTint=this.tint,this._tintedTexture=w.default.getTintedTexture(this,this.tint));var o=n?this._tintedTexture:a.baseTexture.source;this._canvasUvs||(this._canvasUvs=[0,0,0,0,0,0,0,0]);var s=this.vertices,u=this._canvasUvs,l=n?0:a.frame.x,c=n?0:a.frame.y,h=l+a.frame.width,f=c+a.frame.height;u[0]=l,u[1]=l+this._leftWidth,u[2]=h-this._rightWidth,u[3]=h,u[4]=c,u[5]=c+this._topHeight,u[6]=f-this._bottomHeight,u[7]=f;for(var d=0;d<8;d++)u[d]*=a.baseTexture.resolution;t.globalAlpha=this.worldAlpha,e.setBlendMode(this.blendMode),e.roundPixels?t.setTransform(r.a*i,r.b*i,r.c*i,r.d*i,r.tx*i|0,r.ty*i|0):t.setTransform(r.a*i,r.b*i,r.c*i,r.d*i,r.tx*i,r.ty*i);for(var p=0;p<3;p++)for(var m=0;m<3;m++){var g=2*m+8*p,v=Math.max(1,u[m+1]-u[m]),b=Math.max(1,u[p+5]-u[p+4]),y=Math.max(1,s[10+g]-s[g]),_=Math.max(1,s[11+g]-s[1+g]);t.drawImage(o,u[m],u[p+4],v,b,s[g],s[1+g],y,_)}},s.prototype._refresh=function(){o.prototype._refresh.call(this);var e=this.uvs,t=this._texture;this._origWidth=t.orig.width,this._origHeight=t.orig.height;var r=1/this._origWidth,i=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=r*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-r*this._rightWidth,e[9]=e[11]=e[13]=e[15]=i*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-i*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.dirty++,this.multiplyUvs()},i(s,[{key:"width",get:function(){return this._width},set:function(e){this._width=e,this._refresh()}},{key:"height",get:function(){return this._height},set:function(e){this._height=e,this._refresh()}},{key:"leftWidth",get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()}},{key:"rightWidth",get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()}},{key:"topHeight",get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()}},{key:"bottomHeight",get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()}}]),s}(n.default);r.default=o},{"../core/sprites/canvas/CanvasTinter":104,"./Plane":168}],168:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("./Mesh"),o=(i=n)&&i.__esModule?i:{default:i};var a=function(n){function a(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e));return i._ready=!0,i.verticesX=t||10,i.verticesY=r||10,i.drawMode=o.default.DRAW_MODES.TRIANGLES,i.refresh(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype._refresh=function(){for(var e=this._texture,t=this.verticesX*this.verticesY,r=[],i=[],n=[],a=this.verticesX-1,o=this.verticesY-1,s=e.width/a,u=e.height/o,l=0;l<t;l++){var c=l%this.verticesX,h=l/this.verticesX|0;r.push(c*s,h*u),i.push(c/a,h/o)}for(var f=a*o,d=0;d<f;d++){var p=d%a,m=d/a|0,g=m*this.verticesX+p,v=m*this.verticesX+p+1,b=(1+m)*this.verticesX+p,y=(1+m)*this.verticesX+p+1;n.push(g,v,b),n.push(v,y,b)}this.vertices=new Float32Array(r),this.uvs=new Float32Array(i),this.colors=new Float32Array([]),this.indices=new Uint16Array(n),this.dirty++,this.indexDirty++,this.multiplyUvs()},a.prototype._onTextureUpdate=function(){o.default.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},a}(o.default);r.default=a},{"./Mesh":166}],169:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("./Mesh");var a=function(i){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e));return r.points=t,r.vertices=new Float32Array(4*t.length),r.uvs=new Float32Array(4*t.length),r.colors=new Float32Array(2*t.length),r.indices=new Uint16Array(2*t.length),r.autoUpdate=!0,r.refresh(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),n.prototype._refresh=function(){var e=this.points;if(!(e.length<1)&&this._texture._uvs){this.vertices.length/4!==e.length&&(this.vertices=new Float32Array(4*e.length),this.uvs=new Float32Array(4*e.length),this.colors=new Float32Array(2*e.length),this.indices=new Uint16Array(2*e.length));var t=this.uvs,r=this.indices,i=this.colors;t[0]=0,t[1]=0,t[2]=0,t[3]=1,i[0]=1,i[1]=1,r[0]=0,r[1]=1;for(var n=e.length,a=1;a<n;a++){var o=4*a,s=a/(n-1);t[o]=s,t[o+1]=0,t[o+2]=s,t[o+3]=1,i[o=2*a]=1,i[o+1]=1,r[o=2*a]=o,r[o+1]=o+1}this.dirty++,this.indexDirty++,this.multiplyUvs(),this.refreshVertices()}},n.prototype.refreshVertices=function(){var e=this.points;if(!(e.length<1))for(var t=e[0],r=void 0,i=0,n=0,a=this.vertices,o=e.length,s=0;s<o;s++){var u=e[s],l=4*s;n=-((r=s<e.length-1?e[s+1]:u).x-t.x),i=r.y-t.y;var c=10*(1-s/(o-1));1<c&&(c=1);var h=Math.sqrt(i*i+n*n),f=this._texture.height/2;i/=h,n/=h,i*=f,n*=f,a[l]=u.x+i,a[1+l]=u.y+n,a[2+l]=u.x-i,a[3+l]=u.y-n,t=u}},n.prototype.updateTransform=function(){this.autoUpdate&&this.refreshVertices(),this.containerUpdateTransform()},n}(((i=n)&&i.__esModule?i:{default:i}).default);r.default=a},{"./Mesh":166}],170:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),a=e("../Mesh"),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(e){var t=this.renderer,r=t.context,i=e.worldTransform,n=t.resolution;t.roundPixels?r.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n|0,i.ty*n|0):r.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n,i.ty*n),t.context.globalAlpha=e.worldAlpha,t.setBlendMode(e.blendMode),e.drawMode===o.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(e):this._renderTriangles(e)},t.prototype._renderTriangleMesh=function(e){for(var t=e.vertices.length/2,r=0;r<t-2;r++){var i=2*r;this._renderDrawTriangle(e,i,2+i,4+i)}},t.prototype._renderTriangles=function(e){for(var t=e.indices,r=t.length,i=0;i<r;i+=3){var n=2*t[i],a=2*t[i+1],o=2*t[i+2];this._renderDrawTriangle(e,n,a,o)}},t.prototype._renderDrawTriangle=function(e,t,r,i){var n=this.renderer.context,a=e.uvs,o=e.vertices,s=e._texture;if(s.valid){var u=s.baseTexture,l=u.source,c=u.width,h=u.height,f=void 0,d=void 0,p=void 0,m=void 0,g=void 0,v=void 0;if(e.uploadUvTransform){var b=e._uvTransform.mapCoord;f=(a[t]*b.a+a[t+1]*b.c+b.tx)*u.width,d=(a[r]*b.a+a[r+1]*b.c+b.tx)*u.width,p=(a[i]*b.a+a[i+1]*b.c+b.tx)*u.width,m=(a[t]*b.b+a[t+1]*b.d+b.ty)*u.height,g=(a[r]*b.b+a[r+1]*b.d+b.ty)*u.height,v=(a[i]*b.b+a[i+1]*b.d+b.ty)*u.height}else f=a[t]*u.width,d=a[r]*u.width,p=a[i]*u.width,m=a[t+1]*u.height,g=a[r+1]*u.height,v=a[i+1]*u.height;var y=o[t],_=o[r],w=o[i],x=o[t+1],k=o[r+1],T=o[i+1],S=e.canvasPadding/this.renderer.resolution;if(0<S){var E=S/Math.abs(e.worldTransform.a),M=S/Math.abs(e.worldTransform.d),P=(y+_+w)/3,C=(x+k+T)/3,A=y-P,O=x-C,I=Math.sqrt(A*A+O*O);y=P+A/I*(I+E),x=C+O/I*(I+M),O=k-C,_=P+(A=_-P)/(I=Math.sqrt(A*A+O*O))*(I+E),k=C+O/I*(I+M),O=T-C,w=P+(A=w-P)/(I=Math.sqrt(A*A+O*O))*(I+E),T=C+O/I*(I+M)}n.save(),n.beginPath(),n.moveTo(y,x),n.lineTo(_,k),n.lineTo(w,T),n.closePath(),n.clip();var R=f*g+m*p+d*v-g*p-m*d-f*v,D=y*g+m*w+_*v-g*w-m*_-y*v,j=f*_+y*p+d*w-_*p-y*d-f*w,L=f*g*w+m*_*p+y*d*v-y*g*p-m*d*w-f*_*v,z=x*g+m*T+k*v-g*T-m*k-x*v,F=f*k+x*p+d*T-k*p-x*d-f*T,B=f*g*T+m*k*p+x*d*v-x*g*p-m*d*T-f*k*v;n.transform(D/R,z/R,j/R,F/R,L/R,B/R),n.drawImage(l,0,0,c*u.resolution,h*u.resolution,0,0,c,h),n.restore(),this.renderer.invalidateBlendMode()}},t.prototype.renderMeshFlat=function(e){var t=this.renderer.context,r=e.vertices,i=r.length/2;t.beginPath();for(var n=1;n<i-2;++n){var a=2*n,o=r[a],s=r[1+a],u=r[2+a],l=r[3+a],c=r[4+a],h=r[5+a];t.moveTo(o,s),t.lineTo(u,l),t.lineTo(c,h)}t.fillStyle="#FF0000",t.fill(),t.closePath()},t.prototype.destroy=function(){this.renderer=null},t}();r.default=s,n.CanvasRenderer.registerPlugin("mesh",s)},{"../../core":65,"../Mesh":166}],171:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./Mesh");Object.defineProperty(r,"Mesh",{enumerable:!0,get:function(){return l(i).default}});var n=e("./webgl/MeshRenderer");Object.defineProperty(r,"MeshRenderer",{enumerable:!0,get:function(){return l(n).default}});var a=e("./canvas/CanvasMeshRenderer");Object.defineProperty(r,"CanvasMeshRenderer",{enumerable:!0,get:function(){return l(a).default}});var o=e("./Plane");Object.defineProperty(r,"Plane",{enumerable:!0,get:function(){return l(o).default}});var s=e("./NineSlicePlane");Object.defineProperty(r,"NineSlicePlane",{enumerable:!0,get:function(){return l(s).default}});var u=e("./Rope");function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"Rope",{enumerable:!0,get:function(){return l(u).default}})},{"./Mesh":166,"./NineSlicePlane":167,"./Plane":168,"./Rope":169,"./canvas/CanvasMeshRenderer":170,"./webgl/MeshRenderer":172}],172:[function(e,t,r){"use strict";r.__esModule=!0;var o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),s=i(e("pixi-gl-core")),u=i(e("../Mesh"));e("path");function i(e){return e&&e.__esModule?e:{default:e}}var l=o.Matrix.IDENTITY,n=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.shader=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new o.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n")},i.prototype.render=function(e){var t=this.renderer,r=t.gl,i=e._texture;if(i.valid){var n=e._glDatas[t.CONTEXT_UID];n||(t.bindVao(null),(n={shader:this.shader,vertexBuffer:s.default.GLBuffer.createVertexBuffer(r,e.vertices,r.STREAM_DRAW),uvBuffer:s.default.GLBuffer.createVertexBuffer(r,e.uvs,r.STREAM_DRAW),indexBuffer:s.default.GLBuffer.createIndexBuffer(r,e.indices,r.STATIC_DRAW),vao:null,dirty:e.dirty,indexDirty:e.indexDirty,vertexDirty:e.vertexDirty}).vao=new s.default.VertexArrayObject(r).addIndex(n.indexBuffer).addAttribute(n.vertexBuffer,n.shader.attributes.aVertexPosition,r.FLOAT,!1,8,0).addAttribute(n.uvBuffer,n.shader.attributes.aTextureCoord,r.FLOAT,!1,8,0),e._glDatas[t.CONTEXT_UID]=n),t.bindVao(n.vao),e.dirty!==n.dirty&&(n.dirty=e.dirty,n.uvBuffer.upload(e.uvs)),e.indexDirty!==n.indexDirty&&(n.indexDirty=e.indexDirty,n.indexBuffer.upload(e.indices)),e.vertexDirty!==n.vertexDirty&&(n.vertexDirty=e.vertexDirty,n.vertexBuffer.upload(e.vertices)),t.bindShader(n.shader),n.shader.uniforms.uSampler=t.bindTexture(i),t.state.setBlendMode(o.utils.correctBlendMode(e.blendMode,i.baseTexture.premultipliedAlpha)),n.shader.uniforms.uTransform&&(e.uploadUvTransform?n.shader.uniforms.uTransform=e._uvTransform.mapCoord.toArray(!0):n.shader.uniforms.uTransform=l.toArray(!0)),n.shader.uniforms.translationMatrix=e.worldTransform.toArray(!0),n.shader.uniforms.uColor=o.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,n.shader.uniforms.uColor,i.baseTexture.premultipliedAlpha);var a=e.drawMode===u.default.DRAW_MODES.TRIANGLE_MESH?r.TRIANGLE_STRIP:r.TRIANGLES;n.vao.draw(a,e.indices.length,0)}},i}(o.ObjectRenderer);r.default=n,o.WebGLRenderer.registerPlugin("mesh",n)},{"../../core":65,"../Mesh":166,path:8,"pixi-gl-core":15}],173:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),n=e("../core/utils");var a=function(a){function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1500,t=arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:16384,i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this));return 16384<r&&(r=16384),e<r&&(r=e),n._properties=[!1,!0,!1,!1,!1],n._maxSize=e,n._batchSize=r,n._glBuffers={},n._bufferUpdateIDs=[],n._updateID=0,n.interactiveChildren=!1,n.blendMode=s.BLEND_MODES.NORMAL,n.autoResize=i,n.roundPixels=!0,n.baseTexture=null,n.setProperties(t),n._tint=0,n.tintRgb=new Float32Array(4),n.tint=16777215,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,a),o.prototype.setProperties=function(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])},o.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},o.prototype.renderWebGL=function(e){var t=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.hasLoaded||this.baseTexture.once("update",function(){return t.onChildrenChange(0)})),e.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},o.prototype.onChildrenChange=function(e){for(var t=Math.floor(e/this._batchSize);this._bufferUpdateIDs.length<t;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[t]=++this._updateID},o.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var t=e.context,r=this.worldTransform,i=!0,n=0,a=0,o=0,s=0;e.setBlendMode(this.blendMode),t.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var u=0;u<this.children.length;++u){var l=this.children[u];if(l.visible){var c=l._texture.frame;if(t.globalAlpha=this.worldAlpha*l.alpha,l.rotation%(2*Math.PI)==0)i&&(t.setTransform(r.a,r.b,r.c,r.d,r.tx*e.resolution,r.ty*e.resolution),i=!1),n=l.anchor.x*(-c.width*l.scale.x)+l.position.x+.5,a=l.anchor.y*(-c.height*l.scale.y)+l.position.y+.5,o=c.width*l.scale.x,s=c.height*l.scale.y;else{i||(i=!0),l.displayObjectUpdateTransform();var h=l.worldTransform;e.roundPixels?t.setTransform(h.a,h.b,h.c,h.d,h.tx*e.resolution|0,h.ty*e.resolution|0):t.setTransform(h.a,h.b,h.c,h.d,h.tx*e.resolution,h.ty*e.resolution),n=l.anchor.x*-c.width+.5,a=l.anchor.y*-c.height+.5,o=c.width,s=c.height}var f=l._texture.baseTexture.resolution;t.drawImage(l._texture.baseTexture.source,c.x*f,c.y*f,c.width*f,c.height*f,n*e.resolution,a*e.resolution,o*e.resolution,s*e.resolution)}}}},o.prototype.destroy=function(e){if(a.prototype.destroy.call(this,e),this._buffers)for(var t=0;t<this._buffers.length;++t)this._buffers[t].destroy();this._properties=null,this._buffers=null,this._bufferUpdateIDs=null},i(o,[{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,(0,n.hex2rgb)(e,this.tintRgb)}}]),o}(s.Container);r.default=a},{"../core":65,"../core/utils":125}],174:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./ParticleContainer");Object.defineProperty(r,"ParticleContainer",{enumerable:!0,get:function(){return a(i).default}});var n=e("./webgl/ParticleRenderer");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"ParticleRenderer",{enumerable:!0,get:function(){return a(n).default}})},{"./ParticleContainer":173,"./webgl/ParticleRenderer":176}],175:[function(e,t,r){"use strict";r.__esModule=!0;var d=i(e("pixi-gl-core")),p=i(e("../../core/utils/createIndicesForQuads"));function i(e){return e&&e.__esModule?e:{default:e}}var n=function(){function o(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.gl=e,this.size=i,this.dynamicProperties=[],this.staticProperties=[];for(var n=0;n<t.length;++n){var a=t[n];a={attribute:a.attribute,size:a.size,uploadFunction:a.uploadFunction,unsignedByte:a.unsignedByte,offset:a.offset},r[n]?this.dynamicProperties.push(a):this.staticProperties.push(a)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return o.prototype.initBuffers=function(){var e=this.gl,t=0;this.indices=(0,p.default)(this.size),this.indexBuffer=d.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW);for(var r=this.dynamicStride=0;r<this.dynamicProperties.length;++r){var i=this.dynamicProperties[r];i.offset=t,t+=i.size,this.dynamicStride+=i.size}var n=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(n),this.dynamicDataUint32=new Uint32Array(n),this.dynamicBuffer=d.default.GLBuffer.createVertexBuffer(e,n,e.STREAM_DRAW);for(var a=0,o=this.staticStride=0;o<this.staticProperties.length;++o){var s=this.staticProperties[o];s.offset=a,a+=s.size,this.staticStride+=s.size}var u=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(u),this.staticDataUint32=new Uint32Array(u),this.staticBuffer=d.default.GLBuffer.createVertexBuffer(e,u,e.STATIC_DRAW),this.vao=new d.default.VertexArrayObject(e).addIndex(this.indexBuffer);for(var l=0;l<this.dynamicProperties.length;++l){var c=this.dynamicProperties[l];c.unsignedByte?this.vao.addAttribute(this.dynamicBuffer,c.attribute,e.UNSIGNED_BYTE,!0,4*this.dynamicStride,4*c.offset):this.vao.addAttribute(this.dynamicBuffer,c.attribute,e.FLOAT,!1,4*this.dynamicStride,4*c.offset)}for(var h=0;h<this.staticProperties.length;++h){var f=this.staticProperties[h];f.unsignedByte?this.vao.addAttribute(this.staticBuffer,f.attribute,e.UNSIGNED_BYTE,!0,4*this.staticStride,4*f.offset):this.vao.addAttribute(this.staticBuffer,f.attribute,e.FLOAT,!1,4*this.staticStride,4*f.offset)}},o.prototype.uploadDynamic=function(e,t,r){for(var i=0;i<this.dynamicProperties.length;i++){var n=this.dynamicProperties[i];n.uploadFunction(e,t,r,n.unsignedByte?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer.upload()},o.prototype.uploadStatic=function(e,t,r){for(var i=0;i<this.staticProperties.length;i++){var n=this.staticProperties[i];n.uploadFunction(e,t,r,n.unsignedByte?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer.upload()},o.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicBuffer.destroy(),this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer.destroy(),this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null},o}();r.default=n},{"../../core/utils/createIndicesForQuads":123,"pixi-gl-core":15}],176:[function(e,t,r){"use strict";r.__esModule=!0;var g=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),n=i(e("./ParticleShader")),s=i(e("./ParticleBuffer")),h=e("../../core/utils");function i(e){return e&&e.__esModule?e:{default:e}}var a=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.shader=null,t.indexBuffer=null,t.properties=null,t.tempMatrix=new g.Matrix,t.CONTEXT_UID=0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.onContextChange=function(){var e=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.shader=new n.default(e),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,unsignedByte:!0,uploadFunction:this.uploadTint,offset:0}]},i.prototype.start=function(){this.renderer.bindShader(this.shader)},i.prototype.render=function(e){var t=e.children,r=e._maxSize,i=e._batchSize,n=this.renderer,a=t.length;if(0!==a){r<a&&(a=r);var o=e._glBuffers[n.CONTEXT_UID];o||(o=e._glBuffers[n.CONTEXT_UID]=this.generateBuffers(e));var s=t[0]._texture.baseTexture;this.renderer.setBlendMode(g.utils.correctBlendMode(e.blendMode,s.premultipliedAlpha));var u=n.gl,l=e.worldTransform.copy(this.tempMatrix);l.prepend(n._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=l.toArray(!0),this.shader.uniforms.uColor=g.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,s.premultipliedAlpha),this.shader.uniforms.uSampler=n.bindTexture(s);for(var c=!1,h=0,f=0;h<a;h+=i,f+=1){var d=a-h;if(i<d&&(d=i),f>=o.length){if(!e.autoResize)break;o.push(this._generateOneMoreBuffer(e))}var p=o[f];p.uploadDynamic(t,h,d);var m=e._bufferUpdateIDs[f]||0;(c=c||p._updateID<m)&&(p._updateID=e._updateID,p.uploadStatic(t,h,d)),n.bindVao(p.vao),p.vao.draw(u.TRIANGLES,6*d)}}},i.prototype.generateBuffers=function(e){for(var t=this.renderer.gl,r=[],i=e._maxSize,n=e._batchSize,a=e._properties,o=0;o<i;o+=n)r.push(new s.default(t,this.properties,a,n));return r},i.prototype._generateOneMoreBuffer=function(e){var t=this.renderer.gl,r=e._batchSize,i=e._properties;return new s.default(t,this.properties,i,r)},i.prototype.uploadVertices=function(e,t,r,i,n,a){for(var o=0,s=0,u=0,l=0,c=0;c<r;++c){var h=e[t+c],f=h._texture,d=h.scale.x,p=h.scale.y,m=f.trim,g=f.orig;m?(o=(s=m.x-h.anchor.x*g.width)+m.width,u=(l=m.y-h.anchor.y*g.height)+m.height):(o=g.width*(1-h.anchor.x),s=g.width*-h.anchor.x,u=g.height*(1-h.anchor.y),l=g.height*-h.anchor.y),i[a]=s*d,i[a+1]=l*p,i[a+n]=o*d,i[a+n+1]=l*p,i[a+2*n]=o*d,i[a+2*n+1]=u*p,i[a+3*n]=s*d,i[a+3*n+1]=u*p,a+=4*n}},i.prototype.uploadPosition=function(e,t,r,i,n,a){for(var o=0;o<r;o++){var s=e[t+o].position;i[a]=s.x,i[a+1]=s.y,i[a+n]=s.x,i[a+n+1]=s.y,i[a+2*n]=s.x,i[a+2*n+1]=s.y,i[a+3*n]=s.x,i[a+3*n+1]=s.y,a+=4*n}},i.prototype.uploadRotation=function(e,t,r,i,n,a){for(var o=0;o<r;o++){var s=e[t+o].rotation;i[a]=s,i[a+n]=s,i[a+2*n]=s,i[a+3*n]=s,a+=4*n}},i.prototype.uploadUvs=function(e,t,r,i,n,a){for(var o=0;o<r;++o){var s=e[t+o]._texture._uvs;s?(i[a]=s.x0,i[a+1]=s.y0,i[a+n]=s.x1,i[a+n+1]=s.y1,i[a+2*n]=s.x2,i[a+2*n+1]=s.y2,i[a+3*n]=s.x3,i[a+3*n+1]=s.y3):(i[a]=0,i[a+1]=0,i[a+n]=0,i[a+n+1]=0,i[a+2*n]=0,i[a+2*n+1]=0,i[a+3*n]=0,i[a+3*n+1]=0),a+=4*n}},i.prototype.uploadTint=function(e,t,r,i,n,a){for(var o=0;o<r;++o){var s=e[t+o],u=s._texture.baseTexture.premultipliedAlpha,l=s.alpha,c=l<1&&u?(0,h.premultiplyTint)(s._tintRGB,l):s._tintRGB+(255*l<<24);i[a]=c,i[a+n]=c,i[a+2*n]=c,i[a+3*n]=c,a+=4*n}},i.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),r.prototype.destroy.call(this),this.shader.destroy(),this.indices=null,this.tempMatrix=null},i}(g.ObjectRenderer);r.default=a,g.WebGLRenderer.registerPlugin("particle",a)},{"../../core":65,"../../core/utils":125,"./ParticleBuffer":175,"./ParticleShader":177}],177:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=e("../../core/Shader");var a=function(t){function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,e,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","attribute vec2 aPositionCoord;","attribute float aRotation;","uniform mat3 projectionMatrix;","uniform vec4 uColor;","varying vec2 vTextureCoord;","varying vec4 vColor;","void main(void){"," float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);"," float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);"," vec2 v = vec2(x, y);"," v = v + aPositionCoord;"," gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor * uColor;","}"].join("\n"),["varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void){"," vec4 color = texture2D(uSampler, vTextureCoord) * vColor;"," gl_FragColor = color;","}"].join("\n")))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r}(((i=n)&&i.__esModule?i:{default:i}).default);r.default=a},{"../../core/Shader":44}],178:[function(e,t,r){"use strict";Math.sign||(Math.sign=function(e){return 0===(e=Number(e))||isNaN(e)?e:0<e?1:-1})},{}],179:[function(e,t,r){"use strict";Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e})},{}],180:[function(e,t,r){"use strict";var i,n=e("object-assign"),a=(i=n)&&i.__esModule?i:{default:i};Object.assign||(Object.assign=a.default)},{"object-assign":6}],181:[function(e,t,r){"use strict";e("./Object.assign"),e("./requestAnimationFrame"),e("./Math.sign"),e("./Number.isInteger"),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array)},{"./Math.sign":178,"./Number.isInteger":179,"./Object.assign":180,"./requestAnimationFrame":182}],182:[function(e,t,r){(function(e){"use strict";if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!e.performance||!e.performance.now){var t=Date.now();e.performance||(e.performance={}),e.performance.now=function(){return Date.now()-t}}for(var i=Date.now(),r=["ms","moz","webkit","o"],n=0;n<r.length&&!e.requestAnimationFrame;++n){var a=r[n];e.requestAnimationFrame=e[a+"RequestAnimationFrame"],e.cancelAnimationFrame=e[a+"CancelAnimationFrame"]||e[a+"CancelRequestAnimationFrame"]}e.requestAnimationFrame||(e.requestAnimationFrame=function(e){if("function"!=typeof e)throw new TypeError(e+"is not a function");var t=Date.now(),r=16+i-t;return r<0&&(r=0),i=t,setTimeout(function(){i=Date.now(),e(performance.now())},r)}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){return clearTimeout(e)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],183:[function(e,t,r){"use strict";r.__esModule=!0;var i,s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),n=e("./limiters/CountLimiter"),a=(i=n)&&i.__esModule?i:{default:i};var u=s.ticker.shared;s.settings.UPLOADS_PER_FRAME=4;var o=function(){function r(e){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.limiter=new a.default(s.settings.UPLOADS_PER_FRAME),this.renderer=e,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){t.queue&&t.prepareItems()},this.registerFindHook(p),this.registerFindHook(m),this.registerFindHook(l),this.registerFindHook(c),this.registerFindHook(h),this.registerUploadHook(f),this.registerUploadHook(d)}return r.prototype.upload=function(e,t){"function"==typeof e&&(t=e,e=null),e&&this.add(e),this.queue.length?(t&&this.completes.push(t),this.ticking||(this.ticking=!0,u.addOnce(this.tick,this,s.UPDATE_PRIORITY.UTILITY))):t&&t()},r.prototype.tick=function(){setTimeout(this.delayedTick,0)},r.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var e=this.queue[0],t=!1;if(e&&!e._destroyed)for(var r=0,i=this.uploadHooks.length;r<i;r++)if(this.uploadHooks[r](this.uploadHookHelper,e)){this.queue.shift(),t=!0;break}t||this.queue.shift()}if(this.queue.length)u.addOnce(this.tick,this,s.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;for(var n=this.completes.slice(0),a=this.completes.length=0,o=n.length;a<o;a++)n[a]()}},r.prototype.registerFindHook=function(e){return e&&this.addHooks.push(e),this},r.prototype.registerUploadHook=function(e){return e&&this.uploadHooks.push(e),this},r.prototype.add=function(e){for(var t=0,r=this.addHooks.length;t<r&&!this.addHooks[t](e,this.queue);t++);if(e instanceof s.Container)for(var i=e.children.length-1;0<=i;i--)this.add(e.children[i]);return this},r.prototype.destroy=function(){this.ticking&&u.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},r}();function l(e,t){var r=!1;if(e&&e._textures&&e._textures.length)for(var i=0;i<e._textures.length;i++)if(e._textures[i]instanceof s.Texture){var n=e._textures[i].baseTexture;-1===t.indexOf(n)&&(t.push(n),r=!0)}return r}function c(e,t){return e instanceof s.BaseTexture&&(-1===t.indexOf(e)&&t.push(e),!0)}function h(e,t){if(e._texture&&e._texture instanceof s.Texture){var r=e._texture.baseTexture;return-1===t.indexOf(r)&&t.push(r),!0}return!1}function f(e,t){return t instanceof s.Text&&(t.updateText(!0),!0)}function d(e,t){if(t instanceof s.TextStyle){var r=t.toFontString();return s.TextMetrics.measureFont(r),!0}return!1}function p(e,t){if(e instanceof s.Text){-1===t.indexOf(e.style)&&t.push(e.style),-1===t.indexOf(e)&&t.push(e);var r=e._texture.baseTexture;return-1===t.indexOf(r)&&t.push(r),!0}return!1}function m(e,t){return e instanceof s.TextStyle&&(-1===t.indexOf(e)&&t.push(e),!0)}r.default=o},{"../core":65,"./limiters/CountLimiter":186}],184:[function(e,t,r){"use strict";r.__esModule=!0;var i,a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),n=e("../BasePrepare"),o=(i=n)&&i.__esModule?i:{default:i};var s=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return(t.uploadHookHelper=t).canvas=document.createElement("canvas"),t.canvas.width=16,t.canvas.height=16,t.ctx=t.canvas.getContext("2d"),t.registerUploadHook(u),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.destroy=function(){r.prototype.destroy.call(this),this.ctx=null,this.canvas=null},i}(o.default);function u(e,t){if(t instanceof a.BaseTexture){var r=t.source,i=0===r.width?e.canvas.width:Math.min(e.canvas.width,r.width),n=0===r.height?e.canvas.height:Math.min(e.canvas.height,r.height);return e.ctx.drawImage(r,0,0,i,n,0,0,e.canvas.width,e.canvas.height),!0}return!1}r.default=s,a.CanvasRenderer.registerPlugin("prepare",s)},{"../../core":65,"../BasePrepare":183}],185:[function(e,t,r){"use strict";r.__esModule=!0;var i=e("./webgl/WebGLPrepare");Object.defineProperty(r,"webgl",{enumerable:!0,get:function(){return u(i).default}});var n=e("./canvas/CanvasPrepare");Object.defineProperty(r,"canvas",{enumerable:!0,get:function(){return u(n).default}});var a=e("./BasePrepare");Object.defineProperty(r,"BasePrepare",{enumerable:!0,get:function(){return u(a).default}});var o=e("./limiters/CountLimiter");Object.defineProperty(r,"CountLimiter",{enumerable:!0,get:function(){return u(o).default}});var s=e("./limiters/TimeLimiter");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"TimeLimiter",{enumerable:!0,get:function(){return u(s).default}})},{"./BasePrepare":183,"./canvas/CanvasPrepare":184,"./limiters/CountLimiter":186,"./limiters/TimeLimiter":187,"./webgl/WebGLPrepare":188}],186:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxItemsPerFrame=e,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return 0<this.itemsLeft--},t}();r.default=i},{}],187:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxMilliseconds=e,this.frameStart=0}return t.prototype.beginFrame=function(){this.frameStart=Date.now()},t.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},t}();r.default=i},{}],188:[function(e,t,r){"use strict";r.__esModule=!0;var i,n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),a=e("../BasePrepare");var o=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.uploadHookHelper=t.renderer,t.registerFindHook(l),t.registerUploadHook(s),t.registerUploadHook(u),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i}(((i=a)&&i.__esModule?i:{default:i}).default);function s(e,t){return t instanceof n.BaseTexture&&(t._glTextures[e.CONTEXT_UID]||e.textureManager.updateTexture(t),!0)}function u(e,t){return t instanceof n.Graphics&&((t.dirty||t.clearDirty||!t._webGL[e.plugins.graphics.CONTEXT_UID])&&e.plugins.graphics.updateGraphics(t),!0)}function l(e,t){return e instanceof n.Graphics&&(t.push(e),!0)}r.default=o,n.WebGLRenderer.registerPlugin("prepare",o)},{"../../core":65,"../BasePrepare":183}],189:[function(v,e,b){(function(e){"use strict";b.__esModule=!0,b.loader=b.prepare=b.particles=b.mesh=b.loaders=b.interaction=b.filters=b.extras=b.extract=b.accessibility=void 0;var t=v("./polyfill");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(b,e,{enumerable:!0,get:function(){return t[e]}})});var r=v("./core");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(b,e,{enumerable:!0,get:function(){return r[e]}})});var i,n=v("./deprecation"),a=(i=n)&&i.__esModule?i:{default:i},o=m(v("./accessibility")),s=m(v("./extract")),u=m(v("./extras")),l=m(v("./filters")),c=m(v("./interaction")),h=m(v("./loaders")),f=m(v("./mesh")),d=m(v("./particles")),p=m(v("./prepare"));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}r.utils.mixins.performMixins();var g=h.shared||null;b.accessibility=o,b.extract=s,b.extras=u,b.filters=l,b.interaction=c,b.loaders=h,b.mesh=f,b.particles=d,b.prepare=p,b.loader=g,"function"==typeof a.default&&(0,a.default)(b),e.PIXI=b}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./accessibility":42,"./core":65,"./deprecation":131,"./extract":133,"./extras":141,"./filters":153,"./interaction":159,"./loaders":162,"./mesh":171,"./particles":174,"./polyfill":181,"./prepare":185}]},{},[189])(189)}),e||(e=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var aa={},k;for(k in e)e.hasOwnProperty(k)&&(aa[k]=e[k]);var ba="object"==typeof window,ca="function"==typeof importScripts,da="object"==typeof process&&"function"==typeof require&&!ba&&!ca,ea=!ba&&!da&&!ca;if(da){e.print||(e.print=function(e){process.stdout.write(e+"\n")}),e.printErr||(e.printErr=function(e){process.stderr.write(e+"\n")});var fa=require("fs"),ga=require("path");e.read=function(e,t){e=ga.normalize(e);var r=fa.readFileSync(e);return r||e==ga.resolve(e)||(e=path.join(__dirname,"..","src",e),r=fa.readFileSync(e)),r&&!t&&(r=r.toString()),r},e.readBinary=function(t){return(t=e.read(t,!0)).buffer||(t=new Uint8Array(t)),assert(t.buffer),t},e.load=function(e){ha(read(e))},e.thisProgram||(e.thisProgram=1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program"),e.arguments=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=e),process.on("uncaughtException",function(e){if(!(e instanceof ia))throw e}),e.inspect=function(){return"[Emscripten Module object]"}}else if(ea)e.print||(e.print=print),"undefined"!=typeof printErr&&(e.printErr=printErr),e.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)"},e.readBinary=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(assert("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:"undefined"!=typeof arguments&&(e.arguments=arguments),eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined");else{if(!ba&&!ca)throw"Unknown runtime environment. Where are we?";e.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},"undefined"!=typeof arguments&&(e.arguments=arguments),"undefined"!=typeof console?(e.print||(e.print=function(e){console.log(e)}),e.printErr||(e.printErr=function(e){console.log(e)})):e.print||(e.print=function(){}),ca&&(e.load=importScripts),void 0===e.setWindowTitle&&(e.setWindowTitle=function(e){document.title=e})}function ha(e){eval.call(null,e)}for(k in!e.load&&e.read&&(e.load=function(t){ha(e.read(t))}),e.print||(e.print=function(){}),e.printErr||(e.printErr=e.print),e.arguments||(e.arguments=[]),e.thisProgram||(e.thisProgram="./this.program"),e.print=e.print,e.W=e.printErr,e.preRun=[],e.postRun=[],aa)aa.hasOwnProperty(k)&&(e[k]=aa[k]);var n={rb:function(e){ka=e},fb:function(){return ka},ua:function(){return m},ba:function(e){m=e},Ka:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return"*"===e[e.length-1]?n.J:"i"===e[0]?(assert(0==(e=parseInt(e.substr(1)))%8),e/8):0}},eb:function(e){return Math.max(n.Ka(e),n.J)},ud:16,Qd:function(e,t){return"double"===t||"i64"===t?7&e&&(assert(4==(7&e)),e+=4):assert(0==(3&e)),e},Ed:function(e,t,r){return r||"i64"!=e&&"double"!=e?e?Math.min(t||(e?n.eb(e):0),n.J):Math.min(t,8):8},L:function(t,r,i){return i&&i.length?(i.splice||(i=Array.prototype.slice.call(i)),i.splice(0,0,r),e["dynCall_"+t].apply(null,i)):e["dynCall_"+t].call(null,r)},Z:[],Xa:function(e){for(var t=0;t<n.Z.length;t++)if(!n.Z[t])return n.Z[t]=e,2*(1+t);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},nb:function(e){n.Z[(e-2)/2]=null},O:function(t){n.O.ta||(n.O.ta={}),n.O.ta[t]||(n.O.ta[t]=1,e.W(t))},ma:{},Hd:function(e,t){assert(t),n.ma[t]||(n.ma[t]={});var r=n.ma[t];return r[e]||(r[e]=function(){return n.L(t,e,arguments)}),r[e]},Fd:function(){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},aa:function(e){var t=m;return m=(m=m+e|0)+15&-16,t},Ra:function(e){var t=la;return la=(la=la+e|0)+15&-16,t},R:function(e){var i=r;return t<=(r=(r=r+e|0)+15&-16)&&!ma()?(r=i,0):i},ja:function(e,t){return Math.ceil(e/(t||16))*(t||16)},Nd:function(e,t,r){return r?+(e>>>0)+4294967296*+(t>>>0):+(e>>>0)+4294967296*+(0|t)},Ua:8,J:4,vd:0};e.Runtime=n,n.addFunction=n.Xa,n.removeFunction=n.nb;var na=!1,oa,pa,ka,ra,sa;function assert(e,t){e||x("Assertion failed: "+t)}function qa(a){var b=e["_"+a];if(!b)try{b=eval("_"+a)}catch(e){}return assert(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(e,t,r){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":y[e>>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":pa=[t>>>0,(oa=t,1<=+xa(oa)?0<oa?(0|ya(+za(oa/4294967296),4294967295))>>>0:~~+Aa((oa-+(~~oa>>>0))/4294967296)>>>0:0)],C[e>>2]=pa[0],C[e+4>>2]=pa[1];break;case"float":Ba[e>>2]=t;break;case"double":Ca[e>>3]=t;break;default:x("invalid type for setValue: "+r)}}function Da(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":case"i64":return C[e>>2];case"float":return Ba[e>>2];case"double":return Ca[e>>3];default:x("invalid type for setValue: "+t)}return null}function D(e,t,r,i){var a,o;o="number"==typeof e?(a=!0,e):(a=!1,e.length);var s,u,l="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(o,l?1:t.length)),a){for(assert(0==(3&(i=r))),e=r+(-4&o);i<e;i+=4)C[i>>2]=0;for(e=r+o;i<e;)y[i++>>0]=0;return r}if("i8"===l)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;for(i=0;i<o;){var c=e[i];"function"==typeof c&&(c=n.Id(c)),0===(a=l||t[i])?i++:("i64"==a&&(a="i32"),wa(r+i,c,a),u!==a&&(s=n.Ka(a),u=a),i+=s)}return r}function va(t,r){if(0===r||!t)return"";for(var i,n=0,a=0;(n|=i=E[t+a>>0],0!=i||r)&&(a++,!r||a!=r););if(r||(r=a),i="",n<128){for(;0<r;)n=String.fromCharCode.apply(String,E.subarray(t,t+Math.min(r,1024))),i=i?i+n:n,t+=1024,r-=1024;return i}return e.UTF8ToString(t)}function Ja(e,t){for(var r,i,n,a,o,s="";;){if(!(r=e[t++]))return s;128&r?(i=63&e[t++],192==(224&r)?s+=String.fromCharCode((31&r)<<6|i):(n=63&e[t++],(r=224==(240&r)?(15&r)<<12|i<<6|n:(a=63&e[t++],240==(248&r)?(7&r)<<18|i<<12|n<<6|a:(o=63&e[t++],248==(252&r)?(3&r)<<24|i<<18|n<<12|a<<6|o:(1&r)<<30|i<<24|n<<18|a<<12|o<<6|63&e[t++])))<65536?s+=String.fromCharCode(r):(r-=65536,s+=String.fromCharCode(55296|r>>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,i){if(!(0<i))return 0;var n=r;i=r+i-1;for(var a=0;a<e.length;++a){var o=e.charCodeAt(a);if(55296<=o&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),o<=127){if(i<=r)break;t[r++]=o}else{if(o<=2047){if(i<=r+1)break;t[r++]=192|o>>6}else{if(o<=65535){if(i<=r+2)break;t[r++]=224|o>>12}else{if(o<=2097151){if(i<=r+3)break;t[r++]=240|o>>18}else{if(o<=67108863){if(i<=r+4)break;t[r++]=248|o>>24}else{if(i<=r+5)break;t[r++]=252|o>>30,t[r++]=128|o>>24&63}t[r++]=128|o>>18&63}t[r++]=128|o>>12&63}t[r++]=128|o>>6&63}t[r++]=128|63&o}}return t[r]=0,r-n}function La(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);55296<=i&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++r)),i<=127?++t:t=i<=2047?t+2:i<=65535?t+3:i<=2097151?t+4:i<=67108863?t+5:t+6}return t}function Ma(c){var t=!!e.___cxa_demangle;if(t)try{var r=Ea(c.length);ua(c.substr(1),r);var i=Ea(4),a=e.___cxa_demangle(r,0,0,i);if(0===Da(i,"i32")&&a)return va(a)}catch(e){}finally{r&&Na(r),i&&Na(i),a&&Na(a)}var h=3,f={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},d=[],p=!0;r=c;try{if("Object._main"==c||"_main"==c)return"main()";if("number"==typeof c&&(c=va(c)),"_"!==c[0]||"_"!==c[1]||"Z"!==c[2])return c;switch(c[3]){case"n":return"operator new()";case"d":return"operator delete()"}r=function e(t,r,i){r=r||1/0;var n,a="",o=[];if("N"===c[h]){for("K"===c[++h]&&h++,n=[];"E"!==c[h];)if("S"===c[h]){h++;var s=c.indexOf("_",h);n.push(d[c.substring(h,s)||0]||"?"),h=s+1}else if("C"===c[h])n.push(n[n.length-1]),h+=2;else{var u=(s=parseInt(c.substr(h))).toString().length;if(!s||!u){h--;break}var l=c.substr(h+u,s);n.push(l),d.push(l),h+=u+s}if(h++,n=n.join("::"),0==--r)return t?[n]:n}else("K"===c[h]||p&&"L"===c[h])&&h++,(s=parseInt(c.substr(h)))&&(u=s.toString().length,n=c.substr(h+u,s),h+=u+s);p=!1,"I"===c[h]?(h++,s=e(!0),a+=(u=e(!0,1,!0))[0]+" "+n+"<"+s.join(", ")+">"):a=n;e:for(;h<c.length&&0<r--;)if(n=c[h++],n in f)o.push(f[n]);else switch(n){case"P":o.push(e(!0,1,!0)[0]+"*");break;case"R":o.push(e(!0,1,!0)[0]+"&");break;case"L":h++,s=c.indexOf("E",h)-h,o.push(c.substr(h,s)),h+=s+2;break;case"A":if(s=parseInt(c.substr(h)),h+=s.toString().length,"_"!==c[h])throw"?";h++,o.push(e(!0,1,!0)[0]+" ["+s+"]");break;case"E":break e;default:a+="?"+n;break e}return i||1!==o.length||"void"!==o[0]||(o=[]),t?(a&&o.push(a+"?"),o):a+"("+o.join(", ")+")"}()}catch(e){r+="?"}return 0<=r.indexOf("?")&&!t&&n.O("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),r}function Oa(){return Pa().replace(/__Z[\w\d_]+/g,function(e){var t=Ma(e);return e===t?e:e+" ["+t+"]"})}function Pa(){var t=Error();if(!t.stack){try{throw Error(0)}catch(e){t=e}if(!t.stack)return"(no stack trace available)"}return t.stack.toString()}function Qa(e){return 0<e%4096&&(e+=4096-e%4096),e}!function(){function a(e){return{arguments:(e=e.toString().match(d).slice(1))[0],body:e[1],returnValue:e[2]}}var b={stackSave:function(){n.ua()},stackRestore:function(){n.ba()},arrayToC:function(e){var t=n.aa(e.length);return ta(e,t),t},stringToC:function(e){var t=0;return null!=e&&0!==e&&ua(e,t=n.aa(1+(e.length<<2))),t}},c={string:b.stringToC,array:b.arrayToC};sa=function(e,t,r,i,a){e=qa(e);var o=[],s=0;if(i)for(var u=0;u<i.length;u++){var l=c[r[u]];l?(0===s&&(s=n.ua()),o[u]=l(i[u])):o[u]=i[u]}if(r=e.apply(null,o),"string"===t&&(r=va(r)),0!==s){if(a&&a.async)return void EmterpreterAsync.yd.push(function(){n.ba(s)});n.ba(s)}return r};var d=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/,f={},g;for(g in b)b.hasOwnProperty(g)&&(f[g]=a(b[g]));ra=function(b,c,d){d=d||[];var g=qa(b);b=d.every(function(e){return"number"===e});var q="string"!==c;if(q&&b)return g;var v=d.map(function(e,t){return"$"+t});c="(function("+v.join(",")+") {";var B=d.length;if(!b){c+="var stack = "+f.stackSave.body+";";for(var G=0;G<B;G++){var O=v[G],ja=d[G];"number"!==ja&&(ja=f[ja+"ToC"],c+="var "+ja.arguments+" = "+O+";",c+=ja.body+";",c+=O+"="+ja.returnValue+";")}}return d=a(function(){return g}).returnValue,c+="var ret = "+d+"("+v.join(",")+");",q||(d=a(function(){return va}).returnValue,c+="ret = "+d+"(ret);"),b||(c+=f.stackRestore.body.replace("()","(stack)")+";"),eval(c+"return ret})")}}(),e.ccall=sa,e.cwrap=ra,e.setValue=wa,e.getValue=Da,e.ALLOC_NORMAL=0,e.ALLOC_STACK=1,e.ALLOC_STATIC=2,e.ALLOC_DYNAMIC=3,e.ALLOC_NONE=4,e.allocate=D,e.getMemory=function(e){return Fa?void 0!==Ga&&!Ga.p||!Ha?n.R(e):Ea(e):n.Ra(e)},e.Pointer_stringify=va,e.AsciiToString=function(e){for(var t="";;){var r=y[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}},e.stringToAscii=function(e,t){return Ia(e,t,!1)},e.UTF8ArrayToString=Ja,e.UTF8ToString=function(e){return Ja(E,e)},e.stringToUTF8Array=Ka,e.stringToUTF8=function(e,t,r){return Ka(e,E,t,r)},e.lengthBytesUTF8=La,e.UTF16ToString=function(e){for(var t=0,r="";;){var i=z[e+2*t>>1];if(0==i)return r;++t,r+=String.fromCharCode(i)}},e.stringToUTF16=function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;var i=t;r=(r-=2)<2*e.length?r/2:e.length;for(var n=0;n<r;++n)z[t>>1]=e.charCodeAt(n),t+=2;return z[t>>1]=0,t-i},e.lengthBytesUTF16=function(e){return 2*e.length},e.UTF32ToString=function(e){for(var t=0,r="";;){var i=C[e+4*t>>2];if(0==i)return r;++t,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i)):r+=String.fromCharCode(i)}},e.stringToUTF32=function(e,t,r){if(void 0===r&&(r=2147483647),r<4)return 0;var i=t;r=i+r-4;for(var n=0;n<e.length;++n){if(55296<=(a=e.charCodeAt(n))&&a<=57343)var a=65536+((1023&a)<<10)|1023&e.charCodeAt(++n);if(C[t>>2]=a,r<(t+=4)+4)break}return C[t>>2]=0,t-i},e.lengthBytesUTF32=function(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);55296<=i&&i<=57343&&++r,t+=4}return t},e.stackTrace=function(){return Oa()};var y,E,z,Ra,C,Sa,Ba,Ca,Ta=0,la=0,Fa=!1,Ua=0,m=0,Va=0,Wa=0,r=0,Ya,buffer;function ma(){var i=Math.pow(2,31);if(i<=r)return!1;for(;t<=r;)if(t<i/2)t=Qa(2*t);else{var n=t;if((t=Qa((3*t+i)/4))<=n)return!1}if(i<=(t=Math.max(t,16777216)))return!1;try{if(ArrayBuffer.p)buffer=ArrayBuffer.p(buffer,t);else{var a=y;buffer=new ArrayBuffer(t)}}catch(e){return!1}return!!Xa(buffer)&&(e.buffer=buffer,e.HEAP8=y=new Int8Array(buffer),e.HEAP16=z=new Int16Array(buffer),e.HEAP32=C=new Int32Array(buffer),e.HEAPU8=E=new Uint8Array(buffer),e.HEAPU16=Ra=new Uint16Array(buffer),e.HEAPU32=Sa=new Uint32Array(buffer),e.HEAPF32=Ba=new Float32Array(buffer),e.HEAPF64=Ca=new Float64Array(buffer),ArrayBuffer.p||y.set(a),!0)}try{Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get),Ya(new ArrayBuffer(4))}catch(e){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536;F<t||F<2*$a;)F=F<16777216?2*F:F+16777216;function ab(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t();else{var r=t.ab;"number"==typeof r?void 0===t.X?n.L("v",r):n.L("vi",r,[t.X]):r(void 0===t.X?null:t.X)}}}F=Math.max(F,16777216),F!==t&&(t=F),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support"),buffer=new ArrayBuffer(t),y=new Int8Array(buffer),z=new Int16Array(buffer),C=new Int32Array(buffer),E=new Uint8Array(buffer),Ra=new Uint16Array(buffer),Sa=new Uint32Array(buffer),Ba=new Float32Array(buffer),Ca=new Float64Array(buffer),C[0]=255,assert(255===E[0]&&0===E[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=void 0,e.buffer=buffer,e.HEAP8=y,e.HEAP16=z,e.HEAP32=C,e.HEAPU8=E,e.HEAPU16=Ra,e.HEAPU32=Sa,e.HEAPF32=Ba,e.HEAPF64=Ca;var bb=[],cb=[],db=[],H=[],eb=[],Ha=!1;function fb(e){bb.unshift(e)}function gb(e){eb.unshift(e)}function hb(e,t,r){return e=Ka(e,r=Array(0<r?r:La(e)+1),0,r.length),t&&(r.length=e),r}function ua(e,t,r){for(e=hb(e,r),r=0;r<e.length;)y[t+r>>0]=e[r],r+=1}function ta(e,t){for(var r=0;r<e.length;r++)y[t++>>0]=e[r]}function Ia(e,t,r){for(var i=0;i<e.length;++i)y[t++>>0]=e.charCodeAt(i);r||(y[t>>0]=0)}e.addOnPreRun=fb,e.addOnInit=function(e){cb.unshift(e)},e.addOnPreMain=function(e){db.unshift(e)},e.addOnExit=function(e){H.unshift(e)},e.addOnPostRun=gb,e.intArrayFromString=hb,e.intArrayToString=function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];255<i&&(i&=255),t.push(String.fromCharCode(i))}return t.join("")},e.writeStringToMemory=ua,e.writeArrayToMemory=ta,e.writeAsciiToMemory=Ia,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var r=65535&e,i=65535&t;return r*i+((e>>>16)*i+r*(t>>>16)<<16)|0}),Math.Jd=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.Ad=Math.clz32;var xa=Math.abs,Aa=Math.ceil,za=Math.floor,ya=Math.min,I=0,ib=null,jb=null;function kb(){I++,e.monitorRunDependencies&&e.monitorRunDependencies(I)}function lb(){if(I--,e.monitorRunDependencies&&e.monitorRunDependencies(I),0==I&&(null!==ib&&(clearInterval(ib),ib=null),jb)){var t=jb;jb=null,t()}}e.addRunDependency=kb,e.removeRunDependency=lb,e.preloadedImages={},e.preloadedAudios={},Ta=8,la=Ta+5888,cb.push(),D([124,0,0,0,98,7,0,0,124,0,0,0,111,7,0,0,164,0,0,0,124,7,0,0,16,0,0,0,0,0,0,0,164,0,0,0,157,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,227,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,191,7,0,0,56,0,0,0,0,0,0,0,164,0,0,0,5,8,0,0,40,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,40,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,88,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,114,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,1,0,0,236,1,0,0,236,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,239,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,4,0,0,0,231,16,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,40,37,117,41,58,32,65,115,115,101,114,116,105,111,110,32,102,97,105,108,117,114,101,58,32,34,37,115,34,10,0,109,95,115,105,122,101,32,60,61,32,109,95,99,97,112,97,99,105,116,121,0,46,47,99,114,110,95,100,101,99,111,109,112,46,104,0,109,105,110,95,110,101,119,95,99,97,112,97,99,105,116,121,32,60,32,40,48,120,55,70,70,70,48,48,48,48,85,32,47,32,101,108,101,109,101,110,116,95,115,105,122,101,41,0,110,101,119,95,99,97,112,97,99,105,116,121,32,38,38,32,40,110,101,119,95,99,97,112,97,99,105,116,121,32,62,32,109,95,99,97,112,97,99,105,116,121,41,0,110,117,109,95,99,111,100,101,115,91,99,93,0,115,111,114,116,101,100,95,112,111,115,32,60,32,116,111,116,97,108,95,117,115,101,100,95,115,121,109,115,0,112,67,111,100,101,115,105,122,101,115,91,115,121,109,95,105,110,100,101,120,93,32,61,61,32,99,111,100,101,115,105,122,101,0,116,32,60,32,40,49,85,32,60,60,32,116,97,98,108,101,95,98,105,116,115,41,0,109,95,108,111,111,107,117,112,91,116,93,32,61,61,32,99,85,73,78,84,51,50,95,77,65,88,0,99,114,110,100,95,109,97,108,108,111,99,58,32,115,105,122,101,32,116,111,111,32,98,105,103,0,99,114,110,100,95,109,97,108,108,111,99,58,32,111,117,116,32,111,102,32,109,101,109,111,114,121,0,40,40,117,105,110,116,51,50,41,112,95,110,101,119,32,38,32,40,67,82,78,68,95,77,73,78,95,65,76,76,79,67,95,65,76,73,71,78,77,69,78,84,32,45,32,49,41,41,32,61,61,32,48,0,99,114,110,100,95,114,101,97,108,108,111,99,58,32,98,97,100,32,112,116,114,0,99,114,110,100,95,102,114,101,101,58,32,98,97,100,32,112,116,114,0,102,97,108,115,101,0,40,116,111,116,97,108,95,115,121,109,115,32,62,61,32,49,41,32,38,38,32,40,116,111,116,97,108,95,115,121,109,115,32,60,61,32,112,114,101,102,105,120,95,99,111,100,105,110,103,58,58,99,77,97,120,83,117,112,112,111,114,116,101,100,83,121,109,115,41,0,17,18,19,20,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,16,48,0,110,117,109,95,98,105,116,115,32,60,61,32,51,50,85,0,109,95,98,105,116,95,99,111,117,110,116,32,60,61,32,99,66,105,116,66,117,102,83,105,122,101,0,116,32,33,61,32,99,85,73,78,84,51,50,95,77,65,88,0,109,111,100,101,108,46,109,95,99,111,100,101,95,115,105,122,101,115,91,115,121,109,93,32,61,61,32,108,101,110,0,0,2,3,1,0,2,3,4,5,6,7,1,40,108,101,110,32,62,61,32,49,41,32,38,38,32,40,108,101,110,32,60,61,32,99,77,97,120,69,120,112,101,99,116,101,100,67,111,100,101,83,105,122,101,41,0,105,32,60,32,109,95,115,105,122,101,0,110,101,120,116,95,108,101,118,101,108,95,111,102,115,32,62,32,99,117,114,95,108,101,118,101,108,95,111,102,115,0,1,2,2,3,3,3,3,4,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,2,1,2,0,0,0,1,0,2,1,0,2,0,0,1,2,3,110,117,109,32,38,38,32,40,110,117,109,32,61,61,32,126,110,117,109,95,99,104,101,99,107,41,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,57,116,121,112,101,95,105,110,102,111,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,116,101,114,109,105,110,97,116,105,110,103,0,117,110,99,97,117,103,104,116,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0],"i8",4,n.Ua);var mb=n.ja(D(12,"i8",2),8);function ob(t){return e.___errno_location&&(C[e.___errno_location()>>2]=t),t}assert(0==mb%8),e._i64Subtract=nb;var J={I:1,F:2,ed:3,bc:4,H:5,Aa:6,vb:7,zc:8,ea:9,Jb:10,va:11,qd:11,Ta:12,da:13,Vb:14,Lc:15,fa:16,wa:17,rd:18,ha:19,ya:20,P:21,q:22,uc:23,Sa:24,Q:25,nd:26,Wb:27,Hc:28,ia:29,bd:30,nc:31,Vc:32,Sb:33,Zc:34,Dc:42,Zb:43,Kb:44,ec:45,fc:46,gc:47,mc:48,od:49,xc:50,dc:51,Pb:35,Ac:37,Bb:52,Eb:53,sd:54,vc:55,Fb:56,Gb:57,Qb:35,Hb:59,Jc:60,yc:61,kd:62,Ic:63,Ec:64,Fc:65,ad:66,Bc:67,yb:68,gd:69,Lb:70,Wc:71,pc:72,Tb:73,Db:74,Qc:76,Cb:77,$c:78,hc:79,ic:80,lc:81,kc:82,jc:83,Kc:38,za:39,qc:36,ga:40,Rc:95,Uc:96,Ob:104,wc:105,zb:97,Yc:91,Oc:88,Gc:92,cd:108,Nb:111,wb:98,Mb:103,tc:101,rc:100,ld:110,Xb:112,Yb:113,ac:115,Ab:114,Rb:89,oc:90,Xc:93,dd:94,xb:99,sc:102,cc:106,Mc:107,md:109,pd:87,Ub:122,hd:116,Pc:95,Cc:123,$b:84,Sc:75,Ib:125,Nc:131,Tc:130,jd:86};function pb(e,t){H.push(function(){n.L("vi",e,[t])}),pb.level=H.length}function tb(){return!!tb.p}e._memset=qb,e._bitshift64Lshr=rb,e._bitshift64Shl=sb;var ub=[],vb={};function wb(e,t){wb.p||(wb.p={}),e in wb.p||(n.L("v",t),wb.p[e]=1)}var xb={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function yb(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function zb(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Ab(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function Bb(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)}function Cb(){return zb(Array.prototype.slice.call(arguments,0).join("/"))}function K(e,t){return zb(e+"/"+t)}function Db(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||"."}var Eb=[];function Fb(e,t){Eb[e]={input:[],output:[],N:t},Gb(e,Hb)}var Hb={open:function(e){var t=Eb[e.g.rdev];if(!t)throw new L(J.ha);e.tty=t,e.seekable=!1},close:function(e){e.tty.N.flush(e.tty)},flush:function(e){e.tty.N.flush(e.tty)},read:function(e,t,r,i){if(!e.tty||!e.tty.N.La)throw new L(J.Aa);for(var n=0,a=0;a<i;a++){var o;try{o=e.tty.N.La(e.tty)}catch(e){throw new L(J.H)}if(void 0===o&&0===n)throw new L(J.va);if(null==o)break;n++,t[r+a]=o}return n&&(e.g.timestamp=Date.now()),n},write:function(e,t,r,i){if(!e.tty||!e.tty.N.qa)throw new L(J.Aa);for(var n=0;n<i;n++)try{e.tty.N.qa(e.tty,t[r+n])}catch(e){throw new L(J.H)}return i&&(e.g.timestamp=Date.now()),n}},Ib={La:function(e){if(!e.input.length){var t=null;if(da){var r,i=new Buffer(256),n=process.stdin.fd,a=!1;try{n=fs.openSync("/dev/stdin","r"),a=!0}catch(e){}r=fs.readSync(n,i,0,256,null),a&&fs.closeSync(n),t=0<r?i.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&(null!==(t=readline())&&(t+="\n"));if(!t)return null;e.input=hb(t,!0)}return e.input.shift()},qa:function(t,r){null===r||10===r?(e.print(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.print(Ja(t.output,0)),t.output=[])}},Jb={qa:function(t,r){null===r||10===r?(e.printErr(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.printErr(Ja(t.output,0)),t.output=[])}},M={C:null,A:function(){return M.createNode(null,"/",16895,0)},createNode:function(e,t,r,i){if(24576==(61440&r)||4096==(61440&r))throw new L(J.I);return M.C||(M.C={dir:{g:{D:M.k.D,u:M.k.u,lookup:M.k.lookup,T:M.k.T,rename:M.k.rename,unlink:M.k.unlink,rmdir:M.k.rmdir,readdir:M.k.readdir,symlink:M.k.symlink},stream:{G:M.n.G}},file:{g:{D:M.k.D,u:M.k.u},stream:{G:M.n.G,read:M.n.read,write:M.n.write,Ba:M.n.Ba,Na:M.n.Na,Pa:M.n.Pa}},link:{g:{D:M.k.D,u:M.k.u,readlink:M.k.readlink},stream:{}},Ea:{g:{D:M.k.D,u:M.k.u},stream:Kb}}),N((r=Lb(e,t,r,i)).mode)?(r.k=M.C.dir.g,r.n=M.C.dir.stream,r.e={}):32768==(61440&r.mode)?(r.k=M.C.file.g,r.n=M.C.file.stream,r.o=0,r.e=null):40960==(61440&r.mode)?(r.k=M.C.link.g,r.n=M.C.link.stream):8192==(61440&r.mode)&&(r.k=M.C.Ea.g,r.n=M.C.Ea.stream),r.timestamp=Date.now(),e&&(e.e[t]=r),r},cb:function(e){if(e.e&&e.e.subarray){for(var t=[],r=0;r<e.o;++r)t.push(e.e[r]);return t}return e.e},Gd:function(e){return e.e?e.e.subarray?e.e.subarray(0,e.o):new Uint8Array(e.e):new Uint8Array},Ga:function(e,t){if(e.e&&e.e.subarray&&t>e.e.length&&(e.e=M.cb(e),e.o=e.e.length),!e.e||e.e.subarray){var r=e.e?e.e.buffer.byteLength:0;t<=r||(t=Math.max(t,r*(r<1048576?2:1.125)|0),0!=r&&(t=Math.max(t,256)),r=e.e,e.e=new Uint8Array(t),0<e.o&&e.e.set(r.subarray(0,e.o),0))}else for(!e.e&&0<t&&(e.e=[]);e.e.length<t;)e.e.push(0)},ob:function(e,t){if(e.o!=t)if(0==t)e.e=null,e.o=0;else{if(!e.e||e.e.subarray){var r=e.e;e.e=new Uint8Array(new ArrayBuffer(t)),r&&e.e.set(r.subarray(0,Math.min(t,e.o)))}else if(e.e||(e.e=[]),e.e.length>t)e.e.length=t;else for(;e.e.length<t;)e.e.push(0);e.o=t}},k:{D:function(e){var t={};return t.dev=8192==(61440&e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,N(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.o:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.K=4096,t.blocks=Math.ceil(t.size/t.K),t},u:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&M.ob(e,t.size)},lookup:function(){throw Mb[J.F]},T:function(e,t,r,i){return M.createNode(e,t,r,i)},rename:function(e,t,r){if(N(e.mode)){var i;try{i=Nb(t,r)}catch(e){}if(i)for(var n in i.e)throw new L(J.za)}delete e.parent.e[e.name],e.name=r,(t.e[r]=e).parent=t},unlink:function(e,t){delete e.e[t]},rmdir:function(e,t){var r,i=Nb(e,t);for(r in i.e)throw new L(J.za);delete e.e[t]},readdir:function(e){var t,r=[".",".."];for(t in e.e)e.e.hasOwnProperty(t)&&r.push(t);return r},symlink:function(e,t,r){return(e=M.createNode(e,t,41471,0)).link=r,e},readlink:function(e){if(40960!=(61440&e.mode))throw new L(J.q);return e.link}},n:{read:function(e,t,r,i,n){var a=e.g.e;if(n>=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-n,i))),8<e&&a.subarray)t.set(a.subarray(n,n+e),r);else for(i=0;i<e;i++)t[r+i]=a[n+i];return e},write:function(e,t,r,i,n,a){if(!i)return 0;if((e=e.g).timestamp=Date.now(),t.subarray&&(!e.e||e.e.subarray)){if(a)return e.e=t.subarray(r,r+i),e.o=i;if(0===e.o&&0===n)return e.e=new Uint8Array(t.subarray(r,r+i)),e.o=i;if(n+i<=e.o)return e.e.set(t.subarray(r,r+i),n),i}if(M.Ga(e,n+i),e.e.subarray&&t.subarray)e.e.set(t.subarray(r,r+i),n);else for(a=0;a<i;a++)e.e[n+a]=t[r+a];return e.o=Math.max(e.o,n+i),i},G:function(e,t,r){if(1===r?t+=e.position:2===r&&32768==(61440&e.g.mode)&&(t+=e.g.o),t<0)throw new L(J.q);return t},Ba:function(e,t,r){M.Ga(e.g,t+r),e.g.o=Math.max(e.g.o,t+r)},Na:function(e,t,r,i,n,a,o){if(32768!=(61440&e.g.mode))throw new L(J.ha);if(r=e.g.e,2&o||r.buffer!==t&&r.buffer!==t.buffer){if((0<n||n+i<e.g.o)&&(r=r.subarray?r.subarray(n,n+i):Array.prototype.slice.call(r,n,n+i)),e=!0,!(i=Ea(i)))throw new L(J.Ta);t.set(r,i)}else e=!1,i=r.byteOffset;return{Rd:i,xd:e}},Pa:function(e,t,r,i,n){if(32768!=(61440&e.g.mode))throw new L(J.ha);return 2&n||M.n.write(e,t,0,i,r,!1),0}}},P={$:!1,sb:function(){P.$=!!process.platform.match(/^win/)},A:function(e){return assert(da),P.createNode(null,"/",P.Ja(e.pa.root),0)},createNode:function(e,t,r){if(!N(r)&&32768!=(61440&r)&&40960!=(61440&r))throw new L(J.q);return(e=Lb(e,t,r)).k=P.k,e.n=P.n,e},Ja:function(e){var t;try{t=fs.lstatSync(e),P.$&&(t.mode=t.mode|(146&t.mode)>>1)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return t.mode},B:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.A.pa.root),t.reverse(),Cb.apply(null,t)},Ha:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},$a:function(e){if((e&=-32769)in P.Ha)return P.Ha[e];throw new L(J.q)},k:{D:function(e){var t;e=P.B(e);try{t=fs.lstatSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return P.$&&!t.K&&(t.K=4096),P.$&&!t.blocks&&(t.blocks=(t.size+t.K-1)/t.K|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,K:t.K,blocks:t.blocks}},u:function(e,t){var r=P.B(e);try{void 0!==t.mode&&(fs.chmodSync(r,t.mode),e.mode=t.mode),void 0!==t.size&&fs.truncateSync(r,t.size)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},lookup:function(e,t){var r=K(P.B(e),t);r=P.Ja(r);return P.createNode(e,t,r)},T:function(e,t,r,i){e=P.createNode(e,t,r,i),t=P.B(e);try{N(e.mode)?fs.mkdirSync(t,e.mode):fs.writeFileSync(t,"",{mode:e.mode})}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return e},rename:function(e,t,r){e=P.B(e),t=K(P.B(t),r);try{fs.renameSync(e,t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},unlink:function(e,t){var r=K(P.B(e),t);try{fs.unlinkSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},rmdir:function(e,t){var r=K(P.B(e),t);try{fs.rmdirSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readdir:function(e){e=P.B(e);try{return fs.readdirSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},symlink:function(e,t,r){e=K(P.B(e),t);try{fs.symlinkSync(r,e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readlink:function(e){var t=P.B(e);try{return t=fs.readlinkSync(t),t=Ob.relative(Ob.resolve(e.A.pa.root),t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}}},n:{open:function(e){var t=P.B(e.g);try{32768==(61440&e.g.mode)&&(e.V=fs.openSync(t,P.$a(e.flags)))}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},read:function(e,t,r,i,n){if(0===i)return 0;var a,o=new Buffer(i);try{a=fs.readSync(e.V,o,0,i,n)}catch(e){throw new L(J[e.code])}if(0<a)for(e=0;e<a;e++)t[r+e]=o[e];return a},write:function(e,t,r,i,n){var a;t=new Buffer(t.subarray(r,r+i));try{a=fs.writeSync(e.V,t,0,i,n)}catch(e){throw new L(J[e.code])}return a},G:function(e,t,r){if(1===r)t+=e.position;else if(2===r&&32768==(61440&e.g.mode))try{t+=fs.fstatSync(e.V).size}catch(e){throw new L(J[e.code])}if(t<0)throw new L(J.q);return t}}};D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2);var Pb=null,Qb=[null],Rb=[],Sb=1,Q=null,Tb=!0,R={},L=null,Mb={};function S(e,t){if(t=t||{},!(e=Db("/",e)))return{path:"",g:null};var r,i={Ia:!0,ra:0};for(r in i)void 0===t[r]&&(t[r]=i[r]);if(8<t.ra)throw new L(J.ga);i=yb(e.split("/").filter(function(e){return!!e}),!1);var n=Pb;r="/";for(var a=0;a<i.length;a++){var o=a===i.length-1;if(o&&t.parent)break;if(n=Nb(n,i[a]),r=K(r,i[a]),n.U&&(!o||o&&t.Ia)&&(n=n.U.root),!o||t.la)for(o=0;40960==(61440&n.mode);)if(n=Vb(r),n=S(r=Db(Ab(r),n),{ra:t.ra}).g,40<o++)throw new L(J.ga)}return{path:r,g:n}}function T(e){for(var t;;){if(e===e.parent)return e=e.A.Oa,t?"/"!==e[e.length-1]?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}}function Wb(e,t){for(var r=0,i=0;i<t.length;i++)r=(r<<5)-r+t.charCodeAt(i)|0;return(e+r>>>0)%Q.length}function Xb(e){var t=Wb(e.parent.id,e.name);e.M=Q[t],Q[t]=e}function Nb(e,t){var r;if(r=(r=Yb(e,"x"))?r:e.k.lookup?0:J.da)throw new L(r,e);for(r=Q[Wb(e.id,t)];r;r=r.M){var i=r.name;if(r.parent.id===e.id&&i===t)return r}return e.k.lookup(e,t)}function Lb(e,t,r,i){return Zb||((Zb=function(e,t,r,i){e||(e=this),this.parent=e,this.A=e.A,this.U=null,this.id=Sb++,this.name=t,this.mode=r,this.k={},this.n={},this.rdev=i}).prototype={},Object.defineProperties(Zb.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},kb:{get:function(){return N(this.mode)}},jb:{get:function(){return 8192==(61440&this.mode)}}})),Xb(e=new Zb(e,t,r,i)),e}function N(e){return 16384==(61440&e)}var $b={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function Yb(e,t){return Tb?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:J.da}function ac(e,t){try{return Nb(e,t),J.wa}catch(e){}return Yb(e,"wx")}function bc(){for(var e=0;e<=4096;e++)if(!Rb[e])return e;throw new L(J.Sa)}function cc(e){dc||((dc=function(){}).prototype={},Object.defineProperties(dc.prototype,{object:{get:function(){return this.g},set:function(e){this.g=e}},Ld:{get:function(){return 1!=(2097155&this.flags)}},Md:{get:function(){return 0!=(2097155&this.flags)}},Kd:{get:function(){return 1024&this.flags}}}));var t,r=new dc;for(t in e)r[t]=e[t];return e=r,r=bc(),e.fd=r,Rb[r]=e}var Kb={open:function(e){e.n=Qb[e.g.rdev].n,e.n.open&&e.n.open(e)},G:function(){throw new L(J.ia)}},qc;function Gb(e,t){Qb[e]={n:t}}function ec(e,t){var r,i="/"===t,n=!t;if(i&&Pb)throw new L(J.fa);if(!i&&!n){if(t=(r=S(t,{Ia:!1})).path,(r=r.g).U)throw new L(J.fa);if(!N(r.mode))throw new L(J.ya)}n={type:e,pa:{},Oa:t,lb:[]};var a=e.A(n);(a.A=n).root=a,i?Pb=a:r&&(r.U=n,r.A&&r.A.lb.push(n))}function fc(e,t,r){var i=S(e,{parent:!0}).g;if(!(e=Bb(e))||"."===e||".."===e)throw new L(J.q);var n=ac(i,e);if(n)throw new L(n);if(!i.k.T)throw new L(J.I);return i.k.T(i,e,t,r)}function gc(e,t){return t=4095&(void 0!==t?t:438),fc(e,t|=32768,0)}function V(e,t){return t=1023&(void 0!==t?t:511),fc(e,t|=16384,0)}function hc(e,t,r){return void 0===r&&(r=t,t=438),fc(e,8192|t,r)}function ic(e,t){if(!Db(e))throw new L(J.F);var r=S(t,{parent:!0}).g;if(!r)throw new L(J.F);var i=Bb(t),n=ac(r,i);if(n)throw new L(n);if(!r.k.symlink)throw new L(J.I);return r.k.symlink(r,i,e)}function Vb(e){if(!(e=S(e).g))throw new L(J.F);if(!e.k.readlink)throw new L(J.q);return Db(T(e.parent),e.k.readlink(e))}function jc(e,t){var r;if(!(r="string"==typeof e?S(e,{la:!0}).g:e).k.u)throw new L(J.I);r.k.u(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})}function kc(t,r){var i,n,a;if(""===t)throw new L(J.F);if("string"==typeof r){if(void 0===(n=$b[r]))throw Error("Unknown file open mode: "+r)}else n=r;if(i=64&(r=n)?4095&(void 0===i?438:i)|32768:0,"object"==typeof t)a=t;else{t=zb(t);try{a=S(t,{la:!(131072&r)}).g}catch(e){}}if(n=!1,64&r)if(a){if(128&r)throw new L(J.wa)}else a=fc(t,i,0),n=!0;if(!a)throw new L(J.F);if(8192==(61440&a.mode)&&(r&=-513),65536&r&&!N(a.mode))throw new L(J.ya);if(!n&&(i=a?40960==(61440&a.mode)?J.ga:N(a.mode)&&(0!=(2097155&r)||512&r)?J.P:(i=["r","w","rw"][3&r],512&r&&(i+="w"),Yb(a,i)):J.F))throw new L(i);if(512&r){var o;if(!(o="string"==typeof(i=a)?S(i,{la:!0}).g:i).k.u)throw new L(J.I);if(N(o.mode))throw new L(J.P);if(32768!=(61440&o.mode))throw new L(J.q);if(i=Yb(o,"w"))throw new L(i);o.k.u(o,{size:0,timestamp:Date.now()})}r&=-641,(a=cc({g:a,path:T(a),flags:r,seekable:!0,position:0,n:a.n,tb:[],error:!1})).n.open&&a.n.open(a),!e.logReadFiles||1&r||(lc||(lc={}),t in lc||(lc[t]=1,e.printErr("read file: "+t)));try{R.onOpenFile&&(o=0,1!=(2097155&r)&&(o|=1),0!=(2097155&r)&&(o|=2),R.onOpenFile(t,o))}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+t+"', flags) threw an exception: "+e.message)}return a}function mc(e){e.na&&(e.na=null);try{e.n.close&&e.n.close(e)}catch(e){throw e}finally{Rb[e.fd]=null}}function nc(e,t,r){if(!e.seekable||!e.n.G)throw new L(J.ia);e.position=e.n.G(e,t,r),e.tb=[]}function oc(e,t,r,i,n,a){if(i<0||n<0)throw new L(J.q);if(0==(2097155&e.flags))throw new L(J.ea);if(N(e.g.mode))throw new L(J.P);if(!e.n.write)throw new L(J.q);1024&e.flags&&nc(e,0,2);var o=!0;if(void 0===n)n=e.position,o=!1;else if(!e.seekable)throw new L(J.ia);t=e.n.write(e,t,r,i,n,a),o||(e.position+=t);try{e.path&&R.onWriteToFile&&R.onWriteToFile(e.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return t}function pc(){L||((L=function(e,t){this.g=t,this.qb=function(e){for(var t in this.S=e,J)if(J[t]===e){this.code=t;break}},this.qb(e),this.message=xb[e]}).prototype=Error(),L.prototype.constructor=L,[J.F].forEach(function(e){Mb[e]=new L(e),Mb[e].stack="<generic error, no stack>"}))}function rc(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}function sc(e,t,r,i){return gc(e=K("string"==typeof e?e:T(e),t),rc(r,i))}function tc(e,t,r,i,n,a){if(n=gc(e=t?K("string"==typeof e?e:T(e),t):e,i=rc(i,n)),r){if("string"==typeof r){e=Array(r.length),t=0;for(var o=r.length;t<o;++t)e[t]=r.charCodeAt(t);r=e}jc(n,146|i),oc(e=kc(n,"w"),r,0,r.length,0,a),mc(e),jc(n,i)}return n}function W(e,t,s,a){e=K("string"==typeof e?e:T(e),t),t=rc(!!s,!!a),W.Ma||(W.Ma=64);var r=W.Ma++<<8|0;return Gb(r,{open:function(e){e.seekable=!1},close:function(){a&&a.buffer&&a.buffer.length&&a(10)},read:function(e,t,r,i){for(var n=0,a=0;a<i;a++){var o;try{o=s()}catch(e){throw new L(J.H)}if(void 0===o&&0===n)throw new L(J.va);if(null==o)break;n++,t[r+a]=o}return n&&(e.g.timestamp=Date.now()),n},write:function(e,t,r,i){for(var n=0;n<i;n++)try{a(t[r+n])}catch(e){throw new L(J.H)}return i&&(e.g.timestamp=Date.now()),n}}),hc(e,t,r)}function uc(t){if(t.jb||t.kb||t.link||t.e)return!0;var r=!0;if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!e.read)throw Error("Cannot load without read() or XMLHttpRequest.");try{t.e=hb(e.read(t.url),!0),t.o=t.e.length}catch(e){r=!1}return r||ob(J.H),r}var vc={},Zb,dc,lc,wc=0;function X(){return C[(wc+=4)-4>>2]}function xc(){var e;if(e=X(),!(e=Rb[e]))throw new L(J.ea);return e}var yc={};function Ga(e){Ga.p||(r=Qa(r),Ga.p=!0,assert(n.R),Ga.bb=n.R,n.R=function(){x("cannot dynamically allocate, sbrk now has control")});var t=r;return 0==e||Ga.bb(e)?t:4294967295}e._i64Add=zc;var Ac=1;function Cc(e,t){if(Dc=e,Ec=t,!Fc)return 1;if(0==e)Y=function(){setTimeout(Gc,t)},Hc="timeout";else if(1==e)Y=function(){Ic(Gc)},Hc="rAF";else if(2==e){if(!window.setImmediate){var r=[];window.addEventListener("message",function(e){e.source===window&&"__emcc"===e.data&&(e.stopPropagation(),r.shift()())},!0),window.setImmediate=function(e){r.push(e),window.postMessage("__emcc","*")}}Y=function(){window.setImmediate(Gc)},Hc="immediate"}return 0}function Jc(o,t,r,s,i){e.noExitRuntime=!0,assert(!Fc,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Fc=o,Kc=s;var u=Lc;if(Gc=function(){if(!na)if(0<Mc.length){var t=Date.now(),r=Mc.shift();if(r.ab(r.X),Nc){var i=Nc,a=0==i%1?i-1:Math.floor(i);Nc=r.Bd?a:(8*i+(a+.5))/9}console.log('main loop blocker "'+r.name+'" took '+(Date.now()-t)+" ms"),Oc(),setTimeout(Gc,0)}else u<Lc||(Pc=Pc+1|0,1==Dc&&1<Ec&&0!=Pc%Ec?Y():("timeout"===Hc&&e.ka&&(e.W("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Hc=""),Qc(function(){void 0!==s?n.L("vi",o,[s]):n.L("v",o)}),u<Lc||("object"==typeof SDL&&SDL.audio&&SDL.audio.mb&&SDL.audio.mb(),Y())))},i||(t&&0<t?Cc(0,1e3/t):Cc(1,1),Y()),r)throw"SimulateInfiniteLoop"}e._memcpy=Bc;var Y=null,Hc="",Lc=0,Fc=null,Kc=0,Dc=0,Ec=0,Pc=0,Mc=[];function Oc(){if(e.setStatus){var t=e.statusMessage||"Please wait...",r=Nc,i=Rc.Dd;r?r<i?e.setStatus(t+" ("+(i-r)+"/"+i+")"):e.setStatus(t):e.setStatus("")}}function Qc(t){if(!(na||e.preMainLoop&&!1===e.preMainLoop())){try{t()}catch(t){if(t instanceof ia)return;throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t}e.postMainLoop&&e.postMainLoop()}}var Rc={},Gc,Nc,Sc=!1,Tc=!1,Uc=[];function Vc(){function t(){Tc=document.pointerLockElement===r||document.mozPointerLockElement===r||document.webkitPointerLockElement===r||document.msPointerLockElement===r}if(e.preloadPlugins||(e.preloadPlugins=[]),!Wc){Wc=!0;try{Xc=!0}catch(e){Xc=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Yc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Xc?null:console.log("warning: no BlobBuilder"),Zc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,e.Qa||void 0!==Zc||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),e.Qa=!0),e.preloadPlugins.push({canHandle:function(t){return!e.Qa&&/\.(jpg|jpeg|png|bmp)$/i.test(t)},handle:function(r,i,a,t){var o=null;if(Xc)try{(o=new Blob([r],{type:$c(i)})).size!==r.length&&(o=new Blob([new Uint8Array(r).buffer],{type:$c(i)}))}catch(e){n.O("Blob constructor present but fails: "+e+"; falling back to blob builder")}o||((o=new Yc).append(new Uint8Array(r).buffer),o=o.getBlob());var s=Zc.createObjectURL(o),u=new Image;u.onload=function(){assert(u.complete,"Image "+i+" could not be decoded");var t=document.createElement("canvas");t.width=u.width,t.height=u.height,t.getContext("2d").drawImage(u,0,0),e.preloadedImages[i]=t,Zc.revokeObjectURL(s),a&&a(r)},u.onerror=function(){console.log("Image "+s+" could not be decoded"),t&&t()},u.src=s}}),e.preloadPlugins.push({canHandle:function(t){return!e.Pd&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(a,o,r,t){function s(t){u||(u=!0,e.preloadedAudios[o]=t,r&&r(a))}function i(){u||(u=!0,e.preloadedAudios[o]=new Audio,t&&t())}var u=!1;if(!Xc)return i();try{var n=new Blob([a],{type:$c(o)})}catch(e){return i()}n=Zc.createObjectURL(n);var l=new Audio;l.addEventListener("canplaythrough",function(){s(l)},!1),l.onerror=function(){if(!u){console.log("warning: browser could not fully decode audio "+o+", trying slower base64 approach");for(var e="",t=0,r=0,i=0;i<a.length;i++)for(t=t<<8|a[i],r+=8;6<=r;){var n=t>>r-6&63;r=r-6,e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}2==r?(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t)<<4],e+="=="):4==r&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t)<<2],e+="="),l.src="data:audio/x-"+o.substr(-3)+";base64,"+e,s(l)}},l.src=n,ad(function(){s(l)})}});var r=e.canvas;r&&(r.sa=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||function(){},r.Fa=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},r.Fa=r.Fa.bind(document),document.addEventListener("pointerlockchange",t,!1),document.addEventListener("mozpointerlockchange",t,!1),document.addEventListener("webkitpointerlockchange",t,!1),document.addEventListener("mspointerlockchange",t,!1),e.elementPointerLock&&r.addEventListener("click",function(e){!Tc&&r.sa&&(r.sa(),e.preventDefault())},!1))}}function bd(t,r,i,n){if(r&&e.ka&&t==e.canvas)return e.ka;var a,o;if(r){if(o={antialias:!1,alpha:!1},n)for(var s in n)o[s]=n[s];(o=GL.createContext(t,o))&&(a=GL.getContext(o).td),t.style.backgroundColor="black"}else a=t.getContext("2d");return a?(i&&(r||assert("undefined"==typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.ka=a,r&&GL.Od(o),e.Td=r,Uc.forEach(function(e){e()}),Vc()),a):null}var cd=!1,dd=void 0,ed=void 0;function fd(t,r,i){function n(){Sc=!1;var t=a.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t?(a.Da=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},a.Da=a.Da.bind(document),dd&&a.sa(),Sc=!0,ed&&gd()):(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t),ed&&hd()),e.onFullScreen&&e.onFullScreen(Sc),id(a)}void 0===(dd=t)&&(dd=!0),void 0===(ed=r)&&(ed=!1),void 0===(jd=i)&&(jd=null);var a=e.canvas;cd||(cd=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var o=document.createElement("div");a.parentNode.insertBefore(o,a),o.appendChild(a),o.p=o.requestFullScreen||o.mozRequestFullScreen||o.msRequestFullscreen||(o.webkitRequestFullScreen?function(){o.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),i?o.p({Ud:i}):o.p()}var kd=0;function ld(e){var t=Date.now();if(0===kd)kd=t+1e3/60;else for(;kd<=t+2;)kd+=1e3/60;t=Math.max(kd-t,0),setTimeout(e,t)}function Ic(e){"undefined"==typeof window?ld(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||ld),window.requestAnimationFrame(e))}function ad(t){e.noExitRuntime=!0,setTimeout(function(){na||t()},1e4)}function $c(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}function md(e,t,r){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=function(){200==i.status||0==i.status&&i.response?t(i.response):r()},i.onerror=r,i.send(null)}function nd(t,r,e){md(t,function(e){assert(e,'Loading data file "'+t+'" failed (no arrayBuffer).'),r(new Uint8Array(e)),lb()},function(){if(!e)throw'Loading data file "'+t+'" failed.';e()}),kb()}var od=[],Wc,Xc,Yc,Zc,jd;function pd(){var t=e.canvas;od.forEach(function(e){e(t.width,t.height)})}function gd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=8388608|e}pd()}function hd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=-8388609&e}pd()}function id(t,r,i){r&&i?(t.ub=r,t.hb=i):(r=t.ub,i=t.hb);var n=r,a=i;if(e.forcedAspectRatio&&0<e.forcedAspectRatio&&(n/a<e.forcedAspectRatio?n=Math.round(a*e.forcedAspectRatio):a=Math.round(n/e.forcedAspectRatio)),(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t.parentNode&&"undefined"!=typeof screen){var o=Math.min(screen.width/n,screen.height/a);n=Math.round(n*o),a=Math.round(a*o)}ed?(t.width!=n&&(t.width=n),t.height!=a&&(t.height=a),void 0!==t.style&&(t.style.removeProperty("width"),t.style.removeProperty("height"))):(t.width!=r&&(t.width=r),t.height!=i&&(t.height=i),void 0!==t.style&&(n!=r||a!=i?(t.style.setProperty("width",n+"px","important"),t.style.setProperty("height",a+"px","important")):(t.style.removeProperty("width"),t.style.removeProperty("height"))))}if(pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),function(){var e;if(V("/dev"),Gb(259,{read:function(){return 0},write:function(e,t,r,i){return i}}),hc("/dev/null",259),Fb(1280,Ib),Fb(1536,Jb),hc("/dev/tty",1280),hc("/dev/tty1",1536),"undefined"!=typeof crypto){var t=new Uint8Array(1);e=function(){return crypto.getRandomValues(t),t[0]}}else e=da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0};W("/dev","random",e),W("/dev","urandom",e),V("/dev/shm"),V("/dev/shm/tmp")}(),V("/proc"),V("/proc/self"),V("/proc/self/fd"),ec({A:function(){var e=Lb("/proc/self","fd",16895,73);return e.k={lookup:function(e,t){var r=Rb[+t];if(!r)throw new L(J.ea);var i={parent:null,A:{Oa:"fake"},k:{readlink:function(){return r.path}}};return i.parent=i}},e}},"/proc/self/fd"),cb.unshift(function(){if(!e.noFSInit&&!qc){assert(!qc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),qc=!0,pc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?W("/dev","stdin",e.stdin):ic("/dev/tty","/dev/stdin"),e.stdout?W("/dev","stdout",null,e.stdout):ic("/dev/tty","/dev/stdout"),e.stderr?W("/dev","stderr",null,e.stderr):ic("/dev/tty1","/dev/stderr");var t=kc("/dev/stdin","r");assert(0===t.fd,"invalid handle for stdin ("+t.fd+")"),assert(1===(t=kc("/dev/stdout","w")).fd,"invalid handle for stdout ("+t.fd+")"),assert(2===(t=kc("/dev/stderr","w")).fd,"invalid handle for stderr ("+t.fd+")")}}),db.push(function(){Tb=!1}),H.push(function(){qc=!1;var t=e._fflush;for(t&&t(0),t=0;t<Rb.length;t++){var r=Rb[t];r&&mc(r)}}),e.FS_createFolder=function(e,t,r,i){return V(e=K("string"==typeof e?e:T(e),t),rc(r,i))},e.FS_createPath=function(e,t){e="string"==typeof e?e:T(e);for(var r=t.split("/").reverse();r.length;){var i=r.pop();if(i){var n=K(e,i);try{V(n)}catch(e){}e=n}}return n},e.FS_createDataFile=tc,e.FS_createPreloadedFile=function(n,a,t,o,s,u,l,c,h,f){function r(t){function r(e){f&&f(),c||tc(n,a,e,o,s,h),u&&u(),lb()}var i=!1;e.preloadPlugins.forEach(function(e){!i&&e.canHandle(d)&&(e.handle(t,d,r,function(){l&&l(),lb()}),i=!0)}),i||r(t)}Vc();var d=a?Db(K(n,a)):n;kb(),"string"==typeof t?nd(t,function(e){r(e)},l):r(t)},e.FS_createLazyFile=function(e,t,u,r,i){var n,a;function o(){this.oa=!1,this.Y=[]}if(o.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize;return this.gb(e/this.chunkSize|0)[t]}},o.prototype.pb=function(e){this.gb=e},o.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",u,!1),e.send(null),!(200<=e.status&&e.status<300||304===e.status))throw Error("Couldn't load "+u+". Status: "+e.status);var t,a=Number(e.getResponseHeader("Content-length")),o=1048576;(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t||(o=a);var s=this;s.pb(function(e){var t=e*o,r=(e+1)*o-1;r=Math.min(r,a-1);if(void 0===s.Y[e]){var i=s.Y;if(r<t)throw Error("invalid range ("+t+", "+r+") or no bytes requested!");if(a-1<r)throw Error("only "+a+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",u,!1),a!==o&&n.setRequestHeader("Range","bytes="+t+"-"+r),"undefined"!=typeof Uint8Array&&(n.responseType="arraybuffer"),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(200<=n.status&&n.status<300||304===n.status))throw Error("Couldn't load "+u+". Status: "+n.status);t=void 0!==n.response?new Uint8Array(n.response||[]):hb(n.responseText||"",!0),i[e]=t}if(void 0===s.Y[e])throw Error("doXHR failed!");return s.Y[e]}),this.Wa=a,this.Va=o,this.oa=!0},"undefined"!=typeof XMLHttpRequest){if(!ca)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";n=new o,Object.defineProperty(n,"length",{get:function(){return this.oa||this.Ca(),this.Wa}}),Object.defineProperty(n,"chunkSize",{get:function(){return this.oa||this.Ca(),this.Va}}),a=void 0}else a=u,n=void 0;var s=sc(e,t,r,i);n?s.e=n:a&&(s.e=null,s.url=a),Object.defineProperty(s,"usedBytes",{get:function(){return this.e.length}});var l={};return Object.keys(s.n).forEach(function(e){var t=s.n[e];l[e]=function(){if(!uc(s))throw new L(J.H);return t.apply(null,arguments)}}),l.read=function(e,t,r,i,n){if(!uc(s))throw new L(J.H);if(n>=(e=e.g.e).length)return 0;if(assert(0<=(i=Math.min(e.length-n,i))),e.slice)for(var a=0;a<i;a++)t[r+a]=e[n+a];else for(a=0;a<i;a++)t[r+a]=e.get(n+a);return i},s.n=l,s},e.FS_createLink=function(e,t,r){return ic(r,e=K("string"==typeof e?e:T(e),t))},e.FS_createDevice=W,e.FS_unlink=function(t){var r,e=S(t,{parent:!0}).g,i=Bb(t),n=Nb(e,i);e:{try{r=Nb(e,i)}catch(e){r=e.S;break e}var a=Yb(e,"wx");r=a||(N(r.mode)?J.P:0)}if(r)throw r===J.P&&(r=J.I),new L(r);if(!e.k.unlink)throw new L(J.I);if(n.U)throw new L(J.fa);try{R.willDeletePath&&R.willDeletePath(t)}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+t+"') threw an exception: "+e.message)}if(e.k.unlink(e,i),e=Wb(n.parent.id,n.name),Q[e]===n)Q[e]=n.M;else for(e=Q[e];e;){if(e.M===n){e.M=n.M;break}e=e.M}try{R.onDeletePath&&R.onDeletePath(t)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+t+"') threw an exception: "+e.message)}},cb.unshift(function(){}),H.push(function(){}),da){var fs=require("fs"),Ob=require("path");P.sb()}e.requestFullScreen=function(e,t,r){fd(e,t,r)},e.requestAnimationFrame=function(e){Ic(e)},e.setCanvasSize=function(t,r,i){id(e.canvas,t,r),i||pd()},e.pauseMainLoop=function(){Y=null,Lc++},e.resumeMainLoop=function(){Lc++;var e=Dc,t=Ec;Jc(Fc,0,!1,Kc,!(Fc=null)),Cc(e,t),Y()},e.getUserMedia=function(){window.p||(window.p=navigator.getUserMedia||navigator.mozGetUserMedia),window.p(void 0)},e.createContext=function(e,t,r,i){return bd(e,t,r,i)},Ua=m=n.ja(la),Fa=!0,Va=Ua+$a,Wa=r=n.ja(Va),assert(Wa<t,"TOTAL_MEMORY not big enough for stack");var qd=D([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3);e.Ya={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0,byteLength:Ya},e.Za={abort:x,assert:assert,invoke_iiii:function(t,r,i,n){try{return e.dynCall_iiii(t,r,i,n)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiii:function(t,r,i,n,a,o){try{e.dynCall_viiiii(t,r,i,n,a,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_vi:function(t,r){try{e.dynCall_vi(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_ii:function(t,r){try{return e.dynCall_ii(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viii:function(t,r,i,n){try{e.dynCall_viii(t,r,i,n)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_v:function(t){try{e.dynCall_v(t)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiiii:function(t,r,i,n,a,o,s){try{e.dynCall_viiiiii(t,r,i,n,a,o,s)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_iiiiii:function(t,r,i,n,a,o){try{return e.dynCall_iiiiii(t,r,i,n,a,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiii:function(t,r,i,n,a){try{e.dynCall_viiii(t,r,i,n,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},_pthread_cleanup_pop:function(){assert(pb.level==H.length,"cannot pop if something else added meanwhile!"),H.pop(),pb.level=H.length},___syscall54:function(e,t){wc=t;try{var r=xc(),i=X();switch(i){case 21505:case 21506:return r.tty?0:-J.Q;case 21519:if(!r.tty)return-J.Q;var n=X();return C[n>>2]=0;case 21520:return r.tty?-J.q:-J.Q;case 21531:if(n=X(),!r.n.ib)throw new L(J.Q);return r.n.ib(r,i,n);default:x("bad ioctl syscall "+i)}}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall6:function(e,t){wc=t;try{return mc(xc()),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},_emscripten_set_main_loop_timing:Cc,__ZSt18uncaught_exceptionv:tb,___setErrNo:ob,_sbrk:Ga,___cxa_begin_catch:function(e){var t;tb.p--,ub.push(e);e:{if(e&&!vb[e])for(t in vb)if(vb[t].wd===e)break e;t=e}return t&&vb[t].Sd++,e},_emscripten_memcpy_big:function(e,t,r){return E.set(E.subarray(t,t+r),e),e},_sysconf:function(e){switch(e){case 30:return 4096;case 85:return F/4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return ob(J.q),-1},_pthread_getspecific:function(e){return yc[e]||0},_pthread_self:function(){return 0},_pthread_once:wb,_pthread_key_create:function(e){return 0==e?J.q:(C[e>>2]=Ac,yc[Ac]=0,Ac++,0)},___unlock:function(){},_emscripten_set_main_loop:Jc,_pthread_setspecific:function(e,t){return e in yc?(yc[e]=t,0):J.q},___lock:function(){},_abort:function(){e.abort()},_pthread_cleanup_push:pb,_time:function(e){var t=Date.now()/1e3|0;return e&&(C[e>>2]=t),t},___syscall140:function(e,t){wc=t;try{var r=xc(),i=X(),n=X(),a=X(),o=X();return assert(0===i),nc(r,n,o),C[a>>2]=r.position,r.na&&0===n&&0===o&&(r.na=null),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall146:function(e,t){wc=t;try{var r,i=xc(),n=X();e:{for(var a=X(),o=0,s=0;s<a;s++){var u=oc(i,y,C[n+8*s>>2],C[n+(8*s+4)>>2],void 0);if(u<0){r=-1;break e}o+=u}r=o}return r}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},STACKTOP:m,STACK_MAX:Va,tempDoublePtr:mb,ABORT:na,cttz_i8:qd};var Z=function(e,t,r){"use asm";var i=e.Int8Array;var n=e.Int16Array;var a=e.Int32Array;var o=e.Uint8Array;var s=e.Uint16Array;var u=e.Uint32Array;var l=e.Float32Array;var c=e.Float64Array;var de=new i(r);var $=new n(r);var pe=new a(r);var me=new o(r);var ge=new s(r);var h=new u(r);var f=new l(r);var ee=new c(r);var d=e.byteLength;var ve=t.STACKTOP|0;var p=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var m=t.ABORT|0;var g=t.cttz_i8|0;var v=0;var b=0;var y=0;var _=0;var w=e.NaN,x=e.Infinity;var k=0,T=0,S=0,E=0,M=0.0,P=0,C=0,A=0,O=0.0;var re=0;var I=0;var R=0;var D=0;var j=0;var L=0;var z=0;var F=0;var B=0;var N=0;var U=e.Math.floor;var X=e.Math.abs;var q=e.Math.sqrt;var H=e.Math.pow;var W=e.Math.cos;var G=e.Math.sin;var V=e.Math.tan;var Y=e.Math.acos;var J=e.Math.asin;var K=e.Math.atan;var Z=e.Math.atan2;var Q=e.Math.exp;var ie=e.Math.log;var ne=e.Math.ceil;var be=e.Math.imul;var ae=e.Math.min;var oe=e.Math.clz32;var se=t.abort;var ue=t.assert;var le=t.invoke_iiii;var ce=t.invoke_viiiii;var he=t.invoke_vi;var fe=t.invoke_ii;var ye=t.invoke_viii;var _e=t.invoke_v;var we=t.invoke_viiiiii;var xe=t.invoke_iiiiii;var ke=t.invoke_viiii;var Te=t._pthread_cleanup_pop;var Se=t.___syscall54;var Ee=t.___syscall6;var Me=t._emscripten_set_main_loop_timing;var Pe=t.__ZSt18uncaught_exceptionv;var Ce=t.___setErrNo;var Ae=t._sbrk;var Oe=t.___cxa_begin_catch;var Ie=t._emscripten_memcpy_big;var Re=t._sysconf;var De=t._pthread_getspecific;var je=t._pthread_self;var Le=t._pthread_once;var ze=t._pthread_key_create;var Fe=t.___unlock;var Be=t._emscripten_set_main_loop;var Ne=t._pthread_setspecific;var Ue=t.___lock;var Xe=t._abort;var qe=t._pthread_cleanup_push;var He=t._time;var We=t.___syscall140;var Ge=t.___syscall146;var Ve=0.0;function Ye(e){if(d(e)&16777215||d(e)<=16777215||d(e)>2147483648)return false;de=new i(e);$=new n(e);pe=new a(e);me=new o(e);ge=new s(e);h=new u(e);f=new l(e);ee=new c(e);r=e;return true}function Je(e){e=e|0;var t=0;t=ve;ve=ve+e|0;ve=ve+15&-16;return t|0}function Ke(){return ve|0}function Ze(e){e=e|0;ve=e}function Qe(e,t){e=e|0;t=t|0;ve=e;p=t}function $e(e,t){e=e|0;t=t|0;if(!v){v=e;b=t}}function et(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0]}function tt(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0];de[te+4>>0]=de[e+4>>0];de[te+5>>0]=de[e+5>>0];de[te+6>>0]=de[e+6>>0];de[te+7>>0]=de[e+7>>0]}function rt(e){e=e|0;re=e}function it(){return re|0}function nt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0;m=ve;ve=ve+608|0;f=m+88|0;h=m+72|0;u=m+64|0;s=m+48|0;o=m+24|0;a=m;c=m+96|0;d=m+92|0;l=e+4|0;p=e+8|0;if((pe[l>>2]|0)>>>0>(pe[p>>2]|0)>>>0){pe[a>>2]=1154;pe[a+4>>2]=2120;pe[a+8>>2]=1133;_r(c,1100,a)|0;yr(c,m+16|0)|0}if((2147418112/(i>>>0)|0)>>>0<=t>>>0){pe[o>>2]=1154;pe[o+4>>2]=2121;pe[o+8>>2]=1169;_r(c,1100,o)|0;yr(c,m+40|0)|0}o=pe[p>>2]|0;if(o>>>0>=t>>>0){p=1;ve=m;return p|0}do{if(r){if(t){a=t+-1|0;if(!(a&t)){a=11;break}else t=a}else t=-1;t=t>>>16|t;t=t>>>8|t;t=t>>>4|t;t=t>>>2|t;t=(t>>>1|t)+1|0;a=10}else a=10}while(0);if((a|0)==10)if(!t){t=0;a=12}else a=11;if((a|0)==11)if(t>>>0<=o>>>0)a=12;if((a|0)==12){pe[s>>2]=1154;pe[s+4>>2]=2130;pe[s+8>>2]=1217;_r(c,1100,s)|0;yr(c,u)|0}r=be(t,i)|0;do{if(!n){a=at(pe[e>>2]|0,r,d,1)|0;if(!a){p=0;ve=m;return p|0}else{pe[e>>2]=a;break}}else{o=ot(r,d)|0;if(!o){p=0;ve=m;return p|0}Ai[n&0](o,pe[e>>2]|0,pe[l>>2]|0);a=pe[e>>2]|0;do{if(a)if(!(a&7)){Ri[pe[104>>2]&1](a,0,0,1,pe[27]|0)|0;break}else{pe[h>>2]=1154;pe[h+4>>2]=2499;pe[h+8>>2]=1516;_r(c,1100,h)|0;yr(c,f)|0;break}}while(0);pe[e>>2]=o}}while(0);a=pe[d>>2]|0;if(a>>>0>r>>>0)t=(a>>>0)/(i>>>0)|0;pe[p>>2]=t;p=1;ve=m;return p|0}function at(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0;l=ve;ve=ve+592|0;u=l+48|0;a=l+24|0;n=l;s=l+72|0;o=l+68|0;if(e&7){pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1494;_r(s,1100,n)|0;yr(s,l+16|0)|0;u=0;ve=l;return u|0}if(t>>>0>2147418112){pe[a>>2]=1154;pe[a+4>>2]=2499;pe[a+8>>2]=1387;_r(s,1100,a)|0;yr(s,l+40|0)|0;u=0;ve=l;return u|0}pe[o>>2]=t;i=Ri[pe[104>>2]&1](e,t,o,i,pe[27]|0)|0;if(r)pe[r>>2]=pe[o>>2];if(!(i&7)){u=i;ve=l;return u|0}pe[u>>2]=1154;pe[u+4>>2]=2551;pe[u+8>>2]=1440;_r(s,1100,u)|0;yr(s,l+64|0)|0;u=i;ve=l;return u|0}function ot(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0;u=ve;ve=ve+592|0;o=u+48|0;s=u+24|0;r=u;a=u+72|0;n=u+68|0;i=e+3&-4;i=(i|0)!=0?i:4;if(i>>>0>2147418112){pe[r>>2]=1154;pe[r+4>>2]=2499;pe[r+8>>2]=1387;_r(a,1100,r)|0;yr(a,u+16|0)|0;s=0;ve=u;return s|0}pe[n>>2]=i;r=Ri[pe[104>>2]&1](0,i,n,1,pe[27]|0)|0;e=pe[n>>2]|0;if(t)pe[t>>2]=e;if((r|0)==0|e>>>0<i>>>0){pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1413;_r(a,1100,s)|0;yr(a,u+40|0)|0;s=0;ve=u;return s|0}if(!(r&7)){s=r;ve=u;return s|0}pe[o>>2]=1154;pe[o+4>>2]=2526;pe[o+8>>2]=1440;_r(a,1100,o)|0;yr(a,u+64|0)|0;s=r;ve=u;return s|0}function st(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0;F=ve;ve=ve+960|0;j=F+232|0;D=F+216|0;R=F+208|0;I=F+192|0;O=F+184|0;A=F+168|0;C=F+160|0;P=F+144|0;S=F+136|0;T=F+120|0;k=F+112|0;x=F+96|0;y=F+88|0;b=F+72|0;v=F+64|0;g=F+48|0;h=F+40|0;d=F+24|0;f=F+16|0;c=F;M=F+440|0;L=F+376|0;z=F+304|0;m=F+236|0;if((t|0)==0|i>>>0>11){e=0;ve=F;return e|0}pe[e>>2]=t;n=z;a=n+68|0;do{pe[n>>2]=0;n=n+4|0}while((n|0)<(a|0));a=0;do{n=de[r+a>>0]|0;if(n<<24>>24){E=z+((n&255)<<2)|0;pe[E>>2]=(pe[E>>2]|0)+1}a=a+1|0}while((a|0)!=(t|0));a=0;l=1;o=0;s=-1;u=0;while(1){n=pe[z+(l<<2)>>2]|0;if(!n)pe[e+28+(l+-1<<2)>>2]=0;else{E=l+-1|0;pe[L+(E<<2)>>2]=a;a=n+a|0;w=16-l|0;pe[e+28+(E<<2)>>2]=(a+-1<<w|(1<<w)+-1)+1;pe[e+96+(E<<2)>>2]=u;pe[m+(l<<2)>>2]=u;o=o>>>0>l>>>0?o:l;s=s>>>0<l>>>0?s:l;u=n+u|0}l=l+1|0;if((l|0)==17){E=o;break}else a=a<<1}pe[e+4>>2]=u;a=e+172|0;do{if(u>>>0>(pe[a>>2]|0)>>>0){pe[a>>2]=u;if(u){n=u+-1|0;if(n&u)p=14}else{n=-1;p=14}if((p|0)==14){w=n>>>16|n;w=w>>>8|w;w=w>>>4|w;w=w>>>2|w;w=(w>>>1|w)+1|0;pe[a>>2]=w>>>0>t>>>0?t:w}o=e+176|0;n=pe[o>>2]|0;do{if(n){w=pe[n+-4>>2]|0;n=n+-8|0;if(!((w|0)!=0?(w|0)==(~pe[n>>2]|0):0)){pe[c>>2]=1154;pe[c+4>>2]=644;pe[c+8>>2]=1863;_r(M,1100,c)|0;yr(M,f)|0}if(!(n&7)){Ri[pe[104>>2]&1](n,0,0,1,pe[27]|0)|0;break}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;_r(M,1100,d)|0;yr(M,h)|0;break}}}while(0);a=pe[a>>2]|0;a=(a|0)!=0?a:1;n=ot((a<<1)+8|0,0)|0;if(!n){pe[o>>2]=0;n=0;break}else{pe[n+4>>2]=a;pe[n>>2]=~a;pe[o>>2]=n+8;p=25;break}}else p=25}while(0);e:do{if((p|0)==25){w=e+24|0;de[w>>0]=s;de[e+25>>0]=E;a=e+176|0;o=0;do{_=de[r+o>>0]|0;n=_&255;if(_<<24>>24){if(!(pe[z+(n<<2)>>2]|0)){pe[g>>2]=1154;pe[g+4>>2]=2273;pe[g+8>>2]=1261;_r(M,1100,g)|0;yr(M,v)|0}_=m+(n<<2)|0;n=pe[_>>2]|0;pe[_>>2]=n+1;if(n>>>0>=u>>>0){pe[b>>2]=1154;pe[b+4>>2]=2277;pe[b+8>>2]=1274;_r(M,1100,b)|0;yr(M,y)|0}$[(pe[a>>2]|0)+(n<<1)>>1]=o}o=o+1|0}while((o|0)!=(t|0));n=de[w>>0]|0;y=(n&255)>>>0<i>>>0?i:0;_=e+8|0;pe[_>>2]=y;b=(y|0)!=0;if(b){v=1<<y;n=e+164|0;do{if(v>>>0>(pe[n>>2]|0)>>>0){pe[n>>2]=v;o=e+168|0;n=pe[o>>2]|0;do{if(n){g=pe[n+-4>>2]|0;n=n+-8|0;if(!((g|0)!=0?(g|0)==(~pe[n>>2]|0):0)){pe[x>>2]=1154;pe[x+4>>2]=644;pe[x+8>>2]=1863;_r(M,1100,x)|0;yr(M,k)|0}if(!(n&7)){Ri[pe[104>>2]&1](n,0,0,1,pe[27]|0)|0;break}else{pe[T>>2]=1154;pe[T+4>>2]=2499;pe[T+8>>2]=1516;_r(M,1100,T)|0;yr(M,S)|0;break}}}while(0);n=v<<2;a=ot(n+8|0,0)|0;if(!a){pe[o>>2]=0;n=0;break e}else{S=a+8|0;pe[a+4>>2]=v;pe[a>>2]=~v;pe[o>>2]=S;a=S;break}}else{a=e+168|0;n=v<<2;o=a;a=pe[a>>2]|0}}while(0);Yr(a|0,-1,n|0)|0;p=e+176|0;g=1;do{if(pe[z+(g<<2)>>2]|0){t=y-g|0;m=1<<t;a=g+-1|0;s=pe[L+(a<<2)>>2]|0;if(a>>>0>=16){pe[P>>2]=1154;pe[P+4>>2]=1953;pe[P+8>>2]=1737;_r(M,1100,P)|0;yr(M,C)|0}n=pe[e+28+(a<<2)>>2]|0;if(!n)d=-1;else d=(n+-1|0)>>>(16-g|0);if(s>>>0<=d>>>0){h=(pe[e+96+(a<<2)>>2]|0)-s|0;f=g<<16;do{n=ge[(pe[p>>2]|0)+(h+s<<1)>>1]|0;if((me[r+n>>0]|0|0)!=(g|0)){pe[A>>2]=1154;pe[A+4>>2]=2319;pe[A+8>>2]=1303;_r(M,1100,A)|0;yr(M,O)|0}c=s<<t;a=n|f;l=0;do{u=l+c|0;if(u>>>0>=v>>>0){pe[I>>2]=1154;pe[I+4>>2]=2325;pe[I+8>>2]=1337;_r(M,1100,I)|0;yr(M,R)|0}n=pe[o>>2]|0;if((pe[n+(u<<2)>>2]|0)!=-1){pe[D>>2]=1154;pe[D+4>>2]=2327;pe[D+8>>2]=1360;_r(M,1100,D)|0;yr(M,j)|0;n=pe[o>>2]|0}pe[n+(u<<2)>>2]=a;l=l+1|0}while(l>>>0<m>>>0);s=s+1|0}while(s>>>0<=d>>>0)}}g=g+1|0}while(y>>>0>=g>>>0);n=de[w>>0]|0}a=e+96|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L>>2]|0);a=e+100|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+4>>2]|0);a=e+104|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+8>>2]|0);a=e+108|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+12>>2]|0);a=e+112|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+16>>2]|0);a=e+116|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+20>>2]|0);a=e+120|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+24>>2]|0);a=e+124|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+28>>2]|0);a=e+128|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+32>>2]|0);a=e+132|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+36>>2]|0);a=e+136|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+40>>2]|0);a=e+140|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+44>>2]|0);a=e+144|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+48>>2]|0);a=e+148|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+52>>2]|0);a=e+152|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+56>>2]|0);a=e+156|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+60>>2]|0);a=e+16|0;pe[a>>2]=0;o=e+20|0;pe[o>>2]=n&255;t:do{if(b){while(1){if(!i)break t;n=i+-1|0;if(!(pe[z+(i<<2)>>2]|0))i=n;else break}pe[a>>2]=pe[e+28+(n<<2)>>2];n=y+1|0;pe[o>>2]=n;if(n>>>0<=E>>>0){while(1){if(pe[z+(n<<2)>>2]|0)break;n=n+1|0;if(n>>>0>E>>>0)break t}pe[o>>2]=n}}}while(0);pe[e+92>>2]=-1;pe[e+160>>2]=1048575;pe[e+12>>2]=32-(pe[_>>2]|0);n=1}}while(0);e=n;ve=F;return e|0}function ut(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0;if(!e){n=Nr(t)|0;if(!r){r=n;return r|0}if(!n)a=0;else a=qr(n)|0;pe[r>>2]=a;r=n;return r|0}if(!t){Ur(e);if(!r){r=0;return r|0}pe[r>>2]=0;r=0;return r|0}n=Xr(e,t)|0;a=(n|0)!=0;if(a|i^1)a=a?n:e;else{n=Xr(e,t)|0;a=(n|0)==0?e:n}if(!r){r=n;return r|0}t=qr(a)|0;pe[r>>2]=t;r=n;return r|0}function lt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if(!((e|0)!=0&t>>>0>73&(r|0)!=0)){r=0;return r|0}if((pe[r>>2]|0)!=40|t>>>0<74){r=0;return r|0}if(((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)!=18552){r=0;return r|0}if(((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0<74){r=0;return r|0}if(((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0>t>>>0){r=0;return r|0}pe[r+4>>2]=(me[e+12>>0]|0)<<8|(me[e+13>>0]|0);pe[r+8>>2]=(me[e+14>>0]|0)<<8|(me[e+15>>0]|0);pe[r+12>>2]=me[e+16>>0];pe[r+16>>2]=me[e+17>>0];t=e+18|0;i=r+32|0;pe[i>>2]=me[t>>0];pe[i+4>>2]=0;t=de[t>>0]|0;pe[r+20>>2]=t<<24>>24==0|t<<24>>24==9?8:16;pe[r+24>>2]=(me[e+26>>0]|0)<<16|(me[e+25>>0]|0)<<24|(me[e+27>>0]|0)<<8|(me[e+28>>0]|0);pe[r+28>>2]=(me[e+30>>0]|0)<<16|(me[e+29>>0]|0)<<24|(me[e+31>>0]|0)<<8|(me[e+32>>0]|0);r=1;return r|0}function ct(e){e=e|0;Oe(e|0)|0;Ut()}function ht(e){e=e|0;var t=0,r=0,i=0,n=0,a=0;a=ve;ve=ve+544|0;n=a;i=a+24|0;t=pe[e+20>>2]|0;if(t)ft(t);t=e+4|0;r=pe[t>>2]|0;if(!r){n=e+16|0;de[n>>0]=0;ve=a;return}if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1516;_r(i,1100,n)|0;yr(i,a+16|0)|0}pe[t>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;n=e+16|0;de[n>>0]=0;ve=a;return}function ft(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;d=ve;ve=ve+640|0;f=d+112|0;h=d+96|0;c=d+88|0;l=d+72|0;u=d+64|0;s=d+48|0;i=d+40|0;a=d+24|0;n=d+16|0;r=d;o=d+120|0;if(!e){ve=d;return}t=pe[e+168>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[r>>2]=1154;pe[r+4>>2]=644;pe[r+8>>2]=1863;_r(o,1100,r)|0;yr(o,n)|0}if(!(t&7)){Ri[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[a>>2]=1154;pe[a+4>>2]=2499;pe[a+8>>2]=1516;_r(o,1100,a)|0;yr(o,i)|0;break}}}while(0);t=pe[e+176>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[s>>2]=1154;pe[s+4>>2]=644;pe[s+8>>2]=1863;_r(o,1100,s)|0;yr(o,u)|0}if(!(t&7)){Ri[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[l>>2]=1154;pe[l+4>>2]=2499;pe[l+8>>2]=1516;_r(o,1100,l)|0;yr(o,c)|0;break}}}while(0);if(!(e&7)){Ri[pe[104>>2]&1](e,0,0,1,pe[27]|0)|0;ve=d;return}else{pe[h>>2]=1154;pe[h+4>>2]=2499;pe[h+8>>2]=1516;_r(o,1100,h)|0;yr(o,f)|0;ve=d;return}}function dt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+560|0;o=c+40|0;s=c+24|0;t=c;a=c+48|0;n=e+8|0;r=pe[n>>2]|0;if((r+-1|0)>>>0>=8192){pe[t>>2]=1154;pe[t+4>>2]=2997;pe[t+8>>2]=1541;_r(a,1100,t)|0;yr(a,c+16|0)|0}pe[e>>2]=r;i=e+20|0;t=pe[i>>2]|0;if(!t){t=ot(180,0)|0;if(!t)t=0;else{l=t+164|0;pe[l>>2]=0;pe[l+4>>2]=0;pe[l+8>>2]=0;pe[l+12>>2]=0}pe[i>>2]=t;l=t;u=pe[e>>2]|0}else{l=t;u=r}if(!(pe[n>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;_r(a,1100,s)|0;yr(a,o)|0;a=pe[e>>2]|0}else a=u;n=pe[e+4>>2]|0;if(a>>>0>16){r=a;t=0}else{e=0;l=st(l,u,n,e)|0;ve=c;return l|0}while(1){i=t+1|0;if(r>>>0>3){r=r>>>1;t=i}else{r=i;break}}e=t+2+((r|0)!=32&1<<r>>>0<a>>>0&1)|0;e=e>>>0<11?e&255:11;l=st(l,u,n,e)|0;ve=c;return l|0}function pt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0;j=ve;ve=ve+800|0;A=j+256|0;C=j+240|0;P=j+232|0;M=j+216|0;E=j+208|0;S=j+192|0;T=j+184|0;k=j+168|0;x=j+160|0;w=j+144|0;_=j+136|0;y=j+120|0;b=j+112|0;v=j+96|0;g=j+88|0;m=j+72|0;h=j+64|0;c=j+48|0;s=j+40|0;u=j+24|0;a=j+16|0;n=j;R=j+288|0;D=j+264|0;O=mt(e,14)|0;if(!O){pe[t>>2]=0;r=t+4|0;i=pe[r>>2]|0;if(i){if(!(i&7))Ri[pe[104>>2]&1](i,0,0,1,pe[27]|0)|0;else{pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1516;_r(R,1100,n)|0;yr(R,a)|0}pe[r>>2]=0;pe[t+8>>2]=0;pe[t+12>>2]=0}de[t+16>>0]=0;r=t+20|0;i=pe[r>>2]|0;if(!i){t=1;ve=j;return t|0}ft(i);pe[r>>2]=0;t=1;ve=j;return t|0}d=t+4|0;p=t+8|0;r=pe[p>>2]|0;if((r|0)!=(O|0)){if(r>>>0<=O>>>0){do{if((pe[t+12>>2]|0)>>>0<O>>>0){if(nt(d,O,(r+1|0)==(O|0),1,0)|0){r=pe[p>>2]|0;break}de[t+16>>0]=1;t=0;ve=j;return t|0}}while(0);Yr((pe[d>>2]|0)+r|0,0,O-r|0)|0}pe[p>>2]=O}Yr(pe[d>>2]|0,0,O|0)|0;f=e+20|0;r=pe[f>>2]|0;if((r|0)<5){a=e+4|0;o=e+8|0;n=e+16|0;do{i=pe[a>>2]|0;if((i|0)==(pe[o>>2]|0))i=0;else{pe[a>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;_r(R,1100,u)|0;yr(R,s)|0;r=pe[f>>2]|0}i=i<<32-r|pe[n>>2];pe[n>>2]=i}while((r|0)<5)}else{i=e+16|0;n=i;i=pe[i>>2]|0}l=i>>>27;pe[n>>2]=i<<5;pe[f>>2]=r+-5;if((l+-1|0)>>>0>20){t=0;ve=j;return t|0}pe[D+20>>2]=0;pe[D>>2]=0;pe[D+4>>2]=0;pe[D+8>>2]=0;pe[D+12>>2]=0;de[D+16>>0]=0;r=D+4|0;i=D+8|0;e:do{if(nt(r,21,0,1,0)|0){s=pe[i>>2]|0;u=pe[r>>2]|0;Yr(u+s|0,0,21-s|0)|0;pe[i>>2]=21;if(l){n=e+4|0;a=e+8|0;o=e+16|0;s=0;do{r=pe[f>>2]|0;if((r|0)<3)do{i=pe[n>>2]|0;if((i|0)==(pe[a>>2]|0))i=0;else{pe[n>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[c>>2]=1154;pe[c+4>>2]=3199;pe[c+8>>2]=1650;_r(R,1100,c)|0;yr(R,h)|0;r=pe[f>>2]|0}i=i<<32-r|pe[o>>2];pe[o>>2]=i}while((r|0)<3);else i=pe[o>>2]|0;pe[o>>2]=i<<3;pe[f>>2]=r+-3;de[u+(me[1611+s>>0]|0)>>0]=i>>>29;s=s+1|0}while((s|0)!=(l|0))}if(dt(D)|0){s=e+4|0;u=e+8|0;l=e+16|0;i=0;t:while(1){o=O-i|0;r=gt(e,D)|0;r:do{if(r>>>0<17){if((pe[p>>2]|0)>>>0<=i>>>0){pe[m>>2]=1154;pe[m+4>>2]=903;pe[m+8>>2]=1781;_r(R,1100,m)|0;yr(R,g)|0}de[(pe[d>>2]|0)+i>>0]=r;r=i+1|0}else switch(r|0){case 17:{r=pe[f>>2]|0;if((r|0)<3)do{n=pe[s>>2]|0;if((n|0)==(pe[u>>2]|0))n=0;else{pe[s>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[v>>2]=1154;pe[v+4>>2]=3199;pe[v+8>>2]=1650;_r(R,1100,v)|0;yr(R,b)|0;r=pe[f>>2]|0}n=n<<32-r|pe[l>>2];pe[l>>2]=n}while((r|0)<3);else n=pe[l>>2]|0;pe[l>>2]=n<<3;pe[f>>2]=r+-3;r=(n>>>29)+3|0;if(r>>>0>o>>>0){r=0;break e}r=r+i|0;break r}case 18:{r=pe[f>>2]|0;if((r|0)<7)do{n=pe[s>>2]|0;if((n|0)==(pe[u>>2]|0))n=0;else{pe[s>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[y>>2]=1154;pe[y+4>>2]=3199;pe[y+8>>2]=1650;_r(R,1100,y)|0;yr(R,_)|0;r=pe[f>>2]|0}n=n<<32-r|pe[l>>2];pe[l>>2]=n}while((r|0)<7);else n=pe[l>>2]|0;pe[l>>2]=n<<7;pe[f>>2]=r+-7;r=(n>>>25)+11|0;if(r>>>0>o>>>0){r=0;break e}r=r+i|0;break r}default:{if((r+-19|0)>>>0>=2){I=90;break t}a=pe[f>>2]|0;if((r|0)==19){if((a|0)<2){n=a;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))a=0;else{pe[s>>2]=r+1;a=me[r>>0]|0}r=n+8|0;pe[f>>2]=r;if((r|0)>=33){pe[w>>2]=1154;pe[w+4>>2]=3199;pe[w+8>>2]=1650;_r(R,1100,w)|0;yr(R,x)|0;r=pe[f>>2]|0}n=a<<32-r|pe[l>>2];pe[l>>2]=n;if((r|0)<2)n=r;else break}}else{n=pe[l>>2]|0;r=a}pe[l>>2]=n<<2;pe[f>>2]=r+-2;a=(n>>>30)+3|0}else{if((a|0)<6){n=a;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))a=0;else{pe[s>>2]=r+1;a=me[r>>0]|0}r=n+8|0;pe[f>>2]=r;if((r|0)>=33){pe[k>>2]=1154;pe[k+4>>2]=3199;pe[k+8>>2]=1650;_r(R,1100,k)|0;yr(R,T)|0;r=pe[f>>2]|0}n=a<<32-r|pe[l>>2];pe[l>>2]=n;if((r|0)<6)n=r;else break}}else{n=pe[l>>2]|0;r=a}pe[l>>2]=n<<6;pe[f>>2]=r+-6;a=(n>>>26)+7|0}if((i|0)==0|a>>>0>o>>>0){r=0;break e}r=i+-1|0;if((pe[p>>2]|0)>>>0<=r>>>0){pe[S>>2]=1154;pe[S+4>>2]=903;pe[S+8>>2]=1781;_r(R,1100,S)|0;yr(R,E)|0}n=de[(pe[d>>2]|0)+r>>0]|0;if(!(n<<24>>24)){r=0;break e}r=a+i|0;if(i>>>0>=r>>>0){r=i;break r}do{if((pe[p>>2]|0)>>>0<=i>>>0){pe[M>>2]=1154;pe[M+4>>2]=903;pe[M+8>>2]=1781;_r(R,1100,M)|0;yr(R,P)|0}de[(pe[d>>2]|0)+i>>0]=n;i=i+1|0}while((i|0)!=(r|0))}}}while(0);if(O>>>0>r>>>0)i=r;else break}if((I|0)==90){pe[C>>2]=1154;pe[C+4>>2]=3140;pe[C+8>>2]=1632;_r(R,1100,C)|0;yr(R,A)|0;r=0;break}if((O|0)==(r|0))r=dt(t)|0;else r=0}else r=0}else{de[D+16>>0]=1;r=0}}while(0);ht(D);t=r;ve=j;return t|0}function mt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+544|0;s=c+16|0;o=c;a=c+24|0;if(!t){l=0;ve=c;return l|0}if(t>>>0<=16){l=vt(e,t)|0;ve=c;return l|0}u=vt(e,t+-16|0)|0;l=e+20|0;t=pe[l>>2]|0;if((t|0)<16){i=e+4|0;n=e+8|0;r=e+16|0;do{e=pe[i>>2]|0;if((e|0)==(pe[n>>2]|0))e=0;else{pe[i>>2]=e+1;e=me[e>>0]|0}t=t+8|0;pe[l>>2]=t;if((t|0)>=33){pe[o>>2]=1154;pe[o+4>>2]=3199;pe[o+8>>2]=1650;_r(a,1100,o)|0;yr(a,s)|0;t=pe[l>>2]|0}e=e<<32-t|pe[r>>2];pe[r>>2]=e}while((t|0)<16)}else{e=e+16|0;r=e;e=pe[e>>2]|0}pe[r>>2]=e<<16;pe[l>>2]=t+-16;l=e>>>16|u<<16;ve=c;return l|0}function gt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0;y=ve;ve=ve+608|0;m=y+88|0;p=y+72|0;f=y+64|0;h=y+48|0;c=y+40|0;d=y+24|0;l=y+16|0;u=y;v=y+96|0;g=pe[t+20>>2]|0;b=e+20|0;s=pe[b>>2]|0;do{if((s|0)<24){o=e+4|0;i=pe[o>>2]|0;n=pe[e+8>>2]|0;r=i>>>0<n>>>0;if((s|0)>=16){if(r){pe[o>>2]=i+1;r=me[i>>0]|0}else r=0;pe[b>>2]=s+8;o=e+16|0;a=r<<24-s|pe[o>>2];pe[o>>2]=a;break}if(r){a=(me[i>>0]|0)<<8;r=i+1|0}else{a=0;r=i}if(r>>>0<n>>>0){i=me[r>>0]|0;r=r+1|0}else i=0;pe[o>>2]=r;pe[b>>2]=s+16;o=e+16|0;a=(i|a)<<16-s|pe[o>>2];pe[o>>2]=a}else{a=e+16|0;o=a;a=pe[a>>2]|0}}while(0);n=(a>>>16)+1|0;do{if(n>>>0<=(pe[g+16>>2]|0)>>>0){i=pe[(pe[g+168>>2]|0)+(a>>>(32-(pe[g+8>>2]|0)|0)<<2)>>2]|0;if((i|0)==-1){pe[u>>2]=1154;pe[u+4>>2]=3244;pe[u+8>>2]=1677;_r(v,1100,u)|0;yr(v,l)|0}r=i&65535;i=i>>>16;if((pe[t+8>>2]|0)>>>0<=r>>>0){pe[d>>2]=1154;pe[d+4>>2]=902;pe[d+8>>2]=1781;_r(v,1100,d)|0;yr(v,c)|0}if((me[(pe[t+4>>2]|0)+r>>0]|0|0)!=(i|0)){pe[h>>2]=1154;pe[h+4>>2]=3248;pe[h+8>>2]=1694;_r(v,1100,h)|0;yr(v,f)|0}}else{i=pe[g+20>>2]|0;while(1){r=i+-1|0;if(n>>>0>(pe[g+28+(r<<2)>>2]|0)>>>0)i=i+1|0;else break}r=(a>>>(32-i|0))+(pe[g+96+(r<<2)>>2]|0)|0;if(r>>>0<(pe[t>>2]|0)>>>0){r=ge[(pe[g+176>>2]|0)+(r<<1)>>1]|0;break}pe[p>>2]=1154;pe[p+4>>2]=3266;pe[p+8>>2]=1632;_r(v,1100,p)|0;yr(v,m)|0;b=0;ve=y;return b|0}}while(0);pe[o>>2]=pe[o>>2]<<i;pe[b>>2]=(pe[b>>2]|0)-i;b=r;ve=y;return b|0}function vt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+560|0;s=c+40|0;u=c+24|0;r=c;o=c+48|0;if(t>>>0>=33){pe[r>>2]=1154;pe[r+4>>2]=3190;pe[r+8>>2]=1634;_r(o,1100,r)|0;yr(o,c+16|0)|0}l=e+20|0;r=pe[l>>2]|0;if((r|0)>=(t|0)){a=e+16|0;o=a;a=pe[a>>2]|0;s=r;u=32-t|0;u=a>>>u;a=a<<t;pe[o>>2]=a;t=s-t|0;pe[l>>2]=t;ve=c;return u|0}n=e+4|0;a=e+8|0;i=e+16|0;do{e=pe[n>>2]|0;if((e|0)==(pe[a>>2]|0))e=0;else{pe[n>>2]=e+1;e=me[e>>0]|0}r=r+8|0;pe[l>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;_r(o,1100,u)|0;yr(o,s)|0;r=pe[l>>2]|0}e=e<<32-r|pe[i>>2];pe[i>>2]=e}while((r|0)<(t|0));u=32-t|0;u=e>>>u;s=e<<t;pe[i>>2]=s;t=r-t|0;pe[l>>2]=t;ve=c;return u|0}function bt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0;p=ve;ve=ve+544|0;f=p+16|0;h=p;c=p+24|0;if((e|0)==0|t>>>0<62){d=0;ve=p;return d|0}l=ot(300,0)|0;if(!l){d=0;ve=p;return d|0}pe[l>>2]=519686845;r=l+4|0;pe[r>>2]=0;i=l+8|0;pe[i>>2]=0;u=l+88|0;n=l+136|0;a=l+160|0;o=u;s=o+44|0;do{pe[o>>2]=0;o=o+4|0}while((o|0)<(s|0));de[u+44>>0]=0;m=l+184|0;o=l+208|0;s=l+232|0;g=l+252|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=l+268|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=l+284|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;pe[n>>2]=0;pe[n+4>>2]=0;pe[n+8>>2]=0;pe[n+12>>2]=0;pe[n+16>>2]=0;de[n+20>>0]=0;pe[a>>2]=0;pe[a+4>>2]=0;pe[a+8>>2]=0;pe[a+12>>2]=0;pe[a+16>>2]=0;de[a+20>>0]=0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;pe[m+12>>2]=0;pe[m+16>>2]=0;de[m+20>>0]=0;pe[o>>2]=0;pe[o+4>>2]=0;pe[o+8>>2]=0;pe[o+12>>2]=0;pe[o+16>>2]=0;de[o+20>>0]=0;pe[s>>2]=0;pe[s+4>>2]=0;pe[s+8>>2]=0;pe[s+12>>2]=0;de[s+16>>0]=0;do{if(((t>>>0>=74?((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)==18552:0)?((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0>=74:0)?((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0<=t>>>0:0){pe[u>>2]=e;pe[r>>2]=e;pe[i>>2]=t;if(Mt(l)|0){r=pe[u>>2]|0;if((me[r+39>>0]|0)<<8|(me[r+40>>0]|0)){if(!(Pt(l)|0))break;if(!(Ct(l)|0))break;r=pe[u>>2]|0}if(!((me[r+55>>0]|0)<<8|(me[r+56>>0]|0))){g=l;ve=p;return g|0}if(At(l)|0?Ot(l)|0:0){g=l;ve=p;return g|0}}}else d=7}while(0);if((d|0)==7)pe[u>>2]=0;Lt(l);if(!(l&7)){Ri[pe[104>>2]&1](l,0,0,1,pe[27]|0)|0;g=0;ve=p;return g|0}else{pe[h>>2]=1154;pe[h+4>>2]=2499;pe[h+8>>2]=1516;_r(c,1100,h)|0;yr(c,f)|0;g=0;ve=p;return g|0}return 0}function yt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+544|0;l=c;u=c+24|0;a=pe[e+88>>2]|0;s=(me[a+70+(n<<2)+1>>0]|0)<<16|(me[a+70+(n<<2)>>0]|0)<<24|(me[a+70+(n<<2)+2>>0]|0)<<8|(me[a+70+(n<<2)+3>>0]|0);o=n+1|0;if(o>>>0<(me[a+16>>0]|0)>>>0)a=(me[a+70+(o<<2)+1>>0]|0)<<16|(me[a+70+(o<<2)>>0]|0)<<24|(me[a+70+(o<<2)+2>>0]|0)<<8|(me[a+70+(o<<2)+3>>0]|0);else a=pe[e+8>>2]|0;if(a>>>0>s>>>0){u=e+4|0;u=pe[u>>2]|0;u=u+s|0;l=a-s|0;l=_t(e,u,l,t,r,i,n)|0;ve=c;return l|0}pe[l>>2]=1154;pe[l+4>>2]=3704;pe[l+8>>2]=1792;_r(u,1100,l)|0;yr(u,c+16|0)|0;u=e+4|0;u=pe[u>>2]|0;u=u+s|0;l=a-s|0;l=_t(e,u,l,t,r,i,n)|0;ve=c;return l|0}function _t(e,t,r,i,n,a,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;var s=0,u=0,l=0,c=0;c=pe[e+88>>2]|0;u=((me[c+12>>0]|0)<<8|(me[c+13>>0]|0))>>>o;l=((me[c+14>>0]|0)<<8|(me[c+15>>0]|0))>>>o;u=u>>>0>1?(u+3|0)>>>2:1;l=l>>>0>1?(l+3|0)>>>2:1;c=c+18|0;o=de[c>>0]|0;o=be(o<<24>>24==0|o<<24>>24==9?8:16,u)|0;if(a)if((a&3|0)==0&o>>>0<=a>>>0)o=a;else{e=0;return e|0}if((be(o,l)|0)>>>0>n>>>0){e=0;return e|0}a=(u+1|0)>>>1;s=(l+1|0)>>>1;if(!r){e=0;return e|0}pe[e+92>>2]=t;pe[e+96>>2]=t;pe[e+104>>2]=r;pe[e+100>>2]=t+r;pe[e+108>>2]=0;pe[e+112>>2]=0;switch(me[c>>0]|0|0){case 0:{It(e,i,n,o,u,l,a,s)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{Rt(e,i,n,o,u,l,a,s)|0;e=1;return e|0}case 9:{Dt(e,i,n,o,u,l,a,s)|0;e=1;return e|0}case 8:case 7:{jt(e,i,n,o,u,l,a,s)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function wt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+4>>2]|0}function xt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+8>>2]|0}function kt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+12>>2]|0}function Tt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+32>>2]|0}function St(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,s=0,u=0,l=0;u=ve;ve=ve+576|0;o=u+56|0;a=u+40|0;n=u+64|0;l=u;pe[l>>2]=40;lt(e,t,l)|0;i=(((pe[l+4>>2]|0)>>>r)+3|0)>>>2;t=(((pe[l+8>>2]|0)>>>r)+3|0)>>>2;r=l+32|0;e=pe[r+4>>2]|0;do{switch(pe[r>>2]|0){case 0:{if(!e)e=8;else s=13;break}case 1:{if(!e)s=12;else s=13;break}case 2:{if(!e)s=12;else s=13;break}case 3:{if(!e)s=12;else s=13;break}case 4:{if(!e)s=12;else s=13;break}case 5:{if(!e)s=12;else s=13;break}case 6:{if(!e)s=12;else s=13;break}case 7:{if(!e)s=12;else s=13;break}case 8:{if(!e)s=12;else s=13;break}case 9:{if(!e)e=8;else s=13;break}default:s=13}}while(0);if((s|0)==12)e=16;else if((s|0)==13){pe[a>>2]=1154;pe[a+4>>2]=2663;pe[a+8>>2]=1535;_r(n,1100,a)|0;yr(n,o)|0;e=0}l=be(be(t,i)|0,e)|0;ve=u;return l|0}function Et(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0;p=ve;ve=ve+608|0;f=p+80|0;d=p+64|0;s=p+56|0;o=p+40|0;c=p+88|0;m=p;h=p+84|0;pe[m>>2]=40;lt(e,t,m)|0;u=(((pe[m+4>>2]|0)>>>n)+3|0)>>>2;m=m+32|0;a=pe[m+4>>2]|0;do{switch(pe[m>>2]|0){case 0:{if(!a)a=8;else l=13;break}case 1:{if(!a)l=12;else l=13;break}case 2:{if(!a)l=12;else l=13;break}case 3:{if(!a)l=12;else l=13;break}case 4:{if(!a)l=12;else l=13;break}case 5:{if(!a)l=12;else l=13;break}case 6:{if(!a)l=12;else l=13;break}case 7:{if(!a)l=12;else l=13;break}case 8:{if(!a)l=12;else l=13;break}case 9:{if(!a)a=8;else l=13;break}default:l=13}}while(0);if((l|0)==12)a=16;else if((l|0)==13){pe[o>>2]=1154;pe[o+4>>2]=2663;pe[o+8>>2]=1535;_r(c,1100,o)|0;yr(c,s)|0;a=0}s=be(a,u)|0;o=bt(e,t)|0;pe[h>>2]=r;a=(o|0)==0;if(!(n>>>0>15|(i>>>0<8|a))?(pe[o>>2]|0)==519686845:0)yt(o,h,i,s,n)|0;if(a){ve=p;return}if((pe[o>>2]|0)!=519686845){ve=p;return}Lt(o);if(!(o&7)){Ri[pe[104>>2]&1](o,0,0,1,pe[27]|0)|0;ve=p;return}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;_r(c,1100,d)|0;yr(c,f)|0;ve=p;return}}function Mt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0;o=e+92|0;i=pe[e+4>>2]|0;a=e+88|0;n=pe[a>>2]|0;t=(me[n+68>>0]|0)<<8|(me[n+67>>0]|0)<<16|(me[n+69>>0]|0);r=i+t|0;n=(me[n+65>>0]|0)<<8|(me[n+66>>0]|0);if(!n){e=0;return e|0}pe[o>>2]=r;pe[e+96>>2]=r;pe[e+104>>2]=n;pe[e+100>>2]=i+(n+t);pe[e+108>>2]=0;pe[e+112>>2]=0;if(!(pt(o,e+116|0)|0)){e=0;return e|0}t=pe[a>>2]|0;do{if(!((me[t+39>>0]|0)<<8|(me[t+40>>0]|0))){if(!((me[t+55>>0]|0)<<8|(me[t+56>>0]|0))){e=0;return e|0}}else{if(!(pt(o,e+140|0)|0)){e=0;return e|0}if(pt(o,e+188|0)|0){t=pe[a>>2]|0;break}else{e=0;return e|0}}}while(0);if((me[t+55>>0]|0)<<8|(me[t+56>>0]|0)){if(!(pt(o,e+164|0)|0)){e=0;return e|0}if(!(pt(o,e+212|0)|0)){e=0;return e|0}}e=1;return e|0}function Pt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;p=ve;ve=ve+592|0;u=p+16|0;s=p;o=p+72|0;d=p+24|0;i=e+88|0;t=pe[i>>2]|0;f=(me[t+39>>0]|0)<<8|(me[t+40>>0]|0);c=e+236|0;a=e+240|0;r=pe[a>>2]|0;if((r|0)!=(f|0)){if(r>>>0<=f>>>0){do{if((pe[e+244>>2]|0)>>>0<f>>>0){if(nt(c,f,(r+1|0)==(f|0),4,0)|0){t=pe[a>>2]|0;break}de[e+248>>0]=1;d=0;ve=p;return d|0}else t=r}while(0);Yr((pe[c>>2]|0)+(t<<2)|0,0,f-t<<2|0)|0;t=pe[i>>2]|0}pe[a>>2]=f}l=e+92|0;r=pe[e+4>>2]|0;i=(me[t+34>>0]|0)<<8|(me[t+33>>0]|0)<<16|(me[t+35>>0]|0);n=r+i|0;t=(me[t+37>>0]|0)<<8|(me[t+36>>0]|0)<<16|(me[t+38>>0]|0);if(!t){d=0;ve=p;return d|0}pe[l>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=t;pe[e+100>>2]=r+(t+i);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[d+20>>2]=0;pe[d>>2]=0;pe[d+4>>2]=0;pe[d+8>>2]=0;pe[d+12>>2]=0;de[d+16>>0]=0;e=d+24|0;pe[d+44>>2]=0;pe[e>>2]=0;pe[e+4>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;de[e+16>>0]=0;if(pt(l,d)|0?(h=d+24|0,pt(l,h)|0):0){if(!(pe[a>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;_r(o,1100,s)|0;yr(o,u)|0}if(!f)t=1;else{i=0;n=0;a=0;t=0;o=0;e=0;s=0;r=pe[c>>2]|0;while(1){i=(gt(l,d)|0)+i&31;n=(gt(l,h)|0)+n&63;a=(gt(l,d)|0)+a&31;t=(gt(l,d)|0)+t|0;o=(gt(l,h)|0)+o&63;e=(gt(l,d)|0)+e&31;pe[r>>2]=n<<5|i<<11|a|t<<27|o<<21|e<<16;s=s+1|0;if((s|0)==(f|0)){t=1;break}else{t=t&31;r=r+4|0}}}}else t=0;ht(d+24|0);ht(d);d=t;ve=p;return d|0}function Ct(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0;S=ve;ve=ve+1024|0;s=S+16|0;o=S;a=S+504|0;T=S+480|0;x=S+284|0;k=S+88|0;w=S+24|0;n=pe[e+88>>2]|0;_=(me[n+47>>0]|0)<<8|(me[n+48>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(me[n+42>>0]|0)<<8|(me[n+41>>0]|0)<<16|(me[n+43>>0]|0);i=t+r|0;n=(me[n+45>>0]|0)<<8|(me[n+44>>0]|0)<<16|(me[n+46>>0]|0);if(!n){T=0;ve=S;return T|0}pe[y>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=n;pe[e+100>>2]=t+(n+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[T+20>>2]=0;pe[T>>2]=0;pe[T+4>>2]=0;pe[T+8>>2]=0;pe[T+12>>2]=0;de[T+16>>0]=0;if(pt(y,T)|0){r=0;i=-3;n=-3;while(1){pe[x+(r<<2)>>2]=i;pe[k+(r<<2)>>2]=n;t=(i|0)>2;r=r+1|0;if((r|0)==49)break;else{i=t?-3:i+1|0;n=(t&1)+n|0}}t=w;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));b=e+252|0;r=e+256|0;t=pe[r>>2]|0;e:do{if((t|0)==(_|0))u=13;else{if(t>>>0<=_>>>0){do{if((pe[e+260>>2]|0)>>>0<_>>>0)if(nt(b,_,(t+1|0)==(_|0),4,0)|0){t=pe[r>>2]|0;break}else{de[e+264>>0]=1;t=0;break e}}while(0);Yr((pe[b>>2]|0)+(t<<2)|0,0,_-t<<2|0)|0}pe[r>>2]=_;u=13}}while(0);do{if((u|0)==13){if(!_){pe[o>>2]=1154;pe[o+4>>2]=903;pe[o+8>>2]=1781;_r(a,1100,o)|0;yr(a,s)|0;t=1;break}i=w+4|0;n=w+8|0;e=w+12|0;a=w+16|0;o=w+20|0;s=w+24|0;u=w+28|0;l=w+32|0;c=w+36|0;h=w+40|0;f=w+44|0;d=w+48|0;p=w+52|0;m=w+56|0;g=w+60|0;v=0;r=pe[b>>2]|0;while(1){t=0;do{E=gt(y,T)|0;b=t<<1;M=w+(b<<2)|0;pe[M>>2]=(pe[M>>2]|0)+(pe[x+(E<<2)>>2]|0)&3;b=w+((b|1)<<2)|0;pe[b>>2]=(pe[b>>2]|0)+(pe[k+(E<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);pe[r>>2]=(me[1725+(pe[i>>2]|0)>>0]|0)<<2|(me[1725+(pe[w>>2]|0)>>0]|0)|(me[1725+(pe[n>>2]|0)>>0]|0)<<4|(me[1725+(pe[e>>2]|0)>>0]|0)<<6|(me[1725+(pe[a>>2]|0)>>0]|0)<<8|(me[1725+(pe[o>>2]|0)>>0]|0)<<10|(me[1725+(pe[s>>2]|0)>>0]|0)<<12|(me[1725+(pe[u>>2]|0)>>0]|0)<<14|(me[1725+(pe[l>>2]|0)>>0]|0)<<16|(me[1725+(pe[c>>2]|0)>>0]|0)<<18|(me[1725+(pe[h>>2]|0)>>0]|0)<<20|(me[1725+(pe[f>>2]|0)>>0]|0)<<22|(me[1725+(pe[d>>2]|0)>>0]|0)<<24|(me[1725+(pe[p>>2]|0)>>0]|0)<<26|(me[1725+(pe[m>>2]|0)>>0]|0)<<28|(me[1725+(pe[g>>2]|0)>>0]|0)<<30;v=v+1|0;if((v|0)==(_|0)){t=1;break}else r=r+4|0}}}while(0)}else t=0;ht(T);M=t;ve=S;return M|0}function At(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0;f=ve;ve=ve+560|0;u=f+16|0;s=f;o=f+48|0;h=f+24|0;n=pe[e+88>>2]|0;c=(me[n+55>>0]|0)<<8|(me[n+56>>0]|0);l=e+92|0;t=pe[e+4>>2]|0;r=(me[n+50>>0]|0)<<8|(me[n+49>>0]|0)<<16|(me[n+51>>0]|0);i=t+r|0;n=(me[n+53>>0]|0)<<8|(me[n+52>>0]|0)<<16|(me[n+54>>0]|0);if(!n){h=0;ve=f;return h|0}pe[l>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=n;pe[e+100>>2]=t+(n+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[h+20>>2]=0;pe[h>>2]=0;pe[h+4>>2]=0;pe[h+8>>2]=0;pe[h+12>>2]=0;de[h+16>>0]=0;e:do{if(pt(l,h)|0){a=e+268|0;r=e+272|0;t=pe[r>>2]|0;if((t|0)!=(c|0)){if(t>>>0<=c>>>0){do{if((pe[e+276>>2]|0)>>>0<c>>>0)if(nt(a,c,(t+1|0)==(c|0),2,0)|0){t=pe[r>>2]|0;break}else{de[e+280>>0]=1;t=0;break e}}while(0);Yr((pe[a>>2]|0)+(t<<1)|0,0,c-t<<1|0)|0}pe[r>>2]=c}if(!c){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;_r(o,1100,s)|0;yr(o,u)|0;t=1;break}r=0;i=0;n=0;t=pe[a>>2]|0;while(1){u=gt(l,h)|0;r=u+r&255;i=(gt(l,h)|0)+i&255;$[t>>1]=i<<8|r;n=n+1|0;if((n|0)==(c|0)){t=1;break}else t=t+2|0}}else t=0}while(0);ht(h);h=t;ve=f;return h|0}function Ot(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0;S=ve;ve=ve+2432|0;s=S+16|0;o=S;a=S+1912|0;T=S+1888|0;x=S+988|0;k=S+88|0;w=S+24|0;n=pe[e+88>>2]|0;_=(me[n+63>>0]|0)<<8|(me[n+64>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(me[n+58>>0]|0)<<8|(me[n+57>>0]|0)<<16|(me[n+59>>0]|0);i=t+r|0;n=(me[n+61>>0]|0)<<8|(me[n+60>>0]|0)<<16|(me[n+62>>0]|0);if(!n){T=0;ve=S;return T|0}pe[y>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=n;pe[e+100>>2]=t+(n+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[T+20>>2]=0;pe[T>>2]=0;pe[T+4>>2]=0;pe[T+8>>2]=0;pe[T+12>>2]=0;de[T+16>>0]=0;if(pt(y,T)|0){r=0;i=-7;n=-7;while(1){pe[x+(r<<2)>>2]=i;pe[k+(r<<2)>>2]=n;t=(i|0)>6;r=r+1|0;if((r|0)==225)break;else{i=t?-7:i+1|0;n=(t&1)+n|0}}t=w;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));b=e+284|0;r=_*3|0;i=e+288|0;t=pe[i>>2]|0;e:do{if((t|0)==(r|0))u=13;else{if(t>>>0<=r>>>0){do{if((pe[e+292>>2]|0)>>>0<r>>>0)if(nt(b,r,(t+1|0)==(r|0),2,0)|0){t=pe[i>>2]|0;break}else{de[e+296>>0]=1;t=0;break e}}while(0);Yr((pe[b>>2]|0)+(t<<1)|0,0,r-t<<1|0)|0}pe[i>>2]=r;u=13}}while(0);do{if((u|0)==13){if(!_){pe[o>>2]=1154;pe[o+4>>2]=903;pe[o+8>>2]=1781;_r(a,1100,o)|0;yr(a,s)|0;t=1;break}i=w+4|0;n=w+8|0;e=w+12|0;a=w+16|0;o=w+20|0;s=w+24|0;u=w+28|0;l=w+32|0;c=w+36|0;h=w+40|0;f=w+44|0;d=w+48|0;p=w+52|0;m=w+56|0;g=w+60|0;v=0;r=pe[b>>2]|0;while(1){t=0;do{E=gt(y,T)|0;b=t<<1;M=w+(b<<2)|0;pe[M>>2]=(pe[M>>2]|0)+(pe[x+(E<<2)>>2]|0)&7;b=w+((b|1)<<2)|0;pe[b>>2]=(pe[b>>2]|0)+(pe[k+(E<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);E=me[1729+(pe[o>>2]|0)>>0]|0;$[r>>1]=(me[1729+(pe[i>>2]|0)>>0]|0)<<3|(me[1729+(pe[w>>2]|0)>>0]|0)|(me[1729+(pe[n>>2]|0)>>0]|0)<<6|(me[1729+(pe[e>>2]|0)>>0]|0)<<9|(me[1729+(pe[a>>2]|0)>>0]|0)<<12|E<<15;M=me[1729+(pe[h>>2]|0)>>0]|0;$[r+2>>1]=(me[1729+(pe[s>>2]|0)>>0]|0)<<2|E>>>1|(me[1729+(pe[u>>2]|0)>>0]|0)<<5|(me[1729+(pe[l>>2]|0)>>0]|0)<<8|(me[1729+(pe[c>>2]|0)>>0]|0)<<11|M<<14;$[r+4>>1]=(me[1729+(pe[f>>2]|0)>>0]|0)<<1|M>>>2|(me[1729+(pe[d>>2]|0)>>0]|0)<<4|(me[1729+(pe[p>>2]|0)>>0]|0)<<7|(me[1729+(pe[m>>2]|0)>>0]|0)<<10|(me[1729+(pe[g>>2]|0)>>0]|0)<<13;v=v+1|0;if((v|0)==(_|0)){t=1;break}else r=r+6|0}}}while(0)}else t=0;ht(T);M=t;ve=S;return M|0}function It(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,oe=0,se=0,ue=0,le=0,ce=0,he=0,fe=0;ce=ve;ve=ve+720|0;le=ce+184|0;se=ce+168|0;oe=ce+160|0;ae=ce+144|0;ne=ce+136|0;ie=ce+120|0;re=ce+112|0;ee=ce+96|0;$=ce+88|0;Q=ce+72|0;Z=ce+64|0;K=ce+48|0;J=ce+40|0;ue=ce+24|0;te=ce+16|0;Y=ce;G=ce+208|0;V=ce+192|0;B=e+240|0;N=pe[B>>2]|0;q=e+256|0;H=pe[q>>2]|0;r=de[(pe[e+88>>2]|0)+17>>0]|0;W=i>>>2;if(!(r<<24>>24)){ve=ce;return 1}U=(s|0)==0;X=s+-1|0;I=(a&1|0)!=0;R=i<<1;D=e+92|0;j=e+116|0;L=e+140|0;z=e+236|0;F=o+-1|0;O=(n&1|0)!=0;A=e+188|0;S=e+252|0;E=W+1|0;M=W+2|0;P=W+3|0;C=F<<4;k=r&255;r=0;a=0;n=1;T=0;do{if(!U){w=pe[t+(T<<2)>>2]|0;x=0;while(1){b=x&1;u=(b|0)==0;v=(b<<5^32)+-16|0;b=(b<<1^2)+-1|0;_=u?o:-1;l=u?0:F;e=(x|0)==(X|0);y=I&e;if((l|0)!=(_|0)){g=I&e^1;m=u?w:w+C|0;while(1){if((n|0)==1)n=gt(D,j)|0|512;p=n&7;n=n>>>3;u=me[1823+p>>0]|0;e=0;do{f=(gt(D,L)|0)+a|0;d=f-N|0;a=d>>31;a=a&f|d&~a;if((pe[B>>2]|0)>>>0<=a>>>0){pe[Y>>2]=1154;pe[Y+4>>2]=903;pe[Y+8>>2]=1781;_r(G,1100,Y)|0;yr(G,te)|0}pe[V+(e<<2)>>2]=pe[(pe[z>>2]|0)+(a<<2)>>2];e=e+1|0}while(e>>>0<u>>>0);d=O&(l|0)==(F|0);if(y|d){f=0;do{c=be(f,i)|0;e=m+c|0;u=(f|0)==0|g;h=f<<1;fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;do{if(d){if(!u){he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;break}pe[e>>2]=pe[V+((me[1831+(p<<2)+h>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[ae>>2]=1154;pe[ae+4>>2]=903;pe[ae+8>>2]=1781;_r(G,1100,ae)|0;yr(G,oe)|0}pe[m+(c+4)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r}else{if(!u){he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;break}pe[e>>2]=pe[V+((me[1831+(p<<2)+h>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[ie>>2]=1154;pe[ie+4>>2]=903;pe[ie+8>>2]=1781;_r(G,1100,ie)|0;yr(G,ne)|0}pe[m+(c+4)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;pe[m+(c+8)>>2]=pe[V+((me[(h|1)+(1831+(p<<2))>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;_r(G,1100,se)|0;yr(G,le)|0}pe[m+(c+12)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2]}}while(0);f=f+1|0}while((f|0)!=2)}else{pe[m>>2]=pe[V+((me[1831+(p<<2)>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ue>>2]=1154;pe[ue+4>>2]=903;pe[ue+8>>2]=1781;_r(G,1100,ue)|0;yr(G,J)|0}pe[m+4>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];pe[m+8>>2]=pe[V+((me[1831+(p<<2)+1>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[K>>2]=1154;pe[K+4>>2]=903;pe[K+8>>2]=1781;_r(G,1100,K)|0;yr(G,Z)|0}pe[m+12>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];pe[m+(W<<2)>>2]=pe[V+((me[1831+(p<<2)+2>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;_r(G,1100,Q)|0;yr(G,$)|0}pe[m+(E<<2)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];pe[m+(M<<2)>>2]=pe[V+((me[1831+(p<<2)+3>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;_r(G,1100,ee)|0;yr(G,re)|0}pe[m+(P<<2)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2]}l=l+b|0;if((l|0)==(_|0))break;else m=m+v|0}}x=x+1|0;if((x|0)==(s|0))break;else w=w+R|0}}T=T+1|0}while((T|0)!=(k|0));ve=ce;return 1}function Rt(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,oe=0,se=0,ue=0,le=0,ce=0,he=0,fe=0;he=ve;ve=ve+640|0;ue=he+88|0;se=he+72|0;oe=he+64|0;ae=he+48|0;ne=he+40|0;ce=he+24|0;le=he+16|0;ie=he;te=he+128|0;re=he+112|0;ee=he+96|0;B=e+240|0;N=pe[B>>2]|0;q=e+256|0;Z=pe[q>>2]|0;Q=e+272|0;$=pe[Q>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=he;return 1}X=(s|0)==0;H=s+-1|0;W=i<<1;G=e+92|0;V=e+116|0;Y=o+-1|0;J=e+212|0;K=e+188|0;F=(n&1|0)==0;z=(a&1|0)==0;O=e+288|0;I=e+284|0;R=e+252|0;D=e+140|0;j=e+236|0;L=e+164|0;C=e+268|0;A=Y<<5;M=r&255;r=0;n=0;a=0;e=0;u=1;P=0;do{if(!X){S=pe[t+(P<<2)>>2]|0;E=0;while(1){k=E&1;l=(k|0)==0;x=(k<<6^64)+-32|0;k=(k<<1^2)+-1|0;T=l?o:-1;c=l?0:Y;if((c|0)!=(T|0)){w=z|(E|0)!=(H|0);_=l?S:S+A|0;while(1){if((u|0)==1)u=gt(G,V)|0|512;y=u&7;u=u>>>3;h=me[1823+y>>0]|0;l=0;do{v=(gt(G,L)|0)+n|0;b=v-$|0;n=b>>31;n=n&v|b&~n;if((pe[Q>>2]|0)>>>0<=n>>>0){pe[ie>>2]=1154;pe[ie+4>>2]=903;pe[ie+8>>2]=1781;_r(te,1100,ie)|0;yr(te,le)|0}pe[ee+(l<<2)>>2]=ge[(pe[C>>2]|0)+(n<<1)>>1];l=l+1|0}while(l>>>0<h>>>0);l=0;do{v=(gt(G,D)|0)+e|0;b=v-N|0;e=b>>31;e=e&v|b&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[ce>>2]=1154;pe[ce+4>>2]=903;pe[ce+8>>2]=1781;_r(te,1100,ce)|0;yr(te,ne)|0}pe[re+(l<<2)>>2]=pe[(pe[j>>2]|0)+(e<<2)>>2];l=l+1|0}while(l>>>0<h>>>0);b=F|(c|0)!=(Y|0);g=0;v=_;while(1){m=w|(g|0)==0;p=g<<1;f=0;d=v;while(1){h=(gt(G,J)|0)+r|0;l=h-U|0;r=l>>31;r=r&h|l&~r;l=(gt(G,K)|0)+a|0;h=l-Z|0;a=h>>31;a=a&l|h&~a;if((b|(f|0)==0)&m){l=me[f+p+(1831+(y<<2))>>0]|0;h=r*3|0;if((pe[O>>2]|0)>>>0<=h>>>0){pe[ae>>2]=1154;pe[ae+4>>2]=903;pe[ae+8>>2]=1781;_r(te,1100,ae)|0;yr(te,oe)|0}fe=pe[I>>2]|0;pe[d>>2]=(ge[fe+(h<<1)>>1]|0)<<16|pe[ee+(l<<2)>>2];pe[d+4>>2]=(ge[fe+(h+2<<1)>>1]|0)<<16|(ge[fe+(h+1<<1)>>1]|0);pe[d+8>>2]=pe[re+(l<<2)>>2];if((pe[q>>2]|0)>>>0<=a>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;_r(te,1100,se)|0;yr(te,ue)|0}pe[d+12>>2]=pe[(pe[R>>2]|0)+(a<<2)>>2]}f=f+1|0;if((f|0)==2)break;else d=d+16|0}g=g+1|0;if((g|0)==2)break;else v=v+i|0}c=c+k|0;if((c|0)==(T|0))break;else _=_+x|0}}E=E+1|0;if((E|0)==(s|0))break;else S=S+W|0}}P=P+1|0}while((P|0)!=(M|0));ve=he;return 1}function Dt(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0;Z=ve;ve=ve+608|0;Y=Z+64|0;V=Z+48|0;G=Z+40|0;K=Z+24|0;J=Z+16|0;W=Z;H=Z+88|0;q=Z+72|0;R=e+272|0;D=pe[R>>2]|0;r=pe[e+88>>2]|0;j=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=Z;return 1}L=(s|0)==0;z=s+-1|0;F=i<<1;B=e+92|0;N=e+116|0;U=o+-1|0;X=e+212|0;I=(a&1|0)==0;C=e+288|0;A=e+284|0;O=e+164|0;M=e+268|0;P=U<<4;E=r&255;S=(n&1|0)!=0;r=0;a=0;e=1;T=0;do{if(!L){x=pe[t+(T<<2)>>2]|0;k=0;while(1){_=k&1;n=(_|0)==0;y=(_<<5^32)+-16|0;_=(_<<1^2)+-1|0;w=n?o:-1;u=n?0:U;if((u|0)!=(w|0)){b=I|(k|0)!=(z|0);v=n?x:x+P|0;while(1){if((e|0)==1)e=gt(B,N)|0|512;g=e&7;e=e>>>3;l=me[1823+g>>0]|0;n=0;do{p=(gt(B,O)|0)+a|0;m=p-D|0;a=m>>31;a=a&p|m&~a;if((pe[R>>2]|0)>>>0<=a>>>0){pe[W>>2]=1154;pe[W+4>>2]=903;pe[W+8>>2]=1781;_r(H,1100,W)|0;yr(H,J)|0}pe[q+(n<<2)>>2]=ge[(pe[M>>2]|0)+(a<<1)>>1];n=n+1|0}while(n>>>0<l>>>0);m=(u|0)==(U|0)&S;d=0;p=v;while(1){f=b|(d|0)==0;h=d<<1;n=(gt(B,X)|0)+r|0;c=n-j|0;l=c>>31;l=l&n|c&~l;if(f){r=me[1831+(g<<2)+h>>0]|0;n=l*3|0;if((pe[C>>2]|0)>>>0<=n>>>0){pe[K>>2]=1154;pe[K+4>>2]=903;pe[K+8>>2]=1781;_r(H,1100,K)|0;yr(H,G)|0}c=pe[A>>2]|0;pe[p>>2]=(ge[c+(n<<1)>>1]|0)<<16|pe[q+(r<<2)>>2];pe[p+4>>2]=(ge[c+(n+2<<1)>>1]|0)<<16|(ge[c+(n+1<<1)>>1]|0)}c=p+8|0;n=(gt(B,X)|0)+l|0;l=n-j|0;r=l>>31;r=r&n|l&~r;if(!(m|f^1)){n=me[(h|1)+(1831+(g<<2))>>0]|0;l=r*3|0;if((pe[C>>2]|0)>>>0<=l>>>0){pe[V>>2]=1154;pe[V+4>>2]=903;pe[V+8>>2]=1781;_r(H,1100,V)|0;yr(H,Y)|0}f=pe[A>>2]|0;pe[c>>2]=(ge[f+(l<<1)>>1]|0)<<16|pe[q+(n<<2)>>2];pe[p+12>>2]=(ge[f+(l+2<<1)>>1]|0)<<16|(ge[f+(l+1<<1)>>1]|0)}d=d+1|0;if((d|0)==2)break;else p=p+i|0}u=u+_|0;if((u|0)==(w|0))break;else v=v+y|0}}k=k+1|0;if((k|0)==(s|0))break;else x=x+F|0}}T=T+1|0}while((T|0)!=(E|0));ve=Z;return 1}function jt(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,oe=0;oe=ve;ve=ve+640|0;ie=oe+88|0;re=oe+72|0;te=oe+64|0;ee=oe+48|0;$=oe+40|0;ae=oe+24|0;ne=oe+16|0;Q=oe;Z=oe+128|0;J=oe+112|0;K=oe+96|0;B=e+272|0;N=pe[B>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=oe;return 1}X=(s|0)==0;q=s+-1|0;H=i<<1;W=e+92|0;G=e+116|0;V=o+-1|0;Y=e+212|0;F=(n&1|0)==0;z=(a&1|0)==0;D=e+288|0;j=e+284|0;L=e+164|0;I=e+268|0;R=V<<5;A=r&255;r=0;n=0;a=0;e=0;u=1;O=0;do{if(!X){P=pe[t+(O<<2)>>2]|0;C=0;while(1){E=C&1;l=(E|0)==0;S=(E<<6^64)+-32|0;E=(E<<1^2)+-1|0;M=l?o:-1;c=l?0:V;if((c|0)!=(M|0)){T=z|(C|0)!=(q|0);k=l?P:P+R|0;while(1){if((u|0)==1)u=gt(W,G)|0|512;x=u&7;u=u>>>3;h=me[1823+x>>0]|0;l=0;do{_=(gt(W,L)|0)+e|0;w=_-N|0;e=w>>31;e=e&_|w&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;_r(Z,1100,Q)|0;yr(Z,ne)|0}pe[J+(l<<2)>>2]=ge[(pe[I>>2]|0)+(e<<1)>>1];l=l+1|0}while(l>>>0<h>>>0);l=0;do{_=(gt(W,L)|0)+n|0;w=_-N|0;n=w>>31;n=n&_|w&~n;if((pe[B>>2]|0)>>>0<=n>>>0){pe[ae>>2]=1154;pe[ae+4>>2]=903;pe[ae+8>>2]=1781;_r(Z,1100,ae)|0;yr(Z,$)|0}pe[K+(l<<2)>>2]=ge[(pe[I>>2]|0)+(n<<1)>>1];l=l+1|0}while(l>>>0<h>>>0);w=F|(c|0)!=(V|0);y=0;_=k;while(1){b=T|(y|0)==0;v=y<<1;m=0;g=_;while(1){p=(gt(W,Y)|0)+a|0;d=p-U|0;a=d>>31;a=a&p|d&~a;d=(gt(W,Y)|0)+r|0;p=d-U|0;r=p>>31;r=r&d|p&~r;if((w|(m|0)==0)&b){d=me[m+v+(1831+(x<<2))>>0]|0;p=a*3|0;l=pe[D>>2]|0;if(l>>>0<=p>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;_r(Z,1100,ee)|0;yr(Z,te)|0;l=pe[D>>2]|0}h=pe[j>>2]|0;f=r*3|0;if(l>>>0>f>>>0)l=h;else{pe[re>>2]=1154;pe[re+4>>2]=903;pe[re+8>>2]=1781;_r(Z,1100,re)|0;yr(Z,ie)|0;l=pe[j>>2]|0}pe[g>>2]=(ge[h+(p<<1)>>1]|0)<<16|pe[J+(d<<2)>>2];pe[g+4>>2]=(ge[h+(p+2<<1)>>1]|0)<<16|(ge[h+(p+1<<1)>>1]|0);pe[g+8>>2]=(ge[l+(f<<1)>>1]|0)<<16|pe[K+(d<<2)>>2];pe[g+12>>2]=(ge[l+(f+2<<1)>>1]|0)<<16|(ge[l+(f+1<<1)>>1]|0)}m=m+1|0;if((m|0)==2)break;else g=g+16|0}y=y+1|0;if((y|0)==2)break;else _=_+i|0}c=c+E|0;if((c|0)==(M|0))break;else k=k+S|0}}C=C+1|0;if((C|0)==(s|0))break;else P=P+H|0}}O=O+1|0}while((O|0)!=(A|0));ve=oe;return 1}function Lt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0;f=ve;ve=ve+608|0;h=f+88|0;c=f+72|0;u=f+64|0;s=f+48|0;a=f+40|0;o=f+24|0;n=f+16|0;i=f;l=f+96|0;pe[e>>2]=0;t=e+284|0;r=pe[t>>2]|0;if(r){if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1516;_r(l,1100,i)|0;yr(l,n)|0}pe[t>>2]=0;pe[e+288>>2]=0;pe[e+292>>2]=0}de[e+296>>0]=0;t=e+268|0;r=pe[t>>2]|0;if(r){if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[o>>2]=1154;pe[o+4>>2]=2499;pe[o+8>>2]=1516;_r(l,1100,o)|0;yr(l,a)|0}pe[t>>2]=0;pe[e+272>>2]=0;pe[e+276>>2]=0}de[e+280>>0]=0;t=e+252|0;r=pe[t>>2]|0;if(r){if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1516;_r(l,1100,s)|0;yr(l,u)|0}pe[t>>2]=0;pe[e+256>>2]=0;pe[e+260>>2]=0}de[e+264>>0]=0;t=e+236|0;r=pe[t>>2]|0;if(!r){h=e+248|0;de[h>>0]=0;h=e+212|0;ht(h);h=e+188|0;ht(h);h=e+164|0;ht(h);h=e+140|0;ht(h);h=e+116|0;ht(h);ve=f;return}if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[c>>2]=1154;pe[c+4>>2]=2499;pe[c+8>>2]=1516;_r(l,1100,c)|0;yr(l,h)|0}pe[t>>2]=0;pe[e+240>>2]=0;pe[e+244>>2]=0;h=e+248|0;de[h>>0]=0;h=e+212|0;ht(h);h=e+188|0;ht(h);h=e+164|0;ht(h);h=e+140|0;ht(h);h=e+116|0;ht(h);ve=f;return}function zt(e,t){e=e|0;t=t|0;var r=0;r=ve;ve=ve+16|0;pe[r>>2]=t;t=pe[63]|0;wr(t,e,r)|0;vr(10,t)|0;Xe()}function Ft(){var e=0,t=0;e=ve;ve=ve+16|0;if(!(Le(200,2)|0)){t=De(pe[49]|0)|0;ve=e;return t|0}else zt(2090,e);return 0}function Bt(e){e=e|0;Ur(e);return}function Nt(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Oi[e&3]();zt(2139,t)}function Ut(){var e=0,t=0;e=Ft()|0;if(((e|0)!=0?(t=pe[e>>2]|0,(t|0)!=0):0)?(e=t+48|0,(pe[e>>2]&-256|0)==1126902528?(pe[e+4>>2]|0)==1129074247:0):0)Nt(pe[t+12>>2]|0);t=pe[28]|0;pe[28]=t+0;Nt(t)}function Xt(e){e=e|0;return}function qt(e){e=e|0;return}function Ht(e){e=e|0;return}function Wt(e){e=e|0;return}function Gt(e){e=e|0;Bt(e);return}function Vt(e){e=e|0;Bt(e);return}function Yt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;o=ve;ve=ve+64|0;a=o;if((e|0)!=(t|0))if((t|0)!=0?(n=Qt(t,24,40,0)|0,(n|0)!=0):0){t=a;i=t+56|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(i|0));pe[a>>2]=n;pe[a+8>>2]=e;pe[a+12>>2]=-1;pe[a+48>>2]=1;Di[pe[(pe[n>>2]|0)+28>>2]&3](n,a,pe[r>>2]|0,1);if((pe[a+24>>2]|0)==1){pe[r>>2]=pe[a+16>>2];t=1}else t=0}else t=0;else t=1;ve=o;return t|0}function Jt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0;e=t+16|0;n=pe[e>>2]|0;do{if(n){if((n|0)!=(r|0)){i=t+36|0;pe[i>>2]=(pe[i>>2]|0)+1;pe[t+24>>2]=2;de[t+54>>0]=1;break}e=t+24|0;if((pe[e>>2]|0)==2)pe[e>>2]=i}else{pe[e>>2]=r;pe[t+24>>2]=i;pe[t+36>>2]=1}}while(0);return}function Kt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(pe[t+8>>2]|0))Jt(0,t,r,i);return}function Zt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(pe[t+8>>2]|0))Jt(0,t,r,i);else{e=pe[e+8>>2]|0;Di[pe[(pe[e>>2]|0)+28>>2]&3](e,t,r,i)}return}function Qt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0;d=ve;ve=ve+64|0;f=d;h=pe[e>>2]|0;c=e+(pe[h+-8>>2]|0)|0;h=pe[h+-4>>2]|0;pe[f>>2]=r;pe[f+4>>2]=e;pe[f+8>>2]=t;pe[f+12>>2]=i;i=f+16|0;e=f+20|0;t=f+24|0;n=f+28|0;a=f+32|0;o=f+40|0;s=(h|0)==(r|0);u=i;l=u+36|0;do{pe[u>>2]=0;u=u+4|0}while((u|0)<(l|0));$[i+36>>1]=0;de[i+38>>0]=0;e:do{if(s){pe[f+48>>2]=1;Ii[pe[(pe[r>>2]|0)+20>>2]&3](r,f,c,c,1,0);i=(pe[t>>2]|0)==1?c:0}else{Mi[pe[(pe[h>>2]|0)+24>>2]&3](h,f,c,1,0);switch(pe[f+36>>2]|0){case 0:{i=(pe[o>>2]|0)==1&(pe[n>>2]|0)==1&(pe[a>>2]|0)==1?pe[e>>2]|0:0;break e}case 1:break;default:{i=0;break e}}if((pe[t>>2]|0)!=1?!((pe[o>>2]|0)==0&(pe[n>>2]|0)==1&(pe[a>>2]|0)==1):0){i=0;break}i=pe[i>>2]|0}}while(0);ve=d;return i|0}function $t(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;de[t+53>>0]=1;do{if((pe[t+4>>2]|0)==(i|0)){de[t+52>>0]=1;i=t+16|0;e=pe[i>>2]|0;if(!e){pe[i>>2]=r;pe[t+24>>2]=n;pe[t+36>>2]=1;if(!((n|0)==1?(pe[t+48>>2]|0)==1:0))break;de[t+54>>0]=1;break}if((e|0)!=(r|0)){n=t+36|0;pe[n>>2]=(pe[n>>2]|0)+1;de[t+54>>0]=1;break}e=t+24|0;i=pe[e>>2]|0;if((i|0)==2){pe[e>>2]=n;i=n}if((i|0)==1?(pe[t+48>>2]|0)==1:0)de[t+54>>0]=1}}while(0);return}function er(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0;e:do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(a=t+28|0,(pe[a>>2]|0)!=1):0)pe[a>>2]=i}else{if((e|0)!=(pe[t>>2]|0)){s=pe[e+8>>2]|0;Mi[pe[(pe[s>>2]|0)+24>>2]&3](s,t,r,i,n);break}if((pe[t+16>>2]|0)!=(r|0)?(o=t+20|0,(pe[o>>2]|0)!=(r|0)):0){pe[t+32>>2]=i;i=t+44|0;if((pe[i>>2]|0)==4)break;a=t+52|0;de[a>>0]=0;u=t+53|0;de[u>>0]=0;e=pe[e+8>>2]|0;Ii[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,r,1,n);if(de[u>>0]|0){if(!(de[a>>0]|0)){a=1;s=13}}else{a=0;s=13}do{if((s|0)==13){pe[o>>2]=r;u=t+40|0;pe[u>>2]=(pe[u>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0){de[t+54>>0]=1;if(a)break}else s=16;if((s|0)==16?a:0)break;pe[i>>2]=4;break e}}while(0);pe[i>>2]=3;break}if((i|0)==1)pe[t+32>>2]=1}}while(0);return}function tr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0;do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(o=t+28|0,(pe[o>>2]|0)!=1):0)pe[o>>2]=i}else if((e|0)==(pe[t>>2]|0)){if((pe[t+16>>2]|0)!=(r|0)?(a=t+20|0,(pe[a>>2]|0)!=(r|0)):0){pe[t+32>>2]=i;pe[a>>2]=r;n=t+40|0;pe[n>>2]=(pe[n>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0)de[t+54>>0]=1;pe[t+44>>2]=4;break}if((i|0)==1)pe[t+32>>2]=1}}while(0);return}function rr(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,i,n);else{e=pe[e+8>>2]|0;Ii[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,i,n,a)}return}function ir(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,i,n);return}function nr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=ve;ve=ve+16|0;i=n;pe[i>>2]=pe[r>>2];e=Ei[pe[(pe[e>>2]|0)+16>>2]&7](e,t,i)|0;if(e)pe[r>>2]=pe[i>>2];ve=n;return e&1|0}function ar(e){e=e|0;if(!e)e=0;else e=(Qt(e,24,72,0)|0)!=0;return e&1|0}function or(){var e=0,t=0,r=0,i=0,n=0,a=0,o=0,s=0;n=ve;ve=ve+48|0;o=n+32|0;r=n+24|0;s=n+16|0;a=n;n=n+36|0;e=Ft()|0;if((e|0)!=0?(i=pe[e>>2]|0,(i|0)!=0):0){e=i+48|0;t=pe[e>>2]|0;e=pe[e+4>>2]|0;if(!((t&-256|0)==1126902528&(e|0)==1129074247)){pe[r>>2]=pe[51];zt(2368,r)}if((t|0)==1126902529&(e|0)==1129074247)e=pe[i+44>>2]|0;else e=i+80|0;pe[n>>2]=e;i=pe[i>>2]|0;e=pe[i+4>>2]|0;if(Ei[pe[(pe[8>>2]|0)+16>>2]&7](8,i,n)|0){s=pe[n>>2]|0;n=pe[51]|0;s=Ci[pe[(pe[s>>2]|0)+8>>2]&1](s)|0;pe[a>>2]=n;pe[a+4>>2]=e;pe[a+8>>2]=s;zt(2282,a)}else{pe[s>>2]=pe[51];pe[s+4>>2]=e;zt(2327,s)}}zt(2406,o)}function sr(){var e=0;e=ve;ve=ve+16|0;if(!(ze(196,6)|0)){ve=e;return}else zt(2179,e)}function ur(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Ur(e);if(!(Ne(pe[49]|0,0)|0)){ve=t;return}else zt(2229,t)}function lr(e){e=e|0;var t=0,r=0;t=0;while(1){if((me[2427+t>>0]|0)==(e|0)){r=2;break}t=t+1|0;if((t|0)==87){t=87;e=2515;r=5;break}}if((r|0)==2)if(!t)e=2515;else{e=2515;r=5}if((r|0)==5)while(1){r=e;while(1){e=r+1|0;if(!(de[r>>0]|0))break;else r=e}t=t+-1|0;if(!t)break;else r=5}return e|0}function cr(){var e=0;if(!(pe[52]|0))e=264;else{e=(je()|0)+60|0;e=pe[e>>2]|0}return e|0}function hr(e){e=e|0;var t=0;if(e>>>0>4294963200){t=cr()|0;pe[t>>2]=0-e;e=-1}return e|0}function fr(e,t){e=+e;t=t|0;var r=0,i=0,n=0;ee[te>>3]=e;r=pe[te>>2]|0;i=pe[te+4>>2]|0;n=Jr(r|0,i|0,52)|0;n=n&2047;switch(n|0){case 0:{if(e!=0.0){e=+fr(e*18446744073709552.0e3,t);r=(pe[t>>2]|0)+-64|0}else r=0;pe[t>>2]=r;break}case 2047:break;default:{pe[t>>2]=n+-1022;pe[te>>2]=r;pe[te+4>>2]=i&-2146435073|1071644672;e=+ee[te>>3]}}return+e}function dr(e,t){e=+e;t=t|0;return+ +fr(e,t)}function pr(e,t,r){e=e|0;t=t|0;r=r|0;do{if(e){if(t>>>0<128){de[e>>0]=t;e=1;break}if(t>>>0<2048){de[e>>0]=t>>>6|192;de[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){de[e>>0]=t>>>12|224;de[e+1>>0]=t>>>6&63|128;de[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){de[e>>0]=t>>>18|240;de[e+1>>0]=t>>>12&63|128;de[e+2>>0]=t>>>6&63|128;de[e+3>>0]=t&63|128;e=4;break}else{e=cr()|0;pe[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function mr(e,t){e=e|0;t=t|0;if(!e)e=0;else e=pr(e,t,0)|0;return e|0}function gr(e){e=e|0;var t=0,r=0;do{if(e){if((pe[e+76>>2]|0)<=-1){t=Rr(e)|0;break}r=(Tr(e)|0)==0;t=Rr(e)|0;if(!r)Sr(e)}else{if(!(pe[65]|0))t=0;else t=gr(pe[65]|0)|0;Ue(236);e=pe[58]|0;if(e)do{if((pe[e+76>>2]|0)>-1)r=Tr(e)|0;else r=0;if((pe[e+20>>2]|0)>>>0>(pe[e+28>>2]|0)>>>0)t=Rr(e)|0|t;if(r)Sr(e);e=pe[e+56>>2]|0}while((e|0)!=0);Fe(236)}}while(0);return t|0}function vr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0;if((pe[t+76>>2]|0)>=0?(Tr(t)|0)!=0:0){if((de[t+75>>0]|0)!=(e|0)?(i=t+20|0,n=pe[i>>2]|0,n>>>0<(pe[t+16>>2]|0)>>>0):0){pe[i>>2]=n+1;de[n>>0]=e;r=e&255}else r=Er(t,e)|0;Sr(t)}else o=3;do{if((o|0)==3){if((de[t+75>>0]|0)!=(e|0)?(a=t+20|0,r=pe[a>>2]|0,r>>>0<(pe[t+16>>2]|0)>>>0):0){pe[a>>2]=r+1;de[r>>0]=e;r=e&255;break}r=Er(t,e)|0}}while(0);return r|0}function br(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;i=r+16|0;n=pe[i>>2]|0;if(!n)if(!(Or(r)|0)){n=pe[i>>2]|0;a=4}else i=0;else a=4;e:do{if((a|0)==4){o=r+20|0;a=pe[o>>2]|0;if((n-a|0)>>>0<t>>>0){i=Ei[pe[r+36>>2]&7](r,e,t)|0;break}t:do{if((de[r+75>>0]|0)>-1){i=t;while(1){if(!i){n=a;i=0;break t}n=i+-1|0;if((de[e+n>>0]|0)==10)break;else i=n}if((Ei[pe[r+36>>2]&7](r,e,i)|0)>>>0<i>>>0)break e;t=t-i|0;e=e+i|0;n=pe[o>>2]|0}else{n=a;i=0}}while(0);Qr(n|0,e|0,t|0)|0;pe[o>>2]=(pe[o>>2]|0)+t;i=i+t|0}}while(0);return i|0}function yr(e,t){e=e|0;t=t|0;var r=0,i=0;r=ve;ve=ve+16|0;i=r;pe[i>>2]=t;t=wr(pe[64]|0,e,i)|0;ve=r;return t|0}function _r(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=ve;ve=ve+16|0;n=i;pe[n>>2]=r;r=kr(e,t,n)|0;ve=i;return r|0}function wr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0;m=ve;ve=ve+224|0;h=m+120|0;p=m+80|0;d=m;f=m+136|0;i=p;n=i+40|0;do{pe[i>>2]=0;i=i+4|0}while((i|0)<(n|0));pe[h>>2]=pe[r>>2];if((Dr(0,t,h,d,p)|0)<0)r=-1;else{if((pe[e+76>>2]|0)>-1)l=Tr(e)|0;else l=0;r=pe[e>>2]|0;c=r&32;if((de[e+74>>0]|0)<1)pe[e>>2]=r&-33;r=e+48|0;if(!(pe[r>>2]|0)){n=e+44|0;a=pe[n>>2]|0;pe[n>>2]=f;o=e+28|0;pe[o>>2]=f;s=e+20|0;pe[s>>2]=f;pe[r>>2]=80;u=e+16|0;pe[u>>2]=f+80;i=Dr(e,t,h,d,p)|0;if(a){Ei[pe[e+36>>2]&7](e,0,0)|0;i=(pe[s>>2]|0)==0?-1:i;pe[n>>2]=a;pe[r>>2]=0;pe[u>>2]=0;pe[o>>2]=0;pe[s>>2]=0}}else i=Dr(e,t,h,d,p)|0;r=pe[e>>2]|0;pe[e>>2]=r|c;if(l)Sr(e);r=(r&32|0)==0?i:-1}ve=m;return r|0}function xr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+128|0;n=c+112|0;l=c;a=l;o=268;s=a+112|0;do{pe[a>>2]=pe[o>>2];a=a+4|0;o=o+4|0}while((a|0)<(s|0));if((t+-1|0)>>>0>2147483646)if(!t){t=1;u=4}else{t=cr()|0;pe[t>>2]=75;t=-1}else{n=e;u=4}if((u|0)==4){u=-2-n|0;u=t>>>0>u>>>0?u:t;pe[l+48>>2]=u;e=l+20|0;pe[e>>2]=n;pe[l+44>>2]=n;t=n+u|0;n=l+16|0;pe[n>>2]=t;pe[l+28>>2]=t;t=wr(l,r,i)|0;if(u){r=pe[e>>2]|0;de[r+(((r|0)==(pe[n>>2]|0))<<31>>31)>>0]=0}}ve=c;return t|0}function kr(e,t,r){e=e|0;t=t|0;r=r|0;return xr(e,2147483647,t,r)|0}function Tr(e){e=e|0;return 0}function Sr(e){e=e|0;return}function Er(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0;u=ve;ve=ve+16|0;s=u;o=t&255;de[s>>0]=o;i=e+16|0;n=pe[i>>2]|0;if(!n)if(!(Or(e)|0)){n=pe[i>>2]|0;a=4}else r=-1;else a=4;do{if((a|0)==4){i=e+20|0;a=pe[i>>2]|0;if(a>>>0<n>>>0?(r=t&255,(r|0)!=(de[e+75>>0]|0)):0){pe[i>>2]=a+1;de[a>>0]=o;break}if((Ei[pe[e+36>>2]&7](e,s,1)|0)==1)r=me[s>>0]|0;else r=-1}}while(0);ve=u;return r|0}function Mr(e){e=e|0;var t=0,r=0;t=ve;ve=ve+16|0;r=t;pe[r>>2]=pe[e+60>>2];e=hr(Ee(6,r|0)|0)|0;ve=t;return e|0}function Pr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0;n=ve;ve=ve+32|0;a=n;i=n+20|0;pe[a>>2]=pe[e+60>>2];pe[a+4>>2]=0;pe[a+8>>2]=t;pe[a+12>>2]=i;pe[a+16>>2]=r;if((hr(We(140,a|0)|0)|0)<0){pe[i>>2]=-1;e=-1}else e=pe[i>>2]|0;ve=n;return e|0}function Cr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;p=ve;ve=ve+48|0;h=p+16|0;c=p;i=p+32|0;f=e+28|0;n=pe[f>>2]|0;pe[i>>2]=n;d=e+20|0;n=(pe[d>>2]|0)-n|0;pe[i+4>>2]=n;pe[i+8>>2]=t;pe[i+12>>2]=r;u=e+60|0;l=e+44|0;t=2;n=n+r|0;while(1){if(!(pe[52]|0)){pe[h>>2]=pe[u>>2];pe[h+4>>2]=i;pe[h+8>>2]=t;o=hr(Ge(146,h|0)|0)|0}else{qe(7,e|0);pe[c>>2]=pe[u>>2];pe[c+4>>2]=i;pe[c+8>>2]=t;o=hr(Ge(146,c|0)|0)|0;Te(0)}if((n|0)==(o|0)){n=6;break}if((o|0)<0){n=8;break}n=n-o|0;a=pe[i+4>>2]|0;if(o>>>0<=a>>>0)if((t|0)==2){pe[f>>2]=(pe[f>>2]|0)+o;s=a;t=2}else s=a;else{s=pe[l>>2]|0;pe[f>>2]=s;pe[d>>2]=s;s=pe[i+12>>2]|0;o=o-a|0;i=i+8|0;t=t+-1|0}pe[i>>2]=(pe[i>>2]|0)+o;pe[i+4>>2]=s-o}if((n|0)==6){h=pe[l>>2]|0;pe[e+16>>2]=h+(pe[e+48>>2]|0);e=h;pe[f>>2]=e;pe[d>>2]=e}else if((n|0)==8){pe[e+16>>2]=0;pe[f>>2]=0;pe[d>>2]=0;pe[e>>2]=pe[e>>2]|32;if((t|0)==2)r=0;else r=r-(pe[i+4>>2]|0)|0}ve=p;return r|0}function Ar(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=ve;ve=ve+80|0;i=n;pe[e+36>>2]=3;if((pe[e>>2]&64|0)==0?(pe[i>>2]=pe[e+60>>2],pe[i+4>>2]=21505,pe[i+8>>2]=n+12,(Se(54,i|0)|0)!=0):0)de[e+75>>0]=-1;i=Cr(e,t,r)|0;ve=n;return i|0}function Or(e){e=e|0;var t=0,r=0;t=e+74|0;r=de[t>>0]|0;de[t>>0]=r+255|r;t=pe[e>>2]|0;if(!(t&8)){pe[e+8>>2]=0;pe[e+4>>2]=0;t=pe[e+44>>2]|0;pe[e+28>>2]=t;pe[e+20>>2]=t;pe[e+16>>2]=t+(pe[e+48>>2]|0);t=0}else{pe[e>>2]=t|32;t=-1}return t|0}function Ir(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;a=t&255;i=(r|0)!=0;e:do{if(i&(e&3|0)!=0){n=t&255;while(1){if((de[e>>0]|0)==n<<24>>24){o=6;break e}e=e+1|0;r=r+-1|0;i=(r|0)!=0;if(!(i&(e&3|0)!=0)){o=5;break}}}else o=5}while(0);if((o|0)==5)if(i)o=6;else r=0;e:do{if((o|0)==6){n=t&255;if((de[e>>0]|0)!=n<<24>>24){i=be(a,16843009)|0;t:do{if(r>>>0>3)while(1){a=pe[e>>2]^i;if((a&-2139062144^-2139062144)&a+-16843009)break;e=e+4|0;r=r+-4|0;if(r>>>0<=3){o=11;break t}}else o=11}while(0);if((o|0)==11)if(!r){r=0;break}while(1){if((de[e>>0]|0)==n<<24>>24)break e;e=e+1|0;r=r+-1|0;if(!r){r=0;break}}}}}while(0);return((r|0)!=0?e:0)|0}function Rr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0;t=e+20|0;a=e+28|0;if((pe[t>>2]|0)>>>0>(pe[a>>2]|0)>>>0?(Ei[pe[e+36>>2]&7](e,0,0)|0,(pe[t>>2]|0)==0):0)t=-1;else{o=e+4|0;r=pe[o>>2]|0;i=e+8|0;n=pe[i>>2]|0;if(r>>>0<n>>>0)Ei[pe[e+40>>2]&7](e,r-n|0,1)|0;pe[e+16>>2]=0;pe[a>>2]=0;pe[t>>2]=0;pe[i>>2]=0;pe[o>>2]=0;t=0}return t|0}function Dr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0.0,c=0,h=0,f=0,d=0,p=0.0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0;Q=ve;ve=ve+624|0;V=Q+24|0;J=Q+16|0;Y=Q+588|0;X=Q+576|0;G=Q;B=Q+536|0;Z=Q+8|0;K=Q+528|0;A=(e|0)!=0;O=B+40|0;F=O;B=B+39|0;N=Z+4|0;U=X+12|0;X=X+11|0;q=Y;H=U;W=H-q|0;I=-2-q|0;R=H+2|0;D=V+288|0;j=Y+9|0;L=j;z=Y+8|0;a=0;m=t;o=0;t=0;e:while(1){do{if((a|0)>-1)if((o|0)>(2147483647-a|0)){a=cr()|0;pe[a>>2]=75;a=-1;break}else{a=o+a|0;break}}while(0);o=de[m>>0]|0;if(!(o<<24>>24)){C=245;break}else s=m;t:while(1){switch(o<<24>>24){case 37:{o=s;C=9;break t}case 0:{o=s;break t}default:{}}P=s+1|0;o=de[P>>0]|0;s=P}t:do{if((C|0)==9)while(1){C=0;if((de[o+1>>0]|0)!=37)break t;s=s+1|0;o=o+2|0;if((de[o>>0]|0)==37)C=9;else break}}while(0);v=s-m|0;if(A?(pe[e>>2]&32|0)==0:0)br(m,v,e)|0;if((s|0)!=(m|0)){m=o;o=v;continue}c=o+1|0;s=de[c>>0]|0;u=(s<<24>>24)+-48|0;if(u>>>0<10){P=(de[o+2>>0]|0)==36;c=P?o+3|0:c;s=de[c>>0]|0;d=P?u:-1;t=P?1:t}else d=-1;o=s<<24>>24;t:do{if((o&-32|0)==32){u=0;while(1){if(!(1<<o+-32&75913)){h=u;o=c;break t}u=1<<(s<<24>>24)+-32|u;c=c+1|0;s=de[c>>0]|0;o=s<<24>>24;if((o&-32|0)!=32){h=u;o=c;break}}}else{h=0;o=c}}while(0);do{if(s<<24>>24==42){u=o+1|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[o+2>>0]|0)==36:0){pe[n+(s<<2)>>2]=10;t=1;o=o+3|0;s=pe[i+((de[u>>0]|0)+-48<<3)>>2]|0}else{if(t){a=-1;break e}if(!A){g=h;o=u;t=0;P=0;break}t=(pe[r>>2]|0)+(4-1)&~(4-1);s=pe[t>>2]|0;pe[r>>2]=t+4;t=0;o=u}if((s|0)<0){g=h|8192;P=0-s|0}else{g=h;P=s}}else{u=(s<<24>>24)+-48|0;if(u>>>0<10){s=0;do{s=(s*10|0)+u|0;o=o+1|0;u=(de[o>>0]|0)+-48|0}while(u>>>0<10);if((s|0)<0){a=-1;break e}else{g=h;P=s}}else{g=h;P=0}}}while(0);t:do{if((de[o>>0]|0)==46){u=o+1|0;s=de[u>>0]|0;if(s<<24>>24!=42){c=(s<<24>>24)+-48|0;if(c>>>0<10){o=u;s=0}else{o=u;c=0;break}while(1){s=(s*10|0)+c|0;o=o+1|0;c=(de[o>>0]|0)+-48|0;if(c>>>0>=10){c=s;break t}}}u=o+2|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[o+3>>0]|0)==36:0){pe[n+(s<<2)>>2]=10;o=o+4|0;c=pe[i+((de[u>>0]|0)+-48<<3)>>2]|0;break}if(t){a=-1;break e}if(A){o=(pe[r>>2]|0)+(4-1)&~(4-1);c=pe[o>>2]|0;pe[r>>2]=o+4;o=u}else{o=u;c=0}}else c=-1}while(0);f=0;while(1){s=(de[o>>0]|0)+-65|0;if(s>>>0>57){a=-1;break e}u=o+1|0;s=de[5359+(f*58|0)+s>>0]|0;h=s&255;if((h+-1|0)>>>0<8){o=u;f=h}else{M=u;break}}if(!(s<<24>>24)){a=-1;break}u=(d|0)>-1;do{if(s<<24>>24==19)if(u){a=-1;break e}else C=52;else{if(u){pe[n+(d<<2)>>2]=h;S=i+(d<<3)|0;E=pe[S+4>>2]|0;C=G;pe[C>>2]=pe[S>>2];pe[C+4>>2]=E;C=52;break}if(!A){a=0;break e}zr(G,h,r)}}while(0);if((C|0)==52?(C=0,!A):0){m=M;o=v;continue}d=de[o>>0]|0;d=(f|0)!=0&(d&15|0)==3?d&-33:d;u=g&-65537;E=(g&8192|0)==0?g:u;t:do{switch(d|0){case 110:switch(f|0){case 0:{pe[pe[G>>2]>>2]=a;m=M;o=v;continue e}case 1:{pe[pe[G>>2]>>2]=a;m=M;o=v;continue e}case 2:{m=pe[G>>2]|0;pe[m>>2]=a;pe[m+4>>2]=((a|0)<0)<<31>>31;m=M;o=v;continue e}case 3:{$[pe[G>>2]>>1]=a;m=M;o=v;continue e}case 4:{de[pe[G>>2]>>0]=a;m=M;o=v;continue e}case 6:{pe[pe[G>>2]>>2]=a;m=M;o=v;continue e}case 7:{m=pe[G>>2]|0;pe[m>>2]=a;pe[m+4>>2]=((a|0)<0)<<31>>31;m=M;o=v;continue e}default:{m=M;o=v;continue e}}case 112:{f=E|8;c=c>>>0>8?c:8;d=120;C=64;break}case 88:case 120:{f=E;C=64;break}case 111:{u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;if((s|0)==0&(u|0)==0)o=O;else{o=O;do{o=o+-1|0;de[o>>0]=s&7|48;s=Jr(s|0,u|0,3)|0;u=re}while(!((s|0)==0&(u|0)==0))}if(!(E&8)){s=E;f=0;h=5839;C=77}else{f=F-o+1|0;s=E;c=(c|0)<(f|0)?f:c;f=0;h=5839;C=77}break}case 105:case 100:{s=G;o=pe[s>>2]|0;s=pe[s+4>>2]|0;if((s|0)<0){o=Vr(0,0,o|0,s|0)|0;s=re;u=G;pe[u>>2]=o;pe[u+4>>2]=s;u=1;h=5839;C=76;break t}if(!(E&2048)){h=E&1;u=h;h=(h|0)==0?5839:5841;C=76}else{u=1;h=5840;C=76}break}case 117:{s=G;o=pe[s>>2]|0;s=pe[s+4>>2]|0;u=0;h=5839;C=76;break}case 99:{de[B>>0]=pe[G>>2];m=B;s=1;f=0;d=5839;o=O;break}case 109:{o=cr()|0;o=lr(pe[o>>2]|0)|0;C=82;break}case 115:{o=pe[G>>2]|0;o=(o|0)!=0?o:5849;C=82;break}case 67:{pe[Z>>2]=pe[G>>2];pe[N>>2]=0;pe[G>>2]=Z;c=-1;C=86;break}case 83:{if(!c){Br(e,32,P,0,E);o=0;C=98}else C=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{l=+ee[G>>3];pe[J>>2]=0;ee[te>>3]=l;if((pe[te+4>>2]|0)>=0)if(!(E&2048)){S=E&1;T=S;S=(S|0)==0?5857:5862}else{T=1;S=5859}else{l=-l;T=1;S=5856}ee[te>>3]=l;k=pe[te+4>>2]&2146435072;do{if(k>>>0<2146435072|(k|0)==2146435072&0<0){p=+dr(l,J)*2.0;s=p!=0.0;if(s)pe[J>>2]=(pe[J>>2]|0)+-1;w=d|32;if((w|0)==97){m=d&32;v=(m|0)==0?S:S+9|0;g=T|2;o=12-c|0;do{if(!(c>>>0>11|(o|0)==0)){l=8.0;do{o=o+-1|0;l=l*16.0}while((o|0)!=0);if((de[v>>0]|0)==45){l=-(l+(-p-l));break}else{l=p+l-l;break}}else l=p}while(0);s=pe[J>>2]|0;o=(s|0)<0?0-s|0:s;o=Fr(o,((o|0)<0)<<31>>31,U)|0;if((o|0)==(U|0)){de[X>>0]=48;o=X}de[o+-1>>0]=(s>>31&2)+43;f=o+-2|0;de[f>>0]=d+15;h=(c|0)<1;u=(E&8|0)==0;s=Y;while(1){S=~~l;o=s+1|0;de[s>>0]=me[5823+S>>0]|m;l=(l-+(S|0))*16.0;do{if((o-q|0)==1){if(u&(h&l==0.0))break;de[o>>0]=46;o=s+2|0}}while(0);if(!(l!=0.0))break;else s=o}c=(c|0)!=0&(I+o|0)<(c|0)?R+c-f|0:W-f+o|0;u=c+g|0;Br(e,32,P,u,E);if(!(pe[e>>2]&32))br(v,g,e)|0;Br(e,48,P,u,E^65536);o=o-q|0;if(!(pe[e>>2]&32))br(Y,o,e)|0;s=H-f|0;Br(e,48,c-(o+s)|0,0,0);if(!(pe[e>>2]&32))br(f,s,e)|0;Br(e,32,P,u,E^8192);o=(u|0)<(P|0)?P:u;break}o=(c|0)<0?6:c;if(s){s=(pe[J>>2]|0)+-28|0;pe[J>>2]=s;l=p*268435456.0}else{l=p;s=pe[J>>2]|0}k=(s|0)<0?V:D;x=k;s=k;do{_=~~l>>>0;pe[s>>2]=_;s=s+4|0;l=(l-+(_>>>0))*1.0e9}while(l!=0.0);u=s;s=pe[J>>2]|0;if((s|0)>0){h=k;while(1){f=(s|0)>29?29:s;c=u+-4|0;do{if(c>>>0<h>>>0)c=h;else{s=0;do{_=Kr(pe[c>>2]|0,0,f|0)|0;_=Zr(_|0,re|0,s|0,0)|0;s=re;y=oi(_|0,s|0,1e9,0)|0;pe[c>>2]=y;s=ai(_|0,s|0,1e9,0)|0;c=c+-4|0}while(c>>>0>=h>>>0);if(!s){c=h;break}c=h+-4|0;pe[c>>2]=s}}while(0);while(1){if(u>>>0<=c>>>0)break;s=u+-4|0;if(!(pe[s>>2]|0))u=s;else break}s=(pe[J>>2]|0)-f|0;pe[J>>2]=s;if((s|0)>0)h=c;else break}}else c=k;if((s|0)<0){v=((o+25|0)/9|0)+1|0;b=(w|0)==102;m=c;while(1){g=0-s|0;g=(g|0)>9?9:g;do{if(m>>>0<u>>>0){s=(1<<g)+-1|0;h=1e9>>>g;c=0;f=m;do{_=pe[f>>2]|0;pe[f>>2]=(_>>>g)+c;c=be(_&s,h)|0;f=f+4|0}while(f>>>0<u>>>0);s=(pe[m>>2]|0)==0?m+4|0:m;if(!c){c=s;break}pe[u>>2]=c;c=s;u=u+4|0}else c=(pe[m>>2]|0)==0?m+4|0:m}while(0);s=b?k:c;u=(u-s>>2|0)>(v|0)?s+(v<<2)|0:u;s=(pe[J>>2]|0)+g|0;pe[J>>2]=s;if((s|0)>=0){m=c;break}else m=c}}else m=c;do{if(m>>>0<u>>>0){s=(x-m>>2)*9|0;h=pe[m>>2]|0;if(h>>>0<10)break;else c=10;do{c=c*10|0;s=s+1|0}while(h>>>0>=c>>>0)}else s=0}while(0);y=(w|0)==103;_=(o|0)!=0;c=o-((w|0)!=102?s:0)+((_&y)<<31>>31)|0;if((c|0)<(((u-x>>2)*9|0)+-9|0)){f=c+9216|0;b=(f|0)/9|0;c=k+(b+-1023<<2)|0;f=((f|0)%9|0)+1|0;if((f|0)<9){h=10;do{h=h*10|0;f=f+1|0}while((f|0)!=9)}else h=10;g=pe[c>>2]|0;v=(g>>>0)%(h>>>0)|0;if((v|0)==0?(k+(b+-1022<<2)|0)==(u|0):0)h=m;else C=163;do{if((C|0)==163){C=0;p=(((g>>>0)/(h>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;f=(h|0)/2|0;do{if(v>>>0<f>>>0)l=.5;else{if((v|0)==(f|0)?(k+(b+-1022<<2)|0)==(u|0):0){l=1.0;break}l=1.5}}while(0);do{if(T){if((de[S>>0]|0)!=45)break;p=-p;l=-l}}while(0);f=g-v|0;pe[c>>2]=f;if(!(p+l!=p)){h=m;break}w=f+h|0;pe[c>>2]=w;if(w>>>0>999999999){s=m;while(1){h=c+-4|0;pe[c>>2]=0;if(h>>>0<s>>>0){s=s+-4|0;pe[s>>2]=0}w=(pe[h>>2]|0)+1|0;pe[h>>2]=w;if(w>>>0>999999999)c=h;else{m=s;c=h;break}}}s=(x-m>>2)*9|0;f=pe[m>>2]|0;if(f>>>0<10){h=m;break}else h=10;do{h=h*10|0;s=s+1|0}while(f>>>0>=h>>>0);h=m}}while(0);w=c+4|0;m=h;u=u>>>0>w>>>0?w:u}v=0-s|0;while(1){if(u>>>0<=m>>>0){b=0;w=u;break}c=u+-4|0;if(!(pe[c>>2]|0))u=c;else{b=1;w=u;break}}do{if(y){o=(_&1^1)+o|0;if((o|0)>(s|0)&(s|0)>-5){d=d+-1|0;o=o+-1-s|0}else{d=d+-2|0;o=o+-1|0}u=E&8;if(u)break;do{if(b){u=pe[w+-4>>2]|0;if(!u){c=9;break}if(!((u>>>0)%10|0)){h=10;c=0}else{c=0;break}do{h=h*10|0;c=c+1|0}while(((u>>>0)%(h>>>0)|0|0)==0)}else c=9}while(0);u=((w-x>>2)*9|0)+-9|0;if((d|32|0)==102){u=u-c|0;u=(u|0)<0?0:u;o=(o|0)<(u|0)?o:u;u=0;break}else{u=u+s-c|0;u=(u|0)<0?0:u;o=(o|0)<(u|0)?o:u;u=0;break}}else u=E&8}while(0);g=o|u;h=(g|0)!=0&1;f=(d|32|0)==102;if(f){s=(s|0)>0?s:0;d=0}else{c=(s|0)<0?v:s;c=Fr(c,((c|0)<0)<<31>>31,U)|0;if((H-c|0)<2)do{c=c+-1|0;de[c>>0]=48}while((H-c|0)<2);de[c+-1>>0]=(s>>31&2)+43;x=c+-2|0;de[x>>0]=d;s=H-x|0;d=x}v=T+1+o+h+s|0;Br(e,32,P,v,E);if(!(pe[e>>2]&32))br(S,T,e)|0;Br(e,48,P,v,E^65536);do{if(f){c=m>>>0>k>>>0?k:m;s=c;do{u=Fr(pe[s>>2]|0,0,j)|0;do{if((s|0)==(c|0)){if((u|0)!=(j|0))break;de[z>>0]=48;u=z}else{if(u>>>0<=Y>>>0)break;do{u=u+-1|0;de[u>>0]=48}while(u>>>0>Y>>>0)}}while(0);if(!(pe[e>>2]&32))br(u,L-u|0,e)|0;s=s+4|0}while(s>>>0<=k>>>0);do{if(g){if(pe[e>>2]&32)break;br(5891,1,e)|0}}while(0);if((o|0)>0&s>>>0<w>>>0){u=s;while(1){s=Fr(pe[u>>2]|0,0,j)|0;if(s>>>0>Y>>>0)do{s=s+-1|0;de[s>>0]=48}while(s>>>0>Y>>>0);if(!(pe[e>>2]&32))br(s,(o|0)>9?9:o,e)|0;u=u+4|0;s=o+-9|0;if(!((o|0)>9&u>>>0<w>>>0)){o=s;break}else o=s}}Br(e,48,o+9|0,9,0)}else{f=b?w:m+4|0;if((o|0)>-1){h=(u|0)==0;c=m;do{s=Fr(pe[c>>2]|0,0,j)|0;if((s|0)==(j|0)){de[z>>0]=48;s=z}do{if((c|0)==(m|0)){u=s+1|0;if(!(pe[e>>2]&32))br(s,1,e)|0;if(h&(o|0)<1){s=u;break}if(pe[e>>2]&32){s=u;break}br(5891,1,e)|0;s=u}else{if(s>>>0<=Y>>>0)break;do{s=s+-1|0;de[s>>0]=48}while(s>>>0>Y>>>0)}}while(0);u=L-s|0;if(!(pe[e>>2]&32))br(s,(o|0)>(u|0)?u:o,e)|0;o=o-u|0;c=c+4|0}while(c>>>0<f>>>0&(o|0)>-1)}Br(e,48,o+18|0,18,0);if(pe[e>>2]&32)break;br(d,H-d|0,e)|0}}while(0);Br(e,32,P,v,E^8192);o=(v|0)<(P|0)?P:v}else{f=(d&32|0)!=0;h=l!=l|0.0!=0.0;s=h?0:T;c=s+3|0;Br(e,32,P,c,u);o=pe[e>>2]|0;if(!(o&32)){br(S,s,e)|0;o=pe[e>>2]|0}if(!(o&32))br(h?f?5883:5887:f?5875:5879,3,e)|0;Br(e,32,P,c,E^8192);o=(c|0)<(P|0)?P:c}}while(0);m=M;continue e}default:{u=E;s=c;f=0;d=5839;o=O}}}while(0);t:do{if((C|0)==64){u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;h=d&32;if(!((s|0)==0&(u|0)==0)){o=O;do{o=o+-1|0;de[o>>0]=me[5823+(s&15)>>0]|h;s=Jr(s|0,u|0,4)|0;u=re}while(!((s|0)==0&(u|0)==0));C=G;if((f&8|0)==0|(pe[C>>2]|0)==0&(pe[C+4>>2]|0)==0){s=f;f=0;h=5839;C=77}else{s=f;f=2;h=5839+(d>>4)|0;C=77}}else{o=O;s=f;f=0;h=5839;C=77}}else if((C|0)==76){o=Fr(o,s,O)|0;s=E;f=u;C=77}else if((C|0)==82){C=0;E=Ir(o,0,c)|0;S=(E|0)==0;m=o;s=S?c:E-o|0;f=0;d=5839;o=S?o+c|0:E}else if((C|0)==86){C=0;s=0;o=0;h=pe[G>>2]|0;while(1){u=pe[h>>2]|0;if(!u)break;o=mr(K,u)|0;if((o|0)<0|o>>>0>(c-s|0)>>>0)break;s=o+s|0;if(c>>>0>s>>>0)h=h+4|0;else break}if((o|0)<0){a=-1;break e}Br(e,32,P,s,E);if(!s){o=0;C=98}else{u=0;c=pe[G>>2]|0;while(1){o=pe[c>>2]|0;if(!o){o=s;C=98;break t}o=mr(K,o)|0;u=o+u|0;if((u|0)>(s|0)){o=s;C=98;break t}if(!(pe[e>>2]&32))br(K,o,e)|0;if(u>>>0>=s>>>0){o=s;C=98;break}else c=c+4|0}}}}while(0);if((C|0)==98){C=0;Br(e,32,P,o,E^8192);m=M;o=(P|0)>(o|0)?P:o;continue}if((C|0)==77){C=0;u=(c|0)>-1?s&-65537:s;s=G;s=(pe[s>>2]|0)!=0|(pe[s+4>>2]|0)!=0;if((c|0)!=0|s){s=(s&1^1)+(F-o)|0;m=o;s=(c|0)>(s|0)?c:s;d=h;o=O}else{m=O;s=0;d=h;o=O}}h=o-m|0;s=(s|0)<(h|0)?h:s;c=f+s|0;o=(P|0)<(c|0)?c:P;Br(e,32,o,c,u);if(!(pe[e>>2]&32))br(d,f,e)|0;Br(e,48,o,c,u^65536);Br(e,48,s,h,0);if(!(pe[e>>2]&32))br(m,h,e)|0;Br(e,32,o,c,u^8192);m=M}e:do{if((C|0)==245)if(!e)if(t){a=1;while(1){t=pe[n+(a<<2)>>2]|0;if(!t)break;zr(i+(a<<3)|0,t,r);a=a+1|0;if((a|0)>=10){a=1;break e}}if((a|0)<10)while(1){if(pe[n+(a<<2)>>2]|0){a=-1;break e}a=a+1|0;if((a|0)>=10){a=1;break}}else a=1}else a=0}while(0);ve=Q;return a|0}function jr(e){e=e|0;if(!(pe[e+68>>2]|0))Sr(e);return}function Lr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=e+20|0;n=pe[i>>2]|0;e=(pe[e+16>>2]|0)-n|0;e=e>>>0>r>>>0?r:e;Qr(n|0,t|0,e|0)|0;pe[i>>2]=(pe[i>>2]|0)+e;return r|0}function zr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0.0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{i=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[i>>2]|0;pe[r>>2]=i+4;pe[e>>2]=t;break e}case 10:{i=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=t;pe[i+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{i=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=t;pe[i+4>>2]=0;break e}case 12:{i=(pe[r>>2]|0)+(8-1)&~(8-1);t=i;n=pe[t>>2]|0;t=pe[t+4>>2]|0;pe[r>>2]=i+8;i=e;pe[i>>2]=n;pe[i+4>>2]=t;break e}case 13:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;i=(i&65535)<<16>>16;n=e;pe[n>>2]=i;pe[n+4>>2]=((i|0)<0)<<31>>31;break e}case 14:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=i&65535;pe[n+4>>2]=0;break e}case 15:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;i=(i&255)<<24>>24;n=e;pe[n>>2]=i;pe[n+4>>2]=((i|0)<0)<<31>>31;break e}case 16:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=i&255;pe[n+4>>2]=0;break e}case 17:{n=(pe[r>>2]|0)+(8-1)&~(8-1);a=+ee[n>>3];pe[r>>2]=n+8;ee[e>>3]=a;break e}case 18:{n=(pe[r>>2]|0)+(8-1)&~(8-1);a=+ee[n>>3];pe[r>>2]=n+8;ee[e>>3]=a;break e}default:break e}}while(0)}while(0);return}function Fr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if(t>>>0>0|(t|0)==0&e>>>0>4294967295)while(1){i=oi(e|0,t|0,10,0)|0;r=r+-1|0;de[r>>0]=i|48;i=ai(e|0,t|0,10,0)|0;if(t>>>0>9|(t|0)==9&e>>>0>4294967295){e=i;t=re}else{e=i;break}}if(e)while(1){r=r+-1|0;de[r>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}return r|0}function Br(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0;s=ve;ve=ve+256|0;o=s;do{if((r|0)>(i|0)&(n&73728|0)==0){n=r-i|0;Yr(o|0,t|0,(n>>>0>256?256:n)|0)|0;t=pe[e>>2]|0;a=(t&32|0)==0;if(n>>>0>255){i=r-i|0;do{if(a){br(o,256,e)|0;t=pe[e>>2]|0}n=n+-256|0;a=(t&32|0)==0}while(n>>>0>255);if(a)n=i&255;else break}else if(!a)break;br(o,n,e)|0}}while(0);ve=s;return}function Nr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0;do{if(e>>>0<245){d=e>>>0<11?16:e+11&-8;e=d>>>3;s=pe[151]|0;r=s>>>e;if(r&3){e=(r&1^1)+e|0;i=e<<1;r=644+(i<<2)|0;i=644+(i+2<<2)|0;n=pe[i>>2]|0;a=n+8|0;o=pe[a>>2]|0;do{if((r|0)!=(o|0)){if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+12|0;if((pe[t>>2]|0)==(n|0)){pe[t>>2]=r;pe[i>>2]=o;break}else Xe()}else pe[151]=s&~(1<<e)}while(0);z=e<<3;pe[n+4>>2]=z|3;z=n+(z|4)|0;pe[z>>2]=pe[z>>2]|1;z=a;return z|0}o=pe[153]|0;if(d>>>0>o>>>0){if(r){i=2<<e;i=r<<e&(i|0-i);i=(i&0-i)+-1|0;u=i>>>12&16;i=i>>>u;n=i>>>5&8;i=i>>>n;a=i>>>2&4;i=i>>>a;r=i>>>1&2;i=i>>>r;e=i>>>1&1;e=(n|u|a|r|e)+(i>>>e)|0;i=e<<1;r=644+(i<<2)|0;i=644+(i+2<<2)|0;a=pe[i>>2]|0;u=a+8|0;n=pe[u>>2]|0;do{if((r|0)!=(n|0)){if(n>>>0<(pe[155]|0)>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)==(a|0)){pe[t>>2]=r;pe[i>>2]=n;l=pe[153]|0;break}else Xe()}else{pe[151]=s&~(1<<e);l=o}}while(0);z=e<<3;o=z-d|0;pe[a+4>>2]=d|3;s=a+d|0;pe[a+(d|4)>>2]=o|1;pe[a+z>>2]=o;if(l){n=pe[156]|0;r=l>>>3;t=r<<1;i=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){e=644+(t+2<<2)|0;t=pe[e>>2]|0;if(t>>>0<(pe[155]|0)>>>0)Xe();else{c=e;h=t}}else{pe[151]=e|r;c=644+(t+2<<2)|0;h=i}pe[c>>2]=n;pe[h+12>>2]=n;pe[n+8>>2]=h;pe[n+12>>2]=i}pe[153]=o;pe[156]=s;z=u;return z|0}e=pe[152]|0;if(e){r=(e&0-e)+-1|0;L=r>>>12&16;r=r>>>L;j=r>>>5&8;r=r>>>j;z=r>>>2&4;r=r>>>z;e=r>>>1&2;r=r>>>e;i=r>>>1&1;i=pe[908+((j|L|z|e|i)+(r>>>i)<<2)>>2]|0;r=(pe[i+4>>2]&-8)-d|0;e=i;while(1){t=pe[e+16>>2]|0;if(!t){t=pe[e+20>>2]|0;if(!t){u=r;break}}e=(pe[t+4>>2]&-8)-d|0;z=e>>>0<r>>>0;r=z?e:r;e=t;i=z?t:i}a=pe[155]|0;if(i>>>0<a>>>0)Xe();s=i+d|0;if(i>>>0>=s>>>0)Xe();o=pe[i+24>>2]|0;r=pe[i+12>>2]|0;do{if((r|0)==(i|0)){e=i+20|0;t=pe[e>>2]|0;if(!t){e=i+16|0;t=pe[e>>2]|0;if(!t){f=0;break}}while(1){r=t+20|0;n=pe[r>>2]|0;if(n){t=n;e=r;continue}r=t+16|0;n=pe[r>>2]|0;if(!n)break;else{t=n;e=r}}if(e>>>0<a>>>0)Xe();else{pe[e>>2]=0;f=t;break}}else{n=pe[i+8>>2]|0;if(n>>>0<a>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)!=(i|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(i|0)){pe[t>>2]=r;pe[e>>2]=n;f=r;break}else Xe()}}while(0);do{if(o){t=pe[i+28>>2]|0;e=908+(t<<2)|0;if((i|0)==(pe[e>>2]|0)){pe[e>>2]=f;if(!f){pe[152]=pe[152]&~(1<<t);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(i|0))pe[t>>2]=f;else pe[o+20>>2]=f;if(!f)break}e=pe[155]|0;if(f>>>0<e>>>0)Xe();pe[f+24>>2]=o;t=pe[i+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[f+16>>2]=t;pe[t+24>>2]=f;break}}while(0);t=pe[i+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[f+20>>2]=t;pe[t+24>>2]=f;break}}}while(0);if(u>>>0<16){z=u+d|0;pe[i+4>>2]=z|3;z=i+(z+4)|0;pe[z>>2]=pe[z>>2]|1}else{pe[i+4>>2]=d|3;pe[i+(d|4)>>2]=u|1;pe[i+(u+d)>>2]=u;t=pe[153]|0;if(t){a=pe[156]|0;r=t>>>3;t=r<<1;n=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){t=644+(t+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{p=t;m=e}}else{pe[151]=e|r;p=644+(t+2<<2)|0;m=n}pe[p>>2]=a;pe[m+12>>2]=a;pe[a+8>>2]=m;pe[a+12>>2]=n}pe[153]=u;pe[156]=s}z=i+8|0;return z|0}else m=d}else m=d}else if(e>>>0<=4294967231){e=e+11|0;h=e&-8;c=pe[152]|0;if(c){r=0-h|0;e=e>>>8;if(e)if(h>>>0>16777215)l=31;else{m=(e+1048320|0)>>>16&8;_=e<<m;p=(_+520192|0)>>>16&4;_=_<<p;l=(_+245760|0)>>>16&2;l=14-(p|m|l)+(_<<l>>>15)|0;l=h>>>(l+7|0)&1|l<<1}else l=0;e=pe[908+(l<<2)>>2]|0;e:do{if(!e){n=0;e=0;_=86}else{o=r;n=0;s=h<<((l|0)==31?0:25-(l>>>1)|0);u=e;e=0;while(1){a=pe[u+4>>2]&-8;r=a-h|0;if(r>>>0<o>>>0)if((a|0)==(h|0)){a=u;e=u;_=90;break e}else e=u;else r=o;_=pe[u+20>>2]|0;u=pe[u+16+(s>>>31<<2)>>2]|0;n=(_|0)==0|(_|0)==(u|0)?n:_;if(!u){_=86;break}else{o=r;s=s<<1}}}}while(0);if((_|0)==86){if((n|0)==0&(e|0)==0){e=2<<l;e=c&(e|0-e);if(!e){m=h;break}e=(e&0-e)+-1|0;f=e>>>12&16;e=e>>>f;c=e>>>5&8;e=e>>>c;p=e>>>2&4;e=e>>>p;m=e>>>1&2;e=e>>>m;n=e>>>1&1;n=pe[908+((c|f|p|m|n)+(e>>>n)<<2)>>2]|0;e=0}if(!n){s=r;u=e}else{a=n;_=90}}if((_|0)==90)while(1){_=0;m=(pe[a+4>>2]&-8)-h|0;n=m>>>0<r>>>0;r=n?m:r;e=n?a:e;n=pe[a+16>>2]|0;if(n){a=n;_=90;continue}a=pe[a+20>>2]|0;if(!a){s=r;u=e;break}else _=90}if((u|0)!=0?s>>>0<((pe[153]|0)-h|0)>>>0:0){n=pe[155]|0;if(u>>>0<n>>>0)Xe();o=u+h|0;if(u>>>0>=o>>>0)Xe();a=pe[u+24>>2]|0;r=pe[u+12>>2]|0;do{if((r|0)==(u|0)){e=u+20|0;t=pe[e>>2]|0;if(!t){e=u+16|0;t=pe[e>>2]|0;if(!t){d=0;break}}while(1){r=t+20|0;i=pe[r>>2]|0;if(i){t=i;e=r;continue}r=t+16|0;i=pe[r>>2]|0;if(!i)break;else{t=i;e=r}}if(e>>>0<n>>>0)Xe();else{pe[e>>2]=0;d=t;break}}else{i=pe[u+8>>2]|0;if(i>>>0<n>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(u|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(u|0)){pe[t>>2]=r;pe[e>>2]=i;d=r;break}else Xe()}}while(0);do{if(a){t=pe[u+28>>2]|0;e=908+(t<<2)|0;if((u|0)==(pe[e>>2]|0)){pe[e>>2]=d;if(!d){pe[152]=pe[152]&~(1<<t);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(u|0))pe[t>>2]=d;else pe[a+20>>2]=d;if(!d)break}e=pe[155]|0;if(d>>>0<e>>>0)Xe();pe[d+24>>2]=a;t=pe[u+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[d+16>>2]=t;pe[t+24>>2]=d;break}}while(0);t=pe[u+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[d+20>>2]=t;pe[t+24>>2]=d;break}}}while(0);e:do{if(s>>>0>=16){pe[u+4>>2]=h|3;pe[u+(h|4)>>2]=s|1;pe[u+(s+h)>>2]=s;t=s>>>3;if(s>>>0<256){e=t<<1;i=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{v=t;b=e}}else{pe[151]=r|t;v=644+(e+2<<2)|0;b=i}pe[v>>2]=o;pe[b+12>>2]=o;pe[u+(h+8)>>2]=b;pe[u+(h+12)>>2]=i;break}t=s>>>8;if(t)if(s>>>0>16777215)i=31;else{L=(t+1048320|0)>>>16&8;z=t<<L;j=(z+520192|0)>>>16&4;z=z<<j;i=(z+245760|0)>>>16&2;i=14-(j|L|i)+(z<<i>>>15)|0;i=s>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;pe[u+(h+28)>>2]=i;pe[u+(h+20)>>2]=0;pe[u+(h+16)>>2]=0;e=pe[152]|0;r=1<<i;if(!(e&r)){pe[152]=e|r;pe[t>>2]=o;pe[u+(h+24)>>2]=t;pe[u+(h+12)>>2]=o;pe[u+(h+8)>>2]=o;break}t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(s|0)){i=s<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(s|0)){k=r;break t}else{i=i<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=o;pe[u+(h+24)>>2]=t;pe[u+(h+12)>>2]=o;pe[u+(h+8)>>2]=o;break e}}else k=t}while(0);t=k+8|0;e=pe[t>>2]|0;z=pe[155]|0;if(e>>>0>=z>>>0&k>>>0>=z>>>0){pe[e+12>>2]=o;pe[t>>2]=o;pe[u+(h+8)>>2]=e;pe[u+(h+12)>>2]=k;pe[u+(h+24)>>2]=0;break}else Xe()}else{z=s+h|0;pe[u+4>>2]=z|3;z=u+(z+4)|0;pe[z>>2]=pe[z>>2]|1}}while(0);z=u+8|0;return z|0}else m=h}else m=h}else m=-1}while(0);r=pe[153]|0;if(r>>>0>=m>>>0){t=r-m|0;e=pe[156]|0;if(t>>>0>15){pe[156]=e+m;pe[153]=t;pe[e+(m+4)>>2]=t|1;pe[e+r>>2]=t;pe[e+4>>2]=m|3}else{pe[153]=0;pe[156]=0;pe[e+4>>2]=r|3;z=e+(r+4)|0;pe[z>>2]=pe[z>>2]|1}z=e+8|0;return z|0}e=pe[154]|0;if(e>>>0>m>>>0){L=e-m|0;pe[154]=L;z=pe[157]|0;pe[157]=z+m;pe[z+(m+4)>>2]=L|1;pe[z+4>>2]=m|3;z=z+8|0;return z|0}do{if(!(pe[269]|0)){e=Re(30)|0;if(!(e+-1&e)){pe[271]=e;pe[270]=e;pe[272]=-1;pe[273]=-1;pe[274]=0;pe[262]=0;k=(He(0)|0)&-16^1431655768;pe[269]=k;break}else Xe()}}while(0);u=m+48|0;s=pe[271]|0;l=m+47|0;o=s+l|0;s=0-s|0;c=o&s;if(c>>>0<=m>>>0){z=0;return z|0}e=pe[261]|0;if((e|0)!=0?(b=pe[259]|0,k=b+c|0,k>>>0<=b>>>0|k>>>0>e>>>0):0){z=0;return z|0}e:do{if(!(pe[262]&4)){e=pe[157]|0;t:do{if(e){n=1052;while(1){r=pe[n>>2]|0;if(r>>>0<=e>>>0?(g=n+4|0,(r+(pe[g>>2]|0)|0)>>>0>e>>>0):0){a=n;e=g;break}n=pe[n+8>>2]|0;if(!n){_=174;break t}}r=o-(pe[154]|0)&s;if(r>>>0<2147483647){n=Ae(r|0)|0;k=(n|0)==((pe[a>>2]|0)+(pe[e>>2]|0)|0);e=k?r:0;if(k){if((n|0)!=(-1|0)){w=n;p=e;_=194;break e}}else _=184}else e=0}else _=174}while(0);do{if((_|0)==174){a=Ae(0)|0;if((a|0)!=(-1|0)){e=a;r=pe[270]|0;n=r+-1|0;if(!(n&e))r=c;else r=c-e+(n+e&0-r)|0;e=pe[259]|0;n=e+r|0;if(r>>>0>m>>>0&r>>>0<2147483647){k=pe[261]|0;if((k|0)!=0?n>>>0<=e>>>0|n>>>0>k>>>0:0){e=0;break}n=Ae(r|0)|0;k=(n|0)==(a|0);e=k?r:0;if(k){w=a;p=e;_=194;break e}else _=184}else e=0}else e=0}}while(0);t:do{if((_|0)==184){a=0-r|0;do{if(u>>>0>r>>>0&(r>>>0<2147483647&(n|0)!=(-1|0))?(y=pe[271]|0,y=l-r+y&0-y,y>>>0<2147483647):0)if((Ae(y|0)|0)==(-1|0)){Ae(a|0)|0;break t}else{r=y+r|0;break}}while(0);if((n|0)!=(-1|0)){w=n;p=r;_=194;break e}}}while(0);pe[262]=pe[262]|4;_=191}else{e=0;_=191}}while(0);if((((_|0)==191?c>>>0<2147483647:0)?(w=Ae(c|0)|0,x=Ae(0)|0,w>>>0<x>>>0&((w|0)!=(-1|0)&(x|0)!=(-1|0))):0)?(T=x-w|0,S=T>>>0>(m+40|0)>>>0,S):0){p=S?T:e;_=194}if((_|0)==194){e=(pe[259]|0)+p|0;pe[259]=e;if(e>>>0>(pe[260]|0)>>>0)pe[260]=e;o=pe[157]|0;e:do{if(o){a=1052;do{e=pe[a>>2]|0;r=a+4|0;n=pe[r>>2]|0;if((w|0)==(e+n|0)){E=e;M=r;P=n;C=a;_=204;break}a=pe[a+8>>2]|0}while((a|0)!=0);if(((_|0)==204?(pe[C+12>>2]&8|0)==0:0)?o>>>0<w>>>0&o>>>0>=E>>>0:0){pe[M>>2]=P+p;z=(pe[154]|0)+p|0;L=o+8|0;L=(L&7|0)==0?0:0-L&7;j=z-L|0;pe[157]=o+L;pe[154]=j;pe[o+(L+4)>>2]=j|1;pe[o+(z+4)>>2]=40;pe[158]=pe[273];break}e=pe[155]|0;if(w>>>0<e>>>0){pe[155]=w;e=w}r=w+p|0;a=1052;while(1){if((pe[a>>2]|0)==(r|0)){n=a;r=a;_=212;break}a=pe[a+8>>2]|0;if(!a){r=1052;break}}if((_|0)==212)if(!(pe[r+12>>2]&8)){pe[n>>2]=w;f=r+4|0;pe[f>>2]=(pe[f>>2]|0)+p;f=w+8|0;f=(f&7|0)==0?0:0-f&7;l=w+(p+8)|0;l=(l&7|0)==0?0:0-l&7;t=w+(l+p)|0;h=f+m|0;d=w+h|0;c=t-(w+f)-m|0;pe[w+(f+4)>>2]=m|3;t:do{if((t|0)!=(o|0)){if((t|0)==(pe[156]|0)){z=(pe[153]|0)+c|0;pe[153]=z;pe[156]=d;pe[w+(h+4)>>2]=z|1;pe[w+(z+h)>>2]=z;break}s=p+4|0;r=pe[w+(s+l)>>2]|0;if((r&3|0)==1){u=r&-8;a=r>>>3;r:do{if(r>>>0>=256){o=pe[w+((l|24)+p)>>2]|0;i=pe[w+(p+12+l)>>2]|0;do{if((i|0)==(t|0)){n=l|16;i=w+(s+n)|0;r=pe[i>>2]|0;if(!r){i=w+(n+p)|0;r=pe[i>>2]|0;if(!r){D=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<e>>>0)Xe();else{pe[i>>2]=0;D=r;break}}else{n=pe[w+((l|8)+p)>>2]|0;if(n>>>0<e>>>0)Xe();e=n+12|0;if((pe[e>>2]|0)!=(t|0))Xe();r=i+8|0;if((pe[r>>2]|0)==(t|0)){pe[e>>2]=i;pe[r>>2]=n;D=i;break}else Xe()}}while(0);if(!o)break;e=pe[w+(p+28+l)>>2]|0;r=908+(e<<2)|0;do{if((t|0)!=(pe[r>>2]|0)){if(o>>>0<(pe[155]|0)>>>0)Xe();e=o+16|0;if((pe[e>>2]|0)==(t|0))pe[e>>2]=D;else pe[o+20>>2]=D;if(!D)break r}else{pe[r>>2]=D;if(D)break;pe[152]=pe[152]&~(1<<e);break r}}while(0);r=pe[155]|0;if(D>>>0<r>>>0)Xe();pe[D+24>>2]=o;t=l|16;e=pe[w+(t+p)>>2]|0;do{if(e)if(e>>>0<r>>>0)Xe();else{pe[D+16>>2]=e;pe[e+24>>2]=D;break}}while(0);t=pe[w+(s+t)>>2]|0;if(!t)break;if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[D+20>>2]=t;pe[t+24>>2]=D;break}}else{i=pe[w+((l|8)+p)>>2]|0;n=pe[w+(p+12+l)>>2]|0;r=644+(a<<1<<2)|0;do{if((i|0)!=(r|0)){if(i>>>0<e>>>0)Xe();if((pe[i+12>>2]|0)==(t|0))break;Xe()}}while(0);if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<a);break}do{if((n|0)==(r|0))A=n+8|0;else{if(n>>>0<e>>>0)Xe();e=n+8|0;if((pe[e>>2]|0)==(t|0)){A=e;break}Xe()}}while(0);pe[i+12>>2]=n;pe[A>>2]=i}}while(0);t=w+((u|l)+p)|0;n=u+c|0}else n=c;t=t+4|0;pe[t>>2]=pe[t>>2]&-2;pe[w+(h+4)>>2]=n|1;pe[w+(n+h)>>2]=n;t=n>>>3;if(n>>>0<256){e=t<<1;i=644+(e<<2)|0;r=pe[151]|0;t=1<<t;do{if(!(r&t)){pe[151]=r|t;j=644+(e+2<<2)|0;L=i}else{t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0>=(pe[155]|0)>>>0){j=t;L=e;break}Xe()}}while(0);pe[j>>2]=d;pe[L+12>>2]=d;pe[w+(h+8)>>2]=L;pe[w+(h+12)>>2]=i;break}t=n>>>8;do{if(!t)i=0;else{if(n>>>0>16777215){i=31;break}j=(t+1048320|0)>>>16&8;L=t<<j;D=(L+520192|0)>>>16&4;L=L<<D;i=(L+245760|0)>>>16&2;i=14-(D|j|i)+(L<<i>>>15)|0;i=n>>>(i+7|0)&1|i<<1}}while(0);t=908+(i<<2)|0;pe[w+(h+28)>>2]=i;pe[w+(h+20)>>2]=0;pe[w+(h+16)>>2]=0;e=pe[152]|0;r=1<<i;if(!(e&r)){pe[152]=e|r;pe[t>>2]=d;pe[w+(h+24)>>2]=t;pe[w+(h+12)>>2]=d;pe[w+(h+8)>>2]=d;break}t=pe[t>>2]|0;r:do{if((pe[t+4>>2]&-8|0)!=(n|0)){i=n<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(n|0)){z=r;break r}else{i=i<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=d;pe[w+(h+24)>>2]=t;pe[w+(h+12)>>2]=d;pe[w+(h+8)>>2]=d;break t}}else z=t}while(0);t=z+8|0;e=pe[t>>2]|0;L=pe[155]|0;if(e>>>0>=L>>>0&z>>>0>=L>>>0){pe[e+12>>2]=d;pe[t>>2]=d;pe[w+(h+8)>>2]=e;pe[w+(h+12)>>2]=z;pe[w+(h+24)>>2]=0;break}else Xe()}else{z=(pe[154]|0)+c|0;pe[154]=z;pe[157]=d;pe[w+(h+4)>>2]=z|1}}while(0);z=w+(f|8)|0;return z|0}else r=1052;while(1){e=pe[r>>2]|0;if(e>>>0<=o>>>0?(t=pe[r+4>>2]|0,i=e+t|0,i>>>0>o>>>0):0)break;r=pe[r+8>>2]|0}n=e+(t+-39)|0;e=e+(t+-47+((n&7|0)==0?0:0-n&7))|0;n=o+16|0;e=e>>>0<n>>>0?o:e;t=e+8|0;r=w+8|0;r=(r&7|0)==0?0:0-r&7;z=p+-40-r|0;pe[157]=w+r;pe[154]=z;pe[w+(r+4)>>2]=z|1;pe[w+(p+-36)>>2]=40;pe[158]=pe[273];r=e+4|0;pe[r>>2]=27;pe[t>>2]=pe[263];pe[t+4>>2]=pe[264];pe[t+8>>2]=pe[265];pe[t+12>>2]=pe[266];pe[263]=w;pe[264]=p;pe[266]=0;pe[265]=t;t=e+28|0;pe[t>>2]=7;if((e+32|0)>>>0<i>>>0)do{z=t;t=t+4|0;pe[t>>2]=7}while((z+8|0)>>>0<i>>>0);if((e|0)!=(o|0)){a=e-o|0;pe[r>>2]=pe[r>>2]&-2;pe[o+4>>2]=a|1;pe[e>>2]=a;t=a>>>3;if(a>>>0<256){e=t<<1;i=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{O=t;I=e}}else{pe[151]=r|t;O=644+(e+2<<2)|0;I=i}pe[O>>2]=o;pe[I+12>>2]=o;pe[o+8>>2]=I;pe[o+12>>2]=i;break}t=a>>>8;if(t)if(a>>>0>16777215)i=31;else{L=(t+1048320|0)>>>16&8;z=t<<L;j=(z+520192|0)>>>16&4;z=z<<j;i=(z+245760|0)>>>16&2;i=14-(j|L|i)+(z<<i>>>15)|0;i=a>>>(i+7|0)&1|i<<1}else i=0;r=908+(i<<2)|0;pe[o+28>>2]=i;pe[o+20>>2]=0;pe[n>>2]=0;t=pe[152]|0;e=1<<i;if(!(t&e)){pe[152]=t|e;pe[r>>2]=o;pe[o+24>>2]=r;pe[o+12>>2]=o;pe[o+8>>2]=o;break}t=pe[r>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(a|0)){i=a<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(a|0)){R=r;break t}else{i=i<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=o;pe[o+24>>2]=t;pe[o+12>>2]=o;pe[o+8>>2]=o;break e}}else R=t}while(0);t=R+8|0;e=pe[t>>2]|0;z=pe[155]|0;if(e>>>0>=z>>>0&R>>>0>=z>>>0){pe[e+12>>2]=o;pe[t>>2]=o;pe[o+8>>2]=e;pe[o+12>>2]=R;pe[o+24>>2]=0;break}else Xe()}}else{z=pe[155]|0;if((z|0)==0|w>>>0<z>>>0)pe[155]=w;pe[263]=w;pe[264]=p;pe[266]=0;pe[160]=pe[269];pe[159]=-1;t=0;do{z=t<<1;L=644+(z<<2)|0;pe[644+(z+3<<2)>>2]=L;pe[644+(z+2<<2)>>2]=L;t=t+1|0}while((t|0)!=32);z=w+8|0;z=(z&7|0)==0?0:0-z&7;L=p+-40-z|0;pe[157]=w+z;pe[154]=L;pe[w+(z+4)>>2]=L|1;pe[w+(p+-36)>>2]=40;pe[158]=pe[273]}}while(0);t=pe[154]|0;if(t>>>0>m>>>0){L=t-m|0;pe[154]=L;z=pe[157]|0;pe[157]=z+m;pe[z+(m+4)>>2]=L|1;pe[z+4>>2]=m|3;z=z+8|0;return z|0}}z=cr()|0;pe[z>>2]=12;z=0;return z|0}function Ur(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0;if(!e)return;t=e+-8|0;s=pe[155]|0;if(t>>>0<s>>>0)Xe();r=pe[e+-4>>2]|0;i=r&3;if((i|0)==1)Xe();d=r&-8;m=e+(d+-8)|0;do{if(!(r&1)){t=pe[t>>2]|0;if(!i)return;u=-8-t|0;c=e+u|0;h=t+d|0;if(c>>>0<s>>>0)Xe();if((c|0)==(pe[156]|0)){t=e+(d+-4)|0;r=pe[t>>2]|0;if((r&3|0)!=3){y=c;a=h;break}pe[153]=h;pe[t>>2]=r&-2;pe[e+(u+4)>>2]=h|1;pe[m>>2]=h;return}n=t>>>3;if(t>>>0<256){i=pe[e+(u+8)>>2]|0;r=pe[e+(u+12)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<s>>>0)Xe();if((pe[i+12>>2]|0)!=(c|0))Xe()}if((r|0)==(i|0)){pe[151]=pe[151]&~(1<<n);y=c;a=h;break}if((r|0)!=(t|0)){if(r>>>0<s>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(c|0))o=t;else Xe()}else o=r+8|0;pe[i+12>>2]=r;pe[o>>2]=i;y=c;a=h;break}o=pe[e+(u+24)>>2]|0;i=pe[e+(u+12)>>2]|0;do{if((i|0)==(c|0)){r=e+(u+20)|0;t=pe[r>>2]|0;if(!t){r=e+(u+16)|0;t=pe[r>>2]|0;if(!t){l=0;break}}while(1){i=t+20|0;n=pe[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=pe[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0<s>>>0)Xe();else{pe[r>>2]=0;l=t;break}}else{n=pe[e+(u+8)>>2]|0;if(n>>>0<s>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)!=(c|0))Xe();r=i+8|0;if((pe[r>>2]|0)==(c|0)){pe[t>>2]=i;pe[r>>2]=n;l=i;break}else Xe()}}while(0);if(o){t=pe[e+(u+28)>>2]|0;r=908+(t<<2)|0;if((c|0)==(pe[r>>2]|0)){pe[r>>2]=l;if(!l){pe[152]=pe[152]&~(1<<t);y=c;a=h;break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(c|0))pe[t>>2]=l;else pe[o+20>>2]=l;if(!l){y=c;a=h;break}}r=pe[155]|0;if(l>>>0<r>>>0)Xe();pe[l+24>>2]=o;t=pe[e+(u+16)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[l+16>>2]=t;pe[t+24>>2]=l;break}}while(0);t=pe[e+(u+20)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=t;pe[t+24>>2]=l;y=c;a=h;break}else{y=c;a=h}}else{y=c;a=h}}else{y=t;a=d}}while(0);if(y>>>0>=m>>>0)Xe();t=e+(d+-4)|0;r=pe[t>>2]|0;if(!(r&1))Xe();if(!(r&2)){if((m|0)==(pe[157]|0)){b=(pe[154]|0)+a|0;pe[154]=b;pe[157]=y;pe[y+4>>2]=b|1;if((y|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){b=(pe[153]|0)+a|0;pe[153]=b;pe[156]=y;pe[y+4>>2]=b|1;pe[y+b>>2]=b;return}a=(r&-8)+a|0;n=r>>>3;do{if(r>>>0>=256){o=pe[e+(d+16)>>2]|0;t=pe[e+(d|4)>>2]|0;do{if((t|0)==(m|0)){r=e+(d+12)|0;t=pe[r>>2]|0;if(!t){r=e+(d+8)|0;t=pe[r>>2]|0;if(!t){p=0;break}}while(1){i=t+20|0;n=pe[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=pe[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=0;p=t;break}}else{r=pe[e+d>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();i=r+12|0;if((pe[i>>2]|0)!=(m|0))Xe();n=t+8|0;if((pe[n>>2]|0)==(m|0)){pe[i>>2]=t;pe[n>>2]=r;p=t;break}else Xe()}}while(0);if(o){t=pe[e+(d+20)>>2]|0;r=908+(t<<2)|0;if((m|0)==(pe[r>>2]|0)){pe[r>>2]=p;if(!p){pe[152]=pe[152]&~(1<<t);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(m|0))pe[t>>2]=p;else pe[o+20>>2]=p;if(!p)break}r=pe[155]|0;if(p>>>0<r>>>0)Xe();pe[p+24>>2]=o;t=pe[e+(d+8)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[p+16>>2]=t;pe[t+24>>2]=p;break}}while(0);t=pe[e+(d+12)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=t;pe[t+24>>2]=p;break}}}else{i=pe[e+d>>2]|0;r=pe[e+(d|4)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<(pe[155]|0)>>>0)Xe();if((pe[i+12>>2]|0)!=(m|0))Xe()}if((r|0)==(i|0)){pe[151]=pe[151]&~(1<<n);break}if((r|0)!=(t|0)){if(r>>>0<(pe[155]|0)>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(m|0))f=t;else Xe()}else f=r+8|0;pe[i+12>>2]=r;pe[f>>2]=i}}while(0);pe[y+4>>2]=a|1;pe[y+a>>2]=a;if((y|0)==(pe[156]|0)){pe[153]=a;return}}else{pe[t>>2]=r&-2;pe[y+4>>2]=a|1;pe[y+a>>2]=a}t=a>>>3;if(a>>>0<256){r=t<<1;n=644+(r<<2)|0;i=pe[151]|0;t=1<<t;if(i&t){t=644+(r+2<<2)|0;r=pe[t>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();else{g=t;v=r}}else{pe[151]=i|t;g=644+(r+2<<2)|0;v=n}pe[g>>2]=y;pe[v+12>>2]=y;pe[y+8>>2]=v;pe[y+12>>2]=n;return}t=a>>>8;if(t)if(a>>>0>16777215)n=31;else{g=(t+1048320|0)>>>16&8;v=t<<g;m=(v+520192|0)>>>16&4;v=v<<m;n=(v+245760|0)>>>16&2;n=14-(m|g|n)+(v<<n>>>15)|0;n=a>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;pe[y+28>>2]=n;pe[y+20>>2]=0;pe[y+16>>2]=0;r=pe[152]|0;i=1<<n;e:do{if(r&i){t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(a|0)){n=a<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;i=pe[r>>2]|0;if(!i)break;if((pe[i+4>>2]&-8|0)==(a|0)){b=i;break t}else{n=n<<1;t=i}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y;break e}}else b=t}while(0);t=b+8|0;r=pe[t>>2]|0;v=pe[155]|0;if(r>>>0>=v>>>0&b>>>0>=v>>>0){pe[r+12>>2]=y;pe[t>>2]=y;pe[y+8>>2]=r;pe[y+12>>2]=b;pe[y+24>>2]=0;break}else Xe()}else{pe[152]=r|i;pe[t>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y}}while(0);y=(pe[159]|0)+-1|0;pe[159]=y;if(!y)t=1060;else return;while(1){t=pe[t>>2]|0;if(!t)break;else t=t+8|0}pe[159]=-1;return}function Xr(e,t){e=e|0;t=t|0;var r=0,i=0;if(!e){e=Nr(t)|0;return e|0}if(t>>>0>4294967231){e=cr()|0;pe[e>>2]=12;e=0;return e|0}r=Hr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=Nr(t)|0;if(!r){e=0;return e|0}i=pe[e+-4>>2]|0;i=(i&-8)-((i&3|0)==0?8:4)|0;Qr(r|0,e|0,(i>>>0<t>>>0?i:t)|0)|0;Ur(e);e=r;return e|0}function qr(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=pe[e+-4>>2]|0;t=e&3;if((t|0)==1){t=0;return t|0}t=(e&-8)-((t|0)==0?8:4)|0;return t|0}function Hr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;d=e+4|0;p=pe[d>>2]|0;u=p&-8;c=e+u|0;s=pe[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=s>>>0&e>>>0<c>>>0))Xe();i=e+(u|4)|0;n=pe[i>>2]|0;if(!(n&1))Xe();if(!r){if(t>>>0<256){e=0;return e|0}if(u>>>0>=(t+4|0)>>>0?(u-t|0)>>>0<=pe[271]<<1>>>0:0)return e|0;e=0;return e|0}if(u>>>0>=t>>>0){r=u-t|0;if(r>>>0<=15)return e|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|3;pe[i>>2]=pe[i>>2]|1;Wr(e+t|0,r);return e|0}if((c|0)==(pe[157]|0)){r=(pe[154]|0)+u|0;if(r>>>0<=t>>>0){e=0;return e|0}f=r-t|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=f|1;pe[157]=e+t;pe[154]=f;return e|0}if((c|0)==(pe[156]|0)){i=(pe[153]|0)+u|0;if(i>>>0<t>>>0){e=0;return e|0}r=i-t|0;if(r>>>0>15){pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|1;pe[e+i>>2]=r;i=e+(i+4)|0;pe[i>>2]=pe[i>>2]&-2;i=e+t|0}else{pe[d>>2]=p&1|i|2;i=e+(i+4)|0;pe[i>>2]=pe[i>>2]|1;i=0;r=0}pe[153]=r;pe[156]=i;return e|0}if(n&2){e=0;return e|0}h=(n&-8)+u|0;if(h>>>0<t>>>0){e=0;return e|0}f=h-t|0;a=n>>>3;do{if(n>>>0>=256){o=pe[e+(u+24)>>2]|0;a=pe[e+(u+12)>>2]|0;do{if((a|0)==(c|0)){i=e+(u+20)|0;r=pe[i>>2]|0;if(!r){i=e+(u+16)|0;r=pe[i>>2]|0;if(!r){l=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<s>>>0)Xe();else{pe[i>>2]=0;l=r;break}}else{n=pe[e+(u+8)>>2]|0;if(n>>>0<s>>>0)Xe();r=n+12|0;if((pe[r>>2]|0)!=(c|0))Xe();i=a+8|0;if((pe[i>>2]|0)==(c|0)){pe[r>>2]=a;pe[i>>2]=n;l=a;break}else Xe()}}while(0);if(o){r=pe[e+(u+28)>>2]|0;i=908+(r<<2)|0;if((c|0)==(pe[i>>2]|0)){pe[i>>2]=l;if(!l){pe[152]=pe[152]&~(1<<r);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();r=o+16|0;if((pe[r>>2]|0)==(c|0))pe[r>>2]=l;else pe[o+20>>2]=l;if(!l)break}i=pe[155]|0;if(l>>>0<i>>>0)Xe();pe[l+24>>2]=o;r=pe[e+(u+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)Xe();else{pe[l+16>>2]=r;pe[r+24>>2]=l;break}}while(0);r=pe[e+(u+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=r;pe[r+24>>2]=l;break}}}else{n=pe[e+(u+8)>>2]|0;i=pe[e+(u+12)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<s>>>0)Xe();if((pe[n+12>>2]|0)!=(c|0))Xe()}if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<a);break}if((i|0)!=(r|0)){if(i>>>0<s>>>0)Xe();r=i+8|0;if((pe[r>>2]|0)==(c|0))o=r;else Xe()}else o=i+8|0;pe[n+12>>2]=i;pe[o>>2]=n}}while(0);if(f>>>0<16){pe[d>>2]=h|p&1|2;t=e+(h|4)|0;pe[t>>2]=pe[t>>2]|1;return e|0}else{pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=f|3;p=e+(h|4)|0;pe[p>>2]=pe[p>>2]|1;Wr(e+t|0,f);return e|0}return 0}function Wr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0;m=e+t|0;r=pe[e+4>>2]|0;do{if(!(r&1)){l=pe[e>>2]|0;if(!(r&3))return;f=e+(0-l)|0;h=l+t|0;u=pe[155]|0;if(f>>>0<u>>>0)Xe();if((f|0)==(pe[156]|0)){i=e+(t+4)|0;r=pe[i>>2]|0;if((r&3|0)!=3){b=f;o=h;break}pe[153]=h;pe[i>>2]=r&-2;pe[e+(4-l)>>2]=h|1;pe[m>>2]=h;return}a=l>>>3;if(l>>>0<256){n=pe[e+(8-l)>>2]|0;i=pe[e+(12-l)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();if((pe[n+12>>2]|0)!=(f|0))Xe()}if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<a);b=f;o=h;break}if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();r=i+8|0;if((pe[r>>2]|0)==(f|0))s=r;else Xe()}else s=i+8|0;pe[n+12>>2]=i;pe[s>>2]=n;b=f;o=h;break}s=pe[e+(24-l)>>2]|0;n=pe[e+(12-l)>>2]|0;do{if((n|0)==(f|0)){n=16-l|0;i=e+(n+4)|0;r=pe[i>>2]|0;if(!r){i=e+n|0;r=pe[i>>2]|0;if(!r){c=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<u>>>0)Xe();else{pe[i>>2]=0;c=r;break}}else{a=pe[e+(8-l)>>2]|0;if(a>>>0<u>>>0)Xe();r=a+12|0;if((pe[r>>2]|0)!=(f|0))Xe();i=n+8|0;if((pe[i>>2]|0)==(f|0)){pe[r>>2]=n;pe[i>>2]=a;c=n;break}else Xe()}}while(0);if(s){r=pe[e+(28-l)>>2]|0;i=908+(r<<2)|0;if((f|0)==(pe[i>>2]|0)){pe[i>>2]=c;if(!c){pe[152]=pe[152]&~(1<<r);b=f;o=h;break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(f|0))pe[r>>2]=c;else pe[s+20>>2]=c;if(!c){b=f;o=h;break}}n=pe[155]|0;if(c>>>0<n>>>0)Xe();pe[c+24>>2]=s;r=16-l|0;i=pe[e+r>>2]|0;do{if(i)if(i>>>0<n>>>0)Xe();else{pe[c+16>>2]=i;pe[i+24>>2]=c;break}}while(0);r=pe[e+(r+4)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=r;pe[r+24>>2]=c;b=f;o=h;break}else{b=f;o=h}}else{b=f;o=h}}else{b=e;o=t}}while(0);u=pe[155]|0;if(m>>>0<u>>>0)Xe();r=e+(t+4)|0;i=pe[r>>2]|0;if(!(i&2)){if((m|0)==(pe[157]|0)){v=(pe[154]|0)+o|0;pe[154]=v;pe[157]=b;pe[b+4>>2]=v|1;if((b|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){v=(pe[153]|0)+o|0;pe[153]=v;pe[156]=b;pe[b+4>>2]=v|1;pe[b+v>>2]=v;return}o=(i&-8)+o|0;a=i>>>3;do{if(i>>>0>=256){s=pe[e+(t+24)>>2]|0;n=pe[e+(t+12)>>2]|0;do{if((n|0)==(m|0)){i=e+(t+20)|0;r=pe[i>>2]|0;if(!r){i=e+(t+16)|0;r=pe[i>>2]|0;if(!r){p=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<u>>>0)Xe();else{pe[i>>2]=0;p=r;break}}else{a=pe[e+(t+8)>>2]|0;if(a>>>0<u>>>0)Xe();r=a+12|0;if((pe[r>>2]|0)!=(m|0))Xe();i=n+8|0;if((pe[i>>2]|0)==(m|0)){pe[r>>2]=n;pe[i>>2]=a;p=n;break}else Xe()}}while(0);if(s){r=pe[e+(t+28)>>2]|0;i=908+(r<<2)|0;if((m|0)==(pe[i>>2]|0)){pe[i>>2]=p;if(!p){pe[152]=pe[152]&~(1<<r);break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(m|0))pe[r>>2]=p;else pe[s+20>>2]=p;if(!p)break}i=pe[155]|0;if(p>>>0<i>>>0)Xe();pe[p+24>>2]=s;r=pe[e+(t+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)Xe();else{pe[p+16>>2]=r;pe[r+24>>2]=p;break}}while(0);r=pe[e+(t+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=r;pe[r+24>>2]=p;break}}}else{n=pe[e+(t+8)>>2]|0;i=pe[e+(t+12)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();if((pe[n+12>>2]|0)!=(m|0))Xe()}if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<a);break}if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();r=i+8|0;if((pe[r>>2]|0)==(m|0))d=r;else Xe()}else d=i+8|0;pe[n+12>>2]=i;pe[d>>2]=n}}while(0);pe[b+4>>2]=o|1;pe[b+o>>2]=o;if((b|0)==(pe[156]|0)){pe[153]=o;return}}else{pe[r>>2]=i&-2;pe[b+4>>2]=o|1;pe[b+o>>2]=o}r=o>>>3;if(o>>>0<256){i=r<<1;a=644+(i<<2)|0;n=pe[151]|0;r=1<<r;if(n&r){r=644+(i+2<<2)|0;i=pe[r>>2]|0;if(i>>>0<(pe[155]|0)>>>0)Xe();else{g=r;v=i}}else{pe[151]=n|r;g=644+(i+2<<2)|0;v=a}pe[g>>2]=b;pe[v+12>>2]=b;pe[b+8>>2]=v;pe[b+12>>2]=a;return}r=o>>>8;if(r)if(o>>>0>16777215)a=31;else{g=(r+1048320|0)>>>16&8;v=r<<g;m=(v+520192|0)>>>16&4;v=v<<m;a=(v+245760|0)>>>16&2;a=14-(m|g|a)+(v<<a>>>15)|0;a=o>>>(a+7|0)&1|a<<1}else a=0;r=908+(a<<2)|0;pe[b+28>>2]=a;pe[b+20>>2]=0;pe[b+16>>2]=0;i=pe[152]|0;n=1<<a;if(!(i&n)){pe[152]=i|n;pe[r>>2]=b;pe[b+24>>2]=r;pe[b+12>>2]=b;pe[b+8>>2]=b;return}r=pe[r>>2]|0;e:do{if((pe[r+4>>2]&-8|0)!=(o|0)){a=o<<((a|0)==31?0:25-(a>>>1)|0);while(1){i=r+16+(a>>>31<<2)|0;n=pe[i>>2]|0;if(!n)break;if((pe[n+4>>2]&-8|0)==(o|0)){r=n;break e}else{a=a<<1;r=n}}if(i>>>0<(pe[155]|0)>>>0)Xe();pe[i>>2]=b;pe[b+24>>2]=r;pe[b+12>>2]=b;pe[b+8>>2]=b;return}}while(0);i=r+8|0;n=pe[i>>2]|0;v=pe[155]|0;if(!(n>>>0>=v>>>0&r>>>0>=v>>>0))Xe();pe[n+12>>2]=b;pe[i>>2]=b;pe[b+8>>2]=n;pe[b+12>>2]=r;pe[b+24>>2]=0;return}function Gr(){}function Vr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;i=t-i-(r>>>0>e>>>0|0)>>>0;return(re=i,e-r>>>0|0)|0}function Yr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;i=e+r|0;if((r|0)>=20){t=t&255;a=e&3;o=t|t<<8|t<<16|t<<24;n=i&~3;if(a){a=e+4-a|0;while((e|0)<(a|0)){de[e>>0]=t;e=e+1|0}}while((e|0)<(n|0)){pe[e>>2]=o;e=e+4|0}}while((e|0)<(i|0)){de[e>>0]=t;e=e+1|0}return e-r|0}function Jr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=0;return t>>>r-32|0}function Kr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t<<r|(e&(1<<r)-1<<32-r)>>>32-r;return e<<r}re=e<<r-32;return 0}function Zr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;r=e+r>>>0;return(re=t+i+(r>>>0<e>>>0|0)>>>0,r|0)|0}function Qr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if((r|0)>=4096)return Ie(e|0,t|0,r|0)|0;i=e|0;if((e&3)==(t&3)){while(e&3){if(!r)return i|0;de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}while((r|0)>=4){pe[e>>2]=pe[t>>2];e=e+4|0;t=t+4|0;r=r-4|0}}while((r|0)>0){de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}return i|0}function $r(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=(t|0)<0?-1:0;return t>>r-32|0}function ei(e){e=e|0;var t=0;t=de[g+(e&255)>>0]|0;if((t|0)<8)return t|0;t=de[g+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=de[g+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(de[g+(e>>>24)>>0]|0)+24|0}function ti(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0;a=e&65535;n=t&65535;r=be(n,a)|0;i=e>>>16;e=(r>>>16)+(be(n,i)|0)|0;n=t>>>16;t=be(n,a)|0;return(re=(e>>>16)+(be(n,i)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|r&65535|0)|0}function ri(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0;l=t>>31|((t|0)<0?-1:0)<<1;u=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;a=i>>31|((i|0)<0?-1:0)<<1;n=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;s=Vr(l^e,u^t,l,u)|0;o=re;e=a^l;t=n^u;return Vr((si(s,o,Vr(a^r,n^i,a,n)|0,re,0)|0)^e,re^t,e,t)|0}function ii(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0;n=ve;ve=ve+16|0;s=n|0;o=t>>31|((t|0)<0?-1:0)<<1;a=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;l=i>>31|((i|0)<0?-1:0)<<1;u=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;e=Vr(o^e,a^t,o,a)|0;t=re;si(e,t,Vr(l^r,u^i,l,u)|0,re,s)|0;i=Vr(pe[s>>2]^o,pe[s+4>>2]^a,o,a)|0;r=re;ve=n;return(re=r,i)|0}function ni(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0;n=e;a=r;r=ti(n,a)|0;e=re;return(re=(be(t,a)|0)+(be(i,n)|0)+e|e&0,r|0|0)|0}function ai(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return si(e,t,r,i,0)|0}function oi(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0;a=ve;ve=ve+16|0;n=a|0;si(e,t,r,i,n)|0;ve=a;return(re=pe[n+4>>2]|0,pe[n>>2]|0)|0}function si(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;c=e;u=t;l=u;o=r;f=i;s=f;if(!l){a=(n|0)!=0;if(!s){if(a){pe[n>>2]=(c>>>0)%(o>>>0);pe[n+4>>2]=0}f=0;n=(c>>>0)/(o>>>0)>>>0;return(re=f,n)|0}else{if(!a){f=0;n=0;return(re=f,n)|0}pe[n>>2]=e|0;pe[n+4>>2]=t&0;f=0;n=0;return(re=f,n)|0}}a=(s|0)==0;do{if(o){if(!a){a=(oe(s|0)|0)-(oe(l|0)|0)|0;if(a>>>0<=31){h=a+1|0;s=31-a|0;t=a-31>>31;o=h;e=c>>>(h>>>0)&t|l<<s;t=l>>>(h>>>0)&t;a=0;s=c<<s;break}if(!n){f=0;n=0;return(re=f,n)|0}pe[n>>2]=e|0;pe[n+4>>2]=u|t&0;f=0;n=0;return(re=f,n)|0}a=o-1|0;if(a&o){s=(oe(o|0)|0)+33-(oe(l|0)|0)|0;p=64-s|0;h=32-s|0;u=h>>31;d=s-32|0;t=d>>31;o=s;e=h-1>>31&l>>>(d>>>0)|(l<<h|c>>>(s>>>0))&t;t=t&l>>>(s>>>0);a=c<<p&u;s=(l<<p|c>>>(d>>>0))&u|c<<h&s-33>>31;break}if(n){pe[n>>2]=a&c;pe[n+4>>2]=0}if((o|0)==1){d=u|t&0;p=e|0|0;return(re=d,p)|0}else{p=ei(o|0)|0;d=l>>>(p>>>0)|0;p=l<<32-p|c>>>(p>>>0)|0;return(re=d,p)|0}}else{if(a){if(n){pe[n>>2]=(l>>>0)%(o>>>0);pe[n+4>>2]=0}d=0;p=(l>>>0)/(o>>>0)>>>0;return(re=d,p)|0}if(!c){if(n){pe[n>>2]=0;pe[n+4>>2]=(l>>>0)%(s>>>0)}d=0;p=(l>>>0)/(s>>>0)>>>0;return(re=d,p)|0}a=s-1|0;if(!(a&s)){if(n){pe[n>>2]=e|0;pe[n+4>>2]=a&l|t&0}d=0;p=l>>>((ei(s|0)|0)>>>0);return(re=d,p)|0}a=(oe(s|0)|0)-(oe(l|0)|0)|0;if(a>>>0<=30){t=a+1|0;s=31-a|0;o=t;e=l<<s|c>>>(t>>>0);t=l>>>(t>>>0);a=0;s=c<<s;break}if(!n){d=0;p=0;return(re=d,p)|0}pe[n>>2]=e|0;pe[n+4>>2]=u|t&0;d=0;p=0;return(re=d,p)|0}}while(0);if(!o){l=s;u=0;s=0}else{h=r|0|0;c=f|i&0;l=Zr(h|0,c|0,-1,-1)|0;r=re;u=s;s=0;do{i=u;u=a>>>31|u<<1;a=s|a<<1;i=e<<1|i>>>31|0;f=e>>>31|t<<1|0;Vr(l,r,i,f)|0;p=re;d=p>>31|((p|0)<0?-1:0)<<1;s=d&1;e=Vr(i,f,d&h,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&c)|0;t=re;o=o-1|0}while((o|0)!=0);l=u;u=0}o=0;if(n){pe[n>>2]=e;pe[n+4>>2]=t}d=(a|0)>>>31|(l|o)<<1|(o<<1|a>>>31)&0|u;p=(a<<1|0>>>31)&-2|s;return(re=d,p)|0}function ui(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return Ei[e&7](t|0,r|0,i|0)|0}function li(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;Mi[e&3](t|0,r|0,i|0,n|0,a|0)}function ci(e,t){e=e|0;t=t|0;Pi[e&7](t|0)}function hi(e,t){e=e|0;t=t|0;return Ci[e&1](t|0)|0}function fi(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;Ai[e&0](t|0,r|0,i|0)}function di(e){e=e|0;Oi[e&3]()}function pi(e,t,r,i,n,a,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;Ii[e&3](t|0,r|0,i|0,n|0,a|0,o|0)}function mi(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;return Ri[e&1](t|0,r|0,i|0,n|0,a|0)|0}function gi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;Di[e&3](t|0,r|0,i|0,n|0)}function vi(e,t,r){e=e|0;t=t|0;r=r|0;se(0);return 0}function bi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;se(1)}function yi(e){e=e|0;se(2)}function _i(e){e=e|0;se(3);return 0}function wi(e,t,r){e=e|0;t=t|0;r=r|0;se(4)}function xi(){se(5)}function ki(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;se(6)}function Ti(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;se(7);return 0}function Si(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;se(8)}var Ei=[vi,Yt,Lr,Cr,Pr,Ar,vi,vi];var Mi=[bi,tr,er,bi];var Pi=[yi,qt,Gt,Ht,Wt,Vt,ur,jr];var Ci=[_i,Mr];var Ai=[wi];var Oi=[xi,or,sr,xi];var Ii=[ki,ir,rr,ki];var Ri=[Ti,ut];var Di=[Si,Kt,Zt,Si];return{___cxa_can_catch:nr,_crn_get_levels:kt,_crn_get_uncompressed_size:St,_crn_decompress:Et,_i64Add:Zr,_crn_get_width:wt,___cxa_is_pointer_type:ar,_i64Subtract:Vr,_memset:Yr,_malloc:Nr,_free:Ur,_memcpy:Qr,_bitshift64Lshr:Jr,_fflush:gr,_bitshift64Shl:Kr,_crn_get_height:xt,___errno_location:cr,_crn_get_dxt_format:Tt,runPostSets:Gr,_emscripten_replace_memory:Ye,stackAlloc:Je,stackSave:Ke,stackRestore:Ze,establishStackSpace:Qe,setThrew:$e,setTempRet0:rt,getTempRet0:it,dynCall_iiii:ui,dynCall_viiiii:li,dynCall_vi:ci,dynCall_ii:hi,dynCall_viii:fi,dynCall_v:di,dynCall_viiiiii:pi,dynCall_iiiiii:mi,dynCall_viiii:gi}}(e.Ya,e.Za,buffer);e.___cxa_can_catch=Z.___cxa_can_catch,e._crn_get_levels=Z._crn_get_levels,e.runPostSets=Z.runPostSets,e._crn_get_uncompressed_size=Z._crn_get_uncompressed_size,e._crn_decompress=Z._crn_decompress;var zc=e._i64Add=Z._i64Add;e._crn_get_height=Z._crn_get_height,e.___cxa_is_pointer_type=Z.___cxa_is_pointer_type;var nb=e._i64Subtract=Z._i64Subtract,qb=e._memset=Z._memset,Ea=e._malloc=Z._malloc,Bc=e._memcpy=Z._memcpy,Xa=e._emscripten_replace_memory=Z._emscripten_replace_memory;e._crn_get_dxt_format=Z._crn_get_dxt_format;var rb=e._bitshift64Lshr=Z._bitshift64Lshr,Na=e._free=Z._free;e._fflush=Z._fflush,e._crn_get_width=Z._crn_get_width,e.___errno_location=Z.___errno_location;var sb=e._bitshift64Shl=Z._bitshift64Shl;function ia(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}e.dynCall_iiii=Z.dynCall_iiii,e.dynCall_viiiii=Z.dynCall_viiiii,e.dynCall_vi=Z.dynCall_vi,e.dynCall_ii=Z.dynCall_ii,e.dynCall_viii=Z.dynCall_viii,e.dynCall_v=Z.dynCall_v,e.dynCall_viiiiii=Z.dynCall_viiiiii,e.dynCall_iiiiii=Z.dynCall_iiiiii,e.dynCall_viiii=Z.dynCall_viiii,n.aa=Z.stackAlloc,n.ua=Z.stackSave,n.ba=Z.stackRestore,n.Cd=Z.establishStackSpace,n.rb=Z.setTempRet0,n.fb=Z.getTempRet0,ia.prototype=Error(),ia.prototype.constructor=ia;var rd=null,jb=function t(){e.calledRun||td(),e.calledRun||(jb=t)};function td(t){function r(){if(!e.calledRun&&(e.calledRun=!0,!na)){if(Ha||(Ha=!0,ab(cb)),ab(db),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e._main&&vd&&e.callMain(t),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)gb(e.postRun.shift());ab(eb)}}if(t=t||e.arguments,null===rd&&(rd=Date.now()),!(0<I)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)fb(e.preRun.shift());ab(bb),0<I||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),r()},1)):r())}}function ud(t,r){if(!r||!e.noExitRuntime)throw!e.noExitRuntime&&(na=!0,m=void 0,ab(H),e.onExit)&&e.onExit(t),da?(process.stdout.once("drain",function(){process.exit(t)}),console.log(" "),setTimeout(function(){process.exit(t)},500)):ea&&"function"==typeof quit&&quit(t),new ia(t)}e.callMain=e.zd=function(t){function r(){for(var e=0;e<3;e++)n.push(0)}assert(0==I,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),assert(0==bb.length,"cannot call main when preRun functions remain to be called"),t=t||[],Ha||(Ha=!0,ab(cb));var i=t.length+1,n=[D(hb(e.thisProgram),"i8",0)];r();for(var a=0;a<i-1;a+=1)n.push(D(hb(t[a]),"i8",0)),r();n.push(0),n=D(n,"i32",0);try{ud(e._main(i,n,0),!0)}catch(t){if(!(t instanceof ia)){if("SimulateInfiniteLoop"!=t)throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t;e.noExitRuntime=!0}}},e.run=e.run=td,e.exit=e.exit=ud;var wd=[];function x(t){t=void 0!==t?(e.print(t),e.W(t),JSON.stringify(t)):"",na=!0;var r="abort("+t+") at "+Oa()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw wd&&wd.forEach(function(e){r=e(r,t)}),r}if(e.abort=e.abort=x,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();var vd=!0;e.noInitialRun&&(vd=!1),td(),window.Module=e,function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pixiCompressedTextures=e()}}(function(){var define,module,exports;return function a(o,s,u){function l(r,e){if(!s[r]){if(!o[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(r,!0);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[r]={exports:{}};o[r][0].call(n.exports,function(e){var t=o[r][1][e];return l(t||e)},n,n.exports,a,o,s,u)}return s[r].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(require,module,exports){(function(process,Buffer,__dirname){var e;e||(e=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var aa={},k;for(k in e)e.hasOwnProperty(k)&&(aa[k]=e[k]);var ba="object"==typeof window,ca="function"==typeof importScripts,da="object"==typeof process&&"function"==typeof require&&!ba&&!ca,ea=!ba&&!da&&!ca;if(da){e.print||(e.print=function(e){process.stdout.write(e+"\n")}),e.printErr||(e.printErr=function(e){process.stderr.write(e+"\n")});var fa=require("fs"),ga=require("path");e.read=function(e,t){e=ga.normalize(e);var r=fa.readFileSync(e);return r||e==ga.resolve(e)||(e=path.join(__dirname,"..","src",e),r=fa.readFileSync(e)),r&&!t&&(r=r.toString()),r},e.readBinary=function(t){return(t=e.read(t,!0)).buffer||(t=new Uint8Array(t)),assert(t.buffer),t},e.load=function(e){ha(read(e))},e.thisProgram||(e.thisProgram=1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program"),e.arguments=process.argv.slice(2),void 0!==module&&(module.exports=e),process.on("uncaughtException",function(e){if(!(e instanceof ia))throw e}),e.inspect=function(){return"[Emscripten Module object]"}}else if(ea)e.print||(e.print=print),"undefined"!=typeof printErr&&(e.printErr=printErr),e.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)"},e.readBinary=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(assert("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:void 0!==arguments&&(e.arguments=arguments),eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined");else{if(!ba&&!ca)throw"Unknown runtime environment. Where are we?";e.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},void 0!==arguments&&(e.arguments=arguments),"undefined"!=typeof console?(e.print||(e.print=function(e){console.log(e)}),e.printErr||(e.printErr=function(e){console.log(e)})):e.print||(e.print=function(){}),ca&&(e.load=importScripts),void 0===e.setWindowTitle&&(e.setWindowTitle=function(e){document.title=e})}function ha(e){eval.call(null,e)}for(k in!e.load&&e.read&&(e.load=function(t){ha(e.read(t))}),e.print||(e.print=function(){}),e.printErr||(e.printErr=e.print),e.arguments||(e.arguments=[]),e.thisProgram||(e.thisProgram="./this.program"),e.print=e.print,e.W=e.printErr,e.preRun=[],e.postRun=[],aa)aa.hasOwnProperty(k)&&(e[k]=aa[k]);var n={rb:function(e){ka=e},fb:function(){return ka},ua:function(){return m},ba:function(e){m=e},Ka:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return"*"===e[e.length-1]?n.J:"i"===e[0]?(assert(0==(e=parseInt(e.substr(1)))%8),e/8):0}},eb:function(e){return Math.max(n.Ka(e),n.J)},ud:16,Qd:function(e,t){return"double"===t||"i64"===t?7&e&&(assert(4==(7&e)),e+=4):assert(0==(3&e)),e},Ed:function(e,t,r){return r||"i64"!=e&&"double"!=e?e?Math.min(t||(e?n.eb(e):0),n.J):Math.min(t,8):8},L:function(t,r,i){return i&&i.length?(i.splice||(i=Array.prototype.slice.call(i)),i.splice(0,0,r),e["dynCall_"+t].apply(null,i)):e["dynCall_"+t].call(null,r)},Z:[],Xa:function(e){for(var t=0;t<n.Z.length;t++)if(!n.Z[t])return n.Z[t]=e,2*(1+t);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},nb:function(e){n.Z[(e-2)/2]=null},O:function(t){n.O.ta||(n.O.ta={}),n.O.ta[t]||(n.O.ta[t]=1,e.W(t))},ma:{},Hd:function(e,t){assert(t),n.ma[t]||(n.ma[t]={});var r=n.ma[t];return r[e]||(r[e]=function(){return n.L(t,e,arguments)}),r[e]},Fd:function(){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},aa:function(e){var t=m;return m=(m=m+e|0)+15&-16,t},Ra:function(e){var t=la;return la=(la=la+e|0)+15&-16,t},R:function(e){var i=r;return t<=(r=(r=r+e|0)+15&-16)&&!ma()?(r=i,0):i},ja:function(e,t){return Math.ceil(e/(t||16))*(t||16)},Nd:function(e,t,r){return r?+(e>>>0)+4294967296*+(t>>>0):+(e>>>0)+4294967296*+(0|t)},Ua:8,J:4,vd:0};e.Runtime=n,n.addFunction=n.Xa,n.removeFunction=n.nb;var na=!1,oa,pa,ka,ra,sa;function assert(e,t){e||x("Assertion failed: "+t)}function qa(a){var b=e["_"+a];if(!b)try{b=eval("_"+a)}catch(e){}return assert(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(e,t,r){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":y[e>>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":pa=[t>>>0,(oa=t,1<=+xa(oa)?0<oa?(0|ya(+za(oa/4294967296),4294967295))>>>0:~~+Aa((oa-+(~~oa>>>0))/4294967296)>>>0:0)],C[e>>2]=pa[0],C[e+4>>2]=pa[1];break;case"float":Ba[e>>2]=t;break;case"double":Ca[e>>3]=t;break;default:x("invalid type for setValue: "+r)}}function Da(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":case"i64":return C[e>>2];case"float":return Ba[e>>2];case"double":return Ca[e>>3];default:x("invalid type for setValue: "+t)}return null}function D(e,t,r,i){var a,o;o="number"==typeof e?(a=!0,e):(a=!1,e.length);var s,u,l="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(o,l?1:t.length)),a){for(assert(0==(3&(i=r))),e=r+(-4&o);i<e;i+=4)C[i>>2]=0;for(e=r+o;i<e;)y[i++>>0]=0;return r}if("i8"===l)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;for(i=0;i<o;){var c=e[i];"function"==typeof c&&(c=n.Id(c)),0===(a=l||t[i])?i++:("i64"==a&&(a="i32"),wa(r+i,c,a),u!==a&&(s=n.Ka(a),u=a),i+=s)}return r}function va(t,r){if(0===r||!t)return"";for(var i,n=0,a=0;(n|=i=E[t+a>>0],0!=i||r)&&(a++,!r||a!=r););if(r||(r=a),i="",n<128){for(;0<r;)n=String.fromCharCode.apply(String,E.subarray(t,t+Math.min(r,1024))),i=i?i+n:n,t+=1024,r-=1024;return i}return e.UTF8ToString(t)}function Ja(e,t){for(var r,i,n,a,o,s="";;){if(!(r=e[t++]))return s;128&r?(i=63&e[t++],192==(224&r)?s+=String.fromCharCode((31&r)<<6|i):(n=63&e[t++],(r=224==(240&r)?(15&r)<<12|i<<6|n:(a=63&e[t++],240==(248&r)?(7&r)<<18|i<<12|n<<6|a:(o=63&e[t++],248==(252&r)?(3&r)<<24|i<<18|n<<12|a<<6|o:(1&r)<<30|i<<24|n<<18|a<<12|o<<6|63&e[t++])))<65536?s+=String.fromCharCode(r):(r-=65536,s+=String.fromCharCode(55296|r>>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,i){if(!(0<i))return 0;var n=r;i=r+i-1;for(var a=0;a<e.length;++a){var o=e.charCodeAt(a);if(55296<=o&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),o<=127){if(i<=r)break;t[r++]=o}else{if(o<=2047){if(i<=r+1)break;t[r++]=192|o>>6}else{if(o<=65535){if(i<=r+2)break;t[r++]=224|o>>12}else{if(o<=2097151){if(i<=r+3)break;t[r++]=240|o>>18}else{if(o<=67108863){if(i<=r+4)break;t[r++]=248|o>>24}else{if(i<=r+5)break;t[r++]=252|o>>30,t[r++]=128|o>>24&63}t[r++]=128|o>>18&63}t[r++]=128|o>>12&63}t[r++]=128|o>>6&63}t[r++]=128|63&o}}return t[r]=0,r-n}function La(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);55296<=i&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++r)),i<=127?++t:t=i<=2047?t+2:i<=65535?t+3:i<=2097151?t+4:i<=67108863?t+5:t+6}return t}function Ma(c){var t=!!e.___cxa_demangle;if(t)try{var r=Ea(c.length);ua(c.substr(1),r);var i=Ea(4),a=e.___cxa_demangle(r,0,0,i);if(0===Da(i,"i32")&&a)return va(a)}catch(e){}finally{r&&Na(r),i&&Na(i),a&&Na(a)}var h=3,f={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},d=[],p=!0;r=c;try{if("Object._main"==c||"_main"==c)return"main()";if("number"==typeof c&&(c=va(c)),"_"!==c[0]||"_"!==c[1]||"Z"!==c[2])return c;switch(c[3]){case"n":return"operator new()";case"d":return"operator delete()"}r=function e(t,r,i){r=r||1/0;var n,a="",o=[];if("N"===c[h]){for("K"===c[++h]&&h++,n=[];"E"!==c[h];)if("S"===c[h]){h++;var s=c.indexOf("_",h);n.push(d[c.substring(h,s)||0]||"?"),h=s+1}else if("C"===c[h])n.push(n[n.length-1]),h+=2;else{var u=(s=parseInt(c.substr(h))).toString().length;if(!s||!u){h--;break}var l=c.substr(h+u,s);n.push(l),d.push(l),h+=u+s}if(h++,n=n.join("::"),0==--r)return t?[n]:n}else("K"===c[h]||p&&"L"===c[h])&&h++,(s=parseInt(c.substr(h)))&&(u=s.toString().length,n=c.substr(h+u,s),h+=u+s);p=!1,"I"===c[h]?(h++,s=e(!0),a+=(u=e(!0,1,!0))[0]+" "+n+"<"+s.join(", ")+">"):a=n;e:for(;h<c.length&&0<r--;)if(n=c[h++],n in f)o.push(f[n]);else switch(n){case"P":o.push(e(!0,1,!0)[0]+"*");break;case"R":o.push(e(!0,1,!0)[0]+"&");break;case"L":h++,s=c.indexOf("E",h)-h,o.push(c.substr(h,s)),h+=s+2;break;case"A":if(s=parseInt(c.substr(h)),h+=s.toString().length,"_"!==c[h])throw"?";h++,o.push(e(!0,1,!0)[0]+" ["+s+"]");break;case"E":break e;default:a+="?"+n;break e}return i||1!==o.length||"void"!==o[0]||(o=[]),t?(a&&o.push(a+"?"),o):a+"("+o.join(", ")+")"}()}catch(e){r+="?"}return 0<=r.indexOf("?")&&!t&&n.O("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),r}function Oa(){return Pa().replace(/__Z[\w\d_]+/g,function(e){var t=Ma(e);return e===t?e:e+" ["+t+"]"})}function Pa(){var t=Error();if(!t.stack){try{throw Error(0)}catch(e){t=e}if(!t.stack)return"(no stack trace available)"}return t.stack.toString()}function Qa(e){return 0<e%4096&&(e+=4096-e%4096),e}!function(){function a(e){return{arguments:(e=e.toString().match(d).slice(1))[0],body:e[1],returnValue:e[2]}}var b={stackSave:function(){n.ua()},stackRestore:function(){n.ba()},arrayToC:function(e){var t=n.aa(e.length);return ta(e,t),t},stringToC:function(e){var t=0;return null!=e&&0!==e&&ua(e,t=n.aa(1+(e.length<<2))),t}},c={string:b.stringToC,array:b.arrayToC};sa=function(e,t,r,i,a){e=qa(e);var o=[],s=0;if(i)for(var u=0;u<i.length;u++){var l=c[r[u]];l?(0===s&&(s=n.ua()),o[u]=l(i[u])):o[u]=i[u]}if(r=e.apply(null,o),"string"===t&&(r=va(r)),0!==s){if(a&&a.async)return void EmterpreterAsync.yd.push(function(){n.ba(s)});n.ba(s)}return r};var d=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/,f={},g;for(g in b)b.hasOwnProperty(g)&&(f[g]=a(b[g]));ra=function(b,c,d){d=d||[];var g=qa(b);b=d.every(function(e){return"number"===e});var q="string"!==c;if(q&&b)return g;var v=d.map(function(e,t){return"$"+t});c="(function("+v.join(",")+") {";var B=d.length;if(!b){c+="var stack = "+f.stackSave.body+";";for(var G=0;G<B;G++){var O=v[G],ja=d[G];"number"!==ja&&(ja=f[ja+"ToC"],c+="var "+ja.arguments+" = "+O+";",c+=ja.body+";",c+=O+"="+ja.returnValue+";")}}return d=a(function(){return g}).returnValue,c+="var ret = "+d+"("+v.join(",")+");",q||(d=a(function(){return va}).returnValue,c+="ret = "+d+"(ret);"),b||(c+=f.stackRestore.body.replace("()","(stack)")+";"),eval(c+"return ret})")}}(),e.ccall=sa,e.cwrap=ra,e.setValue=wa,e.getValue=Da,e.ALLOC_NORMAL=0,e.ALLOC_STACK=1,e.ALLOC_STATIC=2,e.ALLOC_DYNAMIC=3,e.ALLOC_NONE=4,e.allocate=D,e.getMemory=function(e){return Fa?void 0!==Ga&&!Ga.p||!Ha?n.R(e):Ea(e):n.Ra(e)},e.Pointer_stringify=va,e.AsciiToString=function(e){for(var t="";;){var r=y[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}},e.stringToAscii=function(e,t){return Ia(e,t,!1)},e.UTF8ArrayToString=Ja,e.UTF8ToString=function(e){return Ja(E,e)},e.stringToUTF8Array=Ka,e.stringToUTF8=function(e,t,r){return Ka(e,E,t,r)},e.lengthBytesUTF8=La,e.UTF16ToString=function(e){for(var t=0,r="";;){var i=z[e+2*t>>1];if(0==i)return r;++t,r+=String.fromCharCode(i)}},e.stringToUTF16=function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;var i=t;r=(r-=2)<2*e.length?r/2:e.length;for(var n=0;n<r;++n)z[t>>1]=e.charCodeAt(n),t+=2;return z[t>>1]=0,t-i},e.lengthBytesUTF16=function(e){return 2*e.length},e.UTF32ToString=function(e){for(var t=0,r="";;){var i=C[e+4*t>>2];if(0==i)return r;++t,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i)):r+=String.fromCharCode(i)}},e.stringToUTF32=function(e,t,r){if(void 0===r&&(r=2147483647),r<4)return 0;var i=t;r=i+r-4;for(var n=0;n<e.length;++n){if(55296<=(a=e.charCodeAt(n))&&a<=57343)var a=65536+((1023&a)<<10)|1023&e.charCodeAt(++n);if(C[t>>2]=a,r<(t+=4)+4)break}return C[t>>2]=0,t-i},e.lengthBytesUTF32=function(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);55296<=i&&i<=57343&&++r,t+=4}return t},e.stackTrace=function(){return Oa()};var y,E,z,Ra,C,Sa,Ba,Ca,Ta=0,la=0,Fa=!1,Ua=0,m=0,Va=0,Wa=0,r=0,Ya,buffer;function ma(){var i=Math.pow(2,31);if(i<=r)return!1;for(;t<=r;)if(t<i/2)t=Qa(2*t);else{var n=t;if((t=Qa((3*t+i)/4))<=n)return!1}if(i<=(t=Math.max(t,16777216)))return!1;try{if(ArrayBuffer.p)buffer=ArrayBuffer.p(buffer,t);else{var a=y;buffer=new ArrayBuffer(t)}}catch(e){return!1}return!!Xa(buffer)&&(e.buffer=buffer,e.HEAP8=y=new Int8Array(buffer),e.HEAP16=z=new Int16Array(buffer),e.HEAP32=C=new Int32Array(buffer),e.HEAPU8=E=new Uint8Array(buffer),e.HEAPU16=Ra=new Uint16Array(buffer),e.HEAPU32=Sa=new Uint32Array(buffer),e.HEAPF32=Ba=new Float32Array(buffer),e.HEAPF64=Ca=new Float64Array(buffer),ArrayBuffer.p||y.set(a),!0)}try{Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get),Ya(new ArrayBuffer(4))}catch(e){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536;F<t||F<2*$a;)F=F<16777216?2*F:F+16777216;function ab(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t();else{var r=t.ab;"number"==typeof r?void 0===t.X?n.L("v",r):n.L("vi",r,[t.X]):r(void 0===t.X?null:t.X)}}}F=Math.max(F,16777216),F!==t&&(t=F),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support"),buffer=new ArrayBuffer(t),y=new Int8Array(buffer),z=new Int16Array(buffer),C=new Int32Array(buffer),E=new Uint8Array(buffer),Ra=new Uint16Array(buffer),Sa=new Uint32Array(buffer),Ba=new Float32Array(buffer),Ca=new Float64Array(buffer),C[0]=255,assert(255===E[0]&&0===E[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=void 0,e.buffer=buffer,e.HEAP8=y,e.HEAP16=z,e.HEAP32=C,e.HEAPU8=E,e.HEAPU16=Ra,e.HEAPU32=Sa,e.HEAPF32=Ba,e.HEAPF64=Ca;var bb=[],cb=[],db=[],H=[],eb=[],Ha=!1;function fb(e){bb.unshift(e)}function gb(e){eb.unshift(e)}function hb(e,t,r){return e=Ka(e,r=Array(0<r?r:La(e)+1),0,r.length),t&&(r.length=e),r}function ua(e,t,r){for(e=hb(e,r),r=0;r<e.length;)y[t+r>>0]=e[r],r+=1}function ta(e,t){for(var r=0;r<e.length;r++)y[t++>>0]=e[r]}function Ia(e,t,r){for(var i=0;i<e.length;++i)y[t++>>0]=e.charCodeAt(i);r||(y[t>>0]=0)}e.addOnPreRun=fb,e.addOnInit=function(e){cb.unshift(e)},e.addOnPreMain=function(e){db.unshift(e)},e.addOnExit=function(e){H.unshift(e)},e.addOnPostRun=gb,e.intArrayFromString=hb,e.intArrayToString=function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];255<i&&(i&=255),t.push(String.fromCharCode(i))}return t.join("")},e.writeStringToMemory=ua,e.writeArrayToMemory=ta,e.writeAsciiToMemory=Ia,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var r=65535&e,i=65535&t;return r*i+((e>>>16)*i+r*(t>>>16)<<16)|0}),Math.Jd=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.Ad=Math.clz32;var xa=Math.abs,Aa=Math.ceil,za=Math.floor,ya=Math.min,I=0,ib=null,jb=null;function kb(){I++,e.monitorRunDependencies&&e.monitorRunDependencies(I)}function lb(){if(I--,e.monitorRunDependencies&&e.monitorRunDependencies(I),0==I&&(null!==ib&&(clearInterval(ib),ib=null),jb)){var t=jb;jb=null,t()}}e.addRunDependency=kb,e.removeRunDependency=lb,e.preloadedImages={},e.preloadedAudios={},Ta=8,la=Ta+5888,cb.push(),D([124,0,0,0,98,7,0,0,124,0,0,0,111,7,0,0,164,0,0,0,124,7,0,0,16,0,0,0,0,0,0,0,164,0,0,0,157,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,227,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,191,7,0,0,56,0,0,0,0,0,0,0,164,0,0,0,5,8,0,0,40,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,40,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,88,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,114,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,1,0,0,236,1,0,0,236,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,239,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,4,0,0,0,231,16,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,40,37,117,41,58,32,65,115,115,101,114,116,105,111,110,32,102,97,105,108,117,114,101,58,32,34,37,115,34,10,0,109,95,115,105,122,101,32,60,61,32,109,95,99,97,112,97,99,105,116,121,0,46,47,99,114,110,95,100,101,99,111,109,112,46,104,0,109,105,110,95,110,101,119,95,99,97,112,97,99,105,116,121,32,60,32,40,48,120,55,70,70,70,48,48,48,48,85,32,47,32,101,108,101,109,101,110,116,95,115,105,122,101,41,0,110,101,119,95,99,97,112,97,99,105,116,121,32,38,38,32,40,110,101,119,95,99,97,112,97,99,105,116,121,32,62,32,109,95,99,97,112,97,99,105,116,121,41,0,110,117,109,95,99,111,100,101,115,91,99,93,0,115,111,114,116,101,100,95,112,111,115,32,60,32,116,111,116,97,108,95,117,115,101,100,95,115,121,109,115,0,112,67,111,100,101,115,105,122,101,115,91,115,121,109,95,105,110,100,101,120,93,32,61,61,32,99,111,100,101,115,105,122,101,0,116,32,60,32,40,49,85,32,60,60,32,116,97,98,108,101,95,98,105,116,115,41,0,109,95,108,111,111,107,117,112,91,116,93,32,61,61,32,99,85,73,78,84,51,50,95,77,65,88,0,99,114,110,100,95,109,97,108,108,111,99,58,32,115,105,122,101,32,116,111,111,32,98,105,103,0,99,114,110,100,95,109,97,108,108,111,99,58,32,111,117,116,32,111,102,32,109,101,109,111,114,121,0,40,40,117,105,110,116,51,50,41,112,95,110,101,119,32,38,32,40,67,82,78,68,95,77,73,78,95,65,76,76,79,67,95,65,76,73,71,78,77,69,78,84,32,45,32,49,41,41,32,61,61,32,48,0,99,114,110,100,95,114,101,97,108,108,111,99,58,32,98,97,100,32,112,116,114,0,99,114,110,100,95,102,114,101,101,58,32,98,97,100,32,112,116,114,0,102,97,108,115,101,0,40,116,111,116,97,108,95,115,121,109,115,32,62,61,32,49,41,32,38,38,32,40,116,111,116,97,108,95,115,121,109,115,32,60,61,32,112,114,101,102,105,120,95,99,111,100,105,110,103,58,58,99,77,97,120,83,117,112,112,111,114,116,101,100,83,121,109,115,41,0,17,18,19,20,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,16,48,0,110,117,109,95,98,105,116,115,32,60,61,32,51,50,85,0,109,95,98,105,116,95,99,111,117,110,116,32,60,61,32,99,66,105,116,66,117,102,83,105,122,101,0,116,32,33,61,32,99,85,73,78,84,51,50,95,77,65,88,0,109,111,100,101,108,46,109,95,99,111,100,101,95,115,105,122,101,115,91,115,121,109,93,32,61,61,32,108,101,110,0,0,2,3,1,0,2,3,4,5,6,7,1,40,108,101,110,32,62,61,32,49,41,32,38,38,32,40,108,101,110,32,60,61,32,99,77,97,120,69,120,112,101,99,116,101,100,67,111,100,101,83,105,122,101,41,0,105,32,60,32,109,95,115,105,122,101,0,110,101,120,116,95,108,101,118,101,108,95,111,102,115,32,62,32,99,117,114,95,108,101,118,101,108,95,111,102,115,0,1,2,2,3,3,3,3,4,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,2,1,2,0,0,0,1,0,2,1,0,2,0,0,1,2,3,110,117,109,32,38,38,32,40,110,117,109,32,61,61,32,126,110,117,109,95,99,104,101,99,107,41,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,57,116,121,112,101,95,105,110,102,111,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,116,101,114,109,105,110,97,116,105,110,103,0,117,110,99,97,117,103,104,116,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0],"i8",4,n.Ua);var mb=n.ja(D(12,"i8",2),8);function ob(t){return e.___errno_location&&(C[e.___errno_location()>>2]=t),t}assert(0==mb%8),e._i64Subtract=nb;var J={I:1,F:2,ed:3,bc:4,H:5,Aa:6,vb:7,zc:8,ea:9,Jb:10,va:11,qd:11,Ta:12,da:13,Vb:14,Lc:15,fa:16,wa:17,rd:18,ha:19,ya:20,P:21,q:22,uc:23,Sa:24,Q:25,nd:26,Wb:27,Hc:28,ia:29,bd:30,nc:31,Vc:32,Sb:33,Zc:34,Dc:42,Zb:43,Kb:44,ec:45,fc:46,gc:47,mc:48,od:49,xc:50,dc:51,Pb:35,Ac:37,Bb:52,Eb:53,sd:54,vc:55,Fb:56,Gb:57,Qb:35,Hb:59,Jc:60,yc:61,kd:62,Ic:63,Ec:64,Fc:65,ad:66,Bc:67,yb:68,gd:69,Lb:70,Wc:71,pc:72,Tb:73,Db:74,Qc:76,Cb:77,$c:78,hc:79,ic:80,lc:81,kc:82,jc:83,Kc:38,za:39,qc:36,ga:40,Rc:95,Uc:96,Ob:104,wc:105,zb:97,Yc:91,Oc:88,Gc:92,cd:108,Nb:111,wb:98,Mb:103,tc:101,rc:100,ld:110,Xb:112,Yb:113,ac:115,Ab:114,Rb:89,oc:90,Xc:93,dd:94,xb:99,sc:102,cc:106,Mc:107,md:109,pd:87,Ub:122,hd:116,Pc:95,Cc:123,$b:84,Sc:75,Ib:125,Nc:131,Tc:130,jd:86};function pb(e,t){H.push(function(){n.L("vi",e,[t])}),pb.level=H.length}function tb(){return!!tb.p}e._memset=qb,e._bitshift64Lshr=rb,e._bitshift64Shl=sb;var ub=[],vb={};function wb(e,t){wb.p||(wb.p={}),e in wb.p||(n.L("v",t),wb.p[e]=1)}var xb={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function yb(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function zb(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Ab(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function Bb(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)}function Cb(){return zb(Array.prototype.slice.call(arguments,0).join("/"))}function K(e,t){return zb(e+"/"+t)}function Db(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||"."}var Eb=[];function Fb(e,t){Eb[e]={input:[],output:[],N:t},Gb(e,Hb)}var Hb={open:function(e){var t=Eb[e.g.rdev];if(!t)throw new L(J.ha);e.tty=t,e.seekable=!1},close:function(e){e.tty.N.flush(e.tty)},flush:function(e){e.tty.N.flush(e.tty)},read:function(e,t,r,i){if(!e.tty||!e.tty.N.La)throw new L(J.Aa);for(var n=0,a=0;a<i;a++){var o;try{o=e.tty.N.La(e.tty)}catch(e){throw new L(J.H)}if(void 0===o&&0===n)throw new L(J.va);if(null==o)break;n++,t[r+a]=o}return n&&(e.g.timestamp=Date.now()),n},write:function(e,t,r,i){if(!e.tty||!e.tty.N.qa)throw new L(J.Aa);for(var n=0;n<i;n++)try{e.tty.N.qa(e.tty,t[r+n])}catch(e){throw new L(J.H)}return i&&(e.g.timestamp=Date.now()),n}},Ib={La:function(e){if(!e.input.length){var t=null;if(da){var r,i=new Buffer(256),n=process.stdin.fd,a=!1;try{n=fs.openSync("/dev/stdin","r"),a=!0}catch(e){}r=fs.readSync(n,i,0,256,null),a&&fs.closeSync(n),t=0<r?i.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&(null!==(t=readline())&&(t+="\n"));if(!t)return null;e.input=hb(t,!0)}return e.input.shift()},qa:function(t,r){null===r||10===r?(e.print(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.print(Ja(t.output,0)),t.output=[])}},Jb={qa:function(t,r){null===r||10===r?(e.printErr(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.printErr(Ja(t.output,0)),t.output=[])}},M={C:null,A:function(){return M.createNode(null,"/",16895,0)},createNode:function(e,t,r,i){if(24576==(61440&r)||4096==(61440&r))throw new L(J.I);return M.C||(M.C={dir:{g:{D:M.k.D,u:M.k.u,lookup:M.k.lookup,T:M.k.T,rename:M.k.rename,unlink:M.k.unlink,rmdir:M.k.rmdir,readdir:M.k.readdir,symlink:M.k.symlink},stream:{G:M.n.G}},file:{g:{D:M.k.D,u:M.k.u},stream:{G:M.n.G,read:M.n.read,write:M.n.write,Ba:M.n.Ba,Na:M.n.Na,Pa:M.n.Pa}},link:{g:{D:M.k.D,u:M.k.u,readlink:M.k.readlink},stream:{}},Ea:{g:{D:M.k.D,u:M.k.u},stream:Kb}}),N((r=Lb(e,t,r,i)).mode)?(r.k=M.C.dir.g,r.n=M.C.dir.stream,r.e={}):32768==(61440&r.mode)?(r.k=M.C.file.g,r.n=M.C.file.stream,r.o=0,r.e=null):40960==(61440&r.mode)?(r.k=M.C.link.g,r.n=M.C.link.stream):8192==(61440&r.mode)&&(r.k=M.C.Ea.g,r.n=M.C.Ea.stream),r.timestamp=Date.now(),e&&(e.e[t]=r),r},cb:function(e){if(e.e&&e.e.subarray){for(var t=[],r=0;r<e.o;++r)t.push(e.e[r]);return t}return e.e},Gd:function(e){return e.e?e.e.subarray?e.e.subarray(0,e.o):new Uint8Array(e.e):new Uint8Array},Ga:function(e,t){if(e.e&&e.e.subarray&&t>e.e.length&&(e.e=M.cb(e),e.o=e.e.length),!e.e||e.e.subarray){var r=e.e?e.e.buffer.byteLength:0;t<=r||(t=Math.max(t,r*(r<1048576?2:1.125)|0),0!=r&&(t=Math.max(t,256)),r=e.e,e.e=new Uint8Array(t),0<e.o&&e.e.set(r.subarray(0,e.o),0))}else for(!e.e&&0<t&&(e.e=[]);e.e.length<t;)e.e.push(0)},ob:function(e,t){if(e.o!=t)if(0==t)e.e=null,e.o=0;else{if(!e.e||e.e.subarray){var r=e.e;e.e=new Uint8Array(new ArrayBuffer(t)),r&&e.e.set(r.subarray(0,Math.min(t,e.o)))}else if(e.e||(e.e=[]),e.e.length>t)e.e.length=t;else for(;e.e.length<t;)e.e.push(0);e.o=t}},k:{D:function(e){var t={};return t.dev=8192==(61440&e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,N(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.o:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.K=4096,t.blocks=Math.ceil(t.size/t.K),t},u:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&M.ob(e,t.size)},lookup:function(){throw Mb[J.F]},T:function(e,t,r,i){return M.createNode(e,t,r,i)},rename:function(e,t,r){if(N(e.mode)){var i;try{i=Nb(t,r)}catch(e){}if(i)for(var n in i.e)throw new L(J.za)}delete e.parent.e[e.name],e.name=r,(t.e[r]=e).parent=t},unlink:function(e,t){delete e.e[t]},rmdir:function(e,t){var r,i=Nb(e,t);for(r in i.e)throw new L(J.za);delete e.e[t]},readdir:function(e){var t,r=[".",".."];for(t in e.e)e.e.hasOwnProperty(t)&&r.push(t);return r},symlink:function(e,t,r){return(e=M.createNode(e,t,41471,0)).link=r,e},readlink:function(e){if(40960!=(61440&e.mode))throw new L(J.q);return e.link}},n:{read:function(e,t,r,i,n){var a=e.g.e;if(n>=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-n,i))),8<e&&a.subarray)t.set(a.subarray(n,n+e),r);else for(i=0;i<e;i++)t[r+i]=a[n+i];return e},write:function(e,t,r,i,n,a){if(!i)return 0;if((e=e.g).timestamp=Date.now(),t.subarray&&(!e.e||e.e.subarray)){if(a)return e.e=t.subarray(r,r+i),e.o=i;if(0===e.o&&0===n)return e.e=new Uint8Array(t.subarray(r,r+i)),e.o=i;if(n+i<=e.o)return e.e.set(t.subarray(r,r+i),n),i}if(M.Ga(e,n+i),e.e.subarray&&t.subarray)e.e.set(t.subarray(r,r+i),n);else for(a=0;a<i;a++)e.e[n+a]=t[r+a];return e.o=Math.max(e.o,n+i),i},G:function(e,t,r){if(1===r?t+=e.position:2===r&&32768==(61440&e.g.mode)&&(t+=e.g.o),t<0)throw new L(J.q);return t},Ba:function(e,t,r){M.Ga(e.g,t+r),e.g.o=Math.max(e.g.o,t+r)},Na:function(e,t,r,i,n,a,o){if(32768!=(61440&e.g.mode))throw new L(J.ha);if(r=e.g.e,2&o||r.buffer!==t&&r.buffer!==t.buffer){if((0<n||n+i<e.g.o)&&(r=r.subarray?r.subarray(n,n+i):Array.prototype.slice.call(r,n,n+i)),e=!0,!(i=Ea(i)))throw new L(J.Ta);t.set(r,i)}else e=!1,i=r.byteOffset;return{Rd:i,xd:e}},Pa:function(e,t,r,i,n){if(32768!=(61440&e.g.mode))throw new L(J.ha);return 2&n||M.n.write(e,t,0,i,r,!1),0}}},P={$:!1,sb:function(){P.$=!!process.platform.match(/^win/)},A:function(e){return assert(da),P.createNode(null,"/",P.Ja(e.pa.root),0)},createNode:function(e,t,r){if(!N(r)&&32768!=(61440&r)&&40960!=(61440&r))throw new L(J.q);return(e=Lb(e,t,r)).k=P.k,e.n=P.n,e},Ja:function(e){var t;try{t=fs.lstatSync(e),P.$&&(t.mode=t.mode|(146&t.mode)>>1)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return t.mode},B:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.A.pa.root),t.reverse(),Cb.apply(null,t)},Ha:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},$a:function(e){if((e&=-32769)in P.Ha)return P.Ha[e];throw new L(J.q)},k:{D:function(e){var t;e=P.B(e);try{t=fs.lstatSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return P.$&&!t.K&&(t.K=4096),P.$&&!t.blocks&&(t.blocks=(t.size+t.K-1)/t.K|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,K:t.K,blocks:t.blocks}},u:function(e,t){var r=P.B(e);try{void 0!==t.mode&&(fs.chmodSync(r,t.mode),e.mode=t.mode),void 0!==t.size&&fs.truncateSync(r,t.size)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},lookup:function(e,t){var r=K(P.B(e),t);r=P.Ja(r);return P.createNode(e,t,r)},T:function(e,t,r,i){e=P.createNode(e,t,r,i),t=P.B(e);try{N(e.mode)?fs.mkdirSync(t,e.mode):fs.writeFileSync(t,"",{mode:e.mode})}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return e},rename:function(e,t,r){e=P.B(e),t=K(P.B(t),r);try{fs.renameSync(e,t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},unlink:function(e,t){var r=K(P.B(e),t);try{fs.unlinkSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},rmdir:function(e,t){var r=K(P.B(e),t);try{fs.rmdirSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readdir:function(e){e=P.B(e);try{return fs.readdirSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},symlink:function(e,t,r){e=K(P.B(e),t);try{fs.symlinkSync(r,e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readlink:function(e){var t=P.B(e);try{return t=fs.readlinkSync(t),t=Ob.relative(Ob.resolve(e.A.pa.root),t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}}},n:{open:function(e){var t=P.B(e.g);try{32768==(61440&e.g.mode)&&(e.V=fs.openSync(t,P.$a(e.flags)))}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},read:function(e,t,r,i,n){if(0===i)return 0;var a,o=new Buffer(i);try{a=fs.readSync(e.V,o,0,i,n)}catch(e){throw new L(J[e.code])}if(0<a)for(e=0;e<a;e++)t[r+e]=o[e];return a},write:function(e,t,r,i,n){var a;t=new Buffer(t.subarray(r,r+i));try{a=fs.writeSync(e.V,t,0,i,n)}catch(e){throw new L(J[e.code])}return a},G:function(e,t,r){if(1===r)t+=e.position;else if(2===r&&32768==(61440&e.g.mode))try{t+=fs.fstatSync(e.V).size}catch(e){throw new L(J[e.code])}if(t<0)throw new L(J.q);return t}}};D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2);var Pb=null,Qb=[null],Rb=[],Sb=1,Q=null,Tb=!0,R={},L=null,Mb={};function S(e,t){if(t=t||{},!(e=Db("/",e)))return{path:"",g:null};var r,i={Ia:!0,ra:0};for(r in i)void 0===t[r]&&(t[r]=i[r]);if(8<t.ra)throw new L(J.ga);i=yb(e.split("/").filter(function(e){return!!e}),!1);var n=Pb;r="/";for(var a=0;a<i.length;a++){var o=a===i.length-1;if(o&&t.parent)break;if(n=Nb(n,i[a]),r=K(r,i[a]),n.U&&(!o||o&&t.Ia)&&(n=n.U.root),!o||t.la)for(o=0;40960==(61440&n.mode);)if(n=Vb(r),n=S(r=Db(Ab(r),n),{ra:t.ra}).g,40<o++)throw new L(J.ga)}return{path:r,g:n}}function T(e){for(var t;;){if(e===e.parent)return e=e.A.Oa,t?"/"!==e[e.length-1]?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}}function Wb(e,t){for(var r=0,i=0;i<t.length;i++)r=(r<<5)-r+t.charCodeAt(i)|0;return(e+r>>>0)%Q.length}function Xb(e){var t=Wb(e.parent.id,e.name);e.M=Q[t],Q[t]=e}function Nb(e,t){var r;if(r=(r=Yb(e,"x"))?r:e.k.lookup?0:J.da)throw new L(r,e);for(r=Q[Wb(e.id,t)];r;r=r.M){var i=r.name;if(r.parent.id===e.id&&i===t)return r}return e.k.lookup(e,t)}function Lb(e,t,r,i){return Zb||((Zb=function(e,t,r,i){e||(e=this),this.parent=e,this.A=e.A,this.U=null,this.id=Sb++,this.name=t,this.mode=r,this.k={},this.n={},this.rdev=i}).prototype={},Object.defineProperties(Zb.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},kb:{get:function(){return N(this.mode)}},jb:{get:function(){return 8192==(61440&this.mode)}}})),Xb(e=new Zb(e,t,r,i)),e}function N(e){return 16384==(61440&e)}var $b={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function Yb(e,t){return Tb?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:J.da}function ac(e,t){try{return Nb(e,t),J.wa}catch(e){}return Yb(e,"wx")}function bc(){for(var e=0;e<=4096;e++)if(!Rb[e])return e;throw new L(J.Sa)}function cc(e){dc||((dc=function(){}).prototype={},Object.defineProperties(dc.prototype,{object:{get:function(){return this.g},set:function(e){this.g=e}},Ld:{get:function(){return 1!=(2097155&this.flags)}},Md:{get:function(){return 0!=(2097155&this.flags)}},Kd:{get:function(){return 1024&this.flags}}}));var t,r=new dc;for(t in e)r[t]=e[t];return e=r,r=bc(),e.fd=r,Rb[r]=e}var Kb={open:function(e){e.n=Qb[e.g.rdev].n,e.n.open&&e.n.open(e)},G:function(){throw new L(J.ia)}},qc;function Gb(e,t){Qb[e]={n:t}}function ec(e,t){var r,i="/"===t,n=!t;if(i&&Pb)throw new L(J.fa);if(!i&&!n){if(t=(r=S(t,{Ia:!1})).path,(r=r.g).U)throw new L(J.fa);if(!N(r.mode))throw new L(J.ya)}n={type:e,pa:{},Oa:t,lb:[]};var a=e.A(n);(a.A=n).root=a,i?Pb=a:r&&(r.U=n,r.A&&r.A.lb.push(n))}function fc(e,t,r){var i=S(e,{parent:!0}).g;if(!(e=Bb(e))||"."===e||".."===e)throw new L(J.q);var n=ac(i,e);if(n)throw new L(n);if(!i.k.T)throw new L(J.I);return i.k.T(i,e,t,r)}function gc(e,t){return t=4095&(void 0!==t?t:438),fc(e,t|=32768,0)}function V(e,t){return t=1023&(void 0!==t?t:511),fc(e,t|=16384,0)}function hc(e,t,r){return void 0===r&&(r=t,t=438),fc(e,8192|t,r)}function ic(e,t){if(!Db(e))throw new L(J.F);var r=S(t,{parent:!0}).g;if(!r)throw new L(J.F);var i=Bb(t),n=ac(r,i);if(n)throw new L(n);if(!r.k.symlink)throw new L(J.I);return r.k.symlink(r,i,e)}function Vb(e){if(!(e=S(e).g))throw new L(J.F);if(!e.k.readlink)throw new L(J.q);return Db(T(e.parent),e.k.readlink(e))}function jc(e,t){var r;if(!(r="string"==typeof e?S(e,{la:!0}).g:e).k.u)throw new L(J.I);r.k.u(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})}function kc(t,r){var i,n,a;if(""===t)throw new L(J.F);if("string"==typeof r){if(void 0===(n=$b[r]))throw Error("Unknown file open mode: "+r)}else n=r;if(i=64&(r=n)?4095&(void 0===i?438:i)|32768:0,"object"==typeof t)a=t;else{t=zb(t);try{a=S(t,{la:!(131072&r)}).g}catch(e){}}if(n=!1,64&r)if(a){if(128&r)throw new L(J.wa)}else a=fc(t,i,0),n=!0;if(!a)throw new L(J.F);if(8192==(61440&a.mode)&&(r&=-513),65536&r&&!N(a.mode))throw new L(J.ya);if(!n&&(i=a?40960==(61440&a.mode)?J.ga:N(a.mode)&&(0!=(2097155&r)||512&r)?J.P:(i=["r","w","rw"][3&r],512&r&&(i+="w"),Yb(a,i)):J.F))throw new L(i);if(512&r){var o;if(!(o="string"==typeof(i=a)?S(i,{la:!0}).g:i).k.u)throw new L(J.I);if(N(o.mode))throw new L(J.P);if(32768!=(61440&o.mode))throw new L(J.q);if(i=Yb(o,"w"))throw new L(i);o.k.u(o,{size:0,timestamp:Date.now()})}r&=-641,(a=cc({g:a,path:T(a),flags:r,seekable:!0,position:0,n:a.n,tb:[],error:!1})).n.open&&a.n.open(a),!e.logReadFiles||1&r||(lc||(lc={}),t in lc||(lc[t]=1,e.printErr("read file: "+t)));try{R.onOpenFile&&(o=0,1!=(2097155&r)&&(o|=1),0!=(2097155&r)&&(o|=2),R.onOpenFile(t,o))}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+t+"', flags) threw an exception: "+e.message)}return a}function mc(e){e.na&&(e.na=null);try{e.n.close&&e.n.close(e)}catch(e){throw e}finally{Rb[e.fd]=null}}function nc(e,t,r){if(!e.seekable||!e.n.G)throw new L(J.ia);e.position=e.n.G(e,t,r),e.tb=[]}function oc(e,t,r,i,n,a){if(i<0||n<0)throw new L(J.q);if(0==(2097155&e.flags))throw new L(J.ea);if(N(e.g.mode))throw new L(J.P);if(!e.n.write)throw new L(J.q);1024&e.flags&&nc(e,0,2);var o=!0;if(void 0===n)n=e.position,o=!1;else if(!e.seekable)throw new L(J.ia);t=e.n.write(e,t,r,i,n,a),o||(e.position+=t);try{e.path&&R.onWriteToFile&&R.onWriteToFile(e.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return t}function pc(){L||((L=function(e,t){this.g=t,this.qb=function(e){for(var t in this.S=e,J)if(J[t]===e){this.code=t;break}},this.qb(e),this.message=xb[e]}).prototype=Error(),L.prototype.constructor=L,[J.F].forEach(function(e){Mb[e]=new L(e),Mb[e].stack="<generic error, no stack>"}))}function rc(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}function sc(e,t,r,i){return gc(e=K("string"==typeof e?e:T(e),t),rc(r,i))}function tc(e,t,r,i,n,a){if(n=gc(e=t?K("string"==typeof e?e:T(e),t):e,i=rc(i,n)),r){if("string"==typeof r){e=Array(r.length),t=0;for(var o=r.length;t<o;++t)e[t]=r.charCodeAt(t);r=e}jc(n,146|i),oc(e=kc(n,"w"),r,0,r.length,0,a),mc(e),jc(n,i)}return n}function W(e,t,s,a){e=K("string"==typeof e?e:T(e),t),t=rc(!!s,!!a),W.Ma||(W.Ma=64);var r=W.Ma++<<8|0;return Gb(r,{open:function(e){e.seekable=!1},close:function(){a&&a.buffer&&a.buffer.length&&a(10)},read:function(e,t,r,i){for(var n=0,a=0;a<i;a++){var o;try{o=s()}catch(e){throw new L(J.H)}if(void 0===o&&0===n)throw new L(J.va);if(null==o)break;n++,t[r+a]=o}return n&&(e.g.timestamp=Date.now()),n},write:function(e,t,r,i){for(var n=0;n<i;n++)try{a(t[r+n])}catch(e){throw new L(J.H)}return i&&(e.g.timestamp=Date.now()),n}}),hc(e,t,r)}function uc(t){if(t.jb||t.kb||t.link||t.e)return!0;var r=!0;if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!e.read)throw Error("Cannot load without read() or XMLHttpRequest.");try{t.e=hb(e.read(t.url),!0),t.o=t.e.length}catch(e){r=!1}return r||ob(J.H),r}var vc={},Zb,dc,lc,wc=0;function X(){return C[(wc+=4)-4>>2]}function xc(){var e;if(e=X(),!(e=Rb[e]))throw new L(J.ea);return e}var yc={};function Ga(e){Ga.p||(r=Qa(r),Ga.p=!0,assert(n.R),Ga.bb=n.R,n.R=function(){x("cannot dynamically allocate, sbrk now has control")});var t=r;return 0==e||Ga.bb(e)?t:4294967295}e._i64Add=zc;var Ac=1;function Cc(e,t){if(Dc=e,Ec=t,!Fc)return 1;if(0==e)Y=function(){setTimeout(Gc,t)},Hc="timeout";else if(1==e)Y=function(){Ic(Gc)},Hc="rAF";else if(2==e){if(!window.setImmediate){var r=[];window.addEventListener("message",function(e){e.source===window&&"__emcc"===e.data&&(e.stopPropagation(),r.shift()())},!0),window.setImmediate=function(e){r.push(e),window.postMessage("__emcc","*")}}Y=function(){window.setImmediate(Gc)},Hc="immediate"}return 0}function Jc(o,t,r,s,i){e.noExitRuntime=!0,assert(!Fc,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Fc=o,Kc=s;var u=Lc;if(Gc=function(){if(!na)if(0<Mc.length){var t=Date.now(),r=Mc.shift();if(r.ab(r.X),Nc){var i=Nc,a=0==i%1?i-1:Math.floor(i);Nc=r.Bd?a:(8*i+(a+.5))/9}console.log('main loop blocker "'+r.name+'" took '+(Date.now()-t)+" ms"),Oc(),setTimeout(Gc,0)}else u<Lc||(Pc=Pc+1|0,1==Dc&&1<Ec&&0!=Pc%Ec?Y():("timeout"===Hc&&e.ka&&(e.W("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Hc=""),Qc(function(){void 0!==s?n.L("vi",o,[s]):n.L("v",o)}),u<Lc||("object"==typeof SDL&&SDL.audio&&SDL.audio.mb&&SDL.audio.mb(),Y())))},i||(t&&0<t?Cc(0,1e3/t):Cc(1,1),Y()),r)throw"SimulateInfiniteLoop"}e._memcpy=Bc;var Y=null,Hc="",Lc=0,Fc=null,Kc=0,Dc=0,Ec=0,Pc=0,Mc=[];function Oc(){if(e.setStatus){var t=e.statusMessage||"Please wait...",r=Nc,i=Rc.Dd;r?r<i?e.setStatus(t+" ("+(i-r)+"/"+i+")"):e.setStatus(t):e.setStatus("")}}function Qc(t){if(!(na||e.preMainLoop&&!1===e.preMainLoop())){try{t()}catch(t){if(t instanceof ia)return;throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t}e.postMainLoop&&e.postMainLoop()}}var Rc={},Gc,Nc,Sc=!1,Tc=!1,Uc=[];function Vc(){function t(){Tc=document.pointerLockElement===r||document.mozPointerLockElement===r||document.webkitPointerLockElement===r||document.msPointerLockElement===r}if(e.preloadPlugins||(e.preloadPlugins=[]),!Wc){Wc=!0;try{Xc=!0}catch(e){Xc=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Yc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Xc?null:console.log("warning: no BlobBuilder"),Zc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,e.Qa||void 0!==Zc||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),e.Qa=!0),e.preloadPlugins.push({canHandle:function(t){return!e.Qa&&/\.(jpg|jpeg|png|bmp)$/i.test(t)},handle:function(r,i,a,t){var o=null;if(Xc)try{(o=new Blob([r],{type:$c(i)})).size!==r.length&&(o=new Blob([new Uint8Array(r).buffer],{type:$c(i)}))}catch(e){n.O("Blob constructor present but fails: "+e+"; falling back to blob builder")}o||((o=new Yc).append(new Uint8Array(r).buffer),o=o.getBlob());var s=Zc.createObjectURL(o),u=new Image;u.onload=function(){assert(u.complete,"Image "+i+" could not be decoded");var t=document.createElement("canvas");t.width=u.width,t.height=u.height,t.getContext("2d").drawImage(u,0,0),e.preloadedImages[i]=t,Zc.revokeObjectURL(s),a&&a(r)},u.onerror=function(){console.log("Image "+s+" could not be decoded"),t&&t()},u.src=s}}),e.preloadPlugins.push({canHandle:function(t){return!e.Pd&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(a,o,r,t){function s(t){u||(u=!0,e.preloadedAudios[o]=t,r&&r(a))}function i(){u||(u=!0,e.preloadedAudios[o]=new Audio,t&&t())}var u=!1;if(!Xc)return i();try{var n=new Blob([a],{type:$c(o)})}catch(e){return i()}n=Zc.createObjectURL(n);var l=new Audio;l.addEventListener("canplaythrough",function(){s(l)},!1),l.onerror=function(){if(!u){console.log("warning: browser could not fully decode audio "+o+", trying slower base64 approach");for(var e="",t=0,r=0,i=0;i<a.length;i++)for(t=t<<8|a[i],r+=8;6<=r;){var n=t>>r-6&63;r=r-6,e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}2==r?(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t)<<4],e+="=="):4==r&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t)<<2],e+="="),l.src="data:audio/x-"+o.substr(-3)+";base64,"+e,s(l)}},l.src=n,ad(function(){s(l)})}});var r=e.canvas;r&&(r.sa=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||function(){},r.Fa=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},r.Fa=r.Fa.bind(document),document.addEventListener("pointerlockchange",t,!1),document.addEventListener("mozpointerlockchange",t,!1),document.addEventListener("webkitpointerlockchange",t,!1),document.addEventListener("mspointerlockchange",t,!1),e.elementPointerLock&&r.addEventListener("click",function(e){!Tc&&r.sa&&(r.sa(),e.preventDefault())},!1))}}function bd(t,r,i,n){if(r&&e.ka&&t==e.canvas)return e.ka;var a,o;if(r){if(o={antialias:!1,alpha:!1},n)for(var s in n)o[s]=n[s];(o=GL.createContext(t,o))&&(a=GL.getContext(o).td),t.style.backgroundColor="black"}else a=t.getContext("2d");return a?(i&&(r||assert("undefined"==typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.ka=a,r&&GL.Od(o),e.Td=r,Uc.forEach(function(e){e()}),Vc()),a):null}var cd=!1,dd=void 0,ed=void 0;function fd(t,r,i){function n(){Sc=!1;var t=a.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t?(a.Da=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},a.Da=a.Da.bind(document),dd&&a.sa(),Sc=!0,ed&&gd()):(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t),ed&&hd()),e.onFullScreen&&e.onFullScreen(Sc),id(a)}void 0===(dd=t)&&(dd=!0),void 0===(ed=r)&&(ed=!1),void 0===(jd=i)&&(jd=null);var a=e.canvas;cd||(cd=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var o=document.createElement("div");a.parentNode.insertBefore(o,a),o.appendChild(a),o.p=o.requestFullScreen||o.mozRequestFullScreen||o.msRequestFullscreen||(o.webkitRequestFullScreen?function(){o.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),i?o.p({Ud:i}):o.p()}var kd=0;function ld(e){var t=Date.now();if(0===kd)kd=t+1e3/60;else for(;kd<=t+2;)kd+=1e3/60;t=Math.max(kd-t,0),setTimeout(e,t)}function Ic(e){"undefined"==typeof window?ld(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||ld),window.requestAnimationFrame(e))}function ad(t){e.noExitRuntime=!0,setTimeout(function(){na||t()},1e4)}function $c(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}function md(e,t,r){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=function(){200==i.status||0==i.status&&i.response?t(i.response):r()},i.onerror=r,i.send(null)}function nd(t,r,e){md(t,function(e){assert(e,'Loading data file "'+t+'" failed (no arrayBuffer).'),r(new Uint8Array(e)),lb()},function(){if(!e)throw'Loading data file "'+t+'" failed.';e()}),kb()}var od=[],Wc,Xc,Yc,Zc,jd;function pd(){var t=e.canvas;od.forEach(function(e){e(t.width,t.height)})}function gd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=8388608|e}pd()}function hd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=-8388609&e}pd()}function id(t,r,i){r&&i?(t.ub=r,t.hb=i):(r=t.ub,i=t.hb);var n=r,a=i;if(e.forcedAspectRatio&&0<e.forcedAspectRatio&&(n/a<e.forcedAspectRatio?n=Math.round(a*e.forcedAspectRatio):a=Math.round(n/e.forcedAspectRatio)),(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t.parentNode&&"undefined"!=typeof screen){var o=Math.min(screen.width/n,screen.height/a);n=Math.round(n*o),a=Math.round(a*o)}ed?(t.width!=n&&(t.width=n),t.height!=a&&(t.height=a),void 0!==t.style&&(t.style.removeProperty("width"),t.style.removeProperty("height"))):(t.width!=r&&(t.width=r),t.height!=i&&(t.height=i),void 0!==t.style&&(n!=r||a!=i?(t.style.setProperty("width",n+"px","important"),t.style.setProperty("height",a+"px","important")):(t.style.removeProperty("width"),t.style.removeProperty("height"))))}if(pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),function(){var e;if(V("/dev"),Gb(259,{read:function(){return 0},write:function(e,t,r,i){return i}}),hc("/dev/null",259),Fb(1280,Ib),Fb(1536,Jb),hc("/dev/tty",1280),hc("/dev/tty1",1536),"undefined"!=typeof crypto){var t=new Uint8Array(1);e=function(){return crypto.getRandomValues(t),t[0]}}else e=da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0};W("/dev","random",e),W("/dev","urandom",e),V("/dev/shm"),V("/dev/shm/tmp")}(),V("/proc"),V("/proc/self"),V("/proc/self/fd"),ec({A:function(){var e=Lb("/proc/self","fd",16895,73);return e.k={lookup:function(e,t){var r=Rb[+t];if(!r)throw new L(J.ea);var i={parent:null,A:{Oa:"fake"},k:{readlink:function(){return r.path}}};return i.parent=i}},e}},"/proc/self/fd"),cb.unshift(function(){if(!e.noFSInit&&!qc){assert(!qc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),qc=!0,pc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?W("/dev","stdin",e.stdin):ic("/dev/tty","/dev/stdin"),e.stdout?W("/dev","stdout",null,e.stdout):ic("/dev/tty","/dev/stdout"),e.stderr?W("/dev","stderr",null,e.stderr):ic("/dev/tty1","/dev/stderr");var t=kc("/dev/stdin","r");assert(0===t.fd,"invalid handle for stdin ("+t.fd+")"),assert(1===(t=kc("/dev/stdout","w")).fd,"invalid handle for stdout ("+t.fd+")"),assert(2===(t=kc("/dev/stderr","w")).fd,"invalid handle for stderr ("+t.fd+")")}}),db.push(function(){Tb=!1}),H.push(function(){qc=!1;var t=e._fflush;for(t&&t(0),t=0;t<Rb.length;t++){var r=Rb[t];r&&mc(r)}}),e.FS_createFolder=function(e,t,r,i){return V(e=K("string"==typeof e?e:T(e),t),rc(r,i))},e.FS_createPath=function(e,t){e="string"==typeof e?e:T(e);for(var r=t.split("/").reverse();r.length;){var i=r.pop();if(i){var n=K(e,i);try{V(n)}catch(e){}e=n}}return n},e.FS_createDataFile=tc,e.FS_createPreloadedFile=function(n,a,t,o,s,u,l,c,h,f){function r(t){function r(e){f&&f(),c||tc(n,a,e,o,s,h),u&&u(),lb()}var i=!1;e.preloadPlugins.forEach(function(e){!i&&e.canHandle(d)&&(e.handle(t,d,r,function(){l&&l(),lb()}),i=!0)}),i||r(t)}Vc();var d=a?Db(K(n,a)):n;kb(),"string"==typeof t?nd(t,function(e){r(e)},l):r(t)},e.FS_createLazyFile=function(e,t,u,r,i){var n,a;function o(){this.oa=!1,this.Y=[]}if(o.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize;return this.gb(e/this.chunkSize|0)[t]}},o.prototype.pb=function(e){this.gb=e},o.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",u,!1),e.send(null),!(200<=e.status&&e.status<300||304===e.status))throw Error("Couldn't load "+u+". Status: "+e.status);var t,a=Number(e.getResponseHeader("Content-length")),o=1048576;(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t||(o=a);var s=this;s.pb(function(e){var t=e*o,r=(e+1)*o-1;r=Math.min(r,a-1);if(void 0===s.Y[e]){var i=s.Y;if(r<t)throw Error("invalid range ("+t+", "+r+") or no bytes requested!");if(a-1<r)throw Error("only "+a+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",u,!1),a!==o&&n.setRequestHeader("Range","bytes="+t+"-"+r),"undefined"!=typeof Uint8Array&&(n.responseType="arraybuffer"),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(200<=n.status&&n.status<300||304===n.status))throw Error("Couldn't load "+u+". Status: "+n.status);t=void 0!==n.response?new Uint8Array(n.response||[]):hb(n.responseText||"",!0),i[e]=t}if(void 0===s.Y[e])throw Error("doXHR failed!");return s.Y[e]}),this.Wa=a,this.Va=o,this.oa=!0},"undefined"!=typeof XMLHttpRequest){if(!ca)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";n=new o,Object.defineProperty(n,"length",{get:function(){return this.oa||this.Ca(),this.Wa}}),Object.defineProperty(n,"chunkSize",{get:function(){return this.oa||this.Ca(),this.Va}}),a=void 0}else a=u,n=void 0;var s=sc(e,t,r,i);n?s.e=n:a&&(s.e=null,s.url=a),Object.defineProperty(s,"usedBytes",{get:function(){return this.e.length}});var l={};return Object.keys(s.n).forEach(function(e){var t=s.n[e];l[e]=function(){if(!uc(s))throw new L(J.H);return t.apply(null,arguments)}}),l.read=function(e,t,r,i,n){if(!uc(s))throw new L(J.H);if(n>=(e=e.g.e).length)return 0;if(assert(0<=(i=Math.min(e.length-n,i))),e.slice)for(var a=0;a<i;a++)t[r+a]=e[n+a];else for(a=0;a<i;a++)t[r+a]=e.get(n+a);return i},s.n=l,s},e.FS_createLink=function(e,t,r){return ic(r,e=K("string"==typeof e?e:T(e),t))},e.FS_createDevice=W,e.FS_unlink=function(t){var r,e=S(t,{parent:!0}).g,i=Bb(t),n=Nb(e,i);e:{try{r=Nb(e,i)}catch(e){r=e.S;break e}var a=Yb(e,"wx");r=a||(N(r.mode)?J.P:0)}if(r)throw r===J.P&&(r=J.I),new L(r);if(!e.k.unlink)throw new L(J.I);if(n.U)throw new L(J.fa);try{R.willDeletePath&&R.willDeletePath(t)}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+t+"') threw an exception: "+e.message)}if(e.k.unlink(e,i),e=Wb(n.parent.id,n.name),Q[e]===n)Q[e]=n.M;else for(e=Q[e];e;){if(e.M===n){e.M=n.M;break}e=e.M}try{R.onDeletePath&&R.onDeletePath(t)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+t+"') threw an exception: "+e.message)}},cb.unshift(function(){}),H.push(function(){}),da){var fs=require("fs"),Ob=require("path");P.sb()}e.requestFullScreen=function(e,t,r){fd(e,t,r)},e.requestAnimationFrame=function(e){Ic(e)},e.setCanvasSize=function(t,r,i){id(e.canvas,t,r),i||pd()},e.pauseMainLoop=function(){Y=null,Lc++},e.resumeMainLoop=function(){Lc++;var e=Dc,t=Ec;Jc(Fc,0,!1,Kc,!(Fc=null)),Cc(e,t),Y()},e.getUserMedia=function(){window.p||(window.p=navigator.getUserMedia||navigator.mozGetUserMedia),window.p(void 0)},e.createContext=function(e,t,r,i){return bd(e,t,r,i)},Ua=m=n.ja(la),Fa=!0,Va=Ua+$a,Wa=r=n.ja(Va),assert(Wa<t,"TOTAL_MEMORY not big enough for stack");var qd=D([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3);e.Ya={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0,byteLength:Ya},e.Za={abort:x,assert:assert,invoke_iiii:function(t,r,i,n){try{return e.dynCall_iiii(t,r,i,n)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiii:function(t,r,i,n,a,o){try{e.dynCall_viiiii(t,r,i,n,a,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_vi:function(t,r){try{e.dynCall_vi(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_ii:function(t,r){try{return e.dynCall_ii(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viii:function(t,r,i,n){try{e.dynCall_viii(t,r,i,n)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_v:function(t){try{e.dynCall_v(t)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiiii:function(t,r,i,n,a,o,s){try{e.dynCall_viiiiii(t,r,i,n,a,o,s)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_iiiiii:function(t,r,i,n,a,o){try{return e.dynCall_iiiiii(t,r,i,n,a,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiii:function(t,r,i,n,a){try{e.dynCall_viiii(t,r,i,n,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},_pthread_cleanup_pop:function(){assert(pb.level==H.length,"cannot pop if something else added meanwhile!"),H.pop(),pb.level=H.length},___syscall54:function(e,t){wc=t;try{var r=xc(),i=X();switch(i){case 21505:case 21506:return r.tty?0:-J.Q;case 21519:if(!r.tty)return-J.Q;var n=X();return C[n>>2]=0;case 21520:return r.tty?-J.q:-J.Q;case 21531:if(n=X(),!r.n.ib)throw new L(J.Q);return r.n.ib(r,i,n);default:x("bad ioctl syscall "+i)}}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall6:function(e,t){wc=t;try{return mc(xc()),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},_emscripten_set_main_loop_timing:Cc,__ZSt18uncaught_exceptionv:tb,___setErrNo:ob,_sbrk:Ga,___cxa_begin_catch:function(e){var t;tb.p--,ub.push(e);e:{if(e&&!vb[e])for(t in vb)if(vb[t].wd===e)break e;t=e}return t&&vb[t].Sd++,e},_emscripten_memcpy_big:function(e,t,r){return E.set(E.subarray(t,t+r),e),e},_sysconf:function(e){switch(e){case 30:return 4096;case 85:return F/4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return ob(J.q),-1},_pthread_getspecific:function(e){return yc[e]||0},_pthread_self:function(){return 0},_pthread_once:wb,_pthread_key_create:function(e){return 0==e?J.q:(C[e>>2]=Ac,yc[Ac]=0,Ac++,0)},___unlock:function(){},_emscripten_set_main_loop:Jc,_pthread_setspecific:function(e,t){return e in yc?(yc[e]=t,0):J.q},___lock:function(){},_abort:function(){e.abort()},_pthread_cleanup_push:pb,_time:function(e){var t=Date.now()/1e3|0;return e&&(C[e>>2]=t),t},___syscall140:function(e,t){wc=t;try{var r=xc(),i=X(),n=X(),a=X(),o=X();return assert(0===i),nc(r,n,o),C[a>>2]=r.position,r.na&&0===n&&0===o&&(r.na=null),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall146:function(e,t){wc=t;try{var r,i=xc(),n=X();e:{for(var a=X(),o=0,s=0;s<a;s++){var u=oc(i,y,C[n+8*s>>2],C[n+(8*s+4)>>2],void 0);if(u<0){r=-1;break e}o+=u}r=o}return r}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},STACKTOP:m,STACK_MAX:Va,tempDoublePtr:mb,ABORT:na,cttz_i8:qd};var Z=function(e,t,r){"use asm";var i=e.Int8Array;var n=e.Int16Array;var a=e.Int32Array;var o=e.Uint8Array;var s=e.Uint16Array;var u=e.Uint32Array;var l=e.Float32Array;var c=e.Float64Array;var de=new i(r);var $=new n(r);var pe=new a(r);var me=new o(r);var ge=new s(r);var h=new u(r);var f=new l(r);var ee=new c(r);var d=e.byteLength;var ve=t.STACKTOP|0;var p=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var m=t.ABORT|0;var g=t.cttz_i8|0;var v=0;var b=0;var y=0;var _=0;var w=e.NaN,x=e.Infinity;var k=0,T=0,S=0,E=0,M=0.0,P=0,C=0,A=0,O=0.0;var re=0;var I=0;var R=0;var D=0;var j=0;var L=0;var z=0;var F=0;var B=0;var N=0;var U=e.Math.floor;var X=e.Math.abs;var q=e.Math.sqrt;var H=e.Math.pow;var W=e.Math.cos;var G=e.Math.sin;var V=e.Math.tan;var Y=e.Math.acos;var J=e.Math.asin;var K=e.Math.atan;var Z=e.Math.atan2;var Q=e.Math.exp;var ie=e.Math.log;var ne=e.Math.ceil;var be=e.Math.imul;var ae=e.Math.min;var oe=e.Math.clz32;var se=t.abort;var ue=t.assert;var le=t.invoke_iiii;var ce=t.invoke_viiiii;var he=t.invoke_vi;var fe=t.invoke_ii;var ye=t.invoke_viii;var _e=t.invoke_v;var we=t.invoke_viiiiii;var xe=t.invoke_iiiiii;var ke=t.invoke_viiii;var Te=t._pthread_cleanup_pop;var Se=t.___syscall54;var Ee=t.___syscall6;var Me=t._emscripten_set_main_loop_timing;var Pe=t.__ZSt18uncaught_exceptionv;var Ce=t.___setErrNo;var Ae=t._sbrk;var Oe=t.___cxa_begin_catch;var Ie=t._emscripten_memcpy_big;var Re=t._sysconf;var De=t._pthread_getspecific;var je=t._pthread_self;var Le=t._pthread_once;var ze=t._pthread_key_create;var Fe=t.___unlock;var Be=t._emscripten_set_main_loop;var Ne=t._pthread_setspecific;var Ue=t.___lock;var Xe=t._abort;var qe=t._pthread_cleanup_push;var He=t._time;var We=t.___syscall140;var Ge=t.___syscall146;var Ve=0.0;function Ye(e){if(d(e)&16777215||d(e)<=16777215||d(e)>2147483648)return false;de=new i(e);$=new n(e);pe=new a(e);me=new o(e);ge=new s(e);h=new u(e);f=new l(e);ee=new c(e);r=e;return true}function Je(e){e=e|0;var t=0;t=ve;ve=ve+e|0;ve=ve+15&-16;return t|0}function Ke(){return ve|0}function Ze(e){e=e|0;ve=e}function Qe(e,t){e=e|0;t=t|0;ve=e;p=t}function $e(e,t){e=e|0;t=t|0;if(!v){v=e;b=t}}function et(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0]}function tt(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0];de[te+4>>0]=de[e+4>>0];de[te+5>>0]=de[e+5>>0];de[te+6>>0]=de[e+6>>0];de[te+7>>0]=de[e+7>>0]}function rt(e){e=e|0;re=e}function it(){return re|0}function nt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0;m=ve;ve=ve+608|0;f=m+88|0;h=m+72|0;u=m+64|0;s=m+48|0;o=m+24|0;a=m;c=m+96|0;d=m+92|0;l=e+4|0;p=e+8|0;if((pe[l>>2]|0)>>>0>(pe[p>>2]|0)>>>0){pe[a>>2]=1154;pe[a+4>>2]=2120;pe[a+8>>2]=1133;_r(c,1100,a)|0;yr(c,m+16|0)|0}if((2147418112/(i>>>0)|0)>>>0<=t>>>0){pe[o>>2]=1154;pe[o+4>>2]=2121;pe[o+8>>2]=1169;_r(c,1100,o)|0;yr(c,m+40|0)|0}o=pe[p>>2]|0;if(o>>>0>=t>>>0){p=1;ve=m;return p|0}do{if(r){if(t){a=t+-1|0;if(!(a&t)){a=11;break}else t=a}else t=-1;t=t>>>16|t;t=t>>>8|t;t=t>>>4|t;t=t>>>2|t;t=(t>>>1|t)+1|0;a=10}else a=10}while(0);if((a|0)==10)if(!t){t=0;a=12}else a=11;if((a|0)==11)if(t>>>0<=o>>>0)a=12;if((a|0)==12){pe[s>>2]=1154;pe[s+4>>2]=2130;pe[s+8>>2]=1217;_r(c,1100,s)|0;yr(c,u)|0}r=be(t,i)|0;do{if(!n){a=at(pe[e>>2]|0,r,d,1)|0;if(!a){p=0;ve=m;return p|0}else{pe[e>>2]=a;break}}else{o=ot(r,d)|0;if(!o){p=0;ve=m;return p|0}Ai[n&0](o,pe[e>>2]|0,pe[l>>2]|0);a=pe[e>>2]|0;do{if(a)if(!(a&7)){Ri[pe[104>>2]&1](a,0,0,1,pe[27]|0)|0;break}else{pe[h>>2]=1154;pe[h+4>>2]=2499;pe[h+8>>2]=1516;_r(c,1100,h)|0;yr(c,f)|0;break}}while(0);pe[e>>2]=o}}while(0);a=pe[d>>2]|0;if(a>>>0>r>>>0)t=(a>>>0)/(i>>>0)|0;pe[p>>2]=t;p=1;ve=m;return p|0}function at(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0;l=ve;ve=ve+592|0;u=l+48|0;a=l+24|0;n=l;s=l+72|0;o=l+68|0;if(e&7){pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1494;_r(s,1100,n)|0;yr(s,l+16|0)|0;u=0;ve=l;return u|0}if(t>>>0>2147418112){pe[a>>2]=1154;pe[a+4>>2]=2499;pe[a+8>>2]=1387;_r(s,1100,a)|0;yr(s,l+40|0)|0;u=0;ve=l;return u|0}pe[o>>2]=t;i=Ri[pe[104>>2]&1](e,t,o,i,pe[27]|0)|0;if(r)pe[r>>2]=pe[o>>2];if(!(i&7)){u=i;ve=l;return u|0}pe[u>>2]=1154;pe[u+4>>2]=2551;pe[u+8>>2]=1440;_r(s,1100,u)|0;yr(s,l+64|0)|0;u=i;ve=l;return u|0}function ot(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0;u=ve;ve=ve+592|0;o=u+48|0;s=u+24|0;r=u;a=u+72|0;n=u+68|0;i=e+3&-4;i=(i|0)!=0?i:4;if(i>>>0>2147418112){pe[r>>2]=1154;pe[r+4>>2]=2499;pe[r+8>>2]=1387;_r(a,1100,r)|0;yr(a,u+16|0)|0;s=0;ve=u;return s|0}pe[n>>2]=i;r=Ri[pe[104>>2]&1](0,i,n,1,pe[27]|0)|0;e=pe[n>>2]|0;if(t)pe[t>>2]=e;if((r|0)==0|e>>>0<i>>>0){pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1413;_r(a,1100,s)|0;yr(a,u+40|0)|0;s=0;ve=u;return s|0}if(!(r&7)){s=r;ve=u;return s|0}pe[o>>2]=1154;pe[o+4>>2]=2526;pe[o+8>>2]=1440;_r(a,1100,o)|0;yr(a,u+64|0)|0;s=r;ve=u;return s|0}function st(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0;F=ve;ve=ve+960|0;j=F+232|0;D=F+216|0;R=F+208|0;I=F+192|0;O=F+184|0;A=F+168|0;C=F+160|0;P=F+144|0;S=F+136|0;T=F+120|0;k=F+112|0;x=F+96|0;y=F+88|0;b=F+72|0;v=F+64|0;g=F+48|0;h=F+40|0;d=F+24|0;f=F+16|0;c=F;M=F+440|0;L=F+376|0;z=F+304|0;m=F+236|0;if((t|0)==0|i>>>0>11){e=0;ve=F;return e|0}pe[e>>2]=t;n=z;a=n+68|0;do{pe[n>>2]=0;n=n+4|0}while((n|0)<(a|0));a=0;do{n=de[r+a>>0]|0;if(n<<24>>24){E=z+((n&255)<<2)|0;pe[E>>2]=(pe[E>>2]|0)+1}a=a+1|0}while((a|0)!=(t|0));a=0;l=1;o=0;s=-1;u=0;while(1){n=pe[z+(l<<2)>>2]|0;if(!n)pe[e+28+(l+-1<<2)>>2]=0;else{E=l+-1|0;pe[L+(E<<2)>>2]=a;a=n+a|0;w=16-l|0;pe[e+28+(E<<2)>>2]=(a+-1<<w|(1<<w)+-1)+1;pe[e+96+(E<<2)>>2]=u;pe[m+(l<<2)>>2]=u;o=o>>>0>l>>>0?o:l;s=s>>>0<l>>>0?s:l;u=n+u|0}l=l+1|0;if((l|0)==17){E=o;break}else a=a<<1}pe[e+4>>2]=u;a=e+172|0;do{if(u>>>0>(pe[a>>2]|0)>>>0){pe[a>>2]=u;if(u){n=u+-1|0;if(n&u)p=14}else{n=-1;p=14}if((p|0)==14){w=n>>>16|n;w=w>>>8|w;w=w>>>4|w;w=w>>>2|w;w=(w>>>1|w)+1|0;pe[a>>2]=w>>>0>t>>>0?t:w}o=e+176|0;n=pe[o>>2]|0;do{if(n){w=pe[n+-4>>2]|0;n=n+-8|0;if(!((w|0)!=0?(w|0)==(~pe[n>>2]|0):0)){pe[c>>2]=1154;pe[c+4>>2]=644;pe[c+8>>2]=1863;_r(M,1100,c)|0;yr(M,f)|0}if(!(n&7)){Ri[pe[104>>2]&1](n,0,0,1,pe[27]|0)|0;break}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;_r(M,1100,d)|0;yr(M,h)|0;break}}}while(0);a=pe[a>>2]|0;a=(a|0)!=0?a:1;n=ot((a<<1)+8|0,0)|0;if(!n){pe[o>>2]=0;n=0;break}else{pe[n+4>>2]=a;pe[n>>2]=~a;pe[o>>2]=n+8;p=25;break}}else p=25}while(0);e:do{if((p|0)==25){w=e+24|0;de[w>>0]=s;de[e+25>>0]=E;a=e+176|0;o=0;do{_=de[r+o>>0]|0;n=_&255;if(_<<24>>24){if(!(pe[z+(n<<2)>>2]|0)){pe[g>>2]=1154;pe[g+4>>2]=2273;pe[g+8>>2]=1261;_r(M,1100,g)|0;yr(M,v)|0}_=m+(n<<2)|0;n=pe[_>>2]|0;pe[_>>2]=n+1;if(n>>>0>=u>>>0){pe[b>>2]=1154;pe[b+4>>2]=2277;pe[b+8>>2]=1274;_r(M,1100,b)|0;yr(M,y)|0}$[(pe[a>>2]|0)+(n<<1)>>1]=o}o=o+1|0}while((o|0)!=(t|0));n=de[w>>0]|0;y=(n&255)>>>0<i>>>0?i:0;_=e+8|0;pe[_>>2]=y;b=(y|0)!=0;if(b){v=1<<y;n=e+164|0;do{if(v>>>0>(pe[n>>2]|0)>>>0){pe[n>>2]=v;o=e+168|0;n=pe[o>>2]|0;do{if(n){g=pe[n+-4>>2]|0;n=n+-8|0;if(!((g|0)!=0?(g|0)==(~pe[n>>2]|0):0)){pe[x>>2]=1154;pe[x+4>>2]=644;pe[x+8>>2]=1863;_r(M,1100,x)|0;yr(M,k)|0}if(!(n&7)){Ri[pe[104>>2]&1](n,0,0,1,pe[27]|0)|0;break}else{pe[T>>2]=1154;pe[T+4>>2]=2499;pe[T+8>>2]=1516;_r(M,1100,T)|0;yr(M,S)|0;break}}}while(0);n=v<<2;a=ot(n+8|0,0)|0;if(!a){pe[o>>2]=0;n=0;break e}else{S=a+8|0;pe[a+4>>2]=v;pe[a>>2]=~v;pe[o>>2]=S;a=S;break}}else{a=e+168|0;n=v<<2;o=a;a=pe[a>>2]|0}}while(0);Yr(a|0,-1,n|0)|0;p=e+176|0;g=1;do{if(pe[z+(g<<2)>>2]|0){t=y-g|0;m=1<<t;a=g+-1|0;s=pe[L+(a<<2)>>2]|0;if(a>>>0>=16){pe[P>>2]=1154;pe[P+4>>2]=1953;pe[P+8>>2]=1737;_r(M,1100,P)|0;yr(M,C)|0}n=pe[e+28+(a<<2)>>2]|0;if(!n)d=-1;else d=(n+-1|0)>>>(16-g|0);if(s>>>0<=d>>>0){h=(pe[e+96+(a<<2)>>2]|0)-s|0;f=g<<16;do{n=ge[(pe[p>>2]|0)+(h+s<<1)>>1]|0;if((me[r+n>>0]|0|0)!=(g|0)){pe[A>>2]=1154;pe[A+4>>2]=2319;pe[A+8>>2]=1303;_r(M,1100,A)|0;yr(M,O)|0}c=s<<t;a=n|f;l=0;do{u=l+c|0;if(u>>>0>=v>>>0){pe[I>>2]=1154;pe[I+4>>2]=2325;pe[I+8>>2]=1337;_r(M,1100,I)|0;yr(M,R)|0}n=pe[o>>2]|0;if((pe[n+(u<<2)>>2]|0)!=-1){pe[D>>2]=1154;pe[D+4>>2]=2327;pe[D+8>>2]=1360;_r(M,1100,D)|0;yr(M,j)|0;n=pe[o>>2]|0}pe[n+(u<<2)>>2]=a;l=l+1|0}while(l>>>0<m>>>0);s=s+1|0}while(s>>>0<=d>>>0)}}g=g+1|0}while(y>>>0>=g>>>0);n=de[w>>0]|0}a=e+96|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L>>2]|0);a=e+100|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+4>>2]|0);a=e+104|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+8>>2]|0);a=e+108|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+12>>2]|0);a=e+112|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+16>>2]|0);a=e+116|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+20>>2]|0);a=e+120|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+24>>2]|0);a=e+124|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+28>>2]|0);a=e+128|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+32>>2]|0);a=e+132|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+36>>2]|0);a=e+136|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+40>>2]|0);a=e+140|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+44>>2]|0);a=e+144|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+48>>2]|0);a=e+148|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+52>>2]|0);a=e+152|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+56>>2]|0);a=e+156|0;pe[a>>2]=(pe[a>>2]|0)-(pe[L+60>>2]|0);a=e+16|0;pe[a>>2]=0;o=e+20|0;pe[o>>2]=n&255;t:do{if(b){while(1){if(!i)break t;n=i+-1|0;if(!(pe[z+(i<<2)>>2]|0))i=n;else break}pe[a>>2]=pe[e+28+(n<<2)>>2];n=y+1|0;pe[o>>2]=n;if(n>>>0<=E>>>0){while(1){if(pe[z+(n<<2)>>2]|0)break;n=n+1|0;if(n>>>0>E>>>0)break t}pe[o>>2]=n}}}while(0);pe[e+92>>2]=-1;pe[e+160>>2]=1048575;pe[e+12>>2]=32-(pe[_>>2]|0);n=1}}while(0);e=n;ve=F;return e|0}function ut(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0;if(!e){n=Nr(t)|0;if(!r){r=n;return r|0}if(!n)a=0;else a=qr(n)|0;pe[r>>2]=a;r=n;return r|0}if(!t){Ur(e);if(!r){r=0;return r|0}pe[r>>2]=0;r=0;return r|0}n=Xr(e,t)|0;a=(n|0)!=0;if(a|i^1)a=a?n:e;else{n=Xr(e,t)|0;a=(n|0)==0?e:n}if(!r){r=n;return r|0}t=qr(a)|0;pe[r>>2]=t;r=n;return r|0}function lt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if(!((e|0)!=0&t>>>0>73&(r|0)!=0)){r=0;return r|0}if((pe[r>>2]|0)!=40|t>>>0<74){r=0;return r|0}if(((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)!=18552){r=0;return r|0}if(((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0<74){r=0;return r|0}if(((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0>t>>>0){r=0;return r|0}pe[r+4>>2]=(me[e+12>>0]|0)<<8|(me[e+13>>0]|0);pe[r+8>>2]=(me[e+14>>0]|0)<<8|(me[e+15>>0]|0);pe[r+12>>2]=me[e+16>>0];pe[r+16>>2]=me[e+17>>0];t=e+18|0;i=r+32|0;pe[i>>2]=me[t>>0];pe[i+4>>2]=0;t=de[t>>0]|0;pe[r+20>>2]=t<<24>>24==0|t<<24>>24==9?8:16;pe[r+24>>2]=(me[e+26>>0]|0)<<16|(me[e+25>>0]|0)<<24|(me[e+27>>0]|0)<<8|(me[e+28>>0]|0);pe[r+28>>2]=(me[e+30>>0]|0)<<16|(me[e+29>>0]|0)<<24|(me[e+31>>0]|0)<<8|(me[e+32>>0]|0);r=1;return r|0}function ct(e){e=e|0;Oe(e|0)|0;Ut()}function ht(e){e=e|0;var t=0,r=0,i=0,n=0,a=0;a=ve;ve=ve+544|0;n=a;i=a+24|0;t=pe[e+20>>2]|0;if(t)ft(t);t=e+4|0;r=pe[t>>2]|0;if(!r){n=e+16|0;de[n>>0]=0;ve=a;return}if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1516;_r(i,1100,n)|0;yr(i,a+16|0)|0}pe[t>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;n=e+16|0;de[n>>0]=0;ve=a;return}function ft(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;d=ve;ve=ve+640|0;f=d+112|0;h=d+96|0;c=d+88|0;l=d+72|0;u=d+64|0;s=d+48|0;i=d+40|0;a=d+24|0;n=d+16|0;r=d;o=d+120|0;if(!e){ve=d;return}t=pe[e+168>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[r>>2]=1154;pe[r+4>>2]=644;pe[r+8>>2]=1863;_r(o,1100,r)|0;yr(o,n)|0}if(!(t&7)){Ri[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[a>>2]=1154;pe[a+4>>2]=2499;pe[a+8>>2]=1516;_r(o,1100,a)|0;yr(o,i)|0;break}}}while(0);t=pe[e+176>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[s>>2]=1154;pe[s+4>>2]=644;pe[s+8>>2]=1863;_r(o,1100,s)|0;yr(o,u)|0}if(!(t&7)){Ri[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[l>>2]=1154;pe[l+4>>2]=2499;pe[l+8>>2]=1516;_r(o,1100,l)|0;yr(o,c)|0;break}}}while(0);if(!(e&7)){Ri[pe[104>>2]&1](e,0,0,1,pe[27]|0)|0;ve=d;return}else{pe[h>>2]=1154;pe[h+4>>2]=2499;pe[h+8>>2]=1516;_r(o,1100,h)|0;yr(o,f)|0;ve=d;return}}function dt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+560|0;o=c+40|0;s=c+24|0;t=c;a=c+48|0;n=e+8|0;r=pe[n>>2]|0;if((r+-1|0)>>>0>=8192){pe[t>>2]=1154;pe[t+4>>2]=2997;pe[t+8>>2]=1541;_r(a,1100,t)|0;yr(a,c+16|0)|0}pe[e>>2]=r;i=e+20|0;t=pe[i>>2]|0;if(!t){t=ot(180,0)|0;if(!t)t=0;else{l=t+164|0;pe[l>>2]=0;pe[l+4>>2]=0;pe[l+8>>2]=0;pe[l+12>>2]=0}pe[i>>2]=t;l=t;u=pe[e>>2]|0}else{l=t;u=r}if(!(pe[n>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;_r(a,1100,s)|0;yr(a,o)|0;a=pe[e>>2]|0}else a=u;n=pe[e+4>>2]|0;if(a>>>0>16){r=a;t=0}else{e=0;l=st(l,u,n,e)|0;ve=c;return l|0}while(1){i=t+1|0;if(r>>>0>3){r=r>>>1;t=i}else{r=i;break}}e=t+2+((r|0)!=32&1<<r>>>0<a>>>0&1)|0;e=e>>>0<11?e&255:11;l=st(l,u,n,e)|0;ve=c;return l|0}function pt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0;j=ve;ve=ve+800|0;A=j+256|0;C=j+240|0;P=j+232|0;M=j+216|0;E=j+208|0;S=j+192|0;T=j+184|0;k=j+168|0;x=j+160|0;w=j+144|0;_=j+136|0;y=j+120|0;b=j+112|0;v=j+96|0;g=j+88|0;m=j+72|0;h=j+64|0;c=j+48|0;s=j+40|0;u=j+24|0;a=j+16|0;n=j;R=j+288|0;D=j+264|0;O=mt(e,14)|0;if(!O){pe[t>>2]=0;r=t+4|0;i=pe[r>>2]|0;if(i){if(!(i&7))Ri[pe[104>>2]&1](i,0,0,1,pe[27]|0)|0;else{pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1516;_r(R,1100,n)|0;yr(R,a)|0}pe[r>>2]=0;pe[t+8>>2]=0;pe[t+12>>2]=0}de[t+16>>0]=0;r=t+20|0;i=pe[r>>2]|0;if(!i){t=1;ve=j;return t|0}ft(i);pe[r>>2]=0;t=1;ve=j;return t|0}d=t+4|0;p=t+8|0;r=pe[p>>2]|0;if((r|0)!=(O|0)){if(r>>>0<=O>>>0){do{if((pe[t+12>>2]|0)>>>0<O>>>0){if(nt(d,O,(r+1|0)==(O|0),1,0)|0){r=pe[p>>2]|0;break}de[t+16>>0]=1;t=0;ve=j;return t|0}}while(0);Yr((pe[d>>2]|0)+r|0,0,O-r|0)|0}pe[p>>2]=O}Yr(pe[d>>2]|0,0,O|0)|0;f=e+20|0;r=pe[f>>2]|0;if((r|0)<5){a=e+4|0;o=e+8|0;n=e+16|0;do{i=pe[a>>2]|0;if((i|0)==(pe[o>>2]|0))i=0;else{pe[a>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;_r(R,1100,u)|0;yr(R,s)|0;r=pe[f>>2]|0}i=i<<32-r|pe[n>>2];pe[n>>2]=i}while((r|0)<5)}else{i=e+16|0;n=i;i=pe[i>>2]|0}l=i>>>27;pe[n>>2]=i<<5;pe[f>>2]=r+-5;if((l+-1|0)>>>0>20){t=0;ve=j;return t|0}pe[D+20>>2]=0;pe[D>>2]=0;pe[D+4>>2]=0;pe[D+8>>2]=0;pe[D+12>>2]=0;de[D+16>>0]=0;r=D+4|0;i=D+8|0;e:do{if(nt(r,21,0,1,0)|0){s=pe[i>>2]|0;u=pe[r>>2]|0;Yr(u+s|0,0,21-s|0)|0;pe[i>>2]=21;if(l){n=e+4|0;a=e+8|0;o=e+16|0;s=0;do{r=pe[f>>2]|0;if((r|0)<3)do{i=pe[n>>2]|0;if((i|0)==(pe[a>>2]|0))i=0;else{pe[n>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[c>>2]=1154;pe[c+4>>2]=3199;pe[c+8>>2]=1650;_r(R,1100,c)|0;yr(R,h)|0;r=pe[f>>2]|0}i=i<<32-r|pe[o>>2];pe[o>>2]=i}while((r|0)<3);else i=pe[o>>2]|0;pe[o>>2]=i<<3;pe[f>>2]=r+-3;de[u+(me[1611+s>>0]|0)>>0]=i>>>29;s=s+1|0}while((s|0)!=(l|0))}if(dt(D)|0){s=e+4|0;u=e+8|0;l=e+16|0;i=0;t:while(1){o=O-i|0;r=gt(e,D)|0;r:do{if(r>>>0<17){if((pe[p>>2]|0)>>>0<=i>>>0){pe[m>>2]=1154;pe[m+4>>2]=903;pe[m+8>>2]=1781;_r(R,1100,m)|0;yr(R,g)|0}de[(pe[d>>2]|0)+i>>0]=r;r=i+1|0}else switch(r|0){case 17:{r=pe[f>>2]|0;if((r|0)<3)do{n=pe[s>>2]|0;if((n|0)==(pe[u>>2]|0))n=0;else{pe[s>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[v>>2]=1154;pe[v+4>>2]=3199;pe[v+8>>2]=1650;_r(R,1100,v)|0;yr(R,b)|0;r=pe[f>>2]|0}n=n<<32-r|pe[l>>2];pe[l>>2]=n}while((r|0)<3);else n=pe[l>>2]|0;pe[l>>2]=n<<3;pe[f>>2]=r+-3;r=(n>>>29)+3|0;if(r>>>0>o>>>0){r=0;break e}r=r+i|0;break r}case 18:{r=pe[f>>2]|0;if((r|0)<7)do{n=pe[s>>2]|0;if((n|0)==(pe[u>>2]|0))n=0;else{pe[s>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[f>>2]=r;if((r|0)>=33){pe[y>>2]=1154;pe[y+4>>2]=3199;pe[y+8>>2]=1650;_r(R,1100,y)|0;yr(R,_)|0;r=pe[f>>2]|0}n=n<<32-r|pe[l>>2];pe[l>>2]=n}while((r|0)<7);else n=pe[l>>2]|0;pe[l>>2]=n<<7;pe[f>>2]=r+-7;r=(n>>>25)+11|0;if(r>>>0>o>>>0){r=0;break e}r=r+i|0;break r}default:{if((r+-19|0)>>>0>=2){I=90;break t}a=pe[f>>2]|0;if((r|0)==19){if((a|0)<2){n=a;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))a=0;else{pe[s>>2]=r+1;a=me[r>>0]|0}r=n+8|0;pe[f>>2]=r;if((r|0)>=33){pe[w>>2]=1154;pe[w+4>>2]=3199;pe[w+8>>2]=1650;_r(R,1100,w)|0;yr(R,x)|0;r=pe[f>>2]|0}n=a<<32-r|pe[l>>2];pe[l>>2]=n;if((r|0)<2)n=r;else break}}else{n=pe[l>>2]|0;r=a}pe[l>>2]=n<<2;pe[f>>2]=r+-2;a=(n>>>30)+3|0}else{if((a|0)<6){n=a;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))a=0;else{pe[s>>2]=r+1;a=me[r>>0]|0}r=n+8|0;pe[f>>2]=r;if((r|0)>=33){pe[k>>2]=1154;pe[k+4>>2]=3199;pe[k+8>>2]=1650;_r(R,1100,k)|0;yr(R,T)|0;r=pe[f>>2]|0}n=a<<32-r|pe[l>>2];pe[l>>2]=n;if((r|0)<6)n=r;else break}}else{n=pe[l>>2]|0;r=a}pe[l>>2]=n<<6;pe[f>>2]=r+-6;a=(n>>>26)+7|0}if((i|0)==0|a>>>0>o>>>0){r=0;break e}r=i+-1|0;if((pe[p>>2]|0)>>>0<=r>>>0){pe[S>>2]=1154;pe[S+4>>2]=903;pe[S+8>>2]=1781;_r(R,1100,S)|0;yr(R,E)|0}n=de[(pe[d>>2]|0)+r>>0]|0;if(!(n<<24>>24)){r=0;break e}r=a+i|0;if(i>>>0>=r>>>0){r=i;break r}do{if((pe[p>>2]|0)>>>0<=i>>>0){pe[M>>2]=1154;pe[M+4>>2]=903;pe[M+8>>2]=1781;_r(R,1100,M)|0;yr(R,P)|0}de[(pe[d>>2]|0)+i>>0]=n;i=i+1|0}while((i|0)!=(r|0))}}}while(0);if(O>>>0>r>>>0)i=r;else break}if((I|0)==90){pe[C>>2]=1154;pe[C+4>>2]=3140;pe[C+8>>2]=1632;_r(R,1100,C)|0;yr(R,A)|0;r=0;break}if((O|0)==(r|0))r=dt(t)|0;else r=0}else r=0}else{de[D+16>>0]=1;r=0}}while(0);ht(D);t=r;ve=j;return t|0}function mt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+544|0;s=c+16|0;o=c;a=c+24|0;if(!t){l=0;ve=c;return l|0}if(t>>>0<=16){l=vt(e,t)|0;ve=c;return l|0}u=vt(e,t+-16|0)|0;l=e+20|0;t=pe[l>>2]|0;if((t|0)<16){i=e+4|0;n=e+8|0;r=e+16|0;do{e=pe[i>>2]|0;if((e|0)==(pe[n>>2]|0))e=0;else{pe[i>>2]=e+1;e=me[e>>0]|0}t=t+8|0;pe[l>>2]=t;if((t|0)>=33){pe[o>>2]=1154;pe[o+4>>2]=3199;pe[o+8>>2]=1650;_r(a,1100,o)|0;yr(a,s)|0;t=pe[l>>2]|0}e=e<<32-t|pe[r>>2];pe[r>>2]=e}while((t|0)<16)}else{e=e+16|0;r=e;e=pe[e>>2]|0}pe[r>>2]=e<<16;pe[l>>2]=t+-16;l=e>>>16|u<<16;ve=c;return l|0}function gt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0;y=ve;ve=ve+608|0;m=y+88|0;p=y+72|0;f=y+64|0;h=y+48|0;c=y+40|0;d=y+24|0;l=y+16|0;u=y;v=y+96|0;g=pe[t+20>>2]|0;b=e+20|0;s=pe[b>>2]|0;do{if((s|0)<24){o=e+4|0;i=pe[o>>2]|0;n=pe[e+8>>2]|0;r=i>>>0<n>>>0;if((s|0)>=16){if(r){pe[o>>2]=i+1;r=me[i>>0]|0}else r=0;pe[b>>2]=s+8;o=e+16|0;a=r<<24-s|pe[o>>2];pe[o>>2]=a;break}if(r){a=(me[i>>0]|0)<<8;r=i+1|0}else{a=0;r=i}if(r>>>0<n>>>0){i=me[r>>0]|0;r=r+1|0}else i=0;pe[o>>2]=r;pe[b>>2]=s+16;o=e+16|0;a=(i|a)<<16-s|pe[o>>2];pe[o>>2]=a}else{a=e+16|0;o=a;a=pe[a>>2]|0}}while(0);n=(a>>>16)+1|0;do{if(n>>>0<=(pe[g+16>>2]|0)>>>0){i=pe[(pe[g+168>>2]|0)+(a>>>(32-(pe[g+8>>2]|0)|0)<<2)>>2]|0;if((i|0)==-1){pe[u>>2]=1154;pe[u+4>>2]=3244;pe[u+8>>2]=1677;_r(v,1100,u)|0;yr(v,l)|0}r=i&65535;i=i>>>16;if((pe[t+8>>2]|0)>>>0<=r>>>0){pe[d>>2]=1154;pe[d+4>>2]=902;pe[d+8>>2]=1781;_r(v,1100,d)|0;yr(v,c)|0}if((me[(pe[t+4>>2]|0)+r>>0]|0|0)!=(i|0)){pe[h>>2]=1154;pe[h+4>>2]=3248;pe[h+8>>2]=1694;_r(v,1100,h)|0;yr(v,f)|0}}else{i=pe[g+20>>2]|0;while(1){r=i+-1|0;if(n>>>0>(pe[g+28+(r<<2)>>2]|0)>>>0)i=i+1|0;else break}r=(a>>>(32-i|0))+(pe[g+96+(r<<2)>>2]|0)|0;if(r>>>0<(pe[t>>2]|0)>>>0){r=ge[(pe[g+176>>2]|0)+(r<<1)>>1]|0;break}pe[p>>2]=1154;pe[p+4>>2]=3266;pe[p+8>>2]=1632;_r(v,1100,p)|0;yr(v,m)|0;b=0;ve=y;return b|0}}while(0);pe[o>>2]=pe[o>>2]<<i;pe[b>>2]=(pe[b>>2]|0)-i;b=r;ve=y;return b|0}function vt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+560|0;s=c+40|0;u=c+24|0;r=c;o=c+48|0;if(t>>>0>=33){pe[r>>2]=1154;pe[r+4>>2]=3190;pe[r+8>>2]=1634;_r(o,1100,r)|0;yr(o,c+16|0)|0}l=e+20|0;r=pe[l>>2]|0;if((r|0)>=(t|0)){a=e+16|0;o=a;a=pe[a>>2]|0;s=r;u=32-t|0;u=a>>>u;a=a<<t;pe[o>>2]=a;t=s-t|0;pe[l>>2]=t;ve=c;return u|0}n=e+4|0;a=e+8|0;i=e+16|0;do{e=pe[n>>2]|0;if((e|0)==(pe[a>>2]|0))e=0;else{pe[n>>2]=e+1;e=me[e>>0]|0}r=r+8|0;pe[l>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;_r(o,1100,u)|0;yr(o,s)|0;r=pe[l>>2]|0}e=e<<32-r|pe[i>>2];pe[i>>2]=e}while((r|0)<(t|0));u=32-t|0;u=e>>>u;s=e<<t;pe[i>>2]=s;t=r-t|0;pe[l>>2]=t;ve=c;return u|0}function bt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0;p=ve;ve=ve+544|0;f=p+16|0;h=p;c=p+24|0;if((e|0)==0|t>>>0<62){d=0;ve=p;return d|0}l=ot(300,0)|0;if(!l){d=0;ve=p;return d|0}pe[l>>2]=519686845;r=l+4|0;pe[r>>2]=0;i=l+8|0;pe[i>>2]=0;u=l+88|0;n=l+136|0;a=l+160|0;o=u;s=o+44|0;do{pe[o>>2]=0;o=o+4|0}while((o|0)<(s|0));de[u+44>>0]=0;m=l+184|0;o=l+208|0;s=l+232|0;g=l+252|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=l+268|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=l+284|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;pe[n>>2]=0;pe[n+4>>2]=0;pe[n+8>>2]=0;pe[n+12>>2]=0;pe[n+16>>2]=0;de[n+20>>0]=0;pe[a>>2]=0;pe[a+4>>2]=0;pe[a+8>>2]=0;pe[a+12>>2]=0;pe[a+16>>2]=0;de[a+20>>0]=0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;pe[m+12>>2]=0;pe[m+16>>2]=0;de[m+20>>0]=0;pe[o>>2]=0;pe[o+4>>2]=0;pe[o+8>>2]=0;pe[o+12>>2]=0;pe[o+16>>2]=0;de[o+20>>0]=0;pe[s>>2]=0;pe[s+4>>2]=0;pe[s+8>>2]=0;pe[s+12>>2]=0;de[s+16>>0]=0;do{if(((t>>>0>=74?((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)==18552:0)?((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0>=74:0)?((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0<=t>>>0:0){pe[u>>2]=e;pe[r>>2]=e;pe[i>>2]=t;if(Mt(l)|0){r=pe[u>>2]|0;if((me[r+39>>0]|0)<<8|(me[r+40>>0]|0)){if(!(Pt(l)|0))break;if(!(Ct(l)|0))break;r=pe[u>>2]|0}if(!((me[r+55>>0]|0)<<8|(me[r+56>>0]|0))){g=l;ve=p;return g|0}if(At(l)|0?Ot(l)|0:0){g=l;ve=p;return g|0}}}else d=7}while(0);if((d|0)==7)pe[u>>2]=0;Lt(l);if(!(l&7)){Ri[pe[104>>2]&1](l,0,0,1,pe[27]|0)|0;g=0;ve=p;return g|0}else{pe[h>>2]=1154;pe[h+4>>2]=2499;pe[h+8>>2]=1516;_r(c,1100,h)|0;yr(c,f)|0;g=0;ve=p;return g|0}return 0}function yt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+544|0;l=c;u=c+24|0;a=pe[e+88>>2]|0;s=(me[a+70+(n<<2)+1>>0]|0)<<16|(me[a+70+(n<<2)>>0]|0)<<24|(me[a+70+(n<<2)+2>>0]|0)<<8|(me[a+70+(n<<2)+3>>0]|0);o=n+1|0;if(o>>>0<(me[a+16>>0]|0)>>>0)a=(me[a+70+(o<<2)+1>>0]|0)<<16|(me[a+70+(o<<2)>>0]|0)<<24|(me[a+70+(o<<2)+2>>0]|0)<<8|(me[a+70+(o<<2)+3>>0]|0);else a=pe[e+8>>2]|0;if(a>>>0>s>>>0){u=e+4|0;u=pe[u>>2]|0;u=u+s|0;l=a-s|0;l=_t(e,u,l,t,r,i,n)|0;ve=c;return l|0}pe[l>>2]=1154;pe[l+4>>2]=3704;pe[l+8>>2]=1792;_r(u,1100,l)|0;yr(u,c+16|0)|0;u=e+4|0;u=pe[u>>2]|0;u=u+s|0;l=a-s|0;l=_t(e,u,l,t,r,i,n)|0;ve=c;return l|0}function _t(e,t,r,i,n,a,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;var s=0,u=0,l=0,c=0;c=pe[e+88>>2]|0;u=((me[c+12>>0]|0)<<8|(me[c+13>>0]|0))>>>o;l=((me[c+14>>0]|0)<<8|(me[c+15>>0]|0))>>>o;u=u>>>0>1?(u+3|0)>>>2:1;l=l>>>0>1?(l+3|0)>>>2:1;c=c+18|0;o=de[c>>0]|0;o=be(o<<24>>24==0|o<<24>>24==9?8:16,u)|0;if(a)if((a&3|0)==0&o>>>0<=a>>>0)o=a;else{e=0;return e|0}if((be(o,l)|0)>>>0>n>>>0){e=0;return e|0}a=(u+1|0)>>>1;s=(l+1|0)>>>1;if(!r){e=0;return e|0}pe[e+92>>2]=t;pe[e+96>>2]=t;pe[e+104>>2]=r;pe[e+100>>2]=t+r;pe[e+108>>2]=0;pe[e+112>>2]=0;switch(me[c>>0]|0|0){case 0:{It(e,i,n,o,u,l,a,s)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{Rt(e,i,n,o,u,l,a,s)|0;e=1;return e|0}case 9:{Dt(e,i,n,o,u,l,a,s)|0;e=1;return e|0}case 8:case 7:{jt(e,i,n,o,u,l,a,s)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function wt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+4>>2]|0}function xt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+8>>2]|0}function kt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+12>>2]|0}function Tt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ve;ve=ve+48|0;r=i;pe[r>>2]=40;lt(e,t,r)|0;ve=i;return pe[r+32>>2]|0}function St(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,s=0,u=0,l=0;u=ve;ve=ve+576|0;o=u+56|0;a=u+40|0;n=u+64|0;l=u;pe[l>>2]=40;lt(e,t,l)|0;i=(((pe[l+4>>2]|0)>>>r)+3|0)>>>2;t=(((pe[l+8>>2]|0)>>>r)+3|0)>>>2;r=l+32|0;e=pe[r+4>>2]|0;do{switch(pe[r>>2]|0){case 0:{if(!e)e=8;else s=13;break}case 1:{if(!e)s=12;else s=13;break}case 2:{if(!e)s=12;else s=13;break}case 3:{if(!e)s=12;else s=13;break}case 4:{if(!e)s=12;else s=13;break}case 5:{if(!e)s=12;else s=13;break}case 6:{if(!e)s=12;else s=13;break}case 7:{if(!e)s=12;else s=13;break}case 8:{if(!e)s=12;else s=13;break}case 9:{if(!e)e=8;else s=13;break}default:s=13}}while(0);if((s|0)==12)e=16;else if((s|0)==13){pe[a>>2]=1154;pe[a+4>>2]=2663;pe[a+8>>2]=1535;_r(n,1100,a)|0;yr(n,o)|0;e=0}l=be(be(t,i)|0,e)|0;ve=u;return l|0}function Et(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0;p=ve;ve=ve+608|0;f=p+80|0;d=p+64|0;s=p+56|0;o=p+40|0;c=p+88|0;m=p;h=p+84|0;pe[m>>2]=40;lt(e,t,m)|0;u=(((pe[m+4>>2]|0)>>>n)+3|0)>>>2;m=m+32|0;a=pe[m+4>>2]|0;do{switch(pe[m>>2]|0){case 0:{if(!a)a=8;else l=13;break}case 1:{if(!a)l=12;else l=13;break}case 2:{if(!a)l=12;else l=13;break}case 3:{if(!a)l=12;else l=13;break}case 4:{if(!a)l=12;else l=13;break}case 5:{if(!a)l=12;else l=13;break}case 6:{if(!a)l=12;else l=13;break}case 7:{if(!a)l=12;else l=13;break}case 8:{if(!a)l=12;else l=13;break}case 9:{if(!a)a=8;else l=13;break}default:l=13}}while(0);if((l|0)==12)a=16;else if((l|0)==13){pe[o>>2]=1154;pe[o+4>>2]=2663;pe[o+8>>2]=1535;_r(c,1100,o)|0;yr(c,s)|0;a=0}s=be(a,u)|0;o=bt(e,t)|0;pe[h>>2]=r;a=(o|0)==0;if(!(n>>>0>15|(i>>>0<8|a))?(pe[o>>2]|0)==519686845:0)yt(o,h,i,s,n)|0;if(a){ve=p;return}if((pe[o>>2]|0)!=519686845){ve=p;return}Lt(o);if(!(o&7)){Ri[pe[104>>2]&1](o,0,0,1,pe[27]|0)|0;ve=p;return}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;_r(c,1100,d)|0;yr(c,f)|0;ve=p;return}}function Mt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0;o=e+92|0;i=pe[e+4>>2]|0;a=e+88|0;n=pe[a>>2]|0;t=(me[n+68>>0]|0)<<8|(me[n+67>>0]|0)<<16|(me[n+69>>0]|0);r=i+t|0;n=(me[n+65>>0]|0)<<8|(me[n+66>>0]|0);if(!n){e=0;return e|0}pe[o>>2]=r;pe[e+96>>2]=r;pe[e+104>>2]=n;pe[e+100>>2]=i+(n+t);pe[e+108>>2]=0;pe[e+112>>2]=0;if(!(pt(o,e+116|0)|0)){e=0;return e|0}t=pe[a>>2]|0;do{if(!((me[t+39>>0]|0)<<8|(me[t+40>>0]|0))){if(!((me[t+55>>0]|0)<<8|(me[t+56>>0]|0))){e=0;return e|0}}else{if(!(pt(o,e+140|0)|0)){e=0;return e|0}if(pt(o,e+188|0)|0){t=pe[a>>2]|0;break}else{e=0;return e|0}}}while(0);if((me[t+55>>0]|0)<<8|(me[t+56>>0]|0)){if(!(pt(o,e+164|0)|0)){e=0;return e|0}if(!(pt(o,e+212|0)|0)){e=0;return e|0}}e=1;return e|0}function Pt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;p=ve;ve=ve+592|0;u=p+16|0;s=p;o=p+72|0;d=p+24|0;i=e+88|0;t=pe[i>>2]|0;f=(me[t+39>>0]|0)<<8|(me[t+40>>0]|0);c=e+236|0;a=e+240|0;r=pe[a>>2]|0;if((r|0)!=(f|0)){if(r>>>0<=f>>>0){do{if((pe[e+244>>2]|0)>>>0<f>>>0){if(nt(c,f,(r+1|0)==(f|0),4,0)|0){t=pe[a>>2]|0;break}de[e+248>>0]=1;d=0;ve=p;return d|0}else t=r}while(0);Yr((pe[c>>2]|0)+(t<<2)|0,0,f-t<<2|0)|0;t=pe[i>>2]|0}pe[a>>2]=f}l=e+92|0;r=pe[e+4>>2]|0;i=(me[t+34>>0]|0)<<8|(me[t+33>>0]|0)<<16|(me[t+35>>0]|0);n=r+i|0;t=(me[t+37>>0]|0)<<8|(me[t+36>>0]|0)<<16|(me[t+38>>0]|0);if(!t){d=0;ve=p;return d|0}pe[l>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=t;pe[e+100>>2]=r+(t+i);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[d+20>>2]=0;pe[d>>2]=0;pe[d+4>>2]=0;pe[d+8>>2]=0;pe[d+12>>2]=0;de[d+16>>0]=0;e=d+24|0;pe[d+44>>2]=0;pe[e>>2]=0;pe[e+4>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;de[e+16>>0]=0;if(pt(l,d)|0?(h=d+24|0,pt(l,h)|0):0){if(!(pe[a>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;_r(o,1100,s)|0;yr(o,u)|0}if(!f)t=1;else{i=0;n=0;a=0;t=0;o=0;e=0;s=0;r=pe[c>>2]|0;while(1){i=(gt(l,d)|0)+i&31;n=(gt(l,h)|0)+n&63;a=(gt(l,d)|0)+a&31;t=(gt(l,d)|0)+t|0;o=(gt(l,h)|0)+o&63;e=(gt(l,d)|0)+e&31;pe[r>>2]=n<<5|i<<11|a|t<<27|o<<21|e<<16;s=s+1|0;if((s|0)==(f|0)){t=1;break}else{t=t&31;r=r+4|0}}}}else t=0;ht(d+24|0);ht(d);d=t;ve=p;return d|0}function Ct(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0;S=ve;ve=ve+1024|0;s=S+16|0;o=S;a=S+504|0;T=S+480|0;x=S+284|0;k=S+88|0;w=S+24|0;n=pe[e+88>>2]|0;_=(me[n+47>>0]|0)<<8|(me[n+48>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(me[n+42>>0]|0)<<8|(me[n+41>>0]|0)<<16|(me[n+43>>0]|0);i=t+r|0;n=(me[n+45>>0]|0)<<8|(me[n+44>>0]|0)<<16|(me[n+46>>0]|0);if(!n){T=0;ve=S;return T|0}pe[y>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=n;pe[e+100>>2]=t+(n+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[T+20>>2]=0;pe[T>>2]=0;pe[T+4>>2]=0;pe[T+8>>2]=0;pe[T+12>>2]=0;de[T+16>>0]=0;if(pt(y,T)|0){r=0;i=-3;n=-3;while(1){pe[x+(r<<2)>>2]=i;pe[k+(r<<2)>>2]=n;t=(i|0)>2;r=r+1|0;if((r|0)==49)break;else{i=t?-3:i+1|0;n=(t&1)+n|0}}t=w;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));b=e+252|0;r=e+256|0;t=pe[r>>2]|0;e:do{if((t|0)==(_|0))u=13;else{if(t>>>0<=_>>>0){do{if((pe[e+260>>2]|0)>>>0<_>>>0)if(nt(b,_,(t+1|0)==(_|0),4,0)|0){t=pe[r>>2]|0;break}else{de[e+264>>0]=1;t=0;break e}}while(0);Yr((pe[b>>2]|0)+(t<<2)|0,0,_-t<<2|0)|0}pe[r>>2]=_;u=13}}while(0);do{if((u|0)==13){if(!_){pe[o>>2]=1154;pe[o+4>>2]=903;pe[o+8>>2]=1781;_r(a,1100,o)|0;yr(a,s)|0;t=1;break}i=w+4|0;n=w+8|0;e=w+12|0;a=w+16|0;o=w+20|0;s=w+24|0;u=w+28|0;l=w+32|0;c=w+36|0;h=w+40|0;f=w+44|0;d=w+48|0;p=w+52|0;m=w+56|0;g=w+60|0;v=0;r=pe[b>>2]|0;while(1){t=0;do{E=gt(y,T)|0;b=t<<1;M=w+(b<<2)|0;pe[M>>2]=(pe[M>>2]|0)+(pe[x+(E<<2)>>2]|0)&3;b=w+((b|1)<<2)|0;pe[b>>2]=(pe[b>>2]|0)+(pe[k+(E<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);pe[r>>2]=(me[1725+(pe[i>>2]|0)>>0]|0)<<2|(me[1725+(pe[w>>2]|0)>>0]|0)|(me[1725+(pe[n>>2]|0)>>0]|0)<<4|(me[1725+(pe[e>>2]|0)>>0]|0)<<6|(me[1725+(pe[a>>2]|0)>>0]|0)<<8|(me[1725+(pe[o>>2]|0)>>0]|0)<<10|(me[1725+(pe[s>>2]|0)>>0]|0)<<12|(me[1725+(pe[u>>2]|0)>>0]|0)<<14|(me[1725+(pe[l>>2]|0)>>0]|0)<<16|(me[1725+(pe[c>>2]|0)>>0]|0)<<18|(me[1725+(pe[h>>2]|0)>>0]|0)<<20|(me[1725+(pe[f>>2]|0)>>0]|0)<<22|(me[1725+(pe[d>>2]|0)>>0]|0)<<24|(me[1725+(pe[p>>2]|0)>>0]|0)<<26|(me[1725+(pe[m>>2]|0)>>0]|0)<<28|(me[1725+(pe[g>>2]|0)>>0]|0)<<30;v=v+1|0;if((v|0)==(_|0)){t=1;break}else r=r+4|0}}}while(0)}else t=0;ht(T);M=t;ve=S;return M|0}function At(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0;f=ve;ve=ve+560|0;u=f+16|0;s=f;o=f+48|0;h=f+24|0;n=pe[e+88>>2]|0;c=(me[n+55>>0]|0)<<8|(me[n+56>>0]|0);l=e+92|0;t=pe[e+4>>2]|0;r=(me[n+50>>0]|0)<<8|(me[n+49>>0]|0)<<16|(me[n+51>>0]|0);i=t+r|0;n=(me[n+53>>0]|0)<<8|(me[n+52>>0]|0)<<16|(me[n+54>>0]|0);if(!n){h=0;ve=f;return h|0}pe[l>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=n;pe[e+100>>2]=t+(n+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[h+20>>2]=0;pe[h>>2]=0;pe[h+4>>2]=0;pe[h+8>>2]=0;pe[h+12>>2]=0;de[h+16>>0]=0;e:do{if(pt(l,h)|0){a=e+268|0;r=e+272|0;t=pe[r>>2]|0;if((t|0)!=(c|0)){if(t>>>0<=c>>>0){do{if((pe[e+276>>2]|0)>>>0<c>>>0)if(nt(a,c,(t+1|0)==(c|0),2,0)|0){t=pe[r>>2]|0;break}else{de[e+280>>0]=1;t=0;break e}}while(0);Yr((pe[a>>2]|0)+(t<<1)|0,0,c-t<<1|0)|0}pe[r>>2]=c}if(!c){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;_r(o,1100,s)|0;yr(o,u)|0;t=1;break}r=0;i=0;n=0;t=pe[a>>2]|0;while(1){u=gt(l,h)|0;r=u+r&255;i=(gt(l,h)|0)+i&255;$[t>>1]=i<<8|r;n=n+1|0;if((n|0)==(c|0)){t=1;break}else t=t+2|0}}else t=0}while(0);ht(h);h=t;ve=f;return h|0}function Ot(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0;S=ve;ve=ve+2432|0;s=S+16|0;o=S;a=S+1912|0;T=S+1888|0;x=S+988|0;k=S+88|0;w=S+24|0;n=pe[e+88>>2]|0;_=(me[n+63>>0]|0)<<8|(me[n+64>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(me[n+58>>0]|0)<<8|(me[n+57>>0]|0)<<16|(me[n+59>>0]|0);i=t+r|0;n=(me[n+61>>0]|0)<<8|(me[n+60>>0]|0)<<16|(me[n+62>>0]|0);if(!n){T=0;ve=S;return T|0}pe[y>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=n;pe[e+100>>2]=t+(n+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[T+20>>2]=0;pe[T>>2]=0;pe[T+4>>2]=0;pe[T+8>>2]=0;pe[T+12>>2]=0;de[T+16>>0]=0;if(pt(y,T)|0){r=0;i=-7;n=-7;while(1){pe[x+(r<<2)>>2]=i;pe[k+(r<<2)>>2]=n;t=(i|0)>6;r=r+1|0;if((r|0)==225)break;else{i=t?-7:i+1|0;n=(t&1)+n|0}}t=w;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));b=e+284|0;r=_*3|0;i=e+288|0;t=pe[i>>2]|0;e:do{if((t|0)==(r|0))u=13;else{if(t>>>0<=r>>>0){do{if((pe[e+292>>2]|0)>>>0<r>>>0)if(nt(b,r,(t+1|0)==(r|0),2,0)|0){t=pe[i>>2]|0;break}else{de[e+296>>0]=1;t=0;break e}}while(0);Yr((pe[b>>2]|0)+(t<<1)|0,0,r-t<<1|0)|0}pe[i>>2]=r;u=13}}while(0);do{if((u|0)==13){if(!_){pe[o>>2]=1154;pe[o+4>>2]=903;pe[o+8>>2]=1781;_r(a,1100,o)|0;yr(a,s)|0;t=1;break}i=w+4|0;n=w+8|0;e=w+12|0;a=w+16|0;o=w+20|0;s=w+24|0;u=w+28|0;l=w+32|0;c=w+36|0;h=w+40|0;f=w+44|0;d=w+48|0;p=w+52|0;m=w+56|0;g=w+60|0;v=0;r=pe[b>>2]|0;while(1){t=0;do{E=gt(y,T)|0;b=t<<1;M=w+(b<<2)|0;pe[M>>2]=(pe[M>>2]|0)+(pe[x+(E<<2)>>2]|0)&7;b=w+((b|1)<<2)|0;pe[b>>2]=(pe[b>>2]|0)+(pe[k+(E<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);E=me[1729+(pe[o>>2]|0)>>0]|0;$[r>>1]=(me[1729+(pe[i>>2]|0)>>0]|0)<<3|(me[1729+(pe[w>>2]|0)>>0]|0)|(me[1729+(pe[n>>2]|0)>>0]|0)<<6|(me[1729+(pe[e>>2]|0)>>0]|0)<<9|(me[1729+(pe[a>>2]|0)>>0]|0)<<12|E<<15;M=me[1729+(pe[h>>2]|0)>>0]|0;$[r+2>>1]=(me[1729+(pe[s>>2]|0)>>0]|0)<<2|E>>>1|(me[1729+(pe[u>>2]|0)>>0]|0)<<5|(me[1729+(pe[l>>2]|0)>>0]|0)<<8|(me[1729+(pe[c>>2]|0)>>0]|0)<<11|M<<14;$[r+4>>1]=(me[1729+(pe[f>>2]|0)>>0]|0)<<1|M>>>2|(me[1729+(pe[d>>2]|0)>>0]|0)<<4|(me[1729+(pe[p>>2]|0)>>0]|0)<<7|(me[1729+(pe[m>>2]|0)>>0]|0)<<10|(me[1729+(pe[g>>2]|0)>>0]|0)<<13;v=v+1|0;if((v|0)==(_|0)){t=1;break}else r=r+6|0}}}while(0)}else t=0;ht(T);M=t;ve=S;return M|0}function It(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,oe=0,se=0,ue=0,le=0,ce=0,he=0,fe=0;ce=ve;ve=ve+720|0;le=ce+184|0;se=ce+168|0;oe=ce+160|0;ae=ce+144|0;ne=ce+136|0;ie=ce+120|0;re=ce+112|0;ee=ce+96|0;$=ce+88|0;Q=ce+72|0;Z=ce+64|0;K=ce+48|0;J=ce+40|0;ue=ce+24|0;te=ce+16|0;Y=ce;G=ce+208|0;V=ce+192|0;B=e+240|0;N=pe[B>>2]|0;q=e+256|0;H=pe[q>>2]|0;r=de[(pe[e+88>>2]|0)+17>>0]|0;W=i>>>2;if(!(r<<24>>24)){ve=ce;return 1}U=(s|0)==0;X=s+-1|0;I=(a&1|0)!=0;R=i<<1;D=e+92|0;j=e+116|0;L=e+140|0;z=e+236|0;F=o+-1|0;O=(n&1|0)!=0;A=e+188|0;S=e+252|0;E=W+1|0;M=W+2|0;P=W+3|0;C=F<<4;k=r&255;r=0;a=0;n=1;T=0;do{if(!U){w=pe[t+(T<<2)>>2]|0;x=0;while(1){b=x&1;u=(b|0)==0;v=(b<<5^32)+-16|0;b=(b<<1^2)+-1|0;_=u?o:-1;l=u?0:F;e=(x|0)==(X|0);y=I&e;if((l|0)!=(_|0)){g=I&e^1;m=u?w:w+C|0;while(1){if((n|0)==1)n=gt(D,j)|0|512;p=n&7;n=n>>>3;u=me[1823+p>>0]|0;e=0;do{f=(gt(D,L)|0)+a|0;d=f-N|0;a=d>>31;a=a&f|d&~a;if((pe[B>>2]|0)>>>0<=a>>>0){pe[Y>>2]=1154;pe[Y+4>>2]=903;pe[Y+8>>2]=1781;_r(G,1100,Y)|0;yr(G,te)|0}pe[V+(e<<2)>>2]=pe[(pe[z>>2]|0)+(a<<2)>>2];e=e+1|0}while(e>>>0<u>>>0);d=O&(l|0)==(F|0);if(y|d){f=0;do{c=be(f,i)|0;e=m+c|0;u=(f|0)==0|g;h=f<<1;fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;do{if(d){if(!u){he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;break}pe[e>>2]=pe[V+((me[1831+(p<<2)+h>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[ae>>2]=1154;pe[ae+4>>2]=903;pe[ae+8>>2]=1781;_r(G,1100,ae)|0;yr(G,oe)|0}pe[m+(c+4)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r}else{if(!u){he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;break}pe[e>>2]=pe[V+((me[1831+(p<<2)+h>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[ie>>2]=1154;pe[ie+4>>2]=903;pe[ie+8>>2]=1781;_r(G,1100,ie)|0;yr(G,ne)|0}pe[m+(c+4)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;pe[m+(c+8)>>2]=pe[V+((me[(h|1)+(1831+(p<<2))>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;_r(G,1100,se)|0;yr(G,le)|0}pe[m+(c+12)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2]}}while(0);f=f+1|0}while((f|0)!=2)}else{pe[m>>2]=pe[V+((me[1831+(p<<2)>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ue>>2]=1154;pe[ue+4>>2]=903;pe[ue+8>>2]=1781;_r(G,1100,ue)|0;yr(G,J)|0}pe[m+4>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];pe[m+8>>2]=pe[V+((me[1831+(p<<2)+1>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[K>>2]=1154;pe[K+4>>2]=903;pe[K+8>>2]=1781;_r(G,1100,K)|0;yr(G,Z)|0}pe[m+12>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];pe[m+(W<<2)>>2]=pe[V+((me[1831+(p<<2)+2>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;_r(G,1100,Q)|0;yr(G,$)|0}pe[m+(E<<2)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2];pe[m+(M<<2)>>2]=pe[V+((me[1831+(p<<2)+3>>0]|0)<<2)>>2];he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;_r(G,1100,ee)|0;yr(G,re)|0}pe[m+(P<<2)>>2]=pe[(pe[S>>2]|0)+(r<<2)>>2]}l=l+b|0;if((l|0)==(_|0))break;else m=m+v|0}}x=x+1|0;if((x|0)==(s|0))break;else w=w+R|0}}T=T+1|0}while((T|0)!=(k|0));ve=ce;return 1}function Rt(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,oe=0,se=0,ue=0,le=0,ce=0,he=0,fe=0;he=ve;ve=ve+640|0;ue=he+88|0;se=he+72|0;oe=he+64|0;ae=he+48|0;ne=he+40|0;ce=he+24|0;le=he+16|0;ie=he;te=he+128|0;re=he+112|0;ee=he+96|0;B=e+240|0;N=pe[B>>2]|0;q=e+256|0;Z=pe[q>>2]|0;Q=e+272|0;$=pe[Q>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=he;return 1}X=(s|0)==0;H=s+-1|0;W=i<<1;G=e+92|0;V=e+116|0;Y=o+-1|0;J=e+212|0;K=e+188|0;F=(n&1|0)==0;z=(a&1|0)==0;O=e+288|0;I=e+284|0;R=e+252|0;D=e+140|0;j=e+236|0;L=e+164|0;C=e+268|0;A=Y<<5;M=r&255;r=0;n=0;a=0;e=0;u=1;P=0;do{if(!X){S=pe[t+(P<<2)>>2]|0;E=0;while(1){k=E&1;l=(k|0)==0;x=(k<<6^64)+-32|0;k=(k<<1^2)+-1|0;T=l?o:-1;c=l?0:Y;if((c|0)!=(T|0)){w=z|(E|0)!=(H|0);_=l?S:S+A|0;while(1){if((u|0)==1)u=gt(G,V)|0|512;y=u&7;u=u>>>3;h=me[1823+y>>0]|0;l=0;do{v=(gt(G,L)|0)+n|0;b=v-$|0;n=b>>31;n=n&v|b&~n;if((pe[Q>>2]|0)>>>0<=n>>>0){pe[ie>>2]=1154;pe[ie+4>>2]=903;pe[ie+8>>2]=1781;_r(te,1100,ie)|0;yr(te,le)|0}pe[ee+(l<<2)>>2]=ge[(pe[C>>2]|0)+(n<<1)>>1];l=l+1|0}while(l>>>0<h>>>0);l=0;do{v=(gt(G,D)|0)+e|0;b=v-N|0;e=b>>31;e=e&v|b&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[ce>>2]=1154;pe[ce+4>>2]=903;pe[ce+8>>2]=1781;_r(te,1100,ce)|0;yr(te,ne)|0}pe[re+(l<<2)>>2]=pe[(pe[j>>2]|0)+(e<<2)>>2];l=l+1|0}while(l>>>0<h>>>0);b=F|(c|0)!=(Y|0);g=0;v=_;while(1){m=w|(g|0)==0;p=g<<1;f=0;d=v;while(1){h=(gt(G,J)|0)+r|0;l=h-U|0;r=l>>31;r=r&h|l&~r;l=(gt(G,K)|0)+a|0;h=l-Z|0;a=h>>31;a=a&l|h&~a;if((b|(f|0)==0)&m){l=me[f+p+(1831+(y<<2))>>0]|0;h=r*3|0;if((pe[O>>2]|0)>>>0<=h>>>0){pe[ae>>2]=1154;pe[ae+4>>2]=903;pe[ae+8>>2]=1781;_r(te,1100,ae)|0;yr(te,oe)|0}fe=pe[I>>2]|0;pe[d>>2]=(ge[fe+(h<<1)>>1]|0)<<16|pe[ee+(l<<2)>>2];pe[d+4>>2]=(ge[fe+(h+2<<1)>>1]|0)<<16|(ge[fe+(h+1<<1)>>1]|0);pe[d+8>>2]=pe[re+(l<<2)>>2];if((pe[q>>2]|0)>>>0<=a>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;_r(te,1100,se)|0;yr(te,ue)|0}pe[d+12>>2]=pe[(pe[R>>2]|0)+(a<<2)>>2]}f=f+1|0;if((f|0)==2)break;else d=d+16|0}g=g+1|0;if((g|0)==2)break;else v=v+i|0}c=c+k|0;if((c|0)==(T|0))break;else _=_+x|0}}E=E+1|0;if((E|0)==(s|0))break;else S=S+W|0}}P=P+1|0}while((P|0)!=(M|0));ve=he;return 1}function Dt(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0;Z=ve;ve=ve+608|0;Y=Z+64|0;V=Z+48|0;G=Z+40|0;K=Z+24|0;J=Z+16|0;W=Z;H=Z+88|0;q=Z+72|0;R=e+272|0;D=pe[R>>2]|0;r=pe[e+88>>2]|0;j=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=Z;return 1}L=(s|0)==0;z=s+-1|0;F=i<<1;B=e+92|0;N=e+116|0;U=o+-1|0;X=e+212|0;I=(a&1|0)==0;C=e+288|0;A=e+284|0;O=e+164|0;M=e+268|0;P=U<<4;E=r&255;S=(n&1|0)!=0;r=0;a=0;e=1;T=0;do{if(!L){x=pe[t+(T<<2)>>2]|0;k=0;while(1){_=k&1;n=(_|0)==0;y=(_<<5^32)+-16|0;_=(_<<1^2)+-1|0;w=n?o:-1;u=n?0:U;if((u|0)!=(w|0)){b=I|(k|0)!=(z|0);v=n?x:x+P|0;while(1){if((e|0)==1)e=gt(B,N)|0|512;g=e&7;e=e>>>3;l=me[1823+g>>0]|0;n=0;do{p=(gt(B,O)|0)+a|0;m=p-D|0;a=m>>31;a=a&p|m&~a;if((pe[R>>2]|0)>>>0<=a>>>0){pe[W>>2]=1154;pe[W+4>>2]=903;pe[W+8>>2]=1781;_r(H,1100,W)|0;yr(H,J)|0}pe[q+(n<<2)>>2]=ge[(pe[M>>2]|0)+(a<<1)>>1];n=n+1|0}while(n>>>0<l>>>0);m=(u|0)==(U|0)&S;d=0;p=v;while(1){f=b|(d|0)==0;h=d<<1;n=(gt(B,X)|0)+r|0;c=n-j|0;l=c>>31;l=l&n|c&~l;if(f){r=me[1831+(g<<2)+h>>0]|0;n=l*3|0;if((pe[C>>2]|0)>>>0<=n>>>0){pe[K>>2]=1154;pe[K+4>>2]=903;pe[K+8>>2]=1781;_r(H,1100,K)|0;yr(H,G)|0}c=pe[A>>2]|0;pe[p>>2]=(ge[c+(n<<1)>>1]|0)<<16|pe[q+(r<<2)>>2];pe[p+4>>2]=(ge[c+(n+2<<1)>>1]|0)<<16|(ge[c+(n+1<<1)>>1]|0)}c=p+8|0;n=(gt(B,X)|0)+l|0;l=n-j|0;r=l>>31;r=r&n|l&~r;if(!(m|f^1)){n=me[(h|1)+(1831+(g<<2))>>0]|0;l=r*3|0;if((pe[C>>2]|0)>>>0<=l>>>0){pe[V>>2]=1154;pe[V+4>>2]=903;pe[V+8>>2]=1781;_r(H,1100,V)|0;yr(H,Y)|0}f=pe[A>>2]|0;pe[c>>2]=(ge[f+(l<<1)>>1]|0)<<16|pe[q+(n<<2)>>2];pe[p+12>>2]=(ge[f+(l+2<<1)>>1]|0)<<16|(ge[f+(l+1<<1)>>1]|0)}d=d+1|0;if((d|0)==2)break;else p=p+i|0}u=u+_|0;if((u|0)==(w|0))break;else v=v+y|0}}k=k+1|0;if((k|0)==(s|0))break;else x=x+F|0}}T=T+1|0}while((T|0)!=(E|0));ve=Z;return 1}function jt(e,t,r,i,n,a,o,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;s=s|0;var u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,oe=0;oe=ve;ve=ve+640|0;ie=oe+88|0;re=oe+72|0;te=oe+64|0;ee=oe+48|0;$=oe+40|0;ae=oe+24|0;ne=oe+16|0;Q=oe;Z=oe+128|0;J=oe+112|0;K=oe+96|0;B=e+272|0;N=pe[B>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=oe;return 1}X=(s|0)==0;q=s+-1|0;H=i<<1;W=e+92|0;G=e+116|0;V=o+-1|0;Y=e+212|0;F=(n&1|0)==0;z=(a&1|0)==0;D=e+288|0;j=e+284|0;L=e+164|0;I=e+268|0;R=V<<5;A=r&255;r=0;n=0;a=0;e=0;u=1;O=0;do{if(!X){P=pe[t+(O<<2)>>2]|0;C=0;while(1){E=C&1;l=(E|0)==0;S=(E<<6^64)+-32|0;E=(E<<1^2)+-1|0;M=l?o:-1;c=l?0:V;if((c|0)!=(M|0)){T=z|(C|0)!=(q|0);k=l?P:P+R|0;while(1){if((u|0)==1)u=gt(W,G)|0|512;x=u&7;u=u>>>3;h=me[1823+x>>0]|0;l=0;do{_=(gt(W,L)|0)+e|0;w=_-N|0;e=w>>31;e=e&_|w&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;_r(Z,1100,Q)|0;yr(Z,ne)|0}pe[J+(l<<2)>>2]=ge[(pe[I>>2]|0)+(e<<1)>>1];l=l+1|0}while(l>>>0<h>>>0);l=0;do{_=(gt(W,L)|0)+n|0;w=_-N|0;n=w>>31;n=n&_|w&~n;if((pe[B>>2]|0)>>>0<=n>>>0){pe[ae>>2]=1154;pe[ae+4>>2]=903;pe[ae+8>>2]=1781;_r(Z,1100,ae)|0;yr(Z,$)|0}pe[K+(l<<2)>>2]=ge[(pe[I>>2]|0)+(n<<1)>>1];l=l+1|0}while(l>>>0<h>>>0);w=F|(c|0)!=(V|0);y=0;_=k;while(1){b=T|(y|0)==0;v=y<<1;m=0;g=_;while(1){p=(gt(W,Y)|0)+a|0;d=p-U|0;a=d>>31;a=a&p|d&~a;d=(gt(W,Y)|0)+r|0;p=d-U|0;r=p>>31;r=r&d|p&~r;if((w|(m|0)==0)&b){d=me[m+v+(1831+(x<<2))>>0]|0;p=a*3|0;l=pe[D>>2]|0;if(l>>>0<=p>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;_r(Z,1100,ee)|0;yr(Z,te)|0;l=pe[D>>2]|0}h=pe[j>>2]|0;f=r*3|0;if(l>>>0>f>>>0)l=h;else{pe[re>>2]=1154;pe[re+4>>2]=903;pe[re+8>>2]=1781;_r(Z,1100,re)|0;yr(Z,ie)|0;l=pe[j>>2]|0}pe[g>>2]=(ge[h+(p<<1)>>1]|0)<<16|pe[J+(d<<2)>>2];pe[g+4>>2]=(ge[h+(p+2<<1)>>1]|0)<<16|(ge[h+(p+1<<1)>>1]|0);pe[g+8>>2]=(ge[l+(f<<1)>>1]|0)<<16|pe[K+(d<<2)>>2];pe[g+12>>2]=(ge[l+(f+2<<1)>>1]|0)<<16|(ge[l+(f+1<<1)>>1]|0)}m=m+1|0;if((m|0)==2)break;else g=g+16|0}y=y+1|0;if((y|0)==2)break;else _=_+i|0}c=c+E|0;if((c|0)==(M|0))break;else k=k+S|0}}C=C+1|0;if((C|0)==(s|0))break;else P=P+H|0}}O=O+1|0}while((O|0)!=(A|0));ve=oe;return 1}function Lt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0;f=ve;ve=ve+608|0;h=f+88|0;c=f+72|0;u=f+64|0;s=f+48|0;a=f+40|0;o=f+24|0;n=f+16|0;i=f;l=f+96|0;pe[e>>2]=0;t=e+284|0;r=pe[t>>2]|0;if(r){if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1516;_r(l,1100,i)|0;yr(l,n)|0}pe[t>>2]=0;pe[e+288>>2]=0;pe[e+292>>2]=0}de[e+296>>0]=0;t=e+268|0;r=pe[t>>2]|0;if(r){if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[o>>2]=1154;pe[o+4>>2]=2499;pe[o+8>>2]=1516;_r(l,1100,o)|0;yr(l,a)|0}pe[t>>2]=0;pe[e+272>>2]=0;pe[e+276>>2]=0}de[e+280>>0]=0;t=e+252|0;r=pe[t>>2]|0;if(r){if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1516;_r(l,1100,s)|0;yr(l,u)|0}pe[t>>2]=0;pe[e+256>>2]=0;pe[e+260>>2]=0}de[e+264>>0]=0;t=e+236|0;r=pe[t>>2]|0;if(!r){h=e+248|0;de[h>>0]=0;h=e+212|0;ht(h);h=e+188|0;ht(h);h=e+164|0;ht(h);h=e+140|0;ht(h);h=e+116|0;ht(h);ve=f;return}if(!(r&7))Ri[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[c>>2]=1154;pe[c+4>>2]=2499;pe[c+8>>2]=1516;_r(l,1100,c)|0;yr(l,h)|0}pe[t>>2]=0;pe[e+240>>2]=0;pe[e+244>>2]=0;h=e+248|0;de[h>>0]=0;h=e+212|0;ht(h);h=e+188|0;ht(h);h=e+164|0;ht(h);h=e+140|0;ht(h);h=e+116|0;ht(h);ve=f;return}function zt(e,t){e=e|0;t=t|0;var r=0;r=ve;ve=ve+16|0;pe[r>>2]=t;t=pe[63]|0;wr(t,e,r)|0;vr(10,t)|0;Xe()}function Ft(){var e=0,t=0;e=ve;ve=ve+16|0;if(!(Le(200,2)|0)){t=De(pe[49]|0)|0;ve=e;return t|0}else zt(2090,e);return 0}function Bt(e){e=e|0;Ur(e);return}function Nt(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Oi[e&3]();zt(2139,t)}function Ut(){var e=0,t=0;e=Ft()|0;if(((e|0)!=0?(t=pe[e>>2]|0,(t|0)!=0):0)?(e=t+48|0,(pe[e>>2]&-256|0)==1126902528?(pe[e+4>>2]|0)==1129074247:0):0)Nt(pe[t+12>>2]|0);t=pe[28]|0;pe[28]=t+0;Nt(t)}function Xt(e){e=e|0;return}function qt(e){e=e|0;return}function Ht(e){e=e|0;return}function Wt(e){e=e|0;return}function Gt(e){e=e|0;Bt(e);return}function Vt(e){e=e|0;Bt(e);return}function Yt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;o=ve;ve=ve+64|0;a=o;if((e|0)!=(t|0))if((t|0)!=0?(n=Qt(t,24,40,0)|0,(n|0)!=0):0){t=a;i=t+56|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(i|0));pe[a>>2]=n;pe[a+8>>2]=e;pe[a+12>>2]=-1;pe[a+48>>2]=1;Di[pe[(pe[n>>2]|0)+28>>2]&3](n,a,pe[r>>2]|0,1);if((pe[a+24>>2]|0)==1){pe[r>>2]=pe[a+16>>2];t=1}else t=0}else t=0;else t=1;ve=o;return t|0}function Jt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0;e=t+16|0;n=pe[e>>2]|0;do{if(n){if((n|0)!=(r|0)){i=t+36|0;pe[i>>2]=(pe[i>>2]|0)+1;pe[t+24>>2]=2;de[t+54>>0]=1;break}e=t+24|0;if((pe[e>>2]|0)==2)pe[e>>2]=i}else{pe[e>>2]=r;pe[t+24>>2]=i;pe[t+36>>2]=1}}while(0);return}function Kt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(pe[t+8>>2]|0))Jt(0,t,r,i);return}function Zt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(pe[t+8>>2]|0))Jt(0,t,r,i);else{e=pe[e+8>>2]|0;Di[pe[(pe[e>>2]|0)+28>>2]&3](e,t,r,i)}return}function Qt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0;d=ve;ve=ve+64|0;f=d;h=pe[e>>2]|0;c=e+(pe[h+-8>>2]|0)|0;h=pe[h+-4>>2]|0;pe[f>>2]=r;pe[f+4>>2]=e;pe[f+8>>2]=t;pe[f+12>>2]=i;i=f+16|0;e=f+20|0;t=f+24|0;n=f+28|0;a=f+32|0;o=f+40|0;s=(h|0)==(r|0);u=i;l=u+36|0;do{pe[u>>2]=0;u=u+4|0}while((u|0)<(l|0));$[i+36>>1]=0;de[i+38>>0]=0;e:do{if(s){pe[f+48>>2]=1;Ii[pe[(pe[r>>2]|0)+20>>2]&3](r,f,c,c,1,0);i=(pe[t>>2]|0)==1?c:0}else{Mi[pe[(pe[h>>2]|0)+24>>2]&3](h,f,c,1,0);switch(pe[f+36>>2]|0){case 0:{i=(pe[o>>2]|0)==1&(pe[n>>2]|0)==1&(pe[a>>2]|0)==1?pe[e>>2]|0:0;break e}case 1:break;default:{i=0;break e}}if((pe[t>>2]|0)!=1?!((pe[o>>2]|0)==0&(pe[n>>2]|0)==1&(pe[a>>2]|0)==1):0){i=0;break}i=pe[i>>2]|0}}while(0);ve=d;return i|0}function $t(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;de[t+53>>0]=1;do{if((pe[t+4>>2]|0)==(i|0)){de[t+52>>0]=1;i=t+16|0;e=pe[i>>2]|0;if(!e){pe[i>>2]=r;pe[t+24>>2]=n;pe[t+36>>2]=1;if(!((n|0)==1?(pe[t+48>>2]|0)==1:0))break;de[t+54>>0]=1;break}if((e|0)!=(r|0)){n=t+36|0;pe[n>>2]=(pe[n>>2]|0)+1;de[t+54>>0]=1;break}e=t+24|0;i=pe[e>>2]|0;if((i|0)==2){pe[e>>2]=n;i=n}if((i|0)==1?(pe[t+48>>2]|0)==1:0)de[t+54>>0]=1}}while(0);return}function er(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0;e:do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(a=t+28|0,(pe[a>>2]|0)!=1):0)pe[a>>2]=i}else{if((e|0)!=(pe[t>>2]|0)){s=pe[e+8>>2]|0;Mi[pe[(pe[s>>2]|0)+24>>2]&3](s,t,r,i,n);break}if((pe[t+16>>2]|0)!=(r|0)?(o=t+20|0,(pe[o>>2]|0)!=(r|0)):0){pe[t+32>>2]=i;i=t+44|0;if((pe[i>>2]|0)==4)break;a=t+52|0;de[a>>0]=0;u=t+53|0;de[u>>0]=0;e=pe[e+8>>2]|0;Ii[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,r,1,n);if(de[u>>0]|0){if(!(de[a>>0]|0)){a=1;s=13}}else{a=0;s=13}do{if((s|0)==13){pe[o>>2]=r;u=t+40|0;pe[u>>2]=(pe[u>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0){de[t+54>>0]=1;if(a)break}else s=16;if((s|0)==16?a:0)break;pe[i>>2]=4;break e}}while(0);pe[i>>2]=3;break}if((i|0)==1)pe[t+32>>2]=1}}while(0);return}function tr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0;do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(o=t+28|0,(pe[o>>2]|0)!=1):0)pe[o>>2]=i}else if((e|0)==(pe[t>>2]|0)){if((pe[t+16>>2]|0)!=(r|0)?(a=t+20|0,(pe[a>>2]|0)!=(r|0)):0){pe[t+32>>2]=i;pe[a>>2]=r;n=t+40|0;pe[n>>2]=(pe[n>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0)de[t+54>>0]=1;pe[t+44>>2]=4;break}if((i|0)==1)pe[t+32>>2]=1}}while(0);return}function rr(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,i,n);else{e=pe[e+8>>2]|0;Ii[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,i,n,a)}return}function ir(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,i,n);return}function nr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=ve;ve=ve+16|0;i=n;pe[i>>2]=pe[r>>2];e=Ei[pe[(pe[e>>2]|0)+16>>2]&7](e,t,i)|0;if(e)pe[r>>2]=pe[i>>2];ve=n;return e&1|0}function ar(e){e=e|0;if(!e)e=0;else e=(Qt(e,24,72,0)|0)!=0;return e&1|0}function or(){var e=0,t=0,r=0,i=0,n=0,a=0,o=0,s=0;n=ve;ve=ve+48|0;o=n+32|0;r=n+24|0;s=n+16|0;a=n;n=n+36|0;e=Ft()|0;if((e|0)!=0?(i=pe[e>>2]|0,(i|0)!=0):0){e=i+48|0;t=pe[e>>2]|0;e=pe[e+4>>2]|0;if(!((t&-256|0)==1126902528&(e|0)==1129074247)){pe[r>>2]=pe[51];zt(2368,r)}if((t|0)==1126902529&(e|0)==1129074247)e=pe[i+44>>2]|0;else e=i+80|0;pe[n>>2]=e;i=pe[i>>2]|0;e=pe[i+4>>2]|0;if(Ei[pe[(pe[8>>2]|0)+16>>2]&7](8,i,n)|0){s=pe[n>>2]|0;n=pe[51]|0;s=Ci[pe[(pe[s>>2]|0)+8>>2]&1](s)|0;pe[a>>2]=n;pe[a+4>>2]=e;pe[a+8>>2]=s;zt(2282,a)}else{pe[s>>2]=pe[51];pe[s+4>>2]=e;zt(2327,s)}}zt(2406,o)}function sr(){var e=0;e=ve;ve=ve+16|0;if(!(ze(196,6)|0)){ve=e;return}else zt(2179,e)}function ur(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Ur(e);if(!(Ne(pe[49]|0,0)|0)){ve=t;return}else zt(2229,t)}function lr(e){e=e|0;var t=0,r=0;t=0;while(1){if((me[2427+t>>0]|0)==(e|0)){r=2;break}t=t+1|0;if((t|0)==87){t=87;e=2515;r=5;break}}if((r|0)==2)if(!t)e=2515;else{e=2515;r=5}if((r|0)==5)while(1){r=e;while(1){e=r+1|0;if(!(de[r>>0]|0))break;else r=e}t=t+-1|0;if(!t)break;else r=5}return e|0}function cr(){var e=0;if(!(pe[52]|0))e=264;else{e=(je()|0)+60|0;e=pe[e>>2]|0}return e|0}function hr(e){e=e|0;var t=0;if(e>>>0>4294963200){t=cr()|0;pe[t>>2]=0-e;e=-1}return e|0}function fr(e,t){e=+e;t=t|0;var r=0,i=0,n=0;ee[te>>3]=e;r=pe[te>>2]|0;i=pe[te+4>>2]|0;n=Jr(r|0,i|0,52)|0;n=n&2047;switch(n|0){case 0:{if(e!=0.0){e=+fr(e*18446744073709552.0e3,t);r=(pe[t>>2]|0)+-64|0}else r=0;pe[t>>2]=r;break}case 2047:break;default:{pe[t>>2]=n+-1022;pe[te>>2]=r;pe[te+4>>2]=i&-2146435073|1071644672;e=+ee[te>>3]}}return+e}function dr(e,t){e=+e;t=t|0;return+ +fr(e,t)}function pr(e,t,r){e=e|0;t=t|0;r=r|0;do{if(e){if(t>>>0<128){de[e>>0]=t;e=1;break}if(t>>>0<2048){de[e>>0]=t>>>6|192;de[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){de[e>>0]=t>>>12|224;de[e+1>>0]=t>>>6&63|128;de[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){de[e>>0]=t>>>18|240;de[e+1>>0]=t>>>12&63|128;de[e+2>>0]=t>>>6&63|128;de[e+3>>0]=t&63|128;e=4;break}else{e=cr()|0;pe[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function mr(e,t){e=e|0;t=t|0;if(!e)e=0;else e=pr(e,t,0)|0;return e|0}function gr(e){e=e|0;var t=0,r=0;do{if(e){if((pe[e+76>>2]|0)<=-1){t=Rr(e)|0;break}r=(Tr(e)|0)==0;t=Rr(e)|0;if(!r)Sr(e)}else{if(!(pe[65]|0))t=0;else t=gr(pe[65]|0)|0;Ue(236);e=pe[58]|0;if(e)do{if((pe[e+76>>2]|0)>-1)r=Tr(e)|0;else r=0;if((pe[e+20>>2]|0)>>>0>(pe[e+28>>2]|0)>>>0)t=Rr(e)|0|t;if(r)Sr(e);e=pe[e+56>>2]|0}while((e|0)!=0);Fe(236)}}while(0);return t|0}function vr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0;if((pe[t+76>>2]|0)>=0?(Tr(t)|0)!=0:0){if((de[t+75>>0]|0)!=(e|0)?(i=t+20|0,n=pe[i>>2]|0,n>>>0<(pe[t+16>>2]|0)>>>0):0){pe[i>>2]=n+1;de[n>>0]=e;r=e&255}else r=Er(t,e)|0;Sr(t)}else o=3;do{if((o|0)==3){if((de[t+75>>0]|0)!=(e|0)?(a=t+20|0,r=pe[a>>2]|0,r>>>0<(pe[t+16>>2]|0)>>>0):0){pe[a>>2]=r+1;de[r>>0]=e;r=e&255;break}r=Er(t,e)|0}}while(0);return r|0}function br(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;i=r+16|0;n=pe[i>>2]|0;if(!n)if(!(Or(r)|0)){n=pe[i>>2]|0;a=4}else i=0;else a=4;e:do{if((a|0)==4){o=r+20|0;a=pe[o>>2]|0;if((n-a|0)>>>0<t>>>0){i=Ei[pe[r+36>>2]&7](r,e,t)|0;break}t:do{if((de[r+75>>0]|0)>-1){i=t;while(1){if(!i){n=a;i=0;break t}n=i+-1|0;if((de[e+n>>0]|0)==10)break;else i=n}if((Ei[pe[r+36>>2]&7](r,e,i)|0)>>>0<i>>>0)break e;t=t-i|0;e=e+i|0;n=pe[o>>2]|0}else{n=a;i=0}}while(0);Qr(n|0,e|0,t|0)|0;pe[o>>2]=(pe[o>>2]|0)+t;i=i+t|0}}while(0);return i|0}function yr(e,t){e=e|0;t=t|0;var r=0,i=0;r=ve;ve=ve+16|0;i=r;pe[i>>2]=t;t=wr(pe[64]|0,e,i)|0;ve=r;return t|0}function _r(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=ve;ve=ve+16|0;n=i;pe[n>>2]=r;r=kr(e,t,n)|0;ve=i;return r|0}function wr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0;m=ve;ve=ve+224|0;h=m+120|0;p=m+80|0;d=m;f=m+136|0;i=p;n=i+40|0;do{pe[i>>2]=0;i=i+4|0}while((i|0)<(n|0));pe[h>>2]=pe[r>>2];if((Dr(0,t,h,d,p)|0)<0)r=-1;else{if((pe[e+76>>2]|0)>-1)l=Tr(e)|0;else l=0;r=pe[e>>2]|0;c=r&32;if((de[e+74>>0]|0)<1)pe[e>>2]=r&-33;r=e+48|0;if(!(pe[r>>2]|0)){n=e+44|0;a=pe[n>>2]|0;pe[n>>2]=f;o=e+28|0;pe[o>>2]=f;s=e+20|0;pe[s>>2]=f;pe[r>>2]=80;u=e+16|0;pe[u>>2]=f+80;i=Dr(e,t,h,d,p)|0;if(a){Ei[pe[e+36>>2]&7](e,0,0)|0;i=(pe[s>>2]|0)==0?-1:i;pe[n>>2]=a;pe[r>>2]=0;pe[u>>2]=0;pe[o>>2]=0;pe[s>>2]=0}}else i=Dr(e,t,h,d,p)|0;r=pe[e>>2]|0;pe[e>>2]=r|c;if(l)Sr(e);r=(r&32|0)==0?i:-1}ve=m;return r|0}function xr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+128|0;n=c+112|0;l=c;a=l;o=268;s=a+112|0;do{pe[a>>2]=pe[o>>2];a=a+4|0;o=o+4|0}while((a|0)<(s|0));if((t+-1|0)>>>0>2147483646)if(!t){t=1;u=4}else{t=cr()|0;pe[t>>2]=75;t=-1}else{n=e;u=4}if((u|0)==4){u=-2-n|0;u=t>>>0>u>>>0?u:t;pe[l+48>>2]=u;e=l+20|0;pe[e>>2]=n;pe[l+44>>2]=n;t=n+u|0;n=l+16|0;pe[n>>2]=t;pe[l+28>>2]=t;t=wr(l,r,i)|0;if(u){r=pe[e>>2]|0;de[r+(((r|0)==(pe[n>>2]|0))<<31>>31)>>0]=0}}ve=c;return t|0}function kr(e,t,r){e=e|0;t=t|0;r=r|0;return xr(e,2147483647,t,r)|0}function Tr(e){e=e|0;return 0}function Sr(e){e=e|0;return}function Er(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0;u=ve;ve=ve+16|0;s=u;o=t&255;de[s>>0]=o;i=e+16|0;n=pe[i>>2]|0;if(!n)if(!(Or(e)|0)){n=pe[i>>2]|0;a=4}else r=-1;else a=4;do{if((a|0)==4){i=e+20|0;a=pe[i>>2]|0;if(a>>>0<n>>>0?(r=t&255,(r|0)!=(de[e+75>>0]|0)):0){pe[i>>2]=a+1;de[a>>0]=o;break}if((Ei[pe[e+36>>2]&7](e,s,1)|0)==1)r=me[s>>0]|0;else r=-1}}while(0);ve=u;return r|0}function Mr(e){e=e|0;var t=0,r=0;t=ve;ve=ve+16|0;r=t;pe[r>>2]=pe[e+60>>2];e=hr(Ee(6,r|0)|0)|0;ve=t;return e|0}function Pr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0;n=ve;ve=ve+32|0;a=n;i=n+20|0;pe[a>>2]=pe[e+60>>2];pe[a+4>>2]=0;pe[a+8>>2]=t;pe[a+12>>2]=i;pe[a+16>>2]=r;if((hr(We(140,a|0)|0)|0)<0){pe[i>>2]=-1;e=-1}else e=pe[i>>2]|0;ve=n;return e|0}function Cr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;p=ve;ve=ve+48|0;h=p+16|0;c=p;i=p+32|0;f=e+28|0;n=pe[f>>2]|0;pe[i>>2]=n;d=e+20|0;n=(pe[d>>2]|0)-n|0;pe[i+4>>2]=n;pe[i+8>>2]=t;pe[i+12>>2]=r;u=e+60|0;l=e+44|0;t=2;n=n+r|0;while(1){if(!(pe[52]|0)){pe[h>>2]=pe[u>>2];pe[h+4>>2]=i;pe[h+8>>2]=t;o=hr(Ge(146,h|0)|0)|0}else{qe(7,e|0);pe[c>>2]=pe[u>>2];pe[c+4>>2]=i;pe[c+8>>2]=t;o=hr(Ge(146,c|0)|0)|0;Te(0)}if((n|0)==(o|0)){n=6;break}if((o|0)<0){n=8;break}n=n-o|0;a=pe[i+4>>2]|0;if(o>>>0<=a>>>0)if((t|0)==2){pe[f>>2]=(pe[f>>2]|0)+o;s=a;t=2}else s=a;else{s=pe[l>>2]|0;pe[f>>2]=s;pe[d>>2]=s;s=pe[i+12>>2]|0;o=o-a|0;i=i+8|0;t=t+-1|0}pe[i>>2]=(pe[i>>2]|0)+o;pe[i+4>>2]=s-o}if((n|0)==6){h=pe[l>>2]|0;pe[e+16>>2]=h+(pe[e+48>>2]|0);e=h;pe[f>>2]=e;pe[d>>2]=e}else if((n|0)==8){pe[e+16>>2]=0;pe[f>>2]=0;pe[d>>2]=0;pe[e>>2]=pe[e>>2]|32;if((t|0)==2)r=0;else r=r-(pe[i+4>>2]|0)|0}ve=p;return r|0}function Ar(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=ve;ve=ve+80|0;i=n;pe[e+36>>2]=3;if((pe[e>>2]&64|0)==0?(pe[i>>2]=pe[e+60>>2],pe[i+4>>2]=21505,pe[i+8>>2]=n+12,(Se(54,i|0)|0)!=0):0)de[e+75>>0]=-1;i=Cr(e,t,r)|0;ve=n;return i|0}function Or(e){e=e|0;var t=0,r=0;t=e+74|0;r=de[t>>0]|0;de[t>>0]=r+255|r;t=pe[e>>2]|0;if(!(t&8)){pe[e+8>>2]=0;pe[e+4>>2]=0;t=pe[e+44>>2]|0;pe[e+28>>2]=t;pe[e+20>>2]=t;pe[e+16>>2]=t+(pe[e+48>>2]|0);t=0}else{pe[e>>2]=t|32;t=-1}return t|0}function Ir(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;a=t&255;i=(r|0)!=0;e:do{if(i&(e&3|0)!=0){n=t&255;while(1){if((de[e>>0]|0)==n<<24>>24){o=6;break e}e=e+1|0;r=r+-1|0;i=(r|0)!=0;if(!(i&(e&3|0)!=0)){o=5;break}}}else o=5}while(0);if((o|0)==5)if(i)o=6;else r=0;e:do{if((o|0)==6){n=t&255;if((de[e>>0]|0)!=n<<24>>24){i=be(a,16843009)|0;t:do{if(r>>>0>3)while(1){a=pe[e>>2]^i;if((a&-2139062144^-2139062144)&a+-16843009)break;e=e+4|0;r=r+-4|0;if(r>>>0<=3){o=11;break t}}else o=11}while(0);if((o|0)==11)if(!r){r=0;break}while(1){if((de[e>>0]|0)==n<<24>>24)break e;e=e+1|0;r=r+-1|0;if(!r){r=0;break}}}}}while(0);return((r|0)!=0?e:0)|0}function Rr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0;t=e+20|0;a=e+28|0;if((pe[t>>2]|0)>>>0>(pe[a>>2]|0)>>>0?(Ei[pe[e+36>>2]&7](e,0,0)|0,(pe[t>>2]|0)==0):0)t=-1;else{o=e+4|0;r=pe[o>>2]|0;i=e+8|0;n=pe[i>>2]|0;if(r>>>0<n>>>0)Ei[pe[e+40>>2]&7](e,r-n|0,1)|0;pe[e+16>>2]=0;pe[a>>2]=0;pe[t>>2]=0;pe[i>>2]=0;pe[o>>2]=0;t=0}return t|0}function Dr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0.0,c=0,h=0,f=0,d=0,p=0.0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0,F=0,B=0,N=0,U=0,X=0,q=0,H=0,W=0,G=0,V=0,Y=0,J=0,K=0,Z=0,Q=0;Q=ve;ve=ve+624|0;V=Q+24|0;J=Q+16|0;Y=Q+588|0;X=Q+576|0;G=Q;B=Q+536|0;Z=Q+8|0;K=Q+528|0;A=(e|0)!=0;O=B+40|0;F=O;B=B+39|0;N=Z+4|0;U=X+12|0;X=X+11|0;q=Y;H=U;W=H-q|0;I=-2-q|0;R=H+2|0;D=V+288|0;j=Y+9|0;L=j;z=Y+8|0;a=0;m=t;o=0;t=0;e:while(1){do{if((a|0)>-1)if((o|0)>(2147483647-a|0)){a=cr()|0;pe[a>>2]=75;a=-1;break}else{a=o+a|0;break}}while(0);o=de[m>>0]|0;if(!(o<<24>>24)){C=245;break}else s=m;t:while(1){switch(o<<24>>24){case 37:{o=s;C=9;break t}case 0:{o=s;break t}default:{}}P=s+1|0;o=de[P>>0]|0;s=P}t:do{if((C|0)==9)while(1){C=0;if((de[o+1>>0]|0)!=37)break t;s=s+1|0;o=o+2|0;if((de[o>>0]|0)==37)C=9;else break}}while(0);v=s-m|0;if(A?(pe[e>>2]&32|0)==0:0)br(m,v,e)|0;if((s|0)!=(m|0)){m=o;o=v;continue}c=o+1|0;s=de[c>>0]|0;u=(s<<24>>24)+-48|0;if(u>>>0<10){P=(de[o+2>>0]|0)==36;c=P?o+3|0:c;s=de[c>>0]|0;d=P?u:-1;t=P?1:t}else d=-1;o=s<<24>>24;t:do{if((o&-32|0)==32){u=0;while(1){if(!(1<<o+-32&75913)){h=u;o=c;break t}u=1<<(s<<24>>24)+-32|u;c=c+1|0;s=de[c>>0]|0;o=s<<24>>24;if((o&-32|0)!=32){h=u;o=c;break}}}else{h=0;o=c}}while(0);do{if(s<<24>>24==42){u=o+1|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[o+2>>0]|0)==36:0){pe[n+(s<<2)>>2]=10;t=1;o=o+3|0;s=pe[i+((de[u>>0]|0)+-48<<3)>>2]|0}else{if(t){a=-1;break e}if(!A){g=h;o=u;t=0;P=0;break}t=(pe[r>>2]|0)+(4-1)&~(4-1);s=pe[t>>2]|0;pe[r>>2]=t+4;t=0;o=u}if((s|0)<0){g=h|8192;P=0-s|0}else{g=h;P=s}}else{u=(s<<24>>24)+-48|0;if(u>>>0<10){s=0;do{s=(s*10|0)+u|0;o=o+1|0;u=(de[o>>0]|0)+-48|0}while(u>>>0<10);if((s|0)<0){a=-1;break e}else{g=h;P=s}}else{g=h;P=0}}}while(0);t:do{if((de[o>>0]|0)==46){u=o+1|0;s=de[u>>0]|0;if(s<<24>>24!=42){c=(s<<24>>24)+-48|0;if(c>>>0<10){o=u;s=0}else{o=u;c=0;break}while(1){s=(s*10|0)+c|0;o=o+1|0;c=(de[o>>0]|0)+-48|0;if(c>>>0>=10){c=s;break t}}}u=o+2|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[o+3>>0]|0)==36:0){pe[n+(s<<2)>>2]=10;o=o+4|0;c=pe[i+((de[u>>0]|0)+-48<<3)>>2]|0;break}if(t){a=-1;break e}if(A){o=(pe[r>>2]|0)+(4-1)&~(4-1);c=pe[o>>2]|0;pe[r>>2]=o+4;o=u}else{o=u;c=0}}else c=-1}while(0);f=0;while(1){s=(de[o>>0]|0)+-65|0;if(s>>>0>57){a=-1;break e}u=o+1|0;s=de[5359+(f*58|0)+s>>0]|0;h=s&255;if((h+-1|0)>>>0<8){o=u;f=h}else{M=u;break}}if(!(s<<24>>24)){a=-1;break}u=(d|0)>-1;do{if(s<<24>>24==19)if(u){a=-1;break e}else C=52;else{if(u){pe[n+(d<<2)>>2]=h;S=i+(d<<3)|0;E=pe[S+4>>2]|0;C=G;pe[C>>2]=pe[S>>2];pe[C+4>>2]=E;C=52;break}if(!A){a=0;break e}zr(G,h,r)}}while(0);if((C|0)==52?(C=0,!A):0){m=M;o=v;continue}d=de[o>>0]|0;d=(f|0)!=0&(d&15|0)==3?d&-33:d;u=g&-65537;E=(g&8192|0)==0?g:u;t:do{switch(d|0){case 110:switch(f|0){case 0:{pe[pe[G>>2]>>2]=a;m=M;o=v;continue e}case 1:{pe[pe[G>>2]>>2]=a;m=M;o=v;continue e}case 2:{m=pe[G>>2]|0;pe[m>>2]=a;pe[m+4>>2]=((a|0)<0)<<31>>31;m=M;o=v;continue e}case 3:{$[pe[G>>2]>>1]=a;m=M;o=v;continue e}case 4:{de[pe[G>>2]>>0]=a;m=M;o=v;continue e}case 6:{pe[pe[G>>2]>>2]=a;m=M;o=v;continue e}case 7:{m=pe[G>>2]|0;pe[m>>2]=a;pe[m+4>>2]=((a|0)<0)<<31>>31;m=M;o=v;continue e}default:{m=M;o=v;continue e}}case 112:{f=E|8;c=c>>>0>8?c:8;d=120;C=64;break}case 88:case 120:{f=E;C=64;break}case 111:{u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;if((s|0)==0&(u|0)==0)o=O;else{o=O;do{o=o+-1|0;de[o>>0]=s&7|48;s=Jr(s|0,u|0,3)|0;u=re}while(!((s|0)==0&(u|0)==0))}if(!(E&8)){s=E;f=0;h=5839;C=77}else{f=F-o+1|0;s=E;c=(c|0)<(f|0)?f:c;f=0;h=5839;C=77}break}case 105:case 100:{s=G;o=pe[s>>2]|0;s=pe[s+4>>2]|0;if((s|0)<0){o=Vr(0,0,o|0,s|0)|0;s=re;u=G;pe[u>>2]=o;pe[u+4>>2]=s;u=1;h=5839;C=76;break t}if(!(E&2048)){h=E&1;u=h;h=(h|0)==0?5839:5841;C=76}else{u=1;h=5840;C=76}break}case 117:{s=G;o=pe[s>>2]|0;s=pe[s+4>>2]|0;u=0;h=5839;C=76;break}case 99:{de[B>>0]=pe[G>>2];m=B;s=1;f=0;d=5839;o=O;break}case 109:{o=cr()|0;o=lr(pe[o>>2]|0)|0;C=82;break}case 115:{o=pe[G>>2]|0;o=(o|0)!=0?o:5849;C=82;break}case 67:{pe[Z>>2]=pe[G>>2];pe[N>>2]=0;pe[G>>2]=Z;c=-1;C=86;break}case 83:{if(!c){Br(e,32,P,0,E);o=0;C=98}else C=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{l=+ee[G>>3];pe[J>>2]=0;ee[te>>3]=l;if((pe[te+4>>2]|0)>=0)if(!(E&2048)){S=E&1;T=S;S=(S|0)==0?5857:5862}else{T=1;S=5859}else{l=-l;T=1;S=5856}ee[te>>3]=l;k=pe[te+4>>2]&2146435072;do{if(k>>>0<2146435072|(k|0)==2146435072&0<0){p=+dr(l,J)*2.0;s=p!=0.0;if(s)pe[J>>2]=(pe[J>>2]|0)+-1;w=d|32;if((w|0)==97){m=d&32;v=(m|0)==0?S:S+9|0;g=T|2;o=12-c|0;do{if(!(c>>>0>11|(o|0)==0)){l=8.0;do{o=o+-1|0;l=l*16.0}while((o|0)!=0);if((de[v>>0]|0)==45){l=-(l+(-p-l));break}else{l=p+l-l;break}}else l=p}while(0);s=pe[J>>2]|0;o=(s|0)<0?0-s|0:s;o=Fr(o,((o|0)<0)<<31>>31,U)|0;if((o|0)==(U|0)){de[X>>0]=48;o=X}de[o+-1>>0]=(s>>31&2)+43;f=o+-2|0;de[f>>0]=d+15;h=(c|0)<1;u=(E&8|0)==0;s=Y;while(1){S=~~l;o=s+1|0;de[s>>0]=me[5823+S>>0]|m;l=(l-+(S|0))*16.0;do{if((o-q|0)==1){if(u&(h&l==0.0))break;de[o>>0]=46;o=s+2|0}}while(0);if(!(l!=0.0))break;else s=o}c=(c|0)!=0&(I+o|0)<(c|0)?R+c-f|0:W-f+o|0;u=c+g|0;Br(e,32,P,u,E);if(!(pe[e>>2]&32))br(v,g,e)|0;Br(e,48,P,u,E^65536);o=o-q|0;if(!(pe[e>>2]&32))br(Y,o,e)|0;s=H-f|0;Br(e,48,c-(o+s)|0,0,0);if(!(pe[e>>2]&32))br(f,s,e)|0;Br(e,32,P,u,E^8192);o=(u|0)<(P|0)?P:u;break}o=(c|0)<0?6:c;if(s){s=(pe[J>>2]|0)+-28|0;pe[J>>2]=s;l=p*268435456.0}else{l=p;s=pe[J>>2]|0}k=(s|0)<0?V:D;x=k;s=k;do{_=~~l>>>0;pe[s>>2]=_;s=s+4|0;l=(l-+(_>>>0))*1.0e9}while(l!=0.0);u=s;s=pe[J>>2]|0;if((s|0)>0){h=k;while(1){f=(s|0)>29?29:s;c=u+-4|0;do{if(c>>>0<h>>>0)c=h;else{s=0;do{_=Kr(pe[c>>2]|0,0,f|0)|0;_=Zr(_|0,re|0,s|0,0)|0;s=re;y=oi(_|0,s|0,1e9,0)|0;pe[c>>2]=y;s=ai(_|0,s|0,1e9,0)|0;c=c+-4|0}while(c>>>0>=h>>>0);if(!s){c=h;break}c=h+-4|0;pe[c>>2]=s}}while(0);while(1){if(u>>>0<=c>>>0)break;s=u+-4|0;if(!(pe[s>>2]|0))u=s;else break}s=(pe[J>>2]|0)-f|0;pe[J>>2]=s;if((s|0)>0)h=c;else break}}else c=k;if((s|0)<0){v=((o+25|0)/9|0)+1|0;b=(w|0)==102;m=c;while(1){g=0-s|0;g=(g|0)>9?9:g;do{if(m>>>0<u>>>0){s=(1<<g)+-1|0;h=1e9>>>g;c=0;f=m;do{_=pe[f>>2]|0;pe[f>>2]=(_>>>g)+c;c=be(_&s,h)|0;f=f+4|0}while(f>>>0<u>>>0);s=(pe[m>>2]|0)==0?m+4|0:m;if(!c){c=s;break}pe[u>>2]=c;c=s;u=u+4|0}else c=(pe[m>>2]|0)==0?m+4|0:m}while(0);s=b?k:c;u=(u-s>>2|0)>(v|0)?s+(v<<2)|0:u;s=(pe[J>>2]|0)+g|0;pe[J>>2]=s;if((s|0)>=0){m=c;break}else m=c}}else m=c;do{if(m>>>0<u>>>0){s=(x-m>>2)*9|0;h=pe[m>>2]|0;if(h>>>0<10)break;else c=10;do{c=c*10|0;s=s+1|0}while(h>>>0>=c>>>0)}else s=0}while(0);y=(w|0)==103;_=(o|0)!=0;c=o-((w|0)!=102?s:0)+((_&y)<<31>>31)|0;if((c|0)<(((u-x>>2)*9|0)+-9|0)){f=c+9216|0;b=(f|0)/9|0;c=k+(b+-1023<<2)|0;f=((f|0)%9|0)+1|0;if((f|0)<9){h=10;do{h=h*10|0;f=f+1|0}while((f|0)!=9)}else h=10;g=pe[c>>2]|0;v=(g>>>0)%(h>>>0)|0;if((v|0)==0?(k+(b+-1022<<2)|0)==(u|0):0)h=m;else C=163;do{if((C|0)==163){C=0;p=(((g>>>0)/(h>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;f=(h|0)/2|0;do{if(v>>>0<f>>>0)l=.5;else{if((v|0)==(f|0)?(k+(b+-1022<<2)|0)==(u|0):0){l=1.0;break}l=1.5}}while(0);do{if(T){if((de[S>>0]|0)!=45)break;p=-p;l=-l}}while(0);f=g-v|0;pe[c>>2]=f;if(!(p+l!=p)){h=m;break}w=f+h|0;pe[c>>2]=w;if(w>>>0>999999999){s=m;while(1){h=c+-4|0;pe[c>>2]=0;if(h>>>0<s>>>0){s=s+-4|0;pe[s>>2]=0}w=(pe[h>>2]|0)+1|0;pe[h>>2]=w;if(w>>>0>999999999)c=h;else{m=s;c=h;break}}}s=(x-m>>2)*9|0;f=pe[m>>2]|0;if(f>>>0<10){h=m;break}else h=10;do{h=h*10|0;s=s+1|0}while(f>>>0>=h>>>0);h=m}}while(0);w=c+4|0;m=h;u=u>>>0>w>>>0?w:u}v=0-s|0;while(1){if(u>>>0<=m>>>0){b=0;w=u;break}c=u+-4|0;if(!(pe[c>>2]|0))u=c;else{b=1;w=u;break}}do{if(y){o=(_&1^1)+o|0;if((o|0)>(s|0)&(s|0)>-5){d=d+-1|0;o=o+-1-s|0}else{d=d+-2|0;o=o+-1|0}u=E&8;if(u)break;do{if(b){u=pe[w+-4>>2]|0;if(!u){c=9;break}if(!((u>>>0)%10|0)){h=10;c=0}else{c=0;break}do{h=h*10|0;c=c+1|0}while(((u>>>0)%(h>>>0)|0|0)==0)}else c=9}while(0);u=((w-x>>2)*9|0)+-9|0;if((d|32|0)==102){u=u-c|0;u=(u|0)<0?0:u;o=(o|0)<(u|0)?o:u;u=0;break}else{u=u+s-c|0;u=(u|0)<0?0:u;o=(o|0)<(u|0)?o:u;u=0;break}}else u=E&8}while(0);g=o|u;h=(g|0)!=0&1;f=(d|32|0)==102;if(f){s=(s|0)>0?s:0;d=0}else{c=(s|0)<0?v:s;c=Fr(c,((c|0)<0)<<31>>31,U)|0;if((H-c|0)<2)do{c=c+-1|0;de[c>>0]=48}while((H-c|0)<2);de[c+-1>>0]=(s>>31&2)+43;x=c+-2|0;de[x>>0]=d;s=H-x|0;d=x}v=T+1+o+h+s|0;Br(e,32,P,v,E);if(!(pe[e>>2]&32))br(S,T,e)|0;Br(e,48,P,v,E^65536);do{if(f){c=m>>>0>k>>>0?k:m;s=c;do{u=Fr(pe[s>>2]|0,0,j)|0;do{if((s|0)==(c|0)){if((u|0)!=(j|0))break;de[z>>0]=48;u=z}else{if(u>>>0<=Y>>>0)break;do{u=u+-1|0;de[u>>0]=48}while(u>>>0>Y>>>0)}}while(0);if(!(pe[e>>2]&32))br(u,L-u|0,e)|0;s=s+4|0}while(s>>>0<=k>>>0);do{if(g){if(pe[e>>2]&32)break;br(5891,1,e)|0}}while(0);if((o|0)>0&s>>>0<w>>>0){u=s;while(1){s=Fr(pe[u>>2]|0,0,j)|0;if(s>>>0>Y>>>0)do{s=s+-1|0;de[s>>0]=48}while(s>>>0>Y>>>0);if(!(pe[e>>2]&32))br(s,(o|0)>9?9:o,e)|0;u=u+4|0;s=o+-9|0;if(!((o|0)>9&u>>>0<w>>>0)){o=s;break}else o=s}}Br(e,48,o+9|0,9,0)}else{f=b?w:m+4|0;if((o|0)>-1){h=(u|0)==0;c=m;do{s=Fr(pe[c>>2]|0,0,j)|0;if((s|0)==(j|0)){de[z>>0]=48;s=z}do{if((c|0)==(m|0)){u=s+1|0;if(!(pe[e>>2]&32))br(s,1,e)|0;if(h&(o|0)<1){s=u;break}if(pe[e>>2]&32){s=u;break}br(5891,1,e)|0;s=u}else{if(s>>>0<=Y>>>0)break;do{s=s+-1|0;de[s>>0]=48}while(s>>>0>Y>>>0)}}while(0);u=L-s|0;if(!(pe[e>>2]&32))br(s,(o|0)>(u|0)?u:o,e)|0;o=o-u|0;c=c+4|0}while(c>>>0<f>>>0&(o|0)>-1)}Br(e,48,o+18|0,18,0);if(pe[e>>2]&32)break;br(d,H-d|0,e)|0}}while(0);Br(e,32,P,v,E^8192);o=(v|0)<(P|0)?P:v}else{f=(d&32|0)!=0;h=l!=l|0.0!=0.0;s=h?0:T;c=s+3|0;Br(e,32,P,c,u);o=pe[e>>2]|0;if(!(o&32)){br(S,s,e)|0;o=pe[e>>2]|0}if(!(o&32))br(h?f?5883:5887:f?5875:5879,3,e)|0;Br(e,32,P,c,E^8192);o=(c|0)<(P|0)?P:c}}while(0);m=M;continue e}default:{u=E;s=c;f=0;d=5839;o=O}}}while(0);t:do{if((C|0)==64){u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;h=d&32;if(!((s|0)==0&(u|0)==0)){o=O;do{o=o+-1|0;de[o>>0]=me[5823+(s&15)>>0]|h;s=Jr(s|0,u|0,4)|0;u=re}while(!((s|0)==0&(u|0)==0));C=G;if((f&8|0)==0|(pe[C>>2]|0)==0&(pe[C+4>>2]|0)==0){s=f;f=0;h=5839;C=77}else{s=f;f=2;h=5839+(d>>4)|0;C=77}}else{o=O;s=f;f=0;h=5839;C=77}}else if((C|0)==76){o=Fr(o,s,O)|0;s=E;f=u;C=77}else if((C|0)==82){C=0;E=Ir(o,0,c)|0;S=(E|0)==0;m=o;s=S?c:E-o|0;f=0;d=5839;o=S?o+c|0:E}else if((C|0)==86){C=0;s=0;o=0;h=pe[G>>2]|0;while(1){u=pe[h>>2]|0;if(!u)break;o=mr(K,u)|0;if((o|0)<0|o>>>0>(c-s|0)>>>0)break;s=o+s|0;if(c>>>0>s>>>0)h=h+4|0;else break}if((o|0)<0){a=-1;break e}Br(e,32,P,s,E);if(!s){o=0;C=98}else{u=0;c=pe[G>>2]|0;while(1){o=pe[c>>2]|0;if(!o){o=s;C=98;break t}o=mr(K,o)|0;u=o+u|0;if((u|0)>(s|0)){o=s;C=98;break t}if(!(pe[e>>2]&32))br(K,o,e)|0;if(u>>>0>=s>>>0){o=s;C=98;break}else c=c+4|0}}}}while(0);if((C|0)==98){C=0;Br(e,32,P,o,E^8192);m=M;o=(P|0)>(o|0)?P:o;continue}if((C|0)==77){C=0;u=(c|0)>-1?s&-65537:s;s=G;s=(pe[s>>2]|0)!=0|(pe[s+4>>2]|0)!=0;if((c|0)!=0|s){s=(s&1^1)+(F-o)|0;m=o;s=(c|0)>(s|0)?c:s;d=h;o=O}else{m=O;s=0;d=h;o=O}}h=o-m|0;s=(s|0)<(h|0)?h:s;c=f+s|0;o=(P|0)<(c|0)?c:P;Br(e,32,o,c,u);if(!(pe[e>>2]&32))br(d,f,e)|0;Br(e,48,o,c,u^65536);Br(e,48,s,h,0);if(!(pe[e>>2]&32))br(m,h,e)|0;Br(e,32,o,c,u^8192);m=M}e:do{if((C|0)==245)if(!e)if(t){a=1;while(1){t=pe[n+(a<<2)>>2]|0;if(!t)break;zr(i+(a<<3)|0,t,r);a=a+1|0;if((a|0)>=10){a=1;break e}}if((a|0)<10)while(1){if(pe[n+(a<<2)>>2]|0){a=-1;break e}a=a+1|0;if((a|0)>=10){a=1;break}}else a=1}else a=0}while(0);ve=Q;return a|0}function jr(e){e=e|0;if(!(pe[e+68>>2]|0))Sr(e);return}function Lr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=e+20|0;n=pe[i>>2]|0;e=(pe[e+16>>2]|0)-n|0;e=e>>>0>r>>>0?r:e;Qr(n|0,t|0,e|0)|0;pe[i>>2]=(pe[i>>2]|0)+e;return r|0}function zr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0.0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{i=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[i>>2]|0;pe[r>>2]=i+4;pe[e>>2]=t;break e}case 10:{i=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=t;pe[i+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{i=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=t;pe[i+4>>2]=0;break e}case 12:{i=(pe[r>>2]|0)+(8-1)&~(8-1);t=i;n=pe[t>>2]|0;t=pe[t+4>>2]|0;pe[r>>2]=i+8;i=e;pe[i>>2]=n;pe[i+4>>2]=t;break e}case 13:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;i=(i&65535)<<16>>16;n=e;pe[n>>2]=i;pe[n+4>>2]=((i|0)<0)<<31>>31;break e}case 14:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=i&65535;pe[n+4>>2]=0;break e}case 15:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;i=(i&255)<<24>>24;n=e;pe[n>>2]=i;pe[n+4>>2]=((i|0)<0)<<31>>31;break e}case 16:{n=(pe[r>>2]|0)+(4-1)&~(4-1);i=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=i&255;pe[n+4>>2]=0;break e}case 17:{n=(pe[r>>2]|0)+(8-1)&~(8-1);a=+ee[n>>3];pe[r>>2]=n+8;ee[e>>3]=a;break e}case 18:{n=(pe[r>>2]|0)+(8-1)&~(8-1);a=+ee[n>>3];pe[r>>2]=n+8;ee[e>>3]=a;break e}default:break e}}while(0)}while(0);return}function Fr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if(t>>>0>0|(t|0)==0&e>>>0>4294967295)while(1){i=oi(e|0,t|0,10,0)|0;r=r+-1|0;de[r>>0]=i|48;i=ai(e|0,t|0,10,0)|0;if(t>>>0>9|(t|0)==9&e>>>0>4294967295){e=i;t=re}else{e=i;break}}if(e)while(1){r=r+-1|0;de[r>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}return r|0}function Br(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0;s=ve;ve=ve+256|0;o=s;do{if((r|0)>(i|0)&(n&73728|0)==0){n=r-i|0;Yr(o|0,t|0,(n>>>0>256?256:n)|0)|0;t=pe[e>>2]|0;a=(t&32|0)==0;if(n>>>0>255){i=r-i|0;do{if(a){br(o,256,e)|0;t=pe[e>>2]|0}n=n+-256|0;a=(t&32|0)==0}while(n>>>0>255);if(a)n=i&255;else break}else if(!a)break;br(o,n,e)|0}}while(0);ve=s;return}function Nr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,x=0,k=0,T=0,S=0,E=0,M=0,P=0,C=0,A=0,O=0,I=0,R=0,D=0,j=0,L=0,z=0;do{if(e>>>0<245){d=e>>>0<11?16:e+11&-8;e=d>>>3;s=pe[151]|0;r=s>>>e;if(r&3){e=(r&1^1)+e|0;i=e<<1;r=644+(i<<2)|0;i=644+(i+2<<2)|0;n=pe[i>>2]|0;a=n+8|0;o=pe[a>>2]|0;do{if((r|0)!=(o|0)){if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+12|0;if((pe[t>>2]|0)==(n|0)){pe[t>>2]=r;pe[i>>2]=o;break}else Xe()}else pe[151]=s&~(1<<e)}while(0);z=e<<3;pe[n+4>>2]=z|3;z=n+(z|4)|0;pe[z>>2]=pe[z>>2]|1;z=a;return z|0}o=pe[153]|0;if(d>>>0>o>>>0){if(r){i=2<<e;i=r<<e&(i|0-i);i=(i&0-i)+-1|0;u=i>>>12&16;i=i>>>u;n=i>>>5&8;i=i>>>n;a=i>>>2&4;i=i>>>a;r=i>>>1&2;i=i>>>r;e=i>>>1&1;e=(n|u|a|r|e)+(i>>>e)|0;i=e<<1;r=644+(i<<2)|0;i=644+(i+2<<2)|0;a=pe[i>>2]|0;u=a+8|0;n=pe[u>>2]|0;do{if((r|0)!=(n|0)){if(n>>>0<(pe[155]|0)>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)==(a|0)){pe[t>>2]=r;pe[i>>2]=n;l=pe[153]|0;break}else Xe()}else{pe[151]=s&~(1<<e);l=o}}while(0);z=e<<3;o=z-d|0;pe[a+4>>2]=d|3;s=a+d|0;pe[a+(d|4)>>2]=o|1;pe[a+z>>2]=o;if(l){n=pe[156]|0;r=l>>>3;t=r<<1;i=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){e=644+(t+2<<2)|0;t=pe[e>>2]|0;if(t>>>0<(pe[155]|0)>>>0)Xe();else{c=e;h=t}}else{pe[151]=e|r;c=644+(t+2<<2)|0;h=i}pe[c>>2]=n;pe[h+12>>2]=n;pe[n+8>>2]=h;pe[n+12>>2]=i}pe[153]=o;pe[156]=s;z=u;return z|0}e=pe[152]|0;if(e){r=(e&0-e)+-1|0;L=r>>>12&16;r=r>>>L;j=r>>>5&8;r=r>>>j;z=r>>>2&4;r=r>>>z;e=r>>>1&2;r=r>>>e;i=r>>>1&1;i=pe[908+((j|L|z|e|i)+(r>>>i)<<2)>>2]|0;r=(pe[i+4>>2]&-8)-d|0;e=i;while(1){t=pe[e+16>>2]|0;if(!t){t=pe[e+20>>2]|0;if(!t){u=r;break}}e=(pe[t+4>>2]&-8)-d|0;z=e>>>0<r>>>0;r=z?e:r;e=t;i=z?t:i}a=pe[155]|0;if(i>>>0<a>>>0)Xe();s=i+d|0;if(i>>>0>=s>>>0)Xe();o=pe[i+24>>2]|0;r=pe[i+12>>2]|0;do{if((r|0)==(i|0)){e=i+20|0;t=pe[e>>2]|0;if(!t){e=i+16|0;t=pe[e>>2]|0;if(!t){f=0;break}}while(1){r=t+20|0;n=pe[r>>2]|0;if(n){t=n;e=r;continue}r=t+16|0;n=pe[r>>2]|0;if(!n)break;else{t=n;e=r}}if(e>>>0<a>>>0)Xe();else{pe[e>>2]=0;f=t;break}}else{n=pe[i+8>>2]|0;if(n>>>0<a>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)!=(i|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(i|0)){pe[t>>2]=r;pe[e>>2]=n;f=r;break}else Xe()}}while(0);do{if(o){t=pe[i+28>>2]|0;e=908+(t<<2)|0;if((i|0)==(pe[e>>2]|0)){pe[e>>2]=f;if(!f){pe[152]=pe[152]&~(1<<t);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(i|0))pe[t>>2]=f;else pe[o+20>>2]=f;if(!f)break}e=pe[155]|0;if(f>>>0<e>>>0)Xe();pe[f+24>>2]=o;t=pe[i+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[f+16>>2]=t;pe[t+24>>2]=f;break}}while(0);t=pe[i+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[f+20>>2]=t;pe[t+24>>2]=f;break}}}while(0);if(u>>>0<16){z=u+d|0;pe[i+4>>2]=z|3;z=i+(z+4)|0;pe[z>>2]=pe[z>>2]|1}else{pe[i+4>>2]=d|3;pe[i+(d|4)>>2]=u|1;pe[i+(u+d)>>2]=u;t=pe[153]|0;if(t){a=pe[156]|0;r=t>>>3;t=r<<1;n=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){t=644+(t+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{p=t;m=e}}else{pe[151]=e|r;p=644+(t+2<<2)|0;m=n}pe[p>>2]=a;pe[m+12>>2]=a;pe[a+8>>2]=m;pe[a+12>>2]=n}pe[153]=u;pe[156]=s}z=i+8|0;return z|0}else m=d}else m=d}else if(e>>>0<=4294967231){e=e+11|0;h=e&-8;c=pe[152]|0;if(c){r=0-h|0;e=e>>>8;if(e)if(h>>>0>16777215)l=31;else{m=(e+1048320|0)>>>16&8;_=e<<m;p=(_+520192|0)>>>16&4;_=_<<p;l=(_+245760|0)>>>16&2;l=14-(p|m|l)+(_<<l>>>15)|0;l=h>>>(l+7|0)&1|l<<1}else l=0;e=pe[908+(l<<2)>>2]|0;e:do{if(!e){n=0;e=0;_=86}else{o=r;n=0;s=h<<((l|0)==31?0:25-(l>>>1)|0);u=e;e=0;while(1){a=pe[u+4>>2]&-8;r=a-h|0;if(r>>>0<o>>>0)if((a|0)==(h|0)){a=u;e=u;_=90;break e}else e=u;else r=o;_=pe[u+20>>2]|0;u=pe[u+16+(s>>>31<<2)>>2]|0;n=(_|0)==0|(_|0)==(u|0)?n:_;if(!u){_=86;break}else{o=r;s=s<<1}}}}while(0);if((_|0)==86){if((n|0)==0&(e|0)==0){e=2<<l;e=c&(e|0-e);if(!e){m=h;break}e=(e&0-e)+-1|0;f=e>>>12&16;e=e>>>f;c=e>>>5&8;e=e>>>c;p=e>>>2&4;e=e>>>p;m=e>>>1&2;e=e>>>m;n=e>>>1&1;n=pe[908+((c|f|p|m|n)+(e>>>n)<<2)>>2]|0;e=0}if(!n){s=r;u=e}else{a=n;_=90}}if((_|0)==90)while(1){_=0;m=(pe[a+4>>2]&-8)-h|0;n=m>>>0<r>>>0;r=n?m:r;e=n?a:e;n=pe[a+16>>2]|0;if(n){a=n;_=90;continue}a=pe[a+20>>2]|0;if(!a){s=r;u=e;break}else _=90}if((u|0)!=0?s>>>0<((pe[153]|0)-h|0)>>>0:0){n=pe[155]|0;if(u>>>0<n>>>0)Xe();o=u+h|0;if(u>>>0>=o>>>0)Xe();a=pe[u+24>>2]|0;r=pe[u+12>>2]|0;do{if((r|0)==(u|0)){e=u+20|0;t=pe[e>>2]|0;if(!t){e=u+16|0;t=pe[e>>2]|0;if(!t){d=0;break}}while(1){r=t+20|0;i=pe[r>>2]|0;if(i){t=i;e=r;continue}r=t+16|0;i=pe[r>>2]|0;if(!i)break;else{t=i;e=r}}if(e>>>0<n>>>0)Xe();else{pe[e>>2]=0;d=t;break}}else{i=pe[u+8>>2]|0;if(i>>>0<n>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(u|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(u|0)){pe[t>>2]=r;pe[e>>2]=i;d=r;break}else Xe()}}while(0);do{if(a){t=pe[u+28>>2]|0;e=908+(t<<2)|0;if((u|0)==(pe[e>>2]|0)){pe[e>>2]=d;if(!d){pe[152]=pe[152]&~(1<<t);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(u|0))pe[t>>2]=d;else pe[a+20>>2]=d;if(!d)break}e=pe[155]|0;if(d>>>0<e>>>0)Xe();pe[d+24>>2]=a;t=pe[u+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[d+16>>2]=t;pe[t+24>>2]=d;break}}while(0);t=pe[u+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[d+20>>2]=t;pe[t+24>>2]=d;break}}}while(0);e:do{if(s>>>0>=16){pe[u+4>>2]=h|3;pe[u+(h|4)>>2]=s|1;pe[u+(s+h)>>2]=s;t=s>>>3;if(s>>>0<256){e=t<<1;i=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{v=t;b=e}}else{pe[151]=r|t;v=644+(e+2<<2)|0;b=i}pe[v>>2]=o;pe[b+12>>2]=o;pe[u+(h+8)>>2]=b;pe[u+(h+12)>>2]=i;break}t=s>>>8;if(t)if(s>>>0>16777215)i=31;else{L=(t+1048320|0)>>>16&8;z=t<<L;j=(z+520192|0)>>>16&4;z=z<<j;i=(z+245760|0)>>>16&2;i=14-(j|L|i)+(z<<i>>>15)|0;i=s>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;pe[u+(h+28)>>2]=i;pe[u+(h+20)>>2]=0;pe[u+(h+16)>>2]=0;e=pe[152]|0;r=1<<i;if(!(e&r)){pe[152]=e|r;pe[t>>2]=o;pe[u+(h+24)>>2]=t;pe[u+(h+12)>>2]=o;pe[u+(h+8)>>2]=o;break}t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(s|0)){i=s<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(s|0)){k=r;break t}else{i=i<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=o;pe[u+(h+24)>>2]=t;pe[u+(h+12)>>2]=o;pe[u+(h+8)>>2]=o;break e}}else k=t}while(0);t=k+8|0;e=pe[t>>2]|0;z=pe[155]|0;if(e>>>0>=z>>>0&k>>>0>=z>>>0){pe[e+12>>2]=o;pe[t>>2]=o;pe[u+(h+8)>>2]=e;pe[u+(h+12)>>2]=k;pe[u+(h+24)>>2]=0;break}else Xe()}else{z=s+h|0;pe[u+4>>2]=z|3;z=u+(z+4)|0;pe[z>>2]=pe[z>>2]|1}}while(0);z=u+8|0;return z|0}else m=h}else m=h}else m=-1}while(0);r=pe[153]|0;if(r>>>0>=m>>>0){t=r-m|0;e=pe[156]|0;if(t>>>0>15){pe[156]=e+m;pe[153]=t;pe[e+(m+4)>>2]=t|1;pe[e+r>>2]=t;pe[e+4>>2]=m|3}else{pe[153]=0;pe[156]=0;pe[e+4>>2]=r|3;z=e+(r+4)|0;pe[z>>2]=pe[z>>2]|1}z=e+8|0;return z|0}e=pe[154]|0;if(e>>>0>m>>>0){L=e-m|0;pe[154]=L;z=pe[157]|0;pe[157]=z+m;pe[z+(m+4)>>2]=L|1;pe[z+4>>2]=m|3;z=z+8|0;return z|0}do{if(!(pe[269]|0)){e=Re(30)|0;if(!(e+-1&e)){pe[271]=e;pe[270]=e;pe[272]=-1;pe[273]=-1;pe[274]=0;pe[262]=0;k=(He(0)|0)&-16^1431655768;pe[269]=k;break}else Xe()}}while(0);u=m+48|0;s=pe[271]|0;l=m+47|0;o=s+l|0;s=0-s|0;c=o&s;if(c>>>0<=m>>>0){z=0;return z|0}e=pe[261]|0;if((e|0)!=0?(b=pe[259]|0,k=b+c|0,k>>>0<=b>>>0|k>>>0>e>>>0):0){z=0;return z|0}e:do{if(!(pe[262]&4)){e=pe[157]|0;t:do{if(e){n=1052;while(1){r=pe[n>>2]|0;if(r>>>0<=e>>>0?(g=n+4|0,(r+(pe[g>>2]|0)|0)>>>0>e>>>0):0){a=n;e=g;break}n=pe[n+8>>2]|0;if(!n){_=174;break t}}r=o-(pe[154]|0)&s;if(r>>>0<2147483647){n=Ae(r|0)|0;k=(n|0)==((pe[a>>2]|0)+(pe[e>>2]|0)|0);e=k?r:0;if(k){if((n|0)!=(-1|0)){w=n;p=e;_=194;break e}}else _=184}else e=0}else _=174}while(0);do{if((_|0)==174){a=Ae(0)|0;if((a|0)!=(-1|0)){e=a;r=pe[270]|0;n=r+-1|0;if(!(n&e))r=c;else r=c-e+(n+e&0-r)|0;e=pe[259]|0;n=e+r|0;if(r>>>0>m>>>0&r>>>0<2147483647){k=pe[261]|0;if((k|0)!=0?n>>>0<=e>>>0|n>>>0>k>>>0:0){e=0;break}n=Ae(r|0)|0;k=(n|0)==(a|0);e=k?r:0;if(k){w=a;p=e;_=194;break e}else _=184}else e=0}else e=0}}while(0);t:do{if((_|0)==184){a=0-r|0;do{if(u>>>0>r>>>0&(r>>>0<2147483647&(n|0)!=(-1|0))?(y=pe[271]|0,y=l-r+y&0-y,y>>>0<2147483647):0)if((Ae(y|0)|0)==(-1|0)){Ae(a|0)|0;break t}else{r=y+r|0;break}}while(0);if((n|0)!=(-1|0)){w=n;p=r;_=194;break e}}}while(0);pe[262]=pe[262]|4;_=191}else{e=0;_=191}}while(0);if((((_|0)==191?c>>>0<2147483647:0)?(w=Ae(c|0)|0,x=Ae(0)|0,w>>>0<x>>>0&((w|0)!=(-1|0)&(x|0)!=(-1|0))):0)?(T=x-w|0,S=T>>>0>(m+40|0)>>>0,S):0){p=S?T:e;_=194}if((_|0)==194){e=(pe[259]|0)+p|0;pe[259]=e;if(e>>>0>(pe[260]|0)>>>0)pe[260]=e;o=pe[157]|0;e:do{if(o){a=1052;do{e=pe[a>>2]|0;r=a+4|0;n=pe[r>>2]|0;if((w|0)==(e+n|0)){E=e;M=r;P=n;C=a;_=204;break}a=pe[a+8>>2]|0}while((a|0)!=0);if(((_|0)==204?(pe[C+12>>2]&8|0)==0:0)?o>>>0<w>>>0&o>>>0>=E>>>0:0){pe[M>>2]=P+p;z=(pe[154]|0)+p|0;L=o+8|0;L=(L&7|0)==0?0:0-L&7;j=z-L|0;pe[157]=o+L;pe[154]=j;pe[o+(L+4)>>2]=j|1;pe[o+(z+4)>>2]=40;pe[158]=pe[273];break}e=pe[155]|0;if(w>>>0<e>>>0){pe[155]=w;e=w}r=w+p|0;a=1052;while(1){if((pe[a>>2]|0)==(r|0)){n=a;r=a;_=212;break}a=pe[a+8>>2]|0;if(!a){r=1052;break}}if((_|0)==212)if(!(pe[r+12>>2]&8)){pe[n>>2]=w;f=r+4|0;pe[f>>2]=(pe[f>>2]|0)+p;f=w+8|0;f=(f&7|0)==0?0:0-f&7;l=w+(p+8)|0;l=(l&7|0)==0?0:0-l&7;t=w+(l+p)|0;h=f+m|0;d=w+h|0;c=t-(w+f)-m|0;pe[w+(f+4)>>2]=m|3;t:do{if((t|0)!=(o|0)){if((t|0)==(pe[156]|0)){z=(pe[153]|0)+c|0;pe[153]=z;pe[156]=d;pe[w+(h+4)>>2]=z|1;pe[w+(z+h)>>2]=z;break}s=p+4|0;r=pe[w+(s+l)>>2]|0;if((r&3|0)==1){u=r&-8;a=r>>>3;r:do{if(r>>>0>=256){o=pe[w+((l|24)+p)>>2]|0;i=pe[w+(p+12+l)>>2]|0;do{if((i|0)==(t|0)){n=l|16;i=w+(s+n)|0;r=pe[i>>2]|0;if(!r){i=w+(n+p)|0;r=pe[i>>2]|0;if(!r){D=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<e>>>0)Xe();else{pe[i>>2]=0;D=r;break}}else{n=pe[w+((l|8)+p)>>2]|0;if(n>>>0<e>>>0)Xe();e=n+12|0;if((pe[e>>2]|0)!=(t|0))Xe();r=i+8|0;if((pe[r>>2]|0)==(t|0)){pe[e>>2]=i;pe[r>>2]=n;D=i;break}else Xe()}}while(0);if(!o)break;e=pe[w+(p+28+l)>>2]|0;r=908+(e<<2)|0;do{if((t|0)!=(pe[r>>2]|0)){if(o>>>0<(pe[155]|0)>>>0)Xe();e=o+16|0;if((pe[e>>2]|0)==(t|0))pe[e>>2]=D;else pe[o+20>>2]=D;if(!D)break r}else{pe[r>>2]=D;if(D)break;pe[152]=pe[152]&~(1<<e);break r}}while(0);r=pe[155]|0;if(D>>>0<r>>>0)Xe();pe[D+24>>2]=o;t=l|16;e=pe[w+(t+p)>>2]|0;do{if(e)if(e>>>0<r>>>0)Xe();else{pe[D+16>>2]=e;pe[e+24>>2]=D;break}}while(0);t=pe[w+(s+t)>>2]|0;if(!t)break;if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[D+20>>2]=t;pe[t+24>>2]=D;break}}else{i=pe[w+((l|8)+p)>>2]|0;n=pe[w+(p+12+l)>>2]|0;r=644+(a<<1<<2)|0;do{if((i|0)!=(r|0)){if(i>>>0<e>>>0)Xe();if((pe[i+12>>2]|0)==(t|0))break;Xe()}}while(0);if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<a);break}do{if((n|0)==(r|0))A=n+8|0;else{if(n>>>0<e>>>0)Xe();e=n+8|0;if((pe[e>>2]|0)==(t|0)){A=e;break}Xe()}}while(0);pe[i+12>>2]=n;pe[A>>2]=i}}while(0);t=w+((u|l)+p)|0;n=u+c|0}else n=c;t=t+4|0;pe[t>>2]=pe[t>>2]&-2;pe[w+(h+4)>>2]=n|1;pe[w+(n+h)>>2]=n;t=n>>>3;if(n>>>0<256){e=t<<1;i=644+(e<<2)|0;r=pe[151]|0;t=1<<t;do{if(!(r&t)){pe[151]=r|t;j=644+(e+2<<2)|0;L=i}else{t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0>=(pe[155]|0)>>>0){j=t;L=e;break}Xe()}}while(0);pe[j>>2]=d;pe[L+12>>2]=d;pe[w+(h+8)>>2]=L;pe[w+(h+12)>>2]=i;break}t=n>>>8;do{if(!t)i=0;else{if(n>>>0>16777215){i=31;break}j=(t+1048320|0)>>>16&8;L=t<<j;D=(L+520192|0)>>>16&4;L=L<<D;i=(L+245760|0)>>>16&2;i=14-(D|j|i)+(L<<i>>>15)|0;i=n>>>(i+7|0)&1|i<<1}}while(0);t=908+(i<<2)|0;pe[w+(h+28)>>2]=i;pe[w+(h+20)>>2]=0;pe[w+(h+16)>>2]=0;e=pe[152]|0;r=1<<i;if(!(e&r)){pe[152]=e|r;pe[t>>2]=d;pe[w+(h+24)>>2]=t;pe[w+(h+12)>>2]=d;pe[w+(h+8)>>2]=d;break}t=pe[t>>2]|0;r:do{if((pe[t+4>>2]&-8|0)!=(n|0)){i=n<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(n|0)){z=r;break r}else{i=i<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=d;pe[w+(h+24)>>2]=t;pe[w+(h+12)>>2]=d;pe[w+(h+8)>>2]=d;break t}}else z=t}while(0);t=z+8|0;e=pe[t>>2]|0;L=pe[155]|0;if(e>>>0>=L>>>0&z>>>0>=L>>>0){pe[e+12>>2]=d;pe[t>>2]=d;pe[w+(h+8)>>2]=e;pe[w+(h+12)>>2]=z;pe[w+(h+24)>>2]=0;break}else Xe()}else{z=(pe[154]|0)+c|0;pe[154]=z;pe[157]=d;pe[w+(h+4)>>2]=z|1}}while(0);z=w+(f|8)|0;return z|0}else r=1052;while(1){e=pe[r>>2]|0;if(e>>>0<=o>>>0?(t=pe[r+4>>2]|0,i=e+t|0,i>>>0>o>>>0):0)break;r=pe[r+8>>2]|0}n=e+(t+-39)|0;e=e+(t+-47+((n&7|0)==0?0:0-n&7))|0;n=o+16|0;e=e>>>0<n>>>0?o:e;t=e+8|0;r=w+8|0;r=(r&7|0)==0?0:0-r&7;z=p+-40-r|0;pe[157]=w+r;pe[154]=z;pe[w+(r+4)>>2]=z|1;pe[w+(p+-36)>>2]=40;pe[158]=pe[273];r=e+4|0;pe[r>>2]=27;pe[t>>2]=pe[263];pe[t+4>>2]=pe[264];pe[t+8>>2]=pe[265];pe[t+12>>2]=pe[266];pe[263]=w;pe[264]=p;pe[266]=0;pe[265]=t;t=e+28|0;pe[t>>2]=7;if((e+32|0)>>>0<i>>>0)do{z=t;t=t+4|0;pe[t>>2]=7}while((z+8|0)>>>0<i>>>0);if((e|0)!=(o|0)){a=e-o|0;pe[r>>2]=pe[r>>2]&-2;pe[o+4>>2]=a|1;pe[e>>2]=a;t=a>>>3;if(a>>>0<256){e=t<<1;i=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{O=t;I=e}}else{pe[151]=r|t;O=644+(e+2<<2)|0;I=i}pe[O>>2]=o;pe[I+12>>2]=o;pe[o+8>>2]=I;pe[o+12>>2]=i;break}t=a>>>8;if(t)if(a>>>0>16777215)i=31;else{L=(t+1048320|0)>>>16&8;z=t<<L;j=(z+520192|0)>>>16&4;z=z<<j;i=(z+245760|0)>>>16&2;i=14-(j|L|i)+(z<<i>>>15)|0;i=a>>>(i+7|0)&1|i<<1}else i=0;r=908+(i<<2)|0;pe[o+28>>2]=i;pe[o+20>>2]=0;pe[n>>2]=0;t=pe[152]|0;e=1<<i;if(!(t&e)){pe[152]=t|e;pe[r>>2]=o;pe[o+24>>2]=r;pe[o+12>>2]=o;pe[o+8>>2]=o;break}t=pe[r>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(a|0)){i=a<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(a|0)){R=r;break t}else{i=i<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=o;pe[o+24>>2]=t;pe[o+12>>2]=o;pe[o+8>>2]=o;break e}}else R=t}while(0);t=R+8|0;e=pe[t>>2]|0;z=pe[155]|0;if(e>>>0>=z>>>0&R>>>0>=z>>>0){pe[e+12>>2]=o;pe[t>>2]=o;pe[o+8>>2]=e;pe[o+12>>2]=R;pe[o+24>>2]=0;break}else Xe()}}else{z=pe[155]|0;if((z|0)==0|w>>>0<z>>>0)pe[155]=w;pe[263]=w;pe[264]=p;pe[266]=0;pe[160]=pe[269];pe[159]=-1;t=0;do{z=t<<1;L=644+(z<<2)|0;pe[644+(z+3<<2)>>2]=L;pe[644+(z+2<<2)>>2]=L;t=t+1|0}while((t|0)!=32);z=w+8|0;z=(z&7|0)==0?0:0-z&7;L=p+-40-z|0;pe[157]=w+z;pe[154]=L;pe[w+(z+4)>>2]=L|1;pe[w+(p+-36)>>2]=40;pe[158]=pe[273]}}while(0);t=pe[154]|0;if(t>>>0>m>>>0){L=t-m|0;pe[154]=L;z=pe[157]|0;pe[157]=z+m;pe[z+(m+4)>>2]=L|1;pe[z+4>>2]=m|3;z=z+8|0;return z|0}}z=cr()|0;pe[z>>2]=12;z=0;return z|0}function Ur(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0,y=0;if(!e)return;t=e+-8|0;s=pe[155]|0;if(t>>>0<s>>>0)Xe();r=pe[e+-4>>2]|0;i=r&3;if((i|0)==1)Xe();d=r&-8;m=e+(d+-8)|0;do{if(!(r&1)){t=pe[t>>2]|0;if(!i)return;u=-8-t|0;c=e+u|0;h=t+d|0;if(c>>>0<s>>>0)Xe();if((c|0)==(pe[156]|0)){t=e+(d+-4)|0;r=pe[t>>2]|0;if((r&3|0)!=3){y=c;a=h;break}pe[153]=h;pe[t>>2]=r&-2;pe[e+(u+4)>>2]=h|1;pe[m>>2]=h;return}n=t>>>3;if(t>>>0<256){i=pe[e+(u+8)>>2]|0;r=pe[e+(u+12)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<s>>>0)Xe();if((pe[i+12>>2]|0)!=(c|0))Xe()}if((r|0)==(i|0)){pe[151]=pe[151]&~(1<<n);y=c;a=h;break}if((r|0)!=(t|0)){if(r>>>0<s>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(c|0))o=t;else Xe()}else o=r+8|0;pe[i+12>>2]=r;pe[o>>2]=i;y=c;a=h;break}o=pe[e+(u+24)>>2]|0;i=pe[e+(u+12)>>2]|0;do{if((i|0)==(c|0)){r=e+(u+20)|0;t=pe[r>>2]|0;if(!t){r=e+(u+16)|0;t=pe[r>>2]|0;if(!t){l=0;break}}while(1){i=t+20|0;n=pe[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=pe[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0<s>>>0)Xe();else{pe[r>>2]=0;l=t;break}}else{n=pe[e+(u+8)>>2]|0;if(n>>>0<s>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)!=(c|0))Xe();r=i+8|0;if((pe[r>>2]|0)==(c|0)){pe[t>>2]=i;pe[r>>2]=n;l=i;break}else Xe()}}while(0);if(o){t=pe[e+(u+28)>>2]|0;r=908+(t<<2)|0;if((c|0)==(pe[r>>2]|0)){pe[r>>2]=l;if(!l){pe[152]=pe[152]&~(1<<t);y=c;a=h;break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(c|0))pe[t>>2]=l;else pe[o+20>>2]=l;if(!l){y=c;a=h;break}}r=pe[155]|0;if(l>>>0<r>>>0)Xe();pe[l+24>>2]=o;t=pe[e+(u+16)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[l+16>>2]=t;pe[t+24>>2]=l;break}}while(0);t=pe[e+(u+20)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=t;pe[t+24>>2]=l;y=c;a=h;break}else{y=c;a=h}}else{y=c;a=h}}else{y=t;a=d}}while(0);if(y>>>0>=m>>>0)Xe();t=e+(d+-4)|0;r=pe[t>>2]|0;if(!(r&1))Xe();if(!(r&2)){if((m|0)==(pe[157]|0)){b=(pe[154]|0)+a|0;pe[154]=b;pe[157]=y;pe[y+4>>2]=b|1;if((y|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){b=(pe[153]|0)+a|0;pe[153]=b;pe[156]=y;pe[y+4>>2]=b|1;pe[y+b>>2]=b;return}a=(r&-8)+a|0;n=r>>>3;do{if(r>>>0>=256){o=pe[e+(d+16)>>2]|0;t=pe[e+(d|4)>>2]|0;do{if((t|0)==(m|0)){r=e+(d+12)|0;t=pe[r>>2]|0;if(!t){r=e+(d+8)|0;t=pe[r>>2]|0;if(!t){p=0;break}}while(1){i=t+20|0;n=pe[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=pe[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=0;p=t;break}}else{r=pe[e+d>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();i=r+12|0;if((pe[i>>2]|0)!=(m|0))Xe();n=t+8|0;if((pe[n>>2]|0)==(m|0)){pe[i>>2]=t;pe[n>>2]=r;p=t;break}else Xe()}}while(0);if(o){t=pe[e+(d+20)>>2]|0;r=908+(t<<2)|0;if((m|0)==(pe[r>>2]|0)){pe[r>>2]=p;if(!p){pe[152]=pe[152]&~(1<<t);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(m|0))pe[t>>2]=p;else pe[o+20>>2]=p;if(!p)break}r=pe[155]|0;if(p>>>0<r>>>0)Xe();pe[p+24>>2]=o;t=pe[e+(d+8)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[p+16>>2]=t;pe[t+24>>2]=p;break}}while(0);t=pe[e+(d+12)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=t;pe[t+24>>2]=p;break}}}else{i=pe[e+d>>2]|0;r=pe[e+(d|4)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<(pe[155]|0)>>>0)Xe();if((pe[i+12>>2]|0)!=(m|0))Xe()}if((r|0)==(i|0)){pe[151]=pe[151]&~(1<<n);break}if((r|0)!=(t|0)){if(r>>>0<(pe[155]|0)>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(m|0))f=t;else Xe()}else f=r+8|0;pe[i+12>>2]=r;pe[f>>2]=i}}while(0);pe[y+4>>2]=a|1;pe[y+a>>2]=a;if((y|0)==(pe[156]|0)){pe[153]=a;return}}else{pe[t>>2]=r&-2;pe[y+4>>2]=a|1;pe[y+a>>2]=a}t=a>>>3;if(a>>>0<256){r=t<<1;n=644+(r<<2)|0;i=pe[151]|0;t=1<<t;if(i&t){t=644+(r+2<<2)|0;r=pe[t>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();else{g=t;v=r}}else{pe[151]=i|t;g=644+(r+2<<2)|0;v=n}pe[g>>2]=y;pe[v+12>>2]=y;pe[y+8>>2]=v;pe[y+12>>2]=n;return}t=a>>>8;if(t)if(a>>>0>16777215)n=31;else{g=(t+1048320|0)>>>16&8;v=t<<g;m=(v+520192|0)>>>16&4;v=v<<m;n=(v+245760|0)>>>16&2;n=14-(m|g|n)+(v<<n>>>15)|0;n=a>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;pe[y+28>>2]=n;pe[y+20>>2]=0;pe[y+16>>2]=0;r=pe[152]|0;i=1<<n;e:do{if(r&i){t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(a|0)){n=a<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;i=pe[r>>2]|0;if(!i)break;if((pe[i+4>>2]&-8|0)==(a|0)){b=i;break t}else{n=n<<1;t=i}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y;break e}}else b=t}while(0);t=b+8|0;r=pe[t>>2]|0;v=pe[155]|0;if(r>>>0>=v>>>0&b>>>0>=v>>>0){pe[r+12>>2]=y;pe[t>>2]=y;pe[y+8>>2]=r;pe[y+12>>2]=b;pe[y+24>>2]=0;break}else Xe()}else{pe[152]=r|i;pe[t>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y}}while(0);y=(pe[159]|0)+-1|0;pe[159]=y;if(!y)t=1060;else return;while(1){t=pe[t>>2]|0;if(!t)break;else t=t+8|0}pe[159]=-1;return}function Xr(e,t){e=e|0;t=t|0;var r=0,i=0;if(!e){e=Nr(t)|0;return e|0}if(t>>>0>4294967231){e=cr()|0;pe[e>>2]=12;e=0;return e|0}r=Hr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=Nr(t)|0;if(!r){e=0;return e|0}i=pe[e+-4>>2]|0;i=(i&-8)-((i&3|0)==0?8:4)|0;Qr(r|0,e|0,(i>>>0<t>>>0?i:t)|0)|0;Ur(e);e=r;return e|0}function qr(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=pe[e+-4>>2]|0;t=e&3;if((t|0)==1){t=0;return t|0}t=(e&-8)-((t|0)==0?8:4)|0;return t|0}function Hr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;d=e+4|0;p=pe[d>>2]|0;u=p&-8;c=e+u|0;s=pe[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=s>>>0&e>>>0<c>>>0))Xe();i=e+(u|4)|0;n=pe[i>>2]|0;if(!(n&1))Xe();if(!r){if(t>>>0<256){e=0;return e|0}if(u>>>0>=(t+4|0)>>>0?(u-t|0)>>>0<=pe[271]<<1>>>0:0)return e|0;e=0;return e|0}if(u>>>0>=t>>>0){r=u-t|0;if(r>>>0<=15)return e|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|3;pe[i>>2]=pe[i>>2]|1;Wr(e+t|0,r);return e|0}if((c|0)==(pe[157]|0)){r=(pe[154]|0)+u|0;if(r>>>0<=t>>>0){e=0;return e|0}f=r-t|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=f|1;pe[157]=e+t;pe[154]=f;return e|0}if((c|0)==(pe[156]|0)){i=(pe[153]|0)+u|0;if(i>>>0<t>>>0){e=0;return e|0}r=i-t|0;if(r>>>0>15){pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|1;pe[e+i>>2]=r;i=e+(i+4)|0;pe[i>>2]=pe[i>>2]&-2;i=e+t|0}else{pe[d>>2]=p&1|i|2;i=e+(i+4)|0;pe[i>>2]=pe[i>>2]|1;i=0;r=0}pe[153]=r;pe[156]=i;return e|0}if(n&2){e=0;return e|0}h=(n&-8)+u|0;if(h>>>0<t>>>0){e=0;return e|0}f=h-t|0;a=n>>>3;do{if(n>>>0>=256){o=pe[e+(u+24)>>2]|0;a=pe[e+(u+12)>>2]|0;do{if((a|0)==(c|0)){i=e+(u+20)|0;r=pe[i>>2]|0;if(!r){i=e+(u+16)|0;r=pe[i>>2]|0;if(!r){l=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<s>>>0)Xe();else{pe[i>>2]=0;l=r;break}}else{n=pe[e+(u+8)>>2]|0;if(n>>>0<s>>>0)Xe();r=n+12|0;if((pe[r>>2]|0)!=(c|0))Xe();i=a+8|0;if((pe[i>>2]|0)==(c|0)){pe[r>>2]=a;pe[i>>2]=n;l=a;break}else Xe()}}while(0);if(o){r=pe[e+(u+28)>>2]|0;i=908+(r<<2)|0;if((c|0)==(pe[i>>2]|0)){pe[i>>2]=l;if(!l){pe[152]=pe[152]&~(1<<r);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();r=o+16|0;if((pe[r>>2]|0)==(c|0))pe[r>>2]=l;else pe[o+20>>2]=l;if(!l)break}i=pe[155]|0;if(l>>>0<i>>>0)Xe();pe[l+24>>2]=o;r=pe[e+(u+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)Xe();else{pe[l+16>>2]=r;pe[r+24>>2]=l;break}}while(0);r=pe[e+(u+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=r;pe[r+24>>2]=l;break}}}else{n=pe[e+(u+8)>>2]|0;i=pe[e+(u+12)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<s>>>0)Xe();if((pe[n+12>>2]|0)!=(c|0))Xe()}if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<a);break}if((i|0)!=(r|0)){if(i>>>0<s>>>0)Xe();r=i+8|0;if((pe[r>>2]|0)==(c|0))o=r;else Xe()}else o=i+8|0;pe[n+12>>2]=i;pe[o>>2]=n}}while(0);if(f>>>0<16){pe[d>>2]=h|p&1|2;t=e+(h|4)|0;pe[t>>2]=pe[t>>2]|1;return e|0}else{pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=f|3;p=e+(h|4)|0;pe[p>>2]=pe[p>>2]|1;Wr(e+t|0,f);return e|0}return 0}function Wr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,b=0;m=e+t|0;r=pe[e+4>>2]|0;do{if(!(r&1)){l=pe[e>>2]|0;if(!(r&3))return;f=e+(0-l)|0;h=l+t|0;u=pe[155]|0;if(f>>>0<u>>>0)Xe();if((f|0)==(pe[156]|0)){i=e+(t+4)|0;r=pe[i>>2]|0;if((r&3|0)!=3){b=f;o=h;break}pe[153]=h;pe[i>>2]=r&-2;pe[e+(4-l)>>2]=h|1;pe[m>>2]=h;return}a=l>>>3;if(l>>>0<256){n=pe[e+(8-l)>>2]|0;i=pe[e+(12-l)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();if((pe[n+12>>2]|0)!=(f|0))Xe()}if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<a);b=f;o=h;break}if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();r=i+8|0;if((pe[r>>2]|0)==(f|0))s=r;else Xe()}else s=i+8|0;pe[n+12>>2]=i;pe[s>>2]=n;b=f;o=h;break}s=pe[e+(24-l)>>2]|0;n=pe[e+(12-l)>>2]|0;do{if((n|0)==(f|0)){n=16-l|0;i=e+(n+4)|0;r=pe[i>>2]|0;if(!r){i=e+n|0;r=pe[i>>2]|0;if(!r){c=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<u>>>0)Xe();else{pe[i>>2]=0;c=r;break}}else{a=pe[e+(8-l)>>2]|0;if(a>>>0<u>>>0)Xe();r=a+12|0;if((pe[r>>2]|0)!=(f|0))Xe();i=n+8|0;if((pe[i>>2]|0)==(f|0)){pe[r>>2]=n;pe[i>>2]=a;c=n;break}else Xe()}}while(0);if(s){r=pe[e+(28-l)>>2]|0;i=908+(r<<2)|0;if((f|0)==(pe[i>>2]|0)){pe[i>>2]=c;if(!c){pe[152]=pe[152]&~(1<<r);b=f;o=h;break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(f|0))pe[r>>2]=c;else pe[s+20>>2]=c;if(!c){b=f;o=h;break}}n=pe[155]|0;if(c>>>0<n>>>0)Xe();pe[c+24>>2]=s;r=16-l|0;i=pe[e+r>>2]|0;do{if(i)if(i>>>0<n>>>0)Xe();else{pe[c+16>>2]=i;pe[i+24>>2]=c;break}}while(0);r=pe[e+(r+4)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=r;pe[r+24>>2]=c;b=f;o=h;break}else{b=f;o=h}}else{b=f;o=h}}else{b=e;o=t}}while(0);u=pe[155]|0;if(m>>>0<u>>>0)Xe();r=e+(t+4)|0;i=pe[r>>2]|0;if(!(i&2)){if((m|0)==(pe[157]|0)){v=(pe[154]|0)+o|0;pe[154]=v;pe[157]=b;pe[b+4>>2]=v|1;if((b|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){v=(pe[153]|0)+o|0;pe[153]=v;pe[156]=b;pe[b+4>>2]=v|1;pe[b+v>>2]=v;return}o=(i&-8)+o|0;a=i>>>3;do{if(i>>>0>=256){s=pe[e+(t+24)>>2]|0;n=pe[e+(t+12)>>2]|0;do{if((n|0)==(m|0)){i=e+(t+20)|0;r=pe[i>>2]|0;if(!r){i=e+(t+16)|0;r=pe[i>>2]|0;if(!r){p=0;break}}while(1){n=r+20|0;a=pe[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=pe[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0<u>>>0)Xe();else{pe[i>>2]=0;p=r;break}}else{a=pe[e+(t+8)>>2]|0;if(a>>>0<u>>>0)Xe();r=a+12|0;if((pe[r>>2]|0)!=(m|0))Xe();i=n+8|0;if((pe[i>>2]|0)==(m|0)){pe[r>>2]=n;pe[i>>2]=a;p=n;break}else Xe()}}while(0);if(s){r=pe[e+(t+28)>>2]|0;i=908+(r<<2)|0;if((m|0)==(pe[i>>2]|0)){pe[i>>2]=p;if(!p){pe[152]=pe[152]&~(1<<r);break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(m|0))pe[r>>2]=p;else pe[s+20>>2]=p;if(!p)break}i=pe[155]|0;if(p>>>0<i>>>0)Xe();pe[p+24>>2]=s;r=pe[e+(t+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)Xe();else{pe[p+16>>2]=r;pe[r+24>>2]=p;break}}while(0);r=pe[e+(t+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=r;pe[r+24>>2]=p;break}}}else{n=pe[e+(t+8)>>2]|0;i=pe[e+(t+12)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();if((pe[n+12>>2]|0)!=(m|0))Xe()}if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<a);break}if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();r=i+8|0;if((pe[r>>2]|0)==(m|0))d=r;else Xe()}else d=i+8|0;pe[n+12>>2]=i;pe[d>>2]=n}}while(0);pe[b+4>>2]=o|1;pe[b+o>>2]=o;if((b|0)==(pe[156]|0)){pe[153]=o;return}}else{pe[r>>2]=i&-2;pe[b+4>>2]=o|1;pe[b+o>>2]=o}r=o>>>3;if(o>>>0<256){i=r<<1;a=644+(i<<2)|0;n=pe[151]|0;r=1<<r;if(n&r){r=644+(i+2<<2)|0;i=pe[r>>2]|0;if(i>>>0<(pe[155]|0)>>>0)Xe();else{g=r;v=i}}else{pe[151]=n|r;g=644+(i+2<<2)|0;v=a}pe[g>>2]=b;pe[v+12>>2]=b;pe[b+8>>2]=v;pe[b+12>>2]=a;return}r=o>>>8;if(r)if(o>>>0>16777215)a=31;else{g=(r+1048320|0)>>>16&8;v=r<<g;m=(v+520192|0)>>>16&4;v=v<<m;a=(v+245760|0)>>>16&2;a=14-(m|g|a)+(v<<a>>>15)|0;a=o>>>(a+7|0)&1|a<<1}else a=0;r=908+(a<<2)|0;pe[b+28>>2]=a;pe[b+20>>2]=0;pe[b+16>>2]=0;i=pe[152]|0;n=1<<a;if(!(i&n)){pe[152]=i|n;pe[r>>2]=b;pe[b+24>>2]=r;pe[b+12>>2]=b;pe[b+8>>2]=b;return}r=pe[r>>2]|0;e:do{if((pe[r+4>>2]&-8|0)!=(o|0)){a=o<<((a|0)==31?0:25-(a>>>1)|0);while(1){i=r+16+(a>>>31<<2)|0;n=pe[i>>2]|0;if(!n)break;if((pe[n+4>>2]&-8|0)==(o|0)){r=n;break e}else{a=a<<1;r=n}}if(i>>>0<(pe[155]|0)>>>0)Xe();pe[i>>2]=b;pe[b+24>>2]=r;pe[b+12>>2]=b;pe[b+8>>2]=b;return}}while(0);i=r+8|0;n=pe[i>>2]|0;v=pe[155]|0;if(!(n>>>0>=v>>>0&r>>>0>=v>>>0))Xe();pe[n+12>>2]=b;pe[i>>2]=b;pe[b+8>>2]=n;pe[b+12>>2]=r;pe[b+24>>2]=0;return}function Gr(){}function Vr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;i=t-i-(r>>>0>e>>>0|0)>>>0;return(re=i,e-r>>>0|0)|0}function Yr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,o=0;i=e+r|0;if((r|0)>=20){t=t&255;a=e&3;o=t|t<<8|t<<16|t<<24;n=i&~3;if(a){a=e+4-a|0;while((e|0)<(a|0)){de[e>>0]=t;e=e+1|0}}while((e|0)<(n|0)){pe[e>>2]=o;e=e+4|0}}while((e|0)<(i|0)){de[e>>0]=t;e=e+1|0}return e-r|0}function Jr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=0;return t>>>r-32|0}function Kr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t<<r|(e&(1<<r)-1<<32-r)>>>32-r;return e<<r}re=e<<r-32;return 0}function Zr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;r=e+r>>>0;return(re=t+i+(r>>>0<e>>>0|0)>>>0,r|0)|0}function Qr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if((r|0)>=4096)return Ie(e|0,t|0,r|0)|0;i=e|0;if((e&3)==(t&3)){while(e&3){if(!r)return i|0;de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}while((r|0)>=4){pe[e>>2]=pe[t>>2];e=e+4|0;t=t+4|0;r=r-4|0}}while((r|0)>0){de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}return i|0}function $r(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=(t|0)<0?-1:0;return t>>r-32|0}function ei(e){e=e|0;var t=0;t=de[g+(e&255)>>0]|0;if((t|0)<8)return t|0;t=de[g+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=de[g+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(de[g+(e>>>24)>>0]|0)+24|0}function ti(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0;a=e&65535;n=t&65535;r=be(n,a)|0;i=e>>>16;e=(r>>>16)+(be(n,i)|0)|0;n=t>>>16;t=be(n,a)|0;return(re=(e>>>16)+(be(n,i)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|r&65535|0)|0}function ri(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0;l=t>>31|((t|0)<0?-1:0)<<1;u=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;a=i>>31|((i|0)<0?-1:0)<<1;n=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;s=Vr(l^e,u^t,l,u)|0;o=re;e=a^l;t=n^u;return Vr((si(s,o,Vr(a^r,n^i,a,n)|0,re,0)|0)^e,re^t,e,t)|0}function ii(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,o=0,s=0,u=0,l=0;n=ve;ve=ve+16|0;s=n|0;o=t>>31|((t|0)<0?-1:0)<<1;a=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;l=i>>31|((i|0)<0?-1:0)<<1;u=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;e=Vr(o^e,a^t,o,a)|0;t=re;si(e,t,Vr(l^r,u^i,l,u)|0,re,s)|0;i=Vr(pe[s>>2]^o,pe[s+4>>2]^a,o,a)|0;r=re;ve=n;return(re=r,i)|0}function ni(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0;n=e;a=r;r=ti(n,a)|0;e=re;return(re=(be(t,a)|0)+(be(i,n)|0)+e|e&0,r|0|0)|0}function ai(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return si(e,t,r,i,0)|0}function oi(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0;a=ve;ve=ve+16|0;n=a|0;si(e,t,r,i,n)|0;ve=a;return(re=pe[n+4>>2]|0,pe[n>>2]|0)|0}function si(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,o=0,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=0;c=e;u=t;l=u;o=r;f=i;s=f;if(!l){a=(n|0)!=0;if(!s){if(a){pe[n>>2]=(c>>>0)%(o>>>0);pe[n+4>>2]=0}f=0;n=(c>>>0)/(o>>>0)>>>0;return(re=f,n)|0}else{if(!a){f=0;n=0;return(re=f,n)|0}pe[n>>2]=e|0;pe[n+4>>2]=t&0;f=0;n=0;return(re=f,n)|0}}a=(s|0)==0;do{if(o){if(!a){a=(oe(s|0)|0)-(oe(l|0)|0)|0;if(a>>>0<=31){h=a+1|0;s=31-a|0;t=a-31>>31;o=h;e=c>>>(h>>>0)&t|l<<s;t=l>>>(h>>>0)&t;a=0;s=c<<s;break}if(!n){f=0;n=0;return(re=f,n)|0}pe[n>>2]=e|0;pe[n+4>>2]=u|t&0;f=0;n=0;return(re=f,n)|0}a=o-1|0;if(a&o){s=(oe(o|0)|0)+33-(oe(l|0)|0)|0;p=64-s|0;h=32-s|0;u=h>>31;d=s-32|0;t=d>>31;o=s;e=h-1>>31&l>>>(d>>>0)|(l<<h|c>>>(s>>>0))&t;t=t&l>>>(s>>>0);a=c<<p&u;s=(l<<p|c>>>(d>>>0))&u|c<<h&s-33>>31;break}if(n){pe[n>>2]=a&c;pe[n+4>>2]=0}if((o|0)==1){d=u|t&0;p=e|0|0;return(re=d,p)|0}else{p=ei(o|0)|0;d=l>>>(p>>>0)|0;p=l<<32-p|c>>>(p>>>0)|0;return(re=d,p)|0}}else{if(a){if(n){pe[n>>2]=(l>>>0)%(o>>>0);pe[n+4>>2]=0}d=0;p=(l>>>0)/(o>>>0)>>>0;return(re=d,p)|0}if(!c){if(n){pe[n>>2]=0;pe[n+4>>2]=(l>>>0)%(s>>>0)}d=0;p=(l>>>0)/(s>>>0)>>>0;return(re=d,p)|0}a=s-1|0;if(!(a&s)){if(n){pe[n>>2]=e|0;pe[n+4>>2]=a&l|t&0}d=0;p=l>>>((ei(s|0)|0)>>>0);return(re=d,p)|0}a=(oe(s|0)|0)-(oe(l|0)|0)|0;if(a>>>0<=30){t=a+1|0;s=31-a|0;o=t;e=l<<s|c>>>(t>>>0);t=l>>>(t>>>0);a=0;s=c<<s;break}if(!n){d=0;p=0;return(re=d,p)|0}pe[n>>2]=e|0;pe[n+4>>2]=u|t&0;d=0;p=0;return(re=d,p)|0}}while(0);if(!o){l=s;u=0;s=0}else{h=r|0|0;c=f|i&0;l=Zr(h|0,c|0,-1,-1)|0;r=re;u=s;s=0;do{i=u;u=a>>>31|u<<1;a=s|a<<1;i=e<<1|i>>>31|0;f=e>>>31|t<<1|0;Vr(l,r,i,f)|0;p=re;d=p>>31|((p|0)<0?-1:0)<<1;s=d&1;e=Vr(i,f,d&h,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&c)|0;t=re;o=o-1|0}while((o|0)!=0);l=u;u=0}o=0;if(n){pe[n>>2]=e;pe[n+4>>2]=t}d=(a|0)>>>31|(l|o)<<1|(o<<1|a>>>31)&0|u;p=(a<<1|0>>>31)&-2|s;return(re=d,p)|0}function ui(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return Ei[e&7](t|0,r|0,i|0)|0}function li(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;Mi[e&3](t|0,r|0,i|0,n|0,a|0)}function ci(e,t){e=e|0;t=t|0;Pi[e&7](t|0)}function hi(e,t){e=e|0;t=t|0;return Ci[e&1](t|0)|0}function fi(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;Ai[e&0](t|0,r|0,i|0)}function di(e){e=e|0;Oi[e&3]()}function pi(e,t,r,i,n,a,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;o=o|0;Ii[e&3](t|0,r|0,i|0,n|0,a|0,o|0)}function mi(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;return Ri[e&1](t|0,r|0,i|0,n|0,a|0)|0}function gi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;Di[e&3](t|0,r|0,i|0,n|0)}function vi(e,t,r){e=e|0;t=t|0;r=r|0;se(0);return 0}function bi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;se(1)}function yi(e){e=e|0;se(2)}function _i(e){e=e|0;se(3);return 0}function wi(e,t,r){e=e|0;t=t|0;r=r|0;se(4)}function xi(){se(5)}function ki(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;se(6)}function Ti(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;se(7);return 0}function Si(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;se(8)}var Ei=[vi,Yt,Lr,Cr,Pr,Ar,vi,vi];var Mi=[bi,tr,er,bi];var Pi=[yi,qt,Gt,Ht,Wt,Vt,ur,jr];var Ci=[_i,Mr];var Ai=[wi];var Oi=[xi,or,sr,xi];var Ii=[ki,ir,rr,ki];var Ri=[Ti,ut];var Di=[Si,Kt,Zt,Si];return{___cxa_can_catch:nr,_crn_get_levels:kt,_crn_get_uncompressed_size:St,_crn_decompress:Et,_i64Add:Zr,_crn_get_width:wt,___cxa_is_pointer_type:ar,_i64Subtract:Vr,_memset:Yr,_malloc:Nr,_free:Ur,_memcpy:Qr,_bitshift64Lshr:Jr,_fflush:gr,_bitshift64Shl:Kr,_crn_get_height:xt,___errno_location:cr,_crn_get_dxt_format:Tt,runPostSets:Gr,_emscripten_replace_memory:Ye,stackAlloc:Je,stackSave:Ke,stackRestore:Ze,establishStackSpace:Qe,setThrew:$e,setTempRet0:rt,getTempRet0:it,dynCall_iiii:ui,dynCall_viiiii:li,dynCall_vi:ci,dynCall_ii:hi,dynCall_viii:fi,dynCall_v:di,dynCall_viiiiii:pi,dynCall_iiiiii:mi,dynCall_viiii:gi}}(e.Ya,e.Za,buffer);e.___cxa_can_catch=Z.___cxa_can_catch,e._crn_get_levels=Z._crn_get_levels,e.runPostSets=Z.runPostSets,e._crn_get_uncompressed_size=Z._crn_get_uncompressed_size,e._crn_decompress=Z._crn_decompress;var zc=e._i64Add=Z._i64Add;e._crn_get_height=Z._crn_get_height,e.___cxa_is_pointer_type=Z.___cxa_is_pointer_type;var nb=e._i64Subtract=Z._i64Subtract,qb=e._memset=Z._memset,Ea=e._malloc=Z._malloc,Bc=e._memcpy=Z._memcpy,Xa=e._emscripten_replace_memory=Z._emscripten_replace_memory;e._crn_get_dxt_format=Z._crn_get_dxt_format;var rb=e._bitshift64Lshr=Z._bitshift64Lshr,Na=e._free=Z._free;e._fflush=Z._fflush,e._crn_get_width=Z._crn_get_width,e.___errno_location=Z.___errno_location;var sb=e._bitshift64Shl=Z._bitshift64Shl;function ia(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}e.dynCall_iiii=Z.dynCall_iiii,e.dynCall_viiiii=Z.dynCall_viiiii,e.dynCall_vi=Z.dynCall_vi,e.dynCall_ii=Z.dynCall_ii,e.dynCall_viii=Z.dynCall_viii,e.dynCall_v=Z.dynCall_v,e.dynCall_viiiiii=Z.dynCall_viiiiii,e.dynCall_iiiiii=Z.dynCall_iiiiii,e.dynCall_viiii=Z.dynCall_viiii,n.aa=Z.stackAlloc,n.ua=Z.stackSave,n.ba=Z.stackRestore,n.Cd=Z.establishStackSpace,n.rb=Z.setTempRet0,n.fb=Z.getTempRet0,ia.prototype=Error(),ia.prototype.constructor=ia;var rd=null,jb=function t(){e.calledRun||td(),e.calledRun||(jb=t)};function td(t){function r(){if(!e.calledRun&&(e.calledRun=!0,!na)){if(Ha||(Ha=!0,ab(cb)),ab(db),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e._main&&vd&&e.callMain(t),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)gb(e.postRun.shift());ab(eb)}}if(t=t||e.arguments,null===rd&&(rd=Date.now()),!(0<I)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)fb(e.preRun.shift());ab(bb),0<I||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),r()},1)):r())}}function ud(t,r){if(!r||!e.noExitRuntime)throw!e.noExitRuntime&&(na=!0,m=void 0,ab(H),e.onExit)&&e.onExit(t),da?(process.stdout.once("drain",function(){process.exit(t)}),console.log(" "),setTimeout(function(){process.exit(t)},500)):ea&&"function"==typeof quit&&quit(t),new ia(t)}e.callMain=e.zd=function(t){function r(){for(var e=0;e<3;e++)n.push(0)}assert(0==I,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),assert(0==bb.length,"cannot call main when preRun functions remain to be called"),t=t||[],Ha||(Ha=!0,ab(cb));var i=t.length+1,n=[D(hb(e.thisProgram),"i8",0)];r();for(var a=0;a<i-1;a+=1)n.push(D(hb(t[a]),"i8",0)),r();n.push(0),n=D(n,"i32",0);try{ud(e._main(i,n,0),!0)}catch(t){if(!(t instanceof ia)){if("SimulateInfiniteLoop"!=t)throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t;e.noExitRuntime=!0}}},e.run=e.run=td,e.exit=e.exit=ud;var wd=[];function x(t){t=void 0!==t?(e.print(t),e.W(t),JSON.stringify(t)):"",na=!0;var r="abort("+t+") at "+Oa()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw wd&&wd.forEach(function(e){r=e(r,t)}),r}if(e.abort=e.abort=x,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();var vd=!0;e.noInitialRun&&(vd=!1),td(),window.Module=e}).call(this,require("_process"),require("buffer").Buffer,"/lib")},{_process:123,buffer:49,crypto:58,fs:47,path:116}],2:[function(e,t,r){var i=r;i.bignum=e("bn.js"),i.define=e("./asn1/api").define,i.base=e("./asn1/base"),i.constants=e("./asn1/constants"),i.decoders=e("./asn1/decoders"),i.encoders=e("./asn1/encoders")},{"./asn1/api":3,"./asn1/base":5,"./asn1/constants":9,"./asn1/decoders":11,"./asn1/encoders":14,"bn.js":17}],3:[function(e,t,r){var i=e("../asn1"),n=e("inherits");function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return n(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"../asn1":2,inherits:103,vm:155}],4:[function(e,t,r){var i=e("inherits"),n=e("../base").Reporter,a=e("buffer").Buffer;function o(e,t){n.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(o,n),(r.DecoderBuffer=o).prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},(r.EncoderBuffer=s).prototype.join=function(t,r){return t||(t=new a(this.length)),r||(r=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(e){e.join(t,r),r+=e.length}):("number"==typeof this.value?t[r]=this.value:"string"==typeof this.value?t.write(this.value,r):a.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}},{"../base":5,buffer:49,inherits:103}],5:[function(e,t,r){var i=r;i.Reporter=e("./reporter").Reporter,i.DecoderBuffer=e("./buffer").DecoderBuffer,i.EncoderBuffer=e("./buffer").EncoderBuffer,i.Node=e("./node")},{"./buffer":4,"./node":6,"./reporter":7}],6:[function(e,t,r){var c=e("../base").Reporter,i=e("../base").EncoderBuffer,d=e("../base").DecoderBuffer,n=e("minimalistic-assert"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],o=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function s(e,t){var r={};(this._baseState=r).enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=s;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];s.prototype.clone=function(){var t=this._baseState,r={};u.forEach(function(e){r[e]=t[e]});var e=new this.constructor(r.parent);return e._baseState=r,e},s.prototype._wrap=function(){var r=this._baseState;o.forEach(function(t){this[t]=function(){var e=new this.constructor(this);return r.children.push(e),e[t].apply(e,arguments)}},this)},s.prototype._init=function(e){var t=this._baseState;n(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),n.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(n(null===t.children),(t.children=r).forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(n(null===t.args),t.args=e,t.reverseArgs=e.map(function(r){if("object"!=typeof r||r.constructor!==Object)return r;var i={};return Object.keys(r).forEach(function(e){e==(0|e)&&(e|=0);var t=r[e];i[t]=e}),i}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){s.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),a.forEach(function(r){s.prototype[r]=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return n(null===e.tag),e.tag=r,this._useArgs(t),this}}),s.prototype.use=function(e){n(e);var t=this._baseState;return n(null===t.use),t.use=e,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(e){var t=this._baseState;return n(null===t.default),t.default=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return n(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return n(null===t.explicit&&null===t.implicit),t.implicit=e,this},s.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},s.prototype.key=function(e){var t=this._baseState;return n(null===t.key),t.key=e,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(t){var e=this._baseState;return n(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},s.prototype.contains=function(e){var t=this._baseState;return n(null===t.use),t.contains=e,this},s.prototype._decode=function(t,r){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,r));var i,n=e.default,a=!0,o=null;if(null!==e.key&&(o=t.enterKey(e.key)),e.optional){var s=null;if(null!==e.explicit?s=e.explicit:null!==e.implicit?s=e.implicit:null!==e.tag&&(s=e.tag),null!==s||e.any){if(a=this._peekTag(t,s,e.any),t.isError(a))return a}else{var u=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),a=!0}catch(e){a=!1}t.restore(u)}}if(e.obj&&a&&(i=t.enterObject()),a){if(null!==e.explicit){var l=this._decodeTag(t,e.explicit);if(t.isError(l))return l;t=l}var c=t.offset;if(null===e.use&&null===e.choice){if(e.any)u=t.save();var h=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(h))return h;e.any?n=t.raw(u):t=h}if(r&&r.track&&null!==e.tag&&r.track(t.path(),c,t.length,"tagged"),r&&r.track&&null!==e.tag&&r.track(t.path(),t.offset,t.length,"content"),n=e.any?n:null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),t.isError(n))return n;if(e.any||null!==e.choice||null===e.children||e.children.forEach(function(e){e._decode(t,r)}),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){var f=new d(n);n=this._getUse(e.contains,t._reporterState.obj)._decode(f,r)}}return e.obj&&a&&(n=t.leaveObject(i)),null===e.key||null===n&&!0!==a?null!==o&&t.exitKey(o):t.leaveKey(o,e.key,n),n},s.prototype._decodeGeneric=function(e,t,r){var i=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,i.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&i.args?this._decodeObjid(t,i.args[0],i.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,i.args&&i.args[0],r):null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),n(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},s.prototype._decodeChoice=function(n,a){var o=this._baseState,s=null,u=!1;return Object.keys(o.choice).some(function(e){var t=n.save(),r=o.choice[e];try{var i=r._decode(n,a);if(n.isError(i))return!1;s={type:e,value:i},u=!0}catch(e){return n.restore(t),!1}return!0},this),u?s:n.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},s.prototype._encode=function(e,t,r){var i=this._baseState;if(null===i.default||i.default!==e){var n=this._encodeValue(e,t,r);if(void 0!==n&&!this._skipDefault(n,t,r))return n}},s.prototype._encodeValue=function(i,n,e){var t=this._baseState;if(null===t.parent)return t.children[0]._encode(i,n||new c);var r=null;if(this.reporter=n,t.optional&&void 0===i){if(null===t.default)return;i=t.default}var a=null,o=!1;if(t.any)r=this._createEncoderBuffer(i);else if(t.choice)r=this._encodeChoice(i,n);else if(t.contains)a=this._getUse(t.contains,e)._encode(i,n),o=!0;else if(t.children)a=t.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,n,i);if(null===e._baseState.key)return n.error("Child should have a key");var t=n.enterKey(e._baseState.key);if("object"!=typeof i)return n.error("Child expected, but input is not object");var r=e._encode(i[e._baseState.key],n,i);return n.leaveKey(t),r},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===t.tag||"setof"===t.tag){if(!t.args||1!==t.args.length)return n.error("Too many args for : "+t.tag);if(!Array.isArray(i))return n.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(i.map(function(e){var t=this._baseState;return this._getUse(t.args[0],i)._encode(e,n)},s))}else null!==t.use?r=this._getUse(t.use,e)._encode(i,n):(a=this._encodePrimitive(t.tag,i),o=!0);if(!t.any&&null===t.choice){var u=null!==t.implicit?t.implicit:t.tag,l=null===t.implicit?"universal":"context";null===u?null===t.use&&n.error("Tag could be omitted only for .use()"):null===t.use&&(r=this._encodeComposite(u,o,l,a))}return null!==t.explicit&&(r=this._encodeComposite(t.explicit,!1,"context",r)),r},s.prototype._encodeChoice=function(e,t){var r=this._baseState,i=r.choice[e.type];return i||n(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},s.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},s.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},{"../base":5,"minimalistic-assert":109}],7:[function(e,t,r){var i=e("inherits");function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}(r.Reporter=n).prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,r){var i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},n.prototype.error=function(e){var t,r=this._reporterState,i=e instanceof a;if(t=i?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return i||r.errors.push(t),t},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:103}],8:[function(e,t,r){var i=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=i._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=i._reverse(r.tag)},{"../constants":9}],9:[function(e,t,r){var i=r;i._reverse=function(r){var i={};return Object.keys(r).forEach(function(e){(0|e)==e&&(e|=0);var t=r[e];i[t]=e}),i},i.der=e("./der")},{"./der":8}],10:[function(e,t,r){var i=e("inherits"),n=e("../../asn1"),a=n.base,o=n.bignum,s=n.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=s.tagClass[r>>6],n=0==(32&r);if(31==(31&r)){var a=r;for(r=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(4<n)return e.error("length octect is too long");for(var a=i=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}(t.exports=u).prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},i(l,a.Node),l.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var i=e.save(),n=c(e,'Failed to peek tag: "'+t+'"');return e.isError(n)?n:(e.restore(i),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||r)},l.prototype._decodeTag=function(e,t,r){var i=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(i))return i;var n=h(e,i.primitive,'Failed to get length of "'+t+'"');if(e.isError(n))return n;if(!r&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(i.primitive||null!==n)return e.skip(n,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(n=e.offset-a.offset,e.restore(a),e.skip(n,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var r=c(e,t);if(e.isError(r))return r;var i,n=h(e,r.primitive,t);if(e.isError(n))return n;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},l.prototype._decodeList=function(e,t,r,i){for(var n=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=r.decode(e,"der",i);if(e.isError(o)&&a)break;n.push(o)}return n},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var i=e.raw();if(i.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var n="",a=0;a<i.length/2;a++)n+=String.fromCharCode(i.readUInt16BE(2*a));return n}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"!==t)return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported");var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")},l.prototype._decodeObjid=function(e,t,r){for(var i,n=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(n.push(a),a=0)}128&o&&n.push(a);var s=n[0]/40|0,u=n[0]%40;if(i=r?n:[s,u].concat(n.slice(1)),t){var l=t[i.join(" ")];void 0===l&&(l=t[i.join(".")]),void 0!==l&&(i=l)}return i},l.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var i=0|r.slice(0,4),n=0|r.slice(4,6),a=0|r.slice(6,8),o=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");i=0|r.slice(0,2),n=0|r.slice(2,4),a=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);i=i<70?2e3+i:1900+i}return Date.UTC(i,n-1,a,o,s,u,0)},l.prototype._decodeNull=function(e){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var r=e.raw(),i=new o(r);return t&&(i=t[i.toString(10)]||i),i},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":2,inherits:103}],11:[function(e,t,r){var i=r;i.der=e("./der"),i.pem=e("./pem")},{"./der":10,"./pem":12}],12:[function(e,t,r){var i=e("inherits"),h=e("buffer").Buffer,f=e("./der");function n(e){f.call(this,e),this.enc="pem"}i(n,f),(t.exports=n).prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,o=-1,s=0;s<r.length;s++){var u=r[s].match(n);if(null!==u&&u[2]===i){if(-1!==a){if("END"!==u[1])break;o=s;break}if("BEGIN"!==u[1])break;a=s}}if(-1===a||-1===o)throw new Error("PEM section not found for: "+i);var l=r.slice(a+1,o).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var c=new h(l,"base64");return f.prototype.decode.call(this,c,t)}},{"./der":10,buffer:49,inherits:103}],13:[function(e,t,r){var i=e("inherits"),l=e("buffer").Buffer,n=e("../../asn1"),a=n.base,c=n.constants.der;function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){a.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}(t.exports=o).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(s,a.Node),s.prototype._encodeComposite=function(e,t,r,i){var n,a=function(e,t,r,i){var n;"seqof"===e?e="seq":"setof"===e&&(e="set");if(c.tagByName.hasOwnProperty(e))n=c.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);n=e}if(31<=n)return i.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=c.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(i.length<128)return(n=new l(2))[0]=a,n[1]=i.length,this._createEncoderBuffer([n,i]);for(var o=1,s=i.length;256<=s;s>>=8)o++;(n=new l(2+o))[0]=a,n[1]=128|o;s=1+o;for(var u=i.length;0<u;s--,u>>=8)n[s]=255&u;return this._createEncoderBuffer([n,i])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");for(var r=new l(2*e.length),i=0;i<e.length;i++)r.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(r)},s.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var n=0;for(i=0;i<e.length;i++){var a=e[i];for(n++;128<=a;a>>=7)n++}var o=new l(n),s=o.length-1;for(i=e.length-1;0<=i;i--){a=e[i];for(o[s--]=127&a;0<(a>>=7);)o[s--]=128|127&a}return this._createEncoderBuffer(o)},s.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[u(i.getFullYear()),u(i.getUTCMonth()+1),u(i.getUTCDate()),u(i.getUTCHours()),u(i.getUTCMinutes()),u(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(i.getFullYear()%100),u(i.getUTCMonth()+1),u(i.getUTCDate()),u(i.getUTCHours()),u(i.getUTCMinutes()),u(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!l.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new l(r)}if(l.isBuffer(e)){var i=e.length;0===e.length&&i++;var n=new l(i);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);i=1;for(var a=e;256<=a;a>>=8)i++;for(a=(n=new Array(i)).length-1;0<=a;a--)n[a]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new l(n))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),a.length!==n.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==n.defaultBuffer[i])return!1;return!0}},{"../../asn1":2,buffer:49,inherits:103}],14:[function(e,t,r){var i=r;i.der=e("./der"),i.pem=e("./pem")},{"./der":13,"./pem":15}],15:[function(e,t,r){var i=e("inherits"),a=e("./der");function n(e){a.call(this,e),this.enc="pem"}i(n,a),(t.exports=n).prototype.encode=function(e,t){for(var r=a.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"],n=0;n<r.length;n+=64)i.push(r.slice(n,n+64));return i.push("-----END "+t.label+"-----"),i.join("\n")}},{"./der":13,inherits:103}],16:[function(e,t,r){"use strict";r.byteLength=function(e){return 3*e.length/4-h(e)},r.toByteArray=function(e){var t,r,i,n,a,o=e.length;n=h(e),a=new c(3*o/4-n),r=0<n?o-4:o;var s=0;for(t=0;t<r;t+=4)i=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],a[s++]=i>>16&255,a[s++]=i>>8&255,a[s++]=255&i;2===n?(i=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,a[s++]=255&i):1===n&&(i=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,a[s++]=i>>8&255,a[s++]=255&i);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n="",a=[],o=0,s=r-i;o<s;o+=16383)a.push(f(e,o,s<o+16383?s:o+16383));1==i?(t=e[r-1],n+=u[t>>2],n+=u[t<<4&63],n+="=="):2==i&&(t=(e[r-2]<<8)+e[r-1],n+=u[t>>10],n+=u[t>>4&63],n+=u[t<<2&63],n+="=");return a.push(n),a.join("")};for(var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,a=i.length;n<a;++n)u[n]=i[n],l[i.charCodeAt(n)]=n;function h(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function f(e,t,r){for(var i,n,a=[],o=t;o<r;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(u[(n=i)>>18&63]+u[n>>12&63]+u[n>>6&63]+u[63&n]);return a.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],17:[function(k,e,t){!function(e,t){"use strict";function g(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function v(e,t,r){if(v.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var i;"object"==typeof e?e.exports=v:t.BN=v,(v.BN=v).wordSize=26;try{i=k("buffer").Buffer}catch(e){}function o(e,t,r){for(var i=0,n=Math.min(e.length,r),a=t;a<n;a++){var o=e.charCodeAt(a)-48;i<<=4,i|=49<=o&&o<=54?o-49+10:17<=o&&o<=22?o-17+10:15&o}return i}function h(e,t,r,i){for(var n=0,a=Math.min(e.length,r),o=t;o<a;o++){var s=e.charCodeAt(o)-48;n*=i,n+=49<=s?s-49+10:17<=s?s-17+10:s}return n}v.isBN=function(e){return e instanceof v||null!==e&&"object"==typeof e&&e.constructor.wordSize===v.wordSize&&Array.isArray(e.words)},v.max=function(e,t){return 0<e.cmp(t)?e:t},v.min=function(e,t){return e.cmp(t)<0?e:t},v.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),g(t===(0|t)&&2<=t&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},v.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},v.prototype._initArray=function(e,t,r){if(g("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,a,o=0;if("be"===r)for(i=e.length-1,n=0;0<=i;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[n]|=a<<o&67108863,this.words[n+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,n++);else if("le"===r)for(n=i=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[n]|=a<<o&67108863,this.words[n+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,n++);return this.strip()},v.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,n,a=0;for(r=e.length-6,i=0;t<=r;r-=6)n=o(e,r,r+6),this.words[i]|=n<<a&67108863,this.words[i+1]|=n>>>26-a&4194303,26<=(a+=24)&&(a-=26,i++);r+6!==t&&(n=o(e,t,r+6),this.words[i]|=n<<a&67108863,this.words[i+1]|=n>>>26-a&4194303),this.strip()},v.prototype._parseBase=function(e,t,r){this.words=[0];for(var i=0,n=this.length=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,s=Math.min(a,a-o)+r,u=0,l=r;l<s;l+=i)u=h(e,l,l+i,t),this.imuln(n),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!=o){var c=1;for(u=h(e,l,e.length,t),l=0;l<o;l++)c*=t;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},v.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},v.prototype.clone=function(){var e=new v(null);return this.copy(e),e},v.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},v.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},v.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},v.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function n(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;i=(r.length=i)-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var l=1;l<i;l++){for(var c=u>>>26,h=67108863&u,f=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=f;d++){var p=l-d|0;c+=(o=(n=0|e.words[p])*(a=0|t.words[d])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}v.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,n=0,a=0;a<this.length;a++){var o=this.words[a],s=(16777215&(o<<i|n)).toString(16);r=0!==(n=o>>>24-i&16777215)||a!==this.length-1?f[6-s.length]+s+r:s+r,26<=(i+=2)&&(i-=26,a--)}for(0!==n&&(r=n.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&2<=e&&e<=36){var u=d[e],l=p[e];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var h=c.modn(l).toString(e);r=(c=c.idivn(l)).isZero()?h+r:f[u-h.length]+h+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}g(!1,"Base should be between 2 and 36")},v.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(e,t){return g(void 0!==i),this.toArrayLike(i,e,t)},v.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},v.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),n=r||Math.max(1,i);g(i<=n,"byte array longer than desired length"),g(0<n,"Requested array length <= 0"),this.strip();var a,o,s="le"===t,u=new e(n),l=this.clone();if(s){for(o=0;!l.isZero();o++)a=l.andln(255),l.iushrn(8),u[o]=a;for(;o<n;o++)u[o]=0}else{for(o=0;o<n-i;o++)u[o]=0;for(o=0;!l.isZero();o++)a=l.andln(255),l.iushrn(8),u[n-o-1]=a}return u},v.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,r=0;return 4096<=t&&(r+=13,t>>>=13),64<=t&&(r+=7,t>>>=7),8<=t&&(r+=4,t>>>=4),2<=t&&(r+=2,t>>>=2),r+t},v.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},v.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},v.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},v.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},v.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},v.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},v.prototype.isNeg=function(){return 0!==this.negative},v.prototype.neg=function(){return this.clone().ineg()},v.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},v.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},v.prototype.ior=function(e){return g(0==(this.negative|e.negative)),this.iuor(e)},v.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},v.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},v.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},v.prototype.iand=function(e){return g(0==(this.negative|e.negative)),this.iuand(e)},v.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},v.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},v.prototype.iuxor=function(e){var t,r;r=this.length>e.length?(t=this,e):(t=e,this);for(var i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},v.prototype.ixor=function(e){return g(0==(this.negative|e.negative)),this.iuxor(e)},v.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},v.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},v.prototype.inotn=function(e){g("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0<r&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return 0<r&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},v.prototype.notn=function(e){return this.clone().inotn(e)},v.prototype.setn=function(e,t){g("number"==typeof e&&0<=e);var r=e/26|0,i=e%26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},v.prototype.iadd=function(e){var t,r,i;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();i=this.length>e.length?(r=this,e):(r=e,this);for(var n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=67108863&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},v.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},v.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;i=0<n?(r=this,e):(r=e,this);for(var a=0,o=0;o<i.length;o++)a=(t=(0|r.words[o])-(0|i.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},v.prototype.sub=function(e){return this.clone().isub(e)};var a=function(e,t,r){var i,n,a,o=e.words,s=t.words,u=r.words,l=0,c=0|o[0],h=8191&c,f=c>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],v=8191&g,b=g>>>13,y=0|o[3],_=8191&y,w=y>>>13,x=0|o[4],k=8191&x,T=x>>>13,S=0|o[5],E=8191&S,M=S>>>13,P=0|o[6],C=8191&P,A=P>>>13,O=0|o[7],I=8191&O,R=O>>>13,D=0|o[8],j=8191&D,L=D>>>13,z=0|o[9],F=8191&z,B=z>>>13,N=0|s[0],U=8191&N,X=N>>>13,q=0|s[1],H=8191&q,W=q>>>13,G=0|s[2],V=8191&G,Y=G>>>13,J=0|s[3],K=8191&J,Z=J>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],ae=8191&ne,oe=ne>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],he=8191&ce,fe=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(i=Math.imul(h,U))|0)+((8191&(n=(n=Math.imul(h,X))+Math.imul(f,U)|0))<<13)|0;l=((a=Math.imul(f,X))+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(p,U),n=(n=Math.imul(p,X))+Math.imul(m,U)|0,a=Math.imul(m,X);var ve=(l+(i=i+Math.imul(h,H)|0)|0)+((8191&(n=(n=n+Math.imul(h,W)|0)+Math.imul(f,H)|0))<<13)|0;l=((a=a+Math.imul(f,W)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(v,U),n=(n=Math.imul(v,X))+Math.imul(b,U)|0,a=Math.imul(b,X),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,W)|0;var be=(l+(i=i+Math.imul(h,V)|0)|0)+((8191&(n=(n=n+Math.imul(h,Y)|0)+Math.imul(f,V)|0))<<13)|0;l=((a=a+Math.imul(f,Y)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,i=Math.imul(_,U),n=(n=Math.imul(_,X))+Math.imul(w,U)|0,a=Math.imul(w,X),i=i+Math.imul(v,H)|0,n=(n=n+Math.imul(v,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0,i=i+Math.imul(p,V)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,Y)|0;var ye=(l+(i=i+Math.imul(h,K)|0)|0)+((8191&(n=(n=n+Math.imul(h,Z)|0)+Math.imul(f,K)|0))<<13)|0;l=((a=a+Math.imul(f,Z)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(k,U),n=(n=Math.imul(k,X))+Math.imul(T,U)|0,a=Math.imul(T,X),i=i+Math.imul(_,H)|0,n=(n=n+Math.imul(_,W)|0)+Math.imul(w,H)|0,a=a+Math.imul(w,W)|0,i=i+Math.imul(v,V)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(b,V)|0,a=a+Math.imul(b,Y)|0,i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,Z)|0;var _e=(l+(i=i+Math.imul(h,$)|0)|0)+((8191&(n=(n=n+Math.imul(h,ee)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,ee)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(E,U),n=(n=Math.imul(E,X))+Math.imul(M,U)|0,a=Math.imul(M,X),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(_,V)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(w,V)|0,a=a+Math.imul(w,Y)|0,i=i+Math.imul(v,K)|0,n=(n=n+Math.imul(v,Z)|0)+Math.imul(b,K)|0,a=a+Math.imul(b,Z)|0,i=i+Math.imul(p,$)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0;var we=(l+(i=i+Math.imul(h,re)|0)|0)+((8191&(n=(n=n+Math.imul(h,ie)|0)+Math.imul(f,re)|0))<<13)|0;l=((a=a+Math.imul(f,ie)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(C,U),n=(n=Math.imul(C,X))+Math.imul(A,U)|0,a=Math.imul(A,X),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,W)|0,i=i+Math.imul(k,V)|0,n=(n=n+Math.imul(k,Y)|0)+Math.imul(T,V)|0,a=a+Math.imul(T,Y)|0,i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(w,K)|0,a=a+Math.imul(w,Z)|0,i=i+Math.imul(v,$)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(b,$)|0,a=a+Math.imul(b,ee)|0,i=i+Math.imul(p,re)|0,n=(n=n+Math.imul(p,ie)|0)+Math.imul(m,re)|0,a=a+Math.imul(m,ie)|0;var xe=(l+(i=i+Math.imul(h,ae)|0)|0)+((8191&(n=(n=n+Math.imul(h,oe)|0)+Math.imul(f,ae)|0))<<13)|0;l=((a=a+Math.imul(f,oe)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(I,U),n=(n=Math.imul(I,X))+Math.imul(R,U)|0,a=Math.imul(R,X),i=i+Math.imul(C,H)|0,n=(n=n+Math.imul(C,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(E,V)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(M,V)|0,a=a+Math.imul(M,Y)|0,i=i+Math.imul(k,K)|0,n=(n=n+Math.imul(k,Z)|0)+Math.imul(T,K)|0,a=a+Math.imul(T,Z)|0,i=i+Math.imul(_,$)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,i=i+Math.imul(v,re)|0,n=(n=n+Math.imul(v,ie)|0)+Math.imul(b,re)|0,a=a+Math.imul(b,ie)|0,i=i+Math.imul(p,ae)|0,n=(n=n+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var ke=(l+(i=i+Math.imul(h,ue)|0)|0)+((8191&(n=(n=n+Math.imul(h,le)|0)+Math.imul(f,ue)|0))<<13)|0;l=((a=a+Math.imul(f,le)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(j,U),n=(n=Math.imul(j,X))+Math.imul(L,U)|0,a=Math.imul(L,X),i=i+Math.imul(I,H)|0,n=(n=n+Math.imul(I,W)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,W)|0,i=i+Math.imul(C,V)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(A,V)|0,a=a+Math.imul(A,Y)|0,i=i+Math.imul(E,K)|0,n=(n=n+Math.imul(E,Z)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,Z)|0,i=i+Math.imul(k,$)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(_,re)|0,n=(n=n+Math.imul(_,ie)|0)+Math.imul(w,re)|0,a=a+Math.imul(w,ie)|0,i=i+Math.imul(v,ae)|0,n=(n=n+Math.imul(v,oe)|0)+Math.imul(b,ae)|0,a=a+Math.imul(b,oe)|0,i=i+Math.imul(p,ue)|0,n=(n=n+Math.imul(p,le)|0)+Math.imul(m,ue)|0,a=a+Math.imul(m,le)|0;var Te=(l+(i=i+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,fe)|0)+Math.imul(f,he)|0))<<13)|0;l=((a=a+Math.imul(f,fe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(F,U),n=(n=Math.imul(F,X))+Math.imul(B,U)|0,a=Math.imul(B,X),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,W)|0,i=i+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(R,V)|0,a=a+Math.imul(R,Y)|0,i=i+Math.imul(C,K)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(A,K)|0,a=a+Math.imul(A,Z)|0,i=i+Math.imul(E,$)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,ee)|0,i=i+Math.imul(k,re)|0,n=(n=n+Math.imul(k,ie)|0)+Math.imul(T,re)|0,a=a+Math.imul(T,ie)|0,i=i+Math.imul(_,ae)|0,n=(n=n+Math.imul(_,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,i=i+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,le)|0)+Math.imul(b,ue)|0,a=a+Math.imul(b,le)|0,i=i+Math.imul(p,he)|0,n=(n=n+Math.imul(p,fe)|0)+Math.imul(m,he)|0,a=a+Math.imul(m,fe)|0;var Se=(l+(i=i+Math.imul(h,pe)|0)|0)+((8191&(n=(n=n+Math.imul(h,me)|0)+Math.imul(f,pe)|0))<<13)|0;l=((a=a+Math.imul(f,me)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(F,H),n=(n=Math.imul(F,W))+Math.imul(B,H)|0,a=Math.imul(B,W),i=i+Math.imul(j,V)|0,n=(n=n+Math.imul(j,Y)|0)+Math.imul(L,V)|0,a=a+Math.imul(L,Y)|0,i=i+Math.imul(I,K)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(R,K)|0,a=a+Math.imul(R,Z)|0,i=i+Math.imul(C,$)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(E,re)|0,n=(n=n+Math.imul(E,ie)|0)+Math.imul(M,re)|0,a=a+Math.imul(M,ie)|0,i=i+Math.imul(k,ae)|0,n=(n=n+Math.imul(k,oe)|0)+Math.imul(T,ae)|0,a=a+Math.imul(T,oe)|0,i=i+Math.imul(_,ue)|0,n=(n=n+Math.imul(_,le)|0)+Math.imul(w,ue)|0,a=a+Math.imul(w,le)|0,i=i+Math.imul(v,he)|0,n=(n=n+Math.imul(v,fe)|0)+Math.imul(b,he)|0,a=a+Math.imul(b,fe)|0;var Ee=(l+(i=i+Math.imul(p,pe)|0)|0)+((8191&(n=(n=n+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((a=a+Math.imul(m,me)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(F,V),n=(n=Math.imul(F,Y))+Math.imul(B,V)|0,a=Math.imul(B,Y),i=i+Math.imul(j,K)|0,n=(n=n+Math.imul(j,Z)|0)+Math.imul(L,K)|0,a=a+Math.imul(L,Z)|0,i=i+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,i=i+Math.imul(C,re)|0,n=(n=n+Math.imul(C,ie)|0)+Math.imul(A,re)|0,a=a+Math.imul(A,ie)|0,i=i+Math.imul(E,ae)|0,n=(n=n+Math.imul(E,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,i=i+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,le)|0)+Math.imul(T,ue)|0,a=a+Math.imul(T,le)|0,i=i+Math.imul(_,he)|0,n=(n=n+Math.imul(_,fe)|0)+Math.imul(w,he)|0,a=a+Math.imul(w,fe)|0;var Me=(l+(i=i+Math.imul(v,pe)|0)|0)+((8191&(n=(n=n+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((a=a+Math.imul(b,me)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(F,K),n=(n=Math.imul(F,Z))+Math.imul(B,K)|0,a=Math.imul(B,Z),i=i+Math.imul(j,$)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,ee)|0,i=i+Math.imul(I,re)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(R,re)|0,a=a+Math.imul(R,ie)|0,i=i+Math.imul(C,ae)|0,n=(n=n+Math.imul(C,oe)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,oe)|0,i=i+Math.imul(E,ue)|0,n=(n=n+Math.imul(E,le)|0)+Math.imul(M,ue)|0,a=a+Math.imul(M,le)|0,i=i+Math.imul(k,he)|0,n=(n=n+Math.imul(k,fe)|0)+Math.imul(T,he)|0,a=a+Math.imul(T,fe)|0;var Pe=(l+(i=i+Math.imul(_,pe)|0)|0)+((8191&(n=(n=n+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,me)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(F,$),n=(n=Math.imul(F,ee))+Math.imul(B,$)|0,a=Math.imul(B,ee),i=i+Math.imul(j,re)|0,n=(n=n+Math.imul(j,ie)|0)+Math.imul(L,re)|0,a=a+Math.imul(L,ie)|0,i=i+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,i=i+Math.imul(C,ue)|0,n=(n=n+Math.imul(C,le)|0)+Math.imul(A,ue)|0,a=a+Math.imul(A,le)|0,i=i+Math.imul(E,he)|0,n=(n=n+Math.imul(E,fe)|0)+Math.imul(M,he)|0,a=a+Math.imul(M,fe)|0;var Ce=(l+(i=i+Math.imul(k,pe)|0)|0)+((8191&(n=(n=n+Math.imul(k,me)|0)+Math.imul(T,pe)|0))<<13)|0;l=((a=a+Math.imul(T,me)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(F,re),n=(n=Math.imul(F,ie))+Math.imul(B,re)|0,a=Math.imul(B,ie),i=i+Math.imul(j,ae)|0,n=(n=n+Math.imul(j,oe)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,oe)|0,i=i+Math.imul(I,ue)|0,n=(n=n+Math.imul(I,le)|0)+Math.imul(R,ue)|0,a=a+Math.imul(R,le)|0,i=i+Math.imul(C,he)|0,n=(n=n+Math.imul(C,fe)|0)+Math.imul(A,he)|0,a=a+Math.imul(A,fe)|0;var Ae=(l+(i=i+Math.imul(E,pe)|0)|0)+((8191&(n=(n=n+Math.imul(E,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((a=a+Math.imul(M,me)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(F,ae),n=(n=Math.imul(F,oe))+Math.imul(B,ae)|0,a=Math.imul(B,oe),i=i+Math.imul(j,ue)|0,n=(n=n+Math.imul(j,le)|0)+Math.imul(L,ue)|0,a=a+Math.imul(L,le)|0,i=i+Math.imul(I,he)|0,n=(n=n+Math.imul(I,fe)|0)+Math.imul(R,he)|0,a=a+Math.imul(R,fe)|0;var Oe=(l+(i=i+Math.imul(C,pe)|0)|0)+((8191&(n=(n=n+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((a=a+Math.imul(A,me)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,i=Math.imul(F,ue),n=(n=Math.imul(F,le))+Math.imul(B,ue)|0,a=Math.imul(B,le),i=i+Math.imul(j,he)|0,n=(n=n+Math.imul(j,fe)|0)+Math.imul(L,he)|0,a=a+Math.imul(L,fe)|0;var Ie=(l+(i=i+Math.imul(I,pe)|0)|0)+((8191&(n=(n=n+Math.imul(I,me)|0)+Math.imul(R,pe)|0))<<13)|0;l=((a=a+Math.imul(R,me)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(F,he),n=(n=Math.imul(F,fe))+Math.imul(B,he)|0,a=Math.imul(B,fe);var Re=(l+(i=i+Math.imul(j,pe)|0)|0)+((8191&(n=(n=n+Math.imul(j,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((a=a+Math.imul(L,me)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863;var De=(l+(i=Math.imul(F,pe))|0)+((8191&(n=(n=Math.imul(F,me))+Math.imul(B,pe)|0))<<13)|0;return l=((a=Math.imul(B,me))+(n>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ge,u[1]=ve,u[2]=be,u[3]=ye,u[4]=_e,u[5]=we,u[6]=xe,u[7]=ke,u[8]=Te,u[9]=Se,u[10]=Ee,u[11]=Me,u[12]=Pe,u[13]=Ce,u[14]=Ae,u[15]=Oe,u[16]=Ie,u[17]=Re,u[18]=De,0!==l&&(u[19]=l,r.length++),r};function s(e,t,r){return(new u).mulp(e,t,r)}function u(e,t){this.x=e,this.y=t}Math.imul||(a=n),v.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?a(this,e,t):r<63?n(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){var o=n;n=0;for(var s=67108863&i,u=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=u;l++){var c=a-l,h=(0|e.words[c])*(0|t.words[l]),f=67108863&h;s=67108863&(f=f+s|0),n+=(o=(o=o+(h/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):s(this,e,t)},u.prototype.makeRBT=function(e){for(var t=new Array(e),r=v.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},u.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},u.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},u.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<n;c+=s)for(var h=u,f=l,d=0;d<o;d++){var p=r[c+d],m=i[c+d],g=r[c+d+o],v=i[c+d+o],b=h*g-f*v;v=h*v+f*g,g=b,r[c+d]=p+g,i[c+d]=m+v,r[c+d+o]=p-g,i[c+d+o]=m-v,d!==s&&(b=u*h-l*f,f=u*f+l*h,h=b)}},u.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},u.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},u.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},u.prototype.convert13b=function(e,t,r,i){for(var n=0,a=0;a<t;a++)n+=0|e[a],r[2*a]=8191&n,n>>>=13,r[2*a+1]=8191&n,n>>>=13;for(a=2*t;a<i;++a)r[a]=0;g(0===n),g(0==(-8192&n))},u.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},u.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),o=new Array(i),s=new Array(i),u=new Array(i),l=new Array(i),c=new Array(i),h=new Array(i),f=r.words;f.length=i,this.convert13b(e.words,e.length,o,i),this.convert13b(t.words,t.length,l,i),this.transform(o,a,s,u,i,n),this.transform(l,a,c,h,i,n);for(var d=0;d<i;d++){var p=s[d]*c[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*c[d],s[d]=p}return this.conjugate(s,u,i),this.transform(s,u,f,a,i,n),this.conjugate(f,a,i),this.normalize13b(f,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},v.prototype.mul=function(e){var t=new v(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},v.prototype.mulf=function(e){var t=new v(null);return t.words=new Array(this.length+e.length),s(this,e,t)},v.prototype.imul=function(e){return this.clone().mulTo(e,this)},v.prototype.imuln=function(e){g("number"==typeof e),g(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,n=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=n>>>26,this.words[r]=67108863&n}return 0!==t&&(this.words[r]=t,this.length++),this},v.prototype.muln=function(e){return this.clone().imuln(e)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=(e.words[i]&1<<n)>>>n}return t}(e);if(0===t.length)return new v(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},v.prototype.iushln=function(e){g("number"==typeof e&&0<=e);var t,r=e%26,i=(e-r)/26,n=67108863>>>26-r<<26-r;if(0!=r){var a=0;for(t=0;t<this.length;t++){var o=this.words[t]&n,s=(0|this.words[t])-o<<r;this.words[t]=s|a,a=o>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!=i){for(t=this.length-1;0<=t;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},v.prototype.ishln=function(e){return g(0===this.negative),this.iushln(e)},v.prototype.iushrn=function(e,t,r){var i;g("number"==typeof e&&0<=e),i=t?(t-t%26)/26:0;var n=e%26,a=Math.min((e-n)/26,this.length),o=67108863^67108863>>>n<<n,s=r;if(i-=a,i=Math.max(0,i),s){for(var u=0;u<a;u++)s.words[u]=this.words[u];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;0<=u&&(0!==l||i<=u);u--){var c=0|this.words[u];this.words[u]=l<<26-n|c>>>n,l=c&o}return s&&0!==l&&(s.words[s.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(e,t,r){return g(0===this.negative),this.iushrn(e,t,r)},v.prototype.shln=function(e){return this.clone().ishln(e)},v.prototype.ushln=function(e){return this.clone().iushln(e)},v.prototype.shrn=function(e){return this.clone().ishrn(e)},v.prototype.ushrn=function(e){return this.clone().iushrn(e)},v.prototype.testn=function(e){g("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},v.prototype.imaskn=function(e){g("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26;if(g(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!=t&&r++,this.length=Math.min(r,this.length),0!=t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},v.prototype.maskn=function(e){return this.clone().imaskn(e)},v.prototype.iaddn=function(e){return g("number"==typeof e),g(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},v.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},v.prototype.isubn=function(e){if(g("number"==typeof e),g(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},v.prototype.addn=function(e){return this.clone().iaddn(e)},v.prototype.subn=function(e){return this.clone().isubn(e)},v.prototype.iabs=function(){return this.negative=0,this},v.prototype.abs=function(){return this.clone().iabs()},v.prototype._ishlnsubmul=function(e,t,r){var i,n,a=e.length+r;this._expand(a);var o=0;for(i=0;i<e.length;i++){n=(0|this.words[i+r])+o;var s=(0|e.words[i])*t;o=((n-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&n}for(;i<this.length-r;i++)o=(n=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&n;if(0===o)return this.strip();for(g(-1===o),i=o=0;i<this.length;i++)o=(n=-(0|this.words[i])+o)>>26,this.words[i]=67108863&n;return this.negative=1,this.strip()},v.prototype._wordDiv=function(e,t){var r=(this.length,e.length),i=this.clone(),n=e,a=0|n.words[n.length-1];0!=(r=26-this._countBits(a))&&(n=n.ushln(r),i.iushln(r),a=0|n.words[n.length-1]);var o,s=i.length-n.length;if("mod"!==t){(o=new v(null)).length=1+s,o.words=new Array(o.length);for(var u=0;u<o.length;u++)o.words[u]=0}var l=i.clone()._ishlnsubmul(n,1,s);0===l.negative&&(i=l,o&&(o.words[s]=1));for(var c=s-1;0<=c;c--){var h=67108864*(0|i.words[n.length+c])+(0|i.words[n.length+c-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(n,h,c);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(n,1,c),i.isZero()||(i.negative^=1);o&&(o.words[c]=h)}return o&&o.strip(),i.strip(),"div"!==t&&0!=r&&i.iushrn(r),{div:o||null,mod:i}},v.prototype.divmod=function(e,t,r){return g(!e.isZero()),this.isZero()?{div:new v(0),mod:new v(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(n=a.mod.neg(),r&&0!==n.negative&&n.iadd(e)),{div:i,mod:n}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(n=a.mod.neg(),r&&0!==n.negative&&n.isub(e)),{div:a.div,mod:n}):e.length>this.length||this.cmp(e)<0?{div:new v(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new v(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new v(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,n,a},v.prototype.div=function(e){return this.divmod(e,"div",!1).div},v.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},v.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},v.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},v.prototype.modn=function(e){g(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;0<=i;i--)r=(t*r+(0|this.words[i]))%e;return r},v.prototype.idivn=function(e){g(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},v.prototype.divn=function(e){return this.clone().idivn(e)},v.prototype.egcd=function(e){g(0===e.negative),g(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new v(1),n=new v(0),a=new v(0),o=new v(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),l=t.clone();!t.isZero();){for(var c=0,h=1;0==(t.words[0]&h)&&c<26;++c,h<<=1);if(0<c)for(t.iushrn(c);0<c--;)(i.isOdd()||n.isOdd())&&(i.iadd(u),n.isub(l)),i.iushrn(1),n.iushrn(1);for(var f=0,d=1;0==(r.words[0]&d)&&f<26;++f,d<<=1);if(0<f)for(r.iushrn(f);0<f--;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(l)),a.iushrn(1),o.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(a),n.isub(o)):(r.isub(t),a.isub(i),o.isub(n))}return{a:a,b:o,gcd:r.iushln(s)}},v.prototype._invmp=function(e){g(0===e.negative),g(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,n=new v(1),a=new v(0),o=r.clone();0<t.cmpn(1)&&0<r.cmpn(1);){for(var s=0,u=1;0==(t.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(t.iushrn(s);0<s--;)n.isOdd()&&n.iadd(o),n.iushrn(1);for(var l=0,c=1;0==(r.words[0]&c)&&l<26;++l,c<<=1);if(0<l)for(r.iushrn(l);0<l--;)a.isOdd()&&a.iadd(o),a.iushrn(1);0<=t.cmp(r)?(t.isub(r),n.isub(a)):(r.isub(t),a.isub(n))}return(i=0===t.cmpn(1)?n:a).cmpn(0)<0&&i.iadd(e),i},v.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var i=r.negative=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},v.prototype.invm=function(e){return this.egcd(e).a.umod(e)},v.prototype.isEven=function(){return 0==(1&this.words[0])},v.prototype.isOdd=function(){return 1==(1&this.words[0])},v.prototype.andln=function(e){return this.words[0]&e},v.prototype.bincn=function(e){g("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(1+r),this.words[r]|=i,this;for(var n=i,a=r;0!==n&&a<this.length;a++){var o=0|this.words[a];n=(o+=n)>>>26,o&=67108863,this.words[a]=o}return 0!==n&&(this.words[a]=n,this.length++),this},v.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},v.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1<this.length)t=1;else{r&&(e=-e),g(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},v.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},v.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var i=0|this.words[r],n=0|e.words[r];if(i!=n){i<n?t=-1:n<i&&(t=1);break}}return t},v.prototype.gtn=function(e){return 1===this.cmpn(e)},v.prototype.gt=function(e){return 1===this.cmp(e)},v.prototype.gten=function(e){return 0<=this.cmpn(e)},v.prototype.gte=function(e){return 0<=this.cmp(e)},v.prototype.ltn=function(e){return-1===this.cmpn(e)},v.prototype.lt=function(e){return-1===this.cmp(e)},v.prototype.lten=function(e){return this.cmpn(e)<=0},v.prototype.lte=function(e){return this.cmp(e)<=0},v.prototype.eqn=function(e){return 0===this.cmpn(e)},v.prototype.eq=function(e){return 0===this.cmp(e)},v.red=function(e){return new w(e)},v.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},v.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(e){return this.red=e,this},v.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},v.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},v.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},v.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},v.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},v.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},v.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},v.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},v.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var l={k256:null,p224:null,p192:null,p25519:null};function c(e,t){this.name=e,this.p=new v(t,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"==typeof e){var t=v._prime(e);this.m=t.p,this.prime=t}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c.prototype._tmp=function(){var e=new v(null);return e.words=new Array(Math.ceil(this.n/13)),e},c.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),(t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):0<i?r.isub(this.p):r.strip(),r},c.prototype.split=function(e,t){e.iushrn(this.n,0,t)},c.prototype.imulK=function(e){return e.imul(this.k)},r(m,c),m.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var n=e.words[9];for(t.words[t.length++]=4194303&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(4194303&a)<<4|n>>>22,n=a}n>>>=22,0===(e.words[i-10]=n)&&10<e.length?e.length-=10:e.length-=9},m.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(b,c),r(y,c),r(_,c),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=19*(0|e.words[r])+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},v._prime=function(e){if(l[e])return l[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new b;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return l[e]=t},w.prototype._verify1=function(e){g(0===e.negative,"red works only with positives"),g(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){g(0==(e.negative|t.negative),"red works only with positives"),g(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(g(t%2==1),3===t){var r=this.m.add(new v(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);g(!i.isZero());var a=new v(1).toRed(this),o=a.redNeg(),s=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new v(2*u*u).toRed(this);0!==this.pow(u,s).cmp(o);)u.redIAdd(o);for(var l=this.pow(u,i),c=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),f=n;0!==h.cmp(a);){for(var d=h,p=0;0!==d.cmp(a);p++)d=d.redSqr();g(p<f);var m=this.pow(l,new v(1).iushln(f-p-1));c=c.redMul(m),l=m.redSqr(),h=h.redMul(l),f=p}return c},w.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},w.prototype.pow=function(e,t){if(t.isZero())return new v(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new v(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var n=r[0],a=0,o=0,s=t.bitLength()%26;for(0===s&&(s=26),i=t.length-1;0<=i;i--){for(var u=t.words[i],l=s-1;0<=l;l--){var c=u>>l&1;n!==r[0]&&(n=this.sqr(n)),0!=c||0!==a?(a<<=1,a|=c,(4===++o||0===i&&0===l)&&(n=this.mul(n,r[a]),a=o=0)):o=0}s=26}return n},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},v.mont=function(e){return new x(e)},r(x,w),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return 0<=n.cmp(this.m)?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new v(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return 0<=n.cmp(this.m)?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:19}],18:[function(e,t,r){var i;function n(e){this.rand=e}if(t.exports=function(e){return i||(i=new n(null)),i.generate(e)},(t.exports.Rand=n).prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");n.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:19}],19:[function(e,t,r){},{}],20:[function(e,t,r){var n=e("safe-buffer").Buffer;function a(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function i(e){for(;0<e.length;e++)e[0]=0}function o(e,t,r,i,n){for(var a,o,s,u,l=r[0],c=r[1],h=r[2],f=r[3],d=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],v=4,b=1;b<n;b++)a=l[d>>>24]^c[p>>>16&255]^h[m>>>8&255]^f[255&g]^t[v++],o=l[p>>>24]^c[m>>>16&255]^h[g>>>8&255]^f[255&d]^t[v++],s=l[m>>>24]^c[g>>>16&255]^h[d>>>8&255]^f[255&p]^t[v++],u=l[g>>>24]^c[d>>>16&255]^h[p>>>8&255]^f[255&m]^t[v++],d=a,p=o,m=s,g=u;return a=(i[d>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&g])^t[v++],o=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[g>>>8&255]<<8|i[255&d])^t[v++],s=(i[m>>>24]<<24|i[g>>>16&255]<<16|i[d>>>8&255]<<8|i[255&p])^t[v++],u=(i[g>>>24]<<24|i[d>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^t[v++],[a>>>=0,o>>>=0,s>>>=0,u>>>=0]}var h=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,u=0;u<256;++u){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99;var c=e[i[r[o]=l]=o],h=e[c],f=e[h],d=257*e[l]^16843008*l;n[0][o]=d<<24|d>>>8,n[1][o]=d<<16|d>>>16,n[2][o]=d<<8|d>>>24,n[3][o]=d,d=16843009*f^65537*h^257*c^16843008*o,a[0][l]=d<<24|d>>>8,a[1][l]=d<<16|d>>>16,a[2][l]=d<<8|d>>>24,a[3][l]=d,0===o?o=s=1:(o=c^e[e[e[f^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}}();function s(e){this._key=a(e),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=4*(r+1),n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t==0?(o=o<<8|o>>>24,o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o],o^=h[a/t|0]<<24):6<t&&a%t==4&&(o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o]),n[a]=n[a-t]^o}for(var s=[],u=0;u<i;u++){var l=i-u,c=n[l-(u%4?0:4)];s[u]=u<4||l<=4?c:f.INV_SUB_MIX[0][f.SBOX[c>>>24]]^f.INV_SUB_MIX[1][f.SBOX[c>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[c>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&c]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},s.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},s.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),i=n.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},s.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=s},{"safe-buffer":143}],21:[function(e,t,r){var o=e("./aes"),l=e("safe-buffer").Buffer,s=e("cipher-base"),i=e("inherits"),c=e("./ghash"),n=e("buffer-xor"),h=e("./incr32");function a(e,t,r,i){s.call(this);var n=l.alloc(4,0);this._cipher=new o.AES(t);var a=this._cipher.encryptBlock(n);this._ghash=new c(a),r=function(e,t,r){if(12===t.length)return e._finID=l.concat([t,l.from([0,0,0,1])]),l.concat([t,l.from([0,0,0,2])]);var i=new c(r),n=t.length,a=n%16;i.update(t),a&&(a=16-a,i.update(l.alloc(a,0))),i.update(l.alloc(8,0));var o=8*n,s=l.alloc(8);s.writeUIntBE(o,0,8),i.update(s),e._finID=i.state;var u=l.from(e._finID);return h(u),u}(this,r,a),this._prev=l.from(r),this._cache=l.allocUnsafe(0),this._secCache=l.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}i(a,s),a.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=l.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},a.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=n(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},a.prototype.getAuthTag=function(){if(this._decrypt||!l.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},a.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},a.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=a},{"./aes":20,"./ghash":25,"./incr32":26,"buffer-xor":48,"cipher-base":50,inherits:103,"safe-buffer":143}],22:[function(e,t,r){var i=e("./encrypter"),n=e("./decrypter"),a=e("./modes/list.json");r.createCipher=r.Cipher=i.createCipher,r.createCipheriv=r.Cipheriv=i.createCipheriv,r.createDecipher=r.Decipher=n.createDecipher,r.createDecipheriv=r.Decipheriv=n.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(a)}},{"./decrypter":23,"./encrypter":24,"./modes/list.json":34}],23:[function(e,t,r){var n=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./modes"),s=e("./streamCipher"),i=e("cipher-base"),u=e("./aes"),l=e("evp_bytestokey");function c(e,t,r){i.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=a.allocUnsafe(0)}function f(e,t,r){var i=o[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=a.from(r)),"GCM"!==i.mode&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=a.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===i.type?new s(i.module,t,r,!0):"auth"===i.type?new n(i.module,t,r,!0):new c(i.module,t,r)}e("inherits")(c,i),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return a.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15],r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(e){var t;if(e){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=l(t,!1,r.key,r.iv);return f(e,i.key,i.iv)},r.createDecipheriv=f},{"./aes":20,"./authCipher":21,"./modes":33,"./streamCipher":36,"cipher-base":50,evp_bytestokey:86,inherits:103,"safe-buffer":143}],24:[function(e,t,r){var n=e("./modes"),a=e("./authCipher"),o=e("safe-buffer").Buffer,s=e("./streamCipher"),i=e("cipher-base"),u=e("./aes"),l=e("evp_bytestokey");function c(e,t,r){i.call(this),this._cache=new f,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}e("inherits")(c,i),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return o.concat(i)};var h=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function d(e,t,r){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==i.mode&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===i.type?new s(i.module,t,r):"auth"===i.type?new a(i.module,t,r):new c(i.module,t,r)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(){if(15<this.cache.length){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},r.createCipheriv=d,r.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=l(t,!1,r.key,r.iv);return d(e,i.key,i.iv)}},{"./aes":20,"./authCipher":21,"./modes":33,"./streamCipher":36,"cipher-base":50,evp_bytestokey:86,inherits:103,"safe-buffer":143}],25:[function(e,t,r){var i=e("safe-buffer").Buffer,n=i.alloc(16,0);function a(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,r=function(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}(this.h),i=[0,0,0,0],n=-1;++n<128;){for(0!=(this.state[~~(n/8)]&1<<7-n%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),t=0!=(1&r[3]),e=3;0<e;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":143}],26:[function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],27:[function(e,t,r){var n=e("buffer-xor");r.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},{"buffer-xor":48}],28:[function(e,t,r){var a=e("safe-buffer").Buffer,o=e("buffer-xor");function s(e,t,r){var i=t.length,n=o(t,e._cache);return e._cache=e._cache.slice(i),e._prev=a.concat([e._prev,r?t:n]),n}r.encrypt=function(e,t,r){for(var i,n=a.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=a.allocUnsafe(0)),!(e._cache.length<=t.length)){n=a.concat([n,s(e,t,r)]);break}i=e._cache.length,n=a.concat([n,s(e,t.slice(0,i),r)]),t=t.slice(i)}return n}},{"buffer-xor":48,"safe-buffer":143}],29:[function(e,t,r){var o=e("safe-buffer").Buffer;function s(e,t,r){for(var i,n,a=-1,o=0;++a<8;)i=t&1<<7-a?128:0,o+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^i))>>a%8,e._prev=u(e._prev,r?i:n);return o}function u(e,t){var r=e.length,i=-1,n=o.allocUnsafe(e.length);for(e=o.concat([e,o.from([t])]);++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}r.encrypt=function(e,t,r){for(var i=t.length,n=o.allocUnsafe(i),a=-1;++a<i;)n[a]=s(e,t[a],r);return n}},{"safe-buffer":143}],30:[function(e,t,r){var c=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var i,n,a,o,s=t.length,u=c.allocUnsafe(s),l=-1;++l<s;)u[l]=(i=e,n=t[l],a=r,void 0,o=i._cipher.encryptBlock(i._prev)[0]^n,i._prev=c.concat([i._prev.slice(1),c.from([a?n:o])]),o);return u}},{"safe-buffer":143}],31:[function(e,t,r){var c=e("buffer-xor"),h=e("safe-buffer").Buffer,f=e("../incr32");r.encrypt=function(e,t){var r,i,n=Math.ceil(t.length/16),a=e._cache.length;e._cache=h.concat([e._cache,h.allocUnsafe(16*n)]);for(var o=0;o<n;o++){var s=(void 0,i=(r=e)._cipher.encryptBlockRaw(r._prev),f(r._prev),i),u=a+16*o;e._cache.writeUInt32BE(s[0],u+0),e._cache.writeUInt32BE(s[1],u+4),e._cache.writeUInt32BE(s[2],u+8),e._cache.writeUInt32BE(s[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),c(t,l)}},{"../incr32":26,"buffer-xor":48,"safe-buffer":143}],32:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],33:[function(e,t,r){var i={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},n=e("./list.json");for(var a in n)n[a].module=i[n[a].mode];t.exports=n},{"./cbc":27,"./cfb":28,"./cfb1":29,"./cfb8":30,"./ctr":31,"./ecb":32,"./list.json":34,"./ofb":35}],34:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],35:[function(e,t,r){(function(n){var a=e("buffer-xor");r.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=n.concat([e._cache,(r=e,r._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,i=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),a(t,i)}}).call(this,e("buffer").Buffer)},{buffer:49,"buffer-xor":48}],36:[function(e,t,r){var n=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base");function i(e,t,r,i){o.call(this),this._cipher=new n.AES(t),this._prev=a.from(r),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=i,this._mode=e}e("inherits")(i,o),i.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},t.exports=i},{"./aes":20,"cipher-base":50,inherits:103,"safe-buffer":143}],37:[function(e,t,r){var a=e("evp_bytestokey"),i=e("browserify-aes/browser"),n=e("browserify-des"),o=e("browserify-des/modes"),s=e("browserify-aes/modes");function u(e,t,r){if(e=e.toLowerCase(),s[e])return i.createCipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function l(e,t,r){if(e=e.toLowerCase(),s[e])return i.createDecipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,i=o[e].iv}var n=a(t,!1,r,i);return u(e,n.key,n.iv)},r.createCipheriv=r.Cipheriv=u,r.createDecipher=r.Decipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,i=o[e].iv}var n=a(t,!1,r,i);return l(e,n.key,n.iv)},r.createDecipheriv=r.Decipheriv=l,r.listCiphers=r.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},{"browserify-aes/browser":22,"browserify-aes/modes":33,"browserify-des":38,"browserify-des/modes":39,evp_bytestokey:86}],38:[function(i,n,e){(function(o){var s=i("cipher-base"),e=i("des.js"),t=i("inherits"),u={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function r(e){s.call(this);var t,r=e.mode.toLowerCase(),i=u[r];t=e.decrypt?"decrypt":"encrypt";var n=e.key;"des-ede"!==r&&"des-ede-cbc"!==r||(n=o.concat([n,n.slice(0,8)]));var a=e.iv;this._des=i.create({key:n,iv:a,type:t})}u.des=u["des-cbc"],u.des3=u["des-ede3-cbc"],t(n.exports=r,s),r.prototype._update=function(e){return new o(this._des.update(e))},r.prototype._final=function(){return new o(this._des.final())}}).call(this,i("buffer").Buffer)},{buffer:49,"cipher-base":50,"des.js":59,inherits:103}],39:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],40:[function(t,r,e){(function(d){var p=t("bn.js"),i=t("randombytes");function e(e,t){var r=function(e){var t=m(e);return{blinder:t.toRed(p.mont(e.modulus)).redPow(new p(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),n=(p.mont(t.modulus),new p(e).mul(r.blinder).umod(t.modulus)),a=n.toRed(p.mont(t.prime1)),o=n.toRed(p.mont(t.prime2)),s=t.coefficient,u=t.prime1,l=t.prime2,c=a.redPow(t.exponent1),h=o.redPow(t.exponent2);c=c.fromRed(),h=h.fromRed();var f=c.isub(h).imul(s).umod(u);return f.imul(l),h.iadd(f),new d(h.imul(r.unblinder).umod(t.modulus).toArray(!1,i))}function m(e){for(var t=e.modulus.byteLength(),r=new p(i(t));0<=r.cmp(e.modulus)||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new p(i(t));return r}(r.exports=e).getr=m}).call(this,t("buffer").Buffer)},{"bn.js":17,buffer:49,randombytes:130}],41:[function(e,t,r){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":42}],42:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],43:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],44:[function(h,f,e){(function(n){var r=h("create-hash"),i=h("stream"),e=h("inherits"),a=h("./sign"),o=h("./verify"),s=h("./algorithms.json");function t(e){i.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){i.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){return new t(e)}function c(e){return new u(e)}Object.keys(s).forEach(function(e){s[e].id=new n(s[e].id,"hex"),s[e.toLowerCase()]=s[e]}),e(t,i.Writable),t.prototype._write=function(e,t,r){this._hash.update(e),r()},t.prototype.update=function(e,t){return"string"==typeof e&&(e=new n(e,t)),this._hash.update(e),this},t.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),i=a(r,e,this._hashType,this._signType,this._tag);return t?i.toString(t):i},e(u,i.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=new n(e,t)),this._hash.update(e),this},u.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new n(t,r)),this.end();var i=this._hash.digest();return o(t,i,e,this._signType,this._tag)},f.exports={Sign:l,Verify:c,createSign:l,createVerify:c}}).call(this,h("buffer").Buffer)},{"./algorithms.json":42,"./sign":45,"./verify":46,buffer:49,"create-hash":53,inherits:103,stream:152}],45:[function(e,t,r){(function(m){var l=e("create-hmac"),c=e("browserify-rsa"),h=e("elliptic").ec,g=e("bn.js"),f=e("parse-asn1"),d=e("./curves.json");function v(e,t,r,i){if((e=new m(e.toArray())).length<t.byteLength()){var n=new m(t.byteLength()-e.length);n.fill(0),e=m.concat([n,e])}var a=r.length,o=function(e,t){e=(e=b(e,t)).mod(t);var r=new m(e.toArray());if(r.length<t.byteLength()){var i=new m(t.byteLength()-r.length);i.fill(0),r=m.concat([i,r])}return r}(r,t),s=new m(a);s.fill(1);var u=new m(a);return u.fill(0),u=l(i,u).update(s).update(new m([0])).update(e).update(o).digest(),s=l(i,u).update(s).digest(),{k:u=l(i,u).update(s).update(new m([1])).update(e).update(o).digest(),v:s=l(i,u).update(s).digest()}}function b(e,t){var r=new g(e),i=(e.length<<3)-t.bitLength();return 0<i&&r.ishrn(i),r}function y(e,t,r){var i,n;do{for(i=new m(0);8*i.length<e.bitLength();)t.v=l(r,t.k).update(t.v).digest(),i=m.concat([i,t.v]);n=b(i,e),t.k=l(r,t.k).update(t.v).update(new m([0])).digest(),t.v=l(r,t.k).update(t.v).digest()}while(-1!==n.cmp(e));return n}t.exports=function(e,t,r,i,n){var a=f(t);if(a.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=d[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new h(r).keyFromPrivate(t.privateKey).sign(e);return new m(i.toDER())}(e,a)}if("dsa"===a.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){for(var i,n,a,o,s=t.params.priv_key,u=t.params.p,l=t.params.q,c=t.params.g,h=new g(0),f=b(e,l).mod(l),d=!1,p=v(s,l,e,r);!1===d;)i=y(l,p,r),n=i,a=u,o=l,h=c.toRed(g.mont(a)).redPow(n).fromRed().mod(o),0===(d=i.invm(l).imul(f.add(s.mul(h))).mod(l)).cmpn(0)&&(d=!1,h=new g(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),new m(r)}(h,d)}(e,a,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=m.concat([n,e]);for(var o=a.modulus.byteLength(),s=[0,1];e.length+s.length+1<o;)s.push(255);s.push(0);for(var u=-1;++u<e.length;)s.push(e[u]);return c(s,a)},t.exports.getKey=v,t.exports.makeKey=y}).call(this,e("buffer").Buffer)},{"./curves.json":43,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hmac":56,elliptic:69,"parse-asn1":115}],46:[function(e,t,r){(function(f){var d=e("bn.js"),p=e("elliptic").ec,m=e("parse-asn1"),g=e("./curves.json");function v(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,i,n){var a=m(r);if("ec"===a.type){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong public key type");return function(e,t,r){var i=g[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var n=new p(i),a=r.data.subjectPrivateKey.data;return n.verify(t,e,a)}(e,t,a)}if("dsa"===a.type){if("dsa"!==i)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,n=r.data.q,a=r.data.g,o=r.data.pub_key,s=m.signature.decode(e,"der"),u=s.s,l=s.r;v(u,n),v(l,n);var c=d.mont(i),h=u.invm(n);return 0===a.toRed(c).redPow(new d(t).mul(h).mod(n)).fromRed().mul(o.toRed(c).redPow(l.mul(h).mod(n)).fromRed()).mod(i).mod(n).cmp(l)}(e,t,a)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong public key type");t=f.concat([n,t]);for(var o=a.modulus.byteLength(),s=[1],u=0;t.length+s.length+2<o;)s.push(255),u++;s.push(0);for(var l=-1;++l<t.length;)s.push(t[l]);s=new f(s);var c=d.mont(a.modulus);e=(e=new d(e).toRed(c)).redPow(new d(a.publicExponent)),e=new f(e.fromRed().toArray());var h=u<8?1:0;for(o=Math.min(e.length,s.length),e.length!==s.length&&(h=1),l=-1;++l<o;)h|=e[l]^s[l];return 0===h}}).call(this,e("buffer").Buffer)},{"./curves.json":43,"bn.js":17,buffer:49,elliptic:69,"parse-asn1":115}],47:[function(e,t,r){arguments[4][19][0].apply(r,arguments)},{dup:19}],48:[function(e,t,r){(function(a){t.exports=function(e,t){for(var r=Math.min(e.length,t.length),i=new a(r),n=0;n<r;++n)i[n]=e[n]^t[n];return i}}).call(this,e("buffer").Buffer)},{buffer:49}],49:[function(z,e,F){(function(e){"use strict";var i=z("base64-js"),a=z("ieee754"),o=z("isarray");function r(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=h.prototype:(null===e&&(e=new h(t)),e.length=t),e}function h(e,t,r){if(!(h.TYPED_ARRAY_SUPPORT||this instanceof h))return new h(e,t,r);if("number"!=typeof e)return n(this,e,t,r);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}function n(e,t,r,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,i){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,r):new Uint8Array(t,r,i);h.TYPED_ARRAY_SUPPORT?(e=t).__proto__=h.prototype:e=c(e,t);return e}(e,t,r,i):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!h.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|d(t,r),n=(e=s(e,i)).write(t,r);n!==i&&(e=e.slice(0,n));return e}(e,t,r):function(e,t){if(h.isBuffer(t)){var r=0|f(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):c(e,t);if("Buffer"===t.type&&o(t.data))return c(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!h.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function c(e,t){var r=t.length<0?0:0|f(t.length);e=s(e,r);for(var i=0;i<r;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function d(e,t){if(h.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return D(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=h.from(t,i)),h.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s/=o=2,u/=2,r/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(a=r;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(s<r+u&&(r=s-u),a=r;0<=a;a--){for(var h=!0,f=0;f<u;f++)if(l(e,a+f)!==l(t,f)){h=!1;break}if(h)return a}return-1}function v(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");a/2<i&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function b(e,t,r,i){return L(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,u,l=e[n],c=null,h=239<l?4:223<l?3:191<l?2:1;if(n+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[n+1]))&&127<(u=(31&l)<<6|63&a)&&(c=u);break;case 3:a=e[n+1],o=e[n+2],128==(192&a)&&128==(192&o)&&2047<(u=(15&l)<<12|(63&a)<<6|63&o)&&(u<55296||57343<u)&&(c=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)&&u<1114112&&(c=u)}null===c?(c=65533,h=1):65535<c&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=h}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=w));return r}(i)}F.Buffer=h,F.SlowBuffer=function(e){+e!=e&&(e=0);return h.alloc(+e)},F.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),F.kMaxLength=r(),h.poolSize=8192,h._augment=function(e){return e.__proto__=h.prototype,e},h.from=function(e,t,r){return n(null,e,t,r)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0})),h.alloc=function(e,t,r){return function(e,t,r,i){return u(t),t<=0?s(e,t):void 0!==r?"string"==typeof i?s(e,t).fill(r,i):s(e,t).fill(r):s(e,t)}(null,e,t,r)},h.allocUnsafe=function(e){return l(null,e)},h.allocUnsafeSlow=function(e){return l(null,e)},h.isBuffer=function(e){return!(null==e||!e._isBuffer)},h.compare=function(e,t){if(!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},h.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=h.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,n),n+=a.length}return i},h.byteLength=d,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},h.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return y(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.prototype.inspect=function(){var e="",t=F.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},h.prototype.compare=function(e,t,r,i,n){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var a=(n>>>=0)-(i>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(i,n),l=e.slice(t,r),c=0;c<s;++c)if(u[c]!==l[c]){a=u[c],o=l[c];break}return a<o?-1:o<a?1:0},h.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},h.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},h.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},h.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a,o,s,u,l,c,h,f,d,p=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return f=t,d=r,L(D(e,(h=this).length-f),h,f,d);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return u=this,l=t,c=r,L(j(e),u,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,s=r,L(function(e,t){for(var r,i,n,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,n=r%256,a.push(n),a.push(i);return a}(e,(a=this).length-o),a,o,s);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function x(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function k(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function T(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n="",a=t;a<r;++a)n+=R(e[a]);return n}function S(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}function E(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,i,n,a){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<t||t<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function P(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,a=Math.min(e.length-r,2);n<a;++n)e[r+n]=(t&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function C(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,a=Math.min(e.length-r,4);n<a;++n)e[r+n]=t>>>8*(i?n:3-n)&255}function A(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,i,n){return n||A(e,0,r,4),a.write(e,t,r,i,23,4),r+4}function I(e,t,r,i,n){return n||A(e,0,r,8),a.write(e,t,r,i,52,8),r+8}h.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),t<e&&(t=e),h.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=h.prototype;else{var n=t-e;r=new h(n,void 0);for(var a=0;a<n;++a)r[a]=this[a+e]}return r},h.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||E(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},h.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||E(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},h.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},h.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||E(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},h.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||E(e,t,this.length);for(var i=t,n=1,a=this[e+--i];0<i&&(n*=256);)a+=this[e+--i]*n;return(n*=128)<=a&&(a-=Math.pow(2,8*t)),a},h.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),a.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),a.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),a.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),a.read(this,e,!1,52,8)},h.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,a=0;for(this[t]=255&e;++a<r&&(n*=256);)this[t+a]=e/n&255;return t+r},h.prototype.writeUIntBE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,a=1;for(this[t+n]=255&e;0<=--n&&(a*=256);)this[t+n]=e/a&255;return t+r},h.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,255,0),h.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},h.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},h.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},h.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},h.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},h.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},h.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;0<=--a&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},h.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,127,-128),h.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},h.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},h.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},h.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},h.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},h.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},h.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},h.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},h.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n,a=i-r;if(this===e&&r<t&&t<i)for(n=a-1;0<=n;--n)e[n+t]=this[n+r];else if(a<1e3||!h.TYPED_ARRAY_SUPPORT)for(n=0;n<a;++n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},h.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!h.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=h.isBuffer(e)?e:D(new h(e,i).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var t=/[^+\/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){var r;t=t||1/0;for(var i=e.length,n=null,a=[],o=0;o<i;++o){if(55295<(r=e.charCodeAt(o))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===i){-1<(t-=3)&&a.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&a.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function j(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":16,ieee754:101,isarray:105}],50:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("stream").Transform,a=e("string_decoder").StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(o,i),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},t.exports=o},{inherits:103,"safe-buffer":143,stream:152,string_decoder:153}],51:[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":104}],52:[function(e,s,t){(function(a){var t=e("elliptic"),i=e("bn.js");s.exports=function(e){return new n(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function n(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function o(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new a(e);if(r&&i.length<r){var n=new a(r-i.length);n.fill(0),i=a.concat([n,i])}return t?i.toString(t):i}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(e,t,r){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),o(r,e)},n.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this.keys._importPublic(e),this},n.prototype.setPrivateKey=function(e,t){t=t||"utf8",a.isBuffer(e)||(e=new a(e,t));var r=new i(e);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(this,e("buffer").Buffer)},{"bn.js":17,buffer:49,elliptic:69}],53:[function(u,l,e){(function(r){"use strict";var e=u("inherits"),t=u("./md5"),i=u("ripemd160"),n=u("sha.js"),a=u("cipher-base");function o(e){a.call(this,"digest"),this._hash=e,this.buffers=[]}function s(e){a.call(this,"digest"),this._hash=e}e(o,a),o.prototype._update=function(e){this.buffers.push(e)},o.prototype._final=function(){var e=r.concat(this.buffers),t=this._hash(e);return this.buffers=null,t},e(s,a),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},l.exports=function(e){return"md5"===(e=e.toLowerCase())?new o(t):new s("rmd160"===e||"ripemd160"===e?new i:n(e))}}).call(this,u("buffer").Buffer)},{"./md5":55,buffer:49,"cipher-base":50,inherits:103,ripemd160:142,"sha.js":145}],54:[function(e,t,r){(function(a){"use strict";var o=new a(4);o.fill(0);t.exports=function(e,t){var r=t(function(e){if(e.length%4!=0){var t=e.length+(4-e.length%4);e=a.concat([e,o],t)}for(var r=new Array(e.length>>>2),i=0,n=0;i<e.length;i+=4,n++)r[n]=e.readInt32LE(i);return r}(e),8*e.length);e=new a(16);for(var i=0;i<r.length;i++)e.writeInt32LE(r[i],i<<2,!0);return e}}).call(this,e("buffer").Buffer)},{buffer:49}],55:[function(e,t,r){"use strict";var i=e("./make-hash");function n(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,i=-271733879,n=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=r,u=i,l=n,c=a;i=p(i=p(i=p(i=p(i=d(i=d(i=d(i=d(i=f(i=f(i=f(i=f(i=h(i=h(i=h(i=h(i,n=h(n,a=h(a,r=h(r,i,n,a,e[o+0],7,-680876936),i,n,e[o+1],12,-389564586),r,i,e[o+2],17,606105819),a,r,e[o+3],22,-1044525330),n=h(n,a=h(a,r=h(r,i,n,a,e[o+4],7,-176418897),i,n,e[o+5],12,1200080426),r,i,e[o+6],17,-1473231341),a,r,e[o+7],22,-45705983),n=h(n,a=h(a,r=h(r,i,n,a,e[o+8],7,1770035416),i,n,e[o+9],12,-1958414417),r,i,e[o+10],17,-42063),a,r,e[o+11],22,-1990404162),n=h(n,a=h(a,r=h(r,i,n,a,e[o+12],7,1804603682),i,n,e[o+13],12,-40341101),r,i,e[o+14],17,-1502002290),a,r,e[o+15],22,1236535329),n=f(n,a=f(a,r=f(r,i,n,a,e[o+1],5,-165796510),i,n,e[o+6],9,-1069501632),r,i,e[o+11],14,643717713),a,r,e[o+0],20,-373897302),n=f(n,a=f(a,r=f(r,i,n,a,e[o+5],5,-701558691),i,n,e[o+10],9,38016083),r,i,e[o+15],14,-660478335),a,r,e[o+4],20,-405537848),n=f(n,a=f(a,r=f(r,i,n,a,e[o+9],5,568446438),i,n,e[o+14],9,-1019803690),r,i,e[o+3],14,-187363961),a,r,e[o+8],20,1163531501),n=f(n,a=f(a,r=f(r,i,n,a,e[o+13],5,-1444681467),i,n,e[o+2],9,-51403784),r,i,e[o+7],14,1735328473),a,r,e[o+12],20,-1926607734),n=d(n,a=d(a,r=d(r,i,n,a,e[o+5],4,-378558),i,n,e[o+8],11,-2022574463),r,i,e[o+11],16,1839030562),a,r,e[o+14],23,-35309556),n=d(n,a=d(a,r=d(r,i,n,a,e[o+1],4,-1530992060),i,n,e[o+4],11,1272893353),r,i,e[o+7],16,-155497632),a,r,e[o+10],23,-1094730640),n=d(n,a=d(a,r=d(r,i,n,a,e[o+13],4,681279174),i,n,e[o+0],11,-358537222),r,i,e[o+3],16,-722521979),a,r,e[o+6],23,76029189),n=d(n,a=d(a,r=d(r,i,n,a,e[o+9],4,-640364487),i,n,e[o+12],11,-421815835),r,i,e[o+15],16,530742520),a,r,e[o+2],23,-995338651),n=p(n,a=p(a,r=p(r,i,n,a,e[o+0],6,-198630844),i,n,e[o+7],10,1126891415),r,i,e[o+14],15,-1416354905),a,r,e[o+5],21,-57434055),n=p(n,a=p(a,r=p(r,i,n,a,e[o+12],6,1700485571),i,n,e[o+3],10,-1894986606),r,i,e[o+10],15,-1051523),a,r,e[o+1],21,-2054922799),n=p(n,a=p(a,r=p(r,i,n,a,e[o+8],6,1873313359),i,n,e[o+15],10,-30611744),r,i,e[o+6],15,-1560198380),a,r,e[o+13],21,1309151649),n=p(n,a=p(a,r=p(r,i,n,a,e[o+4],6,-145523070),i,n,e[o+11],10,-1120210379),r,i,e[o+2],15,718787259),a,r,e[o+9],21,-343485551),r=m(r,s),i=m(i,u),n=m(n,l),a=m(a,c)}return[r,i,n,a]}function s(e,t,r,i,n,a){return m(function(e,t){return e<<t|e>>>32-t}(m(m(t,e),m(i,a)),n),r)}function h(e,t,r,i,n,a,o){return s(t&r|~t&i,e,t,n,a,o)}function f(e,t,r,i,n,a,o){return s(t&i|r&~i,e,t,n,a,o)}function d(e,t,r,i,n,a,o){return s(t^r^i,e,t,n,a,o)}function p(e,t,r,i,n,a,o){return s(r^(t|~i),e,t,n,a,o)}function m(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return i(e,n)}},{"./make-hash":54}],56:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./legacy"),o=e("cipher-base"),s=e("safe-buffer").Buffer,a=e("create-hash/md5"),u=e("ripemd160"),l=e("sha.js"),c=s.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,(this._key=t).length>r)?t=("rmd160"===e?new u:l(e)).update(t).digest():t.length<r&&(t=s.concat([t,c],r));for(var i=this._ipad=s.allocUnsafe(r),n=this._opad=s.allocUnsafe(r),a=0;a<r;a++)i[a]=54^t[a],n[a]=92^t[a];this._hash="rmd160"===e?new u:l(e),this._hash.update(i)}i(h,o),h.prototype._update=function(e){this._hash.update(e)},h.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:l(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new h("rmd160",t):"md5"===e?new n(a,t):new h(e,t)}},{"./legacy":57,"cipher-base":50,"create-hash/md5":55,inherits:103,ripemd160:142,"safe-buffer":143,"sha.js":145}],57:[function(e,t,r){"use strict";var i=e("inherits"),a=e("safe-buffer").Buffer,o=e("cipher-base"),s=a.alloc(128);function n(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t)),this._alg=e,64<(this._key=t).length?t=e(t):t.length<64&&(t=a.concat([t,s],64));for(var r=this._ipad=a.allocUnsafe(64),i=this._opad=a.allocUnsafe(64),n=0;n<64;n++)r[n]=54^t[n],i[n]=92^t[n];this._hash=[r]}i(n,o),n.prototype._update=function(e){this._hash.push(e)},n.prototype._final=function(){var e=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,e]))},t.exports=n},{"cipher-base":50,inherits:103,"safe-buffer":143}],58:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var i=e("browserify-sign/algos"),n=Object.keys(i),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);r.getHashes=function(){return a};var o=e("pbkdf2");r.pbkdf2=o.pbkdf2,r.pbkdf2Sync=o.pbkdf2Sync;var s=e("browserify-cipher");r.Cipher=s.Cipher,r.createCipher=s.createCipher,r.Cipheriv=s.Cipheriv,r.createCipheriv=s.createCipheriv,r.Decipher=s.Decipher,r.createDecipher=s.createDecipher,r.Decipheriv=s.Decipheriv,r.createDecipheriv=s.createDecipheriv,r.getCiphers=s.getCiphers,r.listCiphers=s.listCiphers;var u=e("diffie-hellman");r.DiffieHellmanGroup=u.DiffieHellmanGroup,r.createDiffieHellmanGroup=u.createDiffieHellmanGroup,r.getDiffieHellman=u.getDiffieHellman,r.createDiffieHellman=u.createDiffieHellman,r.DiffieHellman=u.DiffieHellman;var l=e("browserify-sign");r.createSign=l.createSign,r.Sign=l.Sign,r.createVerify=l.createVerify,r.Verify=l.Verify,r.createECDH=e("create-ecdh");var c=e("public-encrypt");r.publicEncrypt=c.publicEncrypt,r.privateEncrypt=c.privateEncrypt,r.publicDecrypt=c.publicDecrypt,r.privateDecrypt=c.privateDecrypt;var h=e("randomfill");r.randomFill=h.randomFill,r.randomFillSync=h.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":37,"browserify-sign":44,"browserify-sign/algos":41,"create-ecdh":52,"create-hash":53,"create-hmac":56,"diffie-hellman":65,pbkdf2:117,"public-encrypt":124,randombytes:130,randomfill:131}],59:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":60,"./des/cipher":61,"./des/des":62,"./des/ede":63,"./des/utils":64}],60:[function(e,t,r){"use strict";var i=e("minimalistic-assert"),a=e("inherits"),o={};function n(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(t){function r(e){t.call(this,e),this._cbcInit()}a(r,t);for(var e=Object.keys(o),i=0;i<e.length;i++){var n=e[i];r.prototype[n]=o[n]}return r.create=function(e){return new r(e)},r},o._cbcInit=function(){var e=new n(this.options.iv);this._cbcState=e},o._update=function(e,t,r,i){var n=this._cbcState,a=this.constructor.super_.prototype,o=n.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,r,i);for(s=0;s<this.blockSize;s++)o[s]=r[i+s]}else{a._update.call(this,e,t,r,i);for(s=0;s<this.blockSize;s++)r[i+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:103,"minimalistic-assert":109}],61:[function(e,t,r){"use strict";var i=e("minimalistic-assert");function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}(t.exports=n).prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,i=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(i*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(i*this.blockSize);0<i;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":109}],62:[function(e,t,r){"use strict";var o=e("minimalistic-assert"),i=e("inherits"),n=e("../des"),f=n.utils,a=n.Cipher;function s(){this.tmp=new Array(2),this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,a),(t.exports=u).create=function(e){return new u(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),o.equal(t.length,this.blockSize,"Invalid key length");var r=f.readUInt32BE(t,0),i=f.readUInt32BE(t,4);f.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var n=0;n<e.keys.length;n+=2){var a=l[n>>>1];r=f.r28shl(r,a),i=f.r28shl(i,a),f.pc2(r,i,e.keys,n)}},u.prototype._update=function(e,t,r,i){var n=this._desState,a=f.readUInt32BE(e,t),o=f.readUInt32BE(e,t+4);f.ip(a,o,n.tmp,0),a=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,a,o,n.tmp,0):this._decrypt(n,a,o,n.tmp,0),a=n.tmp[0],o=n.tmp[1],f.writeUInt32BE(r,a,i),f.writeUInt32BE(r,o,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i<e.length;i++)e[i]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)o.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,i,n){for(var a=t,o=r,s=0;s<e.keys.length;s+=2){var u=e.keys[s],l=e.keys[s+1];f.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var c=f.substitute(u,l),h=o;o=(a^f.permute(c))>>>0,a=h}f.rip(o,a,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var a=r,o=t,s=e.keys.length-2;0<=s;s-=2){var u=e.keys[s],l=e.keys[s+1];f.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var c=f.substitute(u,l),h=a;a=(o^f.permute(c))>>>0,o=h}f.rip(a,o,i,n)}},{"../des":59,inherits:103,"minimalistic-assert":109}],63:[function(e,t,r){"use strict";var a=e("minimalistic-assert"),i=e("inherits"),n=e("../des"),o=n.Cipher,s=n.DES;function u(e,t){a.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:n})]:[s.create({type:"decrypt",key:n}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}function l(e){o.call(this,e);var t=new u(this.type,this.options.key);this._edeState=t}i(l,o),(t.exports=l).create=function(e){return new l(e)},l.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},l.prototype._pad=s.prototype._pad,l.prototype._unpad=s.prototype._unpad},{"../des":59,inherits:103,"minimalistic-assert":109}],64:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,i){for(var n=0,a=0,o=6;0<=o;o-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>>s+o&1}for(o=6;0<=o;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[i+0]=n>>>0,r[i+1]=a>>>0},r.rip=function(e,t,r,i){for(var n=0,a=0,o=0;o<4;o++)for(var s=24;0<=s;s-=8)n<<=1,n|=t>>>s+o&1,n<<=1,n|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;0<=s;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.pc1=function(e,t,r,i){for(var n=0,a=0,o=7;5<=o;o--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+o&1}for(s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var u=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,i){for(var n=0,a=0,o=u.length>>>1,s=0;s<o;s++)n<<=1,n|=e>>>u[s]&1;for(s=o;s<u.length;s++)a<<=1,a|=t>>>u[s]&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var a=23;15<=a;a-=4)i<<=6,i|=e>>>a&63;for(a=11;3<=a;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,i=0;i<4;i++){r<<=4,r|=n[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var n=[],a=0;a<t;a+=r)n.push(i.slice(a,a+r));return n.join(" ")}},{}],65:[function(e,t,r){(function(a){var o=e("./lib/generatePrime"),i=e("./lib/primes.json"),s=e("./lib/dh");var u={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new a(i[e].prime,"hex"),r=new a(i[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,i,n){return a.isBuffer(r)||void 0===u[r]?e(t,"binary",r,i):(r=r||"binary",n=n||"binary",i=i||new a([2]),a.isBuffer(i)||(i=new a(i,n)),"number"==typeof t?new s(o(t,i),i,!0):(a.isBuffer(t)||(t=new a(t,r)),new s(t,i,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":66,"./lib/generatePrime":67,"./lib/primes.json":68,buffer:49}],66:[function(m,g,e){(function(a){var o=m("bn.js"),s=new(m("miller-rabin")),u=new o(24),l=new o(11),c=new o(10),h=new o(3),f=new o(7),d=m("./generatePrime"),e=m("randombytes");function i(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this._pub=new o(e),this}function n(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this._priv=new o(e),this}g.exports=t;var p={};function t(e,t,r){this.setGenerator(t),this.__prime=new o(e),this._prime=o.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=i,this.setPrivateKey=n):this._primeCode=8}function r(e,t){var r=new a(e.toArray());return t?r.toString(t):r}Object.defineProperty(t.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in p)return p[i];var n,a=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!s.test(e))return a+=1,a+="02"===r||"05"===r?8:4,p[i]=a;switch(s.test(e.shrn(1))||(a+=2),r){case"02":e.mod(u).cmp(l)&&(a+=8);break;case"05":(n=e.mod(c)).cmp(h)&&n.cmp(f)&&(a+=8);break;default:a+=4}return p[i]=a}(this.__prime,this.__gen)),this._primeCode}}),t.prototype.generateKeys=function(){return this._priv||(this._priv=new o(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},t.prototype.computeSecret=function(e){var t=(e=(e=new o(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new a(t.toArray()),i=this.getPrime();if(r.length<i.length){var n=new a(i.length-r.length);n.fill(0),r=a.concat([n,r])}return r},t.prototype.getPublicKey=function(e){return r(this._pub,e)},t.prototype.getPrivateKey=function(e){return r(this._priv,e)},t.prototype.getPrime=function(e){return r(this.__prime,e)},t.prototype.getGenerator=function(e){return r(this._gen,e)},t.prototype.setGenerator=function(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this.__gen=e,this._gen=new o(e),this}}).call(this,m("buffer").Buffer)},{"./generatePrime":67,"bn.js":17,buffer:49,"miller-rabin":108,randombytes:130}],67:[function(e,t,r){var n=e("randombytes");(t.exports=i).simpleSieve=g,i.fermatTest=v;var a=e("bn.js"),o=new a(24),s=new(e("miller-rabin")),u=new a(1),l=new a(2),c=new a(5),h=(new a(16),new a(8),new a(10)),f=new a(3),d=(new a(7),new a(11)),p=new a(4),m=(new a(12),null);function g(e){for(var t=function(){if(null!==m)return m;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var i=Math.ceil(Math.sqrt(r)),n=0;n<t&&e[n]<=i&&r%e[n]!=0;n++);t!==n&&e[n]<=i||(e[t++]=r)}return m=e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function v(e){var t=a.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function i(e,t){if(e<16)return new a(2===t||5===t?[140,123]:[140,39]);var r,i;for(t=new a(t);;){for(r=new a(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(h).cmp(f);)r.iadd(p)}else for(;r.mod(o).cmp(d);)r.iadd(p);if(g(i=r.shrn(1))&&g(r)&&v(i)&&v(r)&&s.test(i)&&s.test(r))return r}}},{"bn.js":17,"miller-rabin":108,randombytes:130}],68:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],69:[function(e,t,r){"use strict";var i=r;i.version=e("../package.json").version,i.utils=e("./elliptic/utils"),i.rand=e("brorand"),i.curve=e("./elliptic/curve"),i.curves=e("./elliptic/curves"),i.ec=e("./elliptic/ec"),i.eddsa=e("./elliptic/eddsa")},{"../package.json":84,"./elliptic/curve":72,"./elliptic/curves":75,"./elliptic/ec":76,"./elliptic/eddsa":79,"./elliptic/utils":83,brorand:18}],70:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../../elliptic").utils,S=n.getNAF,E=n.getJSF,h=n.assert;function a(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||0<r.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function o(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=a).prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(e,t){h(e.precomputed);var r=e._getDoubles(),i=S(t,1),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;for(var a=[],o=0;o<i.length;o+=r.step){var s=0;for(t=o+r.step-1;o<=t;t--)s=(s<<1)+i[t];a.push(s)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),c=n;0<c;c--){for(o=0;o<a.length;o++){(s=a[o])===c?l=l.mixedAdd(r.points[o]):s===-c&&(l=l.mixedAdd(r.points[o].neg()))}u=u.add(l)}return u.toP()},a.prototype._wnafMul=function(e,t){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var n=i.points,a=S(t,r),o=this.jpoint(null,null,null),s=a.length-1;0<=s;s--){for(t=0;0<=s&&0===a[s];s--)t++;if(0<=s&&t++,o=o.dblp(t),s<0)break;var u=a[s];h(0!==u),o="affine"===e.type?0<u?o.mixedAdd(n[u-1>>1]):o.mixedAdd(n[-u-1>>1].neg()):0<u?o.add(n[u-1>>1]):o.add(n[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},a.prototype._wnafMulAdd=function(e,t,r,i,n){for(var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,u=0,l=0;l<i;l++){var c=(k=t[l])._getNAFPoints(e);a[l]=c.wnd,o[l]=c.points}for(l=i-1;1<=l;l-=2){var h=l-1,f=l;if(1===a[h]&&1===a[f]){var d=[t[h],null,null,t[f]];0===t[h].y.cmp(t[f].y)?(d[1]=t[h].add(t[f]),d[2]=t[h].toJ().mixedAdd(t[f].neg())):0===t[h].y.cmp(t[f].y.redNeg())?(d[1]=t[h].toJ().mixedAdd(t[f]),d[2]=t[h].add(t[f].neg())):(d[1]=t[h].toJ().mixedAdd(t[f]),d[2]=t[h].toJ().mixedAdd(t[f].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],m=E(r[h],r[f]);u=Math.max(m[0].length,u),s[h]=new Array(u),s[f]=new Array(u);for(var g=0;g<u;g++){var v=0|m[0][g],b=0|m[1][g];s[h][g]=p[3*(1+v)+(1+b)],s[f][g]=0,o[h]=d}}else s[h]=S(r[h],a[h]),s[f]=S(r[f],a[f]),u=Math.max(s[h].length,u),u=Math.max(s[f].length,u)}var y=this.jpoint(null,null,null),_=this._wnafT4;for(l=u;0<=l;l--){for(var w=0;0<=l;){var x=!0;for(g=0;g<i;g++)_[g]=0|s[g][l],0!==_[g]&&(x=!1);if(!x)break;w++,l--}if(0<=l&&w++,y=y.dblp(w),l<0)break;for(g=0;g<i;g++){var k,T=_[g];0!==T&&(0<T?k=o[g][T-1>>1]:T<0&&(k=o[g][-T-1>>1].neg()),y="affine"===k.type?y.mixedAdd(k):y.add(k))}}for(l=0;l<i;l++)o[l]=null;return n?y:y.toP()},(a.BasePoint=o).prototype.eq=function(){throw new Error("Not implemented")},o.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(e,t){e=n.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?h(e[e.length-1]%2==0):7===e[0]&&h(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},o.prototype.encodeCompressed=function(e){return this.encode(e,!0)},o.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},o.prototype.encode=function(e,t){return n.encode(this._encode(t),e)},o.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},o.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},o.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var a=0;a<e;a++)i=i.dbl();r.push(i)}return{step:e,points:r}},o.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=1==r?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},o.prototype._getBeta=function(){return null},o.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../../elliptic":69,"bn.js":17}],71:[function(e,t,r){"use strict";var i=e("../curve"),n=e("../../elliptic"),u=e("bn.js"),a=e("inherits"),o=i.base,s=n.utils.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new u(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,n){o.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new u(t,16),this.y=new u(r,16),this.z=i?new u(i,16):this.curve.one,this.t=n&&new u(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(l,o),(t.exports=l).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},l.prototype.pointFromX=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=i.redMul(n.redInvm()),o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},l.prototype.pointFromY=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.one),n=r.redMul(this.d).redAdd(this.one),a=i.redMul(n.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return o.isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(c,o.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),o=a.redSub(r),s=i.redSub(t),u=n.redMul(o),l=a.redMul(s),c=n.redMul(s),h=o.redMul(a);return this.curve.point(u,l,h,c)},c.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(l=this.curve._mulA(n)).redAdd(a);if(this.zOne)e=i.redSub(n).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(l.redSub(a)),r=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),u=o.redSub(s).redISub(s);e=i.redSub(n).redISub(a).redMul(u),t=o.redMul(l.redSub(a)),r=o.redMul(u)}}else{var l=n.redAdd(a);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=l.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(l)).redMul(u),t=this.curve._mulC(l).redMul(n.redISub(a)),r=l.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=n.redSub(i),s=n.redAdd(i),u=r.redAdd(t),l=a.redMul(o),c=s.redMul(u),h=a.redMul(u),f=o.redMul(s);return this.curve.point(l,c,f,h)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),u=n.redSub(s),l=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),h=i.redMul(u).redMul(c);return r=this.curve.twisted?(t=i.redMul(l).redMul(o.redSub(this.curve._mulA(a))),u.redMul(l)):(t=i.redMul(l).redMul(o.redSub(a)),this.curve._mulC(u).redMul(l)),this.curve.point(h,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],72:[function(e,t,r){"use strict";var i=r;i.base=e("./base"),i.short=e("./short"),i.mont=e("./mont"),i.edwards=e("./edwards")},{"./base":70,"./edwards":71,"./mont":73,"./short":74}],73:[function(e,t,r){"use strict";var i=e("../curve"),n=e("bn.js"),a=e("inherits"),o=i.base,s=e("../../elliptic").utils;function u(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(u,o),(t.exports=u).prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},a(l,o.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new l(this,e,t)},u.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),o=n.redMul(i),s=t.z.redMul(a.redAdd(o).redSqr()),u=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,u)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;0<=a;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],74:[function(e,t,r){"use strict";var i=e("../curve"),n=e("../../elliptic"),w=e("bn.js"),a=e("inherits"),o=i.base,s=n.utils.assert;function u(e){o.call(this,"short",e),this.a=new w(e.a,16).toRed(this.red),this.b=new w(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,r,i){o.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new w(t,16),this.y=new w(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,i){o.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new w(0)):(this.x=new w(t,16),this.y=new w(r,16),this.z=new w(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(u,o),(t.exports=u).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new w(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);t=(t=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new w(e.lambda,16);else{var n=this._getEndoRoots(this.n);0===this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))?r=n[0]:(r=n[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new w(e.a,16),b:new w(e.b,16)}}):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:w.mont(e),r=new w(2).toRed(t).redInvm(),i=r.redNeg(),n=new w(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,i,n,a,o,s,u,l,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),d=new w(1),p=new w(0),m=new w(0),g=new w(1),v=0;0!==h.cmpn(0);){var b=f.div(h);u=f.sub(b.mul(h)),l=m.sub(b.mul(d));var y=g.sub(b.mul(p));if(!i&&u.cmp(c)<0)t=s.neg(),r=d,i=u.neg(),n=l;else if(i&&2==++v)break;f=h,h=s=u,m=d,d=l,g=p,p=y}a=u.neg(),o=l;var _=i.sqr().add(n.sqr());return 0<=a.sqr().add(o.sqr()).cmp(_)&&(a=t,o=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:i,b:n},{a:a,b:o}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=n.mul(r.a),s=a.mul(i.a),u=n.mul(r.b),l=a.mul(i.b);return{k1:e.sub(o).sub(s),k2:u.add(l).neg()}},u.prototype.pointFromX=function(e,t){(e=new w(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],u=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),u=u.neg(!0)),i[2*a]=s,i[2*a+1]=u,n[2*a]=o.k1,n[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,i,n,2*a,r),c=0;c<2*a;c++)i[c]=null,n[c]=null;return l},a(l,o.BasePoint),u.prototype.point=function(e,t,r){return new l(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],r);if(!e[2])return i;function n(e){return t.point(e[0],e[1],r)}var a=e[2];return i.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[i].concat(a.doubles.points.map(n))},naf:a.naf&&{wnd:a.naf.wnd,points:[i].concat(a.naf.points.map(n))}},i},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new w(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},l.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,o.BasePoint),u.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),u=a.redSub(o);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),h=i.redMul(l),f=u.redSqr().redIAdd(c).redISub(h).redISub(h),d=u.redMul(h.redISub(f)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,d,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(i),s=n.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),c=r.redMul(u),h=s.redSqr().redIAdd(l).redISub(c).redISub(c),f=s.redMul(c.redISub(h)).redISub(n.redMul(l)),d=this.z.redMul(o);return this.curve.jpoint(h,f,d)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var i=this.curve.a,n=this.curve.tinv,a=this.x,o=this.y,s=this.z,u=s.redSqr().redSqr(),l=o.redAdd(o);for(r=0;r<e;r++){var c=a.redSqr(),h=l.redSqr(),f=h.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(i.redMul(u)),p=a.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=d.redMul(g);v=v.redIAdd(v).redISub(f);var b=l.redMul(s);r+1<e&&(u=u.redMul(f)),a=m,s=b,l=v}return this.curve.jpoint(a,l.redMul(n),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i),u=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=u,t=s.redMul(o.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),h=this.y.redSqr(),f=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(c).redISub(f);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=f.redIAdd(f);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),u=s.redSqr().redISub(o).redISub(o);e=u;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),h=this.y.redSqr(),f=this.x.redMul(h),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(c);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=d.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(n)),u=t.redAdd(t),l=(u=u.redIAdd(u)).redMul(o),c=s.redSqr().redISub(l.redAdd(l)),h=l.redISub(c),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=s.redMul(h).redISub(f),p=r.redAdd(r).redMul(i);return this.curve.jpoint(c,d,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),i=t.redSqr(),n=e.redAdd(e).redIAdd(e),a=n.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(i),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),u=i.redIAdd(i);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var l=n.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(u),c=t.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var h=this.x.redMul(s).redISub(c);h=(h=h.redIAdd(h)).redIAdd(h);var f=this.y.redMul(l.redMul(u.redISub(l)).redISub(o.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,f,d)},c.prototype.mul=function(e,t){return e=new w(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var i=t.redMul(this.z),n=r.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(i)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],75:[function(e,t,r){"use strict";var i,n=r,a=e("hash.js"),o=e("../elliptic"),s=o.utils.assert;function u(e){"short"===e.type?this.curve=new o.curve.short(e):"edwards"===e.type?this.curve=new o.curve.edwards(e):this.curve=new o.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,r){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var e=new u(r);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:e}),e}})}n.PresetCurve=u,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("./precomputed/secp256k1")}catch(e){i=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"../elliptic":69,"./precomputed/secp256k1":82,"hash.js":88}],76:[function(e,t,r){"use strict";var g=e("bn.js"),v=e("hmac-drbg"),a=e("../../elliptic"),d=a.utils.assert,i=e("./key"),b=e("./signature");function n(e){if(!(this instanceof n))return new n(e);"string"==typeof e&&(d(a.curves.hasOwnProperty(e),"Unknown curve "+e),e=a.curves[e]),e instanceof a.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=n).prototype.keyPair=function(e){return new i(this,e)},n.prototype.keyFromPrivate=function(e,t){return i.fromPrivate(this,e,t)},n.prototype.keyFromPublic=function(e,t){return i.fromPublic(this,e,t)},n.prototype.genKeyPair=function(e){e||(e={});for(var t=new v({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new g(2));;){var n=new g(t.generate(r));if(!(0<n.cmp(i)))return n.iaddn(1),this.keyFromPrivate(n)}},n.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return 0<r&&(e=e.ushrn(r)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},n.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new g(e,16));for(var n=this.n.byteLength(),a=t.getPrivate().toArray("be",n),o=e.toArray("be",n),s=new v({hash:this.hash,entropy:a,nonce:o,pers:i.pers,persEnc:i.persEnc||"utf8"}),u=this.n.sub(new g(1)),l=0;;l++){var c=i.k?i.k(l):new g(s.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||0<=c.cmp(u))){var h=this.g.mul(c);if(!h.isInfinity()){var f=h.getX(),d=f.umod(this.n);if(0!==d.cmpn(0)){var p=c.invm(this.n).mul(d.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==f.cmp(d)?2:0);return i.canonical&&0<p.cmp(this.nh)&&(p=this.n.sub(p),m^=1),new b({r:d,s:p,recoveryParam:m})}}}}}},n.prototype.verify=function(e,t,r,i){e=this._truncateToN(new g(e,16)),r=this.keyFromPublic(r,i);var n=(t=new b(t,"hex")).r,a=t.s;if(n.cmpn(1)<0||0<=n.cmp(this.n))return!1;if(a.cmpn(1)<0||0<=a.cmp(this.n))return!1;var o,s=a.invm(this.n),u=s.mul(e).umod(this.n),l=s.mul(n).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&o.eqXToP(n):!(o=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(n)},n.prototype.recoverPubKey=function(e,t,r,i){d((3&r)===r,"The recovery param is more than two bits"),t=new b(t,i);var n=this.n,a=new g(e),o=t.r,s=t.s,u=1&r,l=r>>1;if(0<=o.cmp(this.curve.p.umod(this.curve.n))&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var c=t.r.invm(n),h=n.sub(a).mul(c).umod(n),f=s.mul(c).umod(n);return this.g.mulAdd(h,o,f)},n.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new b(t,i)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var a;try{a=this.recoverPubKey(e,t,n)}catch(e){continue}if(a.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":69,"./key":77,"./signature":78,"bn.js":17,"hmac-drbg":100}],77:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../../elliptic").utils.assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=a).fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../../elliptic":69,"bn.js":17}],78:[function(e,t,r){"use strict";var s=e("bn.js"),u=e("../../elliptic").utils,i=u.assert;function n(e,t){if(e instanceof n)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new s(e.r,16),this.s=new s(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function l(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,a=0,o=t.place;a<i;a++,o++)n<<=8,n|=e[o];return t.place=o,n}function o(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function h(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}(t.exports=n).prototype._importDER=function(e,t){e=u.toArray(e,t);var r=new l;if(48!==e[r.place++])return!1;if(c(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=c(e,r),n=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var a=c(e,r);if(e.length!==a+r.place)return!1;var o=e.slice(r.place,a+r.place);return 0===n[0]&&128&n[1]&&(n=n.slice(1)),0===o[0]&&128&o[1]&&(o=o.slice(1)),this.r=new s(n),this.s=new s(o),!(this.recoveryParam=null)},n.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=o(t),r=o(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];h(i,t.length),(i=i.concat(t)).push(2),h(i,r.length);var n=i.concat(r),a=[48];return h(a,n.length),a=a.concat(n),u.encode(a,e)}},{"../../elliptic":69,"bn.js":17}],79:[function(e,t,r){"use strict";var i=e("hash.js"),n=e("../../elliptic"),a=n.utils,o=a.assert,u=a.parseBytes,s=e("./key"),l=e("./signature");function c(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}(t.exports=c).prototype.sign=function(e,t){e=u(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),o=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),s=i.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:s,Rencoded:a})},c.prototype.verify=function(e,t,r){e=u(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},c.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),i=0!=(128&e[t]),n=a.intFromLE(r);return this.curve.pointFromY(n,i)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return a.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../../elliptic":69,"./key":80,"./signature":81,"hash.js":88}],80:[function(e,t,r){"use strict";var i=e("../../elliptic").utils,n=i.assert,a=i.parseBytes,o=i.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},s.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},t.exports=s},{"../../elliptic":69}],81:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../../elliptic").utils,a=n.assert,o=n.cachedProperty,s=n.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},{"../../elliptic":69,"bn.js":17}],82:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],83:[function(e,t,r){"use strict";var i=r,n=e("bn.js"),a=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");i.assert=a,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(e,t){for(var r=[],i=1<<t+1,n=e.clone();0<=n.cmpn(1);){var a;if(n.isOdd()){var o=n.andln(i-1);a=(i>>1)-1<o?(i>>1)-o:o,n.isubn(a)}else a=0;r.push(a);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,u=1;u<s;u++)r.push(0);n.iushrn(s)}return r},i.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;0<e.cmpn(-i)||0<t.cmpn(-n);){var a,o,s,u=e.andln(3)+i&3,l=t.andln(3)+n&3;3===u&&(u=-1),3===l&&(l=-1),a=0==(1&u)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==l?u:-u,r[0].push(a),o=0==(1&l)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==u?l:-l,r[1].push(o),2*i===a+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},{"bn.js":17,"minimalistic-assert":109,"minimalistic-crypto-utils":110}],84:[function(e,t,r){t.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"d:\\pixi-games\\pixi-compressed-textures\\node_modules\\browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],85:[function(e,t,r){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function u(e){return"function"==typeof e}function l(e){return"object"==typeof e&&null!==e}function c(e){return void 0===e}((t.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,r,i,n,a,o;if(this._events||(this._events={}),"error"===e&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(c(r=this._events[e]))return!1;if(u(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),r.apply(this,n)}else if(l(r))for(n=Array.prototype.slice.call(arguments,1),i=(o=r.slice()).length,a=0;a<i;a++)o[a].apply(this,n);return!0},i.prototype.on=i.prototype.addListener=function(e,t){var r;if(!u(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,u(t.listener)?t.listener:t),this._events[e]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(r=c(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&0<r&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.once=function(e,t){if(!u(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},i.prototype.removeListener=function(e,t){var r,i,n,a;if(!u(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=(r=this._events[e]).length,i=-1,r===t||u(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(l(r)){for(a=n;0<a--;)if(r[a]===t||r[a].listener&&r[a].listener===t){i=a;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(u(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?u(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(u(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],86:[function(e,t,r){var d=e("safe-buffer").Buffer,p=e("md5.js");t.exports=function(e,t,r,i){if(d.isBuffer(e)||(e=d.from(e,"binary")),t&&(d.isBuffer(t)||(t=d.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=d.alloc(n),o=d.alloc(i||0),s=d.alloc(0);0<n||0<i;){var u=new p;u.update(s),u.update(e),t&&u.update(t),s=u.digest();var l=0;if(0<n){var c=a.length-n;l=Math.min(n,s.length),s.copy(a,c,0,l),n-=l}if(l<s.length&&0<i){var h=o.length-i,f=Math.min(i,s.length-l);s.copy(o,h,l,l+f),i-=f}}return s.fill(0),{key:a,iv:o}}},{"md5.js":106,"safe-buffer":143}],87:[function(r,i,e){(function(s){"use strict";var t=r("stream").Transform;function e(e){t.call(this),this._block=new s(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r("inherits")(e,t),e.prototype._transform=function(e,t,r){var i=null;try{"buffer"!==t&&(e=new s(e,t)),this.update(e)}catch(e){i=e}r(i)},e.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},e.prototype.update=function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=new s(e,t||"binary"));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,o=8*e.length;0<o;++a)this._length[a]+=o,0<(o=this._length[a]/4294967296|0)&&(this._length[a]-=4294967296*o);return this},e.prototype._update=function(e){throw new Error("_update is not implemented")},e.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},e.prototype._digest=function(){throw new Error("_digest is not implemented")},i.exports=e}).call(this,r("buffer").Buffer)},{buffer:49,inherits:103,stream:152}],88:[function(e,t,r){var i=r;i.utils=e("./hash/utils"),i.common=e("./hash/common"),i.sha=e("./hash/sha"),i.ripemd=e("./hash/ripemd"),i.hmac=e("./hash/hmac"),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},{"./hash/common":89,"./hash/hmac":90,"./hash/ripemd":91,"./hash/sha":92,"./hash/utils":99}],89:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(r.BlockHash=a).prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,i=new Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,a=8;a<this.padLength;a++)i[n++]=0;return i}},{"./utils":99,"minimalistic-assert":109}],90:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,r))}(t.exports=a).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":99,"minimalistic-assert":109}],91:[function(e,t,r){"use strict";var i=e("./utils"),n=e("./common"),p=i.rotl32,m=i.sum32,g=i.sum32_3,v=i.sum32_4,a=n.BlockHash;function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function b(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function y(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function _(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}i.inherits(o,a),(r.ripemd160=o).blockSize=512,o.outSize=160,o.hmacStrength=192,o.padLength=64,o.prototype._update=function(e,t){for(var r=this.h[0],i=this.h[1],n=this.h[2],a=this.h[3],o=this.h[4],s=r,u=i,l=n,c=a,h=o,f=0;f<80;f++){var d=m(p(v(r,b(f,i,n,a),e[w[f]+t],y(f)),k[f]),o);r=o,o=a,a=p(n,10),n=i,i=d,d=m(p(v(s,b(79-f,u,l,c),e[x[f]+t],_(f)),T[f]),h),s=h,h=c,c=p(l,10),l=u,u=d}d=g(this.h[1],n,c),this.h[1]=g(this.h[2],a,h),this.h[2]=g(this.h[3],o,s),this.h[3]=g(this.h[4],r,u),this.h[4]=g(this.h[0],i,l),this.h[0]=d},o.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var w=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],x=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],T=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":89,"./utils":99}],92:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":93,"./sha/224":94,"./sha/256":95,"./sha/384":96,"./sha/512":97}],93:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),a=e("./common"),h=i.rotl32,f=i.sum32,d=i.sum32_5,p=a.ft_1,o=n.BlockHash,m=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=h(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4];for(i=0;i<r.length;i++){var l=~~(i/20),c=d(h(n,5),p(l,a,o,s),u,r[i],m[l]);u=s,s=o,o=h(a,30),a=n,n=c}this.h[0]=f(this.h[0],n),this.h[1]=f(this.h[1],a),this.h[2]=f(this.h[2],o),this.h[3]=f(this.h[3],s),this.h[4]=f(this.h[4],u)},s.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":89,"../utils":99,"./common":98}],94:[function(e,t,r){"use strict";var i=e("../utils"),n=e("./256");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(a,n),(t.exports=a).blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},{"../utils":99,"./256":95}],95:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),a=e("./common"),p=e("minimalistic-assert"),m=i.sum32,g=i.sum32_4,v=i.sum32_5,b=a.ch32,y=a.maj32,_=a.s0_256,w=a.s1_256,x=a.g0_256,k=a.g1_256,o=n.BlockHash,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function u(){if(!(this instanceof u))return new u;o.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}i.inherits(u,o),(t.exports=u).blockSize=512,u.outSize=256,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=g(k(r[i-2]),r[i-7],x(r[i-15]),r[i-16]);var n=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],l=this.h[5],c=this.h[6],h=this.h[7];for(p(this.k.length===r.length),i=0;i<r.length;i++){var f=v(h,w(u),b(u,l,c),this.k[i],r[i]),d=m(_(n),y(n,a,o));h=c,c=l,l=u,u=m(s,f),s=o,o=a,a=n,n=m(f,d)}this.h[0]=m(this.h[0],n),this.h[1]=m(this.h[1],a),this.h[2]=m(this.h[2],o),this.h[3]=m(this.h[3],s),this.h[4]=m(this.h[4],u),this.h[5]=m(this.h[5],l),this.h[6]=m(this.h[6],c),this.h[7]=m(this.h[7],h)},u.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":89,"../utils":99,"./common":98,"minimalistic-assert":109}],96:[function(e,t,r){"use strict";var i=e("../utils"),n=e("./512");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(a,n),(t.exports=a).blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},{"../utils":99,"./512":97}],97:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),D=e("minimalistic-assert"),a=i.rotr64_hi,o=i.rotr64_lo,s=i.shr64_hi,u=i.shr64_lo,j=i.sum64,L=i.sum64_hi,z=i.sum64_lo,f=i.sum64_4_hi,d=i.sum64_4_lo,F=i.sum64_5_hi,B=i.sum64_5_lo,l=n.BlockHash,c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=c,this.W=new Array(160)}function N(e,t,r,i,n){var a=e&r^~e&n;return a<0&&(a+=4294967296),a}function U(e,t,r,i,n,a){var o=t&i^~t&a;return o<0&&(o+=4294967296),o}function X(e,t,r,i,n){var a=e&r^e&n^r&n;return a<0&&(a+=4294967296),a}function q(e,t,r,i,n,a){var o=t&i^t&a^i&a;return o<0&&(o+=4294967296),o}function H(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function W(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function G(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function V(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function p(e,t){var r=a(e,t,1)^a(e,t,8)^s(e,t,7);return r<0&&(r+=4294967296),r}function m(e,t){var r=o(e,t,1)^o(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function g(e,t){var r=a(e,t,19)^a(t,e,29)^s(e,t,6);return r<0&&(r+=4294967296),r}function v(e,t){var r=o(e,t,19)^o(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}i.inherits(h,l),(t.exports=h).blockSize=1024,h.outSize=512,h.hmacStrength=192,h.padLength=128,h.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){var n=g(r[i-4],r[i-3]),a=v(r[i-4],r[i-3]),o=r[i-14],s=r[i-13],u=p(r[i-30],r[i-29]),l=m(r[i-30],r[i-29]),c=r[i-32],h=r[i-31];r[i]=f(n,a,o,s,u,l,c,h),r[i+1]=d(n,a,o,s,u,l,c,h)}},h.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,i=this.h[0],n=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],u=this.h[5],l=this.h[6],c=this.h[7],h=this.h[8],f=this.h[9],d=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],v=this.h[14],b=this.h[15];D(this.k.length===r.length);for(var y=0;y<r.length;y+=2){var _=v,w=b,x=G(h,f),k=V(h,f),T=N(h,f,d,p,m),S=U(h,f,d,p,m,g),E=this.k[y],M=this.k[y+1],P=r[y],C=r[y+1],A=F(_,w,x,k,T,S,E,M,P,C),O=B(_,w,x,k,T,S,E,M,P,C);_=H(i,n),w=W(i,n),x=X(i,n,a,o,s),k=q(i,n,a,o,s,u);var I=L(_,w,x,k),R=z(_,w,x,k);v=m,b=g,m=d,g=p,d=h,p=f,h=L(l,c,A,O),f=z(c,c,A,O),l=s,c=u,s=a,u=o,a=i,o=n,i=L(A,O,I,R),n=z(A,O,I,R)}j(this.h,0,i,n),j(this.h,2,a,o),j(this.h,4,s,u),j(this.h,6,l,c),j(this.h,8,h,f),j(this.h,10,d,p),j(this.h,12,m,g),j(this.h,14,v,b)},h.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":89,"../utils":99,"minimalistic-assert":109}],98:[function(e,t,r){"use strict";var i=e("../utils").rotr32;function n(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}r.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?o(t,r,i):2===e?a(t,r,i):void 0},r.ch32=n,r.maj32=a,r.p32=o,r.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},r.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},r.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},r.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},{"../utils":99}],99:[function(e,t,r){"use strict";var l=e("minimalistic-assert"),i=e("inherits");function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function n(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=i,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var n=e.charCodeAt(i),a=n>>8,o=255&n;a?r.push(a,o):r.push(o)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t},r.htonl=a,r.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];"little"===t&&(n=a(n)),r+=o(n.toString(16))}return r},r.zero2=n,r.zero8=o,r.join32=function(e,t,r,i){var n=r-t;l(n%4==0);for(var a=new Array(n/4),o=0,s=t;o<a.length;o++,s+=4){var u;u="big"===i?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[o]=u>>>0}return a},r.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var a=e[i];"big"===t?(r[n]=a>>>24,r[n+1]=a>>>16&255,r[n+2]=a>>>8&255,r[n+3]=255&a):(r[n+3]=a>>>24,r[n+2]=a>>>16&255,r[n+1]=a>>>8&255,r[n]=255&a)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},r.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},r.sum64=function(e,t,r,i){var n=e[t],a=i+e[t+1]>>>0,o=(a<i?1:0)+r+n;e[t]=o>>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,i){return(t+i>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,i){return t+i>>>0},r.sum64_4_hi=function(e,t,r,i,n,a,o,s){var u=0,l=t;return u+=(l=l+i>>>0)<t?1:0,u+=(l=l+a>>>0)<a?1:0,e+r+n+o+(u+=(l=l+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(e,t,r,i,n,a,o,s){return t+i+a+s>>>0},r.sum64_5_hi=function(e,t,r,i,n,a,o,s,u,l){var c=0,h=t;return c+=(h=h+i>>>0)<t?1:0,c+=(h=h+a>>>0)<a?1:0,c+=(h=h+s>>>0)<s?1:0,e+r+n+o+u+(c+=(h=h+l>>>0)<l?1:0)>>>0},r.sum64_5_lo=function(e,t,r,i,n,a,o,s,u,l){return t+i+a+s+l>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:103,"minimalistic-assert":109}],100:[function(e,t,r){"use strict";var i=e("hash.js"),o=e("minimalistic-crypto-utils"),n=e("minimalistic-assert");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),r=o.toArray(e.nonce,e.nonceEnc||"hex"),i=o.toArray(e.pers,e.persEnc||"hex");n(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}(t.exports=a).prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,i){"string"!=typeof t&&(i=r,r=t,t=null),e=o.toArray(e,t),r=o.toArray(r,i),n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=o.toArray(r,i||"hex"),this._update(r));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var a=n.slice(0,e);return this._update(r),this._reseed++,o.encode(a,t)}},{"hash.js":88,"minimalistic-assert":109,"minimalistic-crypto-utils":110}],101:[function(e,t,r){r.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,u=(1<<s)-1,l=u>>1,c=-7,h=r?n-1:0,f=r?-1:1,d=e[t+h];for(h+=f,a=d&(1<<-c)-1,d>>=-c,c+=s;0<c;a=256*a+e[t+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;0<c;o=256*o+e[t+h],h+=f,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,i),a-=l}return(d?-1:1)*o*Math.pow(2,a-i)},r.write=function(e,t,r,i,n,a){var o,s,u,l=8*a-n-1,c=(1<<l)-1,h=c>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:a-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),2<=(t+=1<=o+h?f/u:f*Math.pow(2,1-h))*u&&(o++,u/=2),c<=o+h?(s=0,o=c):1<=o+h?(s=(t*u-1)*Math.pow(2,n),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),o=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(o=o<<n|s,l+=n;0<l;e[r+d]=255&o,d+=p,o/=256,l-=8);e[r+d-p]|=128*m}},{}],102:[function(e,t,r){var i=[].indexOf;t.exports=function(e,t){if(i)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},{}],103:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],104:[function(e,t,r){function i(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(i(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&i(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],105:[function(e,t,r){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],106:[function(n,a,e){(function(t){"use strict";var e=n("inherits"),r=n("hash-base"),o=new Array(16);function i(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<<t|e>>>32-t}function u(e,t,r,i,n,a,o){return s(e+(t&r|~t&i)+n+a|0,o)+t|0}function l(e,t,r,i,n,a,o){return s(e+(t&i|r&~i)+n+a|0,o)+t|0}function c(e,t,r,i,n,a,o){return s(e+(t^r^i)+n+a|0,o)+t|0}function h(e,t,r,i,n,a,o){return s(e+(r^(t|~i))+n+a|0,o)+t|0}e(i,r),i.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,a=this._d;i=h(i=h(i=h(i=h(i=c(i=c(i=c(i=c(i=l(i=l(i=l(i=l(i=u(i=u(i=u(i=u(i,n=u(n,a=u(a,r=u(r,i,n,a,e[0],3614090360,7),i,n,e[1],3905402710,12),r,i,e[2],606105819,17),a,r,e[3],3250441966,22),n=u(n,a=u(a,r=u(r,i,n,a,e[4],4118548399,7),i,n,e[5],1200080426,12),r,i,e[6],2821735955,17),a,r,e[7],4249261313,22),n=u(n,a=u(a,r=u(r,i,n,a,e[8],1770035416,7),i,n,e[9],2336552879,12),r,i,e[10],4294925233,17),a,r,e[11],2304563134,22),n=u(n,a=u(a,r=u(r,i,n,a,e[12],1804603682,7),i,n,e[13],4254626195,12),r,i,e[14],2792965006,17),a,r,e[15],1236535329,22),n=l(n,a=l(a,r=l(r,i,n,a,e[1],4129170786,5),i,n,e[6],3225465664,9),r,i,e[11],643717713,14),a,r,e[0],3921069994,20),n=l(n,a=l(a,r=l(r,i,n,a,e[5],3593408605,5),i,n,e[10],38016083,9),r,i,e[15],3634488961,14),a,r,e[4],3889429448,20),n=l(n,a=l(a,r=l(r,i,n,a,e[9],568446438,5),i,n,e[14],3275163606,9),r,i,e[3],4107603335,14),a,r,e[8],1163531501,20),n=l(n,a=l(a,r=l(r,i,n,a,e[13],2850285829,5),i,n,e[2],4243563512,9),r,i,e[7],1735328473,14),a,r,e[12],2368359562,20),n=c(n,a=c(a,r=c(r,i,n,a,e[5],4294588738,4),i,n,e[8],2272392833,11),r,i,e[11],1839030562,16),a,r,e[14],4259657740,23),n=c(n,a=c(a,r=c(r,i,n,a,e[1],2763975236,4),i,n,e[4],1272893353,11),r,i,e[7],4139469664,16),a,r,e[10],3200236656,23),n=c(n,a=c(a,r=c(r,i,n,a,e[13],681279174,4),i,n,e[0],3936430074,11),r,i,e[3],3572445317,16),a,r,e[6],76029189,23),n=c(n,a=c(a,r=c(r,i,n,a,e[9],3654602809,4),i,n,e[12],3873151461,11),r,i,e[15],530742520,16),a,r,e[2],3299628645,23),n=h(n,a=h(a,r=h(r,i,n,a,e[0],4096336452,6),i,n,e[7],1126891415,10),r,i,e[14],2878612391,15),a,r,e[5],4237533241,21),n=h(n,a=h(a,r=h(r,i,n,a,e[12],1700485571,6),i,n,e[3],2399980690,10),r,i,e[10],4293915773,15),a,r,e[1],2240044497,21),n=h(n,a=h(a,r=h(r,i,n,a,e[8],1873313359,6),i,n,e[15],4264355552,10),r,i,e[6],2734768916,15),a,r,e[13],1309151649,21),n=h(n,a=h(a,r=h(r,i,n,a,e[4],4149444226,6),i,n,e[11],3174756917,10),r,i,e[2],718787259,15),a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},a.exports=i}).call(this,n("buffer").Buffer)},{buffer:49,"hash-base":107,inherits:103}],107:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,i=e("stream").Transform;function n(e){i.call(this),this._block=s.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(n,i),n.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},n.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,t){if(function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=s.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,o=8*e.length;0<o;++a)this._length[a]+=o,0<(o=this._length[a]/4294967296|0)&&(this._length[a]-=4294967296*o);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n},{inherits:103,"safe-buffer":143,stream:152}],108:[function(e,t,r){var d=e("bn.js"),i=e("brorand");function n(e){this.rand=e||new i.Rand}(t.exports=n).create=function(e){return new n(e)},n.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new d(this.rand.generate(r))}while(0<=i.cmp(e));return i},n.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},n.prototype.test=function(e,t,r){var i=e.bitLength(),n=d.mont(e),a=new d(1).toRed(n);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var u=e.shrn(s),l=o.toRed(n);0<t;t--){var c=this._randrange(new d(2),o);r&&r(c);var h=c.toRed(n).redPow(u);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var f=1;f<s;f++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(l))break}if(f===s)return!1}}return!0},n.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=d.mont(e),n=new d(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),o=0;!a.testn(o);o++);for(var s=e.shrn(o),u=a.toRed(i);0<t;t--){var l=this._randrange(new d(2),a),c=e.gcd(l);if(0!==c.cmpn(1))return c;var h=l.toRed(i).redPow(s);if(0!==h.cmp(n)&&0!==h.cmp(u)){for(var f=1;f<o;f++){if(0===(h=h.redSqr()).cmp(n))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(u))break}if(f===o)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":17,brorand:18}],109:[function(e,t,r){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}(t.exports=i).equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],110:[function(e,t,r){"use strict";var i=r;function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}i.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16));else for(i=0;i<e.length;i++){var n=e.charCodeAt(i),a=n>>8,o=255&n;a?r.push(a,o):r.push(o)}return r},i.zero2=n,i.toHex=a,i.encode=function(e,t){return"hex"===t?a(e):e}},{}],111:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],112:[function(e,t,r){"use strict";var i=e("asn1.js");r.certificate=e("./certificate");var n=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=n;var a=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=a;var o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});r.PublicKey=o;var s=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),u=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});r.PrivateKey=u;var l=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=l;var c=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=c,r.DSAparam=i.define("DSAparam",function(){this.int()});var h=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=h;var f=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":113,"asn1.js":2}],113:[function(e,t,r){"use strict";var i=e("asn1.js"),n=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),u=i.define("RelativeDistinguishedName",function(){this.setof(a)}),l=i.define("RDNSequence",function(){this.seqof(u)}),c=i.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),h=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))}),f=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(c),this.key("validity").use(h),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),p=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":2}],114:[function(e,t,r){(function(f){var d=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,p=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,m=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,g=e("evp_bytestokey"),v=e("browserify-aes");t.exports=function(e,t){var r,i=e.toString(),n=i.match(d);if(n){var a="aes"+n[1],o=new f(n[2],"hex"),s=new f(n[3].replace(/\r?\n/g,""),"base64"),u=g(t,o.slice(0,8),parseInt(n[1],10)).key,l=[],c=v.createDecipheriv(a,u,o);l.push(c.update(s)),l.push(c.final()),r=f.concat(l)}else{var h=i.match(m);r=new f(h[2].replace(/\r?\n/g,""),"base64")}return{tag:i.match(p)[1],data:r}}}).call(this,e("buffer").Buffer)},{"browserify-aes":22,buffer:49,evp_bytestokey:86}],115:[function(t,r,e){(function(h){var s=t("./asn1"),f=t("./aesid.json"),u=t("./fixProc"),d=t("browserify-aes"),p=t("pbkdf2");function e(e){var t;"object"!=typeof e||h.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=new h(e));var r,i,n=u(e,t),a=n.tag,o=n.data;switch(a){case"CERTIFICATE":i=s.certificate.decode(o,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=s.PublicKey.decode(o,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return s.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=s.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+a);case"ENCRYPTED PRIVATE KEY":o=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=f[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,o=e.subjectPrivateKey,s=parseInt(n.split("-")[1],10)/8,u=p.pbkdf2Sync(t,r,i,s),l=d.createDecipheriv(n,u,a),c=[];return c.push(l.update(o)),c.push(l.final()),h.concat(c)}(o=s.EncryptedPrivateKey.decode(o,"der"),t);case"PRIVATE KEY":switch(r=(i=s.PrivateKey.decode(o,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return s.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:s.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=s.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+a);case"RSA PUBLIC KEY":return s.RSAPublicKey.decode(o,"der");case"RSA PRIVATE KEY":return s.RSAPrivateKey.decode(o,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:s.DSAPrivateKey.decode(o,"der")};case"EC PRIVATE KEY":return{curve:(o=s.ECPrivateKey.decode(o,"der")).parameters.value,privateKey:o.privateKey};default:throw new Error("unknown key type "+a)}}(r.exports=e).signature=s.signature}).call(this,t("buffer").Buffer)},{"./aesid.json":111,"./asn1":112,"./fixProc":114,"browserify-aes":22,buffer:49,pbkdf2:117}],116:[function(e,t,l){(function(n){function a(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return t.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}l.resolve=function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i.charAt(0))}return(t?"/":"")+(e=a(s(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},l.normalize=function(e){var t=l.isAbsolute(e),r="/"===i(e,-1);return(e=a(s(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},l.isAbsolute=function(e){return"/"===e.charAt(0)},l.join=function(){var e=Array.prototype.slice.call(arguments,0);return l.normalize(s(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},l.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=l.resolve(e).substr(1),t=l.resolve(t).substr(1);for(var i=r(e.split("/")),n=r(t.split("/")),a=Math.min(i.length,n.length),o=a,s=0;s<a;s++)if(i[s]!==n[s]){o=s;break}var u=[];for(s=o;s<i.length;s++)u.push("..");return(u=u.concat(n.slice(o))).join("/")},l.sep="/",l.delimiter=":",l.dirname=function(e){var t=o(e),r=t[0],i=t[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},l.basename=function(e,t){var r=o(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},l.extname=function(e){return o(e)[3]};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:123}],117:[function(e,t,r){r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":118,"./lib/sync":121}],118:[function(t,r,e){(function(u,l){var c,e=t("./precondition"),h=t("./default-encoding"),f=t("./sync"),d=t("safe-buffer").Buffer,p=l.crypto&&l.crypto.subtle,m={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},g=[];function v(e,t,r,i,n){return p.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return p.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,i<<3)}).then(function(e){return d.from(e)})}r.exports=function(t,r,i,n,a,o){if(d.isBuffer(t)||(t=d.from(t,h)),d.isBuffer(r)||(r=d.from(r,h)),e(i,n),"function"==typeof a&&(o=a,a=void 0),"function"!=typeof o)throw new Error("No callback provided to pbkdf2");var s=m[(a=a||"sha1").toLowerCase()];if(!s||"function"!=typeof l.Promise)return u.nextTick(function(){var e;try{e=f(t,r,i,n,a)}catch(e){return o(e)}o(null,e)});!function(e,t){e.then(function(e){u.nextTick(function(){t(null,e)})},function(e){u.nextTick(function(){t(e)})})}(function(e){if(l.process&&!l.process.browser)return Promise.resolve(!1);if(!p||!p.importKey||!p.deriveBits)return Promise.resolve(!1);if(void 0!==g[e])return g[e];var t=v(c=c||d.alloc(8),c,10,128,e).then(function(){return!0}).catch(function(){return!1});return g[e]=t}(s).then(function(e){return e?v(t,r,i,n,s):f(t,r,i,n,a)}),o)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":119,"./precondition":120,"./sync":121,_process:123,"safe-buffer":143}],119:[function(e,r,t){(function(e){var t;e.browser?t="utf-8":t=6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=t}).call(this,e("_process"))},{_process:123}],120:[function(e,t,r){var i=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||i<t||t!=t)throw new TypeError("Bad key length")}},{}],121:[function(e,t,r){var l=e("create-hash/md5"),c=e("ripemd160"),h=e("sha.js"),g=e("./precondition"),v=e("./default-encoding"),b=e("safe-buffer").Buffer,f=b.alloc(128),y={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function _(e,t,r){var i=function(t){return"rmd160"===t||"ripemd160"===t?c:"md5"===t?l:function(e){return h(t).update(e).digest()}}(e),n="sha512"===e||"sha384"===e?128:64;t.length>n?t=i(t):t.length<n&&(t=b.concat([t,f],n));for(var a=b.allocUnsafe(n+y[e]),o=b.allocUnsafe(n+y[e]),s=0;s<n;s++)a[s]=54^t[s],o[s]=92^t[s];var u=b.allocUnsafe(n+r+4);a.copy(u,0,0,n),this.ipad1=u,this.ipad2=a,this.opad=o,this.alg=e,this.blocksize=n,this.hash=i,this.size=y[e]}_.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,i,n){b.isBuffer(e)||(e=b.from(e,v)),b.isBuffer(t)||(t=b.from(t,v)),g(r,i);var a=new _(n=n||"sha1",e,t.length),o=b.allocUnsafe(i),s=b.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var u=0,l=y[n],c=Math.ceil(i/l),h=1;h<=c;h++){s.writeUInt32BE(h,t.length);for(var f=a.run(s,a.ipad1),d=f,p=1;p<r;p++){d=a.run(d,a.ipad2);for(var m=0;m<l;m++)f[m]^=d[m]}f.copy(o,u),u+=l}return o}},{"./default-encoding":119,"./precondition":120,"create-hash/md5":55,ripemd160:142,"safe-buffer":143,"sha.js":145}],122:[function(e,t,r){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports=function(e,t,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var n,a,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,i)});default:for(n=new Array(o-1),a=0;a<n.length;)n[a++]=arguments[a];return s.nextTick(function(){e.apply(null,n)})}}:t.exports=s.nextTick}).call(this,e("_process"))},{_process:123}],123:[function(e,t,r){var i,n,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l,c=[],h=!1,f=-1;function d(){h&&l&&(h=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!h){var e=u(d);h=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,h=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||h||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],124:[function(e,t,r){r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":126,"./publicEncrypt":127}],125:[function(e,t,r){(function(a){var o=e("create-hash");function s(e){var t=new a(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var r,i=new a(""),n=0;i.length<t;)r=s(n++),i=a.concat([i,o("sha1").update(e).update(r).digest()]);return i.slice(0,t)}}).call(this,e("buffer").Buffer)},{buffer:49,"create-hash":53}],126:[function(e,t,r){(function(c){var u=e("parse-asn1"),h=e("./mgf"),f=e("./xor"),l=e("bn.js"),d=e("browserify-rsa"),p=e("create-hash"),m=e("./withPublic");t.exports=function(e,t,r){var i;i=e.padding?e.padding:r?1:4;var n,a=u(e),o=a.modulus.byteLength();if(t.length>o||0<=new l(t).cmp(a.modulus))throw new Error("decryption error");n=r?m(new l(t),a):d(t,a);var s=new c(o-n.length);if(s.fill(0),n=c.concat([s,n],o),4===i)return function(e,t){e.modulus;var r=e.modulus.byteLength(),i=(t.length,p("sha1").update(new c("")).digest()),n=i.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,n+1),o=t.slice(n+1),s=f(a,h(o,n)),u=f(o,h(s,r-n-1));if(function(e,t){e=new c(e),t=new c(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));var n=-1;for(;++n<i;)r+=e[n]^t[n];return r}(i,u.slice(0,n)))throw new Error("decryption error");var l=n;for(;0===u[l];)l++;if(1===u[l++])return u.slice(l);throw new Error("decryption error")}(a,n);if(1===i)return function(e,t,r){var i=t.slice(0,2),n=2,a=0;for(;0!==t[n++];)if(n>=t.length){a++;break}var o=t.slice(2,n-1);t.slice(n-1,n);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(n)}(0,n,r);if(3===i)return n;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":125,"./withPublic":128,"./xor":129,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hash":53,"parse-asn1":115}],127:[function(e,t,r){(function(f){var o=e("parse-asn1"),d=e("randombytes"),p=e("create-hash"),m=e("./mgf"),g=e("./xor"),v=e("bn.js"),s=e("./withPublic"),u=e("browserify-rsa");t.exports=function(e,t,r){var i;i=e.padding?e.padding:r?1:4;var n,a=o(e);if(4===i)n=function(e,t){var r=e.modulus.byteLength(),i=t.length,n=p("sha1").update(new f("")).digest(),a=n.length,o=2*a;if(r-o-2<i)throw new Error("message too long");var s=new f(r-i-o-2);s.fill(0);var u=r-a-1,l=d(a),c=g(f.concat([n,s,new f([1]),t],u),m(l,u)),h=g(l,m(c,a));return new v(f.concat([new f([0]),h,c],r))}(a,t);else if(1===i)n=function(e,t,r){var i,n=t.length,a=e.modulus.byteLength();if(a-11<n)throw new Error("message too long");r?(i=new f(a-n-3)).fill(255):i=function(e,t){var r,i=new f(e),n=0,a=d(2*e),o=0;for(;n<e;)o===a.length&&(a=d(2*e),o=0),(r=a[o++])&&(i[n++]=r);return i}(a-n-3);return new v(f.concat([new f([0,r?1:2]),i,new f([0]),t],a))}(a,t,r);else{if(3!==i)throw new Error("unknown padding");if(0<=(n=new v(t)).cmp(a.modulus))throw new Error("data too long for modulus")}return r?u(n,a):s(n,a)}}).call(this,e("buffer").Buffer)},{"./mgf":125,"./withPublic":128,"./xor":129,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hash":53,"parse-asn1":115,randombytes:130}],128:[function(e,t,r){(function(r){var i=e("bn.js");t.exports=function(e,t){return new r(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}}).call(this,e("buffer").Buffer)},{"bn.js":17,buffer:49}],129:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,i=-1;++i<r;)e[i]^=t[i];return e}},{}],130:[function(e,t,r){(function(n,a){"use strict";var o=e("safe-buffer").Buffer,s=a.crypto||a.msCrypto;s&&s.getRandomValues?t.exports=function(e,t){if(65536<e)throw new Error("requested too many random bytes");var r=new a.Uint8Array(e);0<e&&s.getRandomValues(r);var i=o.from(r.buffer);return"function"!=typeof t?i:n.nextTick(function(){t(null,i)})}:t.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:123,"safe-buffer":143}],131:[function(r,e,d){(function(o,n){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=r("safe-buffer"),s=r("randombytes"),a=t.Buffer,i=t.kMaxLength,u=n.crypto||n.msCrypto,l=Math.pow(2,32)-1;function c(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(l<e||e<0)throw new TypeError("offset must be a uint32");if(i<e||t<e)throw new RangeError("offset out of range")}function h(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(l<e||e<0)throw new TypeError("size must be a uint32");if(r<e+t||i<e)throw new RangeError("buffer too small")}function f(r,i,e,n){if(o.browser){var t=r.buffer,a=new Uint8Array(t,i,e);return u.getRandomValues(a),n?void o.nextTick(function(){n(null,r)}):r}if(!n)return s(e).copy(r,i),r;s(e,function(e,t){if(e)return n(e);t.copy(r,i),n(null,r)})}u&&u.getRandomValues||!o.browser?(d.randomFill=function(e,t,r,i){if(!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return c(t,e.length),h(r,t,e.length),f(e,t,r,i)},d.randomFillSync=function(e,t,r){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(t,e.length),void 0===r&&(r=e.length-t);return h(r,t,e.length),f(e,t,r)}):(d.randomFill=e,d.randomFillSync=e)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:123,randombytes:130,"safe-buffer":143}],132:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":133}],133:[function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=h;var n=e("process-nextick-args"),a=e("core-util-is");a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(h,o);for(var u=i(s.prototype),l=0;l<u.length;l++){var c=u[l];h.prototype[c]||(h.prototype[c]=s.prototype[c])}function h(e){if(!(this instanceof h))return new h(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n(d,this)}function d(e){e.end()}},{"./_stream_readable":135,"./_stream_writable":137,"core-util-is":51,inherits:103,"process-nextick-args":122}],134:[function(e,t,r){"use strict";t.exports=a;var i=e("./_stream_transform"),n=e("core-util-is");function a(e){if(!(this instanceof a))return new a(e);i.call(this,e)}n.inherits=e("inherits"),n.inherits(a,i),a.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":136,"core-util-is":51,inherits:103}],135:[function(S,E,e){(function(m){"use strict";E.exports=i;var g=S("process-nextick-args"),v=S("isarray"),f=S("buffer").Buffer;i.ReadableState=r;S("events");var n,b=function(e,t){return e.listeners(t).length};!function(){try{n=S("stream")}catch(e){}finally{n||(n=S("events").EventEmitter)}}();f=S("buffer").Buffer;var e=S("core-util-is");e.inherits=S("inherits");var a,o,t=S("util"),y=void 0;function r(e,t){o=o||S("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof o&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=S("string_decoder/").StringDecoder),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function i(e){if(o=o||S("./_stream_duplex"),!(this instanceof i))return new i(e);this._readableState=new r(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),n.call(this)}function s(e,t,r,i,n){var a=function(e,t){var r=null;f.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(t,r);if(a)e.emit("error",a);else if(null===r)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,c(e)}(e,t);else if(t.objectMode||r&&0<r.length)if(t.ended&&!n){var o=new Error("stream.push() after EOF");e.emit("error",o)}else if(t.endEmitted&&n){o=new Error("stream.unshift() after end event");e.emit("error",o)}else{var s;!t.decoder||n||i||(r=t.decoder.write(r),s=!t.objectMode&&0===r.length),n||(t.reading=!1),s||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&c(e))),function(e,t){t.readingMore||(t.readingMore=!0,g(d,e,t))}(e,t)}else n||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}y=t&&t.debuglog?t.debuglog("stream"):function(){},e.inherits(i,n),i.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=new f(e,t),t=""),s(this,r,e,t,!1)},i.prototype.unshift=function(e){return s(this,this._readableState,e,"",!0)},i.prototype.isPaused=function(){return!1===this._readableState.flowing},i.prototype.setEncoding=function(e){return a||(a=S("string_decoder/").StringDecoder),this._readableState.decoder=new a(e),this._readableState.encoding=e,this};var u=8388608;function l(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){return u<=e?e=u:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function c(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(y("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g(h,e):h(e))}function h(e){y("emit readable"),e.emit("readable"),w(e)}function d(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(y("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function p(e){y("readable nexttick read 0"),e.read(0)}function _(e,t){t.reading||(y("resume read 0"),e.read(0)),t.resumeScheduled=!1,e.emit("resume"),w(e),t.flowing&&!t.reading&&e.read(0)}function w(e){var t=e._readableState;if(y("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}function x(e,t){var r,i=t.buffer,n=t.length,a=!!t.decoder,o=!!t.objectMode;if(0===i.length)return null;if(0===n)r=null;else if(o)r=i.shift();else if(!e||n<=e)r=a?i.join(""):1===i.length?i[0]:f.concat(i,n),i.length=0;else{if(e<i[0].length)r=(c=i[0]).slice(0,e),i[0]=c.slice(e);else if(e===i[0].length)r=i.shift();else{r=a?"":new f(e);for(var s=0,u=0,l=i.length;u<l&&s<e;u++){var c=i[0],h=Math.min(e-s,c.length);a?r+=c.slice(0,h):c.copy(r,s,0,h),h<c.length?i[0]=c.slice(h):i.shift(),s+=h}}}return r}function k(e){var t=e._readableState;if(0<t.length)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,g(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}i.prototype.read=function(e){y("read",e);var t=this._readableState,r=e;if(("number"!=typeof e||0<e)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return y("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?k(this):c(this),null;if(0===(e=l(e,t))&&t.ended)return 0===t.length&&k(this),null;var i,n=t.needReadable;return y("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&y("length less than watermark",n=!0),(t.ended||t.reading)&&y("reading or ended",n=!1),n&&(y("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),n&&!t.reading&&(e=l(r,t)),null===(i=0<e?x(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&k(this),null!==i&&this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,y("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||!1!==e.end)&&t!==m.stdout&&t!==m.stderr?o:l;function a(e){y("onunpipe"),e===r&&l()}function o(){y("onend"),t.end()}i.endEmitted?g(n):r.once("end",n),t.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;y("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,w(t))}}(r);t.on("drain",s);var u=!1;function l(){y("cleanup"),t.removeListener("close",f),t.removeListener("finish",d),t.removeListener("drain",s),t.removeListener("error",h),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",l),r.removeListener("data",c),u=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}function c(e){y("ondata"),!1===t.write(e)&&(1!==i.pipesCount||i.pipes[0]!==t||1!==r.listenerCount("data")||u||(y("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++),r.pause())}function h(e){y("onerror",e),p(),t.removeListener("error",h),0===b(t,"error")&&t.emit("error",e)}function f(){t.removeListener("finish",d),p()}function d(){y("onfinish"),t.removeListener("close",f),p()}function p(){y("unpipe"),r.unpipe(t)}return r.on("data",c),t._events&&t._events.error?v(t._events.error)?t._events.error.unshift(h):t._events.error=[h,t._events.error]:t.on("error",h),t.once("close",f),t.once("finish",d),t.emit("pipe",r),i.flowing||(y("pipe resume"),r.resume()),t},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<i;n++)r[n].emit("unpipe",this);return this}var a=function(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},i.prototype.addListener=i.prototype.on=function(e,t){var r=n.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&!this._readableState.endEmitted){var i=this._readableState;i.readableListening||(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading?i.length&&c(this):g(p,this))}return r},i.prototype.resume=function(){var e=this._readableState;return e.flowing||(y("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,g(_,e,t))}(this,e)),this},i.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(t){var r=this._readableState,i=!1,n=this;for(var e in t.on("end",function(){if(y("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){(y("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e)||(r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));return function(e,t){for(var r=0,i=e.length;r<i;r++)t(e[r],r)}(["error","close","destroy","pause","resume"],function(e){t.on(e,n.emit.bind(n,e))}),n._read=function(e){y("wrapped _read",e),i&&(i=!1,t.resume())},n},i._fromList=x}).call(this,S("_process"))},{"./_stream_duplex":133,_process:123,buffer:49,"core-util-is":51,events:85,inherits:103,isarray:105,"process-nextick-args":122,"string_decoder/":153,util:19}],136:[function(e,t,r){"use strict";t.exports=o;var i=e("./_stream_duplex"),n=e("core-util-is");function a(r){this.afterTransform=function(e,t){return function(e,t,r){var i=e._transformState;i.transforming=!1;var n=i.writecb;if(!n)return e.emit("error",new Error("no writecb in Transform class"));i.writechunk=null,(i.writecb=null)!=r&&e.push(r);n(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(r,e,t)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function o(e){if(!(this instanceof o))return new o(e);i.call(this,e),this._transformState=new a(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,i=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(i.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}n.inherits=e("inherits"),n.inherits(o,i),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("not implemented")},o.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":133,"core-util-is":51,inherits:103}],137:[function(y,_,e){(function(e){"use strict";_.exports=h;var o=y("process-nextick-args"),s=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?setImmediate:o,u=y("buffer").Buffer;h.WritableState=n;var t=y("core-util-is");t.inherits=y("inherits");var r,i={deprecate:y("util-deprecate")};!function(){try{r=y("stream")}catch(e){}finally{r||(r=y("events").EventEmitter)}}();var a;u=y("buffer").Buffer;function l(){}function c(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function n(e,t){a=a||y("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1;var n=(this.finished=!1)===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,n){--t.pendingcb,r?o(n,i):n(i);e._writableState.errorEmitted=!0,e.emit("error",i)}(e,r,i,t,n);else{var a=m(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||p(e,r),i?s(d,e,r,a,n):d(e,r,a,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new b(this),this.corkedRequestsFree.next=new b(this)}function h(e){if(a=a||y("./_stream_duplex"),!(this instanceof h||this instanceof a))return new h(e);this._writableState=new n(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),r.call(this)}function f(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function d(e,t,r,i){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),v(e,t)}function p(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0;r;)r=(n[o]=r).next,o+=1;f(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,t.corkedRequestsFree=a.next,a.next=null}else{for(;r;){var s=r.chunk,u=r.encoding,l=r.callback;if(f(e,t,!1,t.objectMode?1:s.length,s,u,l),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function g(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function v(e,t){var r=m(t);return r&&(0===t.pendingcb?(g(e,t),t.finished=!0,e.emit("finish")):g(e,t)),r}function b(i){var n=this;this.next=null,this.entry=null,this.finish=function(e){var t=n.entry;for(n.entry=null;t;){var r=t.callback;i.pendingcb--,r(e),t=t.next}i.corkedRequestsFree?i.corkedRequestsFree.next=n:i.corkedRequestsFree=n}}t.inherits(h,r),n.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(n.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}(),h.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},h.prototype.write=function(e,t,r){var i=this._writableState,n=!1;return"function"==typeof t&&(r=t,t=null),u.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=l),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o(t,r)}(this,r):function(e,t,r,i){var n=!0;if(!u.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),o(i,a),n=!1}return n}(this,i,e,r)&&(i.pendingcb++,n=function(e,t,r,i,n){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new u(t,r)),t}(t,r,i),u.isBuffer(r)&&(i="buffer");var a=t.objectMode?1:r.length;t.length+=a;var o=t.length<t.highWaterMark;o||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new c(r,i,n),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else f(e,t,!1,a,r,i,n);return o}(this,i,e,t,r)),n},h.prototype.cork=function(){this._writableState.corked++},h.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||p(this,e))},h.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e},h.prototype._write=function(e,t,r){r(new Error("not implemented"))},h.prototype._writev=null,h.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,v(e,t),r&&(t.finished?o(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)}}).call(this,y("_process"))},{"./_stream_duplex":133,_process:123,buffer:49,"core-util-is":51,events:85,inherits:103,"process-nextick-args":122,"util-deprecate":154}],138:[function(e,t,r){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":134}],139:[function(e,t,r){var i=function(){try{return e("stream")}catch(e){}}();(r=t.exports=e("./lib/_stream_readable.js")).Stream=i||r,(r.Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":133,"./lib/_stream_passthrough.js":134,"./lib/_stream_readable.js":135,"./lib/_stream_transform.js":136,"./lib/_stream_writable.js":137}],140:[function(e,t,r){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":136}],141:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":137}],142:[function(n,a,e){(function(t){"use strict";var e=n("inherits"),r=n("hash-base");function i(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(e,t){return e<<t|e>>>32-t}function p(e,t,r,i,n,a,o,s){return d(e+(t^r^i)+a+o|0,s)+n|0}function m(e,t,r,i,n,a,o,s){return d(e+(t&r|~t&i)+a+o|0,s)+n|0}function g(e,t,r,i,n,a,o,s){return d(e+((t|~r)^i)+a+o|0,s)+n|0}function v(e,t,r,i,n,a,o,s){return d(e+(t&i|r&~i)+a+o|0,s)+n|0}function b(e,t,r,i,n,a,o,s){return d(e+(t^(r|~i))+a+o|0,s)+n|0}e(i,r),i.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,a=this._d,o=this._e;o=p(o,r=p(r,i,n,a,o,e[0],0,11),i,n=d(n,10),a,e[1],0,14),i=p(i=d(i,10),n=p(n,a=p(a,o,r,i,n,e[2],0,15),o,r=d(r,10),i,e[3],0,12),a,o=d(o,10),r,e[4],0,5),a=p(a=d(a,10),o=p(o,r=p(r,i,n,a,o,e[5],0,8),i,n=d(n,10),a,e[6],0,7),r,i=d(i,10),n,e[7],0,9),r=p(r=d(r,10),i=p(i,n=p(n,a,o,r,i,e[8],0,11),a,o=d(o,10),r,e[9],0,13),n,a=d(a,10),o,e[10],0,14),n=p(n=d(n,10),a=p(a,o=p(o,r,i,n,a,e[11],0,15),r,i=d(i,10),n,e[12],0,6),o,r=d(r,10),i,e[13],0,7),o=m(o=d(o,10),r=p(r,i=p(i,n,a,o,r,e[14],0,9),n,a=d(a,10),o,e[15],0,8),i,n=d(n,10),a,e[7],1518500249,7),i=m(i=d(i,10),n=m(n,a=m(a,o,r,i,n,e[4],1518500249,6),o,r=d(r,10),i,e[13],1518500249,8),a,o=d(o,10),r,e[1],1518500249,13),a=m(a=d(a,10),o=m(o,r=m(r,i,n,a,o,e[10],1518500249,11),i,n=d(n,10),a,e[6],1518500249,9),r,i=d(i,10),n,e[15],1518500249,7),r=m(r=d(r,10),i=m(i,n=m(n,a,o,r,i,e[3],1518500249,15),a,o=d(o,10),r,e[12],1518500249,7),n,a=d(a,10),o,e[0],1518500249,12),n=m(n=d(n,10),a=m(a,o=m(o,r,i,n,a,e[9],1518500249,15),r,i=d(i,10),n,e[5],1518500249,9),o,r=d(r,10),i,e[2],1518500249,11),o=m(o=d(o,10),r=m(r,i=m(i,n,a,o,r,e[14],1518500249,7),n,a=d(a,10),o,e[11],1518500249,13),i,n=d(n,10),a,e[8],1518500249,12),i=g(i=d(i,10),n=g(n,a=g(a,o,r,i,n,e[3],1859775393,11),o,r=d(r,10),i,e[10],1859775393,13),a,o=d(o,10),r,e[14],1859775393,6),a=g(a=d(a,10),o=g(o,r=g(r,i,n,a,o,e[4],1859775393,7),i,n=d(n,10),a,e[9],1859775393,14),r,i=d(i,10),n,e[15],1859775393,9),r=g(r=d(r,10),i=g(i,n=g(n,a,o,r,i,e[8],1859775393,13),a,o=d(o,10),r,e[1],1859775393,15),n,a=d(a,10),o,e[2],1859775393,14),n=g(n=d(n,10),a=g(a,o=g(o,r,i,n,a,e[7],1859775393,8),r,i=d(i,10),n,e[0],1859775393,13),o,r=d(r,10),i,e[6],1859775393,6),o=g(o=d(o,10),r=g(r,i=g(i,n,a,o,r,e[13],1859775393,5),n,a=d(a,10),o,e[11],1859775393,12),i,n=d(n,10),a,e[5],1859775393,7),i=v(i=d(i,10),n=v(n,a=g(a,o,r,i,n,e[12],1859775393,5),o,r=d(r,10),i,e[1],2400959708,11),a,o=d(o,10),r,e[9],2400959708,12),a=v(a=d(a,10),o=v(o,r=v(r,i,n,a,o,e[11],2400959708,14),i,n=d(n,10),a,e[10],2400959708,15),r,i=d(i,10),n,e[0],2400959708,14),r=v(r=d(r,10),i=v(i,n=v(n,a,o,r,i,e[8],2400959708,15),a,o=d(o,10),r,e[12],2400959708,9),n,a=d(a,10),o,e[4],2400959708,8),n=v(n=d(n,10),a=v(a,o=v(o,r,i,n,a,e[13],2400959708,9),r,i=d(i,10),n,e[3],2400959708,14),o,r=d(r,10),i,e[7],2400959708,5),o=v(o=d(o,10),r=v(r,i=v(i,n,a,o,r,e[15],2400959708,6),n,a=d(a,10),o,e[14],2400959708,8),i,n=d(n,10),a,e[5],2400959708,6),i=b(i=d(i,10),n=v(n,a=v(a,o,r,i,n,e[6],2400959708,5),o,r=d(r,10),i,e[2],2400959708,12),a,o=d(o,10),r,e[4],2840853838,9),a=b(a=d(a,10),o=b(o,r=b(r,i,n,a,o,e[0],2840853838,15),i,n=d(n,10),a,e[5],2840853838,5),r,i=d(i,10),n,e[9],2840853838,11),r=b(r=d(r,10),i=b(i,n=b(n,a,o,r,i,e[7],2840853838,6),a,o=d(o,10),r,e[12],2840853838,8),n,a=d(a,10),o,e[2],2840853838,13),n=b(n=d(n,10),a=b(a,o=b(o,r,i,n,a,e[10],2840853838,12),r,i=d(i,10),n,e[14],2840853838,5),o,r=d(r,10),i,e[1],2840853838,12),o=b(o=d(o,10),r=b(r,i=b(i,n,a,o,r,e[3],2840853838,13),n,a=d(a,10),o,e[8],2840853838,14),i,n=d(n,10),a,e[11],2840853838,11),i=b(i=d(i,10),n=b(n,a=b(a,o,r,i,n,e[6],2840853838,8),o,r=d(r,10),i,e[15],2840853838,5),a,o=d(o,10),r,e[13],2840853838,6),a=d(a,10);var s=this._a,u=this._b,l=this._c,c=this._d,h=this._e;h=b(h,s=b(s,u,l,c,h,e[5],1352829926,8),u,l=d(l,10),c,e[14],1352829926,9),u=b(u=d(u,10),l=b(l,c=b(c,h,s,u,l,e[7],1352829926,9),h,s=d(s,10),u,e[0],1352829926,11),c,h=d(h,10),s,e[9],1352829926,13),c=b(c=d(c,10),h=b(h,s=b(s,u,l,c,h,e[2],1352829926,15),u,l=d(l,10),c,e[11],1352829926,15),s,u=d(u,10),l,e[4],1352829926,5),s=b(s=d(s,10),u=b(u,l=b(l,c,h,s,u,e[13],1352829926,7),c,h=d(h,10),s,e[6],1352829926,7),l,c=d(c,10),h,e[15],1352829926,8),l=b(l=d(l,10),c=b(c,h=b(h,s,u,l,c,e[8],1352829926,11),s,u=d(u,10),l,e[1],1352829926,14),h,s=d(s,10),u,e[10],1352829926,14),h=v(h=d(h,10),s=b(s,u=b(u,l,c,h,s,e[3],1352829926,12),l,c=d(c,10),h,e[12],1352829926,6),u,l=d(l,10),c,e[6],1548603684,9),u=v(u=d(u,10),l=v(l,c=v(c,h,s,u,l,e[11],1548603684,13),h,s=d(s,10),u,e[3],1548603684,15),c,h=d(h,10),s,e[7],1548603684,7),c=v(c=d(c,10),h=v(h,s=v(s,u,l,c,h,e[0],1548603684,12),u,l=d(l,10),c,e[13],1548603684,8),s,u=d(u,10),l,e[5],1548603684,9),s=v(s=d(s,10),u=v(u,l=v(l,c,h,s,u,e[10],1548603684,11),c,h=d(h,10),s,e[14],1548603684,7),l,c=d(c,10),h,e[15],1548603684,7),l=v(l=d(l,10),c=v(c,h=v(h,s,u,l,c,e[8],1548603684,12),s,u=d(u,10),l,e[12],1548603684,7),h,s=d(s,10),u,e[4],1548603684,6),h=v(h=d(h,10),s=v(s,u=v(u,l,c,h,s,e[9],1548603684,15),l,c=d(c,10),h,e[1],1548603684,13),u,l=d(l,10),c,e[2],1548603684,11),u=g(u=d(u,10),l=g(l,c=g(c,h,s,u,l,e[15],1836072691,9),h,s=d(s,10),u,e[5],1836072691,7),c,h=d(h,10),s,e[1],1836072691,15),c=g(c=d(c,10),h=g(h,s=g(s,u,l,c,h,e[3],1836072691,11),u,l=d(l,10),c,e[7],1836072691,8),s,u=d(u,10),l,e[14],1836072691,6),s=g(s=d(s,10),u=g(u,l=g(l,c,h,s,u,e[6],1836072691,6),c,h=d(h,10),s,e[9],1836072691,14),l,c=d(c,10),h,e[11],1836072691,12),l=g(l=d(l,10),c=g(c,h=g(h,s,u,l,c,e[8],1836072691,13),s,u=d(u,10),l,e[12],1836072691,5),h,s=d(s,10),u,e[2],1836072691,14),h=g(h=d(h,10),s=g(s,u=g(u,l,c,h,s,e[10],1836072691,13),l,c=d(c,10),h,e[0],1836072691,13),u,l=d(l,10),c,e[4],1836072691,7),u=m(u=d(u,10),l=m(l,c=g(c,h,s,u,l,e[13],1836072691,5),h,s=d(s,10),u,e[8],2053994217,15),c,h=d(h,10),s,e[6],2053994217,5),c=m(c=d(c,10),h=m(h,s=m(s,u,l,c,h,e[4],2053994217,8),u,l=d(l,10),c,e[1],2053994217,11),s,u=d(u,10),l,e[3],2053994217,14),s=m(s=d(s,10),u=m(u,l=m(l,c,h,s,u,e[11],2053994217,14),c,h=d(h,10),s,e[15],2053994217,6),l,c=d(c,10),h,e[0],2053994217,14),l=m(l=d(l,10),c=m(c,h=m(h,s,u,l,c,e[5],2053994217,6),s,u=d(u,10),l,e[12],2053994217,9),h,s=d(s,10),u,e[2],2053994217,12),h=m(h=d(h,10),s=m(s,u=m(u,l,c,h,s,e[13],2053994217,9),l,c=d(c,10),h,e[9],2053994217,12),u,l=d(l,10),c,e[7],2053994217,5),u=p(u=d(u,10),l=m(l,c=m(c,h,s,u,l,e[10],2053994217,15),h,s=d(s,10),u,e[14],2053994217,8),c,h=d(h,10),s,e[12],0,8),c=p(c=d(c,10),h=p(h,s=p(s,u,l,c,h,e[15],0,5),u,l=d(l,10),c,e[10],0,12),s,u=d(u,10),l,e[4],0,9),s=p(s=d(s,10),u=p(u,l=p(l,c,h,s,u,e[1],0,12),c,h=d(h,10),s,e[5],0,5),l,c=d(c,10),h,e[8],0,14),l=p(l=d(l,10),c=p(c,h=p(h,s,u,l,c,e[7],0,6),s,u=d(u,10),l,e[6],0,8),h,s=d(s,10),u,e[2],0,13),h=p(h=d(h,10),s=p(s,u=p(u,l,c,h,s,e[13],0,6),l,c=d(c,10),h,e[14],0,5),u,l=d(l,10),c,e[0],0,15),u=p(u=d(u,10),l=p(l,c=p(c,h,s,u,l,e[3],0,13),h,s=d(s,10),u,e[9],0,11),c,h=d(h,10),s,e[11],0,11),c=d(c,10);var f=this._b+n+c|0;this._b=this._c+a+h|0,this._c=this._d+o+s|0,this._d=this._e+r+u|0,this._e=this._a+i+l|0,this._a=f},i.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},a.exports=i}).call(this,n("buffer").Buffer)},{buffer:49,"hash-base":87,inherits:103}],143:[function(e,t,r){var i=e("buffer"),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(a(i,r),r.Buffer=o),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},{buffer:49}],144:[function(e,t,r){var c=e("safe-buffer").Buffer;function i(e,t){this._block=c.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=c.from(e,t));for(var r=this._block,i=this._blockSize,n=e.length,a=this._len,o=0;o<n;){for(var s=a%i,u=Math.min(n-o,i-s),l=0;l<u;l++)r[s+l]=e[o+l];o+=u,(a+=u)%i==0&&this._update(r)}return this._len+=n,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,1+t),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=4294967295&r,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":143}],145:[function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":146,"./sha1":147,"./sha224":148,"./sha256":149,"./sha384":150,"./sha512":151}],146:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,v=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}i(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,i,n,a,o,s=this._w,u=0|this._a,l=0|this._b,c=0|this._c,h=0|this._d,f=0|this._e,d=0;d<16;++d)s[d]=e.readInt32BE(4*d);for(;d<80;++d)s[d]=s[d-3]^s[d-8]^s[d-14]^s[d-16];for(var p=0;p<80;++p){var m=~~(p/20),g=0|((o=u)<<5|o>>>27)+(i=l,n=c,a=h,0===(r=m)?i&n|~i&a:2===r?i&n|i&a|n&a:i^n^a)+f+s[p]+v[m];f=h,h=c,c=(t=l)<<30|t>>>2,l=u,u=g}this._a=u+this._a|0,this._b=l+this._b|0,this._c=c+this._c|0,this._d=h+this._d|0,this._e=f+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],147:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,b=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}i(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,i,n,a,o,s,u=this._w,l=0|this._a,c=0|this._b,h=0|this._c,f=0|this._d,d=0|this._e,p=0;p<16;++p)u[p]=e.readInt32BE(4*p);for(;p<80;++p)u[p]=(t=u[p-3]^u[p-8]^u[p-14]^u[p-16])<<1|t>>>31;for(var m=0;m<80;++m){var g=~~(m/20),v=0|((s=l)<<5|s>>>27)+(n=c,a=h,o=f,0===(i=g)?n&a|~n&o:2===i?n&a|n&o|a&o:n^a^o)+d+u[m]+b[g];d=f,f=h,h=(r=c)<<30|r>>>2,c=l,l=v}this._a=l+this._a|0,this._b=c+this._b|0,this._c=h+this._c|0,this._d=f+this._d|0,this._e=d+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],148:[function(e,t,r){var i=e("inherits"),n=e("./sha256"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function u(){this.init(),this._w=s,a.call(this,64,56)}i(u,n),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=u},{"./hash":144,"./sha256":149,inherits:103,"safe-buffer":143}],149:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function s(){this.init(),this._w=o,n.call(this,64,56)}i(s,n),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,r,i,n,a,o,s,u=this._w,l=0|this._a,c=0|this._b,h=0|this._c,f=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)u[v]=e.readInt32BE(4*v);for(;v<64;++v)u[v]=0|(((r=u[v-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+u[v-7]+(((t=u[v-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+u[v-16];for(var b=0;b<64;++b){var y=g+(((s=d)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((o=m)^d&(p^o))+w[b]+u[b]|0,_=0|(((a=l)>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((i=l)&(n=c)|h&(i|n));g=m,m=p,p=d,d=f+y|0,f=h,h=c,c=l,l=y+_|0}this._a=l+this._a|0,this._b=c+this._b|0,this._c=h+this._c|0,this._d=f+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],150:[function(e,t,r){var i=e("inherits"),n=e("./sha512"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function u(){this.init(),this._w=s,a.call(this,128,112)}i(u,n),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var i=o.allocUnsafe(48);function e(e,t,r){i.writeInt32BE(e,r),i.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),i},t.exports=u},{"./hash":144,"./sha512":151,inherits:103,"safe-buffer":143}],151:[function(e,t,r){var i=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,ee=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function s(){this.init(),this._w=o,n.call(this,128,112)}function te(e,t,r){return r^e&(t^r)}function re(e,t,r){return e&t|r&(e|t)}function ie(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function ne(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ae(e,t){return e>>>0<t>>>0?1:0}i(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t,r,i,n,a,o,s,u,l=this._w,c=0|this._ah,h=0|this._bh,f=0|this._ch,d=0|this._dh,p=0|this._eh,m=0|this._fh,g=0|this._gh,v=0|this._hh,b=0|this._al,y=0|this._bl,_=0|this._cl,w=0|this._dl,x=0|this._el,k=0|this._fl,T=0|this._gl,S=0|this._hl,E=0;E<32;E+=2)l[E]=e.readInt32BE(4*E),l[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var M=l[E-30],P=l[E-30+1],C=((s=M)>>>1|(u=P)<<31)^(s>>>8|u<<24)^s>>>7,A=((a=P)>>>1|(o=M)<<31)^(a>>>8|o<<24)^(a>>>7|o<<25);M=l[E-4],P=l[E-4+1];var O=((i=M)>>>19|(n=P)<<13)^(n>>>29|i<<3)^i>>>6,I=((t=P)>>>19|(r=M)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),R=l[E-14],D=l[E-14+1],j=l[E-32],L=l[E-32+1],z=A+D|0,F=C+R+ae(z,A)|0;F=(F=F+O+ae(z=z+I|0,I)|0)+j+ae(z=z+L|0,L)|0,l[E]=F,l[E+1]=z}for(var B=0;B<160;B+=2){F=l[B],z=l[B+1];var N=re(c,h,f),U=re(b,y,_),X=ie(c,b),q=ie(b,c),H=ne(p,x),W=ne(x,p),G=ee[B],V=ee[B+1],Y=te(p,m,g),J=te(x,k,T),K=S+W|0,Z=v+H+ae(K,S)|0;Z=(Z=(Z=Z+Y+ae(K=K+J|0,J)|0)+G+ae(K=K+V|0,V)|0)+F+ae(K=K+z|0,z)|0;var Q=q+U|0,$=X+N+ae(Q,q)|0;v=g,S=T,g=m,T=k,m=p,k=x,p=d+Z+ae(x=w+K|0,w)|0,d=f,w=_,f=h,_=y,h=c,y=b,c=Z+$+ae(b=K+Q|0,K)|0}this._al=this._al+b|0,this._bl=this._bl+y|0,this._cl=this._cl+_|0,this._dl=this._dl+w|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+T|0,this._hl=this._hl+S|0,this._ah=this._ah+c+ae(this._al,b)|0,this._bh=this._bh+h+ae(this._bl,y)|0,this._ch=this._ch+f+ae(this._cl,_)|0,this._dh=this._dh+d+ae(this._dl,w)|0,this._eh=this._eh+p+ae(this._el,x)|0,this._fh=this._fh+m+ae(this._fl,k)|0,this._gh=this._gh+g+ae(this._gl,T)|0,this._hh=this._hh+v+ae(this._hl,S)|0},s.prototype._hash=function(){var i=a.allocUnsafe(64);function e(e,t,r){i.writeInt32BE(e,r),i.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),i},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],152:[function(e,t,r){t.exports=i;var c=e("events").EventEmitter;function i(){c.call(this)}e("inherits")(i,c),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),(i.Stream=i).prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function n(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",n),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(e){if(l(),0===c.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",u),t.on("error",u),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t}},{events:85,inherits:103,"readable-stream/duplex.js":132,"readable-stream/passthrough.js":138,"readable-stream/readable.js":139,"readable-stream/transform.js":140,"readable-stream/writable.js":141}],153:[function(e,t,r){var i=e("buffer").Buffer,n=i.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};var a=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!n(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=o)}this.charBuffer=new i(6),this.charReceived=0,this.charLength=0};function o(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}a.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!(55296<=(n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived);var n;i=(t+=e.toString(this.encoding,0,i)).length-1;if(55296<=(n=t.charCodeAt(i))&&n<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=3<=e.length?3:e.length;0<t;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,i=this.charBuffer,n=this.encoding;t+=i.slice(0,r).toString(n)}return t}},{buffer:49}],154:[function(e,t,r){(function(r){function i(e){try{if(!r.localStorage)return!1}catch(e){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],155:[function(require,module,exports){var indexOf=require("indexof"),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(t),function(e){r[e]=t[e]}),forEach(globals,function(e){t[e]&&(r[e]=t[e])});var a=Object_keys(r),o=i.call(r,this.code);return forEach(Object_keys(r),function(e){(e in t||-1===indexOf(a,e))&&(t[e]=r[e])}),forEach(globals,function(e){e in t||defineProp(t,e,r[e])}),document.body.removeChild(e),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var r=Script.createContext(t),e=this.runInContext(r);return forEach(Object_keys(r),function(e){t[e]=r[e]}),e},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(e){var t=Script(e);return t[r].apply(t,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(t){var r=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(e){r[e]=t[e]}),r}},{indexof:102}],156:[function(e,t,r){function h(e,t,r,i,n,a,o){h.prototype.init.apply(this,arguments)}function i(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}function f(e,t,r){switch(e){case d:case l:case ue:return(t+3>>2)*(r+3>>2)*8;case p:case m:case c:case g:return(t+3>>2)*(r+3>>2)*16;case ne:case oe:return Math.floor((Math.max(t,8)*Math.max(r,8)*4+7)/8);case ae:case se:return Math.floor((Math.max(t,16)*Math.max(r,8)*2+7)/8);case v:case n:return Math.floor((t+3)/4)*Math.floor((r+3)/4)*16;case b:case a:return Math.floor((t+4)/5)*Math.floor((r+3)/4)*16;case y:case o:return Math.floor((t+4)/5)*Math.floor((r+4)/5)*16;case _:case s:return Math.floor((t+5)/6)*Math.floor((r+4)/5)*16;case w:case u:return Math.floor((t+5)/6)*Math.floor((r+5)/6)*16;case x:case O:return Math.floor((t+7)/8)*Math.floor((r+4)/5)*16;case k:case I:return Math.floor((t+7)/8)*Math.floor((r+5)/6)*16;case T:case R:return Math.floor((t+7)/8)*Math.floor((r+7)/8)*16;case S:case D:return Math.floor((t+9)/10)*Math.floor((r+4)/5)*16;case E:case j:return Math.floor((t+9)/10)*Math.floor((r+5)/6)*16;case M:case L:return Math.floor((t+9)/10)*Math.floor((r+7)/8)*16;case P:case z:return Math.floor((t+9)/10)*Math.floor((r+9)/10)*16;case C:case F:return Math.floor((t+11)/12)*Math.floor((r+9)/10)*16;case A:case B:return Math.floor((t+11)/12)*Math.floor((r+11)/12)*16;default:return 0}}(t.exports=h).prototype.init=function(e,t,r,i,n,a,o,s){this.src=e,this.width=i,this.height=n,this.data=t,this.type=r,this.levels=a,this.internalFormat=o,this.isCompressedImage=!0,this.crunch=s,this.preserveSource=!0;var u=this.complete;return this.complete=!!t,!u&&this.complete&&this.onload&&this.onload({target:this}),this},h.prototype.dispose=function(){this.data=null},h.prototype.generateWebGLTexture=function(e){if(null===this.data)throw"Trying to create a second (or more) webgl texture from the same CompressedImage : "+this.src;for(var t=this.width,r=this.height,i=this.levels,n=0,a=0;a<this.levels;++a){var o=f(this.internalFormat,t,r),s=new Uint8Array(this.data.buffer,this.data.byteOffset+n,o);e.compressedTexImage2D(e.TEXTURE_2D,a,this.internalFormat,t,r,0,s),(t>>=1)<1&&(t=1),(r>>=1)<1&&(r=1),n+=o}1<i?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)),this.crunch&&(Module._free(this.crunch[0]),Module._free(this.crunch[1])),this.preserveSource||(this.data=null)},h.loadFromArrayBuffer=function(e,t){return new h(t).loadFromArrayBuffer(e)},h.prototype.loadFromArrayBuffer=function(e,t){var r=new Uint8Array(e,0,3);if(r[0]=="DDS".charCodeAt(0)&&r[1]=="DDS".charCodeAt(1)&&r[2]=="DDS".charCodeAt(2))return this._loadDDS(e);if(r[0]=="PVR".charCodeAt(0)&&r[1]=="PVR".charCodeAt(1)&&r[2]=="PVR".charCodeAt(2))return this._loadPVR(e);if(19==r[0]&&171==r[1]&&161==r[2])return this._loadASTC(e);if(t)return this._loadCRN(e);throw"Compressed texture format is not recognized: "+this.src},h.prototype.arrayBufferCopy=function(e,t,r,i){dst32Offset=r/4;for(var n=i%4,a=new Uint32Array(e.buffer,0,(i-n)/4),o=new Uint32Array(t.buffer),s=0;s<a.length;s++)o[dst32Offset+s]=a[s];for(var u=i-n;u<i;u++)t[r+u]=e[u]},h.prototype._loadCRN=function(e){DXT_FORMAT_MAP=[d,p,m];var t=e.byteLength,r=new Uint8Array(e),i=Module._malloc(t);h.prototype.arrayBufferCopy(r,Module.HEAPU8,i,t);var n=Module._crn_get_width(i,t),a=Module._crn_get_height(i,t),o=Module._crn_get_levels(i,t),s=Module._crn_get_dxt_format(i,t),u=Module._crn_get_uncompressed_size(i,t,0),l=Module._malloc(u);Module._crn_decompress(i,t,l,u,0);var c=new Uint8Array(Module.HEAPU8.buffer,l,u);return this.init(this.src,c,"CRN",n,a,o,DXT_FORMAT_MAP[s],[i,l])},h.prototype._loadDDS=function(e){var t=new Int32Array(e,0,q);if(t[H]!=N)throw"Invalid magic number in DDS header";if(!t[K]&X)throw"Unsupported format, must contain a FourCC code";var r,i=t[Z];switch(i){case Q:r=d;break;case $:r=p;break;case ee:r=m;break;case te:r=l;break;case re:r=c;break;case ie:r=g;break;default:throw"Unsupported FourCC code: "+function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}(i)}var n=1;t[G]&U&&(n=Math.max(1,t[J]));var a=t[Y],o=t[V],s=t[W]+4,u=new Uint8Array(e,s);return this.init(this.src,u,"DDS",a,o,n,r)},h.prototype._loadASTC=function(e){var t=new Int8Array(e,0,Se);if(new Uint32Array(e.slice(0,4))!=Ee)throw"Invalid magic number in ASTC header";for(var r=[v,b,y,_,w,x,k,T,S,E,M,P,C,A],i=e.byteLength-Se,n=new Uint8Array([t[7],t[8],t[9],0]),a=new Uint8Array([t[10],t[11],t[12],0]),o=new Uint32Array(n.buffer)[0],s=new Uint32Array(a.buffer)[0],u=0,l=0;l<r.length;l++)if(i===f(r[l],o,s)){u=r[l];break}if(0===u)throw"Unable to autodetect ASTC format; file size not right";var c=new Uint8Array(e,Se,i);return this.init(this.src,c,"ASTC",o,s,1,u)},h.prototype._loadPVR=function(e){var t=new Int32Array(e,0,ve);if(t[ye]!=be)throw"Invalid magic number in PVR header";var r,i=t[_e];switch(i){case le:r=ae;break;case ce:r=se;break;case he:r=ne;break;case fe:r=oe;break;case de:r=ue;break;case pe:r=d;break;case me:r=p;break;case ge:r=m;break;default:throw"Unsupported PVR format: "+i}var n=t[xe],a=t[we],o=t[ke],s=t[Te]+52,u=new Uint8Array(e,s);return this.init(this.src,u,"PVR",n,a,o,r)};var d=33776,p=33778,m=33779,l=35986,c=35987,g=34798,v=37808,b=37809,y=37810,_=37811,w=37812,x=37813,k=37814,T=37815,S=37816,E=37817,M=37818,P=37819,C=37820,A=37821,n=37840,a=37841,o=37842,s=37843,u=37844,O=37845,I=37846,R=37847,D=37848,j=37849,L=37850,z=37851,F=37852,B=37853,N=542327876,U=131072,X=4,q=31,H=0,W=1,G=2,V=3,Y=4,J=7,K=20,Z=21,Q=i("DXT1"),$=i("DXT3"),ee=i("DXT5"),te=i("ATC "),re=i("ATCA"),ie=i("ATCI"),ne=35840,ae=35841,oe=35842,se=35843,ue=36196,le=0,ce=1,he=2,fe=3,de=6,pe=7,me=9,ge=5,ve=13,be=55727696,ye=0,_e=2,we=6,xe=7,ke=11,Te=12,Se=16,Ee=1554098963},{}],157:[function(e,t,r){var i=PIXI,n=(e("./CompressedImage"),i.WebGLManager);function a(e){n.call(this,e),this.extensions={}}((a.prototype=Object.create(n.prototype)).constructor=a).prototype.onContextChange=function(){var e=this.renderer.gl;function t(e,t){var r=["","WEBKIT_","MOZ_"],i=null;for(var n in r)if(i=e.getExtension(r[n]+t))break;return i}this.extensions={dxt:t(e,"WEBGL_compressed_texture_s3tc"),pvrtc:t(e,"WEBGL_compressed_texture_pvrtc"),astc:t(e,"WEBGL_compressed_texture_astc"),atc:t(e,"WEBGL_compressed_texture_atc"),etc1:t(e,"WEBGL_compressed_texture_etc1")},this.extensions.crn=this.extensions.dxt},t.exports=a,i.WebGLRenderer.registerPlugin("compressedTextureManager",a),a.prototype.getSupportedExtensions=function(){return this.extensions}},{"./CompressedImage":156}],158:[function(e,t,r){var i=e("./CompressedImage"),n={uploadNotCompressed:PIXI.glCore.GLTexture.prototype.upload,isCompressed:!1,upload:function(e){if(!(e instanceof i))return this.uploadNotCompressed(e);this.bind();var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),this.isCompressed=!0,e.generateWebGLTexture(t)},enableMipmap:function(){if(!this.isCompressed){var e=this.gl;this.bind(),this.mipmap=!0,e.generateMipmap(e.TEXTURE_2D)}}};t.exports=n},{"./CompressedImage":156}],159:[function(e,t,r){t.exports=function(u){u=u||[];var l=e("./imageParser")();return function(e,t){var r=e.metadata.choice;if(!r)return t();var i=e.url,n=0;if(!e._defaultUrlChoice){if(!(0<=(n=(e._defaultUrlChoice=i).lastIndexOf("."))))return t();e._baseUrl=i.substring(0,n)}for(var a=r.length-1;0<=a;a--){i=e._baseUrl+r[a];for(var o=0;o<u.length;o++)if(r[a]===u[o]){e.url=i;var s=r[a];return-1<s.indexOf("@")&&(s=s.replace(/@[0-9.]*x/,"")),0<=(n=s.indexOf("."))&&(s=s.substring(n+1)),e.extension=s,e.loadType=e._determineLoadType(),l(e,t)}}return l(e,t)}}},{"./imageParser":161}],160:[function(e,t,r){var n=PIXI,a=n.utils;e("./CompressedImage");t.exports=function(e){return function(e,t){if(e.texture&&e._defaultUrlChoice&&e._defaultUrl!=e.url){var r=e.texture,i=r.baseTexture;delete a.BaseTextureCache[i.imageUrl],delete a.TextureCache[i.imageUrl],i.imageUrl=e._defaultUrlChoice,n.utils.BaseTextureCache[i.imageUrl]=i,n.utils.TextureCache[i.imageUrl]=r}t()}}},{"./CompressedImage":156}],161:[function(e,t,r){var i=PIXI,n=(i.utils,e("./CompressedImage")),a=i.loaders.Resource;a.setExtensionXhrType("dds",a.XHR_RESPONSE_TYPE.BUFFER),a.setExtensionXhrType("crn",a.XHR_RESPONSE_TYPE.BUFFER),a.setExtensionXhrType("pvr",a.XHR_RESPONSE_TYPE.BUFFER),a.setExtensionXhrType("etc1",a.XHR_RESPONSE_TYPE.BUFFER),a.setExtensionXhrType("astc",a.XHR_RESPONSE_TYPE.BUFFER),t.exports=function(){return function(e,t){if(-1!=e.url.indexOf(".crn")||-1!=e.url.indexOf(".dds")||-1!=e.url.indexOf(".pvr")||-1!=e.url.indexOf(".etc1")||-1!=e.url.indexOf(".astc")){var r=e.compressedImage||new n(e.url);if(e.data)throw"compressedImageParser middleware must be specified in loader.before() and must have zero resource.data";e.isCompressedImage=!0,e.data=r,e.onComplete.add(function(){e.type=a.TYPE.IMAGE,r.loadFromArrayBuffer(e.data,e.url.includes(".crn")),e.data=r})}t()}}},{"./CompressedImage":156}],162:[function(r,i,e){(function(e){var t={CompressedImage:r("./CompressedImage"),CompressedTextureManager:r("./CompressedTextureManager"),imageParser:r("./imageParser"),extensionChooser:r("./extensionChooser"),extensionFixer:r("./extensionFixer"),GLTextureMixin:r("./GLTextureMixin"),detectExtensions:function(e,t){var r=[];if(e instanceof PIXI.WebGLRenderer){var i=e.plugins.compressedTextureManager.getSupportedExtensions();i.dxt&&r.push(".dds"),i.pvrtc&&r.push(".pvr"),i.atc&&r.push(".atc"),i.astc&&r.push(".astc"),i.etc1&&r.push(".etc1")}else PIXI.CanvasRenderer;for(var n="@"+(t=t||e.resolution)+"x",a=r.slice(0);0<a.length;)r.push(n+a.pop());return r.push(n+".png"),r.push(n+".jpg"),r.push(n+".json"),r.push(n+".atlas"),r}};try{t.crn=r("./../lib/crn_decomp")}catch(e){console.warn("Unable to load crn decompression in pixi-compressed-textures")}Object.assign(PIXI.glCore.GLTexture.prototype,t.GLTextureMixin),PIXI.loaders.Loader.addPixiMiddleware(t.extensionFixer),PIXI.loader.use(t.extensionFixer()),i.exports=e.PIXI.compressedTextures=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../lib/crn_decomp":1,"./CompressedImage":156,"./CompressedTextureManager":157,"./GLTextureMixin":158,"./extensionChooser":159,"./extensionFixer":160,"./imageParser":161}]},{},[162])(162)});var __filters=function(e,f){"use strict";var r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",t=function(t){function e(e){t.call(this,r,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float gamma;\nuniform float contrast;\nuniform float saturation;\nuniform float brightness;\nuniform float red;\nuniform float green;\nuniform float blue;\nuniform float alpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (c.a > 0.0) {\n c.rgb /= c.a;\n\n vec3 rgb = pow(c.rgb, vec3(1. / gamma));\n rgb = mix(vec3(.5), mix(vec3(dot(vec3(.2125, .7154, .0721), rgb)), rgb, saturation), contrast);\n rgb.r *= red;\n rgb.g *= green;\n rgb.b *= blue;\n c.rgb = rgb * brightness;\n\n c.rgb *= c.a;\n }\n\n gl_FragColor = c * alpha;\n}\n"),Object.assign(this,{gamma:1,saturation:1,contrast:1,brightness:1,red:1,green:1,blue:1,alpha:1},e)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,e.applyFilter(this,t,r,i)},e}(f.Filter),d=function(i){function e(e,t,r){void 0===e&&(e=4),void 0===t&&(t=3),void 0===r&&(r=!1),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",r?"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample top right pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample bottom right pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample bottom left pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Average\n color *= 0.25;\n\n gl_FragColor = color;\n}\n":"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample top right pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample bottom right pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Sample bottom left pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Average\n color *= 0.25;\n\n gl_FragColor = color;\n}"),this.uniforms.uOffset=new Float32Array(2),this._pixelSize=new f.Point,this.pixelSize=1,this._clamp=r,this._kernels=null,Array.isArray(e)?this.kernels=e:(this._blur=e,this.quality=t)}i&&(e.__proto__=i);var t={kernels:{configurable:!0},clamp:{configurable:!0},pixelSize:{configurable:!0},quality:{configurable:!0},blur:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r,i){var n,a=this.pixelSize.x/t.size.width,o=this.pixelSize.y/t.size.height;if(1===this._quality||0===this._blur)n=this._kernels[0]+.5,this.uniforms.uOffset[0]=n*a,this.uniforms.uOffset[1]=n*o,e.applyFilter(this,t,r,i);else{for(var s,u=e.getRenderTarget(!0),l=t,c=u,h=this._quality-1,f=0;f<h;f++)n=this._kernels[f]+.5,this.uniforms.uOffset[0]=n*a,this.uniforms.uOffset[1]=n*o,e.applyFilter(this,l,c,!0),s=l,l=c,c=s;n=this._kernels[h]+.5,this.uniforms.uOffset[0]=n*a,this.uniforms.uOffset[1]=n*o,e.applyFilter(this,l,r,i),e.returnRenderTarget(u)}},e.prototype._generateKernels=function(){var e=this._blur,t=this._quality,r=[e];if(0<e)for(var i=e,n=e/t,a=1;a<t;a++)i-=n,r.push(i);this._kernels=r},t.kernels.get=function(){return this._kernels},t.kernels.set=function(e){Array.isArray(e)&&0<e.length?(this._kernels=e,this._quality=e.length,this._blur=Math.max.apply(Math,e)):(this._kernels=[0],this._quality=1)},t.clamp.get=function(){return this._clamp},t.pixelSize.set=function(e){"number"==typeof e?(this._pixelSize.x=e,this._pixelSize.y=e):Array.isArray(e)?(this._pixelSize.x=e[0],this._pixelSize.y=e[1]):e instanceof f.Point?(this._pixelSize.x=e.x,this._pixelSize.y=e.y):(this._pixelSize.x=1,this._pixelSize.y=1)},t.pixelSize.get=function(){return this._pixelSize},t.quality.get=function(){return this._quality},t.quality.set=function(e){this._quality=Math.max(1,Math.round(e)),this._generateKernels()},t.blur.get=function(){return this._blur},t.blur.set=function(e){this._blur=e,this._generateKernels()},Object.defineProperties(e.prototype,t),e}(f.Filter),s=r,u=function(t){function e(e){void 0===e&&(e=.5),t.call(this,s,"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform float threshold;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n // A simple & fast algorithm for getting brightness.\n // It's inaccuracy , but good enought for this feature.\n float _max = max(max(color.r, color.g), color.b);\n float _min = min(min(color.r, color.g), color.b);\n float brightness = (_max + _min) * 0.5;\n\n if(brightness > threshold) {\n gl_FragColor = color;\n } else {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);\n }\n}\n"),this.threshold=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={threshold:{configurable:!0}};return r.threshold.get=function(){return this.uniforms.threshold},r.threshold.set=function(e){this.uniforms.threshold=e},Object.defineProperties(e.prototype,r),e}(f.Filter),i=function(o){function e(e){o.call(this,s,"uniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D bloomTexture;\nuniform float bloomScale;\nuniform float brightness;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n color.rgb *= brightness;\n vec4 bloomColor = vec4(texture2D(bloomTexture, vTextureCoord).rgb, 0.0);\n bloomColor.rgb *= bloomScale;\n gl_FragColor = color + bloomColor;\n}\n"),"number"==typeof e&&(e={threshold:e}),e=Object.assign({threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:f.settings.RESOLUTION},e),this.bloomScale=e.bloomScale,this.brightness=e.brightness;var t=e.kernels,r=e.blur,i=e.quality,n=e.pixelSize,a=e.resolution;this._extractFilter=new u(e.threshold),this._extractFilter.resolution=a,this._blurFilter=t?new d(t):new d(r,i),this.pixelSize=n,this.resolution=a}o&&(e.__proto__=o);var t={resolution:{configurable:!0},threshold:{configurable:!0},kernels:{configurable:!0},blur:{configurable:!0},quality:{configurable:!0},pixelSize:{configurable:!0}};return((e.prototype=Object.create(o&&o.prototype)).constructor=e).prototype.apply=function(e,t,r,i,n){var a=e.getRenderTarget(!0);this._extractFilter.apply(e,t,a,!0,n);var o=e.getRenderTarget(!0);this._blurFilter.apply(e,a,o,!0,n),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=o,e.applyFilter(this,t,r,i),e.returnRenderTarget(o),e.returnRenderTarget(a)},t.resolution.get=function(){return this._resolution},t.resolution.set=function(e){this._resolution=e,this._extractFilter&&(this._extractFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},t.threshold.get=function(){return this._extractFilter.threshold},t.threshold.set=function(e){this._extractFilter.threshold=e},t.kernels.get=function(){return this._blurFilter.kernels},t.kernels.set=function(e){this._blurFilter.kernels=e},t.blur.get=function(){return this._blurFilter.blur},t.blur.set=function(e){this._blurFilter.blur=e},t.quality.get=function(){return this._blurFilter.quality},t.quality.set=function(e){this._blurFilter.quality=e},t.pixelSize.get=function(){return this._blurFilter.pixelSize},t.pixelSize.set=function(e){this._blurFilter.pixelSize=e},Object.defineProperties(e.prototype,t),e}(f.Filter),n=function(t){function e(e){void 0===e&&(e=8),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform float pixelSize;\nuniform sampler2D uSampler;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n return floor( coord / size ) * size;\n}\n\nvec2 getMod(vec2 coord, vec2 size)\n{\n return mod( coord , size) / size;\n}\n\nfloat character(float n, vec2 p)\n{\n p = floor(p*vec2(4.0, -4.0) + 2.5);\n\n if (clamp(p.x, 0.0, 4.0) == p.x)\n {\n if (clamp(p.y, 0.0, 4.0) == p.y)\n {\n if (int(mod(n/exp2(p.x + 5.0*p.y), 2.0)) == 1) return 1.0;\n }\n }\n return 0.0;\n}\n\nvoid main()\n{\n vec2 coord = mapCoord(vTextureCoord);\n\n // get the rounded color..\n vec2 pixCoord = pixelate(coord, vec2(pixelSize));\n pixCoord = unmapCoord(pixCoord);\n\n vec4 color = texture2D(uSampler, pixCoord);\n\n // determine the character to use\n float gray = (color.r + color.g + color.b) / 3.0;\n\n float n = 65536.0; // .\n if (gray > 0.2) n = 65600.0; // :\n if (gray > 0.3) n = 332772.0; // *\n if (gray > 0.4) n = 15255086.0; // o\n if (gray > 0.5) n = 23385164.0; // &\n if (gray > 0.6) n = 15252014.0; // 8\n if (gray > 0.7) n = 13199452.0; // @\n if (gray > 0.8) n = 11512810.0; // #\n\n // get the mod..\n vec2 modd = getMod(coord, vec2(pixelSize));\n\n gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0);\n\n}\n"),this.size=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={size:{configurable:!0}};return r.size.get=function(){return this.uniforms.pixelSize},r.size.set=function(e){this.uniforms.pixelSize=e},Object.defineProperties(e.prototype,r),e}(f.Filter),a=function(t){function e(e){void 0===e&&(e={}),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float transformX;\nuniform float transformY;\nuniform vec3 lightColor;\nuniform float lightAlpha;\nuniform vec3 shadowColor;\nuniform float shadowAlpha;\n\nvoid main(void) {\n vec2 transform = vec2(1.0 / filterArea) * vec2(transformX, transformY);\n vec4 color = texture2D(uSampler, vTextureCoord);\n float light = texture2D(uSampler, vTextureCoord - transform).a;\n float shadow = texture2D(uSampler, vTextureCoord + transform).a;\n\n color.rgb = mix(color.rgb, lightColor, clamp((color.a - light) * lightAlpha, 0.0, 1.0));\n color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0));\n gl_FragColor = vec4(color.rgb * color.a, color.a);\n}\n"),this.uniforms.lightColor=new Float32Array(3),this.uniforms.shadowColor=new Float32Array(3),e=Object.assign({rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},e),this.rotation=e.rotation,this.thickness=e.thickness,this.lightColor=e.lightColor,this.lightAlpha=e.lightAlpha,this.shadowColor=e.shadowColor,this.shadowAlpha=e.shadowAlpha}t&&(e.__proto__=t);var r={rotation:{configurable:!0},thickness:{configurable:!0},lightColor:{configurable:!0},lightAlpha:{configurable:!0},shadowColor:{configurable:!0},shadowAlpha:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},r.rotation.get=function(){return this._angle/f.DEG_TO_RAD},r.rotation.set=function(e){this._angle=e*f.DEG_TO_RAD,this._updateTransform()},r.thickness.get=function(){return this._thickness},r.thickness.set=function(e){this._thickness=e,this._updateTransform()},r.lightColor.get=function(){return f.utils.rgb2hex(this.uniforms.lightColor)},r.lightColor.set=function(e){f.utils.hex2rgb(e,this.uniforms.lightColor)},r.lightAlpha.get=function(){return this.uniforms.lightAlpha},r.lightAlpha.set=function(e){this.uniforms.lightAlpha=e},r.shadowColor.get=function(){return f.utils.rgb2hex(this.uniforms.shadowColor)},r.shadowColor.set=function(e){f.utils.hex2rgb(e,this.uniforms.shadowColor)},r.shadowAlpha.get=function(){return this.uniforms.shadowAlpha},r.shadowAlpha.set=function(e){this.uniforms.shadowAlpha=e},Object.defineProperties(e.prototype,r),e}(f.Filter),o=f.filters,l=o.BlurXFilter,c=o.BlurYFilter,h=o.AlphaFilter,p=function(o){function e(e,t,r,i){var n,a;void 0===e&&(e=2),void 0===t&&(t=4),void 0===r&&(r=f.settings.RESOLUTION),void 0===i&&(i=5),o.call(this),"number"==typeof e?a=n=e:e instanceof f.Point?(n=e.x,a=e.y):Array.isArray(e)&&(n=e[0],a=e[1]),this.blurXFilter=new l(n,t,r,i),this.blurYFilter=new c(a,t,r,i),this.blurYFilter.blendMode=f.BLEND_MODES.SCREEN,this.defaultFilter=new h}o&&(e.__proto__=o);var t={blur:{configurable:!0},blurX:{configurable:!0},blurY:{configurable:!0}};return((e.prototype=Object.create(o&&o.prototype)).constructor=e).prototype.apply=function(e,t,r){var i=e.getRenderTarget(!0);this.defaultFilter.apply(e,t,r),this.blurXFilter.apply(e,t,i),this.blurYFilter.apply(e,i,r),e.returnRenderTarget(i)},t.blur.get=function(){return this.blurXFilter.blur},t.blur.set=function(e){this.blurXFilter.blur=this.blurYFilter.blur=e},t.blurX.get=function(){return this.blurXFilter.blur},t.blurX.set=function(e){this.blurXFilter.blur=e},t.blurY.get=function(){return this.blurYFilter.blur},t.blurY.set=function(e){this.blurYFilter.blur=e},Object.defineProperties(e.prototype,t),e}(f.Filter),m=function(i){function e(e,t,r){i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","uniform float radius;\nuniform float strength;\nuniform vec2 center;\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nvoid main()\n{\n vec2 coord = vTextureCoord * filterArea.xy;\n coord -= center * dimensions.xy;\n float distance = length(coord);\n if (distance < radius) {\n float percent = distance / radius;\n if (strength > 0.0) {\n coord *= mix(1.0, smoothstep(0.0, radius / distance, percent), strength * 0.75);\n } else {\n coord *= mix(1.0, pow(percent, 1.0 + strength * 0.75) * radius / distance, 1.0 - percent);\n }\n }\n coord += center * dimensions.xy;\n coord /= filterArea.xy;\n vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n vec4 color = texture2D(uSampler, clampedCoord);\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n gl_FragColor = color;\n}\n"),this.uniforms.dimensions=new Float32Array(2),this.center=e||[.5,.5],this.radius="number"==typeof t?t:100,this.strength="number"==typeof r?r:1}i&&(e.__proto__=i);var t={radius:{configurable:!0},strength:{configurable:!0},center:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,e.applyFilter(this,t,r,i)},t.radius.get=function(){return this.uniforms.radius},t.radius.set=function(e){this.uniforms.radius=e},t.strength.get=function(){return this.uniforms.strength},t.strength.set=function(e){this.uniforms.strength=e},t.center.get=function(){return this.uniforms.center},t.center.set=function(e){this.uniforms.center=e},Object.defineProperties(e.prototype,t),e}(f.Filter),g=function(i){function e(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=1),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D colorMap;\nuniform float _mix;\nuniform float _size;\nuniform float _sliceSize;\nuniform float _slicePixelSize;\nuniform float _sliceInnerSize;\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord.xy);\n\n vec4 adjusted;\n if (color.a > 0.0) {\n color.rgb /= color.a;\n float innerWidth = _size - 1.0;\n float zSlice0 = min(floor(color.b * innerWidth), innerWidth);\n float zSlice1 = min(zSlice0 + 1.0, innerWidth);\n float xOffset = _slicePixelSize * 0.5 + color.r * _sliceInnerSize;\n float s0 = xOffset + (zSlice0 * _sliceSize);\n float s1 = xOffset + (zSlice1 * _sliceSize);\n float yOffset = _sliceSize * 0.5 + color.g * (1.0 - _sliceSize);\n vec4 slice0Color = texture2D(colorMap, vec2(s0,yOffset));\n vec4 slice1Color = texture2D(colorMap, vec2(s1,yOffset));\n float zOffset = fract(color.b * innerWidth);\n adjusted = mix(slice0Color, slice1Color, zOffset);\n\n color.rgb *= color.a;\n }\n gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a);\n\n}"),this._size=0,this._sliceSize=0,this._slicePixelSize=0,this._sliceInnerSize=0,this._scaleMode=null,this._nearest=!1,this.nearest=t,this.mix=r,this.colorMap=e}i&&(e.__proto__=i);var t={colorSize:{configurable:!0},colorMap:{configurable:!0},nearest:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms._mix=this.mix,e.applyFilter(this,t,r,i)},t.colorSize.get=function(){return this._size},t.colorMap.get=function(){return this._colorMap},t.colorMap.set=function(e){e instanceof f.Texture||(e=f.Texture.from(e)),e&&e.baseTexture&&(e.baseTexture.scaleMode=this._scaleMode,e.baseTexture.mipmap=!1,this._size=e.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=e),this._colorMap=e},t.nearest.get=function(){return this._nearest},t.nearest.set=function(e){this._nearest=e,this._scaleMode=e?f.SCALE_MODES.NEAREST:f.SCALE_MODES.LINEAR;var t=this._colorMap;t&&t.baseTexture&&(t.baseTexture._glTextures={},t.baseTexture.scaleMode=this._scaleMode,t.baseTexture.mipmap=!1,t._updateID++,t.baseTexture.emit("update",t.baseTexture))},e.prototype.updateColorMap=function(){var e=this._colorMap;e&&e.baseTexture&&(e._updateID++,e.baseTexture.emit("update",e.baseTexture),this.colorMap=e)},e.prototype.destroy=function(e){this._colorMap&&this._colorMap.destroy(e),i.prototype.destroy.call(this)},Object.defineProperties(e.prototype,t),e}(f.Filter),v=function(i){function e(e,t,r){void 0===e&&(e=16711680),void 0===t&&(t=0),void 0===r&&(r=.4),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec3 originalColor;\nuniform vec3 newColor;\nuniform float epsilon;\nvoid main(void) {\n vec4 currentColor = texture2D(uSampler, vTextureCoord);\n vec3 colorDiff = originalColor - (currentColor.rgb / max(currentColor.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n float doReplace = step(colorDistance, epsilon);\n gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a);\n}\n"),this.uniforms.originalColor=new Float32Array(3),this.uniforms.newColor=new Float32Array(3),this.originalColor=e,this.newColor=t,this.epsilon=r}i&&(e.__proto__=i),(e.prototype=Object.create(i&&i.prototype)).constructor=e;var t={originalColor:{configurable:!0},newColor:{configurable:!0},epsilon:{configurable:!0}};return t.originalColor.set=function(e){var t=this.uniforms.originalColor;"number"==typeof e?(f.utils.hex2rgb(e,t),this._originalColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._originalColor=f.utils.rgb2hex(t))},t.originalColor.get=function(){return this._originalColor},t.newColor.set=function(e){var t=this.uniforms.newColor;"number"==typeof e?(f.utils.hex2rgb(e,t),this._newColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._newColor=f.utils.rgb2hex(t))},t.newColor.get=function(){return this._newColor},t.epsilon.set=function(e){this.uniforms.epsilon=e},t.epsilon.get=function(){return this.uniforms.epsilon},Object.defineProperties(e.prototype,t),e}(f.Filter),b=function(i){function e(e,t,r){void 0===t&&(t=200),void 0===r&&(r=200),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying mediump vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec2 texelSize;\nuniform float matrix[9];\n\nvoid main(void)\n{\n vec4 c11 = texture2D(uSampler, vTextureCoord - texelSize); // top left\n vec4 c12 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - texelSize.y)); // top center\n vec4 c13 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y - texelSize.y)); // top right\n\n vec4 c21 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y)); // mid left\n vec4 c22 = texture2D(uSampler, vTextureCoord); // mid center\n vec4 c23 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y)); // mid right\n\n vec4 c31 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y + texelSize.y)); // bottom left\n vec4 c32 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + texelSize.y)); // bottom center\n vec4 c33 = texture2D(uSampler, vTextureCoord + texelSize); // bottom right\n\n gl_FragColor =\n c11 * matrix[0] + c12 * matrix[1] + c13 * matrix[2] +\n c21 * matrix[3] + c22 * matrix[4] + c23 * matrix[5] +\n c31 * matrix[6] + c32 * matrix[7] + c33 * matrix[8];\n\n gl_FragColor.a = c22.a;\n}\n"),this.uniforms.texelSize=new Float32Array(2),this.uniforms.matrix=new Float32Array(9),void 0!==e&&(this.matrix=e),this.width=t,this.height=r}i&&(e.__proto__=i),(e.prototype=Object.create(i&&i.prototype)).constructor=e;var t={matrix:{configurable:!0},width:{configurable:!0},height:{configurable:!0}};return t.matrix.get=function(){return this.uniforms.matrix},t.matrix.set=function(e){var r=this;e.forEach(function(e,t){return r.uniforms.matrix[t]=e})},t.width.get=function(){return 1/this.uniforms.texelSize[0]},t.width.set=function(e){this.uniforms.texelSize[0]=1/e},t.height.get=function(){return 1/this.uniforms.texelSize[1]},t.height.set=function(e){this.uniforms.texelSize[1]=1/e},Object.defineProperties(e.prototype,t),e}(f.Filter),y=function(e){function t(){e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n float lum = length(texture2D(uSampler, vTextureCoord.xy).rgb);\n\n gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n\n if (lum < 1.00)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.75)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.50)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.3)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n}\n")}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(f.Filter),_=function(t){function e(e){t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nconst float SQRT_2 = 1.414213;\n\nconst float light = 1.0;\n\nuniform float curvature;\nuniform float lineWidth;\nuniform float lineContrast;\nuniform bool verticalLine;\nuniform float noise;\nuniform float noiseSize;\n\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\n\nuniform float seed;\nuniform float time;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n vec2 coord = pixelCoord / dimensions;\n\n vec2 dir = vec2(coord - vec2(0.5, 0.5));\n\n float _c = curvature > 0. ? curvature : 1.;\n float k = curvature > 0. ?(length(dir * dir) * 0.25 * _c * _c + 0.935 * _c) : 1.;\n vec2 uv = dir * k;\n\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n vec3 rgb = gl_FragColor.rgb;\n\n\n if (noise > 0.0 && noiseSize > 0.0)\n {\n pixelCoord.x = floor(pixelCoord.x / noiseSize);\n pixelCoord.y = floor(pixelCoord.y / noiseSize);\n float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n rgb += _noise * noise;\n }\n\n if (lineWidth > 0.0) {\n float v = (verticalLine ? uv.x * dimensions.x : uv.y * dimensions.y) * min(1.0, 2.0 / lineWidth ) / _c;\n float j = 1. + cos(v * 1.2 - time) * 0.5 * lineContrast;\n rgb *= j;\n float segment = verticalLine ? mod((dir.x + .5) * dimensions.x, 4.) : mod((dir.y + .5) * dimensions.y, 4.);\n rgb *= 0.99 + ceil(segment) * 0.015;\n }\n\n if (vignetting > 0.0)\n {\n float outter = SQRT_2 - vignetting * SQRT_2;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n }\n\n gl_FragColor.rgb = rgb;\n}\n"),this.uniforms.dimensions=new Float32Array(2),this.time=0,this.seed=0,Object.assign(this,{curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},e)}t&&(e.__proto__=t);var r={curvature:{configurable:!0},lineWidth:{configurable:!0},lineContrast:{configurable:!0},verticalLine:{configurable:!0},noise:{configurable:!0},noiseSize:{configurable:!0},vignetting:{configurable:!0},vignettingAlpha:{configurable:!0},vignettingBlur:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,this.uniforms.seed=this.seed,this.uniforms.time=this.time,e.applyFilter(this,t,r,i)},r.curvature.set=function(e){this.uniforms.curvature=e},r.curvature.get=function(){return this.uniforms.curvature},r.lineWidth.set=function(e){this.uniforms.lineWidth=e},r.lineWidth.get=function(){return this.uniforms.lineWidth},r.lineContrast.set=function(e){this.uniforms.lineContrast=e},r.lineContrast.get=function(){return this.uniforms.lineContrast},r.verticalLine.set=function(e){this.uniforms.verticalLine=e},r.verticalLine.get=function(){return this.uniforms.verticalLine},r.noise.set=function(e){this.uniforms.noise=e},r.noise.get=function(){return this.uniforms.noise},r.noiseSize.set=function(e){this.uniforms.noiseSize=e},r.noiseSize.get=function(){return this.uniforms.noiseSize},r.vignetting.set=function(e){this.uniforms.vignetting=e},r.vignetting.get=function(){return this.uniforms.vignetting},r.vignettingAlpha.set=function(e){this.uniforms.vignettingAlpha=e},r.vignettingAlpha.get=function(){return this.uniforms.vignettingAlpha},r.vignettingBlur.set=function(e){this.uniforms.vignettingBlur=e},r.vignettingBlur.get=function(){return this.uniforms.vignettingBlur},Object.defineProperties(e.prototype,r),e}(f.Filter),w=function(r){function e(e,t){void 0===e&&(e=1),void 0===t&&(t=5),r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec4 filterArea;\nuniform sampler2D uSampler;\n\nuniform float angle;\nuniform float scale;\n\nfloat pattern()\n{\n float s = sin(angle), c = cos(angle);\n vec2 tex = vTextureCoord * filterArea.xy;\n vec2 point = vec2(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * scale;\n return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float average = (color.r + color.g + color.b) / 3.0;\n gl_FragColor = vec4(vec3(average * 10.0 - 5.0 + pattern()), color.a);\n}\n"),this.scale=e,this.angle=t}r&&(e.__proto__=r),(e.prototype=Object.create(r&&r.prototype)).constructor=e;var t={scale:{configurable:!0},angle:{configurable:!0}};return t.scale.get=function(){return this.uniforms.scale},t.scale.set=function(e){this.uniforms.scale=e},t.angle.get=function(){return this.uniforms.angle},t.angle.set=function(e){this.uniforms.angle=e},Object.defineProperties(e.prototype,t),e}(f.Filter),x=function(h){function e(e){e&&e.constructor!==Object&&(console.warn("DropShadowFilter now uses options instead of (rotation, distance, blur, color, alpha)"),e={rotation:e},void 0!==arguments[1]&&(e.distance=arguments[1]),void 0!==arguments[2]&&(e.blur=arguments[2]),void 0!==arguments[3]&&(e.color=arguments[3]),void 0!==arguments[4]&&(e.alpha=arguments[4])),e=Object.assign({rotation:45,distance:5,color:0,alpha:.5,shadowOnly:!1,kernels:null,blur:2,quality:3,pixelSize:1,resolution:f.settings.RESOLUTION},e),h.call(this);var t=e.kernels,r=e.blur,i=e.quality,n=e.pixelSize,a=e.resolution;this._tintFilter=new f.Filter("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform vec3 color;\nvoid main(void){\n vec4 sample = texture2D(uSampler, vTextureCoord);\n\n // Un-premultiply alpha before applying the color\n if (sample.a > 0.0) {\n sample.rgb /= sample.a;\n }\n\n // Premultiply alpha again\n sample.rgb = color.rgb * sample.a;\n\n // alpha user alpha\n sample *= alpha;\n\n gl_FragColor = sample;\n}"),this._tintFilter.uniforms.color=new Float32Array(4),this._tintFilter.resolution=a,this._blurFilter=t?new d(t):new d(r,i),this.pixelSize=n,this.resolution=a,this.targetTransform=new f.Matrix;var o=e.shadowOnly,s=e.rotation,u=e.distance,l=e.alpha,c=e.color;this.shadowOnly=o,this.rotation=s,this.distance=u,this.alpha=l,this.color=c,this._updatePadding()}h&&(e.__proto__=h);var t={resolution:{configurable:!0},distance:{configurable:!0},rotation:{configurable:!0},alpha:{configurable:!0},color:{configurable:!0},kernels:{configurable:!0},blur:{configurable:!0},quality:{configurable:!0},pixelSize:{configurable:!0}};return((e.prototype=Object.create(h&&h.prototype)).constructor=e).prototype.apply=function(e,t,r,i){var n=e.getRenderTarget();n.transform=this.targetTransform,this._tintFilter.apply(e,t,n,!0),n.transform=null,this._blurFilter.apply(e,n,r,i),!0!==this.shadowOnly&&e.applyFilter(this,t,r,!1),e.returnRenderTarget(n)},e.prototype._updatePadding=function(){this.padding=this.distance+2*this.blur},e.prototype._updateTargetTransform=function(){this.targetTransform.tx=this.distance*Math.cos(this.angle),this.targetTransform.ty=this.distance*Math.sin(this.angle)},t.resolution.get=function(){return this._resolution},t.resolution.set=function(e){this._resolution=e,this._tintFilter&&(this._tintFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},t.distance.get=function(){return this._distance},t.distance.set=function(e){this._distance=e,this._updatePadding(),this._updateTargetTransform()},t.rotation.get=function(){return this.angle/f.DEG_TO_RAD},t.rotation.set=function(e){this.angle=e*f.DEG_TO_RAD,this._updateTargetTransform()},t.alpha.get=function(){return this._tintFilter.uniforms.alpha},t.alpha.set=function(e){this._tintFilter.uniforms.alpha=e},t.color.get=function(){return f.utils.rgb2hex(this._tintFilter.uniforms.color)},t.color.set=function(e){f.utils.hex2rgb(e,this._tintFilter.uniforms.color)},t.kernels.get=function(){return this._blurFilter.kernels},t.kernels.set=function(e){this._blurFilter.kernels=e},t.blur.get=function(){return this._blurFilter.blur},t.blur.set=function(e){this._blurFilter.blur=e,this._updatePadding()},t.quality.get=function(){return this._blurFilter.quality},t.quality.set=function(e){this._blurFilter.quality=e},t.pixelSize.get=function(){return this._blurFilter.pixelSize},t.pixelSize.set=function(e){this._blurFilter.pixelSize=e},Object.defineProperties(e.prototype,t),e}(f.Filter),k=function(t){function e(e){void 0===e&&(e=5),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float strength;\nuniform vec4 filterArea;\n\n\nvoid main(void)\n{\n\tvec2 onePixel = vec2(1.0 / filterArea);\n\n\tvec4 color;\n\n\tcolor.rgb = vec3(0.5);\n\n\tcolor -= texture2D(uSampler, vTextureCoord - onePixel) * strength;\n\tcolor += texture2D(uSampler, vTextureCoord + onePixel) * strength;\n\n\tcolor.rgb = vec3((color.r + color.g + color.b) / 3.0);\n\n\tfloat alpha = texture2D(uSampler, vTextureCoord).a;\n\n\tgl_FragColor = vec4(color.rgb * alpha, alpha);\n}\n"),this.strength=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={strength:{configurable:!0}};return r.strength.get=function(){return this.uniforms.strength},r.strength.set=function(e){this.uniforms.strength=e},Object.defineProperties(e.prototype,r),e}(f.Filter),T=function(t){function e(e){void 0===e&&(e={}),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","// precision highp float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\nuniform float aspect;\n\nuniform sampler2D displacementMap;\nuniform float offset;\nuniform float sinDir;\nuniform float cosDir;\nuniform int fillMode;\n\nuniform float seed;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nconst int TRANSPARENT = 0;\nconst int ORIGINAL = 1;\nconst int LOOP = 2;\nconst int CLAMP = 3;\nconst int MIRROR = 4;\n\nvoid main(void)\n{\n vec2 coord = (vTextureCoord * filterArea.xy) / dimensions;\n\n if (coord.x > 1.0 || coord.y > 1.0) {\n return;\n }\n\n float cx = coord.x - 0.5;\n float cy = (coord.y - 0.5) * aspect;\n float ny = (-sinDir * cx + cosDir * cy) / aspect + 0.5;\n\n // displacementMap: repeat\n // ny = ny > 1.0 ? ny - 1.0 : (ny < 0.0 ? 1.0 + ny : ny);\n\n // displacementMap: mirror\n ny = ny > 1.0 ? 2.0 - ny : (ny < 0.0 ? -ny : ny);\n\n vec4 dc = texture2D(displacementMap, vec2(0.5, ny));\n\n float displacement = (dc.r - dc.g) * (offset / filterArea.x);\n\n coord = vTextureCoord + vec2(cosDir * displacement, sinDir * displacement * aspect);\n\n if (fillMode == CLAMP) {\n coord = clamp(coord, filterClamp.xy, filterClamp.zw);\n } else {\n if( coord.x > filterClamp.z ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.x -= filterClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x = filterClamp.z * 2.0 - coord.x;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n } else if( coord.x < filterClamp.x ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.x += filterClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x *= -filterClamp.z;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n }\n\n if( coord.y > filterClamp.w ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.y -= filterClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y = filterClamp.w * 2.0 - coord.y;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n } else if( coord.y < filterClamp.y ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.y += filterClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y *= -filterClamp.w;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n }\n }\n\n gl_FragColor.r = texture2D(uSampler, coord + red * (1.0 - seed * 0.4) / filterArea.xy).r;\n gl_FragColor.g = texture2D(uSampler, coord + green * (1.0 - seed * 0.3) / filterArea.xy).g;\n gl_FragColor.b = texture2D(uSampler, coord + blue * (1.0 - seed * 0.2) / filterArea.xy).b;\n gl_FragColor.a = texture2D(uSampler, coord).a;\n}\n"),this.uniforms.dimensions=new Float32Array(2),e=Object.assign({slices:5,offset:100,direction:0,fillMode:0,average:!1,seed:0,red:[0,0],green:[0,0],blue:[0,0],minSize:8,sampleSize:512},e),this.direction=e.direction,this.red=e.red,this.green=e.green,this.blue=e.blue,this.offset=e.offset,this.fillMode=e.fillMode,this.average=e.average,this.seed=e.seed,this.minSize=e.minSize,this.sampleSize=e.sampleSize,this._canvas=document.createElement("canvas"),this._canvas.width=4,this._canvas.height=this.sampleSize,this.texture=f.Texture.fromCanvas(this._canvas,f.SCALE_MODES.NEAREST),this._slices=0,this.slices=e.slices}t&&(e.__proto__=t);var r={sizes:{configurable:!0},offsets:{configurable:!0},slices:{configurable:!0},direction:{configurable:!0},red:{configurable:!0},green:{configurable:!0},blue:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,i){var n=t.sourceFrame.width,a=t.sourceFrame.height;this.uniforms.dimensions[0]=n,this.uniforms.dimensions[1]=a,this.uniforms.aspect=a/n,this.uniforms.seed=this.seed,this.uniforms.offset=this.offset,this.uniforms.fillMode=this.fillMode,e.applyFilter(this,t,r,i)},e.prototype._randomizeSizes=function(){var e=this._sizes,t=this._slices-1,r=this.sampleSize,i=Math.min(this.minSize/r,.9/this._slices);if(this.average){for(var n=this._slices,a=1,o=0;o<t;o++){var s=a/(n-o),u=Math.max(s*(1-.6*Math.random()),i);a-=e[o]=u}e[t]=a}else{for(var l=1,c=Math.sqrt(1/this._slices),h=0;h<t;h++){var f=Math.max(c*l*Math.random(),i);l-=e[h]=f}e[t]=l}this.shuffle()},e.prototype.shuffle=function(){for(var e=this._sizes,t=this._slices-1;0<t;t--){var r=Math.random()*t>>0,i=e[t];e[t]=e[r],e[r]=i}},e.prototype._randomizeOffsets=function(){for(var e=0;e<this._slices;e++)this._offsets[e]=Math.random()*(Math.random()<.5?-1:1)},e.prototype.refresh=function(){this._randomizeSizes(),this._randomizeOffsets(),this.redraw()},e.prototype.redraw=function(){var e,t=this.sampleSize,r=this.texture,i=this._canvas.getContext("2d");i.clearRect(0,0,8,t);for(var n=0,a=0;a<this._slices;a++){e=Math.floor(256*this._offsets[a]);var o=this._sizes[a]*t,s=0<e?e:0,u=e<0?-e:0;i.fillStyle="rgba("+s+", "+u+", 0, 1)",i.fillRect(0,n>>0,t,1+o>>0),n+=o}r.baseTexture.update(),this.uniforms.displacementMap=r},r.sizes.set=function(e){for(var t=Math.min(this._slices,e.length),r=0;r<t;r++)this._sizes[r]=e[r]},r.sizes.get=function(){return this._sizes},r.offsets.set=function(e){for(var t=Math.min(this._slices,e.length),r=0;r<t;r++)this._offsets[r]=e[r]},r.offsets.get=function(){return this._offsets},r.slices.get=function(){return this._slices},r.slices.set=function(e){this._slices!==e&&(this._slices=e,this.uniforms.slices=e,this._sizes=this.uniforms.slicesWidth=new Float32Array(e),this._offsets=this.uniforms.slicesOffset=new Float32Array(e),this.refresh())},r.direction.get=function(){return this._direction},r.direction.set=function(e){if(this._direction!==e){var t=(this._direction=e)*f.DEG_TO_RAD;this.uniforms.sinDir=Math.sin(t),this.uniforms.cosDir=Math.cos(t)}},r.red.get=function(){return this.uniforms.red},r.red.set=function(e){this.uniforms.red=e},r.green.get=function(){return this.uniforms.green},r.green.set=function(e){this.uniforms.green=e},r.blue.get=function(){return this.uniforms.blue},r.blue.set=function(e){this.uniforms.blue=e},e.prototype.destroy=function(){this.texture.destroy(!0),this.texture=null,this._canvas=null,this.red=null,this.green=null,this.blue=null,this._sizes=null,this._offsets=null},Object.defineProperties(e.prototype,r),e}(f.Filter);T.TRANSPARENT=0,T.ORIGINAL=1,T.LOOP=2,T.CLAMP=3,T.MIRROR=4;var S=function(a){function e(e,t,r,i,n){void 0===e&&(e=10),void 0===t&&(t=4),void 0===r&&(r=0),void 0===i&&(i=16777215),void 0===n&&(n=.1),a.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nuniform float distance;\nuniform float outerStrength;\nuniform float innerStrength;\nuniform vec4 glowColor;\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nconst float PI = 3.14159265358979323846264;\n\nvoid main(void) {\n vec2 px = vec2(1.0 / filterArea.x, 1.0 / filterArea.y);\n vec4 ownColor = texture2D(uSampler, vTextureCoord);\n vec4 curColor;\n float totalAlpha = 0.0;\n float maxTotalAlpha = 0.0;\n float cosAngle;\n float sinAngle;\n vec2 displaced;\n for (float angle = 0.0; angle <= PI * 2.0; angle += %QUALITY_DIST%) {\n cosAngle = cos(angle);\n sinAngle = sin(angle);\n for (float curDistance = 1.0; curDistance <= %DIST%; curDistance++) {\n displaced.x = vTextureCoord.x + cosAngle * curDistance * px.x;\n displaced.y = vTextureCoord.y + sinAngle * curDistance * px.y;\n curColor = texture2D(uSampler, clamp(displaced, filterClamp.xy, filterClamp.zw));\n totalAlpha += (distance - curDistance) * curColor.a;\n maxTotalAlpha += (distance - curDistance);\n }\n }\n maxTotalAlpha = max(maxTotalAlpha, 0.0001);\n\n ownColor.a = max(ownColor.a, 0.0001);\n ownColor.rgb = ownColor.rgb / ownColor.a;\n float outerGlowAlpha = (totalAlpha / maxTotalAlpha) * outerStrength * (1. - ownColor.a);\n float innerGlowAlpha = ((maxTotalAlpha - totalAlpha) / maxTotalAlpha) * innerStrength * ownColor.a;\n float resultAlpha = (ownColor.a + outerGlowAlpha);\n gl_FragColor = vec4(mix(mix(ownColor.rgb, glowColor.rgb, innerGlowAlpha / ownColor.a), glowColor.rgb, outerGlowAlpha / resultAlpha) * resultAlpha, resultAlpha);\n}\n".replace(/%QUALITY_DIST%/gi,""+(1/n/e).toFixed(7)).replace(/%DIST%/gi,""+e.toFixed(7))),this.uniforms.glowColor=new Float32Array([0,0,0,1]),this.distance=e,this.color=i,this.outerStrength=t,this.innerStrength=r}a&&(e.__proto__=a),(e.prototype=Object.create(a&&a.prototype)).constructor=e;var t={color:{configurable:!0},distance:{configurable:!0},outerStrength:{configurable:!0},innerStrength:{configurable:!0}};return t.color.get=function(){return f.utils.rgb2hex(this.uniforms.glowColor)},t.color.set=function(e){f.utils.hex2rgb(e,this.uniforms.glowColor)},t.distance.get=function(){return this.uniforms.distance},t.distance.set=function(e){this.uniforms.distance=e},t.outerStrength.get=function(){return this.uniforms.outerStrength},t.outerStrength.set=function(e){this.uniforms.outerStrength=e},t.innerStrength.get=function(){return this.uniforms.innerStrength},t.innerStrength.set=function(e){this.uniforms.innerStrength=e},Object.defineProperties(e.prototype,t),e}(f.Filter),E=function(t){function e(e){t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform vec2 light;\nuniform bool parallel;\nuniform float aspect;\n\nuniform float gain;\nuniform float lacunarity;\nuniform float time;\n\n${perlin}\n\nvoid main(void) {\n vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n float d;\n\n if (parallel) {\n float _cos = light.x;\n float _sin = light.y;\n d = (_cos * coord.x) + (_sin * coord.y * aspect);\n } else {\n float dx = coord.x - light.x / dimensions.x;\n float dy = (coord.y - light.y / dimensions.y) * aspect;\n float dis = sqrt(dx * dx + dy * dy) + 0.00001;\n d = dy / dis;\n }\n\n vec3 dir = vec3(d, d, 0.0);\n\n float noise = turb(dir + vec3(time, 0.0, 62.1 + time) * 0.05, vec3(480.0, 320.0, 480.0), lacunarity, gain);\n noise = mix(noise, 0.0, 0.3);\n //fade vertically.\n vec4 mist = vec4(noise, noise, noise, 1.0) * (1.0 - coord.y);\n mist.a = 1.0;\n\n gl_FragColor = texture2D(uSampler, vTextureCoord) + mist;\n}\n".replace("${perlin}","vec3 mod289(vec3 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 mod289(vec4 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 permute(vec4 x)\n{\n return mod289(((x * 34.0) + 1.0) * x);\n}\nvec4 taylorInvSqrt(vec4 r)\n{\n return 1.79284291400159 - 0.85373472095314 * r;\n}\nvec3 fade(vec3 t)\n{\n return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n// Classic Perlin noise, periodic variant\nfloat pnoise(vec3 P, vec3 rep)\n{\n vec3 Pi0 = mod(floor(P), rep); // Integer part, modulo period\n vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); // Integer part + 1, mod period\n Pi0 = mod289(Pi0);\n Pi1 = mod289(Pi1);\n vec3 Pf0 = fract(P); // Fractional part for interpolation\n vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0\n vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);\n vec4 iy = vec4(Pi0.yy, Pi1.yy);\n vec4 iz0 = Pi0.zzzz;\n vec4 iz1 = Pi1.zzzz;\n vec4 ixy = permute(permute(ix) + iy);\n vec4 ixy0 = permute(ixy + iz0);\n vec4 ixy1 = permute(ixy + iz1);\n vec4 gx0 = ixy0 * (1.0 / 7.0);\n vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;\n gx0 = fract(gx0);\n vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);\n vec4 sz0 = step(gz0, vec4(0.0));\n gx0 -= sz0 * (step(0.0, gx0) - 0.5);\n gy0 -= sz0 * (step(0.0, gy0) - 0.5);\n vec4 gx1 = ixy1 * (1.0 / 7.0);\n vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;\n gx1 = fract(gx1);\n vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);\n vec4 sz1 = step(gz1, vec4(0.0));\n gx1 -= sz1 * (step(0.0, gx1) - 0.5);\n gy1 -= sz1 * (step(0.0, gy1) - 0.5);\n vec3 g000 = vec3(gx0.x, gy0.x, gz0.x);\n vec3 g100 = vec3(gx0.y, gy0.y, gz0.y);\n vec3 g010 = vec3(gx0.z, gy0.z, gz0.z);\n vec3 g110 = vec3(gx0.w, gy0.w, gz0.w);\n vec3 g001 = vec3(gx1.x, gy1.x, gz1.x);\n vec3 g101 = vec3(gx1.y, gy1.y, gz1.y);\n vec3 g011 = vec3(gx1.z, gy1.z, gz1.z);\n vec3 g111 = vec3(gx1.w, gy1.w, gz1.w);\n vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));\n g000 *= norm0.x;\n g010 *= norm0.y;\n g100 *= norm0.z;\n g110 *= norm0.w;\n vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));\n g001 *= norm1.x;\n g011 *= norm1.y;\n g101 *= norm1.z;\n g111 *= norm1.w;\n float n000 = dot(g000, Pf0);\n float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));\n float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));\n float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));\n float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));\n float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));\n float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));\n float n111 = dot(g111, Pf1);\n vec3 fade_xyz = fade(Pf0);\n vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);\n vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);\n float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);\n return 2.2 * n_xyz;\n}\nfloat turb(vec3 P, vec3 rep, float lacunarity, float gain)\n{\n float sum = 0.0;\n float sc = 1.0;\n float totalgain = 1.0;\n for (float i = 0.0; i < 6.0; i++)\n {\n sum += totalgain * pnoise(P * sc, rep);\n sc *= lacunarity;\n totalgain *= gain;\n }\n return abs(sum);\n}\n")),this.uniforms.dimensions=new Float32Array(2),"number"==typeof e&&(console.warn("GodrayFilter now uses options instead of (angle, gain, lacunarity, time)"),e={angle:e},void 0!==arguments[1]&&(e.gain=arguments[1]),void 0!==arguments[2]&&(e.lacunarity=arguments[2]),void 0!==arguments[3]&&(e.time=arguments[3])),e=Object.assign({angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0]},e),this._angleLight=new f.Point,this.angle=e.angle,this.gain=e.gain,this.lacunarity=e.lacunarity,this.parallel=e.parallel,this.center=e.center,this.time=e.time}t&&(e.__proto__=t);var r={angle:{configurable:!0},gain:{configurable:!0},lacunarity:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,i){var n=t.sourceFrame,a=n.width,o=n.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=a,this.uniforms.dimensions[1]=o,this.uniforms.aspect=o/a,this.uniforms.time=this.time,e.applyFilter(this,t,r,i)},r.angle.get=function(){return this._angle},r.angle.set=function(e){var t=(this._angle=e)*f.DEG_TO_RAD;this._angleLight.x=Math.cos(t),this._angleLight.y=Math.sin(t)},r.gain.get=function(){return this.uniforms.gain},r.gain.set=function(e){this.uniforms.gain=e},r.lacunarity.get=function(){return this.uniforms.lacunarity},r.lacunarity.set=function(e){this.uniforms.lacunarity=e},Object.defineProperties(e.prototype,r),e}(f.Filter),M=function(i){function e(e,t,r){void 0===e&&(e=[0,0]),void 0===t&&(t=5),void 0===r&&(r=0),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uVelocity;\nuniform int uKernelSize;\nuniform float uOffset;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\n// Notice:\n// the perfect way:\n// int kernelSize = min(uKernelSize, MAX_KERNELSIZE);\n// BUT in real use-case , uKernelSize < MAX_KERNELSIZE almost always.\n// So use uKernelSize directly.\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n gl_FragColor = color;\n return;\n }\n\n vec2 velocity = uVelocity / filterArea.xy;\n float offset = -uOffset / length(uVelocity) - 0.5;\n int k = uKernelSize - 1;\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n vec2 bias = velocity * (float(i) / float(k) + offset);\n color += texture2D(uSampler, vTextureCoord + bias);\n }\n gl_FragColor = color / float(uKernelSize);\n}\n"),this.uniforms.uVelocity=new Float32Array(2),this._velocity=new f.ObservablePoint(this.velocityChanged,this),this.velocity=e,this.kernelSize=t,this.offset=r}i&&(e.__proto__=i);var t={velocity:{configurable:!0},offset:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r,i){var n=this.velocity,a=n.x,o=n.y;this.uniforms.uKernelSize=0!==a||0!==o?this.kernelSize:0,e.applyFilter(this,t,r,i)},t.velocity.set=function(e){Array.isArray(e)?this._velocity.set(e[0],e[1]):(e instanceof f.Point||e instanceof f.ObservablePoint)&&this._velocity.copy(e)},t.velocity.get=function(){return this._velocity},e.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y},t.offset.set=function(e){this.uniforms.uOffset=e},t.offset.get=function(){return this.uniforms.uOffset},Object.defineProperties(e.prototype,t),e}(f.Filter),P=function(i){function e(e,t,r){void 0===t&&(t=.05),void 0===r&&(r=null),r=r||e.length,i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float epsilon;\n\nconst int MAX_COLORS = %maxColors%;\n\nuniform vec3 originalColors[MAX_COLORS];\nuniform vec3 targetColors[MAX_COLORS];\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n\n float alpha = gl_FragColor.a;\n if (alpha < 0.0001)\n {\n return;\n }\n\n vec3 color = gl_FragColor.rgb / alpha;\n\n for(int i = 0; i < MAX_COLORS; i++)\n {\n vec3 origColor = originalColors[i];\n if (origColor.r < 0.0)\n {\n break;\n }\n vec3 colorDiff = origColor - color;\n if (length(colorDiff) < epsilon)\n {\n vec3 targetColor = targetColors[i];\n gl_FragColor = vec4((targetColor + colorDiff) * alpha, alpha);\n return;\n }\n }\n}\n".replace(/%maxColors%/g,r)),this.epsilon=t,this._maxColors=r,this._replacements=null,this.uniforms.originalColors=new Float32Array(3*r),this.uniforms.targetColors=new Float32Array(3*r),this.replacements=e}i&&(e.__proto__=i),(e.prototype=Object.create(i&&i.prototype)).constructor=e;var t={replacements:{configurable:!0},maxColors:{configurable:!0},epsilon:{configurable:!0}};return t.replacements.set=function(e){var t=this.uniforms.originalColors,r=this.uniforms.targetColors,i=e.length;if(i>this._maxColors)throw"Length of replacements ("+i+") exceeds the maximum colors length ("+this._maxColors+")";t[3*i]=-1;for(var n=0;n<i;n++){var a=e[n],o=a[0];"number"==typeof o?o=f.utils.hex2rgb(o):a[0]=f.utils.rgb2hex(o),t[3*n]=o[0],t[3*n+1]=o[1],t[3*n+2]=o[2];var s=a[1];"number"==typeof s?s=f.utils.hex2rgb(s):a[1]=f.utils.rgb2hex(s),r[3*n]=s[0],r[3*n+1]=s[1],r[3*n+2]=s[2]}this._replacements=e},t.replacements.get=function(){return this._replacements},e.prototype.refresh=function(){this.replacements=this._replacements},t.maxColors.get=function(){return this._maxColors},t.epsilon.set=function(e){this.uniforms.epsilon=e},t.epsilon.get=function(){return this.uniforms.epsilon},Object.defineProperties(e.prototype,t),e}(f.Filter),C=function(r){function e(e,t){void 0===t&&(t=0),r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform float sepia;\nuniform float noise;\nuniform float noiseSize;\nuniform float scratch;\nuniform float scratchDensity;\nuniform float scratchWidth;\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\nuniform float seed;\n\nconst float SQRT_2 = 1.414213;\nconst vec3 SEPIA_RGB = vec3(112.0 / 255.0, 66.0 / 255.0, 20.0 / 255.0);\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec3 Overlay(vec3 src, vec3 dst)\n{\n // if (dst <= 0.5) then: 2 * src * dst\n // if (dst > 0.5) then: 1 - 2 * (1 - dst) * (1 - src)\n return vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)),\n (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)),\n (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\n\n\nvoid main()\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n vec3 color = gl_FragColor.rgb;\n\n if (sepia > 0.0)\n {\n float gray = (color.x + color.y + color.z) / 3.0;\n vec3 grayscale = vec3(gray);\n\n color = Overlay(SEPIA_RGB, grayscale);\n\n color = grayscale + sepia * (color - grayscale);\n }\n\n vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n if (vignetting > 0.0)\n {\n float outter = SQRT_2 - vignetting * SQRT_2;\n vec2 dir = vec2(vec2(0.5, 0.5) - coord);\n dir.y *= dimensions.y / dimensions.x;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n color.rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n }\n\n if (scratchDensity > seed && scratch != 0.0)\n {\n float phase = seed * 256.0;\n float s = mod(floor(phase), 2.0);\n float dist = 1.0 / scratchDensity;\n float d = distance(coord, vec2(seed * dist, abs(s - seed * dist)));\n if (d < seed * 0.6 + 0.4)\n {\n highp float period = scratchDensity * 10.0;\n\n float xx = coord.x * period + phase;\n float aa = abs(mod(xx, 0.5) * 4.0);\n float bb = mod(floor(xx / 0.5), 2.0);\n float yy = (1.0 - bb) * aa + bb * (2.0 - aa);\n\n float kk = 2.0 * period;\n float dw = scratchWidth / dimensions.x * (0.75 + seed);\n float dh = dw * kk;\n\n float tine = (yy - (2.0 - dh));\n\n if (tine > 0.0) {\n float _sign = sign(scratch);\n\n tine = s * tine / period + scratch + 0.1;\n tine = clamp(tine + 1.0, 0.5 + _sign * 0.5, 1.5 + _sign * 0.5);\n\n color.rgb *= tine;\n }\n }\n }\n\n if (noise > 0.0 && noiseSize > 0.0)\n {\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n pixelCoord.x = floor(pixelCoord.x / noiseSize);\n pixelCoord.y = floor(pixelCoord.y / noiseSize);\n // vec2 d = pixelCoord * noiseSize * vec2(1024.0 + seed * 512.0, 1024.0 - seed * 512.0);\n // float _noise = snoise(d) * 0.5;\n float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n color += _noise * noise;\n }\n\n gl_FragColor.rgb = color;\n}\n"),this.uniforms.dimensions=new Float32Array(2),"number"==typeof e?(this.seed=e,e=null):this.seed=t,Object.assign(this,{sepia:.3,noise:.3,noiseSize:1,scratch:.5,scratchDensity:.3,scratchWidth:1,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3},e)}r&&(e.__proto__=r);var t={sepia:{configurable:!0},noise:{configurable:!0},noiseSize:{configurable:!0},scratch:{configurable:!0},scratchDensity:{configurable:!0},scratchWidth:{configurable:!0},vignetting:{configurable:!0},vignettingAlpha:{configurable:!0},vignettingBlur:{configurable:!0}};return((e.prototype=Object.create(r&&r.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,this.uniforms.seed=this.seed,e.applyFilter(this,t,r,i)},t.sepia.set=function(e){this.uniforms.sepia=e},t.sepia.get=function(){return this.uniforms.sepia},t.noise.set=function(e){this.uniforms.noise=e},t.noise.get=function(){return this.uniforms.noise},t.noiseSize.set=function(e){this.uniforms.noiseSize=e},t.noiseSize.get=function(){return this.uniforms.noiseSize},t.scratch.set=function(e){this.uniforms.scratch=e},t.scratch.get=function(){return this.uniforms.scratch},t.scratchDensity.set=function(e){this.uniforms.scratchDensity=e},t.scratchDensity.get=function(){return this.uniforms.scratchDensity},t.scratchWidth.set=function(e){this.uniforms.scratchWidth=e},t.scratchWidth.get=function(){return this.uniforms.scratchWidth},t.vignetting.set=function(e){this.uniforms.vignetting=e},t.vignetting.get=function(){return this.uniforms.vignetting},t.vignettingAlpha.set=function(e){this.uniforms.vignettingAlpha=e},t.vignettingAlpha.get=function(){return this.uniforms.vignettingAlpha},t.vignettingBlur.set=function(e){this.uniforms.vignettingBlur=e},t.vignettingBlur.get=function(){return this.uniforms.vignettingBlur},Object.defineProperties(e.prototype,t),e}(f.Filter),A=function(a){function o(e,t,r){void 0===e&&(e=1),void 0===t&&(t=0),void 0===r&&(r=.1);var i=Math.max(r*o.MAX_SAMPLES,o.MIN_SAMPLES),n=(2*Math.PI/i).toFixed(7);a.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 thickness;\nuniform vec4 outlineColor;\nuniform vec4 filterClamp;\n\nconst float DOUBLE_PI = 3.14159265358979323846264 * 2.;\n\nvoid main(void) {\n vec4 ownColor = texture2D(uSampler, vTextureCoord);\n vec4 curColor;\n float maxAlpha = 0.;\n vec2 displaced;\n for (float angle = 0.; angle <= DOUBLE_PI; angle += ${angleStep}) {\n displaced.x = vTextureCoord.x + thickness.x * cos(angle);\n displaced.y = vTextureCoord.y + thickness.y * sin(angle);\n curColor = texture2D(uSampler, clamp(displaced, filterClamp.xy, filterClamp.zw));\n maxAlpha = max(maxAlpha, curColor.a);\n }\n float resultAlpha = max(maxAlpha, ownColor.a);\n gl_FragColor = vec4((ownColor.rgb + outlineColor.rgb * (1. - ownColor.a)) * resultAlpha, resultAlpha);\n}\n".replace(/\$\{angleStep\}/,n)),this.uniforms.thickness=new Float32Array([0,0]),this.thickness=e,this.uniforms.outlineColor=new Float32Array([0,0,0,1]),this.color=t,this.quality=r}a&&(o.__proto__=a);var e={color:{configurable:!0}};return((o.prototype=Object.create(a&&a.prototype)).constructor=o).prototype.apply=function(e,t,r,i){this.uniforms.thickness[0]=this.thickness/t.size.width,this.uniforms.thickness[1]=this.thickness/t.size.height,e.applyFilter(this,t,r,i)},e.color.get=function(){return f.utils.rgb2hex(this.uniforms.outlineColor)},e.color.set=function(e){f.utils.hex2rgb(e,this.uniforms.outlineColor)},Object.defineProperties(o.prototype,e),o}(f.Filter);A.MIN_SAMPLES=1,A.MAX_SAMPLES=100;var O=function(t){function e(e){void 0===e&&(e=10),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform vec2 size;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n\treturn floor( coord / size ) * size;\n}\n\nvoid main(void)\n{\n vec2 coord = mapCoord(vTextureCoord);\n\n coord = pixelate(coord, size);\n\n coord = unmapCoord(coord);\n\n gl_FragColor = texture2D(uSampler, coord);\n}\n"),this.size=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={size:{configurable:!0}};return r.size.get=function(){return this.uniforms.size},r.size.set=function(e){"number"==typeof e&&(e=[e,e]),this.uniforms.size=e},Object.defineProperties(e.prototype,r),e}(f.Filter),I=function(n){function e(e,t,r,i){void 0===e&&(e=0),void 0===t&&(t=[0,0]),void 0===r&&(r=5),void 0===i&&(i=-1),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float uRadian;\nuniform vec2 uCenter;\nuniform float uRadius;\nuniform int uKernelSize;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n gl_FragColor = color;\n return;\n }\n\n float aspect = filterArea.y / filterArea.x;\n vec2 center = uCenter.xy / filterArea.xy;\n float gradient = uRadius / filterArea.x * 0.3;\n float radius = uRadius / filterArea.x - gradient * 0.5;\n int k = uKernelSize - 1;\n\n vec2 coord = vTextureCoord;\n vec2 dir = vec2(center - coord);\n float dist = length(vec2(dir.x, dir.y * aspect));\n\n float radianStep = uRadian;\n if (radius >= 0.0 && dist > radius) {\n float delta = dist - radius;\n float gap = gradient;\n float scale = 1.0 - abs(delta / gap);\n if (scale <= 0.0) {\n gl_FragColor = color;\n return;\n }\n radianStep *= scale;\n }\n radianStep /= float(k);\n\n float s = sin(radianStep);\n float c = cos(radianStep);\n mat2 rotationMatrix = mat2(vec2(c, -s), vec2(s, c));\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n\n coord -= center;\n coord.y *= aspect;\n coord = rotationMatrix * coord;\n coord.y /= aspect;\n coord += center;\n\n vec4 sample = texture2D(uSampler, coord);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample;\n }\n\n gl_FragColor = color / float(uKernelSize);\n}\n"),this._angle=0,this.angle=e,this.center=t,this.kernelSize=r,this.radius=i}n&&(e.__proto__=n);var t={angle:{configurable:!0},center:{configurable:!0},radius:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.uKernelSize=0!==this._angle?this.kernelSize:0,e.applyFilter(this,t,r,i)},t.angle.set=function(e){this._angle=e,this.uniforms.uRadian=e*Math.PI/180},t.angle.get=function(){return this._angle},t.center.get=function(){return this.uniforms.uCenter},t.center.set=function(e){this.uniforms.uCenter=e},t.radius.get=function(){return this.uniforms.uRadius},t.radius.set=function(e){(e<0||e===1/0)&&(e=-1),this.uniforms.uRadius=e},Object.defineProperties(e.prototype,t),e}(f.Filter),R=function(t){function e(e){t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nuniform bool mirror;\nuniform float boundary;\nuniform vec2 amplitude;\nuniform vec2 waveLength;\nuniform vec2 alpha;\nuniform float time;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n vec2 coord = pixelCoord / dimensions;\n\n if (coord.y < boundary) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n\n float k = (coord.y - boundary) / (1. - boundary + 0.0001);\n float areaY = boundary * dimensions.y / filterArea.y;\n float v = areaY + areaY - vTextureCoord.y;\n float y = mirror ? v : vTextureCoord.y;\n\n float _amplitude = ((amplitude.y - amplitude.x) * k + amplitude.x ) / filterArea.x;\n float _waveLength = ((waveLength.y - waveLength.x) * k + waveLength.x) / filterArea.y;\n float _alpha = (alpha.y - alpha.x) * k + alpha.x;\n\n float x = vTextureCoord.x + cos(v * 6.28 / _waveLength - time) * _amplitude;\n x = clamp(x, filterClamp.x, filterClamp.z);\n\n vec4 color = texture2D(uSampler, vec2(x, y));\n\n gl_FragColor = color * _alpha;\n}\n"),this.uniforms.amplitude=new Float32Array(2),this.uniforms.waveLength=new Float32Array(2),this.uniforms.alpha=new Float32Array(2),this.uniforms.dimensions=new Float32Array(2),Object.assign(this,{mirror:!0,boundary:.5,amplitude:[0,20],waveLength:[30,100],alpha:[1,1],time:0},e)}t&&(e.__proto__=t);var r={mirror:{configurable:!0},boundary:{configurable:!0},amplitude:{configurable:!0},waveLength:{configurable:!0},alpha:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,this.uniforms.time=this.time,e.applyFilter(this,t,r,i)},r.mirror.set=function(e){this.uniforms.mirror=e},r.mirror.get=function(){return this.uniforms.mirror},r.boundary.set=function(e){this.uniforms.boundary=e},r.boundary.get=function(){return this.uniforms.boundary},r.amplitude.set=function(e){this.uniforms.amplitude[0]=e[0],this.uniforms.amplitude[1]=e[1]},r.amplitude.get=function(){return this.uniforms.amplitude},r.waveLength.set=function(e){this.uniforms.waveLength[0]=e[0],this.uniforms.waveLength[1]=e[1]},r.waveLength.get=function(){return this.uniforms.waveLength},r.alpha.set=function(e){this.uniforms.alpha[0]=e[0],this.uniforms.alpha[1]=e[1]},r.alpha.get=function(){return this.uniforms.alpha},Object.defineProperties(e.prototype,r),e}(f.Filter),D=function(i){function e(e,t,r){void 0===e&&(e=[-10,0]),void 0===t&&(t=[0,10]),void 0===r&&(r=[0,0]),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nvoid main(void)\n{\n gl_FragColor.r = texture2D(uSampler, vTextureCoord + red/filterArea.xy).r;\n gl_FragColor.g = texture2D(uSampler, vTextureCoord + green/filterArea.xy).g;\n gl_FragColor.b = texture2D(uSampler, vTextureCoord + blue/filterArea.xy).b;\n gl_FragColor.a = texture2D(uSampler, vTextureCoord).a;\n}\n"),this.red=e,this.green=t,this.blue=r}i&&(e.__proto__=i),(e.prototype=Object.create(i&&i.prototype)).constructor=e;var t={red:{configurable:!0},green:{configurable:!0},blue:{configurable:!0}};return t.red.get=function(){return this.uniforms.red},t.red.set=function(e){this.uniforms.red=e},t.green.get=function(){return this.uniforms.green},t.green.set=function(e){this.uniforms.green=e},t.blue.get=function(){return this.uniforms.blue},t.blue.set=function(e){this.uniforms.blue=e},Object.defineProperties(e.prototype,t),e}(f.Filter),j=function(i){function e(e,t,r){void 0===e&&(e=[0,0]),void 0===t&&(t={}),void 0===r&&(r=0),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\n\nuniform vec2 center;\n\nuniform float amplitude;\nuniform float wavelength;\n// uniform float power;\nuniform float brightness;\nuniform float speed;\nuniform float radius;\n\nuniform float time;\n\nconst float PI = 3.14159;\n\nvoid main()\n{\n float halfWavelength = wavelength * 0.5 / filterArea.x;\n float maxRadius = radius / filterArea.x;\n float currentRadius = time * speed / filterArea.x;\n\n float fade = 1.0;\n\n if (maxRadius > 0.0) {\n if (currentRadius > maxRadius) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n fade = 1.0 - pow(currentRadius / maxRadius, 2.0);\n }\n\n vec2 dir = vec2(vTextureCoord - center / filterArea.xy);\n dir.y *= filterArea.y / filterArea.x;\n float dist = length(dir);\n\n if (dist <= 0.0 || dist < currentRadius - halfWavelength || dist > currentRadius + halfWavelength) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n\n vec2 diffUV = normalize(dir);\n\n float diff = (dist - currentRadius) / halfWavelength;\n\n float p = 1.0 - pow(abs(diff), 2.0);\n\n // float powDiff = diff * pow(p, 2.0) * ( amplitude * fade );\n float powDiff = 1.25 * sin(diff * PI) * p * ( amplitude * fade );\n\n vec2 offset = diffUV * powDiff / filterArea.xy;\n\n // Do clamp :\n vec2 coord = vTextureCoord + offset;\n vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n vec4 color = texture2D(uSampler, clampedCoord);\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n // No clamp :\n // gl_FragColor = texture2D(uSampler, vTextureCoord + offset);\n\n color.rgb *= 1.0 + (brightness - 1.0) * p * fade;\n\n gl_FragColor = color;\n}\n"),this.center=e,Array.isArray(t)&&(console.warn("Deprecated Warning: ShockwaveFilter params Array has been changed to options Object."),t={}),t=Object.assign({amplitude:30,wavelength:160,brightness:1,speed:500,radius:-1},t),this.amplitude=t.amplitude,this.wavelength=t.wavelength,this.brightness=t.brightness,this.speed=t.speed,this.radius=t.radius,this.time=r}i&&(e.__proto__=i);var t={center:{configurable:!0},amplitude:{configurable:!0},wavelength:{configurable:!0},brightness:{configurable:!0},speed:{configurable:!0},radius:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.time=this.time,e.applyFilter(this,t,r,i)},t.center.get=function(){return this.uniforms.center},t.center.set=function(e){this.uniforms.center=e},t.amplitude.get=function(){return this.uniforms.amplitude},t.amplitude.set=function(e){this.uniforms.amplitude=e},t.wavelength.get=function(){return this.uniforms.wavelength},t.wavelength.set=function(e){this.uniforms.wavelength=e},t.brightness.get=function(){return this.uniforms.brightness},t.brightness.set=function(e){this.uniforms.brightness=e},t.speed.get=function(){return this.uniforms.speed},t.speed.set=function(e){this.uniforms.speed=e},t.radius.get=function(){return this.uniforms.radius},t.radius.set=function(e){this.uniforms.radius=e},Object.defineProperties(e.prototype,t),e}(f.Filter),L=function(i){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=1),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D uLightmap;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\nuniform vec4 ambientColor;\nvoid main() {\n vec4 diffuseColor = texture2D(uSampler, vTextureCoord);\n vec2 lightCoord = (vTextureCoord * filterArea.xy) / dimensions;\n vec4 light = texture2D(uLightmap, lightCoord);\n vec3 ambient = ambientColor.rgb * ambientColor.a;\n vec3 intensity = ambient + light.rgb;\n vec3 finalColor = diffuseColor.rgb * intensity;\n gl_FragColor = vec4(finalColor, diffuseColor.a);\n}\n"),this.uniforms.dimensions=new Float32Array(2),this.uniforms.ambientColor=new Float32Array([0,0,0,r]),this.texture=e,this.color=t}i&&(e.__proto__=i);var t={texture:{configurable:!0},color:{configurable:!0},alpha:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r,i){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,e.applyFilter(this,t,r,i)},t.texture.get=function(){return this.uniforms.uLightmap},t.texture.set=function(e){this.uniforms.uLightmap=e},t.color.set=function(e){var t=this.uniforms.ambientColor;"number"==typeof e?(f.utils.hex2rgb(e,t),this._color=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],this._color=f.utils.rgb2hex(t))},t.color.get=function(){return this._color},t.alpha.get=function(){return this.uniforms.ambientColor[3]},t.alpha.set=function(e){this.uniforms.ambientColor[3]=e},Object.defineProperties(e.prototype,t),e}(f.Filter),z=function(n){function e(e,t,r,i){void 0===e&&(e=100),void 0===t&&(t=600),void 0===r&&(r=null),void 0===i&&(i=null),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float blur;\nuniform float gradientBlur;\nuniform vec2 start;\nuniform vec2 end;\nuniform vec2 delta;\nuniform vec2 texSize;\n\nfloat random(vec3 scale, float seed)\n{\n return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n float total = 0.0;\n\n float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n vec2 normal = normalize(vec2(start.y - end.y, end.x - start.x));\n float radius = smoothstep(0.0, 1.0, abs(dot(vTextureCoord * texSize - start, normal)) / gradientBlur) * blur;\n\n for (float t = -30.0; t <= 30.0; t++)\n {\n float percent = (t + offset - 0.5) / 30.0;\n float weight = 1.0 - abs(percent);\n vec4 sample = texture2D(uSampler, vTextureCoord + delta / texSize * percent * radius);\n sample.rgb *= sample.a;\n color += sample * weight;\n total += weight;\n }\n\n color /= total;\n color.rgb /= color.a + 0.00001;\n\n gl_FragColor = color;\n}\n"),this.uniforms.blur=e,this.uniforms.gradientBlur=t,this.uniforms.start=r||new f.Point(0,window.innerHeight/2),this.uniforms.end=i||new f.Point(600,window.innerHeight/2),this.uniforms.delta=new f.Point(30,30),this.uniforms.texSize=new f.Point(window.innerWidth,window.innerHeight),this.updateDelta()}n&&(e.__proto__=n);var t={blur:{configurable:!0},gradientBlur:{configurable:!0},start:{configurable:!0},end:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.updateDelta=function(){this.uniforms.delta.x=0,this.uniforms.delta.y=0},t.blur.get=function(){return this.uniforms.blur},t.blur.set=function(e){this.uniforms.blur=e},t.gradientBlur.get=function(){return this.uniforms.gradientBlur},t.gradientBlur.set=function(e){this.uniforms.gradientBlur=e},t.start.get=function(){return this.uniforms.start},t.start.set=function(e){this.uniforms.start=e,this.updateDelta()},t.end.get=function(){return this.uniforms.end},t.end.set=function(e){this.uniforms.end=e,this.updateDelta()},Object.defineProperties(e.prototype,t),e}(f.Filter),F=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.updateDelta=function(){var e=this.uniforms.end.x-this.uniforms.start.x,t=this.uniforms.end.y-this.uniforms.start.y,r=Math.sqrt(e*e+t*t);this.uniforms.delta.x=e/r,this.uniforms.delta.y=t/r},t}(z),B=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.updateDelta=function(){var e=this.uniforms.end.x-this.uniforms.start.x,t=this.uniforms.end.y-this.uniforms.start.y,r=Math.sqrt(e*e+t*t);this.uniforms.delta.x=-t/r,this.uniforms.delta.y=e/r},t}(z),N=function(n){function e(e,t,r,i){void 0===e&&(e=100),void 0===t&&(t=600),void 0===r&&(r=null),void 0===i&&(i=null),n.call(this),this.tiltShiftXFilter=new F(e,t,r,i),this.tiltShiftYFilter=new B(e,t,r,i)}n&&(e.__proto__=n);var t={blur:{configurable:!0},gradientBlur:{configurable:!0},start:{configurable:!0},end:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r){var i=e.getRenderTarget(!0);this.tiltShiftXFilter.apply(e,t,i),this.tiltShiftYFilter.apply(e,i,r),e.returnRenderTarget(i)},t.blur.get=function(){return this.tiltShiftXFilter.blur},t.blur.set=function(e){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=e},t.gradientBlur.get=function(){return this.tiltShiftXFilter.gradientBlur},t.gradientBlur.set=function(e){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=e},t.start.get=function(){return this.tiltShiftXFilter.start},t.start.set=function(e){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=e},t.end.get=function(){return this.tiltShiftXFilter.end},t.end.set=function(e){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=e},Object.defineProperties(e.prototype,t),e}(f.Filter),U=function(i){function e(e,t,r){void 0===e&&(e=200),void 0===t&&(t=4),void 0===r&&(r=20),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 twist(vec2 coord)\n{\n coord -= offset;\n\n float dist = length(coord);\n\n if (dist < radius)\n {\n float ratioDist = (radius - dist) / radius;\n float angleMod = ratioDist * ratioDist * angle;\n float s = sin(angleMod);\n float c = cos(angleMod);\n coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);\n }\n\n coord += offset;\n\n return coord;\n}\n\nvoid main(void)\n{\n\n vec2 coord = mapCoord(vTextureCoord);\n\n coord = twist(coord);\n\n coord = unmapCoord(coord);\n\n gl_FragColor = texture2D(uSampler, coord );\n\n}\n"),this.radius=e,this.angle=t,this.padding=r}i&&(e.__proto__=i),(e.prototype=Object.create(i&&i.prototype)).constructor=e;var t={offset:{configurable:!0},radius:{configurable:!0},angle:{configurable:!0}};return t.offset.get=function(){return this.uniforms.offset},t.offset.set=function(e){this.uniforms.offset=e},t.radius.get=function(){return this.uniforms.radius},t.radius.set=function(e){this.uniforms.radius=e},t.angle.get=function(){return this.uniforms.angle},t.angle.set=function(e){this.uniforms.angle=e},Object.defineProperties(e.prototype,t),e}(f.Filter),X=function(n){function e(e,t,r,i){void 0===e&&(e=.1),void 0===t&&(t=[0,0]),void 0===r&&(r=0),void 0===i&&(i=-1),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uCenter;\nuniform float uStrength;\nuniform float uInnerRadius;\nuniform float uRadius;\n\nconst float MAX_KERNEL_SIZE = 32.0;\n\n// author: http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nhighp float rand(vec2 co, float seed) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(co + seed, vec2(a, b)), sn = mod(dt, 3.14159);\n return fract(sin(sn) * c + seed);\n}\n\nvoid main() {\n\n float minGradient = uInnerRadius * 0.3;\n float innerRadius = (uInnerRadius + minGradient * 0.5) / filterArea.x;\n\n float gradient = uRadius * 0.3;\n float radius = (uRadius - gradient * 0.5) / filterArea.x;\n\n float countLimit = MAX_KERNEL_SIZE;\n\n vec2 dir = vec2(uCenter.xy / filterArea.xy - vTextureCoord);\n float dist = length(vec2(dir.x, dir.y * filterArea.y / filterArea.x));\n\n float strength = uStrength;\n\n float delta = 0.0;\n float gap;\n if (dist < innerRadius) {\n delta = innerRadius - dist;\n gap = minGradient;\n } else if (radius >= 0.0 && dist > radius) { // radius < 0 means it's infinity\n delta = dist - radius;\n gap = gradient;\n }\n\n if (delta > 0.0) {\n float normalCount = gap / filterArea.x;\n delta = (normalCount - delta) / normalCount;\n countLimit *= delta;\n strength *= delta;\n if (countLimit < 1.0)\n {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n }\n\n // randomize the lookup values to hide the fixed number of samples\n float offset = rand(vTextureCoord, 0.0);\n\n float total = 0.0;\n vec4 color = vec4(0.0);\n\n dir *= strength;\n\n for (float t = 0.0; t < MAX_KERNEL_SIZE; t++) {\n float percent = (t + offset) / MAX_KERNEL_SIZE;\n float weight = 4.0 * (percent - percent * percent);\n vec2 p = vTextureCoord + dir * percent;\n vec4 sample = texture2D(uSampler, p);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample * weight;\n total += weight;\n\n if (t > countLimit){\n break;\n }\n }\n\n color /= total;\n // switch back from pre-multiplied alpha\n // color.rgb /= color.a + 0.00001;\n\n gl_FragColor = color;\n}\n"),this.center=t,this.strength=e,this.innerRadius=r,this.radius=i}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={center:{configurable:!0},strength:{configurable:!0},innerRadius:{configurable:!0},radius:{configurable:!0}};return t.center.get=function(){return this.uniforms.uCenter},t.center.set=function(e){this.uniforms.uCenter=e},t.strength.get=function(){return this.uniforms.uStrength},t.strength.set=function(e){this.uniforms.uStrength=e},t.innerRadius.get=function(){return this.uniforms.uInnerRadius},t.innerRadius.set=function(e){this.uniforms.uInnerRadius=e},t.radius.get=function(){return this.uniforms.uRadius},t.radius.set=function(e){(e<0||e===1/0)&&(e=-1),this.uniforms.uRadius=e},Object.defineProperties(e.prototype,t),e}(f.Filter);return e.AdjustmentFilter=t,e.AdvancedBloomFilter=i,e.AsciiFilter=n,e.BevelFilter=a,e.BloomFilter=p,e.BulgePinchFilter=m,e.ColorMapFilter=g,e.ColorReplaceFilter=v,e.ConvolutionFilter=b,e.CrossHatchFilter=y,e.CRTFilter=_,e.DotFilter=w,e.DropShadowFilter=x,e.EmbossFilter=k,e.GlitchFilter=T,e.GlowFilter=S,e.GodrayFilter=E,e.KawaseBlurFilter=d,e.MotionBlurFilter=M,e.MultiColorReplaceFilter=P,e.OldFilmFilter=C,e.OutlineFilter=A,e.PixelateFilter=O,e.RadialBlurFilter=I,e.ReflectionFilter=R,e.RGBSplitFilter=D,e.ShockwaveFilter=j,e.SimpleLightmapFilter=L,e.TiltShiftFilter=N,e.TiltShiftAxisFilter=z,e.TiltShiftXFilter=F,e.TiltShiftYFilter=B,e.TwistFilter=U,e.ZoomBlurFilter=X,e}({},PIXI),pixi_projection,pixi_projection;Object.assign(PIXI.filters,this?this.__filters:__filters),this.PIXI=this.PIXI||{},function(d,v){"use strict";var f,p=function(){function f(e,t,r){this.value=e,this.time=t,this.next=null,this.isStepped=!1,this.ease=r?"function"==typeof r?r:d.ParticleUtils.generateEase(r):null}return f.createList=function(e){if("list"in e){var t=e.list,r=void 0,i=void 0,n=t[0],a=n.value,o=n.time;if(i=r=new f("string"==typeof a?d.ParticleUtils.hexToRGB(a):a,o,e.ease),2<t.length||2===t.length&&t[1].value!==a)for(var s=1;s<t.length;++s){var u=t[s],l=u.value,c=u.time;r.next=new f("string"==typeof l?d.ParticleUtils.hexToRGB(l):l,c),r=r.next}return i.isStepped=!!e.isStepped,i}var h=new f("string"==typeof e.start?d.ParticleUtils.hexToRGB(e.start):e.start,0);return e.end!==e.start&&(h.next=new f("string"==typeof e.end?d.ParticleUtils.hexToRGB(e.end):e.end,1)),h},f}();(f=d.ParticleUtils||(d.ParticleUtils={})).verbose=!1,f.DEG_TO_RADS=Math.PI/180,f.rotatePoint=function(e,t){if(e){e*=f.DEG_TO_RADS;var r=Math.sin(e),i=Math.cos(e),n=t.x*i-t.y*r,a=t.x*r+t.y*i;t.x=n,t.y=a}},f.combineRGBComponents=function(e,t,r){return e<<16|t<<8|r},f.normalize=function(e){var t=1/f.length(e);e.x*=t,e.y*=t},f.scaleBy=function(e,t){e.x*=t,e.y*=t},f.length=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},f.hexToRGB=function(e,t){var r;return t||(t={}),"#"==e.charAt(0)?e=e.substr(1):0===e.indexOf("0x")&&(e=e.substr(2)),8==e.length&&(r=e.substr(0,2),e=e.substr(2)),t.r=parseInt(e.substr(0,2),16),t.g=parseInt(e.substr(2,2),16),t.b=parseInt(e.substr(4,2),16),r&&(t.a=parseInt(r,16)),t},f.generateEase=function(n){var a=n.length,o=1/a;return function(e){var t,r,i=a*e|0;return t=(e-i*o)*a,(r=n[i]||n[a-1]).s+t*(2*(1-t)*(r.cp-r.s)+t*(r.e-r.s))}},f.getBlendMode=function(e){if(!e)return v.BLEND_MODES.NORMAL;for(e=e.toUpperCase();0<=e.indexOf(" ");)e=e.replace(" ","_");return v.BLEND_MODES[e]||v.BLEND_MODES.NORMAL},f.createSteppedGradient=function(e,t){void 0===t&&(t=10),("number"!=typeof t||t<=0)&&(t=10);var r=new p(f.hexToRGB(e[0].value),e[0].time);r.isStepped=!0;for(var i=r,n=e[0],a=1,o=e[a],s=1;s<t;++s){for(var u=s/t;u>o.time;)n=o,o=e[++a];u=(u-n.time)/(o.time-n.time);var l=f.hexToRGB(n.value),c=f.hexToRGB(o.value),h={r:(c.r-l.r)*u+l.r,g:(c.g-l.g)*u+l.g,b:(c.b-l.b)*u+l.b};i.next=new p(h,s/t),i=i.next}return r};var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function t(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var n=function(){function e(e){void 0===e&&(e=!1),this.current=null,this.next=null,this.isColor=!!e,this.interpolate=null,this.ease=null}return e.prototype.reset=function(e){this.current=e,this.next=e.next,this.next&&1<=this.next.time?this.interpolate=this.isColor?a:r:e.isStepped?this.interpolate=this.isColor?l:u:this.interpolate=this.isColor?s:o,this.ease=this.current.ease},e}();function r(e){return this.ease&&(e=this.ease(e)),(this.next.value-this.current.value)*e+this.current.value}function a(e){this.ease&&(e=this.ease(e));var t=this.current.value,r=this.next.value,i=(r.r-t.r)*e+t.r,n=(r.g-t.g)*e+t.g,a=(r.b-t.b)*e+t.b;return d.ParticleUtils.combineRGBComponents(i,n,a)}function o(e){for(this.ease&&(e=this.ease(e));e>this.next.time;)this.current=this.next,this.next=this.next.next;return e=(e-this.current.time)/(this.next.time-this.current.time),(this.next.value-this.current.value)*e+this.current.value}function s(e){for(this.ease&&(e=this.ease(e));e>this.next.time;)this.current=this.next,this.next=this.next.next;e=(e-this.current.time)/(this.next.time-this.current.time);var t=this.current.value,r=this.next.value,i=(r.r-t.r)*e+t.r,n=(r.g-t.g)*e+t.g,a=(r.b-t.b)*e+t.b;return d.ParticleUtils.combineRGBComponents(i,n,a)}function u(e){for(this.ease&&(e=this.ease(e));this.next&&e>this.next.time;)this.current=this.next,this.next=this.next.next;return this.current.value}function l(e){for(this.ease&&(e=this.ease(e));this.next&&e>this.next.time;)this.current=this.next,this.next=this.next.next;var t=this.current.value;return d.ParticleUtils.combineRGBComponents(t.r,t.g,t.b)}var c,h=function(r){function i(e){var t=r.call(this)||this;return t.emitter=e,t.anchor.x=t.anchor.y=.5,t.velocity=new v.Point,t.rotationSpeed=0,t.rotationAcceleration=0,t.maxLife=0,t.age=0,t.ease=null,t.extraData=null,t.alphaList=new n,t.speedList=new n,t.speedMultiplier=1,t.acceleration=new v.Point,t.maxSpeed=NaN,t.scaleList=new n,t.scaleMultiplier=1,t.colorList=new n(!0),t._doAlpha=!1,t._doScale=!1,t._doSpeed=!1,t._doAcceleration=!1,t._doColor=!1,t._doNormalMovement=!1,t._oneOverLife=0,t.next=null,t.prev=null,t.init=t.init,t.Particle_init=i.prototype.init,t.update=t.update,t.Particle_update=i.prototype.update,t.Sprite_destroy=r.prototype.destroy,t.Particle_destroy=i.prototype.destroy,t.applyArt=t.applyArt,t.kill=t.kill,t}return t(i,r),i.prototype.init=function(){this.age=0,this.velocity.x=this.speedList.current.value*this.speedMultiplier,this.velocity.y=0,d.ParticleUtils.rotatePoint(this.rotation,this.velocity),this.noRotation?this.rotation=0:this.rotation*=d.ParticleUtils.DEG_TO_RADS,this.rotationSpeed*=d.ParticleUtils.DEG_TO_RADS,this.rotationAcceleration*=d.ParticleUtils.DEG_TO_RADS,this.alpha=this.alphaList.current.value,this.scale.x=this.scale.y=this.scaleList.current.value,this._doAlpha=!!this.alphaList.current.next,this._doSpeed=!!this.speedList.current.next,this._doScale=!!this.scaleList.current.next,this._doColor=!!this.colorList.current.next,this._doAcceleration=0!==this.acceleration.x||0!==this.acceleration.y,this._doNormalMovement=this._doSpeed||0!==this.speedList.current.value||this._doAcceleration,this._oneOverLife=1/this.maxLife;var e=this.colorList.current.value;this.tint=d.ParticleUtils.combineRGBComponents(e.r,e.g,e.b),this.visible=!0},i.prototype.applyArt=function(e){this.texture=e||v.Texture.EMPTY},i.prototype.update=function(e){if(this.age+=e,this.age>=this.maxLife||this.age<0)return this.kill(),-1;var t=this.age*this._oneOverLife;if(this.ease&&(t=4==this.ease.length?this.ease(t,0,1,1):this.ease(t)),this._doAlpha&&(this.alpha=this.alphaList.interpolate(t)),this._doScale){var r=this.scaleList.interpolate(t)*this.scaleMultiplier;this.scale.x=this.scale.y=r}if(this._doNormalMovement){var i=void 0,n=void 0;if(this._doSpeed){var a=this.speedList.interpolate(t)*this.speedMultiplier;d.ParticleUtils.normalize(this.velocity),d.ParticleUtils.scaleBy(this.velocity,a),i=this.velocity.x*e,n=this.velocity.y*e}else if(this._doAcceleration){var o=this.velocity.x,s=this.velocity.y;if(this.velocity.x+=this.acceleration.x*e,this.velocity.y+=this.acceleration.y*e,this.maxSpeed){var u=d.ParticleUtils.length(this.velocity);u>this.maxSpeed&&d.ParticleUtils.scaleBy(this.velocity,this.maxSpeed/u)}i=(o+this.velocity.x)/2*e,n=(s+this.velocity.y)/2*e}else i=this.velocity.x*e,n=this.velocity.y*e;this.position.x+=i,this.position.y+=n}if(this._doColor&&(this.tint=this.colorList.interpolate(t)),0!==this.rotationAcceleration){var l=this.rotationSpeed+this.rotationAcceleration*e;this.rotation+=(this.rotationSpeed+l)/2*e,this.rotationSpeed=l}else 0!==this.rotationSpeed?this.rotation+=this.rotationSpeed*e:this.acceleration&&!this.noRotation&&(this.rotation=Math.atan2(this.velocity.y,this.velocity.x));return t},i.prototype.kill=function(){this.emitter.recycle(this)},i.prototype.destroy=function(){this.parent&&this.parent.removeChild(this),this.Sprite_destroy(),this.emitter=this.velocity=this.colorList=this.scaleList=this.alphaList=this.speedList=this.ease=this.next=this.prev=null},i.parseArt=function(e){var t;for(t=e.length;0<=t;--t)"string"==typeof e[t]&&(e[t]=v.Texture.fromImage(e[t]));if(d.ParticleUtils.verbose)for(t=e.length-1;0<t;--t)if(e[t].baseTexture!=e[t-1].baseTexture){window.console&&console.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL");break}return e},i.parseData=function(e){return e},i}(v.Sprite),m=function(){function e(e){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(e)}return e.prototype.init=function(e){if(e&&e.length)if(Array.isArray(e[0]))for(var t=0;t<e.length;++t)for(var r=e[t],i=r[0],n=1;n<r.length;++n){var a=r[n];this.segments.push({p1:i,p2:a,l:0}),i=a}else for(i=e[0],t=1;t<e.length;++t){a=e[t];this.segments.push({p1:i,p2:a,l:0}),i=a}else this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});for(t=0;t<this.segments.length;++t){var o=this.segments[t],s=o.p1,u=o.p2,l=Math.sqrt((u.x-s.x)*(u.x-s.x)+(u.y-s.y)*(u.y-s.y));this.segments[t].l=l,this.totalLength+=l,this.countingLengths.push(this.totalLength)}},e.prototype.getRandomPoint=function(e){var t,r,i=Math.random()*this.totalLength;if(1===this.segments.length)t=this.segments[0],r=i;else for(var n=0;n<this.countingLengths.length;++n)if(i<this.countingLengths[n]){t=this.segments[n],r=0===n?i:i-this.countingLengths[n-1];break}r/=t.l||1;var a=t.p1,o=t.p2;e.x=a.x+r*(o.x-a.x),e.y=a.y+r*(o.y-a.y)},e}(),e=v;c=parseInt(/^(\d+)\./.exec(v.VERSION)[1])<5?e.ticker.shared:e.Ticker.shared;var g=new v.Point,b=function(){function e(e,t,r){this._particleConstructor=h,this.particleImages=null,this.startAlpha=null,this.startSpeed=null,this.minimumSpeedMultiplier=1,this.acceleration=null,this.maxSpeed=NaN,this.startScale=null,this.minimumScaleMultiplier=1,this.startColor=null,this.minLifetime=0,this.maxLifetime=0,this.minStartRotation=0,this.maxStartRotation=0,this.noRotation=!1,this.minRotationSpeed=0,this.maxRotationSpeed=0,this.particleBlendMode=0,this.customEase=null,this.extraData=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=null,this.spawnType=null,this._spawnFunc=null,this.spawnRect=null,this.spawnCircle=null,this.spawnPolygonalChain=null,this.particlesPerWave=1,this.particleSpacing=0,this.angleStart=0,this.rotation=0,this.ownerPos=null,this._prevEmitterPos=null,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._origArt=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=e,t&&r&&this.init(t,r),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}return Object.defineProperty(e.prototype,"frequency",{get:function(){return this._frequency},set:function(e){this._frequency="number"==typeof e&&0<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"particleConstructor",{get:function(){return this._particleConstructor},set:function(e){if(e!=this._particleConstructor){this._particleConstructor=e,this.cleanup();for(var t=this._poolFirst;t;t=t.next)t.destroy();this._poolFirst=null,this._origConfig&&this._origArt&&this.init(this._origArt,this._origConfig)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this.cleanup(),this._parent=e},enumerable:!0,configurable:!0}),e.prototype.init=function(e,t){if(e&&t){this.cleanup(),this._origConfig=t,this._origArt=e,e=Array.isArray(e)?e.slice():[e];var r=this._particleConstructor;this.particleImages=r.parseArt?r.parseArt(e):e,t.alpha?this.startAlpha=p.createList(t.alpha):this.startAlpha=new p(1,0),t.speed?(this.startSpeed=p.createList(t.speed),this.minimumSpeedMultiplier=("minimumSpeedMultiplier"in t?t.minimumSpeedMultiplier:t.speed.minimumSpeedMultiplier)||1):(this.minimumSpeedMultiplier=1,this.startSpeed=new p(0,0));var i=t.acceleration;i&&(i.x||i.y)?(this.startSpeed.next=null,this.acceleration=new v.Point(i.x,i.y),this.maxSpeed=t.maxSpeed||NaN):this.acceleration=new v.Point,t.scale?(this.startScale=p.createList(t.scale),this.minimumScaleMultiplier=("minimumScaleMultiplier"in t?t.minimumScaleMultiplier:t.scale.minimumScaleMultiplier)||1):(this.startScale=new p(1,0),this.minimumScaleMultiplier=1),t.color?this.startColor=p.createList(t.color):this.startColor=new p({r:255,g:255,b:255},0),t.startRotation?(this.minStartRotation=t.startRotation.min,this.maxStartRotation=t.startRotation.max):this.minStartRotation=this.maxStartRotation=0,t.noRotation&&(this.minStartRotation||this.maxStartRotation)?this.noRotation=!!t.noRotation:this.noRotation=!1,t.rotationSpeed?(this.minRotationSpeed=t.rotationSpeed.min,this.maxRotationSpeed=t.rotationSpeed.max):this.minRotationSpeed=this.maxRotationSpeed=0,this.rotationAcceleration=t.rotationAcceleration||0,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,this.particleBlendMode=d.ParticleUtils.getBlendMode(t.blendMode),t.ease?this.customEase="function"==typeof t.ease?t.ease:d.ParticleUtils.generateEase(t.ease):this.customEase=null,r.parseData?this.extraData=r.parseData(t.extraData):this.extraData=t.extraData||null,this.spawnRect=this.spawnCircle=null,this.particlesPerWave=1,t.particlesPerWave&&1<t.particlesPerWave&&(this.particlesPerWave=t.particlesPerWave),this.particleSpacing=0,this.angleStart=0,this.parseSpawnType(t),this.frequency=t.frequency,this.spawnChance="number"==typeof t.spawnChance&&0<t.spawnChance?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=0<t.maxParticles?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos=new v.Point,this.spawnPos=new v.Point(t.pos.x,t.pos.y),this.initAdditional(e,t),this._prevEmitterPos=this.spawnPos.clone(),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=void 0===t.emit||!!t.emit,this.autoUpdate=!!t.autoUpdate}},e.prototype.initAdditional=function(e,t){},e.prototype.parseSpawnType=function(e){var t;switch(e.spawnType){case"rect":this.spawnType="rect",this._spawnFunc=this._spawnRect;var r=e.spawnRect;this.spawnRect=new v.Rectangle(r.x,r.y,r.w,r.h);break;case"circle":this.spawnType="circle",this._spawnFunc=this._spawnCircle,t=e.spawnCircle,this.spawnCircle=new v.Circle(t.x,t.y,t.r);break;case"ring":this.spawnType="ring",this._spawnFunc=this._spawnRing,t=e.spawnCircle,this.spawnCircle=new v.Circle(t.x,t.y,t.r),this.spawnCircle.minRadius=t.minR;break;case"burst":this.spawnType="burst",this._spawnFunc=this._spawnBurst,this.particleSpacing=e.particleSpacing,this.angleStart=e.angleStart?e.angleStart:0;break;case"point":this.spawnType="point",this._spawnFunc=this._spawnPoint;break;case"polygonalChain":this.spawnType="polygonalChain",this._spawnFunc=this._spawnPolygonalChain,this.spawnPolygonalChain=new m(e.spawnPolygon);break;default:this.spawnType="point",this._spawnFunc=this._spawnPoint}},e.prototype.recycle=function(e){e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next),e==this._activeParticlesLast&&(this._activeParticlesLast=e.prev),e==this._activeParticlesFirst&&(this._activeParticlesFirst=e.next),e.prev=null,e.next=this._poolFirst,(this._poolFirst=e).parent&&e.parent.removeChild(e),--this.particleCount},e.prototype.rotate=function(e){if(this.rotation!=e){var t=e-this.rotation;this.rotation=e,d.ParticleUtils.rotatePoint(t,this.spawnPos),this._posChanged=!0}},e.prototype.updateSpawnPos=function(e,t){this._posChanged=!0,this.spawnPos.x=e,this.spawnPos.y=t},e.prototype.updateOwnerPos=function(e,t){this._posChanged=!0,this.ownerPos.x=e,this.ownerPos.y=t},e.prototype.resetPositionTracking=function(){this._prevPosIsValid=!1},Object.defineProperty(e.prototype,"emit",{get:function(){return this._emit},set:function(e){this._emit=!!e,this._emitterLife=this.emitterLifetime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){this._autoUpdate&&!e?c.remove(this.update,this):!this._autoUpdate&&e&&c.add(this.update,this),this._autoUpdate=!!e},enumerable:!0,configurable:!0}),e.prototype.playOnceAndDestroy=function(e){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=e},e.prototype.playOnce=function(e){this.emit=!0,this._completeCallback=e},e.prototype.update=function(e){if(this._autoUpdate&&(e=e/v.settings.TARGET_FPMS/1e3),this._parent){var t,r,i,n,a;for(r=this._activeParticlesFirst;r;r=i)i=r.next,r.update(e);this._prevPosIsValid&&(n=this._prevEmitterPos.x,a=this._prevEmitterPos.y);var o=this.ownerPos.x+this.spawnPos.x,s=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=e<0?0:e;this._spawnTimer<=0;){if(0<this._emitterLife&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles)this._spawnTimer+=this._frequency;else{var u=void 0;if(u=this.minLifetime==this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer<u){var l=void 0,c=void 0;if(this._prevPosIsValid&&this._posChanged){var h=1+this._spawnTimer/e;l=(o-n)*h+n,c=(s-a)*h+a}else l=o,c=s;t=0;for(var f=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount);t<f;++t)if(!(this.spawnChance<1&&Math.random()>=this.spawnChance)){var d=void 0;if(this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new this.particleConstructor(this),1<this.particleImages.length?d.applyArt(this.particleImages[Math.floor(Math.random()*this.particleImages.length)]):d.applyArt(this.particleImages[0]),d.alphaList.reset(this.startAlpha),1!=this.minimumSpeedMultiplier&&(d.speedMultiplier=Math.random()*(1-this.minimumSpeedMultiplier)+this.minimumSpeedMultiplier),d.speedList.reset(this.startSpeed),d.acceleration.x=this.acceleration.x,d.acceleration.y=this.acceleration.y,d.maxSpeed=this.maxSpeed,1!=this.minimumScaleMultiplier&&(d.scaleMultiplier=Math.random()*(1-this.minimumScaleMultiplier)+this.minimumScaleMultiplier),d.scaleList.reset(this.startScale),d.colorList.reset(this.startColor),this.minRotationSpeed==this.maxRotationSpeed?d.rotationSpeed=this.minRotationSpeed:d.rotationSpeed=Math.random()*(this.maxRotationSpeed-this.minRotationSpeed)+this.minRotationSpeed,d.rotationAcceleration=this.rotationAcceleration,d.noRotation=this.noRotation,d.maxLife=u,d.blendMode=this.particleBlendMode,d.ease=this.customEase,d.extraData=this.extraData,this.applyAdditionalProperties(d),this._spawnFunc(d,l,c,t),d.init(),d.update(-this._spawnTimer),d.parent){var p=this._parent.children;if(p[0]==d)p.shift();else if(p[p.length-1]==d)p.pop();else{var m=p.indexOf(d);p.splice(m,1)}this.addAtBack?p.unshift(d):p.push(d)}else this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d);this._activeParticlesLast?((this._activeParticlesLast.next=d).prev=this._activeParticlesLast,this._activeParticlesLast=d):this._activeParticlesLast=this._activeParticlesFirst=d,++this.particleCount}}this._spawnTimer+=this._frequency}}if(this._posChanged&&(this._prevEmitterPos.x=o,this._prevEmitterPos.y=s,this._prevPosIsValid=!0,this._posChanged=!1),!this._emit&&!this._activeParticlesFirst){if(this._completeCallback){var g=this._completeCallback;this._completeCallback=null,g()}this._destroyWhenComplete&&this.destroy()}}},e.prototype.applyAdditionalProperties=function(e){},e.prototype._spawnPoint=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,e.position.x=t,e.position.y=r},e.prototype._spawnRect=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,g.x=Math.random()*this.spawnRect.width+this.spawnRect.x,g.y=Math.random()*this.spawnRect.height+this.spawnRect.y,0!==this.rotation&&d.ParticleUtils.rotatePoint(this.rotation,g),e.position.x=t+g.x,e.position.y=r+g.y},e.prototype._spawnCircle=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,g.x=Math.random()*this.spawnCircle.radius,g.y=0,d.ParticleUtils.rotatePoint(360*Math.random(),g),g.x+=this.spawnCircle.x,g.y+=this.spawnCircle.y,0!==this.rotation&&d.ParticleUtils.rotatePoint(this.rotation,g),e.position.x=t+g.x,e.position.y=r+g.y},e.prototype._spawnRing=function(e,t,r){var i=this.spawnCircle;this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,i.minRadius!==i.radius?g.x=Math.random()*(i.radius-i.minRadius)+i.minRadius:g.x=i.radius,g.y=0;var n=360*Math.random();e.rotation+=n,d.ParticleUtils.rotatePoint(n,g),g.x+=this.spawnCircle.x,g.y+=this.spawnCircle.y,0!==this.rotation&&d.ParticleUtils.rotatePoint(this.rotation,g),e.position.x=t+g.x,e.position.y=r+g.y},e.prototype._spawnPolygonalChain=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,this.spawnPolygonalChain.getRandomPoint(g),0!==this.rotation&&d.ParticleUtils.rotatePoint(this.rotation,g),e.position.x=t+g.x,e.position.y=r+g.y},e.prototype._spawnBurst=function(e,t,r,i){0===this.particleSpacing?e.rotation=360*Math.random():e.rotation=this.angleStart+this.particleSpacing*i+this.rotation,e.position.x=t,e.position.y=r},e.prototype.cleanup=function(){var e,t;for(e=this._activeParticlesFirst;e;e=t)t=e.next,this.recycle(e),e.parent&&e.parent.removeChild(e);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0},e.prototype.destroy=function(){var e;this.autoUpdate=!1,this.cleanup();for(var t=this._poolFirst;t;t=e)e=t.next,t.destroy();this._poolFirst=this._parent=this.particleImages=this.spawnPos=this.ownerPos=this.startColor=this.startScale=this.startAlpha=this.startSpeed=this.customEase=this._completeCallback=null},e}(),y=new v.Point,_=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],w=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(_).join("|"),"g"),x=function(r){function e(e){var t=r.call(this,e)||this;return t.path=null,t.initialRotation=0,t.initialPosition=new v.Point,t.movement=0,t}return t(e,r),e.prototype.init=function(){this.initialRotation=this.rotation,this.Particle_init(),this.path=this.extraData.path,this._doNormalMovement=!this.path,this.movement=0,this.initialPosition.x=this.position.x,this.initialPosition.y=this.position.y},e.prototype.update=function(e){var t=this.Particle_update(e);if(0<=t&&this.path){var r=this.speedList.interpolate(t)*this.speedMultiplier;this.movement+=r*e,y.x=this.movement,y.y=this.path(this.movement),d.ParticleUtils.rotatePoint(this.initialRotation,y),this.position.x=this.initialPosition.x+y.x,this.position.y=this.initialPosition.y+y.y}return t},e.prototype.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},e.parseArt=function(e){return h.parseArt(e)},e.parseData=function(e){var t={};if(e&&e.path)try{t.path=function(e){for(var t=e.match(w),r=t.length-1;0<=r;--r)0<=_.indexOf(t[r])&&(t[r]="Math."+t[r]);return e=t.join(""),new Function("x","return "+e+";")}(e.path)}catch(e){d.ParticleUtils.verbose&&console.error("PathParticle: error in parsing path expression"),t.path=null}else d.ParticleUtils.verbose&&console.error("PathParticle requires a path string in extraData!"),t.path=null;return t},e}(h),k=function(r){function e(e){var t=r.call(this,e)||this;return t.textures=null,t.duration=0,t.framerate=0,t.elapsed=0,t.loop=!1,t}return t(e,r),e.prototype.init=function(){this.Particle_init(),this.elapsed=0,this.framerate<0&&(this.duration=this.maxLife,this.framerate=this.textures.length/this.duration)},e.prototype.applyArt=function(e){this.textures=e.textures,this.framerate=e.framerate,this.duration=e.duration,this.loop=e.loop},e.prototype.update=function(e){var t=this.Particle_update(e);if(0<=t){this.elapsed+=e,this.elapsed>this.duration&&(this.loop?this.elapsed=this.elapsed%this.duration:this.elapsed=this.duration-1e-6);var r=this.elapsed*this.framerate+1e-7|0;this.texture=this.textures[r]||v.Texture.EMPTY}return t},e.prototype.destroy=function(){this.Particle_destroy(),this.textures=null},e.parseArt=function(e){for(var t,r,i,n,a,o=[],s=0;s<e.length;++s){t=e[s],o[s]=r={},r.textures=a=[],i=t.textures;for(var u=0;u<i.length;++u)if("string"==typeof(n=i[u]))a.push(v.Texture.fromImage(n));else if(n instanceof v.Texture)a.push(n);else{var l=n.count||1;for(n="string"==typeof n.texture?v.Texture.fromImage(n.texture):n.texture;0<l;--l)a.push(n)}"matchLife"==t.framerate?(r.framerate=-1,r.duration=0,r.loop=!1):(r.loop=!!t.loop,r.framerate=0<t.framerate?t.framerate:60,r.duration=a.length/r.framerate)}return o},e}(h);d.Particle=h,d.Emitter=b,d.PathParticle=x,d.AnimatedParticle=k,d.PolygonalChain=m,d.PropertyList=n,d.PropertyNode=p}(this.PIXI.particles=this.PIXI.particles||{},PIXI),function(e){var t;(t=e.utils||(e.utils={})).createIndicesForQuads=function(e){for(var t=6*e,r=new Uint16Array(t),i=0,n=0;i<t;i+=6,n+=4)r[i+0]=n+0,r[i+1]=n+1,r[i+2]=n+2,r[i+3]=n+0,r[i+4]=n+2,r[i+5]=n+3;return r},t.isPow2=function(e){return!(e&e-1||!e)},t.nextPow2=function(e){return e+=+(0===e),--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,1+(e|=e>>>16)},t.log2=function(e){var t,r;return t=+(65535<e)<<4,t|=r=+(255<(e>>>=t))<<3,t|=r=+(15<(e>>>=r))<<2,(t|=r=+(3<(e>>>=r))<<1)|(e>>>=r)>>1},t.getIntersectionFactor=function(e,t,r,i,n){var a=t.x-e.x,o=r.x-i.x,s=r.x-e.x,u=t.y-e.y,l=r.y-i.y,c=r.y-e.y,h=a*l-u*o;if(Math.abs(h)<1e-7)return n.x=a,n.y=u,0;var f=(s*l-c*o)/h,d=(a*c-u*s)/h;return d<1e-6||-1e-6<d-1?-1:(n.x=e.x+f*(t.x-e.x),n.y=e.y+f*(t.y-e.y),1)},t.getPositionFromQuad=function(e,t,r){r=r||new PIXI.Point;var i=1-t.x,n=1-i,a=1-t.y,o=1-a;return r.x=(e[0].x*i+e[1].x*n)*a+(e[3].x*i+e[2].x*n)*o,r.y=(e[0].y*i+e[1].y*n)*a+(e[3].y*i+e[2].y*n)*o,r}}(pixi_projection||(pixi_projection={})),PIXI.projection=pixi_projection,function(e){var t,r=function(){function e(e,t){void 0===t&&(t=!0),this._enabled=!1,this.legacy=e,t&&(this.enabled=!0),this.legacy.proj=this}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e},enumerable:!0,configurable:!0}),e.prototype.clear=function(){},e}();e.AbstractProjection=r,(t=e.TRANSFORM_STEP||(e.TRANSFORM_STEP={}))[t.NONE=0]="NONE",t[t.BEFORE_PROJ=4]="BEFORE_PROJ",t[t.PROJ=5]="PROJ",t[t.ALL=9]="ALL"}(pixi_projection||(pixi_projection={}));var __extends=this&&this.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection;!function(r){function i(e){var t=this.proj,r=this,i=e._worldID,n=r.localTransform,a=t.scaleAfterAffine&&2<=t.affine;r._localID!==r._currentLocalID&&(a?(n.a=r._cx,n.b=r._sx,n.c=r._cy,n.d=r._sy,n.tx=r.position._x,n.ty=r.position._y):(n.a=r._cx*r.scale._x,n.b=r._sx*r.scale._x,n.c=r._cy*r.scale._y,n.d=r._sy*r.scale._y,n.tx=r.position._x-(r.pivot._x*n.a+r.pivot._y*n.c),n.ty=r.position._y-(r.pivot._x*n.b+r.pivot._y*n.d)),r._currentLocalID=r._localID,t._currentProjID=-1);var o=t._projID;if(t._currentProjID!==o&&(t._currentProjID=o,t.updateLocalTransform(n),r._parentID=-1),r._parentID!==i){var s=e.proj;s&&!s._affine?t.world.setToMult(s.world,t.local):t.world.setToMultLegacy(e.worldTransform,t.local);var u=r.worldTransform;t.world.copy(u,t._affine,t.affinePreserveOrientation),a&&(u.a*=r.scale._x,u.b*=r.scale._x,u.c*=r.scale._y,u.d*=r.scale._y,u.tx-=r.pivot._x*u.a+r.pivot._y*u.c,u.ty-=r.pivot._x*u.b+r.pivot._y*u.d),r._parentID=i,r._worldID++}}var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._projID=0,e._currentProjID=-1,e._affine=r.AFFINE.NONE,e.affinePreserveOrientation=!1,e.scaleAfterAffine=!0,e}return __extends(e,t),e.prototype.updateLocalTransform=function(e){},Object.defineProperty(e.prototype,"affine",{get:function(){return this._affine},set:function(e){this._affine!=e&&(this._affine=e,this._currentProjID=-1,this.legacy._currentLocalID=-1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{set:function(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?i:PIXI.TransformStatic.prototype.updateTransform,this.legacy._parentID=-1)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._currentProjID=-1,this._projID=0},e}(r.AbstractProjection);r.LinearProjection=e}(pixi_projection||(pixi_projection={})),function(e){var t,r;t=e.webgl||(e.webgl={}),r=function(){function e(e){this.vertices=new ArrayBuffer(e),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return e.prototype.destroy=function(){this.vertices=null},e}(),t.BatchBuffer=r}(pixi_projection||(pixi_projection={})),function(e){(e.webgl||(e.webgl={})).generateMultiTextureShader=function(e,t,r,i){t=(t=t.replace(/%count%/gi,i+"")).replace(/%forloop%/gi,function(e){var t="";t+="\n",t+="\n";for(var r=0;r<e;r++)0<r&&(t+="\nelse "),r<e-1&&(t+="if(textureId == "+r+".0)"),t+="\n{",t+="\n\tcolor = texture2D(uSamplers["+r+"], textureCoord);",t+="\n}";return t+="\n",t+="\n"}(i));for(var n=new PIXI.Shader(r,e,t),a=new Int32Array(i),o=0;o<i;o++)a[o]=o;return n.bind(),n.uniforms.uSamplers=a,n}}(pixi_projection||(pixi_projection={})),function(R){!function(n){var e=PIXI.ObjectRenderer,P=PIXI.settings,C=PIXI.glCore.GLBuffer,A=PIXI.utils.premultiplyTint,O=PIXI.utils.premultiplyBlendMode,I=1<<21,a=function(){this.textures=[],this.textureCount=0,this.ids=[],this.size=0,this.start=0,this.blend=PIXI.BLEND_MODES.NORMAL,this.uniforms=null};n.BatchGroup=a;var t=function(i){function e(e){var t=i.call(this,e)||this;t.shaderVert="",t.shaderFrag="",t.MAX_TEXTURES_LOCAL=32,t.vertSize=5,t.vertByteSize=4*t.vertSize,t.size=P.SPRITE_BATCH_SIZE,t.currentIndex=0,t.sprites=[],t.vertexBuffers=[],t.vaos=[],t.vaoMax=2,t.vertexCount=0,t.MAX_TEXTURES=1,t.indices=R.utils.createIndicesForQuads(t.size),t.groups=[];for(var r=0;r<t.size;r++)t.groups[r]=new a;return t.vaoMax=2,t.vertexCount=0,t.renderer.on("prerender",t.onPrerender,t),t}return __extends(e,i),e.prototype.getUniforms=function(e){return null},e.prototype.syncUniforms=function(e){if(e){var t=this.shader;for(var r in e)t.uniforms[r]=e[r]}},e.prototype.onContextChange=function(){var e=this.renderer.gl;this.MAX_TEXTURES=Math.min(this.MAX_TEXTURES_LOCAL,this.renderer.plugins.sprite.MAX_TEXTURES),this.shader=n.generateMultiTextureShader(this.shaderVert,this.shaderFrag,e,this.MAX_TEXTURES),this.indexBuffer=C.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.renderer.bindVao(null);this.shader.attributes;for(var t=0;t<this.vaoMax;t++){var r=this.vertexBuffers[t]=C.createVertexBuffer(e,null,e.STREAM_DRAW);this.vaos[t]=this.createVao(r)}if(!this.buffers){this.buffers=[];for(t=1;t<=R.utils.nextPow2(this.size);t*=2)this.buffers.push(new n.BatchBuffer(4*t*this.vertByteSize))}this.vao=this.vaos[0]},e.prototype.onPrerender=function(){this.vertexCount=0},e.prototype.render=function(e){this.currentIndex>=this.size&&this.flush(),e._texture._uvs&&e._texture.baseTexture&&(this.sprites[this.currentIndex++]=e)},e.prototype.flush=function(){if(0!==this.currentIndex){var e,t,r,i=this.renderer.gl,n=this.MAX_TEXTURES,a=R.utils.nextPow2(this.currentIndex),o=R.utils.log2(a),s=this.buffers[o],u=this.sprites,l=this.groups,c=s.float32View,h=s.uint32View,f=0,d=null,p=1,m=0,g=l[0],v=O[u[0]._texture.baseTexture.premultipliedAlpha?1:0][u[0].blendMode];for(g.textureCount=0,g.start=0,g.blend=v,I++,r=0;r<this.currentIndex;++r){var b=u[r];u[r]=null,e=b._texture.baseTexture;var y=O[Number(e.premultipliedAlpha)][b.blendMode];v!==y&&(v=y,t=null,m=n,I++);var _=this.getUniforms(b);d!==_&&(d=_,t=null,m=n,I++),t!==e&&(t=e)._enabled!==I&&(m===n&&(I++,m=0,g.size=r-g.start,(g=l[p++]).textureCount=0,g.blend=v,g.start=r,g.uniforms=d),e._enabled=I,e._virtalBoundId=m,g.textures[g.textureCount++]=e,m++);var w=Math.min(b.worldAlpha,1),x=w<1&&e.premultipliedAlpha?A(b._tintRGB,w):b._tintRGB+(255*w<<24);this.fillVertices(c,h,f,b,x,e._virtalBoundId),f+=4*this.vertSize}if(g.size=r-g.start,P.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(s.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;this.shader.attributes;var k=this.vertexBuffers[this.vertexCount]=C.createVertexBuffer(i,null,i.STREAM_DRAW);this.vaos[this.vertexCount]=this.createVao(k)}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(s.vertices,0,!1),this.vertexCount++}for(d=null,r=0;r<p;r++){var T=l[r],S=T.textureCount;T.uniforms!==d&&this.syncUniforms(T.uniforms);for(var E=0;E<S;E++){this.renderer.bindTexture(T.textures[E],E,!0),T.textures[E]._virtalBoundId=-1;var M=this.shader.uniforms.samplerSize;M&&(M[0]=T.textures[E].realWidth,M[1]=T.textures[E].realHeight,this.shader.uniforms.samplerSize=M)}this.renderer.state.setBlendMode(T.blend),i.drawElements(i.TRIANGLES,6*T.size,i.UNSIGNED_SHORT,6*T.start*2)}this.currentIndex=0}},e.prototype.start=function(){this.renderer.bindShader(this.shader),P.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},e.prototype.stop=function(){this.flush()},e.prototype.destroy=function(){for(var e=0;e<this.vaoMax;e++)this.vertexBuffers[e]&&this.vertexBuffers[e].destroy(),this.vaos[e]&&this.vaos[e].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),i.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(e=0;e<this.buffers.length;++e)this.buffers[e].destroy()},e}(e);n.MultiTextureSpriteRenderer=t}(R.webgl||(R.webgl={}))}(pixi_projection||(pixi_projection={})),function(e){var h=[new PIXI.Point,new PIXI.Point,new PIXI.Point,new PIXI.Point],f=[0,0,0,0],t=function(){function e(){this.surfaceID="default",this._updateID=0,this.vertexSrc="",this.fragmentSrc=""}return e.prototype.fillUniforms=function(e){},e.prototype.clear=function(){},e.prototype.boundsQuad=function(e,t,r){for(var i=t[0],n=t[1],a=t[0],o=t[1],s=2;s<8;s+=2)i>t[s]&&(i=t[s]),a<t[s]&&(a=t[s]),n>t[s+1]&&(n=t[s+1]),o<t[s+1]&&(o=t[s+1]);if(h[0].set(i,n),this.apply(h[0],h[0]),h[1].set(a,n),this.apply(h[1],h[1]),h[2].set(a,o),this.apply(h[2],h[2]),h[3].set(i,o),this.apply(h[3],h[3]),r)r.apply(h[0],h[0]),r.apply(h[1],h[1]),r.apply(h[2],h[2]),r.apply(h[3],h[3]),t[0]=h[0].x,t[1]=h[0].y,t[2]=h[1].x,t[3]=h[1].y,t[4]=h[2].x,t[5]=h[2].y,t[6]=h[3].x,t[7]=h[3].y;else{for(s=1;s<=3;s++)if(h[s].y<h[0].y||h[s].y==h[0].y&&h[s].x<h[0].x){var u=h[0];h[0]=h[s],h[s]=u}for(s=1;s<=3;s++)f[s]=Math.atan2(h[s].y-h[0].y,h[s].x-h[0].x);for(s=1;s<=3;s++)for(var l=s+1;l<=3;l++)if(f[s]>f[l]){u=h[s];h[s]=h[l],h[l]=u;var c=f[s];f[s]=f[l],f[l]=c}if(t[0]=h[0].x,t[1]=h[0].y,t[2]=h[1].x,t[3]=h[1].y,t[4]=h[2].x,t[5]=h[2].y,t[6]=h[3].x,t[7]=h[3].y,(h[3].x-h[2].x)*(h[1].y-h[2].y)-(h[1].x-h[2].x)*(h[3].y-h[2].y)<0)return t[4]=h[3].x,void(t[5]=h[3].y)}},e}();e.Surface=t}(pixi_projection||(pixi_projection={})),function(e){var T=new PIXI.Matrix,n=new PIXI.Rectangle,S=new PIXI.Point,t=function(t){function e(){var e=t.call(this)||this;return e.distortion=new PIXI.Point,e}return __extends(e,t),e.prototype.clear=function(){this.distortion.set(0,0)},e.prototype.apply=function(e,t){t=t||new PIXI.Point;var r=this.distortion,i=e.x*e.y;return t.x=e.x+r.x*i,t.y=e.y+r.y*i,t},e.prototype.applyInverse=function(e,t){t=t||new PIXI.Point;var r=e.x,i=e.y,n=this.distortion.x,a=this.distortion.y;if(0==n)t.x=r,t.y=i/(1+a*r);else if(0==a)t.y=i,t.x=r/(1+n*i);else{var o=.5*(i*n-r*a+1)/a,s=o*o+r/a;if(s<=1e-5)return void t.set(NaN,NaN);t.x=0<a?-o+Math.sqrt(s):-o-Math.sqrt(s),t.y=(r/t.x-1)/n}return t},e.prototype.mapSprite=function(e,t,r){var i=e.texture;return n.x=-e.anchor.x*i.orig.width,n.y=-e.anchor.y*i.orig.height,n.width=i.orig.width,n.height=i.orig.height,this.mapQuad(n,t,r||e.transform)},e.prototype.mapQuad=function(e,t,r){var i=-e.x/e.width,n=-e.y/e.height,a=(1-e.x)/e.width,o=(1-e.y)/e.height,s=t[0].x*(1-i)+t[1].x*i,u=t[0].y*(1-i)+t[1].y*i,l=t[0].x*(1-a)+t[1].x*a,c=t[0].y*(1-a)+t[1].y*a,h=t[3].x*(1-i)+t[2].x*i,f=t[3].y*(1-i)+t[2].y*i,d=t[3].x*(1-a)+t[2].x*a,p=t[3].y*(1-a)+t[2].y*a,m=s*(1-n)+h*n,g=u*(1-n)+f*n,v=l*(1-n)+d*n,b=c*(1-n)+p*n,y=s*(1-o)+h*o,_=u*(1-o)+f*o,w=l*(1-o)+d*o,x=c*(1-o)+p*o,k=T;return k.tx=m,k.ty=g,k.a=v-m,k.b=b-g,k.c=y-m,k.d=_-g,S.set(w,x),k.applyInverse(S,S),this.distortion.set(S.x-1,S.y-1),r.setFromMatrix(k),this},e.prototype.fillUniforms=function(e){e.distortion=e.distortion||new Float32Array([0,0,0,0]);var t=Math.abs(this.distortion.x),r=Math.abs(this.distortion.y);e.distortion[0]=1e4*t<=r?0:this.distortion.x,e.distortion[1]=1e4*r<=t?0:this.distortion.y,e.distortion[2]=1/e.distortion[0],e.distortion[3]=1/e.distortion[1]},e}(e.Surface);e.BilinearSurface=t}(pixi_projection||(pixi_projection={})),function(r){var e=function(t){function e(){var e=t.call(this)||this;return e.proj=new r.ProjectionSurface(e.transform),e}return __extends(e,t),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),e}(PIXI.Container);r.Container2s=e}(pixi_projection||(pixi_projection={})),function(r){var i=PIXI.TransformStatic.prototype.updateTransform;function t(e){var t=this.proj,r=e.proj;return r?r._surface?(t._activeProjection=r,this.updateLocalTransform(),this.localTransform.copy(this.worldTransform),void(this._parentID<0&&++this._worldID)):(i.call(this,e),void(t._activeProjection=r._activeProjection)):(i.call(this,e),void(t._activeProjection=null))}var e=function(i){function e(e,t){var r=i.call(this,e,t)||this;return r._surface=null,r._activeProjection=null,r._currentSurfaceID=-1,r._currentLegacyID=-1,r._lastUniforms=null,r}return __extends(e,i),Object.defineProperty(e.prototype,"enabled",{set:function(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?t:PIXI.TransformStatic.prototype.updateTransform,this.legacy._parentID=-1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return this._surface},set:function(e){this._surface!=e&&(this._surface=e||null,this.legacy._parentID=-1)},enumerable:!0,configurable:!0}),e.prototype.applyPartial=function(e,t){return null!==this._activeProjection?(t=this.legacy.worldTransform.apply(e,t),this._activeProjection.surface.apply(t,t)):null!==this._surface?this.surface.apply(e,t):this.legacy.worldTransform.apply(e,t)},e.prototype.apply=function(e,t){return null!==this._activeProjection?(t=this.legacy.worldTransform.apply(e,t),this._activeProjection.surface.apply(t,t),this._activeProjection.legacy.worldTransform.apply(t,t)):null!==this._surface?(t=this.surface.apply(e,t),this.legacy.worldTransform.apply(t,t)):this.legacy.worldTransform.apply(e,t)},e.prototype.applyInverse=function(e,t){return null!==this._activeProjection?(t=this._activeProjection.legacy.worldTransform.applyInverse(e,t),this._activeProjection._surface.applyInverse(t,t),this.legacy.worldTransform.applyInverse(t,t)):null!==this._surface?(t=this.legacy.worldTransform.applyInverse(e,t),this._surface.applyInverse(t,t)):this.legacy.worldTransform.applyInverse(e,t)},e.prototype.mapBilinearSprite=function(e,t){this._surface instanceof r.BilinearSurface||(this.surface=new r.BilinearSurface),this.surface.mapSprite(e,t,this.legacy)},e.prototype.clear=function(){this.surface&&this.surface.clear()},Object.defineProperty(e.prototype,"uniforms",{get:function(){return this._currentLegacyID===this.legacy._worldID&&this._currentSurfaceID===this.surface._updateID||(this._lastUniforms=this._lastUniforms||{},this._lastUniforms.worldTransform=this.legacy.worldTransform.toArray(!0),this._surface.fillUniforms(this._lastUniforms)),this._lastUniforms},enumerable:!0,configurable:!0}),e}(r.AbstractProjection);r.ProjectionSurface=e}(pixi_projection||(pixi_projection={})),function(e){var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.size=100,e.MAX_TEXTURES_LOCAL=1,e.shaderVert="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 worldTransform;\n\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * worldTransform * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n \n vTextureCoord = aVertexPosition;\n vTrans1 = aTrans1;\n vTrans2 = aTrans2;\n vTextureId = aTextureId;\n vColor = aColor;\n vFrame = aFrame;\n}\n",e.shaderFrag="precision highp float;\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec2 samplerSize[%count%]; \nuniform vec4 distortion;\n\nvoid main(void){\nvec2 surface;\nvec2 surface2;\n\nfloat vx = vTextureCoord.x;\nfloat vy = vTextureCoord.y;\nfloat dx = distortion.x;\nfloat dy = distortion.y;\nfloat revx = distortion.z;\nfloat revy = distortion.w;\n\nif (distortion.x == 0.0) {\n surface.x = vx;\n surface.y = vy / (1.0 + dy * vx);\n surface2 = surface;\n} else\nif (distortion.y == 0.0) {\n surface.y = vy;\n surface.x = vx/ (1.0 + dx * vy);\n surface2 = surface;\n} else {\n float c = vy * dx - vx * dy;\n float b = (c + 1.0) * 0.5;\n float b2 = (-c + 1.0) * 0.5;\n float d = b * b + vx * dy;\n if (d < -0.00001) {\n discard;\n }\n d = sqrt(max(d, 0.0));\n surface.x = (- b + d) * revy;\n surface2.x = (- b - d) * revy;\n surface.y = (- b2 + d) * revx;\n surface2.y = (- b2 - d) * revx;\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * samplerSize[0];\n\nif (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n uv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;\n uv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;\n pixels = uv * samplerSize[0];\n \n if (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n discard;\n }\n}\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec4 color;\nvec2 textureCoord = uv;\n%forloop%\ngl_FragColor = color * rColor;\n}",e.defUniforms={worldTransform:new Float32Array([1,0,0,0,1,0,0,0,1]),distortion:new Float32Array([0,0])},e}return __extends(e,t),e.prototype.getUniforms=function(e){var t=e.proj;this.shader;return null!==t.surface?t.uniforms:null!==t._activeProjection?t._activeProjection.uniforms:this.defUniforms},e.prototype.createVao=function(e){var t=this.shader.attributes;this.vertSize=14,this.vertByteSize=4*this.vertSize;var r=this.renderer.gl,i=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(e,t.aVertexPosition,r.FLOAT,!1,this.vertByteSize,0).addAttribute(e,t.aTrans1,r.FLOAT,!1,this.vertByteSize,8).addAttribute(e,t.aTrans2,r.FLOAT,!1,this.vertByteSize,20).addAttribute(e,t.aFrame,r.FLOAT,!1,this.vertByteSize,32).addAttribute(e,t.aColor,r.UNSIGNED_BYTE,!0,this.vertByteSize,48);return t.aTextureId&&i.addAttribute(e,t.aTextureId,r.FLOAT,!1,this.vertByteSize,52),i},e.prototype.fillVertices=function(e,t,r,i,n,a){for(var o=i.vertexData,s=i._texture,u=(s.orig.width,s.orig.height,i._anchor._x,i._anchor._y,s._frame),l=i.aTrans,c=0;c<4;c++)e[r]=o[2*c],e[r+1]=o[2*c+1],e[r+2]=l.a,e[r+3]=l.c,e[r+4]=l.tx,e[r+5]=l.b,e[r+6]=l.d,e[r+7]=l.ty,e[r+8]=u.x,e[r+9]=u.y,e[r+10]=u.x+u.width,e[r+11]=u.y+u.height,t[r+12]=n,e[r+13]=a,r+=14},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite_bilinear",t)}(),function(e){var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.size=100,e.MAX_TEXTURES_LOCAL=1,e.shaderVert="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 worldTransform;\n\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * worldTransform * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n \n vTextureCoord = aVertexPosition;\n vTrans1 = aTrans1;\n vTrans2 = aTrans2;\n vTextureId = aTextureId;\n vColor = aColor;\n vFrame = aFrame;\n}\n",e.shaderFrag="precision highp float;\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec2 samplerSize[%count%]; \nuniform vec4 params;\n\nvoid main(void){\nvec2 surface;\n\nfloat vx = vTextureCoord.x;\nfloat vy = vTextureCoord.y;\nfloat aleph = params.x;\nfloat bet = params.y;\nfloat A = params.z;\nfloat B = params.w;\n\nif (aleph == 0.0) {\n\tsurface.y = vy / (1.0 + vx * bet);\n\tsurface.x = vx;\n}\nelse if (bet == 0.0) {\n\tsurface.x = vx / (1.0 + vy * aleph);\n\tsurface.y = vy;\n} else {\n\tsurface.x = vx * (bet + 1.0) / (bet + 1.0 + vy * aleph);\n\tsurface.y = vy * (aleph + 1.0) / (aleph + 1.0 + vx * bet);\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * samplerSize[0];\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec4 color;\nvec2 textureCoord = uv;\n%forloop%\ngl_FragColor = color * rColor;\n}",e.defUniforms={worldTransform:new Float32Array([1,0,0,0,1,0,0,0,1]),distortion:new Float32Array([0,0])},e}return __extends(e,t),e.prototype.getUniforms=function(e){var t=e.proj;this.shader;return null!==t.surface?t.uniforms:null!==t._activeProjection?t._activeProjection.uniforms:this.defUniforms},e.prototype.createVao=function(e){var t=this.shader.attributes;this.vertSize=14,this.vertByteSize=4*this.vertSize;var r=this.renderer.gl,i=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(e,t.aVertexPosition,r.FLOAT,!1,this.vertByteSize,0).addAttribute(e,t.aTrans1,r.FLOAT,!1,this.vertByteSize,8).addAttribute(e,t.aTrans2,r.FLOAT,!1,this.vertByteSize,20).addAttribute(e,t.aFrame,r.FLOAT,!1,this.vertByteSize,32).addAttribute(e,t.aColor,r.UNSIGNED_BYTE,!0,this.vertByteSize,48);return t.aTextureId&&i.addAttribute(e,t.aTextureId,r.FLOAT,!1,this.vertByteSize,52),i},e.prototype.fillVertices=function(e,t,r,i,n,a){for(var o=i.vertexData,s=i._texture,u=(s.orig.width,s.orig.height,i._anchor._x,i._anchor._y,s._frame),l=i.aTrans,c=0;c<4;c++)e[r]=o[2*c],e[r+1]=o[2*c+1],e[r+2]=l.a,e[r+3]=l.c,e[r+4]=l.tx,e[r+5]=l.b,e[r+6]=l.d,e[r+7]=l.ty,e[r+8]=u.x,e[r+9]=u.y,e[r+10]=u.x+u.width,e[r+11]=u.y+u.height,t[r+12]=n,e[r+13]=a,r+=14},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite_strange",t)}(),function(e){var T=new PIXI.Matrix,n=new PIXI.Rectangle,S=new PIXI.Point,t=function(t){function e(){var e=t.call(this)||this;return e.params=[0,0,NaN,NaN],e}return __extends(e,t),e.prototype.clear=function(){var e=this.params;e[0]=0,e[1]=0,e[2]=NaN,e[3]=NaN},e.prototype.setAxisX=function(e,t,r){var i=e.x,n=e.y,a=Math.sqrt(i*i+n*n),o=r.rotation;0!==o&&(r.skew._x-=o,r.skew._y+=o,r.rotation=0),r.skew.y=Math.atan2(n,i);var s=this.params;s[2]=0!==t?-a*t:NaN,this._calc01()},e.prototype.setAxisY=function(e,t,r){var i=e.x,n=e.y,a=Math.sqrt(i*i+n*n),o=r.rotation;0!==o&&(r.skew._x-=o,r.skew._y+=o,r.rotation=0),r.skew.x=-Math.atan2(n,i)+Math.PI/2;var s=this.params;s[3]=0!==t?-a*t:NaN,this._calc01()},e.prototype._calc01=function(){var e=this.params;if(isNaN(e[2]))e[1]=0,isNaN(e[3])?e[0]=0:e[0]=1/e[3];else if(isNaN(e[3]))e[0]=0,e[1]=1/e[2];else{var t=1-e[2]*e[3];e[0]=(1-e[2])/t,e[1]=(1-e[3])/t}},e.prototype.apply=function(e,t){t=t||new PIXI.Point;var r=this.params[0],i=this.params[1],n=this.params[2],a=this.params[3],o=e.x,s=e.y;if(0===r)t.y=s*(1+o*i),t.x=o;else if(0===i)t.x=o*(1+s*r),t.y=s;else{var u=n*a-s*o;t.x=n*o*(a+s)/u,t.y=a*s*(n+o)/u}return t},e.prototype.applyInverse=function(e,t){t=t||new PIXI.Point;var r=this.params[0],i=this.params[1],n=(this.params[2],this.params[3],e.x),a=e.y;return 0===r?(t.y=a/(1+n*i),t.x=n):0===i?(t.x=n*(1+a*r),t.y=a):(t.x=n*(i+1)/(i+1+a*r),t.y=a*(r+1)/(r+1+n*i)),t},e.prototype.mapSprite=function(e,t,r){var i=e.texture;return n.x=-e.anchor.x*i.orig.width,n.y=-e.anchor.y*i.orig.height,n.width=i.orig.width,n.height=i.orig.height,this.mapQuad(n,t,r||e.transform)},e.prototype.mapQuad=function(e,t,r){var i=-e.x/e.width,n=-e.y/e.height,a=(1-e.x)/e.width,o=(1-e.y)/e.height,s=t[0].x*(1-i)+t[1].x*i,u=t[0].y*(1-i)+t[1].y*i,l=t[0].x*(1-a)+t[1].x*a,c=t[0].y*(1-a)+t[1].y*a,h=t[3].x*(1-i)+t[2].x*i,f=t[3].y*(1-i)+t[2].y*i,d=t[3].x*(1-a)+t[2].x*a,p=t[3].y*(1-a)+t[2].y*a,m=s*(1-n)+h*n,g=u*(1-n)+f*n,v=l*(1-n)+d*n,b=c*(1-n)+p*n,y=s*(1-o)+h*o,_=u*(1-o)+f*o,w=l*(1-o)+d*o,x=c*(1-o)+p*o,k=T;return k.tx=m,k.ty=g,k.a=v-m,k.b=b-g,k.c=y-m,k.d=_-g,S.set(w,x),k.applyInverse(S,S),r.setFromMatrix(k),this},e.prototype.fillUniforms=function(e){var t=this.params,r=e.params||new Float32Array([0,0,0,0]);(e.params=r)[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3]},e}(e.Surface);e.StrangeSurface=t}(pixi_projection||(pixi_projection={})),function(e){PIXI.Sprite.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new PIXI.Matrix,this.calculateVertices=e.Sprite2s.prototype.calculateVertices,this.calculateTrimmedVertices=e.Sprite2s.prototype.calculateTrimmedVertices,this._calculateBounds=e.Sprite2s.prototype._calculateBounds,PIXI.Container.prototype.convertTo2s.call(this))},PIXI.Container.prototype.convertTo2s=function(){this.proj||(this.proj=new e.Projection2d(this.transform),Object.defineProperty(this,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}))},PIXI.Container.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(var e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2s()}}(pixi_projection||(pixi_projection={})),function(i){var e=function(r){function e(e){var t=r.call(this,e)||this;return t.aTrans=new PIXI.Matrix,t.proj=new i.ProjectionSurface(t.transform),t.pluginName="sprite_bilinear",t}return __extends(e,r),e.prototype._calculateBounds=function(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)},e.prototype.calculateVertices=function(){var e=this.transform._worldID,t=this._texture._updateID;if(this._transformID!==e||this._textureID!==t){this._transformID=e,this._textureID=t;var r=this._texture,i=this.vertexData,n=r.trim,a=r.orig,o=this._anchor,s=0,u=0,l=0,c=0;if(l=n?(s=(u=n.x-o._x*a.width)+n.width,(c=n.y-o._y*a.height)+n.height):(s=(u=-o._x*a.width)+a.width,(c=-o._y*a.height)+a.height),this.proj._surface)i[0]=u,i[1]=c,i[2]=s,i[3]=c,i[4]=s,i[5]=l,i[6]=u,i[7]=l,this.proj._surface.boundsQuad(i,i);else{var h=this.transform.worldTransform,f=h.a,d=h.b,p=h.c,m=h.d,g=h.tx,v=h.ty;i[0]=f*u+p*c+g,i[1]=m*c+d*u+v,i[2]=f*s+p*c+g,i[3]=m*c+d*s+v,i[4]=f*s+p*l+g,i[5]=m*l+d*s+v,i[6]=f*u+p*l+g,i[7]=m*l+d*u+v,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(i,i)}r.transform||(r.transform=new PIXI.TextureMatrix(r)),r.transform.update();var b=this.aTrans;b.set(a.width,0,0,a.height,u,c),null===this.proj._surface&&b.prepend(this.transform.worldTransform),b.invert(),b.prepend(r.transform.mapCoord)}},e.prototype.calculateTrimmedVertices=function(){var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var r=this._texture,i=this.vertexTrimmedData,n=r.orig,a=this._anchor,o=-a._x*n.width,s=o+n.width,u=-a._y*n.height,l=u+n.height;if(this.proj._surface)i[0]=o,i[1]=u,i[2]=s,i[3]=u,i[4]=s,i[5]=l,i[6]=o,i[7]=l,this.proj._surface.boundsQuad(i,i,this.transform.worldTransform);else{var c=this.transform.worldTransform,h=c.a,f=c.b,d=c.c,p=c.d,m=c.tx,g=c.ty;i[0]=h*o+d*u+m,i[1]=p*u+f*o+g,i[2]=h*s+d*u+m,i[3]=p*u+f*s+g,i[4]=h*s+d*l+m,i[5]=p*l+f*s+g,i[6]=h*o+d*l+m,i[7]=p*l+f*o+g,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(i,i,this.proj._activeProjection.legacy.worldTransform)}},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),e}(PIXI.Sprite);i.Sprite2s=e}(pixi_projection||(pixi_projection={})),function(a){var e=function(n){function e(e,t,r){var i=n.call(this,e,t,r)||this;return i.aTrans=new PIXI.Matrix,i.proj=new a.ProjectionSurface(i.transform),i.pluginName="sprite_bilinear",i}return __extends(e,n),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),e}(PIXI.Text);(a.Text2s=e).prototype.calculateVertices=a.Sprite2s.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=a.Sprite2s.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=a.Sprite2s.prototype._calculateBounds}(pixi_projection||(pixi_projection={})),function(a){a.container2dWorldTransform=function(){return this.proj.affine?this.transform.worldTransform:this.proj.world};var e=function(t){function e(){var e=t.call(this)||this;return e.proj=new a.Projection2d(e.transform),e}return __extends(e,t),e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=a.TRANSFORM_STEP.ALL),t&&(e=t.toGlobal(e,r,i)),i||this._recursivePostUpdateTransform(),n>=a.TRANSFORM_STEP.PROJ?(i||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(e,r):this.proj.world.applyInverse(e,r)):(this.parent?r=this.parent.worldTransform.applyInverse(e,r):r.copy(e),n===a.TRANSFORM_STEP.NONE?r:this.transform.localTransform.applyInverse(r,r))},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.Container);a.Container2d=e,a.container2dToLocal=e.prototype.toLocal}(pixi_projection||(pixi_projection={})),function(e){var u,t,v=PIXI.Point,r=[1,0,0,0,1,0,0,0,1];(t=u=e.AFFINE||(e.AFFINE={}))[t.NONE=0]="NONE",t[t.FREE=1]="FREE",t[t.AXIS_X=2]="AXIS_X",t[t.AXIS_Y=3]="AXIS_Y",t[t.POINT=4]="POINT",t[t.AXIS_XR=5]="AXIS_XR";var i=function(){function e(e){this.floatArray=null,this.mat3=new Float64Array(e||r)}return Object.defineProperty(e.prototype,"a",{get:function(){return this.mat3[0]/this.mat3[8]},set:function(e){this.mat3[0]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.mat3[1]/this.mat3[8]},set:function(e){this.mat3[1]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.mat3[3]/this.mat3[8]},set:function(e){this.mat3[3]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.mat3[4]/this.mat3[8]},set:function(e){this.mat3[4]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this.mat3[6]/this.mat3[8]},set:function(e){this.mat3[6]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this.mat3[7]/this.mat3[8]},set:function(e){this.mat3[7]=e*this.mat3[8]},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t,r,i,n,a){var o=this.mat3;return o[0]=e,o[1]=t,o[2]=0,o[3]=r,o[4]=i,o[5]=0,o[6]=n,o[7]=a,o[8]=1,this},e.prototype.toArray=function(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var r=t||this.floatArray,i=this.mat3;return e?(r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4],r[5]=i[5],r[6]=i[6],r[7]=i[7]):(r[0]=i[0],r[1]=i[3],r[2]=i[6],r[3]=i[1],r[4]=i[4],r[5]=i[7],r[6]=i[2],r[7]=i[5]),r[8]=i[8],r},e.prototype.apply=function(e,t){t=t||new PIXI.Point;var r=this.mat3,i=e.x,n=e.y,a=1/(r[2]*i+r[5]*n+r[8]);return t.x=a*(r[0]*i+r[3]*n+r[6]),t.y=a*(r[1]*i+r[4]*n+r[7]),t},e.prototype.translate=function(e,t){var r=this.mat3;return r[0]+=e*r[2],r[1]+=t*r[2],r[3]+=e*r[5],r[4]+=t*r[5],r[6]+=e*r[8],r[7]+=t*r[8],this},e.prototype.scale=function(e,t){var r=this.mat3;return r[0]*=e,r[1]*=t,r[3]*=e,r[4]*=t,r[6]*=e,r[7]*=t,this},e.prototype.scaleAndTranslate=function(e,t,r,i){var n=this.mat3;n[0]=e*n[0]+r*n[2],n[1]=t*n[1]+i*n[2],n[3]=e*n[3]+r*n[5],n[4]=t*n[4]+i*n[5],n[6]=e*n[6]+r*n[8],n[7]=t*n[7]+i*n[8]},e.prototype.applyInverse=function(e,t){t=t||new v;var r=this.mat3,i=e.x,n=e.y,a=r[0],o=r[3],s=r[6],u=r[1],l=r[4],c=r[7],h=r[2],f=r[5],d=r[8],p=(d*l-c*f)*i+(-d*o+s*f)*n+(c*o-s*l),m=(-d*u+c*h)*i+(d*a-s*h)*n+(-c*a+s*u),g=(f*u-l*h)*i+(-f*a+o*h)*n+(l*a-o*u);return t.x=p/g,t.y=m/g,t},e.prototype.invert=function(){var e=this.mat3,t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],c=l*a-o*u,h=-l*n+o*s,f=u*n-a*s,d=t*c+r*h+i*f;return d&&(d=1/d,e[0]=c*d,e[1]=(-l*r+i*u)*d,e[2]=(o*r-i*a)*d,e[3]=h*d,e[4]=(l*t-i*s)*d,e[5]=(-o*t+i*n)*d,e[6]=f*d,e[7]=(-u*t+r*s)*d,e[8]=(a*t-r*n)*d),this},e.prototype.identity=function(){var e=this.mat3;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,this},e.prototype.clone=function(){return new e(this.mat3)},e.prototype.copyTo=function(e){var t=this.mat3,r=e.mat3;return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[8]=t[8],e},e.prototype.copyTo2dOr3d=function(e){return this.copyTo(e)},e.prototype.copy=function(e,t,r){var i=this.mat3,n=1/i[8],a=i[6]*n,o=i[7]*n;if(e.a=(i[0]-i[2]*a)*n,e.b=(i[1]-i[2]*o)*n,e.c=(i[3]-i[5]*a)*n,e.d=(i[4]-i[5]*o)*n,e.tx=a,e.ty=o,2<=t){var s=e.a*e.d-e.b*e.c;r||(s=Math.abs(s)),t===u.POINT?(s=0<s?1:-1,e.a=s,e.b=0,e.c=0,e.d=s):t===u.AXIS_X?(s/=Math.sqrt(e.b*e.b+e.d*e.d),e.c=0,e.d=s):t===u.AXIS_Y?(s/=Math.sqrt(e.a*e.a+e.c*e.c),e.a=s,e.c=0):t===u.AXIS_XR&&(e.a=e.d*s,e.c=-e.b*s)}return e},e.prototype.copyFrom=function(e){var t=this.mat3;return t[0]=e.a,t[1]=e.b,t[2]=0,t[3]=e.c,t[4]=e.d,t[5]=0,t[6]=e.tx,t[7]=e.ty,t[8]=1,this},e.prototype.setToMultLegacy=function(e,t){var r=this.mat3,i=t.mat3,n=e.a,a=e.b,o=e.c,s=e.d,u=e.tx,l=e.ty,c=i[0],h=i[1],f=i[2],d=i[3],p=i[4],m=i[5],g=i[6],v=i[7],b=i[8];return r[0]=c*n+h*o+f*u,r[1]=c*a+h*s+f*l,r[2]=f,r[3]=d*n+p*o+m*u,r[4]=d*a+p*s+m*l,r[5]=m,r[6]=g*n+v*o+b*u,r[7]=g*a+v*s+b*l,r[8]=b,this},e.prototype.setToMultLegacy2=function(e,t){var r=this.mat3,i=e.mat3,n=i[0],a=i[1],o=i[2],s=i[3],u=i[4],l=i[5],c=i[6],h=i[7],f=i[8],d=t.a,p=t.b,m=t.c,g=t.d,v=t.tx,b=t.ty;return r[0]=d*n+p*s,r[1]=d*a+p*u,r[2]=d*o+p*l,r[3]=m*n+g*s,r[4]=m*a+g*u,r[5]=m*o+g*l,r[6]=v*n+b*s+c,r[7]=v*a+b*u+h,r[8]=v*o+b*l+f,this},e.prototype.setToMult=function(e,t){var r=this.mat3,i=e.mat3,n=t.mat3,a=i[0],o=i[1],s=i[2],u=i[3],l=i[4],c=i[5],h=i[6],f=i[7],d=i[8],p=n[0],m=n[1],g=n[2],v=n[3],b=n[4],y=n[5],_=n[6],w=n[7],x=n[8];return r[0]=p*a+m*u+g*h,r[1]=p*o+m*l+g*f,r[2]=p*s+m*c+g*d,r[3]=v*a+b*u+y*h,r[4]=v*o+b*l+y*f,r[5]=v*s+b*c+y*d,r[6]=_*a+w*u+x*h,r[7]=_*o+w*l+x*f,r[8]=_*s+w*c+x*d,this},e.prototype.prepend=function(e){return e.mat3?this.setToMult(e,this):this.setToMultLegacy(e,this)},e.IDENTITY=new e,e.TEMP_MATRIX=new e,e}();e.Matrix2d=i}(pixi_projection||(pixi_projection={})),function(d){var p=new PIXI.Point,m=[new PIXI.Point,new PIXI.Point,new PIXI.Point,new PIXI.Point],n=new PIXI.Rectangle,g=new d.Matrix2d,e=function(i){function e(e,t){var r=i.call(this,e,t)||this;return r.matrix=new d.Matrix2d,r.pivot=new PIXI.ObservablePoint(r.onChange,r,0,0),r.reverseLocalOrder=!1,r.local=new d.Matrix2d,r.world=new d.Matrix2d,r}return __extends(e,i),e.prototype.onChange=function(){var e=this.pivot,t=this.matrix.mat3;t[6]=-(e._x*t[0]+e._y*t[3]),t[7]=-(e._x*t[1]+e._y*t[4]),this._projID++},e.prototype.setAxisX=function(e,t){void 0===t&&(t=1);var r=e.x,i=e.y,n=Math.sqrt(r*r+i*i),a=this.matrix.mat3;a[0]=r/n,a[1]=i/n,a[2]=t/n,this.onChange()},e.prototype.setAxisY=function(e,t){void 0===t&&(t=1);var r=e.x,i=e.y,n=Math.sqrt(r*r+i*i),a=this.matrix.mat3;a[3]=r/n,a[4]=i/n,a[5]=t/n,this.onChange()},e.prototype.mapSprite=function(e,t){var r=e.texture;return n.x=-e.anchor.x*r.orig.width,n.y=-e.anchor.y*r.orig.height,n.width=r.orig.width,n.height=r.orig.height,this.mapQuad(n,t)},e.prototype.mapQuad=function(e,t){m[0].set(e.x,e.y),m[1].set(e.x+e.width,e.y),m[2].set(e.x+e.width,e.y+e.height),m[3].set(e.x,e.y+e.height);var r=1,i=2,n=3;if(0!==d.utils.getIntersectionFactor(t[0],t[2],t[1],t[3],p)){r=1,i=3,n=2;var a=Math.sqrt((t[0].x-p.x)*(t[0].x-p.x)+(t[0].y-p.y)*(t[0].y-p.y)),o=Math.sqrt((t[r].x-p.x)*(t[r].x-p.x)+(t[r].y-p.y)*(t[r].y-p.y)),s=Math.sqrt((t[i].x-p.x)*(t[i].x-p.x)+(t[i].y-p.y)*(t[i].y-p.y)),u=Math.sqrt((t[n].x-p.x)*(t[n].x-p.x)+(t[n].y-p.y)*(t[n].y-p.y)),l=(a+u)/u,c=(o+s)/s,h=(o+s)/o,f=this.matrix.mat3;f[0]=m[0].x*l,f[1]=m[0].y*l,f[2]=l,f[3]=m[r].x*c,f[4]=m[r].y*c,f[5]=c,f[6]=m[i].x*h,f[7]=m[i].y*h,f[8]=h,this.matrix.invert(),(f=g.mat3)[0]=t[0].x,f[1]=t[0].y,f[2]=1,f[3]=t[r].x,f[4]=t[r].y,f[5]=1,f[6]=t[i].x,f[7]=t[i].y,f[8]=1,this.matrix.setToMult(g,this.matrix),this._projID++}},e.prototype.updateLocalTransform=function(e){0!==this._projID?this.reverseLocalOrder?this.local.setToMultLegacy2(this.matrix,e):this.local.setToMultLegacy(e,this.matrix):this.local.copyFrom(e)},e.prototype.clear=function(){i.prototype.clear.call(this),this.matrix.identity(),this.pivot.set(0,0)},e}(d.LinearProjection);d.Projection2d=e}(pixi_projection||(pixi_projection={})),function(s){var e=function(o){function e(e,t,r,i,n){var a=o.call(this,e,t,r,i,n)||this;return a.proj=new s.Projection2d(a.transform),a.pluginName="mesh2d",a}return __extends(e,o),e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=s.TRANSFORM_STEP.ALL),s.container2dToLocal.call(this,e,t,r,i,n)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.mesh.Mesh);s.Mesh2d=e}(pixi_projection||(pixi_projection={})),function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new PIXI.Shader(e,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","\nvarying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}")},t}(PIXI.mesh.MeshRenderer);e.Mesh2dRenderer=t,PIXI.WebGLRenderer.registerPlugin("mesh2d",t)}(pixi_projection||(pixi_projection={})),function(e){function t(){this.proj||(this.proj=new e.Projection2d(this.transform),this.toLocal=e.Container2d.prototype.toLocal,Object.defineProperty(this,"worldTransform",{get:e.container2dWorldTransform,enumerable:!0,configurable:!0}))}PIXI.Container.prototype.convertTo2d=t,PIXI.Sprite.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=e.Sprite2d.prototype.calculateVertices,this.calculateTrimmedVertices=e.Sprite2d.prototype.calculateTrimmedVertices,this._calculateBounds=e.Sprite2d.prototype._calculateBounds,this.pluginName="sprite2d",this.vertexData=new Float32Array(12),t.call(this))},PIXI.mesh.Mesh.prototype.convertTo2d=function(){this.proj||(this.pluginName="mesh2d",t.call(this))},PIXI.Container.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(var e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2d()}}(pixi_projection||(pixi_projection={})),function(a){var e=function(f){function e(e){var t=f.call(this,e)||this;return t.proj=new a.Projection2d(t.transform),t.pluginName="sprite2d",t.vertexData=new Float32Array(12),t}return __extends(e,f),e.prototype._calculateBounds=function(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)},e.prototype.calculateVertices=function(){if(this.proj._affine)return 8!=this.vertexData.length&&(this.vertexData=new Float32Array(8)),void f.prototype.calculateVertices.call(this);12!=this.vertexData.length&&(this.vertexData=new Float32Array(12));var e=this.transform._worldID,t=this._texture._updateID;if(this._transformID!==e||this._textureID!==t){this._transformID=e,this._textureID=t;var r=this._texture,i=this.proj.world.mat3,n=this.vertexData,a=r.trim,o=r.orig,s=this._anchor,u=0,l=0,c=0,h=0;c=a?(u=(l=a.x-s._x*o.width)+a.width,(h=a.y-s._y*o.height)+a.height):(u=(l=-s._x*o.width)+o.width,(h=-s._y*o.height)+o.height),n[0]=i[0]*l+i[3]*h+i[6],n[1]=i[1]*l+i[4]*h+i[7],n[2]=i[2]*l+i[5]*h+i[8],n[3]=i[0]*u+i[3]*h+i[6],n[4]=i[1]*u+i[4]*h+i[7],n[5]=i[2]*u+i[5]*h+i[8],n[6]=i[0]*u+i[3]*c+i[6],n[7]=i[1]*u+i[4]*c+i[7],n[8]=i[2]*u+i[5]*c+i[8],n[9]=i[0]*l+i[3]*c+i[6],n[10]=i[1]*l+i[4]*c+i[7],n[11]=i[2]*l+i[5]*c+i[8]}},e.prototype.calculateTrimmedVertices=function(){if(this.proj._affine)f.prototype.calculateTrimmedVertices.call(this);else{var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var r=this._texture,i=this.vertexTrimmedData,n=r.orig,a=this._anchor,o=this.proj.world.mat3,s=-a._x*n.width,u=s+n.width,l=-a._y*n.height,c=l+n.height,h=1/(o[2]*s+o[5]*l+o[8]);i[0]=h*(o[0]*s+o[3]*l+o[6]),i[1]=h*(o[1]*s+o[4]*l+o[7]),h=1/(o[2]*u+o[5]*l+o[8]),i[2]=h*(o[0]*u+o[3]*l+o[6]),i[3]=h*(o[1]*u+o[4]*l+o[7]),h=1/(o[2]*u+o[5]*c+o[8]),i[4]=h*(o[0]*u+o[3]*c+o[6]),i[5]=h*(o[1]*u+o[4]*c+o[7]),h=1/(o[2]*s+o[5]*c+o[8]),i[6]=h*(o[0]*s+o[3]*c+o[6]),i[7]=h*(o[1]*s+o[4]*c+o[7])}},e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=a.TRANSFORM_STEP.ALL),a.container2dToLocal.call(this,e,t,r,i,n)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.Sprite);a.Sprite2d=e}(pixi_projection||(pixi_projection={})),function(e){var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shaderVert="precision highp float;\nattribute vec3 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * aVertexPosition;\n gl_Position.z = 0.0;\n \n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor;\n}\n",e.shaderFrag="\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\nvec4 color;\nvec2 textureCoord = vTextureCoord;\nfloat textureId = floor(vTextureId+0.5);\n%forloop%\ngl_FragColor = color * vColor;\n}",e}return __extends(e,t),e.prototype.createVao=function(e){var t=this.shader.attributes;this.vertSize=6,this.vertByteSize=4*this.vertSize;var r=this.renderer.gl,i=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(e,t.aVertexPosition,r.FLOAT,!1,this.vertByteSize,0).addAttribute(e,t.aTextureCoord,r.UNSIGNED_SHORT,!0,this.vertByteSize,12).addAttribute(e,t.aColor,r.UNSIGNED_BYTE,!0,this.vertByteSize,16);return t.aTextureId&&i.addAttribute(e,t.aTextureId,r.FLOAT,!1,this.vertByteSize,20),i},e.prototype.fillVertices=function(e,t,r,i,n,a){var o=i.vertexData,s=i._texture._uvs.uvsUint32;if(8===o.length)if(this.renderer.roundPixels){var u=this.renderer.resolution;e[r]=(o[0]*u|0)/u,e[r+1]=(o[1]*u|0)/u,e[r+2]=1,e[r+6]=(o[2]*u|0)/u,e[r+7]=(o[3]*u|0)/u,e[r+8]=1,e[r+12]=(o[4]*u|0)/u,e[r+13]=(o[5]*u|0)/u,e[r+14]=1,e[r+18]=(o[6]*u|0)/u,e[r+19]=(o[7]*u|0)/u,e[r+20]=1}else e[r]=o[0],e[r+1]=o[1],e[r+2]=1,e[r+6]=o[2],e[r+7]=o[3],e[r+8]=1,e[r+12]=o[4],e[r+13]=o[5],e[r+14]=1,e[r+18]=o[6],e[r+19]=o[7],e[r+20]=1;else e[r]=o[0],e[r+1]=o[1],e[r+2]=o[2],e[r+6]=o[3],e[r+7]=o[4],e[r+8]=o[5],e[r+12]=o[6],e[r+13]=o[7],e[r+14]=o[8],e[r+18]=o[9],e[r+19]=o[10],e[r+20]=o[11];t[r+3]=s[0],t[r+9]=s[1],t[r+15]=s[2],t[r+21]=s[3],t[r+4]=t[r+10]=t[r+16]=t[r+22]=n,e[r+5]=e[r+11]=e[r+17]=e[r+23]=a},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite2d",t)}(),function(a){var e=function(n){function e(e,t,r){var i=n.call(this,e,t,r)||this;return i.proj=new a.Projection2d(i.transform),i.pluginName="sprite2d",i.vertexData=new Float32Array(12),i}return __extends(e,n),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.Text);(a.Text2d=e).prototype.calculateVertices=a.Sprite2d.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=a.Sprite2d.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=a.Sprite2d.prototype._calculateBounds}(pixi_projection||(pixi_projection={})),function(a){var r=new PIXI.TransformStatic,e=function(n){function e(e,t,r){var i=n.call(this,e,t,r)||this;return i.tileProj=new a.Projection2d(i.tileTransform),i.tileProj.reverseLocalOrder=!0,i.proj=new a.Projection2d(i.transform),i.pluginName="tilingSprite2d",i.uvRespectAnchor=!0,i}return __extends(e,n),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=a.TRANSFORM_STEP.ALL),a.container2dToLocal.call(this,e,t,r,i,n)},e.prototype._renderWebGL=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateTransform(r),this.uvTransform.update(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},e}(PIXI.extras.TilingSprite);a.TilingSprite2d=e}(pixi_projection||(pixi_projection={})),function(e){var r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec3 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\n\n vTextureCoord = uTransform * vec3(aTextureCoord, 1.0);\n}\n",c=new e.Matrix2d,h=PIXI.WRAP_MODES,f=PIXI.utils,t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new PIXI.Shader(e,r,"\nvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = mod(vTextureCoord.xy / vTextureCoord.z - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 sample = texture2D(uSampler, coord);\n gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new PIXI.Shader(e,r,"\n\tvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);\n gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new PIXI.Quad(e,this.renderer.state.attribState),this.quad.initVao(this.shader)},t.prototype.render=function(e){var t=this.renderer,r=this.quad;t.bindVao(r.vao);var i=r.vertices;i[0]=i[6]=e._width*-e.anchor.x,i[1]=i[3]=e._height*-e.anchor.y,i[2]=i[4]=e._width*(1-e.anchor.x),i[5]=i[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&((i=r.uvs)[0]=i[6]=-e.anchor.x,i[1]=i[3]=-e.anchor.y,i[2]=i[4]=1-e.anchor.x,i[5]=i[7]=1-e.anchor.y),r.upload();var n=e._texture,a=n.baseTexture,o=e.tileProj.world,s=e.uvTransform,u=a.isPowerOfTwo&&n.frame.width===a.width&&n.frame.height===a.height;u&&(a._glTextures[t.CONTEXT_UID]?u=a.wrapMode!==h.CLAMP:a.wrapMode===h.CLAMP&&(a.wrapMode=h.REPEAT));var l=u?this.simpleShader:this.shader;t.bindShader(l),c.identity(),c.scale(n.width,n.height),c.prepend(o),c.scale(1/e._width,1/e._height),c.invert(),u?c.prepend(s.mapCoord):(l.uniforms.uMapCoord=s.mapCoord.toArray(!0),l.uniforms.uClampFrame=s.uClampFrame,l.uniforms.uClampOffset=s.uClampOffset),l.uniforms.uTransform=c.toArray(!0),l.uniforms.uColor=f.premultiplyTintToRgba(e.tint,e.worldAlpha,l.uniforms.uColor,a.premultipliedAlpha),l.uniforms.translationMatrix=e.proj.world.toArray(!0),l.uniforms.uSampler=t.bindTexture(n),t.setBlendMode(f.correctBlendMode(e.blendMode,a.premultipliedAlpha)),r.vao.draw(this.renderer.gl.TRIANGLES,6,0)},t}(PIXI.extras.TilingSpriteRenderer);e.TilingSprite2dRenderer=t,PIXI.WebGLRenderer.registerPlugin("tilingSprite2d",t)}(pixi_projection||(pixi_projection={})),function(i){var e=function(){function e(e){var t=this;this.onContextChange=function(e){t.gl=e,t.renderer.maskManager.pushSpriteMask=r},(this.renderer=e).on("context",this.onContextChange)}return e.prototype.destroy=function(){this.renderer.off("context",this.onContextChange)},e}();function r(e,t){var r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new i.SpriteMaskFilter2d(t)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=t,e.filterArea=t.getBounds(!0),this.renderer.filterManager.pushFilter(e,r),this.alphaMaskIndex++}i.ProjectionsManager=e,PIXI.WebGLRenderer.registerPlugin("projections",e)}(pixi_projection||(pixi_projection={})),function(i){var u=new i.Matrix2d,e=function(r){function s(e){var t=r.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n\tgl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n\tvTextureCoord = aTextureCoord;\n\tvMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);\n}\n","\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n vec2 uv = vMaskCoord.xy / vMaskCoord.z;\n \n float clip = step(3.5,\n step(maskClamp.x, uv.x) +\n step(maskClamp.y, uv.y) +\n step(uv.x, maskClamp.z) +\n step(uv.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, uv);\n \n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n")||this;return t.maskMatrix=new i.Matrix2d,e.renderable=!1,t.maskSprite=e,t}return __extends(s,r),s.prototype.apply=function(e,t,r,i,n){var a=this.maskSprite,o=this.maskSprite.texture;o.valid&&(o.transform||(o.transform=new PIXI.TextureMatrix(o,0)),o.transform.update(),this.uniforms.mask=a.texture,this.uniforms.otherMatrix=s.calculateSpriteMatrix(n,this.maskMatrix,a).prepend(o.transform.mapCoord),this.uniforms.alpha=a.worldAlpha,this.uniforms.maskClamp=o.transform.uClampFrame,e.applyFilter(this,t,r))},s.calculateSpriteMatrix=function(e,t,r){var i=r.proj,n=e.sourceFrame,a=e.renderTarget.size,o=i&&!i._affine?i.world.copyTo2dOr3d(u):u.copyFrom(r.transform.worldTransform),s=r.texture.orig;return t.set(a.width,0,0,a.height,n.x,n.y),o.invert(),t.setToMult(o,t),t.scaleAndTranslate(1/s.width,1/s.height,r.anchor.x,r.anchor.y),t},s}(PIXI.Filter);i.SpriteMaskFilter2d=e}(pixi_projection||(pixi_projection={})),function(a){a.container3dWorldTransform=function(){return this.proj.affine?this.transform.worldTransform:this.proj.world};var e=function(t){function e(){var e=t.call(this)||this;return e.proj=new a.Projection3d(e.transform),e}return __extends(e,t),e.prototype.isFrontFace=function(e){void 0===e&&(e=!1),e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());var t=this.proj.world.mat4,r=t[0]*t[15]-t[3]*t[12],i=t[1]*t[15]-t[3]*t[13],n=t[4]*t[15]-t[7]*t[12];return 0<r*(t[5]*t[15]-t[7]*t[13])-n*i},e.prototype.getDepth=function(e){void 0===e&&(e=!1),e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());var t=this.proj.world.mat4;return t[14]/t[15]},e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=a.TRANSFORM_STEP.ALL),t&&(e=t.toGlobal(e,r,i)),i||this._recursivePostUpdateTransform(),n===a.TRANSFORM_STEP.ALL?(i||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(e,r):this.proj.world.applyInverse(e,r)):(this.parent?r=this.parent.worldTransform.applyInverse(e,r):r.copy(e),n===a.TRANSFORM_STEP.NONE||(r=this.transform.localTransform.applyInverse(r,r),n===a.TRANSFORM_STEP.PROJ&&this.proj.cameraMode&&(r=this.proj.cameraMatrix.applyInverse(r,r))),r)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.Container);a.Container3d=e,a.container3dToLocal=e.prototype.toLocal,a.container3dGetDepth=e.prototype.getDepth,a.container3dIsFrontFace=e.prototype.isFrontFace}(pixi_projection||(pixi_projection={})),function(e){var t=function(t){function e(){var e=t.call(this)||this;return e._far=0,e._near=0,e._focus=0,e._orthographic=!1,e.proj.cameraMode=!0,e.setPlanes(400,10,1e4,!1),e}return __extends(e,t),Object.defineProperty(e.prototype,"far",{get:function(){return this._far},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"near",{get:function(){return this._near},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focus",{get:function(){return this._focus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ortographic",{get:function(){return this._orthographic},enumerable:!0,configurable:!0}),e.prototype.setPlanes=function(e,t,r,i){void 0===t&&(t=10),void 0===r&&(r=1e4),void 0===i&&(i=!1),this._focus=e,this._near=t,this._far=r,this._orthographic=i;var n=this.proj,a=n.cameraMatrix.mat4;n._projID++,a[10]=1/(r-t),a[14]=(e-t)/(r-t),this._orthographic?a[11]=0:a[11]=1/e},e}(e.Container3d);e.Camera3d=t}(pixi_projection||(pixi_projection={})),function(e){var t=function(){function e(e,t,r){this._quatUpdateId=-1,this._quatDirtyId=0,this._sign=1,this._x=e||0,this._y=t||0,this._z=r||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}return Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pitch",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yaw",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"roll",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t,r){var i=e||0,n=t||0,a=r||0;this._x===i&&this._y===n&&this._z===a||(this._x=i,this._y=n,this._z=a,this._quatDirtyId++)},e.prototype.copy=function(e){var t=e.x,r=e.y,i=e.z;this._x===t&&this._y===r&&this._z===i||(this._x=t,this._y=r,this._z=i,this._quatDirtyId++)},e.prototype.clone=function(){return new e(this._x,this._y,this._z)},e.prototype.update=function(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var e=Math.cos(this._x/2),t=Math.cos(this._y/2),r=Math.cos(this._z/2),i=this._sign,n=i*Math.sin(this._x/2),a=i*Math.sin(this._y/2),o=i*Math.sin(this._z/2),s=this.quaternion;return s[0]=n*t*r+e*a*o,s[1]=e*a*r-n*t*o,s[2]=e*t*o+n*a*r,s[3]=e*t*r-n*a*o,!0},e}();e.Euler=t}(pixi_projection||(pixi_projection={})),function(v){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e=function(){function g(e){this.floatArray=null,this._dirtyId=0,this._updateId=-1,this._mat4inv=null,this.cacheInverse=!1,this.mat4=new Float64Array(e||t)}return Object.defineProperty(g.prototype,"a",{get:function(){return this.mat4[0]/this.mat4[15]},set:function(e){this.mat4[0]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"b",{get:function(){return this.mat4[1]/this.mat4[15]},set:function(e){this.mat4[1]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"c",{get:function(){return this.mat4[4]/this.mat4[15]},set:function(e){this.mat4[4]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"d",{get:function(){return this.mat4[5]/this.mat4[15]},set:function(e){this.mat4[5]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tx",{get:function(){return this.mat4[12]/this.mat4[15]},set:function(e){this.mat4[12]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ty",{get:function(){return this.mat4[13]/this.mat4[15]},set:function(e){this.mat4[13]=e*this.mat4[15]},enumerable:!0,configurable:!0}),g.prototype.set=function(e,t,r,i,n,a){var o=this.mat4;return o[0]=e,o[1]=t,o[2]=0,o[3]=0,o[4]=r,o[5]=i,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=n,o[13]=a,o[14]=0,o[15]=1,this},g.prototype.toArray=function(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var r=t||this.floatArray,i=this.mat4;return e?(r[0]=i[0],r[1]=i[1],r[2]=i[3],r[3]=i[4],r[4]=i[5],r[5]=i[7],r[6]=i[12],r[7]=i[13]):(r[0]=i[0],r[1]=i[4],r[2]=i[12],r[3]=i[2],r[4]=i[6],r[5]=i[13],r[6]=i[3],r[7]=i[7]),r[8]=i[15],r},g.prototype.setToTranslation=function(e,t,r){var i=this.mat4;i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=e,i[13]=t,i[14]=r,i[15]=1},g.prototype.setToRotationTranslationScale=function(e,t,r,i,n,a,o){var s=this.mat4,u=e[0],l=e[1],c=e[2],h=e[3],f=u+u,d=l+l,p=c+c,m=u*f,g=u*d,v=u*p,b=l*d,y=l*p,_=c*p,w=h*f,x=h*d,k=h*p;return s[0]=(1-(b+_))*n,s[1]=(g+k)*n,s[2]=(v-x)*n,s[3]=0,s[4]=(g-k)*a,s[5]=(1-(m+_))*a,s[6]=(y+w)*a,s[7]=0,s[8]=(v+x)*o,s[9]=(y-w)*o,s[10]=(1-(m+b))*o,s[11]=0,s[12]=t,s[13]=r,s[14]=i,s[15]=1,s},g.prototype.apply=function(e,t){t=t||new v.Point3d;var r=this.mat4,i=e.x,n=e.y,a=e.z,o=1/(r[3]*i+r[7]*n+r[11]*a+r[15]);return t.x=o*(r[0]*i+r[4]*n+r[8]*a+r[12]),t.y=o*(r[1]*i+r[5]*n+r[9]*a+r[13]),t.z=o*(r[2]*i+r[6]*n+r[10]*a+r[14]),t},g.prototype.translate=function(e,t,r){var i=this.mat4;return i[12]=i[0]*e+i[4]*t+i[8]*r+i[12],i[13]=i[1]*e+i[5]*t+i[9]*r+i[13],i[14]=i[2]*e+i[6]*t+i[10]*r+i[14],i[15]=i[3]*e+i[7]*t+i[11]*r+i[15],this},g.prototype.scale=function(e,t,r){var i=this.mat4;return i[0]*=e,i[1]*=e,i[2]*=e,i[3]*=e,i[4]*=t,i[5]*=t,i[6]*=t,i[7]*=t,void 0!==r&&(i[8]*=r,i[9]*=r,i[10]*=r,i[11]*=r),this},g.prototype.scaleAndTranslate=function(e,t,r,i,n,a){var o=this.mat4;o[0]=e*o[0]+i*o[3],o[1]=t*o[1]+n*o[3],o[2]=r*o[2]+a*o[3],o[4]=e*o[4]+i*o[7],o[5]=t*o[5]+n*o[7],o[6]=r*o[6]+a*o[7],o[8]=e*o[8]+i*o[11],o[9]=t*o[9]+n*o[11],o[10]=r*o[10]+a*o[11],o[12]=e*o[12]+i*o[15],o[13]=t*o[13]+n*o[15],o[14]=r*o[14]+a*o[15]},g.prototype.applyInverse=function(e,t){t=t||new v.Point3d,this._mat4inv||(this._mat4inv=new Float64Array(16));var r=this._mat4inv,i=this.mat4,n=e.x,a=e.y,o=e.z;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,g.glMatrixMat4Invert(r,i));var s=1/(r[3]*n+r[7]*a+r[11]*o+r[15]),u=s*(r[0]*n+r[4]*a+r[8]*o+r[12]),l=s*(r[1]*n+r[5]*a+r[9]*o+r[13]),c=s*(r[2]*n+r[6]*a+r[10]*o+r[14]);o+=1;var h=1/(r[3]*n+r[7]*a+r[11]*o+r[15]),f=h*(r[0]*n+r[4]*a+r[8]*o+r[12]),d=h*(r[1]*n+r[5]*a+r[9]*o+r[13]),p=h*(r[2]*n+r[6]*a+r[10]*o+r[14]);Math.abs(c-p)<1e-10&&t.set(NaN,NaN,0);var m=(0-c)/(p-c);return t.set((f-u)*m+u,(d-l)*m+l,0),t},g.prototype.invert=function(){return g.glMatrixMat4Invert(this.mat4,this.mat4),this},g.prototype.invertCopyTo=function(e){this._mat4inv||(this._mat4inv=new Float64Array(16));var t=this._mat4inv,r=this.mat4;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,g.glMatrixMat4Invert(t,r)),e.mat4.set(t)},g.prototype.identity=function(){var e=this.mat4;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},g.prototype.clone=function(){return new g(this.mat4)},g.prototype.copyTo=function(e){var t=this.mat4,r=e.mat4;return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[8]=t[8],e},g.prototype.copyTo2d=function(e){var t=this.mat4,r=e.mat3;return r[0]=t[0],r[1]=t[1],r[2]=t[3],r[3]=t[4],r[4]=t[5],r[5]=t[7],r[6]=t[12],r[7]=t[13],r[8]=t[15],e},g.prototype.copyTo2dOr3d=function(e){return e instanceof v.Matrix2d?this.copyTo2d(e):this.copyTo(e)},g.prototype.copy=function(e,t,r){var i=this.mat4,n=1/i[15],a=i[12]*n,o=i[13]*n;if(e.a=(i[0]-i[3]*a)*n,e.b=(i[1]-i[3]*o)*n,e.c=(i[4]-i[7]*a)*n,e.d=(i[5]-i[7]*o)*n,e.tx=a,e.ty=o,2<=t){var s=e.a*e.d-e.b*e.c;r||(s=Math.abs(s)),t===v.AFFINE.POINT?(s=0<s?1:-1,e.a=s,e.b=0,e.c=0,e.d=s):t===v.AFFINE.AXIS_X?(s/=Math.sqrt(e.b*e.b+e.d*e.d),e.c=0,e.d=s):t===v.AFFINE.AXIS_Y&&(s/=Math.sqrt(e.a*e.a+e.c*e.c),e.a=s,e.c=0)}return e},g.prototype.copyFrom=function(e){var t=this.mat4;return t[0]=e.a,t[1]=e.b,t[2]=0,t[3]=0,t[4]=e.c,t[5]=e.d,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e.tx,t[13]=e.ty,t[14]=0,t[15]=1,this._dirtyId++,this},g.prototype.setToMultLegacy=function(e,t){var r=this.mat4,i=t.mat4,n=e.a,a=e.b,o=e.c,s=e.d,u=e.tx,l=e.ty,c=i[0],h=i[1],f=i[2],d=i[3];return r[0]=c*n+h*o+d*u,r[1]=c*a+h*s+d*l,r[2]=f,r[3]=d,c=i[4],h=i[5],f=i[6],d=i[7],r[4]=c*n+h*o+d*u,r[5]=c*a+h*s+d*l,r[6]=f,r[7]=d,c=i[8],h=i[9],f=i[10],d=i[11],r[8]=c*n+h*o+d*u,r[9]=c*a+h*s+d*l,r[10]=f,r[11]=d,c=i[12],h=i[13],f=i[14],d=i[15],r[12]=c*n+h*o+d*u,r[13]=c*a+h*s+d*l,r[14]=f,r[15]=d,this._dirtyId++,this},g.prototype.setToMultLegacy2=function(e,t){var r=this.mat4,i=e.mat4,n=i[0],a=i[1],o=i[2],s=i[3],u=i[4],l=i[5],c=i[6],h=i[7],f=t.a,d=t.b,p=t.c,m=t.d,g=t.tx,v=t.ty;return r[0]=f*n+d*u,r[1]=f*a+d*l,r[2]=f*o+d*c,r[3]=f*s+d*h,r[4]=p*n+m*u,r[5]=p*a+m*l,r[6]=p*o+m*c,r[7]=p*s+m*h,r[8]=i[8],r[9]=i[9],r[10]=i[10],r[11]=i[11],r[12]=g*n+v*u+i[12],r[13]=g*a+v*l+i[13],r[14]=g*o+v*c+i[14],r[15]=g*s+v*h+i[15],this._dirtyId++,this},g.prototype.setToMult=function(e,t){return g.glMatrixMat4Multiply(this.mat4,e.mat4,t.mat4),this._dirtyId++,this},g.prototype.prepend=function(e){e.mat4?this.setToMult(e,this):this.setToMultLegacy(e,this)},g.glMatrixMat4Invert=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],m=t[13],g=t[14],v=t[15],b=r*s-i*o,y=r*u-n*o,_=r*l-a*o,w=i*u-n*s,x=i*l-a*s,k=n*l-a*u,T=c*m-h*p,S=c*g-f*p,E=c*v-d*p,M=h*g-f*m,P=h*v-d*m,C=f*v-d*g,A=b*C-y*P+_*M+w*E-x*S+k*T;return A?(A=1/A,e[0]=(s*C-u*P+l*M)*A,e[1]=(n*P-i*C-a*M)*A,e[2]=(m*k-g*x+v*w)*A,e[3]=(f*x-h*k-d*w)*A,e[4]=(u*E-o*C-l*S)*A,e[5]=(r*C-n*E+a*S)*A,e[6]=(g*_-p*k-v*y)*A,e[7]=(c*k-f*_+d*y)*A,e[8]=(o*P-s*E+l*T)*A,e[9]=(i*E-r*P-a*T)*A,e[10]=(p*x-m*_+v*b)*A,e[11]=(h*_-c*x-d*b)*A,e[12]=(s*S-o*M-u*T)*A,e[13]=(r*M-i*S+n*T)*A,e[14]=(m*y-p*w-g*b)*A,e[15]=(c*w-h*y+f*b)*A,e):null},g.glMatrixMat4Multiply=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],g=t[13],v=t[14],b=t[15],y=r[0],_=r[1],w=r[2],x=r[3];return e[0]=y*i+_*s+w*h+x*m,e[1]=y*n+_*u+w*f+x*g,e[2]=y*a+_*l+w*d+x*v,e[3]=y*o+_*c+w*p+x*b,y=r[4],_=r[5],w=r[6],x=r[7],e[4]=y*i+_*s+w*h+x*m,e[5]=y*n+_*u+w*f+x*g,e[6]=y*a+_*l+w*d+x*v,e[7]=y*o+_*c+w*p+x*b,y=r[8],_=r[9],w=r[10],x=r[11],e[8]=y*i+_*s+w*h+x*m,e[9]=y*n+_*u+w*f+x*g,e[10]=y*a+_*l+w*d+x*v,e[11]=y*o+_*c+w*p+x*b,y=r[12],_=r[13],w=r[14],x=r[15],e[12]=y*i+_*s+w*h+x*m,e[13]=y*n+_*u+w*f+x*g,e[14]=y*a+_*l+w*d+x*v,e[15]=y*o+_*c+w*p+x*b,e},g.IDENTITY=new g,g.TEMP_MATRIX=new g,g}();v.Matrix3d=e}(pixi_projection||(pixi_projection={})),function(t){var e=function(){function e(e,t,r,i,n){this.cb=e,this.scope=t,this._quatUpdateId=-1,this._quatDirtyId=0,this._sign=1,this._x=r||0,this._y=i||0,this._z=n||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}return Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pitch",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yaw",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"roll",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t,r){var i=e||0,n=t||0,a=r||0;this._x===i&&this._y===n&&this._z===a||(this._x=i,this._y=n,this._z=a,this._quatDirtyId++,this.cb.call(this.scope))},e.prototype.copy=function(e){var t=e.x,r=e.y,i=e.z;this._x===t&&this._y===r&&this._z===i||(this._x=t,this._y=r,this._z=i,this._quatDirtyId++,this.cb.call(this.scope))},e.prototype.clone=function(){return new t.Euler(this._x,this._y,this._z)},e.prototype.update=function(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var e=Math.cos(this._x/2),t=Math.cos(this._y/2),r=Math.cos(this._z/2),i=this._sign,n=i*Math.sin(this._x/2),a=i*Math.sin(this._y/2),o=i*Math.sin(this._z/2),s=this.quaternion;return s[0]=n*t*r+e*a*o,s[1]=e*a*r-n*t*o,s[2]=e*t*o+n*a*r,s[3]=e*t*r-n*a*o,!0},e}();t.ObservableEuler=e}(pixi_projection||(pixi_projection={})),function(e){PIXI.Point.prototype.z=0,PIXI.Point.prototype.set=function(e,t,r){this.x=e||0,this.y=void 0===t?this.x:t||0,this.z=void 0===t?this.x:r||0},PIXI.Point.prototype.copy=function(e){this.set(e.x,e.y,e.z)},PIXI.ObservablePoint.prototype._z=0,PIXI.ObservablePoint.prototype.set=function(e,t,r){var i=e||0,n=void 0===t?i:t||0,a=void 0===t?i:r||0;this._x===i&&this._y===n&&this._z===a||(this._x=i,this._y=n,this._z=a,this.cb.call(this.scope))},Object.defineProperty(PIXI.ObservablePoint.prototype,"z",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),PIXI.ObservablePoint.prototype.copy=function(e){this._x===e.x&&this._y===e.y&&this._z===e.z||(this._x=e.x,this._y=e.y,this._z=e.z,this.cb.call(this.scope))};var t=function(n){function e(e,t,r){var i=n.call(this,e,t)||this;return i.z=r,i}return __extends(e,n),e}(PIXI.Point);e.Point3d=t,PIXI.Point3d=t}(pixi_projection||(pixi_projection={})),function(n){var o=new n.Matrix3d,e=function(i){function e(e,t){var r=i.call(this,e,t)||this;return r.cameraMatrix=null,r._cameraMode=!1,r.position=new PIXI.ObservablePoint(r.onChange,r,0,0),r.scale=new PIXI.ObservablePoint(r.onChange,r,1,1),r.euler=new n.ObservableEuler(r.onChange,r,0,0,0),r.pivot=new PIXI.ObservablePoint(r.onChange,r,0,0),r.local=new n.Matrix3d,r.world=new n.Matrix3d,r.local.cacheInverse=!0,r.world.cacheInverse=!0,r.position._z=0,r.scale._z=1,r.pivot._z=0,r}return __extends(e,i),Object.defineProperty(e.prototype,"cameraMode",{get:function(){return this._cameraMode},set:function(e){this._cameraMode!==e&&(this._cameraMode=e,this.euler._sign=this._cameraMode?-1:1,this.euler._quatDirtyId++,e&&(this.cameraMatrix=new n.Matrix3d))},enumerable:!0,configurable:!0}),e.prototype.onChange=function(){this._projID++},e.prototype.clear=function(){this.cameraMatrix&&this.cameraMatrix.identity(),this.position.set(0,0,0),this.scale.set(1,1,1),this.euler.set(0,0,0),this.pivot.set(0,0,0),i.prototype.clear.call(this)},e.prototype.updateLocalTransform=function(e){if(0!==this._projID){var t=this.local,r=this.euler,i=this.position,n=this.scale,a=this.pivot;if(r.update(),!this.cameraMode)return t.setToRotationTranslationScale(r.quaternion,i._x,i._y,i._z,n._x,n._y,n._z),t.translate(-a._x,-a._y,-a._z),void t.setToMultLegacy(e,t);t.setToMultLegacy(e,this.cameraMatrix),t.translate(a._x,a._y,a._z),t.scale(1/n._x,1/n._y,1/n._z),o.setToRotationTranslationScale(r.quaternion,0,0,0,1,1,1),t.setToMult(t,o),t.translate(-i._x,-i._y,-i._z),this.local._dirtyId++}else this.local.copyFrom(e)},e}(n.LinearProjection);n.Projection3d=e}(pixi_projection||(pixi_projection={})),function(s){var e=function(o){function e(e,t,r,i,n){var a=o.call(this,e,t,r,i,n)||this;return a.proj=new s.Projection3d(a.transform),a.pluginName="mesh2d",a}return __extends(e,o),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=s.TRANSFORM_STEP.ALL),s.container3dToLocal.call(this,e,t,r,i,n)},e.prototype.isFrontFace=function(e){return s.container3dIsFrontFace.call(this,e)},e.prototype.getDepth=function(e){return s.container3dGetDepth.call(this,e)},Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.mesh.Mesh);s.Mesh3d=e}(pixi_projection||(pixi_projection={})),function(e){var t={worldTransform:{get:e.container3dWorldTransform,enumerable:!0,configurable:!0},position3d:{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)}},scale3d:{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)}},pivot3d:{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)}},euler:{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)}}};function r(){this.proj||(this.proj=new e.Projection3d(this.transform),this.toLocal=e.Container3d.prototype.toLocal,this.isFrontFace=e.Container3d.prototype.isFrontFace,this.getDepth=e.Container3d.prototype.getDepth,Object.defineProperties(this,t))}PIXI.Container.prototype.convertTo3d=r,PIXI.Sprite.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=e.Sprite3d.prototype.calculateVertices,this.calculateTrimmedVertices=e.Sprite3d.prototype.calculateTrimmedVertices,this._calculateBounds=e.Sprite3d.prototype._calculateBounds,this.containsPoint=e.Sprite3d.prototype.containsPoint,this.pluginName="sprite2d",this.vertexData=new Float32Array(12),r.call(this))},PIXI.mesh.Mesh.prototype.convertTo3d=function(){this.proj||(this.pluginName="mesh2d",r.call(this))},PIXI.Container.prototype.convertSubtreeTo3d=function(){this.convertTo3d();for(var e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo3d()}}(pixi_projection||(pixi_projection={})),function(a){var e=function(p){function e(e){var t=p.call(this,e)||this;return t.culledByFrustrum=!1,t.trimmedCulledByFrustrum=!1,t.proj=new a.Projection3d(t.transform),t.pluginName="sprite2d",t.vertexData=new Float32Array(12),t}return __extends(e,p),e.prototype._calculateBounds=function(){this.calculateVertices(),this.culledByFrustrum||(this.calculateTrimmedVertices(),this.trimmedCulledByFrustrum||this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.calculateVertices=function(){if(this.proj._affine)return 8!=this.vertexData.length&&(this.vertexData=new Float32Array(8)),void p.prototype.calculateVertices.call(this);12!=this.vertexData.length&&(this.vertexData=new Float32Array(12));var e=this.transform._worldID,t=this._texture._updateID;if(this._transformID!==e||this._textureID!==t){this._transformID=e,this._textureID=t;var r=this._texture,i=this.proj.world.mat4,n=this.vertexData,a=r.trim,o=r.orig,s=this._anchor,u=0,l=0,c=0,h=0;c=a?(u=(l=a.x-s._x*o.width)+a.width,(h=a.y-s._y*o.height)+a.height):(u=(l=-s._x*o.width)+o.width,(h=-s._y*o.height)+o.height);var f,d=!1;n[0]=i[0]*l+i[4]*h+i[12],n[1]=i[1]*l+i[5]*h+i[13],f=i[2]*l+i[6]*h+i[14],n[2]=i[3]*l+i[7]*h+i[15],d=d||f<0,n[3]=i[0]*u+i[4]*h+i[12],n[4]=i[1]*u+i[5]*h+i[13],f=i[2]*u+i[6]*h+i[14],n[5]=i[3]*u+i[7]*h+i[15],d=d||f<0,n[6]=i[0]*u+i[4]*c+i[12],n[7]=i[1]*u+i[5]*c+i[13],f=i[2]*u+i[6]*c+i[14],n[8]=i[3]*u+i[7]*c+i[15],d=d||f<0,n[9]=i[0]*l+i[4]*c+i[12],n[10]=i[1]*l+i[5]*c+i[13],f=i[2]*l+i[6]*c+i[14],n[11]=i[3]*l+i[7]*c+i[15],d=d||f<0,this.culledByFrustrum=d}},e.prototype.calculateTrimmedVertices=function(){if(this.proj._affine)p.prototype.calculateTrimmedVertices.call(this);else{var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var r=this._texture,i=this.vertexTrimmedData,n=r.orig,a=this._anchor,o=this.proj.world.mat4,s=-a._x*n.width,u=s+n.width,l=-a._y*n.height,c=l+n.height,h=!1,f=1/(o[3]*s+o[7]*l+o[15]);i[0]=f*(o[0]*s+o[4]*l+o[12]),i[1]=f*(o[1]*s+o[5]*l+o[13]);var d=o[2]*s+o[6]*l+o[14];h=h||d<0,f=1/(o[3]*u+o[7]*l+o[15]),i[2]=f*(o[0]*u+o[4]*l+o[12]),i[3]=f*(o[1]*u+o[5]*l+o[13]),d=o[2]*u+o[6]*l+o[14],h=h||d<0,f=1/(o[3]*u+o[7]*c+o[15]),i[4]=f*(o[0]*u+o[4]*c+o[12]),i[5]=f*(o[1]*u+o[5]*c+o[13]),d=o[2]*u+o[6]*c+o[14],h=h||d<0,f=1/(o[3]*s+o[7]*c+o[15]),i[6]=f*(o[0]*s+o[4]*c+o[12]),i[7]=f*(o[1]*s+o[5]*c+o[13]),d=o[2]*s+o[6]*c+o[14],h=h||d<0,this.trimmedCulledByFrustrum=h}},e.prototype._renderWebGL=function(e){this.calculateVertices(),this.culledByFrustrum||(e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},e.prototype.containsPoint=function(e){return!this.culledByFrustrum&&p.prototype.containsPoint.call(this,e)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=a.TRANSFORM_STEP.ALL),a.container3dToLocal.call(this,e,t,r,i,n)},e.prototype.isFrontFace=function(e){return a.container3dIsFrontFace.call(this,e)},e.prototype.getDepth=function(e){return a.container3dGetDepth.call(this,e)},Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.Sprite);a.Sprite3d=e}(pixi_projection||(pixi_projection={})),function(a){var e=function(n){function e(e,t,r){var i=n.call(this,e,t,r)||this;return i.proj=new a.Projection3d(i.transform),i.pluginName="sprite2d",i.vertexData=new Float32Array(12),i}return __extends(e,n),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,i,n){return void 0===n&&(n=a.TRANSFORM_STEP.ALL),a.container3dToLocal.call(this,e,t,r,i,n)},e.prototype.isFrontFace=function(e){return a.container3dIsFrontFace.call(this,e)},e.prototype.getDepth=function(e){return a.container3dGetDepth.call(this,e)},Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.Text);(a.Text3d=e).prototype.calculateVertices=a.Sprite3d.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=a.Sprite3d.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=a.Sprite3d.prototype._calculateBounds,e.prototype.containsPoint=a.Sprite3d.prototype.containsPoint,e.prototype._renderWebGL=a.Sprite3d.prototype._renderWebGL}(pixi_projection||(pixi_projection={}));var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var T,w,x,k,v,r,b,S,y,_,d,p,g,e,t,u,l,i;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(i,c,y){var m=function(e){var t,r=[],i=e.length;for(t=0;t!==i;r.push(e[t++]));return r},g=function(e,t,r){var i,n,a=e.cycle;for(i in a)n=a[i],e[i]="function"==typeof n?n(r,t[r],t):n[r%n.length];delete e.cycle},v=function(e){if("function"==typeof e)return e;var p="object"==typeof e?e:{each:e},m=p.ease,g=p.from||0,v=p.base||0,b={},y=isNaN(g),_=p.axis,w={center:.5,end:1}[g]||0;return function(e,t,r){var i,n,a,o,s,u,l,c,h,f=(r||p).length,d=b[f];if(!d){if(!(h="auto"===p.grid?0:(p.grid||[1/0])[0])){for(l=-1/0;l<(l=r[h++].getBoundingClientRect().left)&&h<f;);h--}for(d=b[f]=[],i=y?Math.min(h,f)*w-.5:g%h,n=y?f*w/h-.5:g/h|0,c=1/(l=0),u=0;u<f;u++)a=u%h-i,o=n-(u/h|0),d[u]=s=_?Math.abs("y"===_?o:a):Math.sqrt(a*a+o*o),l<s&&(l=s),s<c&&(c=s);d.max=l-c,d.min=c,d.v=f=p.amount||p.each*(f<h?f-1:_?"y"===_?f/h:h:Math.max(h,f/h))||0,d.b=f<0?v-f:v}return f=(d[e]-d.min)/d.max,d.b+(m?m.getRatio(f):f)*d.v}},b=function(e,t,r){y.call(this,e,t,r),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=b.prototype.render},_=1e-8,w=y._internals,x=w.isSelector,k=w.isArray,e=b.prototype=y.to({},.1,{}),T=[];b.version="2.1.3",e.constructor=b,e.kill()._gc=!1,b.killTweensOf=b.killDelayedCallsTo=y.killTweensOf,b.getTweensOf=y.getTweensOf,b.lagSmoothing=y.lagSmoothing,b.ticker=y.ticker,b.render=y.render,b.distribute=v,e.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),y.prototype.invalidate.call(this)},e.updateTo=function(e,t){var r,i=this,n=i.ratio,a=i.vars.immediateRender||e.immediateRender;for(r in t&&i._startTime<i._timeline._time&&(i._startTime=i._timeline._time,i._uncache(!1),i._gc?i._enabled(!0,!1):i._timeline.insert(i,i._startTime-i._delay)),e)i.vars[r]=e[r];if(i._initted||a)if(t)i._initted=!1,a&&i.render(0,!0,!0);else if(i._gc&&i._enabled(!0,!1),i._notifyPluginsOfEnabled&&i._firstPT&&y._onPluginEvent("_onDisable",i),.998<i._time/i._duration){var o=i._totalTime;i.render(0,!0,!1),i._initted=!1,i.render(o,!0,!1)}else if(i._initted=!1,i._init(),0<i._time||a)for(var s,u=1/(1-n),l=i._firstPT;l;)s=l.s+l.c,l.c*=u,l.s=s-l.c,l=l._next;return i},e.render=function(e,t,r){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var i,n,a,o,s,u,l,c,h,f=this,d=f._dirty?f.totalDuration():f._totalDuration,p=f._time,m=f._totalTime,g=f._cycle,v=f._duration,b=f._rawPrevTime;if(d-_<=e&&0<=e?(f._totalTime=d,f._cycle=f._repeat,f._yoyo&&0!=(1&f._cycle)?(f._time=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0):(f._time=v,f.ratio=f._ease._calcEnd?f._ease.getRatio(1):1),f._reversed||(i=!0,n="onComplete",r=r||f._timeline.autoRemoveChildren),0===v&&(f._initted||!f.vars.lazy||r)&&(f._startTime===f._timeline._duration&&(e=0),(b<0||e<=0&&-_<=e||b===_&&"isPause"!==f.data)&&b!==e&&(r=!0,_<b&&(n="onReverseComplete")),f._rawPrevTime=c=!t||e||b===e?e:_)):e<_?(f._totalTime=f._time=f._cycle=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0,(0!==m||0===v&&0<b)&&(n="onReverseComplete",i=f._reversed),-_<e?e=0:e<0&&(f._active=!1,0===v&&(f._initted||!f.vars.lazy||r)&&(0<=b&&(r=!0),f._rawPrevTime=c=!t||e||b===e?e:_)),f._initted||(r=!0)):(f._totalTime=f._time=e,0!==f._repeat&&(o=v+f._repeatDelay,f._cycle=f._totalTime/o>>0,0!==f._cycle&&f._cycle===f._totalTime/o&&m<=e&&f._cycle--,f._time=f._totalTime-f._cycle*o,f._yoyo&&0!=(1&f._cycle)&&(f._time=v-f._time,(h=f._yoyoEase||f.vars.yoyoEase)&&(f._yoyoEase||(!0!==h||f._initted?f._yoyoEase=h=!0===h?f._ease:h instanceof Ease?h:Ease.map[h]:(h=f.vars.ease,f._yoyoEase=h=h?h instanceof Ease?h:"function"==typeof h?new Ease(h,f.vars.easeParams):Ease.map[h]||y.defaultEase:y.defaultEase)),f.ratio=h?1-h.getRatio((v-f._time)/v):0)),f._time>v?f._time=v:f._time<0&&(f._time=0)),f._easeType&&!h?(s=f._time/v,(1===(u=f._easeType)||3===u&&.5<=s)&&(s=1-s),3===u&&(s*=2),1===(l=f._easePower)?s*=s:2===l?s*=s*s:3===l?s*=s*s*s:4===l&&(s*=s*s*s*s),f.ratio=1===u?1-s:2===u?s:f._time/v<.5?s/2:1-s/2):h||(f.ratio=f._ease.getRatio(f._time/v))),p!==f._time||r||g!==f._cycle){if(!f._initted){if(f._init(),!f._initted||f._gc)return;if(!r&&f._firstPT&&(!1!==f.vars.lazy&&f._duration||f.vars.lazy&&!f._duration))return f._time=p,f._totalTime=m,f._rawPrevTime=b,f._cycle=g,w.lazyTweens.push(f),void(f._lazy=[e,t]);!f._time||i||h?i&&this._ease._calcEnd&&!h&&(f.ratio=f._ease.getRatio(0===f._time?0:1)):f.ratio=f._ease.getRatio(f._time/v)}for(!1!==f._lazy&&(f._lazy=!1),f._active||!f._paused&&f._time!==p&&0<=e&&(f._active=!0),0===m&&(2===f._initted&&0<e&&f._init(),f._startAt&&(0<=e?f._startAt.render(e,!0,r):n||(n="_dummyGS")),f.vars.onStart&&(0===f._totalTime&&0!==v||t||f._callback("onStart"))),a=f._firstPT;a;)a.f?a.t[a.p](a.c*f.ratio+a.s):a.t[a.p]=a.c*f.ratio+a.s,a=a._next;f._onUpdate&&(e<0&&f._startAt&&f._startTime&&f._startAt.render(e,!0,r),t||(f._totalTime!==m||n)&&f._callback("onUpdate")),f._cycle!==g&&(t||f._gc||f.vars.onRepeat&&f._callback("onRepeat")),n&&(f._gc&&!r||(e<0&&f._startAt&&!f._onUpdate&&f._startTime&&f._startAt.render(e,!0,r),i&&(f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!t&&f.vars[n]&&f._callback(n),0===v&&f._rawPrevTime===_&&c!==_&&(f._rawPrevTime=0)))}else m!==f._totalTime&&f._onUpdate&&(t||f._callback("onUpdate"))},b.to=function(e,t,r){return new b(e,t,r)},b.from=function(e,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new b(e,t,r)},b.fromTo=function(e,t,r,i){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,new b(e,t,i)},b.staggerTo=b.allTo=function(e,t,r,i,n,a,o){var s,u,l,c,h=[],f=v(r.stagger||i),d=r.cycle,p=(r.startAt||T).cycle;for(k(e)||("string"==typeof e&&(e=y.selector(e)||e),x(e)&&(e=m(e))),s=(e=e||[]).length-1,l=0;l<=s;l++){for(c in u={},r)u[c]=r[c];if(d&&(g(u,e,l),null!=u.duration&&(t=u.duration,delete u.duration)),p){for(c in p=u.startAt={},r.startAt)p[c]=r.startAt[c];g(u.startAt,e,l)}u.delay=f(l,e[l],e)+(u.delay||0),l===s&&n&&(u.onComplete=function(){r.onComplete&&r.onComplete.apply(r.onCompleteScope||this,arguments),n.apply(o||r.callbackScope||this,a||T)}),h[l]=new b(e[l],t,u)}return h},b.staggerFrom=b.allFrom=function(e,t,r,i,n,a,o){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,b.staggerTo(e,t,r,i,n,a,o)},b.staggerFromTo=b.allFromTo=function(e,t,r,i,n,a,o,s){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,b.staggerTo(e,t,i,n,a,o,s)},b.delayedCall=function(e,t,r,i,n){return new b(t,0,{delay:e,onComplete:t,onCompleteParams:r,callbackScope:i,onReverseComplete:t,onReverseCompleteParams:r,immediateRender:!1,useFrames:n,overwrite:0})},b.set=function(e,t){return new b(e,0,t)},b.isTweening=function(e){return 0<y.getTweensOf(e,!0).length};var a=function(e,t){for(var r=[],i=0,n=e._first;n;)n instanceof y?r[i++]=n:(t&&(r[i++]=n),i=(r=r.concat(a(n,t))).length),n=n._next;return r},h=b.getAllTweens=function(e){return a(i._rootTimeline,e).concat(a(i._rootFramesTimeline,e))};b.killAll=function(e,t,r,i){null==t&&(t=!0),null==r&&(r=!0);var n,a,o,s=h(0!=i),u=s.length,l=t&&r&&i;for(o=0;o<u;o++)a=s[o],(l||a instanceof c||(n=a.target===a.vars.onComplete)&&r||t&&!n)&&(e?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},b.killChildTweensOf=function(e,t){if(null!=e){var r,i,n,a,o,s=w.tweenLookup;if("string"==typeof e&&(e=y.selector(e)||e),x(e)&&(e=m(e)),k(e))for(a=e.length;-1<--a;)b.killChildTweensOf(e[a],t);else{for(n in r=[],s)for(i=s[n].target.parentNode;i;)i===e&&(r=r.concat(s[n].tweens)),i=i.parentNode;for(o=r.length,a=0;a<o;a++)t&&r[a].totalTime(r[a].totalDuration()),r[a]._enabled(!1,!1)}}};var n=function(e,t,r,i){t=!1!==t,r=!1!==r;for(var n,a,o=h(i=!1!==i),s=t&&r&&i,u=o.length;-1<--u;)a=o[u],(s||a instanceof c||(n=a.target===a.vars.onComplete)&&r||t&&!n)&&a.paused(e)};return b.pauseAll=function(e,t,r){n(!0,e,t,r)},b.resumeAll=function(e,t,r){n(!1,e,t,r)},b.globalTimeScale=function(e){var t=i._rootTimeline,r=y.ticker.time;return arguments.length?(e=e||_,t._startTime=r-(r-t._startTime)*t._timeScale/e,t=i._rootFramesTimeline,r=y.ticker.frame,t._startTime=r-(r-t._startTime)*t._timeScale/e,t._timeScale=i._rootTimeline._timeScale=e,e):t._timeScale},e.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this.duration()?this._time/this._duration:this.ratio},e.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},e.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var r=this._duration,i=this._cycle,n=i*(r+this._repeatDelay);return r<e&&(e=r),this.totalTime(this._yoyo&&1&i?r-e+n:this._repeat?e+n:e,t)},e.duration=function(e){return arguments.length?i.prototype.duration.call(this,e):this._duration},e.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},e.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},e.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},e.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},b},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(h,f,p){var m=function(e){f.call(this,e);var t,r,i=this.vars;for(r in this._labels={},this.autoRemoveChildren=!!i.autoRemoveChildren,this.smoothChildTiming=!!i.smoothChildTiming,this._sortChildren=!0,this._onUpdate=i.onUpdate,i)t=i[r],d(t)&&-1!==t.join("").indexOf("{self}")&&(i[r]=this._swapSelfInParams(t));d(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=p._internals,t=m._internals={},g=e.isSelector,d=e.isArray,v=e.lazyTweens,b=e.lazyRender,o=_gsScope._gsDefine.globals,y=function(e){var t,r={};for(t in e)r[t]=e[t];return r},_=function(e,t,r){var i,n,a=e.cycle;for(i in a)n=a[i],e[i]="function"==typeof n?n(r,t[r],t):n[r%n.length];delete e.cycle},a=t.pauseCallback=function(){},l=function(e,t,r,i){var n="immediateRender";return n in t||(t[n]=!(r&&!1===r[n]||i)),t},w=function(e){if("function"==typeof e)return e;var p="object"==typeof e?e:{each:e},m=p.ease,g=p.from||0,v=p.base||0,b={},y=isNaN(g),_=p.axis,w={center:.5,end:1}[g]||0;return function(e,t,r){var i,n,a,o,s,u,l,c,h,f=(r||p).length,d=b[f];if(!d){if(!(h="auto"===p.grid?0:(p.grid||[1/0])[0])){for(l=-1/0;l<(l=r[h++].getBoundingClientRect().left)&&h<f;);h--}for(d=b[f]=[],i=y?Math.min(h,f)*w-.5:g%h,n=y?f*w/h-.5:g/h|0,c=1/(l=0),u=0;u<f;u++)a=u%h-i,o=n-(u/h|0),d[u]=s=_?Math.abs("y"===_?o:a):Math.sqrt(a*a+o*o),l<s&&(l=s),s<c&&(c=s);d.max=l-c,d.min=c,d.v=f=p.amount||p.each*(f<h?f-1:_?"y"===_?f/h:h:Math.max(h,f/h))||0,d.b=f<0?v-f:v}return f=(d[e]-d.min)/d.max,d.b+(m?m.getRatio(f):f)*d.v}},r=m.prototype=new f;return m.version="2.1.3",m.distribute=w,r.constructor=m,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(e,t,r,i){var n=r.repeat&&o.TweenMax||p;return t?this.add(new n(e,t,r),i):this.set(e,r,i)},r.from=function(e,t,r,i){return this.add((r.repeat&&o.TweenMax||p).from(e,t,l(0,r)),i)},r.fromTo=function(e,t,r,i,n){var a=i.repeat&&o.TweenMax||p;return i=l(0,i,r),t?this.add(a.fromTo(e,t,r,i),n):this.set(e,i,n)},r.staggerTo=function(e,t,r,i,n,a,o,s){var u,l,c=new m({onComplete:a,onCompleteParams:o,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),h=w(r.stagger||i),f=r.startAt,d=r.cycle;for("string"==typeof e&&(e=p.selector(e)||e),g(e=e||[])&&(e=function(e){var t,r=[],i=e.length;for(t=0;t!==i;r.push(e[t++]));return r}(e)),l=0;l<e.length;l++)u=y(r),f&&(u.startAt=y(f),f.cycle&&_(u.startAt,e,l)),d&&(_(u,e,l),null!=u.duration&&(t=u.duration,delete u.duration)),c.to(e[l],t,u,h(l,e[l],e));return this.add(c,n)},r.staggerFrom=function(e,t,r,i,n,a,o,s){return r.runBackwards=!0,this.staggerTo(e,t,l(0,r),i,n,a,o,s)},r.staggerFromTo=function(e,t,r,i,n,a,o,s,u){return i.startAt=r,this.staggerTo(e,t,l(0,i,r),n,a,o,s,u)},r.call=function(e,t,r,i){return this.add(p.delayedCall(0,e,t,r),i)},r.set=function(e,t,r){return this.add(new p(e,0,l(0,t,null,!0)),r)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,i,n,a,o=new m(e),s=o._timeline;for(null==t&&(t=!0),s._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=s._time,n=s._first;n;)a=n._next,t&&n instanceof p&&n.target===n.vars.onComplete||((i=n._startTime-n._delay)<0&&(r=1),o.add(n,i)),n=a;return s.add(o,0),r&&o.totalDuration(),o},r.add=function(e,t,r,i){var n,a,o,s,u,l,c=this;if("number"!=typeof t&&(t=c._parseTimeOrLabel(t,0,!0,e)),!(e instanceof h)){if(e instanceof Array||e&&e.push&&d(e)){for(r=r||"normal",i=i||0,n=t,a=e.length,o=0;o<a;o++)d(s=e[o])&&(s=new m({tweens:s})),c.add(s,n),"string"!=typeof s&&"function"!=typeof s&&("sequence"===r?n=s._startTime+s.totalDuration()/s._timeScale:"start"===r&&(s._startTime-=s.delay())),n+=i;return c._uncache(!0)}if("string"==typeof e)return c.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=p.delayedCall(0,e)}if(f.prototype.add.call(c,e,t),(e._time||!e._duration&&e._initted)&&(n=(c.rawTime()-e._startTime)*e._timeScale,(!e._duration||1e-5<Math.abs(Math.max(0,Math.min(e.totalDuration(),n)))-e._totalTime)&&e.render(n,!1,!1)),(c._gc||c._time===c._duration)&&!c._paused&&c._duration<c.duration())for(l=(u=c).rawTime()>e._startTime;u._timeline;)l&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return c},r.remove=function(e){if(e instanceof h){this._remove(e,!1);var t=e._timeline=e.vars.useFrames?h._rootFramesTimeline:h._rootTimeline;return e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&d(e)){for(var r=e.length;-1<--r;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},r._remove=function(e,t){return f.prototype._remove.call(this,e,t),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},r.insert=r.insertMultiple=function(e,t,r,i){return this.add(e,t||0,r,i)},r.appendMultiple=function(e,t,r,i){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),r,i)},r.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},r.addPause=function(e,t,r,i){var n=p.delayedCall(0,a,r,i||this);return n.vars.onComplete=n.vars.onReverseComplete=t,n.data="isPause",this._hasPause=!0,this.add(n,e)},r.removeLabel=function(e){return delete this._labels[e],this},r.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},r._parseTimeOrLabel=function(e,t,r,i){var n,a;if(i instanceof h&&i.timeline===this)this.remove(i);else if(i&&(i instanceof Array||i.push&&d(i)))for(a=i.length;-1<--a;)i[a]instanceof h&&i[a].timeline===this&&this.remove(i[a]);if(n="number"!=typeof e||t?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof t)return this._parseTimeOrLabel(t,r&&"number"==typeof e&&null==this._labels[t]?e-n:0,r);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=n);else{if(-1===(a=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=n+t:t:this._labels[e]+t;t=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=1<a?this._parseTimeOrLabel(e.substr(0,a-1),0,r):n}return Number(e)+t},r.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(e,t){return this.play(e,t)},r.gotoAndStop=function(e,t){return this.pause(e,t)},r.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,a,o,s,u,l,c,h=this,f=h._time,d=h._dirty?h.totalDuration():h._totalDuration,p=h._startTime,m=h._timeScale,g=h._paused;if(f!==h._time&&(e+=h._time-f),h._hasPause&&!h._forcingPlayhead&&!t){if(f<e)for(i=h._first;i&&i._startTime<=e&&!u;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===h._rawPrevTime||(u=i),i=i._next;else for(i=h._last;i&&i._startTime>=e&&!u;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(u=i),i=i._prev;u&&(h._time=h._totalTime=e=u._startTime,c=h._startTime+(h._reversed?h._duration-e:e)/h._timeScale)}if(d-1e-8<=e&&0<=e)h._totalTime=h._time=d,h._reversed||h._hasPausedChild()||(n=!0,o="onComplete",s=!!h._timeline.autoRemoveChildren,0===h._duration&&(e<=0&&-1e-8<=e||h._rawPrevTime<0||1e-8===h._rawPrevTime)&&h._rawPrevTime!==e&&h._first&&(s=!0,1e-8<h._rawPrevTime&&(o="onReverseComplete"))),h._rawPrevTime=h._duration||!t||e||h._rawPrevTime===e?e:1e-8,e=d+1e-4;else if(e<1e-8)if(h._totalTime=h._time=0,-1e-8<e&&(e=0),(0!==f||0===h._duration&&1e-8!==h._rawPrevTime&&(0<h._rawPrevTime||e<0&&0<=h._rawPrevTime))&&(o="onReverseComplete",n=h._reversed),e<0)h._active=!1,h._timeline.autoRemoveChildren&&h._reversed?(s=n=!0,o="onReverseComplete"):0<=h._rawPrevTime&&h._first&&(s=!0),h._rawPrevTime=e;else{if(h._rawPrevTime=h._duration||!t||e||h._rawPrevTime===e?e:1e-8,0===e&&n)for(i=h._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,h._initted||(s=!0)}else h._totalTime=h._time=h._rawPrevTime=e;if(h._time!==f&&h._first||r||s||u){if(h._initted||(h._initted=!0),h._active||!h._paused&&h._time!==f&&0<e&&(h._active=!0),0===f&&h.vars.onStart&&(0===h._time&&h._duration||t||h._callback("onStart")),f<=(l=h._time))for(i=h._first;i&&(a=i._next,l===h._time&&(!h._paused||g));)(i._active||i._startTime<=l&&!i._paused&&!i._gc)&&(u===i&&(h.pause(),h._pauseTime=c),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)),i=a;else for(i=h._last;i&&(a=i._prev,l===h._time&&(!h._paused||g));){if(i._active||i._startTime<=f&&!i._paused&&!i._gc){if(u===i){for(u=i._prev;u&&u.endTime()>h._time;)u.render(u._reversed?u.totalDuration()-(e-u._startTime)*u._timeScale:(e-u._startTime)*u._timeScale,t,r),u=u._prev;u=null,h.pause(),h._pauseTime=c}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)}i=a}h._onUpdate&&(t||(v.length&&b(),h._callback("onUpdate"))),o&&(h._gc||p!==h._startTime&&m===h._timeScale||(0===h._time||d>=h.totalDuration())&&(n&&(v.length&&b(),h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[o]&&h._callback(o)))}},r._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},r.getChildren=function(e,t,r,i){i=i||-9999999999;for(var n=[],a=this._first,o=0;a;)a._startTime<i||(a instanceof p?!1!==t&&(n[o++]=a):(!1!==r&&(n[o++]=a),!1!==e&&(o=(n=n.concat(a.getChildren(!0,t,r))).length))),a=a._next;return n},r.getTweensOf=function(e,t){var r,i,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),i=(r=p.getTweensOf(e)).length;-1<--i;)(r[i].timeline===this||t&&this._contains(r[i]))&&(a[o++]=r[i]);return n&&this._enabled(!1,!0),a},r.recent=function(){return this._recent},r._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(e,t,r){r=r||0;for(var i,n=this._first,a=this._labels;n;)n._startTime>=r&&(n._startTime+=e),n=n._next;if(t)for(i in a)a[i]>=r&&(a[i]+=e);return this._uncache(!0)},r._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var r=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),i=r.length,n=!1;-1<--i;)r[i]._kill(e,t)&&(n=!0);return n},r.clear=function(e){var t=this.getChildren(!1,!0,!0),r=t.length;for(this._time=this._totalTime=0;-1<--r;)t[r]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return h.prototype.invalidate.call(this)},r._enabled=function(e,t){if(e===this._gc)for(var r=this._first;r;)r._enabled(e,!0),r=r._next;return f.prototype._enabled.call(this,e,t)},r.totalTime=function(e,t,r){this._forcingPlayhead=!0;var i=h.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},r.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,r,i=0,n=this,a=n._last,o=999999999999;a;)t=a._prev,a._dirty&&a.totalDuration(),a._startTime>o&&n._sortChildren&&!a._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(a,a._startTime-a._delay),n._calculatingDuration=0):o=a._startTime,a._startTime<0&&!a._paused&&(i-=a._startTime,n._timeline.smoothChildTiming&&(n._startTime+=a._startTime/n._timeScale,n._time-=a._startTime,n._totalTime-=a._startTime,n._rawPrevTime-=a._startTime),n.shiftChildren(-a._startTime,!1,-9999999999),o=0),i<(r=a._startTime+a._totalDuration/a._timeScale)&&(i=r),a=t;n._duration=n._totalDuration=i,n._dirty=!1}return this._totalDuration},r.paused=function(e){if(!1===e&&this._paused)for(var t=this._first;t;)t._startTime===this._time&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return h.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===h._rootFramesTimeline},r.rawTime=function(e){return e&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},m},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,s,e){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},P=1e-8,i=s._internals,C=i.lazyTweens,A=i.lazyRender,u=_gsScope._gsDefine.globals,l=new e(null,null,1,0),n=r.prototype=new t;return n.constructor=r,n.kill()._gc=!1,r.version="2.1.3",n.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},n.addCallback=function(e,t,r,i){return this.add(s.delayedCall(0,e,r,i),t)},n.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var r=this.getTweensOf(e,!1),i=r.length,n=this._parseTimeOrLabel(t);-1<--i;)r[i]._startTime===n&&r[i]._enabled(!1,!1);return this},n.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},n.tweenTo=function(e,t){t=t||{};var r,i,n,a={ease:l,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=t.repeat&&u.TweenMax||s;for(i in t)a[i]=t[i];return a.time=this._parseTimeOrLabel(e),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,n=new o(this,r,a),a.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||r!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),t.onStart&&t.onStart.apply(t.onStartScope||t.callbackScope||n,t.onStartParams||[])},n},n.tweenFromTo=function(e,t,r){r=r||{},e=this._parseTimeOrLabel(e),r.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},r.immediateRender=!1!==r.immediateRender;var i=this.tweenTo(t,r);return i.isFromTo=1,i.duration(Math.abs(i.vars.time-e)/this._timeScale||.001)},n.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,a,o,s,u,l,c,h,f=this,d=f._time,p=f._dirty?f.totalDuration():f._totalDuration,m=f._duration,g=f._totalTime,v=f._startTime,b=f._timeScale,y=f._rawPrevTime,_=f._paused,w=f._cycle;if(d!==f._time&&(e+=f._time-d),p-P<=e&&0<=e)f._locked||(f._totalTime=p,f._cycle=f._repeat),f._reversed||f._hasPausedChild()||(n=!0,o="onComplete",s=!!f._timeline.autoRemoveChildren,0===f._duration&&(e<=0&&-P<=e||y<0||y===P)&&y!==e&&f._first&&(s=!0,P<y&&(o="onReverseComplete"))),f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:P,f._yoyo&&1&f._cycle?f._time=e=0:e=(f._time=m)+1e-4;else if(e<P)if(f._locked||(f._totalTime=f._cycle=0),f._time=0,-P<e&&(e=0),(0!==d||0===m&&y!==P&&(0<y||e<0&&0<=y)&&!f._locked)&&(o="onReverseComplete",n=f._reversed),e<0)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(s=n=!0,o="onReverseComplete"):0<=y&&f._first&&(s=!0),f._rawPrevTime=e;else{if(f._rawPrevTime=m||!t||e||f._rawPrevTime===e?e:P,0===e&&n)for(i=f._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,f._initted||(s=!0)}else 0===m&&y<0&&(s=!0),f._time=f._rawPrevTime=e,f._locked||(f._totalTime=e,0!==f._repeat&&(u=m+f._repeatDelay,f._cycle=f._totalTime/u>>0,f._cycle&&f._cycle===f._totalTime/u&&g<=e&&f._cycle--,f._time=f._totalTime-f._cycle*u,f._yoyo&&1&f._cycle&&(f._time=m-f._time),f._time>m?e=(f._time=m)+1e-4:f._time<0?f._time=e=0:e=f._time));if(f._hasPause&&!f._forcingPlayhead&&!t){if(d<(e=f._time)||f._repeat&&w!==f._cycle)for(i=f._first;i&&i._startTime<=e&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===f._rawPrevTime||(l=i),i=i._next;else for(i=f._last;i&&i._startTime>=e&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(h=f._startTime+(f._reversed?f._duration-l._startTime:l._startTime)/f._timeScale,l._startTime<m&&(f._time=f._rawPrevTime=e=l._startTime,f._totalTime=e+f._cycle*(f._totalDuration+f._repeatDelay)))}if(f._cycle!==w&&!f._locked){var x=f._yoyo&&0!=(1&w),k=x===(f._yoyo&&0!=(1&f._cycle)),T=f._totalTime,S=f._cycle,E=f._rawPrevTime,M=f._time;if(f._totalTime=w*m,f._cycle<w?x=!x:f._totalTime+=m,f._time=d,f._rawPrevTime=0===m?y-1e-4:y,f._cycle=w,f._locked=!0,d=x?0:m,f.render(d,t,0===m),t||f._gc||f.vars.onRepeat&&(f._cycle=S,f._locked=!1,f._callback("onRepeat")),d!==f._time)return;if(k&&(f._cycle=w,f._locked=!0,d=x?m+1e-4:-1e-4,f.render(d,!0,!1)),f._locked=!1,f._paused&&!_)return;f._time=M,f._totalTime=T,f._cycle=S,f._rawPrevTime=E}if(f._time!==d&&f._first||r||s||l){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._totalTime!==g&&0<e&&(f._active=!0),0===g&&f.vars.onStart&&(0===f._totalTime&&f._totalDuration||t||f._callback("onStart")),d<=(c=f._time))for(i=f._first;i&&(a=i._next,c===f._time&&(!f._paused||_));)(i._active||i._startTime<=f._time&&!i._paused&&!i._gc)&&(l===i&&(f.pause(),f._pauseTime=h),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)),i=a;else for(i=f._last;i&&(a=i._prev,c===f._time&&(!f._paused||_));){if(i._active||i._startTime<=d&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>f._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=null,f.pause(),f._pauseTime=h}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)}i=a}f._onUpdate&&(t||(C.length&&A(),f._callback("onUpdate"))),o&&(f._locked||f._gc||v!==f._startTime&&b===f._timeScale||(0===f._time||p>=f.totalDuration())&&(n&&(C.length&&A(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!t&&f.vars[o]&&f._callback(o)))}else g!==f._totalTime&&f._onUpdate&&(t||f._callback("onUpdate"))},n.getActive=function(e,t,r){var i,n,a=[],o=this.getChildren(e||null==e,t||null==e,!!r),s=0,u=o.length;for(i=0;i<u;i++)(n=o[i]).isActive()&&(a[s++]=n);return a},n.getLabelAfter=function(e){e||0!==e&&(e=this._time);var t,r=this.getLabelsArray(),i=r.length;for(t=0;t<i;t++)if(r[t].time>e)return r[t].name;return null},n.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),r=t.length;-1<--r;)if(t[r].time<e)return t[r].name;return null},n.getLabelsArray=function(){var e,t=[],r=0;for(e in this._labels)t[r++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},n.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},n.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()||0},n.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},n.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},n.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var r=this._duration,i=this._cycle,n=i*(r+this._repeatDelay);return r<e&&(e=r),this.totalTime(this._yoyo&&1&i?r-e+n:this._repeat?e+n:e,t)},n.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},n.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},n.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+P)},r},!0),T=180/Math.PI,w=[],x=[],k=[],v={},r=_gsScope._gsDefine.globals,b=function(e,t,r,i){r===i&&(r=i-(i-t)/1e6),e===t&&(t=e+(r-e)/1e6),this.a=e,this.b=t,this.c=r,this.d=i,this.da=i-e,this.ca=r-e,this.ba=t-e},S=function(e,t,r,i){var n={a:e},a={},o={},s={c:i},u=(e+t)/2,l=(t+r)/2,c=(r+i)/2,h=(u+l)/2,f=(l+c)/2,d=(f-h)/8;return n.b=u+(e-u)/4,a.b=h+d,n.c=a.a=(n.b+a.b)/2,a.c=o.a=(h+f)/2,o.b=f-d,s.b=c+(i-c)/4,o.c=s.a=(o.b+s.b)/2,[n,a,o,s]},y=function(e,t,r,i,n){var a,o,s,u,l,c,h,f,d,p,m,g,v,b=e.length-1,y=0,_=e[0].a;for(a=0;a<b;a++)o=(l=e[y]).a,s=l.d,u=e[y+1].d,f=n?(m=w[a],v=((g=x[a])+m)*t*.25/(i?.5:k[a]||.5),s-((c=s-(s-o)*(i?.5*t:0!==m?v/m:0))+(((h=s+(u-s)*(i?.5*t:0!==g?v/g:0))-c)*(3*m/(m+g)+.5)/4||0))):s-((c=s-(s-o)*t*.5)+(h=s+(u-s)*t*.5))/2,c+=f,h+=f,l.c=d=c,l.b=0!==a?_:_=l.a+.6*(l.c-l.a),l.da=s-o,l.ca=d-o,l.ba=_-o,r?(p=S(o,_,d,s),e.splice(y,1,p[0],p[1],p[2],p[3]),y+=4):y++,_=h;(l=e[y]).b=_,l.c=_+.4*(l.d-_),l.da=l.d-l.a,l.ca=l.c-l.a,l.ba=_-l.a,r&&(p=S(l.a,_,l.c,l.d),e.splice(y,1,p[0],p[1],p[2],p[3]))},_=function(e,t,r,i){var n,a,o,s,u,l,c=[];if(i)for(a=(e=[i].concat(e)).length;-1<--a;)"string"==typeof(l=e[a][t])&&"="===l.charAt(1)&&(e[a][t]=i[t]+Number(l.charAt(0)+l.substr(2)));if((n=e.length-2)<0)return c[0]=new b(e[0][t],0,0,e[0][t]),c;for(a=0;a<n;a++)o=e[a][t],s=e[a+1][t],c[a]=new b(o,0,0,s),r&&(u=e[a+2][t],w[a]=(w[a]||0)+(s-o)*(s-o),x[a]=(x[a]||0)+(u-s)*(u-s));return c[a]=new b(e[a][t],0,0,e[a+1][t]),c},d=function(e,t,r,i,n,a){var o,s,u,l,c,h,f,d,p={},m=[],g=a||e[0];for(s in n="string"==typeof n?","+n+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==t&&(t=1),e[0])m.push(s);if(1<e.length){for(d=e[e.length-1],f=!0,o=m.length;-1<--o;)if(s=m[o],.05<Math.abs(g[s]-d[s])){f=!1;break}f&&(e=e.concat(),a&&e.unshift(a),e.push(e[1]),a=e[e.length-3])}for(w.length=x.length=k.length=0,o=m.length;-1<--o;)s=m[o],v[s]=-1!==n.indexOf(","+s+","),p[s]=_(e,s,v[s],a);for(o=w.length;-1<--o;)w[o]=Math.sqrt(w[o]),x[o]=Math.sqrt(x[o]);if(!i){for(o=m.length;-1<--o;)if(v[s])for(h=(u=p[m[o]]).length-1,l=0;l<h;l++)c=u[l+1].da/x[l]+u[l].da/w[l]||0,k[l]=(k[l]||0)+c*c;for(o=k.length;-1<--o;)k[o]=Math.sqrt(k[o])}for(o=m.length,l=r?4:1;-1<--o;)u=p[s=m[o]],y(u,t,r,i,v[s]),f&&(u.splice(0,l),u.splice(u.length-l,l));return p},p=function(e,t,r){for(var i,n,a,o,s,u,l,c,h,f,d,p=1/r,m=e.length;-1<--m;)for(a=(f=e[m]).a,o=f.d-a,s=f.c-a,u=f.b-a,i=n=0,c=1;c<=r;c++)i=n-(n=((l=p*c)*l*o+3*(h=1-l)*(l*s+h*u))*l),t[d=m*r+c-1]=(t[d]||0)+i*i},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(e,t,r){this._target=e,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var i,n,a,o,s,u=t.values||[],l={},c=u[0],h=t.autoRotate||r.vars.orientToBezier;for(i in this._autoRotate=h?h instanceof Array?h:[["x","y","rotation",!0===h?0:Number(h)||0]]:null,c)this._props.push(i);for(a=this._props.length;-1<--a;)i=this._props[a],this._overwriteProps.push(i),n=this._func[i]="function"==typeof e[i],l[i]=n?e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(e[i]),s||l[i]!==u[0][i]&&(s=l);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?d(u,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,s):function(e,t,r){var i,n,a,o,s,u,l,c,h,f,d,p={},m="cubic"===(t=t||"soft")?3:2,g="soft"===t,v=[];if(g&&r&&(e=[r].concat(e)),null==e||e.length<1+m)throw"invalid Bezier data";for(h in e[0])v.push(h);for(u=v.length;-1<--u;){for(p[h=v[u]]=s=[],f=0,c=e.length,l=0;l<c;l++)i=null==r?e[l][h]:"string"==typeof(d=e[l][h])&&"="===d.charAt(1)?r[h]+Number(d.charAt(0)+d.substr(2)):Number(d),g&&1<l&&l<c-1&&(s[f++]=(i+s[f-2])/2),s[f++]=i;for(c=f-m+1,l=f=0;l<c;l+=m)i=s[l],n=s[l+1],a=s[l+2],o=2==m?0:s[l+3],s[f++]=d=3==m?new b(i,n,a,o):new b(i,(2*n+i)/3,(2*n+a)/3,a);s.length=f}return p}(u,t.type,l),this._segCount=this._beziers[i].length,this._timeRes){var f=function(e,t){var r,i,n,a,o=[],s=[],u=0,l=0,c=(t=t>>0||6)-1,h=[],f=[];for(r in e)p(e[r],o,t);for(n=o.length,i=0;i<n;i++)u+=Math.sqrt(o[i]),f[a=i%t]=u,a===c&&(l+=u,h[a=i/t>>0]=f,s[a]=l,u=0,f=[]);return{length:l,lengths:s,segments:h}}(this._beziers,this._timeRes);this._length=f.length,this._lengths=f.lengths,this._segments=f.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(h=this._autoRotate)for(this._initialRotations=[],h[0]instanceof Array||(this._autoRotate=h=[h]),a=h.length;-1<--a;){for(o=0;o<3;o++)i=h[a][o],this._func[i]="function"==typeof e[i]&&e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)];i=h[a][2],this._initialRotations[a]=(this._func[i]?this._func[i].call(this._target):this._target[i])||0,this._overwriteProps.push(i)}return this._startRatio=r.vars.runBackwards?1:0,!0},set:function(e){var t,r,i,n,a,o,s,u,l,c,h,f=this._segCount,d=this._func,p=this._target,m=e!==this._startRatio;if(this._timeRes){if(l=this._lengths,c=this._curSeg,h=e*this._length,i=this._li,h>this._l2&&i<f-1){for(u=f-1;i<u&&(this._l2=l[++i])<=h;);this._l1=l[i-1],this._li=i,this._curSeg=c=this._segments[i],this._s2=c[this._s1=this._si=0]}else if(h<this._l1&&0<i){for(;0<i&&(this._l1=l[--i])>=h;);0===i&&h<this._l1?this._l1=0:i++,this._l2=l[i],this._li=i,this._curSeg=c=this._segments[i],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(t=i,h-=this._l1,i=this._si,h>this._s2&&i<c.length-1){for(u=c.length-1;i<u&&(this._s2=c[++i])<=h;);this._s1=c[i-1],this._si=i}else if(h<this._s1&&0<i){for(;0<i&&(this._s1=c[--i])>=h;);0===i&&h<this._s1?this._s1=0:i++,this._s2=c[i],this._si=i}o=1===e?1:(i+(h-this._s1)/(this._s2-this._s1))*this._prec||0}else o=(e-(t=e<0?0:1<=e?f-1:f*e>>0)*(1/f))*f;for(r=1-o,i=this._props.length;-1<--i;)n=this._props[i],s=(o*o*(a=this._beziers[n][t]).da+3*r*(o*a.ca+r*a.ba))*o+a.a,this._mod[n]&&(s=this._mod[n](s,p)),d[n]?p[n](s):p[n]=s;if(this._autoRotate){var g,v,b,y,_,w,x,k=this._autoRotate;for(i=k.length;-1<--i;)n=k[i][2],w=k[i][3]||0,x=!0===k[i][4]?1:T,a=this._beziers[k[i][0]],g=this._beziers[k[i][1]],a&&g&&(a=a[t],g=g[t],v=a.a+(a.b-a.a)*o,v+=((y=a.b+(a.c-a.b)*o)-v)*o,y+=(a.c+(a.d-a.c)*o-y)*o,b=g.a+(g.b-g.a)*o,b+=((_=g.b+(g.c-g.b)*o)-b)*o,_+=(g.c+(g.d-g.c)*o-_)*o,s=m?Math.atan2(_-b,y-v)*x+w:this._initialRotations[i],this._mod[n]&&(s=this._mod[n](s,p)),d[n]?p[n](s):p[n]=s)}}}),e=g.prototype,g.bezierThrough=d,g.cubicToQuadratic=S,g._autoCSS=!0,g.quadraticToCubic=function(e,t,r){return new b(e,(2*t+e)/3,(2*t+r)/3,r)},g._cssRegister=function(){var e=r.CSSPlugin;if(e){var t=e._internals,d=t._parseToProxy,p=t._setPluginRatio,m=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,r,i,n,a){t instanceof Array&&(t={values:t}),a=new g;var o,s,u,l=t.values,c=l.length-1,h=[],f={};if(c<0)return n;for(o=0;o<=c;o++)u=d(e,l[o],i,n,a,c!==o),h[o]=u.end;for(s in t)f[s]=t[s];return f.values=h,(n=new m(e,"bezier",0,0,u.pt,2)).data=u,n.plugin=a,n.setRatio=p,0===f.autoRotate&&(f.autoRotate=!0),!f.autoRotate||f.autoRotate instanceof Array||(o=!0===f.autoRotate?0:Number(f.autoRotate),f.autoRotate=null!=u.end.left?[["left","top","rotation",o,!1]]:null!=u.end.x&&[["x","y","rotation",o,!1]]),f.autoRotate&&(i._transform||i._enableTransforms(!1),u.autoRotate=i._target._gsTransform,u.proxy.rotation=u.autoRotate.rotation||0,i._overwriteProps.push("rotation")),a._onInitTween(u.proxy,f,i._tween),n}})}},e._mod=function(e){for(var t,r=this._overwriteProps,i=r.length;-1<--i;)(t=e[r[i]])&&"function"==typeof t&&(this._mod[r[i]]=t)},e._kill=function(e){var t,r,i=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],r=i.length;-1<--r;)i[r]===t&&i.splice(r,1);if(i=this._autoRotate)for(r=i.length;-1<--r;)e[i[r][2]]&&i.splice(r,1);return this._super._kill.call(this,e)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,N){var p,T,S,m,U=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=U.prototype.setRatio},l=_gsScope._gsDefine.globals,g={},e=U.prototype=new a("css");(e.constructor=U).version="2.1.3",U.API=2,U.defaultTransformPerspective=0,U.defaultSkewType="compensated",U.defaultSmoothOrigin=!0,e="px",U.suffixMap={top:e,right:e,bottom:e,left:e,width:e,height:e,fontSize:e,padding:e,margin:e,perspective:e,lineHeight:""};var M,v,b,z,y,E,P,C,t,r,A=/(?:\-|\.|\b)(\d|\.|e\-)+/g,O=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,n=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,c=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,I=/(?:\d|\-|\+|=|#|\.)*/g,R=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,o=/alpha\(opacity *=.+?\)/i,x=/^(rgb|hsl)/,s=/([A-Z])/g,u=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,h=function(e,t){return t.toUpperCase()},d=/(?:Left|Right|Width)/i,f=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,D=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,j=/,(?=[^\)]*(?:\(|$))/gi,L=/[\s,\(]/i,F=Math.PI/180,X=180/Math.PI,B={},i={style:{}},q=_gsScope.document||{createElement:function(){return i}},H=function(e,t){var r=q.createElementNS?q.createElementNS(t||"http://www.w3.org/1999/xhtml",e):q.createElement(e);return r.style?r:q.createElement(e)},W=H("div"),G=H("img"),V=U._internals={_specialProps:g},Y=(_gsScope.navigator||{}).userAgent||"",J=(t=Y.indexOf("Android"),r=H("a"),b=-1!==Y.indexOf("Safari")&&-1===Y.indexOf("Chrome")&&(-1===t||3<parseFloat(Y.substr(t+8,2))),y=b&&parseFloat(Y.substr(Y.indexOf("Version/")+8,2))<6,z=-1!==Y.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Y)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Y))&&(E=parseFloat(RegExp.$1)),!!r&&(r.style.cssText="top:1px;opacity:.55;",/^0.55/.test(r.style.opacity))),K=function(e){return R.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Z=function(e){_gsScope.console&&console.log(e)},Q="",$="",ee=function(e,t){var r,i,n=(t=t||W).style;if(void 0!==n[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;-1<--i&&void 0===n[r[i]+e];);return 0<=i?(Q="-"+($=3===i?"ms":r[i]).toLowerCase()+"-",$+e):null},te="undefined"!=typeof window?window:q.defaultView||{getComputedStyle:function(){}},re=function(e){return te.getComputedStyle(e)},ie=U.getStyle=function(e,t,r,i,n){var a;return J||"opacity"!==t?(!i&&e.style[t]?a=e.style[t]:(r=r||re(e))?a=r[t]||r.getPropertyValue(t)||r.getPropertyValue(t.replace(s,"-$1").toLowerCase()):e.currentStyle&&(a=e.currentStyle[t]),null==n||a&&"none"!==a&&"auto"!==a&&"auto auto"!==a?a:n):K(e)},ne=V.convertToPixels=function(e,t,r,i,n){if("px"===i||!i&&"lineHeight"!==t)return r;if("auto"===i||!r)return 0;var a,o,s,u=d.test(t),l=e,c=W.style,h=r<0,f=1===r;if(h&&(r=-r),f&&(r*=100),"lineHeight"!==t||i)if("%"===i&&-1!==t.indexOf("border"))a=r/100*(u?e.clientWidth:e.clientHeight);else{if(c.cssText="border:0 solid red;position:"+ie(e,"position")+";line-height:0;","%"!==i&&l.appendChild&&"v"!==i.charAt(0)&&"rem"!==i)c[u?"borderLeftWidth":"borderTopWidth"]=r+i;else{if(l=e.parentNode||q.body,-1!==ie(l,"display").indexOf("flex")&&(c.position="absolute"),o=l._gsCache,s=N.ticker.frame,o&&u&&o.time===s)return o.width*r/100;c[u?"width":"height"]=r+i}l.appendChild(W),a=parseFloat(W[u?"offsetWidth":"offsetHeight"]),l.removeChild(W),u&&"%"===i&&!1!==U.cacheWidths&&((o=l._gsCache=l._gsCache||{}).time=s,o.width=a/r*100),0!==a||n||(a=ne(e,t,r,i,!0))}else o=re(e).lineHeight,e.style.lineHeight=r,a=parseFloat(re(e).lineHeight),e.style.lineHeight=o;return f&&(a/=100),h?-a:a},ae=V.calculateOffset=function(e,t,r){if("absolute"!==ie(e,"position",r))return 0;var i="left"===t?"Left":"Top",n=ie(e,"margin"+i,r);return e["offset"+i]-(ne(e,t,parseFloat(n),n.replace(I,""))||0)},oe=function(e,t){var r,i,n,a={};if(t=t||re(e))if(r=t.length)for(;-1<--r;)-1!==(n=t[r]).indexOf("-transform")&&ze!==n||(a[n.replace(u,h)]=t.getPropertyValue(n));else for(r in t)-1!==r.indexOf("Transform")&&Le!==r||(a[r]=t[r]);else if(t=e.currentStyle||e.style)for(r in t)"string"==typeof r&&void 0===a[r]&&(a[r.replace(u,h)]=t[r]);return J||(a.opacity=K(e)),i=Ke(e,t,!1),a.rotation=i.rotation,a.skewX=i.skewX,a.scaleX=i.scaleX,a.scaleY=i.scaleY,a.x=i.x,a.y=i.y,Be&&(a.z=i.z,a.rotationX=i.rotationX,a.rotationY=i.rotationY,a.scaleZ=i.scaleZ),a.filters&&delete a.filters,a},se=function(e,t,r,i,n){var a,o,s,u={},l=e.style;for(o in r)"cssText"!==o&&"length"!==o&&isNaN(o)&&(t[o]!==(a=r[o])||n&&n[o])&&-1===o.indexOf("Origin")&&("number"!=typeof a&&"string"!=typeof a||(u[o]="auto"!==a||"left"!==o&&"top"!==o?""!==a&&"auto"!==a&&"none"!==a||"string"!=typeof t[o]||""===t[o].replace(c,"")?a:0:ae(e,o),void 0!==l[o]&&(s=new xe(l,o,l[o],s))));if(i)for(o in i)"className"!==o&&(u[o]=i[o]);return{difs:u,firstMPT:s}},ue={width:["Left","Right"],height:["Top","Bottom"]},le=["marginLeft","marginRight","marginTop","marginBottom"],ce=function(e,t,r){if("svg"===(e.nodeName+"").toLowerCase())return(r||re(e))[t]||0;if(e.getCTM&&Ve(e))return e.getBBox()[t]||0;var i=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),n=ue[t],a=n.length;for(r=r||re(e);-1<--a;)i-=parseFloat(ie(e,"padding"+n[a],r,!0))||0,i-=parseFloat(ie(e,"border"+n[a]+"Width",r,!0))||0;return i},he=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";null!=e&&""!==e||(e="0 0");var r,i=e.split(" "),n=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":i[0],a=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":i[1];if(3<i.length&&!t){for(i=e.split(", ").join(",").split(","),e=[],r=0;r<i.length;r++)e.push(he(i[r]));return e.join(",")}return null==a?a="center"===n?"50%":"0":"center"===a&&(a="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),e=n+" "+a+(2<i.length?" "+i[2]:""),t&&(t.oxp=-1!==n.indexOf("%"),t.oyp=-1!==a.indexOf("%"),t.oxr="="===n.charAt(1),t.oyr="="===a.charAt(1),t.ox=parseFloat(n.replace(c,"")),t.oy=parseFloat(a.replace(c,"")),t.v=e),t||e},fe=function(e,t){return"function"==typeof e&&(e=e(C,P)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},de=function(e,t){"function"==typeof e&&(e=e(C,P));var r="string"==typeof e&&"="===e.charAt(1);return"string"==typeof e&&"v"===e.charAt(e.length-2)&&(e=(r?e.substr(0,2):0)+window["inner"+("vh"===e.substr(-2)?"Height":"Width")]*(parseFloat(r?e.substr(2):e)/100)),null==e?t:r?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},pe=function(e,t,r,i){var n,a,o,s;return"function"==typeof e&&(e=e(C,P)),(o=null==e?t:"number"==typeof e?e:(360,n=e.split("_"),a=((s="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===e.indexOf("rad")?1:X)-(s?0:t),n.length&&(i&&(i[r]=t+a),-1!==e.indexOf("short")&&(a%=360)!==a%180&&(a=a<0?a+360:a-360),-1!==e.indexOf("_cw")&&a<0?a=(a+3599999999640)%360-360*(a/360|0):-1!==e.indexOf("ccw")&&0<a&&(a=(a-3599999999640)%360-360*(a/360|0))),t+a))<1e-6&&-1e-6<o&&(o=0),o},me={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ge=function(e,t,r){return 255*(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)+.5|0},ve=U.parseColor=function(e,t){var r,i,n,a,o,s,u,l,c,h,f;if(e)if("number"==typeof e)r=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),me[e])r=me[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(i=e.charAt(1))+i+(n=e.charAt(2))+n+(a=e.charAt(3))+a),r=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(r=f=e.match(A),t){if(-1!==e.indexOf("="))return e.match(O)}else o=Number(r[0])%360/360,s=Number(r[1])/100,i=2*(u=Number(r[2])/100)-(n=u<=.5?u*(s+1):u+s-u*s),3<r.length&&(r[3]=Number(r[3])),r[0]=ge(o+1/3,i,n),r[1]=ge(o,i,n),r[2]=ge(o-1/3,i,n);else r=e.match(A)||me.transparent;r[0]=Number(r[0]),r[1]=Number(r[1]),r[2]=Number(r[2]),3<r.length&&(r[3]=Number(r[3]))}else r=me.black;return t&&!f&&(i=r[0]/255,n=r[1]/255,a=r[2]/255,u=((l=Math.max(i,n,a))+(c=Math.min(i,n,a)))/2,l===c?o=s=0:(h=l-c,s=.5<u?h/(2-l-c):h/(l+c),o=l===i?(n-a)/h+(n<a?6:0):l===n?(a-i)/h+2:(i-n)/h+4,o*=60),r[0]=o+.5|0,r[1]=100*s+.5|0,r[2]=100*u+.5|0),r},be=function(e,t){var r,i,n,a=e.match(ye)||[],o=0,s="";if(!a.length)return e;for(r=0;r<a.length;r++)i=a[r],o+=(n=e.substr(o,e.indexOf(i,o)-o)).length+i.length,3===(i=ve(i,t)).length&&i.push(1),s+=n+(t?"hsla("+i[0]+","+i[1]+"%,"+i[2]+"%,"+i[3]:"rgba("+i.join(","))+")";return s+e.substr(o)},ye="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(e in me)ye+="|"+e+"\\b";ye=new RegExp(ye+")","gi"),U.colorStringFilter=function(e){var t,r=e[0]+" "+e[1];ye.test(r)&&(t=-1!==r.indexOf("hsl(")||-1!==r.indexOf("hsla("),e[0]=be(e[0],t),e[1]=be(e[1],t)),ye.lastIndex=0},N.defaultStringFilter||(N.defaultStringFilter=U.colorStringFilter);var _e=function(e,t,a,o){if(null==e)return function(e){return e};var s,u=t?(e.match(ye)||[""])[0]:"",l=e.split(u).join("").match(_)||[],c=e.substr(0,e.indexOf(l[0])),h=")"===e.charAt(e.length-1)?")":"",f=-1!==e.indexOf(" ")?" ":",",d=l.length,p=0<d?l[0].replace(A,""):"";return d?s=t?function(e){var t,r,i,n;if("number"==typeof e)e+=p;else if(o&&j.test(e)){for(n=e.replace(j,"|").split("|"),i=0;i<n.length;i++)n[i]=s(n[i]);return n.join(",")}if(t=(e.match(ye)||[u])[0],i=(r=e.split(t).join("").match(_)||[]).length,d>i--)for(;++i<d;)r[i]=a?r[(i-1)/2|0]:l[i];return c+r.join(f)+f+t+h+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,r,i;if("number"==typeof e)e+=p;else if(o&&j.test(e)){for(r=e.replace(j,"|").split("|"),i=0;i<r.length;i++)r[i]=s(r[i]);return r.join(",")}if(i=(t=e.match(","==f?_:n)||[]).length,d>i--)for(;++i<d;)t[i]=a?t[(i-1)/2|0]:l[i];return(c&&"none"!==e&&e.substr(0,e.indexOf(t[0]))||c)+t.join(f)+h}:function(e){return e}},we=function(l){return l=l.split(","),function(e,t,r,i,n,a,o){var s,u=(t+"").split(" ");for(o={},s=0;s<4;s++)o[l[s]]=u[s]=u[s]||u[(s-1)/2>>0];return i.parse(e,o,n,a)}},xe=(V._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,r,i,n,a,o=this.data,s=o.proxy,u=o.firstMPT;u;)t=s[u.v],u.r?t=u.r(t):t<1e-6&&-1e-6<t&&(t=0),u.t[u.p]=t,u=u._next;if(o.autoRotate&&(o.autoRotate.rotation=o.mod?o.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===e||0===e)for(u=o.firstMPT,a=1===e?"e":"b";u;){if((r=u.t).type){if(1===r.type){for(n=r.xs0+r.s+r.xs1,i=1;i<r.l;i++)n+=r["xn"+i]+r["xs"+(i+1)];r[a]=n}}else r[a]=r.s+r.xs0;u=u._next}},function(e,t,r,i,n){this.t=e,this.p=t,this.v=r,this.r=n,i&&((i._prev=this)._next=i)}),ke=(V._parseToProxy=function(e,t,r,i,n,a){var o,s,u,l,c,h=i,f={},d={},p=r._transform,m=B;for(r._transform=null,B=t,i=c=r.parse(e,t,i,n),B=m,a&&(r._transform=p,h&&(h._prev=null,h._prev&&(h._prev._next=null)));i&&i!==h;){if(i.type<=1&&(d[s=i.p]=i.s+i.c,f[s]=i.s,a||(l=new xe(i,"s",s,l,i.r),i.c=0),1===i.type))for(o=i.l;0<--o;)u="xn"+o,d[s=i.p+"_"+u]=i.data[u],f[s]=i[u],a||(l=new xe(i,u,s,l,i.rxp[u]));i=i._next}return{proxy:f,end:d,firstMPT:l,pt:c}},V.CSSPropTween=function(e,t,r,i,n,a,o,s,u,l,c){this.t=e,this.p=t,this.s=r,this.c=i,this.n=o||t,e instanceof ke||m.push(this.n),this.r=s?"function"==typeof s?s:Math.round:s,this.type=a||0,u&&(this.pr=u,p=!0),this.b=void 0===l?r:l,this.e=void 0===c?r+i:c,n&&((this._next=n)._prev=this)}),Te=function(e,t,r,i,n,a){var o=new ke(e,t,r,i-r,n,-1,a);return o.b=r,o.e=o.xs0=i,o},Se=U.parseComplex=function(e,t,r,i,n,a,o,s,u,l){r=r||a||"","function"==typeof i&&(i=i(C,P)),o=new ke(e,t,0,0,o,l?2:1,null,!1,s,r,i),i+="",n&&ye.test(i+r)&&(i=[r,i],U.colorStringFilter(i),r=i[0],i=i[1]);var c,h,f,d,p,m,g,v,b,y,_,w,x,k=r.split(", ").join(",").split(" "),T=i.split(", ").join(",").split(" "),S=k.length,E=!1!==M;for(-1===i.indexOf(",")&&-1===r.indexOf(",")||(T=-1!==(i+r).indexOf("rgb")||-1!==(i+r).indexOf("hsl")?(k=k.join(" ").replace(j,", ").split(" "),T.join(" ").replace(j,", ").split(" ")):(k=k.join(" ").split(",").join(", ").split(" "),T.join(" ").split(",").join(", ").split(" ")),S=k.length),S!==T.length&&(S=(k=(a||"").split(" ")).length),o.plugin=u,o.setRatio=l,c=ye.lastIndex=0;c<S;c++)if(d=k[c],p=T[c]+"",(v=parseFloat(d))||0===v)o.appendXtra("",v,fe(p,v),p.replace(O,""),E&&-1!==p.indexOf("px")&&Math.round,!0);else if(n&&ye.test(d))w=")"+((w=p.indexOf(")")+1)?p.substr(w):""),x=-1!==p.indexOf("hsl")&&J,y=p,d=ve(d,x),p=ve(p,x),(b=6<d.length+p.length)&&!J&&0===p[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(T[c]).join("transparent")):(J||(b=!1),x?o.appendXtra(y.substr(0,y.indexOf("hsl"))+(b?"hsla(":"hsl("),d[0],fe(p[0],d[0]),",",!1,!0).appendXtra("",d[1],fe(p[1],d[1]),"%,",!1).appendXtra("",d[2],fe(p[2],d[2]),b?"%,":"%"+w,!1):o.appendXtra(y.substr(0,y.indexOf("rgb"))+(b?"rgba(":"rgb("),d[0],p[0]-d[0],",",Math.round,!0).appendXtra("",d[1],p[1]-d[1],",",Math.round).appendXtra("",d[2],p[2]-d[2],b?",":w,Math.round),b&&(d=d.length<4?1:d[3],o.appendXtra("",d,(p.length<4?1:p[3])-d,w,!1))),ye.lastIndex=0;else if(m=d.match(A)){if(!(g=p.match(O))||g.length!==m.length)return o;for(h=f=0;h<m.length;h++)_=m[h],y=d.indexOf(_,f),o.appendXtra(d.substr(f,y-f),Number(_),fe(g[h],_),"",E&&"px"===d.substr(y+_.length,2)&&Math.round,0===h),f=y+_.length;o["xs"+o.l]+=d.substr(f)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+p:p;if(-1!==i.indexOf("=")&&o.data){for(w=o.xs0+o.data.s,c=1;c<o.l;c++)w+=o["xs"+c]+o.data["xn"+c];o.e=w+o["xs"+c]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},Ee=9;for((e=ke.prototype).l=e.pr=0;0<--Ee;)e["xn"+Ee]=0,e["xs"+Ee]="";e.xs0="",e._next=e._prev=e.xfirst=e.data=e.plugin=e.setRatio=e.rxp=null,e.appendXtra=function(e,t,r,i,n,a){var o=this,s=o.l;return o["xs"+s]+=a&&(s||o["xs"+s])?" "+e:e||"",r||0===s||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=i||"",0<s?(o.data["xn"+s]=t+r,o.rxp["xn"+s]=n,o["xn"+s]=t,o.plugin||(o.xfirst=new ke(o,"xn"+s,t,r,o.xfirst||o,0,o.n,n,o.pr),o.xfirst.xs0=0)):(o.data={s:t+r},o.rxp={},o.s=t,o.c=r,o.r=n),o):(o["xs"+s]+=t+(i||""),o)};var Me=function(e,t){t=t||{},this.p=t.prefix&&ee(e)||e,g[e]=g[this.p]=this,this.format=t.formatter||_e(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.allowFunc=t.allowFunc,this.pr=t.priority||0},Pe=V._registerComplexSpecialProp=function(e,t,r){"object"!=typeof t&&(t={parser:r});var i,n=e.split(","),a=t.defaultValue;for(r=r||[a],i=0;i<n.length;i++)t.prefix=0===i&&t.prefix,t.defaultValue=r[i]||a,new Me(n[i],t)},Ce=V._registerPluginProp=function(e){if(!g[e]){var u=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin";Pe(e,{parser:function(e,t,r,i,n,a,o){var s=l.com.greensock.plugins[u];return s?(s._cssRegister(),g[r].parse(e,t,r,i,n,a,o)):(Z("Error: "+u+" js file not loaded."),n)}})}};(e=Me.prototype).parseComplex=function(e,t,r,i,n,a){var o,s,u,l,c,h,f=this.keyword;if(this.multi&&(j.test(r)||j.test(t)?(s=t.replace(j,"|").split("|"),u=r.replace(j,"|").split("|")):f&&(s=[t],u=[r])),u){for(l=u.length>s.length?u.length:s.length,o=0;o<l;o++)t=s[o]=s[o]||this.dflt,r=u[o]=u[o]||this.dflt,f&&(c=t.indexOf(f))!==(h=r.indexOf(f))&&(-1===h?s[o]=s[o].split(f).join(""):-1===c&&(s[o]+=" "+f));t=s.join(", "),r=u.join(", ")}return Se(e,this.p,t,r,this.clrs,this.dflt,i,this.pr,n,a)},e.parse=function(e,t,r,i,n,a,o){return this.parseComplex(e.style,this.format(ie(e,this.p,S,!1,this.dflt)),this.format(t),n,a)},U.registerSpecialProp=function(e,u,l){Pe(e,{parser:function(e,t,r,i,n,a,o){var s=new ke(e,r,0,0,n,2,r,!1,l);return s.plugin=a,s.setRatio=u(e,t,i._tween,r),s},priority:l})},U.useSVGTransformAttr=!0;var Ae,Oe,Ie,Re,De,je="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Le=ee("transform"),ze=Q+"transform",Fe=ee("transformOrigin"),Be=null!==ee("perspective"),Ne=V.Transform=function(){this.perspective=parseFloat(U.defaultTransformPerspective)||0,this.force3D=!(!1===U.defaultForce3D||!Be)&&(U.defaultForce3D||"auto")},Ue=_gsScope.SVGElement,Xe=function(e,t,r){var i,n=q.createElementNS("http://www.w3.org/2000/svg",e),a=/([a-z])([A-Z])/g;for(i in r)n.setAttributeNS(null,i.replace(a,"$1-$2").toLowerCase(),r[i]);return t.appendChild(n),n},qe=q.documentElement||{},He=(De=E||/Android/i.test(Y)&&!_gsScope.chrome,q.createElementNS&&qe.appendChild&&!De&&(Oe=Xe("svg",qe),Re=(Ie=Xe("rect",Oe,{width:100,height:50,x:100})).getBoundingClientRect().width,Ie.style[Fe]="50% 50%",Ie.style[Le]="scaleX(0.5)",De=Re===Ie.getBoundingClientRect().width&&!(z&&Be),qe.removeChild(Oe)),De),We=function(e,t,r,i,n,a){var o,s,u,l,c,h,f,d,p,m,g,v,b,y,_=e._gsTransform,w=Je(e,!0);_&&(b=_.xOrigin,y=_.yOrigin),(!i||(o=i.split(" ")).length<2)&&(0===(f=e.getBBox()).x&&0===f.y&&f.width+f.height===0&&(f={x:parseFloat(e.hasAttribute("x")?e.getAttribute("x"):e.hasAttribute("cx")?e.getAttribute("cx"):0)||0,y:parseFloat(e.hasAttribute("y")?e.getAttribute("y"):e.hasAttribute("cy")?e.getAttribute("cy"):0)||0,width:0,height:0}),o=[(-1!==(t=he(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*f.width:parseFloat(t[0]))+f.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*f.height:parseFloat(t[1]))+f.y]),r.xOrigin=l=parseFloat(o[0]),r.yOrigin=c=parseFloat(o[1]),i&&w!==Ye&&(h=w[0],f=w[1],d=w[2],p=w[3],m=w[4],g=w[5],(v=h*p-f*d)&&(s=l*(p/v)+c*(-d/v)+(d*g-p*m)/v,u=l*(-f/v)+c*(h/v)-(h*g-f*m)/v,l=r.xOrigin=o[0]=s,c=r.yOrigin=o[1]=u)),_&&(a&&(r.xOffset=_.xOffset,r.yOffset=_.yOffset,_=r),n||!1!==n&&!1!==U.defaultSmoothOrigin?(s=l-b,u=c-y,_.xOffset+=s*w[0]+u*w[2]-s,_.yOffset+=s*w[1]+u*w[3]-u):_.xOffset=_.yOffset=0),a||e.setAttribute("data-svg-origin",o.join(" "))},Ge=function(e){var t,r=H("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(qe.appendChild(r),r.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ge}catch(e){}else this._originalGetBBox&&(t=this._originalGetBBox());return n?i.insertBefore(this,n):i.appendChild(this),qe.removeChild(r),this.style.cssText=a,t},Ve=function(e){return!(!Ue||!e.getCTM||e.parentNode&&!e.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return Ge.call(t,!0)}}(e))},Ye=[1,0,0,1,0,0],Je=function(e,t){var r,i,n,a,o,s,u,l=e._gsTransform||new Ne,c=e.style;if(Le?i=ie(e,ze,null,!0):e.currentStyle&&(i=(i=e.currentStyle.filter.match(f))&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),l.x||0,l.y||0].join(","):""),r=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,Le&&r&&!e.offsetParent&&e!==qe&&(a=c.display,c.display="block",(u=e.parentNode)&&e.offsetParent||(o=1,s=e.nextSibling,qe.appendChild(e)),r=!(i=ie(e,ze,null,!0))||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,a?c.display=a:et(c,"display"),o&&(s?u.insertBefore(e,s):u?u.appendChild(e):qe.removeChild(e))),(l.svg||e.getCTM&&Ve(e))&&(r&&-1!==(c[Le]+"").indexOf("matrix")&&(i=c[Le],r=0),n=e.getAttribute("transform"),r&&n&&(i="matrix("+(n=e.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",r=0)),r)return Ye;for(n=(i||"").match(A)||[],Ee=n.length;-1<--Ee;)a=Number(n[Ee]),n[Ee]=(o=a-(a|=0))?(1e5*o+(o<0?-.5:.5)|0)/1e5+a:a;return t&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Ke=V.getTransform=function(e,t,r,i){if(e._gsTransform&&r&&!i)return e._gsTransform;var n,a,o,s,u,l,c=r&&e._gsTransform||new Ne,h=c.scaleX<0,f=Be&&(parseFloat(ie(e,Fe,t,!1,"0 0 0").split(" ")[2])||c.zOrigin)||0,d=parseFloat(U.defaultTransformPerspective)||0;if(c.svg=!(!e.getCTM||!Ve(e)),c.svg&&(We(e,ie(e,Fe,t,!1,"50% 50%")+"",c,e.getAttribute("data-svg-origin")),Ae=U.useSVGTransformAttr||He),(n=Je(e))!==Ye){if(16===n.length){var p,m,g,v,b,y=n[0],_=n[1],w=n[2],x=n[3],k=n[4],T=n[5],S=n[6],E=n[7],M=n[8],P=n[9],C=n[10],A=n[12],O=n[13],I=n[14],R=n[11],D=Math.atan2(S,C);c.zOrigin&&(A=M*(I=-c.zOrigin)-n[12],O=P*I-n[13],I=C*I+c.zOrigin-n[14]),c.rotationX=D*X,D&&(p=k*(v=Math.cos(-D))+M*(b=Math.sin(-D)),m=T*v+P*b,g=S*v+C*b,M=k*-b+M*v,P=T*-b+P*v,C=S*-b+C*v,R=E*-b+R*v,k=p,T=m,S=g),D=Math.atan2(-w,C),c.rotationY=D*X,D&&(m=_*(v=Math.cos(-D))-P*(b=Math.sin(-D)),g=w*v-C*b,P=_*b+P*v,C=w*b+C*v,R=x*b+R*v,y=p=y*v-M*b,_=m,w=g),D=Math.atan2(_,y),c.rotation=D*X,D&&(p=y*(v=Math.cos(D))+_*(b=Math.sin(D)),m=k*v+T*b,g=M*v+P*b,_=_*v-y*b,T=T*v-k*b,P=P*v-M*b,y=p,k=m,M=g),c.rotationX&&359.9<Math.abs(c.rotationX)+Math.abs(c.rotation)&&(c.rotationX=c.rotation=0,c.rotationY=180-c.rotationY),D=Math.atan2(k,T),c.scaleX=(1e5*Math.sqrt(y*y+_*_+w*w)+.5|0)/1e5,c.scaleY=(1e5*Math.sqrt(T*T+S*S)+.5|0)/1e5,c.scaleZ=(1e5*Math.sqrt(M*M+P*P+C*C)+.5|0)/1e5,y/=c.scaleX,k/=c.scaleY,_/=c.scaleX,T/=c.scaleY,2e-5<Math.abs(D)?(c.skewX=D*X,k=0,"simple"!==c.skewType&&(c.scaleY*=1/Math.cos(D))):c.skewX=0,c.perspective=R?1/(R<0?-R:R):0,c.x=A,c.y=O,c.z=I,c.svg&&(c.x-=c.xOrigin-(c.xOrigin*y-c.yOrigin*k),c.y-=c.yOrigin-(c.yOrigin*_-c.xOrigin*T))}else if(!Be||i||!n.length||c.x!==n[4]||c.y!==n[5]||!c.rotationX&&!c.rotationY){var j=6<=n.length,L=j?n[0]:1,z=n[1]||0,F=n[2]||0,B=j?n[3]:1;c.x=n[4]||0,c.y=n[5]||0,o=Math.sqrt(L*L+z*z),s=Math.sqrt(B*B+F*F),u=L||z?Math.atan2(z,L)*X:c.rotation||0,l=F||B?Math.atan2(F,B)*X+u:c.skewX||0,c.scaleX=o,c.scaleY=s,c.rotation=u,c.skewX=l,Be&&(c.rotationX=c.rotationY=c.z=0,c.perspective=d,c.scaleZ=1),c.svg&&(c.x-=c.xOrigin-(c.xOrigin*L+c.yOrigin*F),c.y-=c.yOrigin-(c.xOrigin*z+c.yOrigin*B))}for(a in 90<Math.abs(c.skewX)&&Math.abs(c.skewX)<270&&(h?(c.scaleX*=-1,c.skewX+=c.rotation<=0?180:-180,c.rotation+=c.rotation<=0?180:-180):(c.scaleY*=-1,c.skewX+=c.skewX<=0?180:-180)),c.zOrigin=f,c)c[a]<2e-5&&-2e-5<c[a]&&(c[a]=0)}return r&&(e._gsTransform=c).svg&&(Ae&&e.style[Le]?N.delayedCall(.001,function(){et(e.style,Le)}):!Ae&&e.getAttribute("transform")&&N.delayedCall(.001,function(){e.removeAttribute("transform")})),c},Ze=function(e){var t,r,i=this.data,n=-i.rotation*F,a=n+i.skewX*F,o=(Math.cos(n)*i.scaleX*1e5|0)/1e5,s=(Math.sin(n)*i.scaleX*1e5|0)/1e5,u=(Math.sin(a)*-i.scaleY*1e5|0)/1e5,l=(Math.cos(a)*i.scaleY*1e5|0)/1e5,c=this.t.style,h=this.t.currentStyle;if(h){r=s,s=-u,u=-r,t=h.filter,c.filter="";var f,d,p=this.t.offsetWidth,m=this.t.offsetHeight,g="absolute"!==h.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+s+", M21="+u+", M22="+l,b=i.x+p*i.xPercent/100,y=i.y+m*i.yPercent/100;if(null!=i.ox&&(b+=(f=(i.oxp?p*i.ox*.01:i.ox)-p/2)-(f*o+(d=(i.oyp?m*i.oy*.01:i.oy)-m/2)*s),y+=d-(f*u+d*l)),v+=g?", Dx="+((f=p/2)-(f*o+(d=m/2)*s)+b)+", Dy="+(d-(f*u+d*l)+y)+")":", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=t.replace(D,v):c.filter=v+" "+t,0!==e&&1!==e||1==o&&0===s&&0===u&&1==l&&(g&&-1===v.indexOf("Dx=0, Dy=0")||R.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&c.removeAttribute("filter")),!g){var _,w,x,k=E<8?1:-1;for(f=i.ieOffsetX||0,d=i.ieOffsetY||0,i.ieOffsetX=Math.round((p-((o<0?-o:o)*p+(s<0?-s:s)*m))/2+b),i.ieOffsetY=Math.round((m-((l<0?-l:l)*m+(u<0?-u:u)*p))/2+y),Ee=0;Ee<4;Ee++)x=(r=-1!==(_=h[w=le[Ee]]).indexOf("px")?parseFloat(_):ne(this.t,w,parseFloat(_),_.replace(I,""))||0)!==i[w]?Ee<2?-i.ieOffsetX:-i.ieOffsetY:Ee<2?f-i.ieOffsetX:d-i.ieOffsetY,c[w]=(i[w]=Math.round(r-x*(0===Ee||2===Ee?1:k)))+"px"}}},Qe=V.set3DTransformRatio=V.setTransformRatio=function(e){var t,r,i,n,a,o,s,u,l,c,h,f,d,p,m,g,v,b,y,_,w=this.data,x=this.t.style,k=w.rotation,T=w.rotationX,S=w.rotationY,E=w.scaleX,M=w.scaleY,P=w.scaleZ,C=w.x,A=w.y,O=w.z,I=w.svg,R=w.perspective,D=w.force3D,j=w.skewY,L=w.skewX;if(j&&(L+=j,k+=j),!((1!==e&&0!==e||"auto"!==D||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&D||O||R||S||T||1!==P)||Ae&&I||!Be)k||L||I?(k*=F,_=L*F,1e5,r=Math.cos(k)*E,a=Math.sin(k)*E,i=Math.sin(k-_)*-M,o=Math.cos(k-_)*M,_&&"simple"===w.skewType&&(t=Math.tan(_-j*F),i*=t=Math.sqrt(1+t*t),o*=t,j&&(t=Math.tan(j*F),r*=t=Math.sqrt(1+t*t),a*=t)),I&&(C+=w.xOrigin-(w.xOrigin*r+w.yOrigin*i)+w.xOffset,A+=w.yOrigin-(w.xOrigin*a+w.yOrigin*o)+w.yOffset,Ae&&(w.xPercent||w.yPercent)&&(m=this.t.getBBox(),C+=.01*w.xPercent*m.width,A+=.01*w.yPercent*m.height),C<(m=1e-6)&&-m<C&&(C=0),A<m&&-m<A&&(A=0)),y=(1e5*r|0)/1e5+","+(1e5*a|0)/1e5+","+(1e5*i|0)/1e5+","+(1e5*o|0)/1e5+","+C+","+A+")",I&&Ae?this.t.setAttribute("transform","matrix("+y):x[Le]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix(":"matrix(")+y):x[Le]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+M+","+C+","+A+")";else{if(z&&(E<(m=1e-4)&&-m<E&&(E=P=2e-5),M<m&&-m<M&&(M=P=2e-5),!R||w.z||w.rotationX||w.rotationY||(R=0)),k||L)k*=F,g=r=Math.cos(k),v=a=Math.sin(k),L&&(k-=L*F,g=Math.cos(k),v=Math.sin(k),"simple"===w.skewType&&(t=Math.tan((L-j)*F),g*=t=Math.sqrt(1+t*t),v*=t,w.skewY&&(t=Math.tan(j*F),r*=t=Math.sqrt(1+t*t),a*=t))),i=-v,o=g;else{if(!(S||T||1!==P||R||I))return void(x[Le]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) translate3d(":"translate3d(")+C+"px,"+A+"px,"+O+"px)"+(1!==E||1!==M?" scale("+E+","+M+")":""));r=o=1,i=a=0}c=1,n=s=u=l=h=f=0,d=R?-1/R:0,p=w.zOrigin,m=1e-6,",","0",(k=S*F)&&(g=Math.cos(k),h=d*(u=-(v=Math.sin(k))),n=r*v,s=a*v,d*=c=g,r*=g,a*=g),(k=T*F)&&(t=i*(g=Math.cos(k))+n*(v=Math.sin(k)),b=o*g+s*v,l=c*v,f=d*v,n=i*-v+n*g,s=o*-v+s*g,c*=g,d*=g,i=t,o=b),1!==P&&(n*=P,s*=P,c*=P,d*=P),1!==M&&(i*=M,o*=M,l*=M,f*=M),1!==E&&(r*=E,a*=E,u*=E,h*=E),(p||I)&&(p&&(C+=n*-p,A+=s*-p,O+=c*-p+p),I&&(C+=w.xOrigin-(w.xOrigin*r+w.yOrigin*i)+w.xOffset,A+=w.yOrigin-(w.xOrigin*a+w.yOrigin*o)+w.yOffset),C<m&&-m<C&&(C="0"),A<m&&-m<A&&(A="0"),O<m&&-m<O&&(O=0)),y=w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix3d(":"matrix3d(",y+=(r<m&&-m<r?"0":r)+","+(a<m&&-m<a?"0":a)+","+(u<m&&-m<u?"0":u),y+=","+(h<m&&-m<h?"0":h)+","+(i<m&&-m<i?"0":i)+","+(o<m&&-m<o?"0":o),T||S||1!==P?(y+=","+(l<m&&-m<l?"0":l)+","+(f<m&&-m<f?"0":f)+","+(n<m&&-m<n?"0":n),y+=","+(s<m&&-m<s?"0":s)+","+(c<m&&-m<c?"0":c)+","+(d<m&&-m<d?"0":d)+","):y+=",0,0,0,0,1,0,",y+=C+","+A+","+O+","+(R?1+-O/R:1)+")",x[Le]=y}};(e=Ne.prototype).x=e.y=e.z=e.skewX=e.skewY=e.rotation=e.rotationX=e.rotationY=e.zOrigin=e.xPercent=e.yPercent=e.xOffset=e.yOffset=0,e.scaleX=e.scaleY=e.scaleZ=1,Pe("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(e,t,r,i,n,a,o){if(i._lastParsedTransform===o)return n;var s=(i._lastParsedTransform=o).scale&&"function"==typeof o.scale?o.scale:0;s&&(o.scale=s(C,e));var u,l,c,h,f,d,p,m,g,v=e._gsTransform,b=e.style,y=je.length,_=o,w={},x="transformOrigin",k=Ke(e,S,!0,_.parseTransform),T=_.transform&&("function"==typeof _.transform?_.transform(C,P):_.transform);if(k.skewType=_.skewType||k.skewType||U.defaultSkewType,i._transform=k,"rotationZ"in _&&(_.rotation=_.rotationZ),T&&"string"==typeof T&&Le)(l=W.style)[Le]=T,l.display="block",l.position="absolute",-1!==T.indexOf("%")&&(l.width=ie(e,"width"),l.height=ie(e,"height")),q.body.appendChild(W),u=Ke(W,null,!1),"simple"===k.skewType&&(u.scaleY*=Math.cos(u.skewX*F)),k.svg&&(d=k.xOrigin,p=k.yOrigin,u.x-=k.xOffset,u.y-=k.yOffset,(_.transformOrigin||_.svgOrigin)&&(T={},We(e,he(_.transformOrigin),T,_.svgOrigin,_.smoothOrigin,!0),d=T.xOrigin,p=T.yOrigin,u.x-=T.xOffset-k.xOffset,u.y-=T.yOffset-k.yOffset),(d||p)&&(m=Je(W,!0),u.x-=d-(d*m[0]+p*m[2]),u.y-=p-(d*m[1]+p*m[3]))),q.body.removeChild(W),u.perspective||(u.perspective=k.perspective),null!=_.xPercent&&(u.xPercent=de(_.xPercent,k.xPercent)),null!=_.yPercent&&(u.yPercent=de(_.yPercent,k.yPercent));else if("object"==typeof _){if(u={scaleX:de(null!=_.scaleX?_.scaleX:_.scale,k.scaleX),scaleY:de(null!=_.scaleY?_.scaleY:_.scale,k.scaleY),scaleZ:de(_.scaleZ,k.scaleZ),x:de(_.x,k.x),y:de(_.y,k.y),z:de(_.z,k.z),xPercent:de(_.xPercent,k.xPercent),yPercent:de(_.yPercent,k.yPercent),perspective:de(_.transformPerspective,k.perspective)},null!=(f=_.directionalRotation))if("object"==typeof f)for(l in f)_[l]=f[l];else _.rotation=f;"string"==typeof _.x&&-1!==_.x.indexOf("%")&&(u.x=0,u.xPercent=de(_.x,k.xPercent)),"string"==typeof _.y&&-1!==_.y.indexOf("%")&&(u.y=0,u.yPercent=de(_.y,k.yPercent)),u.rotation=pe("rotation"in _?_.rotation:"shortRotation"in _?_.shortRotation+"_short":k.rotation,k.rotation,"rotation",w),Be&&(u.rotationX=pe("rotationX"in _?_.rotationX:"shortRotationX"in _?_.shortRotationX+"_short":k.rotationX||0,k.rotationX,"rotationX",w),u.rotationY=pe("rotationY"in _?_.rotationY:"shortRotationY"in _?_.shortRotationY+"_short":k.rotationY||0,k.rotationY,"rotationY",w)),u.skewX=pe(_.skewX,k.skewX),u.skewY=pe(_.skewY,k.skewY)}for(Be&&null!=_.force3D&&(k.force3D=_.force3D,h=!0),(c=k.force3D||k.z||k.rotationX||k.rotationY||u.z||u.rotationX||u.rotationY||u.perspective)||null==_.scale||(u.scaleZ=1);-1<--y;)(1e-6<(T=u[g=je[y]]-k[g])||T<-1e-6||null!=_[g]||null!=B[g])&&(h=!0,n=new ke(k,g,k[g],T,n),g in w&&(n.e=w[g]),n.xs0=0,n.plugin=a,i._overwriteProps.push(n.n));return T="function"==typeof _.transformOrigin?_.transformOrigin(C,P):_.transformOrigin,k.svg&&(T||_.svgOrigin)&&(d=k.xOffset,p=k.yOffset,We(e,he(T),u,_.svgOrigin,_.smoothOrigin),n=Te(k,"xOrigin",(v?k:u).xOrigin,u.xOrigin,n,x),n=Te(k,"yOrigin",(v?k:u).yOrigin,u.yOrigin,n,x),d===k.xOffset&&p===k.yOffset||(n=Te(k,"xOffset",v?d:k.xOffset,k.xOffset,n,x),n=Te(k,"yOffset",v?p:k.yOffset,k.yOffset,n,x)),T="0px 0px"),(T||Be&&c&&k.zOrigin)&&(Le?(h=!0,g=Fe,T||(T=(T=(ie(e,g,S,!1,"50% 50%")+"").split(" "))[0]+" "+T[1]+" "+k.zOrigin+"px"),T+="",(n=new ke(b,g,0,0,n,-1,x)).b=b[g],n.plugin=a,Be?(l=k.zOrigin,T=T.split(" "),k.zOrigin=(2<T.length?parseFloat(T[2]):l)||0,n.xs0=n.e=T[0]+" "+(T[1]||"50%")+" 0px",(n=new ke(k,"zOrigin",0,0,n,-1,n.n)).b=l,n.xs0=n.e=k.zOrigin):n.xs0=n.e=T):he(T+"",k)),h&&(i._transformType=k.svg&&Ae||!c&&3!==this._transformType?2:3),s&&(o.scale=s),n},allowFunc:!0,prefix:!0}),Pe("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Pe("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:_e("inset(0% 0% 0% 0%)",!1,!0)}),Pe("borderRadius",{defaultValue:"0px",parser:function(e,t,r,i,n,a){t=this.format(t);var o,s,u,l,c,h,f,d,p,m,g,v,b,y,_,w,x=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],k=e.style;for(p=parseFloat(e.offsetWidth),m=parseFloat(e.offsetHeight),o=t.split(" "),s=0;s<x.length;s++)this.p.indexOf("border")&&(x[s]=ee(x[s])),-1!==(c=l=ie(e,x[s],S,!1,"0px")).indexOf(" ")&&(c=(l=c.split(" "))[0],l=l[1]),h=u=o[s],f=parseFloat(c),v=c.substr((f+"").length),""===(g=(b="="===h.charAt(1))?(d=parseInt(h.charAt(0)+"1",10),h=h.substr(2),d*=parseFloat(h),h.substr((d+"").length-(d<0?1:0))||""):(d=parseFloat(h),h.substr((d+"").length)))&&(g=T[r]||v),g!==v&&(y=ne(e,"borderLeft",f,v),_=ne(e,"borderTop",f,v),l="%"===g?(c=y/p*100+"%",_/m*100+"%"):"em"===g?(c=y/(w=ne(e,"borderLeft",1,"em"))+"em",_/w+"em"):(c=y+"px",_+"px"),b&&(h=parseFloat(c)+d+g,u=parseFloat(l)+d+g)),n=Se(k,x[s],c+" "+l,h+" "+u,!1,"0px",n);return n},prefix:!0,formatter:_e("0px 0px 0px 0px",!1,!0)}),Pe("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,r,i,n,a){return Se(e.style,r,this.format(ie(e,r,S,!1,"0px 0px")),this.format(t),!1,"0px",n)},prefix:!0,formatter:_e("0px 0px",!1,!0)}),Pe("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,r,i,n,a){var o,s,u,l,c,h,f="background-position",d=S||re(e),p=this.format((d?E?d.getPropertyValue(f+"-x")+" "+d.getPropertyValue(f+"-y"):d.getPropertyValue(f):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),m=this.format(t);if(-1!==p.indexOf("%")!=(-1!==m.indexOf("%"))&&m.split(",").length<2&&(h=ie(e,"backgroundImage").replace(k,""))&&"none"!==h){for(o=p.split(" "),s=m.split(" "),G.setAttribute("src",h),u=2;-1<--u;)(l=-1!==(p=o[u]).indexOf("%"))!=(-1!==s[u].indexOf("%"))&&(c=0===u?e.offsetWidth-G.width:e.offsetHeight-G.height,o[u]=l?parseFloat(p)/100*c+"px":parseFloat(p)/c*100+"%");p=o.join(" ")}return this.parseComplex(e.style,p,m,n,a)},formatter:he}),Pe("backgroundSize",{defaultValue:"0 0",formatter:function(e){return"co"===(e+="").substr(0,2)?e:he(-1===e.indexOf(" ")?e+" "+e:e)}}),Pe("perspective",{defaultValue:"0px",prefix:!0}),Pe("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Pe("transformStyle",{prefix:!0}),Pe("backfaceVisibility",{prefix:!0}),Pe("userSelect",{prefix:!0}),Pe("margin",{parser:we("marginTop,marginRight,marginBottom,marginLeft")}),Pe("padding",{parser:we("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Pe("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,r,i,n,a){var o,s,u;return t=E<9?(s=e.currentStyle,u=E<8?" ":",",o="rect("+s.clipTop+u+s.clipRight+u+s.clipBottom+u+s.clipLeft+")",this.format(t).split(",").join(u)):(o=this.format(ie(e,this.p,S,!1,this.dflt)),this.format(t)),this.parseComplex(e.style,o,t,n,a)}}),Pe("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Pe("autoRound,strictUnits",{parser:function(e,t,r,i,n){return n}}),Pe("border",{defaultValue:"0px solid #000",parser:function(e,t,r,i,n,a){var o=ie(e,"borderTopWidth",S,!1,"0px"),s=this.format(t).split(" "),u=s[0].replace(I,"");return"px"!==u&&(o=parseFloat(o)/ne(e,"borderTopWidth",1,u)+u),this.parseComplex(e.style,this.format(o+" "+ie(e,"borderTopStyle",S,!1,"solid")+" "+ie(e,"borderTopColor",S,!1,"#000")),s.join(" "),n,a)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(ye)||["#000"])[0]}}),Pe("borderWidth",{parser:we("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Pe("float,cssFloat,styleFloat",{parser:function(e,t,r,i,n,a){var o=e.style,s="cssFloat"in o?"cssFloat":"styleFloat";return new ke(o,s,0,0,n,-1,r,!1,0,o[s],t)}});var $e=function(e){var t,r=this.t,i=r.filter||ie(this.data,"filter")||"",n=this.s+this.c*e|0;100==n&&(t=-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(r.removeAttribute("filter"),!ie(this.data,"filter")):(r.filter=i.replace(o,""),!0)),t||(this.xn1&&(r.filter=i=i||"alpha(opacity="+n+")"),-1===i.indexOf("pacity")?0==n&&this.xn1||(r.filter=i+" alpha(opacity="+n+")"):r.filter=i.replace(R,"opacity="+n))};Pe("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,r,i,n,a){var o=parseFloat(ie(e,"opacity",S,!1,"1")),s=e.style,u="autoAlpha"===r;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+o),u&&1===o&&"hidden"===ie(e,"visibility",S)&&0!==t&&(o=0),J?n=new ke(s,"opacity",o,t-o,n):((n=new ke(s,"opacity",100*o,100*(t-o),n)).xn1=u?1:0,s.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=e,n.plugin=a,n.setRatio=$e),u&&((n=new ke(s,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",i._overwriteProps.push(n.n),i._overwriteProps.push(r)),n}});var et=function(e,t){t&&(e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(s,"-$1").toLowerCase())):e.removeAttribute(t))},tt=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,r=this.t.style;t;)t.v?r[t.p]=t.v:et(r,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Pe("className",{parser:function(e,t,r,i,n,a,o){var s,u,l,c,h,f=e.getAttribute("class")||"",d=e.style.cssText;if((n=i._classNamePT=new ke(e,r,0,0,n,2)).setRatio=tt,n.pr=-11,p=!0,n.b=f,u=oe(e,S),l=e._gsClassPT){for(c={},h=l.data;h;)c[h.p]=1,h=h._next;l.setRatio(1)}return(e._gsClassPT=n).e="="!==t.charAt(1)?t:f.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",n.e),s=se(e,u,oe(e),o,c),e.setAttribute("class",f),n.data=s.firstMPT,e.style.cssText!==d&&(e.style.cssText=d),n=n.xfirst=i.parse(e,s.difs,n,a)}});var rt=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,r,i,n,a,o=this.t.style,s=g.transform.parse;if("all"===this.e)n=!(o.cssText="");else for(i=(t=this.e.split(" ").join("").split(",")).length;-1<--i;)r=t[i],g[r]&&(g[r].parse===s?n=!0:r="transformOrigin"===r?Fe:g[r].p),et(o,r);n&&(et(o,Le),(a=this.t._gsTransform)&&(a.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Pe("clearProps",{parser:function(e,t,r,i,n){return(n=new ke(e,r,0,0,n,2)).setRatio=rt,n.e=t,n.pr=-10,n.data=i._tween,p=!0,n}}),e="bezier,throwProps,physicsProps,physics2D".split(","),Ee=e.length;Ee--;)Ce(e[Ee]);(e=U.prototype)._firstPT=e._lastParsedTransform=e._transform=null,e._onInitTween=function(e,t,r,i){if(!e.nodeType)return!1;this._target=P=e,this._tween=r,this._vars=t,C=i,M=t.autoRound,p=!1,T=t.suffixMap||U.suffixMap,S=re(e),m=this._overwriteProps;var n,a,o,s,u,l,c,h,f,d=e.style;if(v&&""===d.zIndex&&("auto"!==(n=ie(e,"zIndex",S))&&""!==n||this._addLazySet(d,"zIndex",0)),"string"==typeof t&&(s=d.cssText,n=oe(e,S),d.cssText=s+";"+t,n=se(e,n,oe(e)).difs,!J&&w.test(t)&&(n.opacity=parseFloat(RegExp.$1)),t=n,d.cssText=s),t.className?this._firstPT=a=g.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=a=this.parse(e,t,null),this._transformType){for(f=3===this._transformType,Le?b&&(v=!0,""===d.zIndex&&("auto"!==(c=ie(e,"zIndex",S))&&""!==c||this._addLazySet(d,"zIndex",0)),y&&this._addLazySet(d,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(f?"visible":"hidden"))):d.zoom=1,o=a;o&&o._next;)o=o._next;h=new ke(e,"transform",0,0,null,2),this._linkCSSP(h,null,o),h.setRatio=Le?Qe:Ze,h.data=this._transform||Ke(e,S,!0),h.tween=r,h.pr=-1,m.pop()}if(p){for(;a;){for(l=a._next,o=s;o&&o.pr>a.pr;)o=o._next;(a._prev=o?o._prev:u)?a._prev._next=a:s=a,(a._next=o)?o._prev=a:u=a,a=l}this._firstPT=s}return!0},e.parse=function(e,t,r,i){var n,a,o,s,u,l,c,h,f,d,p=e.style;for(n in t){if(l=t[n],a=g[n],"function"!=typeof l||a&&a.allowFunc||(l=l(C,P)),a)r=a.parse(e,l,n,this,r,i,t);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,e.style,"setProperty",re(e).getPropertyValue(n)+"",l+"",n,!1,n);continue}u=ie(e,n,S)+"",f="string"==typeof l,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||f&&x.test(l)?(f||(l=(3<(l=ve(l)).length?"rgba(":"rgb(")+l.join(",")+")"),r=Se(p,n,u,l,!0,"transparent",r,0,i)):f&&L.test(l)?r=Se(p,n,u,l,!0,null,r,0,i):(c=(o=parseFloat(u))||0===o?u.substr((o+"").length):"",""!==u&&"auto"!==u||(c="width"===n||"height"===n?(o=ce(e,n,S),"px"):"left"===n||"top"===n?(o=ae(e,n,S),"px"):(o="opacity"!==n?0:1,"")),""===(h=(d=f&&"="===l.charAt(1))?(s=parseInt(l.charAt(0)+"1",10),l=l.substr(2),s*=parseFloat(l),l.replace(I,"")):(s=parseFloat(l),f?l.replace(I,""):""))&&(h=n in T?T[n]:c),l=s||0===s?(d?s+o:s)+h:t[n],c!==h&&(""===h&&"lineHeight"!==n||(s||0===s)&&o&&(o=ne(e,n,o,c),"%"===h?(o/=ne(e,n,100,"%")/100,!0!==t.strictUnits&&(u=o+"%")):"em"===h||"rem"===h||"vw"===h||"vh"===h?o/=ne(e,n,1,h):"px"!==h&&(s=ne(e,n,s,h),h="px"),d&&(s||0===s)&&(l=s+o+h))),d&&(s+=o),!o&&0!==o||!s&&0!==s?void 0!==p[n]&&(l||l+""!="NaN"&&null!=l)?(r=new ke(p,n,s||o||0,0,r,-1,n,!1,0,u,l)).xs0="none"!==l||"display"!==n&&-1===n.indexOf("Style")?l:u:Z("invalid "+n+" tween value: "+t[n]):(r=new ke(p,n,o,s-o,r,0,n,!1!==M&&("px"===h||"zIndex"===n),0,u,l)).xs0=h)}i&&r&&!r.plugin&&(r.plugin=i)}return r},e.setRatio=function(e){var t,r,i,n=this._firstPT;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(t=n.c*e+n.s,n.r?t=n.r(t):t<1e-6&&-1e-6<t&&(t=0),n.type)if(1===n.type)if(2===(i=n.l))n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2;else if(3===i)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===i)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===i)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(r=n.xs0+t+n.xs1,i=1;i<n.l;i++)r+=n["xn"+i]+n["xs"+(i+1)];n.t[n.p]=r}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(e);else n.t[n.p]=t+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(e),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(t=n.r(n.s+n.c),n.type){if(1===n.type){for(i=n.l,r=n.xs0+t+n.xs1,i=1;i<n.l;i++)r+=n["xn"+i]+n["xs"+(i+1)];n.t[n.p]=r}}else n.t[n.p]=t+n.xs0;else n.t[n.p]=n.e;else n.setRatio(e);n=n._next}},e._enableTransforms=function(e){this._transform=this._transform||Ke(this._target,S,!0),this._transformType=this._transform.svg&&Ae||!e&&3!==this._transformType?2:3};var it=function(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};e._addLazySet=function(e,t,r){var i=this._firstPT=new ke(e,t,0,0,this._firstPT,2);i.e=r,i.setRatio=it,i.data=this},e._linkCSSP=function(e,t,r,i){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,i=!0),r?r._next=e:i||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=r),e},e._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&(t.r=e[t.p]),t=t._next},e._kill=function(e){var t,r,i,n=e;if(e.autoAlpha||e.alpha){for(r in n={},e)n[r]=e[r];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(e.className&&(t=this._classNamePT)&&((i=t.xfirst)&&i._prev?this._linkCSSP(i._prev,t._next,i._prev._prev):i===this._firstPT&&(this._firstPT=t._next),t._next&&this._linkCSSP(t._next,t._next._next,i._prev),this._classNamePT=null),t=this._firstPT;t;)t.plugin&&t.plugin!==r&&t.plugin._kill&&(t.plugin._kill(e),r=t.plugin),t=t._next;return a.prototype._kill.call(this,n)};var nt=function(e,t,r){var i,n,a,o;if(e.slice)for(n=e.length;-1<--n;)nt(e[n],t,r);else for(n=(i=e.childNodes).length;-1<--n;)o=(a=i[n]).type,a.style&&(t.push(oe(a)),r&&r.push(a)),1!==o&&9!==o&&11!==o||!a.childNodes.length||nt(a,t,r)};return U.cascadeTo=function(e,t,r){var i,n,a,o,s=N.to(e,t,r),u=[s],l=[],c=[],h=[],f=N._internals.reservedProps;for(e=s._targets||s.target,nt(e,l,h),s.render(t,!0,!0),nt(e,c),s.render(0,!0,!0),s._enabled(!0),i=h.length;-1<--i;)if((n=se(h[i],l[i],c[i])).firstMPT){for(a in n=n.difs,r)f[a]&&(n[a]=r[a]);for(a in o={},n)o[a]=l[i][a];u.push(N.fromTo(h[i],t,o,n))}return u},a.activate([U]),U},!0),t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(e,t,r){return this._tween=r,!0}}),u=function(t){var r=t<1?Math.pow(10,(t+"").length-2):1;return function(e){return(Math.round(e/t)*t*r|0)/r}},l=function(e,t){for(;e;)e.f||e.blob||(e.m=t||Math.round),e=e._next},(i=t.prototype)._onInitAllProps=function(){var e,t,r,i,n=this._tween,a=n.vars.roundProps,o={},s=n._propLookup.roundProps;if("object"!=typeof a||a.push)for("string"==typeof a&&(a=a.split(",")),r=a.length;-1<--r;)o[a[r]]=Math.round;else for(i in a)o[i]=u(a[i]);for(i in o)for(e=n._firstPT;e;)t=e._next,e.pg?e.t._mod(o):e.n===i&&(2===e.f&&e.t?l(e.t._firstPT,o[i]):(this._add(e.t,i,e.s,e.c,o[i]),t&&(t._prev=e._prev),e._prev?e._prev._next=t:n._firstPT===e&&(n._firstPT=t),e._next=e._prev=null,n._propLookup[i]=s)),e=t;return!1},i._add=function(e,t,r,i,n){this._addTween(e,t,r,r+i,t,n||Math.round),this._overwriteProps.push(t)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(e,t,r,i){var n,a;if("function"!=typeof e.setAttribute)return!1;for(n in t)"function"==typeof(a=t[n])&&(a=a(i,e)),this._addTween(e,"setAttribute",e.getAttribute(n)+"",a+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(e,t,r,i){"object"!=typeof t&&(t={rotation:t}),this.finals={};var n,a,o,s,u,l,c=!0===t.useRadians?2*Math.PI:360;for(n in t)"useRadians"!==n&&("function"==typeof(s=t[n])&&(s=s(i,e)),a=(l=(s+"").split("_"))[0],o=parseFloat("function"!=typeof e[n]?e[n]:e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]()),u=(s=this.finals[n]="string"==typeof a&&"="===a.charAt(1)?o+parseInt(a.charAt(0)+"1",10)*Number(a.substr(2)):Number(a)||0)-o,l.length&&(-1!==(a=l.join("_")).indexOf("short")&&(u%=c)!==u%(c/2)&&(u=u<0?u+c:u-c),-1!==a.indexOf("_cw")&&u<0?u=(u+9999999999*c)%c-(u/c|0)*c:-1!==a.indexOf("ccw")&&0<u&&(u=(u-9999999999*c)%c-(u/c|0)*c)),(1e-6<u||u<-1e-6)&&(this._addTween(e,n,o,o+u,n),this._overwriteProps.push(n)));return!0},set:function(e){var t;if(1!==e)this._super.setRatio.call(this,e);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(g){var r,i,t,e,n=_gsScope.GreenSockGlobals||_gsScope,a=n.com.greensock,o=2*Math.PI,s=Math.PI/2,u=a._class,l=function(e,t){var r=u("easing."+e,function(){},!0),i=r.prototype=new g;return i.constructor=r,i.getRatio=t,r},c=g.register||function(){},h=function(e,t,r,i,n){var a=u("easing."+e,{easeOut:new t,easeIn:new r,easeInOut:new i},!0);return c(a,e),a},v=function(e,t,r){this.t=e,this.v=t,r&&(((this.next=r).prev=this).c=r.v-t,this.gap=r.t-e)},f=function(e,t){var r=u("easing."+e,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),i=r.prototype=new g;return i.constructor=r,i.getRatio=t,i.config=function(e){return new r(e)},r},d=h("Back",f("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),f("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),f("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),p=u("easing.SlowMo",function(e,t,r){t=t||0===t?t:.7,null==e?e=.7:1<e&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=!0===r},!0),m=p.prototype=new g;return m.constructor=p,m.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1===e?0:1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},p.ease=new p(.7,.7),m.config=p.config=function(e,t,r){return new p(e,t,r)},(m=(r=u("easing.SteppedEase",function(e,t){e=e||1,this._p1=1/e,this._p2=e+(t?0:1),this._p3=t?1:0},!0)).prototype=new g).constructor=r,m.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),((this._p2*e|0)+this._p3)*this._p1},m.config=r.config=function(e,t){return new r(e,t)},(m=(i=u("easing.ExpoScaleEase",function(e,t,r){this._p1=Math.log(t/e),this._p2=t-e,this._p3=e,this._ease=r},!0)).prototype=new g).constructor=i,m.getRatio=function(e){return this._ease&&(e=this._ease.getRatio(e)),(this._p3*Math.exp(this._p1*e)-this._p3)/this._p2},m.config=i.config=function(e,t,r){return new i(e,t,r)},(m=(t=u("easing.RoughEase",function(e){for(var t,r,i,n,a,o,s=(e=e||{}).taper||"none",u=[],l=0,c=0|(e.points||20),h=c,f=!1!==e.randomize,d=!0===e.clamp,p=e.template instanceof g?e.template:null,m="number"==typeof e.strength?.4*e.strength:.4;-1<--h;)t=f?Math.random():1/c*h,r=p?p.getRatio(t):t,i="none"===s?m:"out"===s?(n=1-t)*n*m:"in"===s?t*t*m:t<.5?(n=2*t)*n*.5*m:(n=2*(1-t))*n*.5*m,f?r+=Math.random()*i-.5*i:h%2?r+=.5*i:r-=.5*i,d&&(1<r?r=1:r<0&&(r=0)),u[l++]={x:t,y:r};for(u.sort(function(e,t){return e.x-t.x}),o=new v(1,1,null),h=c;-1<--h;)a=u[h],o=new v(a.x,a.y,o);this._prev=new v(0,0,0!==o.t?o:o.next)},!0)).prototype=new g).constructor=t,m.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return(this._prev=t).v+(e-t.t)/t.gap*t.c},m.config=function(e){return new t(e)},t.ease=new t,h("Bounce",l("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),l("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),l("BounceInOut",function(e){var t=e<.5;return(e=t?1-2*e:2*e-1)<1/2.75?e*=7.5625*e:e=e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),h("Circ",l("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),l("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),l("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),h("Elastic",(e=function(e,t,r){var i=u("easing."+e,function(e,t){this._p1=1<=e?e:1,this._p2=(t||r)/(e<1?e:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),n=i.prototype=new g;return n.constructor=i,n.getRatio=t,n.config=function(e,t){return new i(e,t)},i})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),e("ElasticIn",function(e){return-this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)},.3),e("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),h("Expo",l("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),l("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),l("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),h("Sine",l("SineOut",function(e){return Math.sin(e*s)}),l("SineIn",function(e){return 1-Math.cos(e*s)}),l("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),u("easing.EaseLookup",{find:function(e){return g.map[e]}},!0),c(n.SlowMo,"SlowMo","ease,"),c(t,"RoughEase","ease,"),c(r,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(f,d){"use strict";var p={},i=f.document,m=f.GreenSockGlobals=f.GreenSockGlobals||f,e=m[d];if(e)return"undefined"!=typeof module&&module.exports&&(module.exports=e);var t,r,n,g,v,a,o,b=function(e){var t,r=e.split("."),i=m;for(t=0;t<r.length;t++)i[r[t]]=i=i[r[t]]||{};return i},h=b("com.greensock"),y=1e-8,u=function(e){var t,r=[],i=e.length;for(t=0;t!==i;r.push(e[t++]));return r},_=function(){},w=(a=Object.prototype.toString,o=a.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&a.call(e)===o)}),x={},k=function(s,u,l,c){this.sc=x[s]?x[s].sc:[],(x[s]=this).gsClass=null,this.func=l;var h=[];this.check=function(e){for(var t,r,i,n,a=u.length,o=a;-1<--a;)(t=x[u[a]]||new k(u[a],[])).gsClass?(h[a]=t.gsClass,o--):e&&t.sc.push(this);if(0===o&&l){if(i=(r=("com.greensock."+s).split(".")).pop(),n=b(r.join("."))[i]=this.gsClass=l.apply(l,h),c)if(m[i]=p[i]=n,"undefined"!=typeof module&&module.exports)if(s===d)for(a in module.exports=p[d]=n,p)n[a]=p[a];else p[d]&&(p[d][i]=n);else"function"==typeof define&&define.amd&&define((f.GreenSockAMDPath?f.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return n});for(a=0;a<this.sc.length;a++)this.sc[a].check()}},this.check(!0)},s=f._gsDefine=function(e,t,r,i){return new k(e,t,r,i)},T=h._class=function(e,t,r){return t=t||function(){},s(e,[],function(){return t},r),t};s.globals=m;var l=[0,0,1,1],S=T("easing.Ease",function(e,t,r,i){this._func=e,this._type=r||0,this._power=i||0,this._params=t?l.concat(t):l},!0),E=S.map={},c=S.register=function(e,t,r,i){for(var n,a,o,s,u=t.split(","),l=u.length,c=(r||"easeIn,easeOut,easeInOut").split(",");-1<--l;)for(a=u[l],n=i?T("easing."+a,null,!0):h.easing[a]||{},o=c.length;-1<--o;)s=c[o],E[a+"."+s]=E[s+a]=n[s]=e.getRatio?e:e[s]||new e};for((n=S.prototype)._calcEnd=!1,n.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,r=this._power,i=1===t?1-e:2===t?e:e<.5?2*e:2*(1-e);return 1===r?i*=i:2===r?i*=i*i:3===r?i*=i*i*i:4===r&&(i*=i*i*i*i),1===t?1-i:2===t?i:e<.5?i/2:1-i/2},r=(t=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--r;)n=t[r]+",Power"+r,c(new S(null,null,1,r),n,"easeOut",!0),c(new S(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),c(new S(null,null,3,r),n,"easeInOut");E.linear=h.easing.Linear.easeIn,E.swing=h.easing.Quad.easeInOut;var M=T("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(n=M.prototype).addEventListener=function(e,t,r,i,n){n=n||0;var a,o,s=this._listeners[e],u=0;for(this!==g||v||g.wake(),null==s&&(this._listeners[e]=s=[]),o=s.length;-1<--o;)(a=s[o]).c===t&&a.s===r?s.splice(o,1):0===u&&a.pr<n&&(u=o+1);s.splice(u,0,{c:t,s:r,up:i,pr:n})},n.removeEventListener=function(e,t){var r,i=this._listeners[e];if(i)for(r=i.length;-1<--r;)if(i[r].c===t)return void i.splice(r,1)},n.dispatchEvent=function(e){var t,r,i,n=this._listeners[e];if(n)for(1<(t=n.length)&&(n=n.slice(0)),r=this._eventTarget;-1<--t;)(i=n[t])&&(i.up?i.c.call(i.s||r,{type:e,target:r}):i.c.call(i.s||r))};var P=f.requestAnimationFrame,C=f.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},O=A();for(r=(t=["ms","moz","webkit","o"]).length;-1<--r&&!P;)P=f[t[r]+"RequestAnimationFrame"],C=f[t[r]+"CancelAnimationFrame"]||f[t[r]+"CancelRequestAnimationFrame"];T("Ticker",function(e,t){var n,a,o,s,u,l=this,c=A(),r=!(!1===t||!P)&&"auto",h=500,f=33,d=function(e){var t,r,i=A()-O;h<i&&(c+=i-f),O+=i,l.time=(O-c)/1e3,t=l.time-u,(!n||0<t||!0===e)&&(l.frame++,u+=t+(s<=t?.004:s-t),r=!0),!0!==e&&(o=a(d)),r&&l.dispatchEvent("tick")};M.call(l),l.time=l.frame=0,l.tick=function(){d(!0)},l.lagSmoothing=function(e,t){if(!arguments.length)return h<1e8;h=e||1e8,f=Math.min(t,h,0)},l.sleep=function(){null!=o&&(r&&C?C(o):clearTimeout(o),a=_,o=null,l===g&&(v=!1))},l.wake=function(e){null!==o?l.sleep():e?c+=-O+(O=A()):10<l.frame&&(O=A()-h+5),a=0===n?_:r&&P?P:function(e){return setTimeout(e,1e3*(u-l.time)+1|0)},l===g&&(v=!0),d(2)},l.fps=function(e){if(!arguments.length)return n;s=1/((n=e)||60),u=this.time+s,l.wake()},l.useRAF=function(e){if(!arguments.length)return r;l.sleep(),r=e,l.fps(n)},l.fps(e),setTimeout(function(){"auto"===r&&l.frame<5&&"hidden"!==(i||{}).visibilityState&&l.useRAF(!1)},1500)}),(n=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var I=T("core.Animation",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!!t.immediateRender,this.data=t.data,this._reversed=!!t.reversed,Q){v||g.wake();var r=this.vars.useFrames?Z:Q;r.add(this,r._time),this.vars.paused&&this.paused(!0)}});g=I.ticker=new h.Ticker,(n=I.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var R=function(){v&&2e3<A()-O&&("hidden"!==(i||{}).visibilityState||!g.lagSmoothing())&&g.wake();var e=setTimeout(R,2e3);e.unref&&e.unref()};R(),n.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},n.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},n.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},n.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},n.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},n.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},n.render=function(e,t,r){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},n.isActive=function(){var e,t=this._timeline,r=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<r+this.totalDuration()/this._timeScale-y},n._enabled=function(e,t){return v||g.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(e,t){return this._enabled(!1,!1)},n.kill=function(e,t){return this._kill(e,t),this},n._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},n._swapSelfInParams=function(e){for(var t=e.length,r=e.concat();-1<--t;)"{self}"===e[t]&&(r[t]=this);return r},n._callback=function(e){var t=this.vars,r=t[e],i=t[e+"Params"],n=t[e+"Scope"]||t.callbackScope||this;switch(i?i.length:0){case 0:r.call(n);break;case 1:r.call(n,i[0]);break;case 2:r.call(n,i[0],i[1]);break;default:r.apply(n,i)}},n.eventCallback=function(e,t,r,i){if("on"===(e||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[e];null==t?delete n[e]:(n[e]=t,n[e+"Params"]=w(r)&&-1!==r.join("").indexOf("{self}")?this._swapSelfInParams(r):r,n[e+"Scope"]=i),"onUpdate"===e&&(this._onUpdate=t)}return this},n.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},n.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},n.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},n.totalTime=function(e,t,r){if(v||g.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!r&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,n=this._timeline;if(i<e&&!r&&(e=i),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?i-e:e)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(z.length&&ee(),this.render(e,t,!1),z.length&&ee())}return this},n.progress=n.totalProgress=function(e,t){var r=this.duration();return arguments.length?this.totalTime(r*e,t):r?this._time/r:this.ratio},n.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},n.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(e){if(!arguments.length)return this._timeScale;var t,r;for(e=e||y,this._timeline&&this._timeline.smoothChildTiming&&(r=(t=this._pauseTime)||0===t?t:this._timeline.totalTime(),this._startTime=r-(r-this._startTime)*this._timeScale/e),this._timeScale=e,r=this.timeline;r&&r.timeline;)r._dirty=!0,r.totalDuration(),r=r.timeline;return this},n.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(e){if(!arguments.length)return this._paused;var t,r,i=this._timeline;return e!=this._paused&&i&&(v||e||g.wake(),r=(t=i.rawTime())-this._pauseTime,!e&&i.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!=r&&this._initted&&this.duration()&&(t=i.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var D=T("core.SimpleTimeline",function(e){I.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(n=D.prototype=new I).constructor=D,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(e,t,r,i){var n,a;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=this.rawTime()-(e._timeline.rawTime()-e._pauseTime)),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),n=this._last,this._sortChildren)for(a=e._startTime;n&&n._startTime>a;)n=n._prev;return n?(e._next=n._next,n._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=n,this._recent=e,this._timeline&&this._uncache(!0),this},n._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(e,t,r){var i,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;n;)i=n._next,(n._active||e>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)),n=i},n.rawTime=function(){return v||g.wake(),this._totalTime};var j=T("TweenLite",function(e,t,r){if(I.call(this,t,r),this.render=j.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:j.selector(e)||e;var i,n,a,o=e.jquery||e.length&&e!==f&&e[0]&&(e[0]===f||e[0].nodeType&&e[0].style&&!e.nodeType),s=this.vars.overwrite;if(this._overwrite=s=null==s?K[j.defaultOverwrite]:"number"==typeof s?s>>0:K[s],(o||e instanceof Array||e.push&&w(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],i=0;i<a.length;i++)(n=a[i])?"string"!=typeof n?n.length&&n!==f&&n[0]&&(n[0]===f||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(i--,1),this._targets=a=a.concat(u(n))):(this._siblings[i]=te(n,this,!1),1===s&&1<this._siblings[i].length&&ie(n,this,null,1,this._siblings[i])):"string"==typeof(n=a[i--]=j.selector(n))&&a.splice(i+1,1):a.splice(i--,1);else this._propLookup={},this._siblings=te(e,this,!1),1===s&&1<this._siblings.length&&ie(e,this,null,1,this._siblings);(this.vars.immediateRender||0===t&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-y,this.render(Math.min(0,-this._delay)))},!0),L=function(e){return e&&e.length&&e!==f&&e[0]&&(e[0]===f||e[0].nodeType&&e[0].style&&!e.nodeType)};(n=j.prototype=new I).constructor=j,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,j.version="2.1.3",j.defaultEase=n._ease=new S(null,null,1,1),j.defaultOverwrite="auto",j.ticker=g,j.autoSleep=120,j.lagSmoothing=function(e,t){g.lagSmoothing(e,t)},j.selector=f.$||f.jQuery||function(e){var t=f.$||f.jQuery;return t?(j.selector=t)(e):(i||(i=f.document),i?i.querySelectorAll?i.querySelectorAll(e):i.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var z=[],F={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/[\+-]=-?[\.\d]/,U=function(e){for(var t,r=this._firstPT;r;)t=r.blob?1===e&&null!=this.end?this.end:e?this.join(""):this.start:r.c*e+r.s,r.m?t=r.m.call(this._tween,t,this._target||r.t,this._tween):t<1e-6&&-1e-6<t&&!r.blob&&(t=0),r.f?r.fp?r.t[r.p](r.fp,t):r.t[r.p](t):r.t[r.p]=t,r=r._next},X=function(e){return(1e3*e|0)/1e3+""},q=function(e,t,r,i){var n,a,o,s,u,l,c,h=[],f=0,d="",p=0;for(h.start=e,h.end=t,e=h[0]=e+"",t=h[1]=t+"",r&&(r(h),e=h[0],t=h[1]),h.length=0,n=e.match(B)||[],a=t.match(B)||[],i&&(i._next=null,i.blob=1,h._firstPT=h._applyPT=i),u=a.length,s=0;s<u;s++)c=a[s],d+=(l=t.substr(f,t.indexOf(c,f)-f))||!s?l:",",f+=l.length,p?p=(p+1)%5:"rgba("===l.substr(-5)&&(p=1),c===n[s]||n.length<=s?d+=c:(d&&(h.push(d),d=""),o=parseFloat(n[s]),h.push(o),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:o,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-o)||0,f:0,m:p&&p<4?Math.round:X}),f+=c.length;return(d+=t.substr(f))&&h.push(d),h.setRatio=U,N.test(t)&&(h.end=null),h},H=function(e,t,r,i,n,a,o,s,u){"function"==typeof i&&(i=i(u||0,e));var l=typeof e[t],c="function"!=l?"":t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),h="get"!==r?r:c?o?e[c](o):e[c]():e[t],f="string"==typeof i&&"="===i.charAt(1),d={t:e,p:t,s:h,f:"function"==l,pg:0,n:n||t,m:a?"function"==typeof a?a:Math.round:0,pr:0,c:f?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-h||0};if(("number"!=typeof h||"number"!=typeof i&&!f)&&(o||isNaN(h)||!f&&isNaN(i)||"boolean"==typeof h||"boolean"==typeof i?(d.fp=o,d={t:q(h,f?parseFloat(d.s)+d.c+(d.s+"").replace(/[0-9\-\.]/g,""):i,s||j.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||t,pr:0,m:0}):(d.s=parseFloat(h),f||(d.c=parseFloat(i)-d.s||0))),d.c)return(d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d},W=j._internals={isArray:w,isSelector:L,lazyTweens:z,blobDif:q},G=j._plugins={},V=W.tweenLookup={},Y=0,J=W.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},K={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Z=I._rootFramesTimeline=new D,Q=I._rootTimeline=new D,$=30,ee=W.lazyRender=function(){var e,t,r=z.length;for(F={},e=0;e<r;e++)(t=z[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};Q._startTime=g.time,Z._startTime=g.frame,Q._active=Z._active=!0,setTimeout(ee,1),I._updateRoot=j.render=function(){var e,t,r;if(z.length&&ee(),Q.render((g.time-Q._startTime)*Q._timeScale,!1,!1),Z.render((g.frame-Z._startTime)*Z._timeScale,!1,!1),z.length&&ee(),g.frame>=$){for(r in $=g.frame+(parseInt(j.autoSleep,10)||120),V){for(e=(t=V[r].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete V[r]}if((!(r=Q._first)||r._paused)&&j.autoSleep&&!Z._first&&1===g._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||g.sleep()}}},g.addEventListener("tick",I._updateRoot);var te=function(e,t,r){var i,n,a=e._gsTweenID;if(V[a||(e._gsTweenID=a="t"+Y++)]||(V[a]={target:e,tweens:[]}),t&&((i=V[a].tweens)[n=i.length]=t,r))for(;-1<--n;)i[n]===t&&i.splice(n,1);return V[a].tweens},re=function(e,t,r,i){var n,a,o=e.vars.onOverwrite;return o&&(n=o(e,t,r,i)),(o=j.onOverwrite)&&(a=o(e,t,r,i)),!1!==n&&!1!==a},ie=function(e,t,r,i,n){var a,o,s,u;if(1===i||4<=i){for(u=n.length,a=0;a<u;a++)if((s=n[a])!==t)s._gc||s._kill(null,e,t)&&(o=!0);else if(5===i)break;return o}var l,c=t._startTime+y,h=[],f=0,d=0===t._duration;for(a=n.length;-1<--a;)(s=n[a])===t||s._gc||s._paused||(s._timeline!==t._timeline?(l=l||ne(t,0,d),0===ne(s,l,d)&&(h[f++]=s)):s._startTime<=c&&s._startTime+s.totalDuration()/s._timeScale>c&&((d||!s._initted)&&c-s._startTime<=2e-8||(h[f++]=s)));for(a=f;-1<--a;)if(u=(s=h[a])._firstPT,2===i&&s._kill(r,e,t)&&(o=!0),2!==i||!s._firstPT&&s._initted&&u){if(2!==i&&!re(s,t))continue;s._enabled(!1,!1)&&(o=!0)}return o},ne=function(e,t,r){for(var i=e._timeline,n=i._timeScale,a=e._startTime;i._timeline;){if(a+=i._startTime,n*=i._timeScale,i._paused)return-100;i=i._timeline}return t<(a/=n)?a-t:r&&a===t||!e._initted&&a-t<2e-8?y:(a+=e.totalDuration()/e._timeScale/n)>t+y?0:a-t-y};n._init=function(){var e,t,r,i,n,a,o=this.vars,s=this._overwrittenProps,u=this._duration,l=!!o.immediateRender,c=o.ease,h=this._startAt;if(o.startAt){for(i in h&&(h.render(-1,!0),h.kill()),n={},o.startAt)n[i]=o.startAt[i];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=l&&!1!==o.lazy,n.startAt=n.delay=null,n.onUpdate=o.onUpdate,n.onUpdateParams=o.onUpdateParams,n.onUpdateScope=o.onUpdateScope||o.callbackScope||this,this._startAt=j.to(this.target||{},0,n),l)if(0<this._time)this._startAt=null;else if(0!==u)return}else if(o.runBackwards&&0!==u)if(h)h.render(-1,!0),h.kill(),this._startAt=null;else{for(i in 0!==this._time&&(l=!1),r={},o)J[i]&&"autoCSS"!==i||(r[i]=o[i]);if(r.overwrite=0,r.data="isFromStart",r.lazy=l&&!1!==o.lazy,r.immediateRender=l,this._startAt=j.to(this.target,0,r),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof S?c:"function"==typeof c?new S(c,o.easeParams):E[c]||j.defaultEase:j.defaultEase,o.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,o.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(a=this._targets.length,e=0;e<a;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],s?s[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(t&&j._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),o.runBackwards)for(r=this._firstPT;r;)r.s+=r.c,r.c=-r.c,r=r._next;this._onUpdate=o.onUpdate,this._initted=!0},n._initProps=function(e,t,r,i,n){var a,o,s,u,l,c;if(null==e)return!1;for(a in F[e._gsTweenID]&&ee(),this.vars.css||e.style&&e!==f&&e.nodeType&&G.css&&!1!==this.vars.autoCSS&&function(e,t){var r,i={};for(r in e)J[r]||r in t&&"transform"!==r&&"x"!==r&&"y"!==r&&"width"!==r&&"height"!==r&&"className"!==r&&"border"!==r||!(!G[r]||G[r]&&G[r]._autoCSS)||(i[r]=e[r],delete e[r]);e.css=i}(this.vars,e),this.vars)if(c=this.vars[a],J[a])c&&(c instanceof Array||c.push&&w(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[a]=c=this._swapSelfInParams(c,this));else if(G[a]&&(u=new G[a])._onInitTween(e,this.vars[a],this,n)){for(this._firstPT=l={_next:this._firstPT,t:u,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:u._priority,m:0},o=u._overwriteProps.length;-1<--o;)t[u._overwriteProps[o]]=this._firstPT;(u._priority||u._onInitAllProps)&&(s=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),l._next&&(l._next._prev=l)}else t[a]=H.call(this,e,a,"get",c,a,0,null,this.vars.stringFilter,n);return i&&this._kill(i,e)?this._initProps(e,t,r,i,n):1<this._overwrite&&this._firstPT&&1<r.length&&ie(e,this,t,this._overwrite,r)?(this._kill(t,e),this._initProps(e,t,r,i,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(F[e._gsTweenID]=!0),s)},n.render=function(e,t,r){var i,n,a,o,s=this,u=s._time,l=s._duration,c=s._rawPrevTime;if(l-y<=e&&0<=e)s._totalTime=s._time=l,s.ratio=s._ease._calcEnd?s._ease.getRatio(1):1,s._reversed||(i=!0,n="onComplete",r=r||s._timeline.autoRemoveChildren),0===l&&(s._initted||!s.vars.lazy||r)&&(s._startTime===s._timeline._duration&&(e=0),(c<0||e<=0&&-y<=e||c===y&&"isPause"!==s.data)&&c!==e&&(r=!0,y<c&&(n="onReverseComplete")),s._rawPrevTime=o=!t||e||c===e?e:y);else if(e<y)s._totalTime=s._time=0,s.ratio=s._ease._calcEnd?s._ease.getRatio(0):0,(0!==u||0===l&&0<c)&&(n="onReverseComplete",i=s._reversed),-y<e?e=0:e<0&&(s._active=!1,0===l&&(s._initted||!s.vars.lazy||r)&&(0<=c&&(c!==y||"isPause"!==s.data)&&(r=!0),s._rawPrevTime=o=!t||e||c===e?e:y)),(!s._initted||s._startAt&&s._startAt.progress())&&(r=!0);else if(s._totalTime=s._time=e,s._easeType){var h=e/l,f=s._easeType,d=s._easePower;(1===f||3===f&&.5<=h)&&(h=1-h),3===f&&(h*=2),1===d?h*=h:2===d?h*=h*h:3===d?h*=h*h*h:4===d&&(h*=h*h*h*h),s.ratio=1===f?1-h:2===f?h:e/l<.5?h/2:1-h/2}else s.ratio=s._ease.getRatio(e/l);if(s._time!==u||r){if(!s._initted){if(s._init(),!s._initted||s._gc)return;if(!r&&s._firstPT&&(!1!==s.vars.lazy&&s._duration||s.vars.lazy&&!s._duration))return s._time=s._totalTime=u,s._rawPrevTime=c,z.push(s),void(s._lazy=[e,t]);s._time&&!i?s.ratio=s._ease.getRatio(s._time/l):i&&s._ease._calcEnd&&(s.ratio=s._ease.getRatio(0===s._time?0:1))}for(!1!==s._lazy&&(s._lazy=!1),s._active||!s._paused&&s._time!==u&&0<=e&&(s._active=!0),0===u&&(s._startAt&&(0<=e?s._startAt.render(e,!0,r):n||(n="_dummyGS")),s.vars.onStart&&(0===s._time&&0!==l||t||s._callback("onStart"))),a=s._firstPT;a;)a.f?a.t[a.p](a.c*s.ratio+a.s):a.t[a.p]=a.c*s.ratio+a.s,a=a._next;s._onUpdate&&(e<0&&s._startAt&&-1e-4!==e&&s._startAt.render(e,!0,r),t||(s._time!==u||i||r)&&s._callback("onUpdate")),n&&(s._gc&&!r||(e<0&&s._startAt&&!s._onUpdate&&-1e-4!==e&&s._startAt.render(e,!0,r),i&&(s._timeline.autoRemoveChildren&&s._enabled(!1,!1),s._active=!1),!t&&s.vars[n]&&s._callback(n),0===l&&s._rawPrevTime===y&&o!==y&&(s._rawPrevTime=0)))}},n._kill=function(e,t,r){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:j.selector(t)||t;var i,n,a,o,s,u,l,c,h,f=r&&this._time&&r._startTime===this._startTime&&this._timeline===r._timeline,d=this._firstPT;if((w(t)||L(t))&&"number"!=typeof t[0])for(i=t.length;-1<--i;)this._kill(e,t[i],r)&&(u=!0);else{if(this._targets){for(i=this._targets.length;-1<--i;)if(t===this._targets[i]){s=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[i]=e?this._overwrittenProps[i]||{}:"all";break}}else{if(t!==this.target)return!1;s=this._propLookup,n=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(s){if(l=e||s,c=e!==n&&"all"!==n&&e!==s&&("object"!=typeof e||!e._tempKill),r&&(j.onOverwrite||this.vars.onOverwrite)){for(a in l)s[a]&&(h||(h=[]),h.push(a));if((h||!e)&&!re(this,r,t,h))return!1}for(a in l)(o=s[a])&&(f&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,u=!0),o.pg&&o.t._kill(l)&&(u=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete s[a]),c&&(n[a]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return u},n.invalidate=function(){this._notifyPluginsOfEnabled&&j._onPluginEvent("_onDisable",this);var e=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],I.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-y,this.render(e,!1,!1!==this.vars.lazy)),this},n._enabled=function(e,t){if(v||g.wake(),e&&this._gc){var r,i=this._targets;if(i)for(r=i.length;-1<--r;)this._siblings[r]=te(i[r],this,!0);else this._siblings=te(this.target,this,!0)}return I.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&j._onPluginEvent(e?"_onEnable":"_onDisable",this)},j.to=function(e,t,r){return new j(e,t,r)},j.from=function(e,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new j(e,t,r)},j.fromTo=function(e,t,r,i){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,new j(e,t,i)},j.delayedCall=function(e,t,r,i,n){return new j(t,0,{delay:e,onComplete:t,onCompleteParams:r,callbackScope:i,onReverseComplete:t,onReverseCompleteParams:r,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},j.set=function(e,t){return new j(e,0,t)},j.getTweensOf=function(e,t){if(null==e)return[];var r,i,n,a;if(e="string"!=typeof e?e:j.selector(e)||e,(w(e)||L(e))&&"number"!=typeof e[0]){for(r=e.length,i=[];-1<--r;)i=i.concat(j.getTweensOf(e[r],t));for(r=i.length;-1<--r;)for(a=i[r],n=r;-1<--n;)a===i[n]&&i.splice(r,1)}else if(e._gsTweenID)for(r=(i=te(e).concat()).length;-1<--r;)(i[r]._gc||t&&!i[r].isActive())&&i.splice(r,1);return i||[]},j.killTweensOf=j.killDelayedCallsTo=function(e,t,r){"object"==typeof t&&(r=t,t=!1);for(var i=j.getTweensOf(e,t),n=i.length;-1<--n;)i[n]._kill(r,e)};var ae=T("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=ae.prototype},!0);if(n=ae.prototype,ae.version="1.19.0",ae.API=2,n._firstPT=null,n._addTween=H,n.setRatio=U,n._kill=function(e){var t,r=this._overwriteProps,i=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=r.length;-1<--t;)null!=e[r[t]]&&r.splice(t,1);for(;i;)null!=e[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},n._mod=n._roundProps=function(e){for(var t,r=this._firstPT;r;)(t=e[this._propName]||null!=r.n&&e[r.n.split(this._propName+"_").join("")])&&"function"==typeof t&&(2===r.f?r.t._applyPT.m=t:r.m=t),r=r._next},j._onPluginEvent=function(e,t){var r,i,n,a,o,s=t._firstPT;if("_onInitAllProps"===e){for(;s;){for(o=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:a)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:a=s,s=o}s=t._firstPT=n}for(;s;)s.pg&&"function"==typeof s.t[e]&&s.t[e]()&&(r=!0),s=s._next;return r},ae.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===ae.API&&(G[(new e[t])._propName]=e[t]);return!0},s.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,r=e.propName,i=e.priority||0,n=e.overwriteProps,a={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},o=T("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){ae.call(this,r,i),this._overwriteProps=n||[]},!0===e.global),s=o.prototype=new ae(r);for(t in(s.constructor=o).API=e.API,a)"function"==typeof e[t]&&(s[a[t]]=e[t]);return o.version=e.version,ae.activate([o]),o},t=f._gsQueue){for(r=0;r<t.length;r++)t[r]();for(n in x)x[n].func||f.console.log("GSAP encountered missing dependency: "+n)}v=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,s,e){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},P=1e-8,i=s._internals,C=i.lazyTweens,A=i.lazyRender,u=_gsScope._gsDefine.globals,l=new e(null,null,1,0),n=r.prototype=new t;return n.constructor=r,n.kill()._gc=!1,r.version="2.1.3",n.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},n.addCallback=function(e,t,r,i){return this.add(s.delayedCall(0,e,r,i),t)},n.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var r=this.getTweensOf(e,!1),i=r.length,n=this._parseTimeOrLabel(t);-1<--i;)r[i]._startTime===n&&r[i]._enabled(!1,!1);return this},n.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},n.tweenTo=function(e,t){t=t||{};var r,i,n,a={ease:l,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=t.repeat&&u.TweenMax||s;for(i in t)a[i]=t[i];return a.time=this._parseTimeOrLabel(e),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,n=new o(this,r,a),a.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||r!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),t.onStart&&t.onStart.apply(t.onStartScope||t.callbackScope||n,t.onStartParams||[])},n},n.tweenFromTo=function(e,t,r){r=r||{},e=this._parseTimeOrLabel(e),r.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},r.immediateRender=!1!==r.immediateRender;var i=this.tweenTo(t,r);return i.isFromTo=1,i.duration(Math.abs(i.vars.time-e)/this._timeScale||.001)},n.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,a,o,s,u,l,c,h,f=this,d=f._time,p=f._dirty?f.totalDuration():f._totalDuration,m=f._duration,g=f._totalTime,v=f._startTime,b=f._timeScale,y=f._rawPrevTime,_=f._paused,w=f._cycle;if(d!==f._time&&(e+=f._time-d),p-P<=e&&0<=e)f._locked||(f._totalTime=p,f._cycle=f._repeat),f._reversed||f._hasPausedChild()||(n=!0,o="onComplete",s=!!f._timeline.autoRemoveChildren,0===f._duration&&(e<=0&&-P<=e||y<0||y===P)&&y!==e&&f._first&&(s=!0,P<y&&(o="onReverseComplete"))),f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:P,f._yoyo&&1&f._cycle?f._time=e=0:e=(f._time=m)+1e-4;else if(e<P)if(f._locked||(f._totalTime=f._cycle=0),f._time=0,-P<e&&(e=0),(0!==d||0===m&&y!==P&&(0<y||e<0&&0<=y)&&!f._locked)&&(o="onReverseComplete",n=f._reversed),e<0)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(s=n=!0,o="onReverseComplete"):0<=y&&f._first&&(s=!0),f._rawPrevTime=e;else{if(f._rawPrevTime=m||!t||e||f._rawPrevTime===e?e:P,0===e&&n)for(i=f._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,f._initted||(s=!0)}else 0===m&&y<0&&(s=!0),f._time=f._rawPrevTime=e,f._locked||(f._totalTime=e,0!==f._repeat&&(u=m+f._repeatDelay,f._cycle=f._totalTime/u>>0,f._cycle&&f._cycle===f._totalTime/u&&g<=e&&f._cycle--,f._time=f._totalTime-f._cycle*u,f._yoyo&&1&f._cycle&&(f._time=m-f._time),f._time>m?e=(f._time=m)+1e-4:f._time<0?f._time=e=0:e=f._time));if(f._hasPause&&!f._forcingPlayhead&&!t){if(d<(e=f._time)||f._repeat&&w!==f._cycle)for(i=f._first;i&&i._startTime<=e&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===f._rawPrevTime||(l=i),i=i._next;else for(i=f._last;i&&i._startTime>=e&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(h=f._startTime+(f._reversed?f._duration-l._startTime:l._startTime)/f._timeScale,l._startTime<m&&(f._time=f._rawPrevTime=e=l._startTime,f._totalTime=e+f._cycle*(f._totalDuration+f._repeatDelay)))}if(f._cycle!==w&&!f._locked){var x=f._yoyo&&0!=(1&w),k=x===(f._yoyo&&0!=(1&f._cycle)),T=f._totalTime,S=f._cycle,E=f._rawPrevTime,M=f._time;if(f._totalTime=w*m,f._cycle<w?x=!x:f._totalTime+=m,f._time=d,f._rawPrevTime=0===m?y-1e-4:y,f._cycle=w,f._locked=!0,d=x?0:m,f.render(d,t,0===m),t||f._gc||f.vars.onRepeat&&(f._cycle=S,f._locked=!1,f._callback("onRepeat")),d!==f._time)return;if(k&&(f._cycle=w,f._locked=!0,d=x?m+1e-4:-1e-4,f.render(d,!0,!1)),f._locked=!1,f._paused&&!_)return;f._time=M,f._totalTime=T,f._cycle=S,f._rawPrevTime=E}if(f._time!==d&&f._first||r||s||l){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._totalTime!==g&&0<e&&(f._active=!0),0===g&&f.vars.onStart&&(0===f._totalTime&&f._totalDuration||t||f._callback("onStart")),d<=(c=f._time))for(i=f._first;i&&(a=i._next,c===f._time&&(!f._paused||_));)(i._active||i._startTime<=f._time&&!i._paused&&!i._gc)&&(l===i&&(f.pause(),f._pauseTime=h),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)),i=a;else for(i=f._last;i&&(a=i._prev,c===f._time&&(!f._paused||_));){if(i._active||i._startTime<=d&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>f._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=null,f.pause(),f._pauseTime=h}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)}i=a}f._onUpdate&&(t||(C.length&&A(),f._callback("onUpdate"))),o&&(f._locked||f._gc||v!==f._startTime&&b===f._timeScale||(0===f._time||p>=f.totalDuration())&&(n&&(C.length&&A(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!t&&f.vars[o]&&f._callback(o)))}else g!==f._totalTime&&f._onUpdate&&(t||f._callback("onUpdate"))},n.getActive=function(e,t,r){var i,n,a=[],o=this.getChildren(e||null==e,t||null==e,!!r),s=0,u=o.length;for(i=0;i<u;i++)(n=o[i]).isActive()&&(a[s++]=n);return a},n.getLabelAfter=function(e){e||0!==e&&(e=this._time);var t,r=this.getLabelsArray(),i=r.length;for(t=0;t<i;t++)if(r[t].time>e)return r[t].name;return null},n.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),r=t.length;-1<--r;)if(t[r].time<e)return t[r].name;return null},n.getLabelsArray=function(){var e,t=[],r=0;for(e in this._labels)t[r++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},n.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},n.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()||0},n.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},n.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},n.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var r=this._duration,i=this._cycle,n=i*(r+this._repeatDelay);return r<e&&(e=r),this.totalTime(this._yoyo&&1&i?r-e+n:this._repeat?e+n:e,t)},n.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},n.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},n.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+P)},r},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(h,f,p){var m=function(e){f.call(this,e);var t,r,i=this.vars;for(r in this._labels={},this.autoRemoveChildren=!!i.autoRemoveChildren,this.smoothChildTiming=!!i.smoothChildTiming,this._sortChildren=!0,this._onUpdate=i.onUpdate,i)t=i[r],d(t)&&-1!==t.join("").indexOf("{self}")&&(i[r]=this._swapSelfInParams(t));d(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=p._internals,t=m._internals={},g=e.isSelector,d=e.isArray,v=e.lazyTweens,b=e.lazyRender,o=_gsScope._gsDefine.globals,y=function(e){var t,r={};for(t in e)r[t]=e[t];return r},_=function(e,t,r){var i,n,a=e.cycle;for(i in a)n=a[i],e[i]="function"==typeof n?n(r,t[r],t):n[r%n.length];delete e.cycle},a=t.pauseCallback=function(){},l=function(e,t,r,i){var n="immediateRender";return n in t||(t[n]=!(r&&!1===r[n]||i)),t},w=function(e){if("function"==typeof e)return e;var p="object"==typeof e?e:{each:e},m=p.ease,g=p.from||0,v=p.base||0,b={},y=isNaN(g),_=p.axis,w={center:.5,end:1}[g]||0;return function(e,t,r){var i,n,a,o,s,u,l,c,h,f=(r||p).length,d=b[f];if(!d){if(!(h="auto"===p.grid?0:(p.grid||[1/0])[0])){for(l=-1/0;l<(l=r[h++].getBoundingClientRect().left)&&h<f;);h--}for(d=b[f]=[],i=y?Math.min(h,f)*w-.5:g%h,n=y?f*w/h-.5:g/h|0,c=1/(l=0),u=0;u<f;u++)a=u%h-i,o=n-(u/h|0),d[u]=s=_?Math.abs("y"===_?o:a):Math.sqrt(a*a+o*o),l<s&&(l=s),s<c&&(c=s);d.max=l-c,d.min=c,d.v=f=p.amount||p.each*(f<h?f-1:_?"y"===_?f/h:h:Math.max(h,f/h))||0,d.b=f<0?v-f:v}return f=(d[e]-d.min)/d.max,d.b+(m?m.getRatio(f):f)*d.v}},r=m.prototype=new f;return m.version="2.1.3",m.distribute=w,r.constructor=m,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(e,t,r,i){var n=r.repeat&&o.TweenMax||p;return t?this.add(new n(e,t,r),i):this.set(e,r,i)},r.from=function(e,t,r,i){return this.add((r.repeat&&o.TweenMax||p).from(e,t,l(0,r)),i)},r.fromTo=function(e,t,r,i,n){var a=i.repeat&&o.TweenMax||p;return i=l(0,i,r),t?this.add(a.fromTo(e,t,r,i),n):this.set(e,i,n)},r.staggerTo=function(e,t,r,i,n,a,o,s){var u,l,c=new m({onComplete:a,onCompleteParams:o,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),h=w(r.stagger||i),f=r.startAt,d=r.cycle;for("string"==typeof e&&(e=p.selector(e)||e),g(e=e||[])&&(e=function(e){var t,r=[],i=e.length;for(t=0;t!==i;r.push(e[t++]));return r}(e)),l=0;l<e.length;l++)u=y(r),f&&(u.startAt=y(f),f.cycle&&_(u.startAt,e,l)),d&&(_(u,e,l),null!=u.duration&&(t=u.duration,delete u.duration)),c.to(e[l],t,u,h(l,e[l],e));return this.add(c,n)},r.staggerFrom=function(e,t,r,i,n,a,o,s){return r.runBackwards=!0,this.staggerTo(e,t,l(0,r),i,n,a,o,s)},r.staggerFromTo=function(e,t,r,i,n,a,o,s,u){return i.startAt=r,this.staggerTo(e,t,l(0,i,r),n,a,o,s,u)},r.call=function(e,t,r,i){return this.add(p.delayedCall(0,e,t,r),i)},r.set=function(e,t,r){return this.add(new p(e,0,l(0,t,null,!0)),r)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,i,n,a,o=new m(e),s=o._timeline;for(null==t&&(t=!0),s._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=s._time,n=s._first;n;)a=n._next,t&&n instanceof p&&n.target===n.vars.onComplete||((i=n._startTime-n._delay)<0&&(r=1),o.add(n,i)),n=a;return s.add(o,0),r&&o.totalDuration(),o},r.add=function(e,t,r,i){var n,a,o,s,u,l,c=this;if("number"!=typeof t&&(t=c._parseTimeOrLabel(t,0,!0,e)),!(e instanceof h)){if(e instanceof Array||e&&e.push&&d(e)){for(r=r||"normal",i=i||0,n=t,a=e.length,o=0;o<a;o++)d(s=e[o])&&(s=new m({tweens:s})),c.add(s,n),"string"!=typeof s&&"function"!=typeof s&&("sequence"===r?n=s._startTime+s.totalDuration()/s._timeScale:"start"===r&&(s._startTime-=s.delay())),n+=i;return c._uncache(!0)}if("string"==typeof e)return c.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=p.delayedCall(0,e)}if(f.prototype.add.call(c,e,t),(e._time||!e._duration&&e._initted)&&(n=(c.rawTime()-e._startTime)*e._timeScale,(!e._duration||1e-5<Math.abs(Math.max(0,Math.min(e.totalDuration(),n)))-e._totalTime)&&e.render(n,!1,!1)),(c._gc||c._time===c._duration)&&!c._paused&&c._duration<c.duration())for(l=(u=c).rawTime()>e._startTime;u._timeline;)l&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return c},r.remove=function(e){if(e instanceof h){this._remove(e,!1);var t=e._timeline=e.vars.useFrames?h._rootFramesTimeline:h._rootTimeline;return e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&d(e)){for(var r=e.length;-1<--r;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},r._remove=function(e,t){return f.prototype._remove.call(this,e,t),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},r.insert=r.insertMultiple=function(e,t,r,i){return this.add(e,t||0,r,i)},r.appendMultiple=function(e,t,r,i){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),r,i)},r.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},r.addPause=function(e,t,r,i){var n=p.delayedCall(0,a,r,i||this);return n.vars.onComplete=n.vars.onReverseComplete=t,n.data="isPause",this._hasPause=!0,this.add(n,e)},r.removeLabel=function(e){return delete this._labels[e],this},r.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},r._parseTimeOrLabel=function(e,t,r,i){var n,a;if(i instanceof h&&i.timeline===this)this.remove(i);else if(i&&(i instanceof Array||i.push&&d(i)))for(a=i.length;-1<--a;)i[a]instanceof h&&i[a].timeline===this&&this.remove(i[a]);if(n="number"!=typeof e||t?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof t)return this._parseTimeOrLabel(t,r&&"number"==typeof e&&null==this._labels[t]?e-n:0,r);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=n);else{if(-1===(a=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=n+t:t:this._labels[e]+t;t=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=1<a?this._parseTimeOrLabel(e.substr(0,a-1),0,r):n}return Number(e)+t},r.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(e,t){return this.play(e,t)},r.gotoAndStop=function(e,t){return this.pause(e,t)},r.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,a,o,s,u,l,c,h=this,f=h._time,d=h._dirty?h.totalDuration():h._totalDuration,p=h._startTime,m=h._timeScale,g=h._paused;if(f!==h._time&&(e+=h._time-f),h._hasPause&&!h._forcingPlayhead&&!t){if(f<e)for(i=h._first;i&&i._startTime<=e&&!u;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===h._rawPrevTime||(u=i),i=i._next;else for(i=h._last;i&&i._startTime>=e&&!u;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(u=i),i=i._prev;u&&(h._time=h._totalTime=e=u._startTime,c=h._startTime+(h._reversed?h._duration-e:e)/h._timeScale)}if(d-1e-8<=e&&0<=e)h._totalTime=h._time=d,h._reversed||h._hasPausedChild()||(n=!0,o="onComplete",s=!!h._timeline.autoRemoveChildren,0===h._duration&&(e<=0&&-1e-8<=e||h._rawPrevTime<0||1e-8===h._rawPrevTime)&&h._rawPrevTime!==e&&h._first&&(s=!0,1e-8<h._rawPrevTime&&(o="onReverseComplete"))),h._rawPrevTime=h._duration||!t||e||h._rawPrevTime===e?e:1e-8,e=d+1e-4;else if(e<1e-8)if(h._totalTime=h._time=0,-1e-8<e&&(e=0),(0!==f||0===h._duration&&1e-8!==h._rawPrevTime&&(0<h._rawPrevTime||e<0&&0<=h._rawPrevTime))&&(o="onReverseComplete",n=h._reversed),e<0)h._active=!1,h._timeline.autoRemoveChildren&&h._reversed?(s=n=!0,o="onReverseComplete"):0<=h._rawPrevTime&&h._first&&(s=!0),h._rawPrevTime=e;else{if(h._rawPrevTime=h._duration||!t||e||h._rawPrevTime===e?e:1e-8,0===e&&n)for(i=h._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,h._initted||(s=!0)}else h._totalTime=h._time=h._rawPrevTime=e;if(h._time!==f&&h._first||r||s||u){if(h._initted||(h._initted=!0),h._active||!h._paused&&h._time!==f&&0<e&&(h._active=!0),0===f&&h.vars.onStart&&(0===h._time&&h._duration||t||h._callback("onStart")),f<=(l=h._time))for(i=h._first;i&&(a=i._next,l===h._time&&(!h._paused||g));)(i._active||i._startTime<=l&&!i._paused&&!i._gc)&&(u===i&&(h.pause(),h._pauseTime=c),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)),i=a;else for(i=h._last;i&&(a=i._prev,l===h._time&&(!h._paused||g));){if(i._active||i._startTime<=f&&!i._paused&&!i._gc){if(u===i){for(u=i._prev;u&&u.endTime()>h._time;)u.render(u._reversed?u.totalDuration()-(e-u._startTime)*u._timeScale:(e-u._startTime)*u._timeScale,t,r),u=u._prev;u=null,h.pause(),h._pauseTime=c}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)}i=a}h._onUpdate&&(t||(v.length&&b(),h._callback("onUpdate"))),o&&(h._gc||p!==h._startTime&&m===h._timeScale||(0===h._time||d>=h.totalDuration())&&(n&&(v.length&&b(),h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[o]&&h._callback(o)))}},r._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},r.getChildren=function(e,t,r,i){i=i||-9999999999;for(var n=[],a=this._first,o=0;a;)a._startTime<i||(a instanceof p?!1!==t&&(n[o++]=a):(!1!==r&&(n[o++]=a),!1!==e&&(o=(n=n.concat(a.getChildren(!0,t,r))).length))),a=a._next;return n},r.getTweensOf=function(e,t){var r,i,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),i=(r=p.getTweensOf(e)).length;-1<--i;)(r[i].timeline===this||t&&this._contains(r[i]))&&(a[o++]=r[i]);return n&&this._enabled(!1,!0),a},r.recent=function(){return this._recent},r._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(e,t,r){r=r||0;for(var i,n=this._first,a=this._labels;n;)n._startTime>=r&&(n._startTime+=e),n=n._next;if(t)for(i in a)a[i]>=r&&(a[i]+=e);return this._uncache(!0)},r._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var r=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),i=r.length,n=!1;-1<--i;)r[i]._kill(e,t)&&(n=!0);return n},r.clear=function(e){var t=this.getChildren(!1,!0,!0),r=t.length;for(this._time=this._totalTime=0;-1<--r;)t[r]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return h.prototype.invalidate.call(this)},r._enabled=function(e,t){if(e===this._gc)for(var r=this._first;r;)r._enabled(e,!0),r=r._next;return f.prototype._enabled.call(this,e,t)},r.totalTime=function(e,t,r){this._forcingPlayhead=!0;var i=h.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},r.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,r,i=0,n=this,a=n._last,o=999999999999;a;)t=a._prev,a._dirty&&a.totalDuration(),a._startTime>o&&n._sortChildren&&!a._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(a,a._startTime-a._delay),n._calculatingDuration=0):o=a._startTime,a._startTime<0&&!a._paused&&(i-=a._startTime,n._timeline.smoothChildTiming&&(n._startTime+=a._startTime/n._timeScale,n._time-=a._startTime,n._totalTime-=a._startTime,n._rawPrevTime-=a._startTime),n.shiftChildren(-a._startTime,!1,-9999999999),o=0),i<(r=a._startTime+a._totalDuration/a._timeScale)&&(i=r),a=t;n._duration=n._totalDuration=i,n._dirty=!1}return this._totalDuration},r.paused=function(e){if(!1===e&&this._paused)for(var t=this._first;t;)t._startTime===this._time&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return h.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===h._rootFramesTimeline},r.rawTime=function(e){return e&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).TimelineMax};"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}(),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){"use strict";var t=[],T=k.document,i=Object.getPrototypeOf,s=t.slice,m=t.concat,u=t.push,n=t.indexOf,r={},a=r.toString,g=r.hasOwnProperty,o=g.toString,l=o.call(Object),v={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,noModule:!0};function _(e,t,r){var i,n=(t=t||T).createElement("script");if(n.text=e,r)for(i in c)r[i]&&(n[i]=r[i]);t.head.appendChild(n).parentNode.removeChild(n)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[a.call(e)]||"object":typeof e}var S=function(e,t){return new S.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function f(e){var t=!!e&&"length"in e&&e.length,r=w(e);return!b(e)&&!y(e)&&("array"===r||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:"3.3.1",constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(r){return this.pushStack(S.map(this,function(e,t){return r.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(0<=r&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,r,i,n,a,o=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||b(o)||(o={}),s===u&&(o=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=o[t],o!==(i=e[t])&&(l&&i&&(S.isPlainObject(i)||(n=Array.isArray(i)))?(a=n?(n=!1,r&&Array.isArray(r)?r:[]):r&&S.isPlainObject(r)?r:{},o[t]=S.extend(l,a,i)):void 0!==i&&(o[t]=i));return o},S.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r;return!(!e||"[object Object]"!==a.call(e))&&(!(t=i(e))||"function"==typeof(r=g.call(t,"constructor")&&t.constructor)&&o.call(r)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){_(e)},each:function(e,t){var r,i=0;if(f(e))for(r=e.length;i<r&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(f(Object(e))?S.merge(r,"string"==typeof e?[e]:e):u.call(r,e)),r},inArray:function(e,t,r){return null==t?-1:n.call(t,e,r)},merge:function(e,t){for(var r=+t.length,i=0,n=e.length;i<r;i++)e[n++]=t[i];return e.length=n,e},grep:function(e,t,r){for(var i=[],n=0,a=e.length,o=!r;n<a;n++)!t(e[n],n)!=o&&i.push(e[n]);return i},map:function(e,t,r){var i,n,a=0,o=[];if(f(e))for(i=e.length;a<i;a++)null!=(n=t(e[a],a,r))&&o.push(n);else for(a in e)null!=(n=t(e[a],a,r))&&o.push(n);return m.apply([],o)},guid:1,support:v}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){r["[object "+t+"]"]=t.toLowerCase()});var d=function(r){var e,d,_,a,n,p,h,m,w,u,l,x,k,o,T,g,s,c,v,S="sizzle"+1*new Date,b=r.document,E=0,i=0,f=oe(),y=oe(),M=oe(),P=function(e,t){return e===t&&(l=!0),0},C={}.hasOwnProperty,t=[],A=t.pop,O=t.push,I=t.push,R=t.slice,D=function(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+L+"*("+z+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+L+"*\\]",B=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",N=new RegExp(L+"+","g"),U=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),X=new RegExp("^"+L+"*,"+L+"*"),q=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),H=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),W=new RegExp(B),G=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),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("^(?:"+j+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,$=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ee=function(e,t,r){var i="0x"+t-65536;return i!=i||r?t:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){x()},ne=be(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{I.apply(t=R.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){I={apply:t.length?function(e,t){O.apply(e,R.call(t))}:function(e,t){for(var r=e.length,i=0;e[r++]=t[i++];);e.length=r-1}}}function ae(e,t,r,i){var n,a,o,s,u,l,c,h=t&&t.ownerDocument,f=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return r;if(!i&&((t?t.ownerDocument||t:b)!==k&&x(t),t=t||k,T)){if(11!==f&&(u=Z.exec(e)))if(n=u[1]){if(9===f){if(!(o=t.getElementById(n)))return r;if(o.id===n)return r.push(o),r}else if(h&&(o=h.getElementById(n))&&v(t,o)&&o.id===n)return r.push(o),r}else{if(u[2])return I.apply(r,t.getElementsByTagName(e)),r;if((n=u[3])&&d.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(n)),r}if(d.qsa&&!M[e+" "]&&(!g||!g.test(e))){if(1!==f)h=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,re):t.setAttribute("id",s=S),a=(l=p(e)).length;a--;)l[a]="#"+s+" "+ve(l[a]);c=l.join(","),h=Q.test(e)&&me(t.parentNode)||t}if(c)try{return I.apply(r,h.querySelectorAll(c)),r}catch(e){}finally{s===S&&t.removeAttribute("id")}}}return m(e.replace(U,"$1"),t,r,i)}function oe(){var i=[];return function e(t,r){return i.push(t+" ")>_.cacheLength&&delete e[i.shift()],e[t+" "]=r}}function se(e){return e[S]=!0,e}function ue(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var r=e.split("|"),i=r.length;i--;)_.attrHandle[r[i]]=t}function ce(e,t){var r=t&&e,i=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function he(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(r){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===r}}function de(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ne(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(o){return se(function(a){return a=+a,se(function(e,t){for(var r,i=o([],e.length,a),n=i.length;n--;)e[r=i[n]]&&(e[r]=!(t[r]=e[r]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=ae.support={},n=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},x=ae.setDocument=function(e){var t,r,i=e?e.ownerDocument||e:b;return i!==k&&9===i.nodeType&&i.documentElement&&(o=(k=i).documentElement,T=!n(k),b!==k&&(r=k.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),d.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ue(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(k.getElementsByClassName),d.getById=ue(function(e){return o.appendChild(e).id=S,!k.getElementsByName||!k.getElementsByName(S).length}),d.getById?(_.filter.ID=function(e){var t=e.replace($,ee);return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var r=t.getElementById(e);return r?[r]:[]}}):(_.filter.ID=function(e){var r=e.replace($,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===r}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var r,i,n,a=t.getElementById(e);if(a){if((r=a.getAttributeNode("id"))&&r.value===e)return[a];for(n=t.getElementsByName(e),i=0;a=n[i++];)if((r=a.getAttributeNode("id"))&&r.value===e)return[a]}return[]}}),_.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var r,i=[],n=0,a=t.getElementsByTagName(e);if("*"!==e)return a;for(;r=a[n++];)1===r.nodeType&&i.push(r);return i},_.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},s=[],g=[],(d.qsa=K.test(k.querySelectorAll))&&(ue(function(e){o.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+S+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||g.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),o.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(d.matchesSelector=K.test(c=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ue(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(o.compareDocumentPosition),v=t||K.test(o.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?function(e,t){if(e===t)return l=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===r?e===k||e.ownerDocument===b&&v(b,e)?-1:t===k||t.ownerDocument===b&&v(b,t)?1:u?D(u,e)-D(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return l=!0,0;var r,i=0,n=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!n||!a)return e===k?-1:t===k?1:n?-1:a?1:u?D(u,e)-D(u,t):0;if(n===a)return ce(e,t);for(r=e;r=r.parentNode;)o.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;o[i]===s[i];)i++;return i?ce(o[i],s[i]):o[i]===b?-1:s[i]===b?1:0}),k},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&x(e),t=t.replace(H,"='$1']"),d.matchesSelector&&T&&!M[t+" "]&&(!s||!s.test(t))&&(!g||!g.test(t)))try{var r=c.call(e,t);if(r||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return 0<ae(t,k,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!==k&&x(e),v(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==k&&x(e);var r=_.attrHandle[t.toLowerCase()],i=r&&C.call(_.attrHandle,t.toLowerCase())?r(e,t,!T):void 0;return void 0!==i?i:d.attributes||!T?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ae.escape=function(e){return(e+"").replace(te,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],i=0,n=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(P),l){for(;t=e[n++];)t===e[n]&&(i=r.push(n));for(;i--;)e.splice(r[i],1)}return u=null,e},a=ae.getText=function(e){var t,r="",i=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=a(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[i++];)r+=a(t);return r},(_=ae.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,ee),e[3]=(e[3]||e[4]||e[5]||"").replace($,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&W.test(r)&&(t=p(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=f[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&f(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(r,i,n){return function(e){var t=ae.attr(e,r);return null==t?"!="===i:!i||(t+="","="===i?t===n:"!="===i?t!==n:"^="===i?n&&0===t.indexOf(n):"*="===i?n&&-1<t.indexOf(n):"$="===i?n&&t.slice(-n.length)===n:"~="===i?-1<(" "+t.replace(N," ")+" ").indexOf(n):"|="===i&&(t===n||t.slice(0,n.length+1)===n+"-"))}},CHILD:function(p,e,t,m,g){var v="nth"!==p.slice(0,3),b="last"!==p.slice(-4),y="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,r){var i,n,a,o,s,u,l=v!=b?"nextSibling":"previousSibling",c=e.parentNode,h=y&&e.nodeName.toLowerCase(),f=!r&&!y,d=!1;if(c){if(v){for(;l;){for(o=e;o=o[l];)if(y?o.nodeName.toLowerCase()===h:1===o.nodeType)return!1;u=l="only"===p&&!u&&"nextSibling"}return!0}if(u=[b?c.firstChild:c.lastChild],b&&f){for(d=(s=(i=(n=(a=(o=c)[S]||(o[S]={}))[o.uniqueID]||(a[o.uniqueID]={}))[p]||[])[0]===E&&i[1])&&i[2],o=s&&c.childNodes[s];o=++s&&o&&o[l]||(d=s=0)||u.pop();)if(1===o.nodeType&&++d&&o===e){n[p]=[E,s,d];break}}else if(f&&(d=s=(i=(n=(a=(o=e)[S]||(o[S]={}))[o.uniqueID]||(a[o.uniqueID]={}))[p]||[])[0]===E&&i[1]),!1===d)for(;(o=++s&&o&&o[l]||(d=s=0)||u.pop())&&((y?o.nodeName.toLowerCase()!==h:1!==o.nodeType)||!++d||(f&&((n=(a=o[S]||(o[S]={}))[o.uniqueID]||(a[o.uniqueID]={}))[p]=[E,d]),o!==e)););return(d-=g)===m||d%m==0&&0<=d/m}}},PSEUDO:function(e,a){var t,o=_.pseudos[e]||_.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[S]?o(a):1<o.length?(t=[e,e,"",a],_.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,t){for(var r,i=o(e,a),n=i.length;n--;)e[r=D(e,i[n])]=!(t[r]=i[n])}):function(e){return o(e,0,t)}):o}},pseudos:{not:se(function(e){var i=[],n=[],s=h(e.replace(U,"$1"));return s[S]?se(function(e,t,r,i){for(var n,a=s(e,null,i,[]),o=e.length;o--;)(n=a[o])&&(e[o]=!(t[o]=n))}):function(e,t,r){return i[0]=e,s(i,null,r,n),i[0]=null,!n.pop()}}),has:se(function(t){return function(e){return 0<ae(t,e).length}}),contains:se(function(t){return t=t.replace($,ee),function(e){return-1<(e.textContent||e.innerText||a(e)).indexOf(t)}}),lang:se(function(r){return G.test(r||"")||ae.error("unsupported lang: "+r),r=r.replace($,ee).toLowerCase(),function(e){var t;do{if(t=T?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===r||0===t.indexOf(r+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===o},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,r){return[r<0?r+t:r]}),even:pe(function(e,t){for(var r=0;r<t;r+=2)e.push(r);return e}),odd:pe(function(e,t){for(var r=1;r<t;r+=2)e.push(r);return e}),lt:pe(function(e,t,r){for(var i=r<0?r+t:r;0<=--i;)e.push(i);return e}),gt:pe(function(e,t,r){for(var i=r<0?r+t:r;++i<t;)e.push(i);return e})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[e]=he(e);for(e in{submit:!0,reset:!0})_.pseudos[e]=fe(e);function ge(){}function ve(e){for(var t=0,r=e.length,i="";t<r;t++)i+=e[t].value;return i}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,h=t&&"parentNode"===c,f=i++;return e.first?function(e,t,r){for(;e=e[u];)if(1===e.nodeType||h)return s(e,t,r);return!1}:function(e,t,r){var i,n,a,o=[E,f];if(r){for(;e=e[u];)if((1===e.nodeType||h)&&s(e,t,r))return!0}else for(;e=e[u];)if(1===e.nodeType||h)if(n=(a=e[S]||(e[S]={}))[e.uniqueID]||(a[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((i=n[c])&&i[0]===E&&i[1]===f)return o[2]=i[2];if((n[c]=o)[2]=s(e,t,r))return!0}return!1}}function ye(n){return 1<n.length?function(e,t,r){for(var i=n.length;i--;)if(!n[i](e,t,r))return!1;return!0}:n[0]}function _e(e,t,r,i,n){for(var a,o=[],s=0,u=e.length,l=null!=t;s<u;s++)(a=e[s])&&(r&&!r(a,i,n)||(o.push(a),l&&t.push(s)));return o}function we(d,p,m,g,v,e){return g&&!g[S]&&(g=we(g)),v&&!v[S]&&(v=we(v,e)),se(function(e,t,r,i){var n,a,o,s=[],u=[],l=t.length,c=e||function(e,t,r){for(var i=0,n=t.length;i<n;i++)ae(e,t[i],r);return r}(p||"*",r.nodeType?[r]:r,[]),h=!d||!e&&p?c:_e(c,s,d,r,i),f=m?v||(e?d:l||g)?[]:t:h;if(m&&m(h,f,r,i),g)for(n=_e(f,u),g(n,[],r,i),a=n.length;a--;)(o=n[a])&&(f[u[a]]=!(h[u[a]]=o));if(e){if(v||d){if(v){for(n=[],a=f.length;a--;)(o=f[a])&&n.push(h[a]=o);v(null,f=[],n,i)}for(a=f.length;a--;)(o=f[a])&&-1<(n=v?D(e,o):s[a])&&(e[n]=!(t[n]=o))}}else f=_e(f===t?f.splice(l,f.length):f),v?v(null,t,f,i):I.apply(t,f)})}function xe(e){for(var n,t,r,i=e.length,a=_.relative[e[0].type],o=a||_.relative[" "],s=a?1:0,u=be(function(e){return e===n},o,!0),l=be(function(e){return-1<D(n,e)},o,!0),c=[function(e,t,r){var i=!a&&(r||t!==w)||((n=t).nodeType?u(e,t,r):l(e,t,r));return n=null,i}];s<i;s++)if(t=_.relative[e[s].type])c=[be(ye(c),t)];else{if((t=_.filter[e[s].type].apply(null,e[s].matches))[S]){for(r=++s;r<i&&!_.relative[e[r].type];r++);return we(1<s&&ye(c),1<s&&ve(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(U,"$1"),t,s<r&&xe(e.slice(s,r)),r<i&&xe(e=e.slice(r)),r<i&&ve(e))}c.push(t)}return ye(c)}return ge.prototype=_.filters=_.pseudos,_.setFilters=new ge,p=ae.tokenize=function(e,t){var r,i,n,a,o,s,u,l=y[e+" "];if(l)return t?0:l.slice(0);for(o=e,s=[],u=_.preFilter;o;){for(a in r&&!(i=X.exec(o))||(i&&(o=o.slice(i[0].length)||o),s.push(n=[])),r=!1,(i=q.exec(o))&&(r=i.shift(),n.push({value:r,type:i[0].replace(U," ")}),o=o.slice(r.length)),_.filter)!(i=V[a].exec(o))||u[a]&&!(i=u[a](i))||(r=i.shift(),n.push({value:r,type:a,matches:i}),o=o.slice(r.length));if(!r)break}return t?o.length:o?ae.error(e):y(e,s).slice(0)},h=ae.compile=function(e,t){var r,i=[],n=[],a=M[e+" "];if(!a){for(t||(t=p(e)),r=t.length;r--;)(a=xe(t[r]))[S]?i.push(a):n.push(a);(a=M(e,function(g,v){var b=0<v.length,y=0<g.length,e=function(e,t,r,i,n){var a,o,s,u=0,l="0",c=e&&[],h=[],f=w,d=e||y&&_.find.TAG("*",n),p=E+=null==f?1:Math.random()||.1,m=d.length;for(n&&(w=t===k||t||n);l!==m&&null!=(a=d[l]);l++){if(y&&a){for(o=0,t||a.ownerDocument===k||(x(a),r=!T);s=g[o++];)if(s(a,t||k,r)){i.push(a);break}n&&(E=p)}b&&((a=!s&&a)&&u--,e&&c.push(a))}if(u+=l,b&&l!==u){for(o=0;s=v[o++];)s(c,h,t,r);if(e){if(0<u)for(;l--;)c[l]||h[l]||(h[l]=A.call(i));h=_e(h)}I.apply(i,h),n&&!e&&0<h.length&&1<u+v.length&&ae.uniqueSort(i)}return n&&(E=p,w=f),c};return b?se(e):e}(n,i))).selector=e}return a},m=ae.select=function(e,t,r,i){var n,a,o,s,u,l="function"==typeof e&&e,c=!i&&p(e=l.selector||e);if(r=r||[],1===c.length){if(2<(a=c[0]=c[0].slice(0)).length&&"ID"===(o=a[0]).type&&9===t.nodeType&&T&&_.relative[a[1].type]){if(!(t=(_.find.ID(o.matches[0].replace($,ee),t)||[])[0]))return r;l&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(n=V.needsContext.test(e)?0:a.length;n--&&(o=a[n],!_.relative[s=o.type]);)if((u=_.find[s])&&(i=u(o.matches[0].replace($,ee),Q.test(a[0].type)&&me(t.parentNode)||t))){if(a.splice(n,1),!(e=i.length&&ve(a)))return I.apply(r,i),r;break}}return(l||h(e,c))(i,t,!T,r,!t||Q.test(e)&&me(t.parentNode)||t),r},d.sortStable=S.split("").sort(P).join("")===S,d.detectDuplicates=!!l,x(),d.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(j,function(e,t,r){var i;if(!r)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ae}(k);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var p=function(e,t,r){for(var i=[],n=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&S(e).is(r))break;i.push(e)}return i},x=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r},E=S.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(e,r,i){return b(r)?S.grep(e,function(e,t){return!!r.call(e,t,e)!==i}):r.nodeType?S.grep(e,function(e){return e===r!==i}):"string"!=typeof r?S.grep(e,function(e){return-1<n.call(r,e)!==i}):S.filter(r,e,i)}S.filter=function(e,t,r){var i=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?S.find.matchesSelector(i,e)?[i]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,r,i=this.length,n=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<i;t++)if(S.contains(n[t],this))return!0}));for(r=this.pushStack([]),t=0;t<i;t++)S.find(e,n[t],r);return 1<i?S.uniqueSort(r):r},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&E.test(e)?S(e):e||[],!1).length}});var A,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,r){var i,n;if(!e)return this;if(r=r||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==r.ready?r.ready(e):e(S):S.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),P.test(i[1])&&S.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(n=T.getElementById(i[2]))&&(this[0]=n,this.length=1),this}).prototype=S.fn,A=S(T);var I=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),r=t.length;return this.filter(function(){for(var e=0;e<r;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var r,i=0,n=this.length,a=[],o="string"!=typeof e&&S(e);if(!E.test(e))for(;i<n;i++)for(r=this[i];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(o?-1<o.index(r):1===r.nodeType&&S.find.matchesSelector(r,e))){a.push(r);break}return this.pushStack(1<a.length?S.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?n.call(S(e),this[0]):n.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p(e,"parentNode")},parentsUntil:function(e,t,r){return p(e,"parentNode",r)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return p(e,"nextSibling")},prevAll:function(e){return p(e,"previousSibling")},nextUntil:function(e,t,r){return p(e,"nextSibling",r)},prevUntil:function(e,t,r){return p(e,"previousSibling",r)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return M(e,"iframe")?e.contentDocument:(M(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(i,n){S.fn[i]=function(e,t){var r=S.map(this,n,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(r=S.filter(t,r)),1<this.length&&(R[i]||S.uniqueSort(r),I.test(i)&&r.reverse()),this.pushStack(r)}});var j=/[^\x20\t\r\n\f]+/g;function L(e){return e}function z(e){throw e}function F(e,t,r,i){var n;try{e&&b(n=e.promise)?n.call(e).done(t).fail(r):e&&b(n=e.then)?n.call(e,t,r):t.apply(void 0,[e].slice(i))}catch(e){r.apply(void 0,[e])}}S.Callbacks=function(i){i="string"==typeof i?function(e){var r={};return S.each(e.match(j)||[],function(e,t){r[t]=!0}),r}(i):S.extend({},i);var r,e,t,n,a=[],o=[],s=-1,u=function(){for(n=n||i.once,t=r=!0;o.length;s=-1)for(e=o.shift();++s<a.length;)!1===a[s].apply(e[0],e[1])&&i.stopOnFalse&&(s=a.length,e=!1);i.memory||(e=!1),r=!1,n&&(a=e?[]:"")},l={add:function(){return a&&(e&&!r&&(s=a.length-1,o.push(e)),function r(e){S.each(e,function(e,t){b(t)?i.unique&&l.has(t)||a.push(t):t&&t.length&&"string"!==w(t)&&r(t)})}(arguments),e&&!r&&u()),this},remove:function(){return S.each(arguments,function(e,t){for(var r;-1<(r=S.inArray(t,a,r));)a.splice(r,1),r<=s&&s--}),this},has:function(e){return e?-1<S.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return n=o=[],a=e="",this},disabled:function(){return!a},lock:function(){return n=o=[],e||r||(a=e=""),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],o.push(t),r||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!t}};return l},S.extend({Deferred:function(e){var a=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var n=arguments;return S.Deferred(function(i){S.each(a,function(e,t){var r=b(n[t[4]])&&n[t[4]];s[t[1]](function(){var e=r&&r.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,r?[e]:arguments)})}),n=null}).promise()},then:function(t,r,i){var u=0;function l(n,a,o,s){return function(){var r=this,i=arguments,e=function(){var e,t;if(!(n<u)){if((e=o.apply(r,i))===a.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?s?t.call(e,l(u,a,L,s),l(u,a,z,s)):(u++,t.call(e,l(u,a,L,s),l(u,a,z,s),l(u,a,L,a.notifyWith))):(o!==L&&(r=void 0,i=[e]),(s||a.resolveWith)(r,i))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=n+1&&(o!==z&&(r=void 0,i=[e]),a.rejectWith(r,i))}};n?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),k.setTimeout(t))}}return S.Deferred(function(e){a[0][3].add(l(0,e,b(i)?i:L,e.notifyWith)),a[1][3].add(l(0,e,b(t)?t:L)),a[2][3].add(l(0,e,b(r)?r:z))}).promise()},promise:function(e){return null!=e?S.extend(e,o):o}},s={};return S.each(a,function(e,t){var r=t[2],i=t[5];o[t[1]]=r.add,i&&r.add(function(){n=i},a[3-e][2].disable,a[3-e][3].disable,a[0][2].lock,a[0][3].lock),r.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=r.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(e){var r=arguments.length,t=r,i=Array(t),n=s.call(arguments),a=S.Deferred(),o=function(t){return function(e){i[t]=this,n[t]=1<arguments.length?s.call(arguments):e,--r||a.resolveWith(i,n)}};if(r<=1&&(F(e,a.done(o(t)).resolve,a.reject,!r),"pending"===a.state()||b(n[t]&&n[t].then)))return a.then();for(;t--;)F(n[t],o(t),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){k.console&&k.console.warn&&e&&B.test(e.name)&&k.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){k.setTimeout(function(){throw e})};var N=S.Deferred();function U(){T.removeEventListener("DOMContentLoaded",U),k.removeEventListener("load",U),S.ready()}S.fn.ready=function(e){return N.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||N.resolveWith(T,[S])}}),S.ready.then=N.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?k.setTimeout(S.ready):(T.addEventListener("DOMContentLoaded",U),k.addEventListener("load",U));var X=function(e,t,r,i,n,a,o){var s=0,u=e.length,l=null==r;if("object"===w(r))for(s in n=!0,r)X(e,t,s,r[s],!0,a,o);else if(void 0!==i&&(n=!0,b(i)||(o=!0),l&&(t=o?(t.call(e,i),null):(l=t,function(e,t,r){return l.call(S(e),r)})),t))for(;s<u;s++)t(e[s],r,o?i:i.call(e[s],s,t(e[s],r)));return n?e:l?t.call(e):u?t(e[0],r):a},q=/^-ms-/,H=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function G(e){return e.replace(q,"ms-").replace(H,W)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=S.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,r){var i,n=this.cache(e);if("string"==typeof t)n[G(t)]=r;else for(i in t)n[G(i)]=t[i];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,r){return void 0===t||t&&"string"==typeof t&&void 0===r?this.get(e,t):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,i=e[this.expando];if(void 0!==i){if(void 0!==t){r=(t=Array.isArray(t)?t.map(G):(t=G(t))in i?[t]:t.match(j)||[]).length;for(;r--;)delete i[t[r]]}(void 0===t||S.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var J=new Y,K=new Y,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function $(e,t,r){var i;if(void 0===r&&1===e.nodeType)if(i="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(i))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(r)}catch(e){}K.set(e,t,r)}else r=void 0;return r}S.extend({hasData:function(e){return K.hasData(e)||J.hasData(e)},data:function(e,t,r){return K.access(e,t,r)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,r){return J.access(e,t,r)},_removeData:function(e,t){J.remove(e,t)}}),S.fn.extend({data:function(r,e){var t,i,n,a=this[0],o=a&&a.attributes;if(void 0!==r)return"object"==typeof r?this.each(function(){K.set(this,r)}):X(this,function(e){var t;if(a&&void 0===e)return void 0!==(t=K.get(a,r))?t:void 0!==(t=$(a,r))?t:void 0;this.each(function(){K.set(this,r,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(n=K.get(a),1===a.nodeType&&!J.get(a,"hasDataAttrs"))){for(t=o.length;t--;)o[t]&&0===(i=o[t].name).indexOf("data-")&&(i=G(i.slice(5)),$(a,i,n[i]));J.set(a,"hasDataAttrs",!0)}return n},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),S.extend({queue:function(e,t,r){var i;if(e)return t=(t||"fx")+"queue",i=J.get(e,t),r&&(!i||Array.isArray(r)?i=J.access(e,t,S.makeArray(r)):i.push(r)),i||[]},dequeue:function(e,t){t=t||"fx";var r=S.queue(e,t),i=r.length,n=r.shift(),a=S._queueHooks(e,t);"inprogress"===n&&(n=r.shift(),i--),n&&("fx"===t&&r.unshift("inprogress"),delete a.stop,n.call(e,function(){S.dequeue(e,t)},a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return J.get(e,r)||J.access(e,r,{empty:S.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",r])})})}}),S.fn.extend({queue:function(t,r){var e=2;return"string"!=typeof t&&(r=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===r?this:this.each(function(){var e=S.queue(this,t,r);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,i=1,n=S.Deferred(),a=this,o=this.length,s=function(){--i||n.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(r=J.get(a[o],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(s));return s(),n.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&S.contains(e.ownerDocument,e)&&"none"===S.css(e,"display")},ne=function(e,t,r,i){var n,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in n=r.apply(e,i||[]),t)e.style[a]=o[a];return n};function ae(e,t,r,i){var n,a,o=20,s=i?function(){return i.cur()}:function(){return S.css(e,t,"")},u=s(),l=r&&r[3]||(S.cssNumber[t]?"":"px"),c=(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;o--;)S.style(e,t,c+l),(1-a)*(1-(a=s()/u||.5))<=0&&(o=0),c/=a;c*=2,S.style(e,t,c+l),r=r||[]}return r&&(c=+c||+u||0,n=r[1]?c+(r[1]+1)*r[2]:+r[2],i&&(i.unit=l,i.start=c,i.end=n)),n}var oe={};function se(e,t){for(var r,i,n,a,o,s,u,l=[],c=0,h=e.length;c<h;c++)(i=e[c]).style&&(r=i.style.display,t?("none"===r&&(l[c]=J.get(i,"display")||null,l[c]||(i.style.display="")),""===i.style.display&&ie(i)&&(l[c]=(u=o=a=void 0,o=(n=i).ownerDocument,s=n.nodeName,(u=oe[s])||(a=o.body.appendChild(o.createElement(s)),u=S.css(a,"display"),a.parentNode.removeChild(a),"none"===u&&(u="block"),oe[s]=u)))):"none"!==r&&(l[c]="none",J.set(i,"display",r)));for(c=0;c<h;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return se(this,!0)},hide:function(){return se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?S(this).show():S(this).hide()})}});var ue=/^(?:checkbox|radio)$/i,le=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,he={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,"",""]};function fe(e,t){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?S.merge([e],r):r}function de(e,t){for(var r=0,i=e.length;r<i;r++)J.set(e[r],"globalEval",!t||J.get(t[r],"globalEval"))}he.optgroup=he.option,he.tbody=he.tfoot=he.colgroup=he.caption=he.thead,he.th=he.td;var pe,me,ge=/<|&#?\w+;/;function ve(e,t,r,i,n){for(var a,o,s,u,l,c,h=t.createDocumentFragment(),f=[],d=0,p=e.length;d<p;d++)if((a=e[d])||0===a)if("object"===w(a))S.merge(f,a.nodeType?[a]:a);else if(ge.test(a)){for(o=o||h.appendChild(t.createElement("div")),s=(le.exec(a)||["",""])[1].toLowerCase(),u=he[s]||he._default,o.innerHTML=u[1]+S.htmlPrefilter(a)+u[2],c=u[0];c--;)o=o.lastChild;S.merge(f,o.childNodes),(o=h.firstChild).textContent=""}else f.push(t.createTextNode(a));for(h.textContent="",d=0;a=f[d++];)if(i&&-1<S.inArray(a,i))n&&n.push(a);else if(l=S.contains(a.ownerDocument,a),o=fe(h.appendChild(a),"script"),l&&de(o),r)for(c=0;a=o[c++];)ce.test(a.type||"")&&r.push(a);return h}pe=T.createDocumentFragment().appendChild(T.createElement("div")),(me=T.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),v.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var be=T.documentElement,ye=/^key/,_e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function ke(){return!1}function Te(){try{return T.activeElement}catch(e){}}function Se(e,t,r,i,n,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(i=i||r,r=void 0),t)Se(e,s,r,i,t[s],a);return e}if(null==i&&null==n?(n=r,i=r=void 0):null==n&&("string"==typeof r?(n=i,i=void 0):(n=i,i=r,r=void 0)),!1===n)n=ke;else if(!n)return e;return 1===a&&(o=n,(n=function(e){return S().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=S.guid++)),e.each(function(){S.event.add(this,t,n,i,r)})}S.event={global:{},add:function(t,e,r,i,n){var a,o,s,u,l,c,h,f,d,p,m,g=J.get(t);if(g)for(r.handler&&(r=(a=r).handler,n=a.selector),n&&S.find.matchesSelector(be,n),r.guid||(r.guid=S.guid++),(u=g.events)||(u=g.events={}),(o=g.handle)||(o=g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(j)||[""]).length;l--;)d=m=(s=we.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(h=S.event.special[d]||{},d=(n?h.delegateType:h.bindType)||d,h=S.event.special[d]||{},c=S.extend({type:d,origType:m,data:i,handler:r,guid:r.guid,selector:n,needsContext:n&&S.expr.match.needsContext.test(n),namespace:p.join(".")},a),(f=u[d])||((f=u[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,o)||t.addEventListener&&t.addEventListener(d,o)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=r.guid)),n?f.splice(f.delegateCount++,0,c):f.push(c),S.event.global[d]=!0)},remove:function(e,t,r,i,n){var a,o,s,u,l,c,h,f,d,p,m,g=J.hasData(e)&&J.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(j)||[""]).length;l--;)if(d=m=(s=we.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(h=S.event.special[d]||{},f=u[d=(i?h.delegateType:h.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=f.length;a--;)c=f[a],!n&&m!==c.origType||r&&r.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(a,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(e,c));o&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,p,g.handle)||S.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],r,i,!0);S.isEmptyObject(u)&&J.remove(e,"handle events")}},dispatch:function(e){var t,r,i,n,a,o,s=S.event.fix(e),u=new Array(arguments.length),l=(J.get(this,"events")||{})[s.type]||[],c=S.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(o=S.event.handlers.call(this,s,l),t=0;(n=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=n.elem,r=0;(a=n.handlers[r++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(i=((S.event.special[a.origType]||{}).handle||a.handler).apply(n.elem,u))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var r,i,n,a,o,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],o={},r=0;r<u;r++)void 0===o[n=(i=t[r]).selector+" "]&&(o[n]=i.needsContext?-1<S(n,this).index(l):S.find(n,this,null,[l]).length),o[n]&&a.push(i);a.length&&s.push({elem:l,handlers:a})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Te()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Te()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&M(this,"input"))return this.click(),!1},_default:function(e){return M(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?xe:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=xe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=xe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=xe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ye.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&_e.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,n){S.event.special[e]={delegateType:n,bindType:n,handle:function(e){var t,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||S.contains(this,r))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=n),t}}}),S.fn.extend({on:function(e,t,r,i){return Se(this,e,t,r,i)},one:function(e,t,r,i){return Se(this,e,t,r,i,1)},off:function(e,t,r){var i,n;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,S(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=ke),this.each(function(){S.event.remove(this,e,r,t)});for(n in e)this.off(n,t,e[n]);return this}});var Ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Me=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ce=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ae(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var r,i,n,a,o,s,u,l;if(1===t.nodeType){if(J.hasData(e)&&(a=J.access(e),o=J.set(t,a),l=a.events))for(n in delete o.handle,o.events={},l)for(r=0,i=l[n].length;r<i;r++)S.event.add(t,n,l[n][r]);K.hasData(e)&&(s=K.access(e),u=S.extend({},s),K.set(t,u))}}function De(r,i,n,a){i=m.apply([],i);var e,t,o,s,u,l,c=0,h=r.length,f=h-1,d=i[0],p=b(d);if(p||1<h&&"string"==typeof d&&!v.checkClone&&Pe.test(d))return r.each(function(e){var t=r.eq(e);p&&(i[0]=d.call(this,e,t.html())),De(t,i,n,a)});if(h&&(t=(e=ve(i,r[0].ownerDocument,!1,r,a)).firstChild,1===e.childNodes.length&&(e=t),t||a)){for(s=(o=S.map(fe(e,"script"),Oe)).length;c<h;c++)u=e,c!==f&&(u=S.clone(u,!0,!0),s&&S.merge(o,fe(u,"script"))),n.call(r[c],u,c);if(s)for(l=o[o.length-1].ownerDocument,S.map(o,Ie),c=0;c<s;c++)u=o[c],ce.test(u.type||"")&&!J.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&S._evalUrl(u.src):_(u.textContent.replace(Ce,""),l,u))}return r}function je(e,t,r){for(var i,n=t?S.filter(t,e):e,a=0;null!=(i=n[a]);a++)r||1!==i.nodeType||S.cleanData(fe(i)),i.parentNode&&(r&&S.contains(i.ownerDocument,i)&&de(fe(i,"script")),i.parentNode.removeChild(i));return e}S.extend({htmlPrefilter:function(e){return e.replace(Ee,"<$1></$2>")},clone:function(e,t,r){var i,n,a,o,s,u,l,c=e.cloneNode(!0),h=S.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(o=fe(c),i=0,n=(a=fe(e)).length;i<n;i++)s=a[i],u=o[i],void 0,"input"===(l=u.nodeName.toLowerCase())&&ue.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(r)for(a=a||fe(e),o=o||fe(c),i=0,n=a.length;i<n;i++)Re(a[i],o[i]);else Re(e,c);return 0<(o=fe(c,"script")).length&&de(o,!h&&fe(e,"script")),c},cleanData:function(e){for(var t,r,i,n=S.event.special,a=0;void 0!==(r=e[a]);a++)if(V(r)){if(t=r[J.expando]){if(t.events)for(i in t.events)n[i]?S.event.remove(r,i):S.removeEvent(r,i,t.handle);r[J.expando]=void 0}r[K.expando]&&(r[K.expando]=void 0)}}}),S.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return X(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return De(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ae(this,e).appendChild(e)})},prepend:function(){return De(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ae(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},r=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!he[(le.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;r<i;r++)1===(t=this[r]||{}).nodeType&&(S.cleanData(fe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var r=[];return De(this,arguments,function(e){var t=this.parentNode;S.inArray(this,r)<0&&(S.cleanData(fe(this)),t&&t.replaceChild(e,this))},r)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){S.fn[e]=function(e){for(var t,r=[],i=S(e),n=i.length-1,a=0;a<=n;a++)t=a===n?this:this.clone(!0),S(i[a])[o](t),u.apply(r,t.get());return this.pushStack(r)}});var Le=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=k),t.getComputedStyle(e)},Fe=new RegExp(re.join("|"),"i");function Be(e,t,r){var i,n,a,o,s=e.style;return(r=r||ze(e))&&(""!==(o=r.getPropertyValue(t)||r[t])||S.contains(e.ownerDocument,e)||(o=S.style(e,t)),!v.pixelBoxStyles()&&Le.test(o)&&Fe.test(t)&&(i=s.width,n=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=r.width,s.width=i,s.minWidth=n,s.maxWidth=a)),void 0!==o?o+"":o}function Ne(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",be.appendChild(s).appendChild(u);var e=k.getComputedStyle(u);r="1%"!==e.top,o=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",n=36===u.offsetWidth||"absolute",be.removeChild(s),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,n,a,o,s=T.createElement("div"),u=T.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),o},scrollboxSize:function(){return e(),n}}))}();var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,qe={position:"absolute",visibility:"hidden",display:"block"},He={letterSpacing:"0",fontWeight:"400"},We=["Webkit","Moz","ms"],Ge=T.createElement("div").style;function Ve(e){var t=S.cssProps[e];return t||(t=S.cssProps[e]=function(e){if(e in Ge)return e;for(var t=e[0].toUpperCase()+e.slice(1),r=We.length;r--;)if((e=We[r]+t)in Ge)return e}(e)||e),t}function Ye(e,t,r){var i=te.exec(t);return i?Math.max(0,i[2]-(r||0))+(i[3]||"px"):t}function Je(e,t,r,i,n,a){var o="width"===t?1:0,s=0,u=0;if(r===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(u+=S.css(e,r+re[o],!0,n)),i?("content"===r&&(u-=S.css(e,"padding"+re[o],!0,n)),"margin"!==r&&(u-=S.css(e,"border"+re[o]+"Width",!0,n))):(u+=S.css(e,"padding"+re[o],!0,n),"padding"!==r?u+=S.css(e,"border"+re[o]+"Width",!0,n):s+=S.css(e,"border"+re[o]+"Width",!0,n));return!i&&0<=a&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-u-s-.5))),u}function Ke(e,t,r){var i=ze(e),n=Be(e,t,i),a="border-box"===S.css(e,"boxSizing",!1,i),o=a;if(Le.test(n)){if(!r)return n;n="auto"}return o=o&&(v.boxSizingReliable()||n===e.style[t]),("auto"===n||!parseFloat(n)&&"inline"===S.css(e,"display",!1,i))&&(n=e["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(n=parseFloat(n)||0)+Je(e,t,r||(a?"border":"content"),o,i,n)+"px"}function Ze(e,t,r,i,n){return new Ze.prototype.init(e,t,r,i,n)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=Be(e,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,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:{},style:function(e,t,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,a,o,s=G(t),u=Xe.test(t),l=e.style;if(u||(t=Ve(s)),o=S.cssHooks[t]||S.cssHooks[s],void 0===r)return o&&"get"in o&&void 0!==(n=o.get(e,!1,i))?n:l[t];"string"===(a=typeof r)&&(n=te.exec(r))&&n[1]&&(r=ae(e,t,n),a="number"),null!=r&&r==r&&("number"===a&&(r+=n&&n[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==r||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(e,r,i))||(u?l.setProperty(t,r):l[t]=r))}},css:function(e,t,r,i){var n,a,o,s=G(t);return Xe.test(t)||(t=Ve(s)),(o=S.cssHooks[t]||S.cssHooks[s])&&"get"in o&&(n=o.get(e,!0,r)),void 0===n&&(n=Be(e,t,i)),"normal"===n&&t in He&&(n=He[t]),""===r||r?(a=parseFloat(n),!0===r||isFinite(a)?a||0:n):n}}),S.each(["height","width"],function(e,s){S.cssHooks[s]={get:function(e,t,r){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,s,r):ne(e,qe,function(){return Ke(e,s,r)})},set:function(e,t,r){var i,n=ze(e),a="border-box"===S.css(e,"boxSizing",!1,n),o=r&&Je(e,s,r,a,n);return a&&v.scrollboxSize()===n.position&&(o-=Math.ceil(e["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(n[s])-Je(e,s,"border",!1,n)-.5)),o&&(i=te.exec(t))&&"px"!==(i[3]||"px")&&(e.style[s]=t,t=S.css(e,s)),Ye(0,t,o)}}}),S.cssHooks.marginLeft=Ne(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-ne(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(n,a){S.cssHooks[n+a]={expand:function(e){for(var t=0,r={},i="string"==typeof e?e.split(" "):[e];t<4;t++)r[n+re[t]+a]=i[t]||i[t-2]||i[0];return r}},"margin"!==n&&(S.cssHooks[n+a].set=Ye)}),S.fn.extend({css:function(e,t){return X(this,function(e,t,r){var i,n,a={},o=0;if(Array.isArray(t)){for(i=ze(e),n=t.length;o<n;o++)a[t[o]]=S.css(e,t[o],!1,i);return a}return void 0!==r?S.style(e,t,r):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ze).prototype={constructor:Ze,init:function(e,t,r,i,n,a){this.elem=e,this.prop=r,this.easing=n||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(S.cssNumber[r]?"":"px")},cur:function(){var e=Ze.propHooks[this.prop];return e&&e.get?e.get(this):Ze.propHooks._default.get(this)},run:function(e){var t,r=Ze.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):Ze.propHooks._default.set(this),this}}).init.prototype=Ze.prototype,(Ze.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[S.cssProps[e.prop]]&&!S.cssHooks[e.prop]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ze.prototype.init,S.fx.step={};var Qe,$e,et,tt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function nt(){$e&&(!1===T.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(nt):k.setTimeout(nt,S.fx.interval),S.fx.tick())}function at(){return k.setTimeout(function(){Qe=void 0}),Qe=Date.now()}function ot(e,t){var r,i=0,n={height:e};for(t=t?1:0;i<4;i+=2-t)n["margin"+(r=re[i])]=n["padding"+r]=e;return t&&(n.opacity=n.width=e),n}function st(e,t,r){for(var i,n=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),a=0,o=n.length;a<o;a++)if(i=n[a].call(r,t,e))return i}function ut(a,e,t){var r,o,i=0,n=ut.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var e=Qe||at(),t=Math.max(0,l.startTime+l.duration-e),r=1-(t/l.duration||0),i=0,n=l.tweens.length;i<n;i++)l.tweens[i].run(r);return s.notifyWith(a,[l,r,t]),r<1&&n?t:(n||s.notifyWith(a,[l,1,0]),s.resolveWith(a,[l]),!1)},l=s.promise({elem:a,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Qe||at(),duration:t.duration,tweens:[],createTween:function(e,t){var r=S.Tween(a,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var t=0,r=e?l.tweens.length:0;if(o)return this;for(o=!0;t<r;t++)l.tweens[t].run(1);return e?(s.notifyWith(a,[l,1,0]),s.resolveWith(a,[l,e])):s.rejectWith(a,[l,e]),this}}),c=l.props;for(!function(e,t){var r,i,n,a,o;for(r in e)if(n=t[i=G(r)],a=e[r],Array.isArray(a)&&(n=a[1],a=e[r]=a[0]),r!==i&&(e[i]=a,delete e[r]),(o=S.cssHooks[i])&&"expand"in o)for(r in a=o.expand(a),delete e[i],a)r in e||(e[r]=a[r],t[r]=n);else t[i]=n}(c,l.opts.specialEasing);i<n;i++)if(r=ut.prefilters[i].call(l,a,c,l.opts))return b(r.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return S.map(c,st,l),b(l.opts.start)&&l.opts.start.call(a,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:a,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ut,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);return ae(r.elem,e,te.exec(t),r),r}]},tweener:function(e,t){for(var r,i=0,n=(e=b(e)?(t=e,["*"]):e.match(j)).length;i<n;i++)r=e[i],ut.tweeners[r]=ut.tweeners[r]||[],ut.tweeners[r].unshift(t)},prefilters:[function(e,t,r){var i,n,a,o,s,u,l,c,h="width"in t||"height"in t,f=this,d={},p=e.style,m=e.nodeType&&ie(e),g=J.get(e,"fxshow");for(i in r.queue||(null==(o=S._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,S.queue(e,"fx").length||o.empty.fire()})})),t)if(n=t[i],rt.test(n)){if(delete t[i],a=a||"toggle"===n,n===(m?"hide":"show")){if("show"!==n||!g||void 0===g[i])continue;m=!0}d[i]=g&&g[i]||S.style(e,i)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(i in h&&1===e.nodeType&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=J.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(se([e],!0),l=e.style.display||l,c=S.css(e,"display"),se([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(f.done(function(){p.display=l}),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),r.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]})),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:l}),a&&(g.hidden=!m),m&&se([e],!0),f.done(function(){for(i in m||se([e]),J.remove(e,"fxshow"),d)S.style(e,i,d[i])})),u=st(m?g[i]:0,i,f),i in g||(g[i]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),S.speed=function(e,t,r){var i=e&&"object"==typeof e?S.extend({},e):{complete:r||!r&&t||b(e)&&e,duration:e,easing:r&&t||t&&!b(t)&&t};return S.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in S.fx.speeds?i.duration=S.fx.speeds[i.duration]:i.duration=S.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&S.dequeue(this,i.queue)},i},S.fn.extend({fadeTo:function(e,t,r,i){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,r,i)},animate:function(t,e,r,i){var n=S.isEmptyObject(t),a=S.speed(e,r,i),o=function(){var e=ut(this,S.extend({},t),a);(n||J.get(this,"finish"))&&e.stop(!0)};return o.finish=o,n||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(n,e,a){var o=function(e){var t=e.stop;delete e.stop,t(a)};return"string"!=typeof n&&(a=e,e=n,n=void 0),e&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var e=!0,t=null!=n&&n+"queueHooks",r=S.timers,i=J.get(this);if(t)i[t]&&i[t].stop&&o(i[t]);else for(t in i)i[t]&&i[t].stop&&it.test(t)&&o(i[t]);for(t=r.length;t--;)r[t].elem!==this||null!=n&&r[t].queue!==n||(r[t].anim.stop(a),e=!1,r.splice(t,1));!e&&a||S.dequeue(this,n)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=J.get(this),r=t[o+"queue"],i=t[o+"queueHooks"],n=S.timers,a=r?r.length:0;for(t.finish=!0,S.queue(this,o,[]),i&&i.stop&&i.stop.call(this,!0),e=n.length;e--;)n[e].elem===this&&n[e].queue===o&&(n[e].anim.stop(!0),n.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,i){var n=S.fn[i];S.fn[i]=function(e,t,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(i,!0),e,t,r)}}),S.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){S.fn[e]=function(e,t,r){return this.animate(i,e,t,r)}}),S.timers=[],S.fx.tick=function(){var e,t=0,r=S.timers;for(Qe=Date.now();t<r.length;t++)(e=r[t])()||r[t]!==e||r.splice(t--,1);r.length||S.fx.stop(),Qe=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){$e||($e=!0,nt())},S.fx.stop=function(){$e=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(i,e){return i=S.fx&&S.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var r=k.setTimeout(e,i);t.stop=function(){k.clearTimeout(r)}})},et=T.createElement("input"),tt=T.createElement("select").appendChild(T.createElement("option")),et.type="checkbox",v.checkOn=""!==et.value,v.optSelected=tt.selected,(et=T.createElement("input")).value="t",et.type="radio",v.radioValue="t"===et.value;var lt,ct=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return X(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,r){var i,n,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?S.prop(e,t,r):(1===a&&S.isXMLDoc(e)||(n=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?lt:void 0)),void 0!==r?null===r?void S.removeAttr(e,t):n&&"set"in n&&void 0!==(i=n.set(e,r,t))?i:(e.setAttribute(t,r+""),r):n&&"get"in n&&null!==(i=n.get(e,t))?i:null==(i=S.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&M(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,i=0,n=t&&t.match(j);if(n&&1===e.nodeType)for(;r=n[i++];)e.removeAttribute(r)}}),lt={set:function(e,t,r){return!1===t?S.removeAttr(e,r):e.setAttribute(r,r),r}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var o=ct[t]||S.find.attr;ct[t]=function(e,t,r){var i,n,a=t.toLowerCase();return r||(n=ct[a],ct[a]=i,i=null!=o(e,t,r)?a:null,ct[a]=n),i}});var ht=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function dt(e){return(e.match(j)||[]).join(" ")}function pt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}S.fn.extend({prop:function(e,t){return X(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,r){var i,n,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&S.isXMLDoc(e)||(t=S.propFix[t]||t,n=S.propHooks[t]),void 0!==r?n&&"set"in n&&void 0!==(i=n.set(e,r,t))?i:e[t]=r:n&&"get"in n&&null!==(i=n.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,r,i,n,a,o,s,u=0;if(b(t))return this.each(function(e){S(this).addClass(t.call(this,e,pt(this)))});if((e=mt(t)).length)for(;r=this[u++];)if(n=pt(r),i=1===r.nodeType&&" "+dt(n)+" "){for(o=0;a=e[o++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");n!==(s=dt(i))&&r.setAttribute("class",s)}return this},removeClass:function(t){var e,r,i,n,a,o,s,u=0;if(b(t))return this.each(function(e){S(this).removeClass(t.call(this,e,pt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)for(;r=this[u++];)if(n=pt(r),i=1===r.nodeType&&" "+dt(n)+" "){for(o=0;a=e[o++];)for(;-1<i.indexOf(" "+a+" ");)i=i.replace(" "+a+" "," ");n!==(s=dt(i))&&r.setAttribute("class",s)}return this},toggleClass:function(n,t){var a=typeof n,o="string"==a||Array.isArray(n);return"boolean"==typeof t&&o?t?this.addClass(n):this.removeClass(n):b(n)?this.each(function(e){S(this).toggleClass(n.call(this,e,pt(this),t),t)}):this.each(function(){var e,t,r,i;if(o)for(t=0,r=S(this),i=mt(n);e=i[t++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==n&&"boolean"!=a||((e=pt(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===n?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,r,i=0;for(t=" "+e+" ";r=this[i++];)if(1===r.nodeType&&-1<(" "+dt(pt(r))+" ").indexOf(t))return!0;return!1}});var gt=/\r/g;S.fn.extend({val:function(r){var i,e,n,t=this[0];return arguments.length?(n=b(r),this.each(function(e){var t;1===this.nodeType&&(null==(t=n?r.call(this,e,S(this).val()):r)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(i=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(gt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:dt(S.text(e))}},select:{get:function(e){var t,r,i,n=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],u=o?a+1:n.length;for(i=a<0?u:o?a:0;i<u;i++)if(((r=n[i]).selected||i===a)&&!r.disabled&&(!r.parentNode.disabled||!M(r.parentNode,"optgroup"))){if(t=S(r).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var r,i,n=e.options,a=S.makeArray(t),o=n.length;o--;)((i=n[o]).selected=-1<S.inArray(S.valHooks.option.get(i),a))&&(r=!0);return r||(e.selectedIndex=-1),a}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},v.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in k;var vt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,r,i){var n,a,o,s,u,l,c,h,f=[r||T],d=g.call(e,"type")?e.type:e,p=g.call(e,"namespace")?e.namespace.split("."):[];if(a=h=o=r=r||T,3!==r.nodeType&&8!==r.nodeType&&!vt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},i||!c.trigger||!1!==c.trigger.apply(r,t))){if(!i&&!c.noBubble&&!y(r)){for(s=c.delegateType||d,vt.test(s+d)||(a=a.parentNode);a;a=a.parentNode)f.push(a),o=a;o===(r.ownerDocument||T)&&f.push(o.defaultView||o.parentWindow||k)}for(n=0;(a=f[n++])&&!e.isPropagationStopped();)h=a,e.type=1<n?s:c.bindType||d,(l=(J.get(a,"events")||{})[e.type]&&J.get(a,"handle"))&&l.apply(a,t),(l=u&&a[u])&&l.apply&&V(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),t)||!V(r)||u&&b(r[d])&&!y(r)&&((o=r[u])&&(r[u]=null),S.event.triggered=d,e.isPropagationStopped()&&h.addEventListener(d,bt),r[d](),e.isPropagationStopped()&&h.removeEventListener(d,bt),S.event.triggered=void 0,o&&(r[u]=o)),e.result}},simulate:function(e,t,r){var i=S.extend(new S.Event,r,{type:e,isSimulated:!0});S.event.trigger(i,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var r=this[0];if(r)return S.event.trigger(e,t,r,!0)}}),v.focusin||S.each({focus:"focusin",blur:"focusout"},function(r,i){var n=function(e){S.event.simulate(i,e.target,S.event.fix(e))};S.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=J.access(e,i);t||e.addEventListener(r,n,!0),J.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=J.access(e,i)-1;t?J.access(e,i,t):(e.removeEventListener(r,n,!0),J.remove(e,i))}}});var yt=k.location,_t=Date.now(),wt=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var xt=/\[\]$/,kt=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function Et(r,e,i,n){var t;if(Array.isArray(e))S.each(e,function(e,t){i||xt.test(r)?n(r,t):Et(r+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,n)});else if(i||"object"!==w(e))n(r,e);else for(t in e)Et(r+"["+t+"]",e[t],i,n)}S.param=function(e,t){var r,i=[],n=function(e,t){var r=b(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){n(this.name,this.value)});else for(r in e)Et(r,e[r],t,n);return i.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&St.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!ue.test(e))}).map(function(e,t){var r=S(this).val();return null==r?null:Array.isArray(r)?S.map(r,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:r.replace(kt,"\r\n")}}).get()}});var Mt=/%20/g,Pt=/#.*$/,Ct=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,It=/^\/\//,Rt={},Dt={},jt="*/".concat("*"),Lt=T.createElement("a");function zt(a){return function(e,t){"string"!=typeof e&&(t=e,e="*");var r,i=0,n=e.toLowerCase().match(j)||[];if(b(t))for(;r=n[i++];)"+"===r[0]?(r=r.slice(1)||"*",(a[r]=a[r]||[]).unshift(t)):(a[r]=a[r]||[]).push(t)}}function Ft(t,n,a,o){var s={},u=t===Dt;function l(e){var i;return s[e]=!0,S.each(t[e]||[],function(e,t){var r=t(n,a,o);return"string"!=typeof r||u||s[r]?u?!(i=r):void 0:(n.dataTypes.unshift(r),l(r),!1)}),i}return l(n.dataTypes[0])||!s["*"]&&l("*")}function Bt(e,t){var r,i,n=S.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((n[r]?e:i||(i={}))[r]=t[r]);return i&&S.extend(!0,e,i),e}Lt.href=yt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,S.ajaxSettings),t):Bt(S.ajaxSettings,e)},ajaxPrefilter:zt(Rt),ajaxTransport:zt(Dt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,h,f,r,d,i,p,m,n,a,g=S.ajaxSetup({},t),v=g.context||g,b=g.context&&(v.nodeType||v.jquery)?S(v):S.event,y=S.Deferred(),_=S.Callbacks("once memory"),w=g.statusCode||{},o={},s={},u="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(p){if(!r)for(r={};t=At.exec(f);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return p?f:null},setRequestHeader:function(e,t){return null==p&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,o[e]=t),this},overrideMimeType:function(e){return null==p&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)x.always(e[x.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(y.promise(x),g.url=((e||g.url||yt.href)+"").replace(It,yt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(j)||[""],null==g.crossDomain){i=T.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=Lt.protocol+"//"+Lt.host!=i.protocol+"//"+i.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=S.param(g.data,g.traditional)),Ft(Rt,g,t,x),p)return x;for(n in(m=S.event&&g.global)&&0==S.active++&&S.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Ot.test(g.type),h=g.url.replace(Pt,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Mt,"+")):(a=g.url.slice(h.length),g.data&&(g.processData||"string"==typeof g.data)&&(h+=(wt.test(h)?"&":"?")+g.data,delete g.data),!1===g.cache&&(h=h.replace(Ct,"$1"),a=(wt.test(h)?"&":"?")+"_="+_t+++a),g.url=h+a),g.ifModified&&(S.lastModified[h]&&x.setRequestHeader("If-Modified-Since",S.lastModified[h]),S.etag[h]&&x.setRequestHeader("If-None-Match",S.etag[h])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&x.setRequestHeader("Content-Type",g.contentType),x.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+jt+"; q=0.01":""):g.accepts["*"]),g.headers)x.setRequestHeader(n,g.headers[n]);if(g.beforeSend&&(!1===g.beforeSend.call(v,x,g)||p))return x.abort();if(u="abort",_.add(g.complete),x.done(g.success),x.fail(g.error),c=Ft(Dt,g,t,x)){if(x.readyState=1,m&&b.trigger("ajaxSend",[x,g]),p)return x;g.async&&0<g.timeout&&(d=k.setTimeout(function(){x.abort("timeout")},g.timeout));try{p=!1,c.send(o,l)}catch(e){if(p)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,r,i){var n,a,o,s,u,l=t;p||(p=!0,d&&k.clearTimeout(d),c=void 0,f=i||"",x.readyState=0<e?4:0,n=200<=e&&e<300||304===e,r&&(s=function(e,t,r){for(var i,n,a,o,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(n in s)if(s[n]&&s[n].test(i)){u.unshift(n);break}if(u[0]in r)a=u[0];else{for(n in r){if(!u[0]||e.converters[n+" "+u[0]]){a=n;break}o||(o=n)}a=a||o}if(a)return a!==u[0]&&u.unshift(a),r[a]}(g,x,r)),s=function(e,t,r,i){var n,a,o,s,u,l={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(r[e.responseFields[a]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=a,a=c.shift())if("*"===a)a=u;else if("*"!==u&&u!==a){if(!(o=l[u+" "+a]||l["* "+a]))for(n in l)if((s=n.split(" "))[1]===a&&(o=l[u+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[n]:!0!==l[n]&&(a=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+u+" to "+a}}}return{state:"success",data:t}}(g,s,x,n),n?(g.ifModified&&((u=x.getResponseHeader("Last-Modified"))&&(S.lastModified[h]=u),(u=x.getResponseHeader("etag"))&&(S.etag[h]=u)),204===e||"HEAD"===g.type?l="nocontent":304===e?l="notmodified":(l=s.state,a=s.data,n=!(o=s.error))):(o=l,!e&&l||(l="error",e<0&&(e=0))),x.status=e,x.statusText=(t||l)+"",n?y.resolveWith(v,[a,l,x]):y.rejectWith(v,[x,l,o]),x.statusCode(w),w=void 0,m&&b.trigger(n?"ajaxSuccess":"ajaxError",[x,g,n?a:o]),_.fireWith(v,[x,l]),m&&(b.trigger("ajaxComplete",[x,g]),--S.active||S.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,r){return S.get(e,t,r,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,n){S[n]=function(e,t,r,i){return b(t)&&(i=i||r,r=t,t=void 0),S.ajax(S.extend({url:e,type:n,dataType:i,data:t,success:r},S.isPlainObject(e)&&e))}}),S._evalUrl=function(e){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(r){return b(r)?this.each(function(e){S(this).wrapInner(r.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(r):e.append(r)})},wrap:function(t){var r=b(t);return this.each(function(e){S(this).wrapAll(r?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}};var Nt={0:200,1223:204},Ut=S.ajaxSettings.xhr();v.cors=!!Ut&&"withCredentials"in Ut,v.ajax=Ut=!!Ut,S.ajaxTransport(function(n){var a,o;if(v.cors||Ut&&!n.crossDomain)return{send:function(e,t){var r,i=n.xhr();if(i.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(r in n.xhrFields)i[r]=n.xhrFields[r];for(r in n.mimeType&&i.overrideMimeType&&i.overrideMimeType(n.mimeType),n.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(r,e[r]);a=function(e){return function(){a&&(a=o=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(Nt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=a(),o=i.onerror=i.ontimeout=a("error"),void 0!==i.onabort?i.onabort=o:i.onreadystatechange=function(){4===i.readyState&&k.setTimeout(function(){a&&o()})},a=a("abort");try{i.send(n.hasContent&&n.data||null)}catch(e){if(a)throw e}},abort:function(){a&&a()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(r){var i,n;if(r.crossDomain)return{send:function(e,t){i=S("<script>").prop({charset:r.scriptCharset,src:r.url}).on("load error",n=function(e){i.remove(),n=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(i[0])},abort:function(){n&&n()}}});var Xt,qt=[],Ht=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||S.expando+"_"+_t++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,r){var i,n,a,o=!1!==e.jsonp&&(Ht.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ht.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Ht,"$1"+i):!1!==e.jsonp&&(e.url+=(wt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||S.error(i+" was not called"),a[0]},e.dataTypes[0]="json",n=k[i],k[i]=function(){a=arguments},r.always(function(){void 0===n?S(k).removeProp(i):k[i]=n,e[i]&&(e.jsonpCallback=t.jsonpCallback,qt.push(i)),a&&b(n)&&n(a[0]),a=n=void 0}),"script"}),v.createHTMLDocument=((Xt=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),S.parseHTML=function(e,t,r){return"string"!=typeof e?[]:("boolean"==typeof t&&(r=t,t=!1),t||(v.createHTMLDocument?((i=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(i)):t=T),a=!r&&[],(n=P.exec(e))?[t.createElement(n[1])]:(n=ve([e],t,a),a&&a.length&&S(a).remove(),S.merge([],n.childNodes)));var i,n,a},S.fn.load=function(e,t,r){var i,n,a,o=this,s=e.indexOf(" ");return-1<s&&(i=dt(e.slice(s)),e=e.slice(0,s)),b(t)?(r=t,t=void 0):t&&"object"==typeof t&&(n="POST"),0<o.length&&S.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(i?S("<div>").append(S.parseHTML(e)).find(i):e)}).always(r&&function(e,t){o.each(function(){r.apply(this,a||[e.responseText,t,e])})}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,r){var i,n,a,o,s,u,l=S.css(e,"position"),c=S(e),h={};"static"===l&&(e.style.position="relative"),s=c.offset(),a=S.css(e,"top"),u=S.css(e,"left"),n=("absolute"===l||"fixed"===l)&&-1<(a+u).indexOf("auto")?(o=(i=c.position()).top,i.left):(o=parseFloat(a)||0,parseFloat(u)||0),b(t)&&(t=t.call(e,r,S.extend({},s))),null!=t.top&&(h.top=t.top-s.top+o),null!=t.left&&(h.left=t.left-s.left+n),"using"in t?t.using.call(e,h):c.css(h)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,r,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),r=i.ownerDocument.defaultView,{top:e.top+r.pageYOffset,left:e.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,r,i=this[0],n={top:0,left:0};if("fixed"===S.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),r=i.ownerDocument,e=i.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((n=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),n.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-n.top-S.css(i,"marginTop",!0),left:t.left-n.left-S.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||be})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var a="pageYOffset"===n;S.fn[t]=function(e){return X(this,function(e,t,r){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===r)return i?i[n]:e[t];i?i.scrollTo(a?i.pageXOffset:r,a?r:i.pageYOffset):e[t]=r},t,e,arguments.length)}}),S.each(["top","left"],function(e,r){S.cssHooks[r]=Ne(v.pixelPosition,function(e,t){if(t)return t=Be(e,r),Le.test(t)?S(e).position()[r]+"px":t})}),S.each({Height:"height",Width:"width"},function(o,s){S.each({padding:"inner"+o,content:s,"":"outer"+o},function(i,a){S.fn[a]=function(e,t){var r=arguments.length&&(i||"boolean"!=typeof e),n=i||(!0===e||!0===t?"margin":"border");return X(this,function(e,t,r){var i;return y(e)?0===a.indexOf("outer")?e["inner"+o]:e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):void 0===r?S.css(e,t,n):S.style(e,t,r,n)},s,r?e:void 0,r)}})}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){S.fn[r]=function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)}}),S.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,i){return this.on(t,e,r,i)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)}}),S.proxy=function(e,t){var r,i,n;if("string"==typeof t&&(r=e[t],t=e,e=r),b(e))return i=s.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,n},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=M,S.isFunction=b,S.isWindow=y,S.camelCase=G,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Wt=k.jQuery,Gt=k.$;return S.noConflict=function(e){return k.$===S&&(k.$=Gt),e&&k.jQuery===S&&(k.jQuery=Wt),S},e||(k.jQuery=k.$=S),S}),function a(o,s,u){function l(r,e){if(!s[r]){if(!o[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(r,!0);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[r]={exports:{}};o[r][0].call(n.exports,function(e){var t=o[r][1][e];return l(t||e)},n,n.exports,a,o,s,u)}return s[r].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0};var a=e("./wait"),o=function(e){function o(e,t,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=n||{};var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,n));return a.type="Angle",n.load?a.load(n.load):(a.angle=t,a.speed=r,a.duration=i||0),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,a),i(o,[{key:"save",value:function(){var e=n(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"save",this).call(this);return e.angle=this.angle,e.speed=this.speed,e}},{key:"load",value:function(e){n(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"load",this).call(this,e),this.angle=e.angle,this.speed=e.speed}},{key:"calculate",value:function(e){this.object.x+=this.cos*e*this.speed,this.object.y+=this.sin*e*this.speed}},{key:"reverse",value:function(){this.angle+=Math.PI}},{key:"angle",get:function(){return this._angle},set:function(e){this._angle=e,this.sin=Math.sin(this._angle),this.cos=Math.cos(this._angle)}}]),o}();t.exports=o},{"./wait":11}],2:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0};var o=e("yy-angle"),s=e("./wait"),a=function(e){function a(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i=i||{};var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return n.type="Face",n.target=t,i.load?n.load(i.load):n.speed=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,s),i(a,[{key:"save",value:function(){if(this.options.cancel)return null;var e=n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"save",this).call(this);return e.speed=this.speed,e.keepAlive=this.options.keepAlive,e}},{key:"load",value:function(e){n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"load",this).call(this,e),this.speed=e.speed,this.options.keepAlive=e.keepAlive}},{key:"calculate",value:function(e){var t=o.angleTwoPoints(this.object.position,this.target),r=o.differenceAngles(t,this.object.rotation);if(0===r){if(this.emit("done",this.object),!this.options.keepAlive)return!0}else{var i=o.differenceAnglesSign(t,this.object.rotation),n=this.speed*e,a=r<n?r:n;this.object.rotation+=a*i}}}]),a}();t.exports=a},{"./wait":11,"yy-angle":22}],3:[function(e,t,r){"use strict";var i={list:e("./list"),wait:e("./wait"),to:e("./to"),shake:e("./shake"),tint:e("./tint"),face:e("./face"),angle:e("./angle"),target:e("./target"),movie:e("./movie"),load:e("./load")};PIXI.extras.Ease=i,t.exports=i},{"./angle":1,"./face":2,"./list":4,"./load":5,"./movie":6,"./shake":7,"./target":8,"./tint":9,"./to":10,"./wait":11}],4:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("eventemitter3"),o=e("./angle"),s=e("./face"),u=e("./load"),l=e("./movie"),c=e("./shake"),h=e("./target"),f=e("./tint"),d=e("./to"),p=e("./wait"),i=function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),e=e||{};var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));if(!e.noTicker){var r=e.ticker||PIXI.ticker.shared;r.add(function(){return t.update(r.elapsedMS)})}return t.list=[],t.empty=!0,t.removeWaiting=[],t.removeAllWaiting=!1,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),n(i,[{key:"add",value:function(){var e=void 0,t=!0,r=!1,i=void 0;try{for(var n,a=arguments[Symbol.iterator]();!(t=(n=a.next()).done);t=!0){var o=n.value;if(Array.isArray(o)){var s=!0,u=!1,l=void 0;try{for(var c,h=o[Symbol.iterator]();!(s=(c=h.next()).done);s=!0){var f=c.value;e||(e=f),this.list.push(f)}}catch(e){u=!0,l=e}finally{try{!s&&h.return&&h.return()}finally{if(u)throw l}}}else e=o,this.list.push(o)}}catch(e){r=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw i}}return this.empty=!1,e}},{key:"remove",value:function(e){if(this.inUpdate)this.removeWaiting.push(e);else{var t=this.list.indexOf(e);-1!==t&&this.list.splice(t,1)}}},{key:"removeAll",value:function(){this.inUpdate?this.removeAllWaiting=!0:this.list=[]}},{key:"update",value:function(e){this.inUpdate=!0;for(var t=0,r=this.list.length;t<r;t++)this.list[t]&&this.list[t].update(e)&&(this.list.splice(t,1),t--,r--);for(this.emit("each",this),0!==this.list.length||this.empty||(this.emit("done",this),this.empty=!0),this.inUpdate=!1,this.removeAllWaiting&&(this.removeAll(),this.removeAllWaiting=!1);this.removeWaiting.length;)this.remove(this.removeWaiting.pop())}},{key:"to",value:function(){return this.add(new(Function.prototype.bind.apply(d,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"angle",value:function(){return this.add(new(Function.prototype.bind.apply(o,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"face",value:function(){return this.add(new(Function.prototype.bind.apply(s,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"load",value:function(){return this.add(new(Function.prototype.bind.apply(u,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"movie",value:function(){return this.add(new(Function.prototype.bind.apply(l,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"shake",value:function(){return this.add(new(Function.prototype.bind.apply(c,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"target",value:function(){return this.add(new(Function.prototype.bind.apply(h,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"tint",value:function(){return this.add(new(Function.prototype.bind.apply(f,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"wait",value:function(){return this.add(new(Function.prototype.bind.apply(p,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"count",get:function(){return this.list.length}},{key:"countRunning",get:function(){var e=0,t=!0,r=!1,i=void 0;try{for(var n,a=this.list[Symbol.iterator]();!(t=(n=a.next()).done);t=!0){n.value.pause||e++}}catch(e){r=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw i}}return e}}]),i}();t.exports=i},{"./angle":1,"./face":2,"./load":5,"./movie":6,"./shake":7,"./target":8,"./tint":9,"./to":10,"./wait":11,eventemitter3:12}],5:[function(e,t,r){"use strict";var i=e("./wait"),n=e("./to"),a=e("./tint"),o=e("./shake"),s=e("./angle"),u=e("./face"),l=e("./target"),c=e("./movie");t.exports=function(e,t){if(!t)return null;var r={load:t};switch(t.type){case"Wait":return new i(e,r);case"To":return new n(e,null,null,r);case"Tint":return new a(e,null,null,r);case"Shake":return new o(e,null,null,r);case"Angle":return new s(e,null,null,null,r);case"Face":return new u(e[0],e[1],null,r);case"Target":return new l(e[0],e[1],null,r);case"Movie":return new c(e,e[1],null,r)}}},{"./angle":1,"./face":2,"./movie":6,"./shake":7,"./target":8,"./tint":9,"./to":10,"./wait":11}],6:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0};var o=e("./wait"),a=function(e){function a(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i=i||{};var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return n.type="Movie",Array.isArray(e)&&(n.list=e,n.object=n.list[0]),i.load?n.load(i.load):(n.textures=t,n.duration=r,n.current=0,n.length=t.length,n.interval=r/n.length,n.isReverse=!1,n.restart()),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),i(a,[{key:"save",value:function(){var e=n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"save",this).call(this);return e.goto=this.goto,e.current=this.current,e.length=this.length,e.interval=this.interval,e}},{key:"load",value:function(e){n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"load",this).call(this,e),this.goto=e.goto,this.current=e.current,this.interval=e.current}},{key:"restart",value:function(){this.current=0,this.time=0,this.isReverse=!1}},{key:"reverse",value:function(){this.isReverse=!this.isReverse}},{key:"calculate",value:function(){var e=Math.round(this.options.ease(this.time,0,this.length-1,this.duration));if(this.isReverse&&(e=this.length-1-e),this.list)for(var t=0;t<this.list.length;t++)this.list[t].texture=this.textures[e];else this.object.texture=this.textures[e]}}]),a}();t.exports=a},{"./wait":11}],7:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0};var a=e("./wait"),o=function(e){function s(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i=i||{};var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,i));if(n.type="Shake",Array.isArray(e)&&(n.array=!0,n.list=e),i.load)n.load(i.load);else{if(n.list){n.start=[];for(var a=0;a<e.length;a++){var o=e[a];n.start[a]={x:o.x,y:o.y}}}else n.start={x:e.x,y:e.y};n.amount=t,n.duration=r}return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,a),i(s,[{key:"save",value:function(){var e=n(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"save",this).call(this);return e.start=this.start,e.amount=this.amount,e}},{key:"load",value:function(e){n(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"load",this).call(this,e),this.start=e.start,this.amount=e.amount}},{key:"calculate",value:function(){var e=this.object,t=this.start,r=this.amount;if(this.array)for(var i=this.list,n=0;n<i.length;n++){var a=i[n],o=t[n];a.x=o.x+Math.floor(Math.random()*r*2)-r,a.y=o.y+Math.floor(Math.random()*r*2)-r}e.x=t.x+Math.floor(Math.random()*r*2)-r,e.y=t.y+Math.floor(Math.random()*r*2)-r}},{key:"done",value:function(){var e=this.object,t=this.start;if(this.array)for(var r=this.list,i=0;i<r.length;i++){var n=r[i],a=t[i];n.x=a.x,n.y=a.y}else e.x=t.x,e.y=t.y}}]),s}();t.exports=o},{"./wait":11}],8:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0};var o=e("./wait"),a=function(e){function a(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i=i||{};var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return n.type="Target",n.target=t,i.load?n.load(i.load):n.speed=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),i(a,[{key:"save",value:function(){var e=n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"save",this).call(this);return e.speed=this.speed,e.keepAlive=this.options.keepAlive,e}},{key:"load",value:function(e){n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"load",this).call(this,e),this.speed=e.speed,this.options.keepAlive=e.keepAlive}},{key:"calculate",value:function(e){var t=this.target.x-this.object.x,r=this.target.y-this.object.y;if(0==t&&0==r){if(this.emit("done",this.object),!this.options.keepAlive)return!0}else{var i=Math.atan2(r,t);this.object.x+=Math.cos(i)*e*this.speed,this.object.y+=Math.sin(i)*e*this.speed,0<=t!=0<=this.target.x-this.object.x&&(this.object.x=this.target.x),0<=r!=0<=this.target.y-this.object.y&&(this.object.y=this.target.y)}}}]),a}();t.exports=a},{"./wait":11}],9:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0};var g=e("yy-color"),o=e("./wait"),a=function(e){function a(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i=i||{};var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return n.type="Tint",Array.isArray(e)&&(n.list=e,n.object=n.list[0]),n.duration=r,i.load?n.load(i.load):Array.isArray(t)?n.tints=[n.object.tint].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(t)):(n.start=n.object.tint,n.to=t),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),i(a,[{key:"save",value:function(){var e=n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"save",this).call(this);return e.start=this.start,e.to=this.to,e}},{key:"load",value:function(e){n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"load",this).call(this,e),this.start=e.start,this.to=e.to}},{key:"calculate",value:function(){var e=this.options.ease(this.time,0,1,this.duration);if(this.tints)for(var t=1/(this.tints.length-1),r=t,i=1;i<this.tints.length;i++){if(e<=r){var n=g.blend(1-(r-e)/t,this.tints[i-1],this.tints[i]);if(this.list){var a=!0,o=!1,s=void 0;try{for(var u,l=this.list[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){u.value.tint=n}}catch(e){o=!0,s=e}finally{try{!a&&l.return&&l.return()}finally{if(o)throw s}}}else this.object.tint=n;break}r+=t}else{var c=g.blend(e,this.start,this.to);if(this.list){var h=!0,f=!1,d=void 0;try{for(var p,m=this.list[Symbol.iterator]();!(h=(p=m.next()).done);h=!0){p.value.tint=c}}catch(e){f=!0,d=e}finally{try{!h&&m.return&&m.return()}finally{if(f)throw d}}}else this.object.tint=c}}},{key:"reverse",value:function(){if(this.tints){for(var e=[],t=this.tints.length-1;0<=t;t--)e.push(this.tints[t]);this.tints=e}else{var r=this.to;this.to=this.start,this.start=r}}}]),a}();t.exports=a},{"./wait":11,"yy-color":23}],10:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0};var o=e("./wait"),a=function(e){function a(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i=i||{};var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return n.type="To",Array.isArray(e)&&(n.list=e,n.object=n.list[0]),i.load?n.load(i.load):(n.goto=t,n.fixScale(),n.duration=r,n.restart()),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),i(a,[{key:"fixScale",value:function(){void 0===this.goto.scale||Number.isNaN(this.goto.scale)||(this.goto.scale={x:this.goto.scale,y:this.goto.scale})}},{key:"save",value:function(){var e=n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"save",this).call(this);return e.goto=this.goto,e.start=this.start,e.delta=this.delta,e.keys=this.keys,e}},{key:"load",value:function(e){n(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"load",this).call(this,e),this.goto=e.goto,this.start=e.start,this.delta=e.delta,this.keys=e.keys}},{key:"restart",value:function(){var e=0,t=this.start=[],r=this.delta=[],i=this.keys=[],n=this.goto,a=this.object;for(var o in n){if(isNaN(n[o])){i[e]={key:o,children:[]},t[e]=[],r[e]=[];var s=0;for(var u in n[o])i[e].children[s]=u,t[e][s]=parseFloat(a[o][u]),t[e][s]=this._correctDOM(u,t[e][s]),t[e][s]=isNaN(this.start[e][s])?0:t[e][s],r[e][s]=n[o][u]-t[e][s],s++}else t[e]=parseFloat(a[o]),t[e]=this._correctDOM(o,t[e]),t[e]=isNaN(this.start[e])?0:t[e],r[e]=n[o]-t[e],i[e]=o;e++}this.time=0}},{key:"reverse",value:function(){for(var e=this.object,t=this.keys,r=this.goto,i=this.delta,n=this.start,a=0,o=t.length;a<o;a++){var s=t[a];if(isNaN(r[s]))for(var u=0,l=s.children.length;u<l;u++)i[a][u]=-i[a][u],n[a][u]=parseFloat(e[s.key][s.children[u]]),n[a][u]=isNaN(n[a][u])?0:n[a][u];else i[a]=-i[a],n[a]=parseFloat(e[s]),n[a]=isNaN(n[a])?0:n[a]}}},{key:"calculate",value:function(){for(var e=this.object,t=this.list,r=this.keys,i=this.goto,n=this.time,a=this.start,o=this.delta,s=this.duration,u=this.options.ease,l=0,c=this.keys.length;l<c;l++){var h=r[l];if(isNaN(i[h]))for(var f=h.key,d=0,p=h.children.length;d<p;d++){var m=h.children[d],g=e[f][m]=s<=n?a[l][d]+o[l][d]:u(n,a[l][d],o[l][d],s);if(t)for(var v=1,b=t.length;v<b;v++)t[v][f][m]=g}else{var y=r[l],_=e[y]=s<=n?a[l]+o[l]:u(n,a[l],o[l],s);if(t)for(var w=1,x=this.list.length;w<x;w++)t[w][y]=_}}}}]),a}();t.exports=a},{"./wait":11}],11:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("penner"),o=e("eventemitter3"),i=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return r.object=e,r.options=t||{},r.type="Wait",r.options.load?r.load(r.options.load):r.time=0,r.options.ease&&"function"!=typeof r.options.ease&&(r.options.easeName=r.options.ease,r.options.ease=a[r.options.ease]),r.options.ease||(r.options.ease=a.linear),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,o),n(i,[{key:"save",value:function(){var e={type:this.type,time:this.time,duration:this.duration,ease:this.options.easeName},t=this.options;return t.wait&&(e.wait=t.wait),void 0!==t.id&&(e.id=t.id),t.pause&&(e.pause=t.pause),t.repeat&&(e.repeat=t.repeat),t.reverse&&(e.reverse=t.reverse),e}},{key:"load",value:function(e){this.options.wait=e.wait,this.options.pause=e.pause,this.options.repeat=e.repeat,this.options.reverse=e.reverse,this.options.id=e.id,this.options.ease=e.ease,this.options.ease&&"function"!=typeof this.options.ease&&(this.options.easeName=this.options.ease,this.options.ease=a[this.options.ease]),this.options.ease||(this.options.ease=a.linear),this.time=e.time,this.duration=e.duration}},{key:"end",value:function(e){if(this.options.reverse)this.reverse(),this.time=e,this.options.repeat?!0!==this.options.repeat&&this.options.repeat--:!0===this.options.reverse?this.options.reverse=!1:this.options.reverse--,this.emit("loop",this.list||this.object);else{if(!this.options.repeat)return this.done(),this.emit("done",this.list||this.object,e),!0;this.time=e,!0!==this.options.repeat&&this.options.repeat--,this.emit("loop",this.list||this.object)}}},{key:"update",value:function(e){var t=this.options;if(!t.pause){if(t.wait){if(t.wait-=e,!(t.wait<=0))return void this.emit("wait",e,this.list||this.object);e=-t.wait,t.wait=!1}this.first||(this.first=!0,this.emit("first",this.list||this.object)),this.time+=e;var r=0,i=this.duration,n=this.time;0!==i&&i<n&&(r=n-i,this.time=n=i);var a=this.calculate(e);return this.emit("each",e,this.list||this.object,this),"Wait"===this.type||0!==i&&n===i?this.end(r):a||n===i}}},{key:"_correctDOM",value:function(e,t){switch(e){case"opacity":return isNaN(t)?1:t}return t}},{key:"reverse",value:function(){}},{key:"calculate",value:function(){}},{key:"done",value:function(){}},{key:"pause",set:function(e){this.options.pause=e},get:function(){return this.options.pause}}]),i}();t.exports=i},{eventemitter3:12,penner:13}],12:[function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty,d="~";function n(){}function s(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,r,i,n){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new s(r,i||e,n),o=d?d+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(d=!1)),o.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)i.call(e,t)&&r.push(d?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=d?d+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,n=r.length,a=new Array(n);i<n;i++)a[i]=r[i].fn;return a},o.prototype.listenerCount=function(e){var t=d?d+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,n,a){var o=d?d+e:e;if(!this._events[o])return!1;var s,u,l=this._events[o],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,n),!0;case 6:return l.fn.call(l.context,t,r,i,n,a),!0}for(u=1,s=new Array(c-1);u<c;u++)s[u-1]=arguments[u];l.fn.apply(l.context,s)}else{var h,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),c){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!s)for(h=1,s=new Array(c-1);h<c;h++)s[h-1]=arguments[h];l[u].fn.apply(l[u].context,s)}}return!0},o.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},o.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},o.prototype.removeListener=function(e,t,r,i){var n=d?d+e:e;if(!this._events[n])return this;if(!t)return l(this,n),this;var a=this._events[n];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||l(this,n);else{for(var o=0,s=[],u=a.length;o<u;o++)(a[o].fn!==t||i&&!a[o].once||r&&a[o].context!==r)&&s.push(a[o]);s.length?this._events[n]=1===s.length?s[0]:s:l(this,n)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=d?d+e:e,this._events[t]&&l(this,t)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=d,o.EventEmitter=o,void 0!==t&&(t.exports=o)},{}],13:[function(e,t,r){(function(){var n;(function(e){"object"==typeof r?t.exports=e:"function"==typeof define&&define.amd?define([],e):this.penner=e})(n={linear:function(e,t,r,i){return r*e/i+t},easeInQuad:function(e,t,r,i){return r*(e/=i)*e+t},easeOutQuad:function(e,t,r,i){return-r*(e/=i)*(e-2)+t},easeInOutQuad:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,r,i){return r*(e/=i)*e*e+t},easeOutCubic:function(e,t,r,i){return r*((e=e/i-1)*e*e+1)+t},easeInOutCubic:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,r,i){return r*(e/=i)*e*e*e+t},easeOutQuart:function(e,t,r,i){return-r*((e=e/i-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e*e*e+t:-r/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,r,i){return r*(e/=i)*e*e*e*e+t},easeOutQuint:function(e,t,r,i){return r*((e=e/i-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e*e*e*e+t:r/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,r,i){return-r*Math.cos(e/i*(Math.PI/2))+r+t},easeOutSine:function(e,t,r,i){return r*Math.sin(e/i*(Math.PI/2))+t},easeInOutSine:function(e,t,r,i){return-r/2*(Math.cos(Math.PI*e/i)-1)+t},easeInExpo:function(e,t,r,i){return 0===e?t:r*Math.pow(2,10*(e/i-1))+t},easeOutExpo:function(e,t,r,i){return e===i?t+r:r*(1-Math.pow(2,-10*e/i))+t},easeInOutExpo:function(e,t,r,i){return(e/=i/2)<1?r/2*Math.pow(2,10*(e-1))+t:r/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,r,i){return-r*(Math.sqrt(1-(e/=i)*e)-1)+t},easeOutCirc:function(e,t,r,i){return r*Math.sqrt(1-(e=e/i-1)*e)+t},easeInOutCirc:function(e,t,r,i){return(e/=i/2)<1?-r/2*(Math.sqrt(1-e*e)-1)+t:r/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,r,i){var n,a,o;return o=1.70158,(a=0)===e||(e/=i),a||(a=.3*i),o=(n=r)<Math.abs(r)?(n=r,a/4):a/(2*Math.PI)*Math.asin(r/n),-n*Math.pow(2,10*(e-=1))*Math.sin((e*i-o)*(2*Math.PI)/a)+t},easeOutElastic:function(e,t,r,i){var n,a,o;return o=1.70158,(a=0)===e||(e/=i),a||(a=.3*i),o=(n=r)<Math.abs(r)?(n=r,a/4):a/(2*Math.PI)*Math.asin(r/n),n*Math.pow(2,-10*e)*Math.sin((e*i-o)*(2*Math.PI)/a)+r+t},easeInOutElastic:function(e,t,r,i){var n,a,o;return o=1.70158,(a=0)===e||(e/=i/2),a||(a=i*(.3*1.5)),o=(n=r)<Math.abs(r)?(n=r,a/4):a/(2*Math.PI)*Math.asin(r/n),e<1?n*Math.pow(2,10*(e-=1))*Math.sin((e*i-o)*(2*Math.PI)/a)*-.5+t:n*Math.pow(2,-10*(e-=1))*Math.sin((e*i-o)*(2*Math.PI)/a)*.5+r+t},easeInBack:function(e,t,r,i,n){return void 0===n&&(n=1.70158),r*(e/=i)*e*((n+1)*e-n)+t},easeOutBack:function(e,t,r,i,n){return void 0===n&&(n=1.70158),r*((e=e/i-1)*e*((n+1)*e+n)+1)+t},easeInOutBack:function(e,t,r,i,n){return void 0===n&&(n=1.70158),(e/=i/2)<1?r/2*(e*e*((1+(n*=1.525))*e-n))+t:r/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:function(e,t,r,i){return r-n.easeOutBounce(i-e,0,r,i)+t},easeOutBounce:function(e,t,r,i){return(e/=i)<1/2.75?r*(7.5625*e*e)+t:e<2/2.75?r*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?r*(7.5625*(e-=2.25/2.75)*e+.9375)+t:r*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,r,i){return e<i/2?.5*n.easeInBounce(2*e,0,r,i)+t:.5*n.easeOutBounce(2*e-i,0,r,i)+.5*r+t}})}).call(this)},{}],14:[function(e,t,r){var i=e("./lib/alea"),n=e("./lib/xor128"),a=e("./lib/xorwow"),o=e("./lib/xorshift7"),s=e("./lib/xor4096"),u=e("./lib/tychei"),l=e("./seedrandom");l.alea=i,l.xor128=n,l.xorwow=a,l.xorshift7=o,l.xor4096=s,l.tychei=u,t.exports=l},{"./lib/alea":15,"./lib/tychei":16,"./lib/xor128":17,"./lib/xor4096":18,"./lib/xorshift7":19,"./lib/xorwow":20,"./seedrandom":21}],15:[function(e,t,r){!function(e,t,r){function a(e){var t=this,r=function(){var i=4022871197;return function(e){e=e.toString();for(var t=0;t<e.length;t++){var r=.02519603282416938*(i+=e.charCodeAt(t));r-=i=r>>>0,i=(r*=i)>>>0,i+=4294967296*(r-=i)}return 2.3283064365386963e-10*(i>>>0)}}();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=r(" "),t.s1=r(" "),t.s2=r(" "),t.s0-=r(e),t.s0<0&&(t.s0+=1),t.s1-=r(e),t.s1<0&&(t.s1+=1),t.s2-=r(e),t.s2<0&&(t.s2+=1),r=null}function o(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function i(e,t){var r=new a(e),i=t&&t.state,n=r.next;return n.int32=function(){return 4294967296*r.next()|0},n.double=function(){return n()+11102230246251565e-32*(2097152*n()|0)},n.quick=n,i&&("object"==typeof i&&o(i,r),n.state=function(){return o(r,{})}),n}t&&t.exports?t.exports=i:r&&r.amd?r(function(){return i}):this.alea=i}(0,"object"==typeof t&&t,"function"==typeof define&&define)},{}],16:[function(e,t,r){!function(e,t,r){function a(e){var n=this,t="";n.next=function(){var e=n.b,t=n.c,r=n.d,i=n.a;return e=e<<25^e>>>7^t,t=t-r|0,r=r<<24^r>>>8^i,i=i-e|0,n.b=e=e<<20^e>>>12^t,n.c=t=t-r|0,n.d=r<<16^t>>>16^i,n.a=i-e|0},n.a=0,n.b=0,n.c=-1640531527,n.d=1367130551,e===Math.floor(e)?(n.a=e/4294967296|0,n.b=0|e):t+=e;for(var r=0;r<t.length+20;r++)n.b^=0|t.charCodeAt(r),n.next()}function o(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function i(e,t){var r=new a(e),i=t&&t.state,n=function(){return(r.next()>>>0)/4294967296};return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,i&&("object"==typeof i&&o(i,r),n.state=function(){return o(r,{})}),n}t&&t.exports?t.exports=i:r&&r.amd?r(function(){return i}):this.tychei=i}(0,"object"==typeof t&&t,"function"==typeof define&&define)},{}],17:[function(e,t,r){!function(e,t,r){function a(e){var t=this,r="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:r+=e;for(var i=0;i<r.length+64;i++)t.x^=0|r.charCodeAt(i),t.next()}function o(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function i(e,t){var r=new a(e),i=t&&t.state,n=function(){return(r.next()>>>0)/4294967296};return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,i&&("object"==typeof i&&o(i,r),n.state=function(){return o(r,{})}),n}t&&t.exports?t.exports=i:r&&r.amd?r(function(){return i}):this.xor128=i}(0,"object"==typeof t&&t,"function"==typeof define&&define)},{}],18:[function(e,t,r){!function(e,t,r){function a(e){var a=this;a.next=function(){var e,t,r=a.w,i=a.X,n=a.i;return a.w=r=r+1640531527|0,t=i[n+34&127],e=i[n=n+1&127],t^=t<<13,e^=e<<17,t^=t>>>15,e^=e>>>12,t=i[n]=t^e,a.i=n,t+(r^r>>>16)|0},function(e,t){var r,i,n,a,o,s=[],u=128;for(t===(0|t)?(i=t,t=null):(t+="\0",i=0,u=Math.max(u,t.length)),n=0,a=-32;a<u;++a)t&&(i^=t.charCodeAt((a+32)%t.length)),0===a&&(o=i),i^=i<<10,i^=i>>>15,i^=i<<4,i^=i>>>13,0<=a&&(o=o+1640531527|0,n=0==(r=s[127&a]^=i+o)?n+1:0);for(128<=n&&(s[127&(t&&t.length||0)]=-1),n=127,a=512;0<a;--a)i=s[n+34&127],r=s[n=n+1&127],i^=i<<13,r^=r<<17,i^=i>>>15,r^=r>>>12,s[n]=i^r;e.w=o,e.X=s,e.i=n}(a,e)}function o(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function i(e,t){null==e&&(e=+new Date);var r=new a(e),i=t&&t.state,n=function(){return(r.next()>>>0)/4294967296};return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,i&&(i.X&&o(i,r),n.state=function(){return o(r,{})}),n}t&&t.exports?t.exports=i:r&&r.amd?r(function(){return i}):this.xor4096=i}(0,"object"==typeof t&&t,"function"==typeof define&&define)},{}],19:[function(e,t,r){!function(e,t,r){function a(e){var n=this;n.next=function(){var e,t,r=n.x,i=n.i;return e=r[i],t=(e^=e>>>7)^e<<24,t^=(e=r[i+1&7])^e>>>10,t^=(e=r[i+3&7])^e>>>3,t^=(e=r[i+4&7])^e<<7,e=r[i+7&7],t^=(e^=e<<13)^e<<9,r[i]=t,n.i=i+1&7,t},function(e,t){var r,i=[];if(t===(0|t))i[0]=t;else for(t=""+t,r=0;r<t.length;++r)i[7&r]=i[7&r]<<15^t.charCodeAt(r)+i[r+1&7]<<13;for(;i.length<8;)i.push(0);for(r=0;r<8&&0===i[r];++r);for(8==r?i[7]=-1:i[r],e.x=i,e.i=0,r=256;0<r;--r)e.next()}(n,e)}function o(e,t){return t.x=e.x.slice(),t.i=e.i,t}function i(e,t){null==e&&(e=+new Date);var r=new a(e),i=t&&t.state,n=function(){return(r.next()>>>0)/4294967296};return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,i&&(i.x&&o(i,r),n.state=function(){return o(r,{})}),n}t&&t.exports?t.exports=i:r&&r.amd?r(function(){return i}):this.xorshift7=i}(0,"object"==typeof t&&t,"function"==typeof define&&define)},{}],20:[function(e,t,r){!function(e,t,r){function a(e){var t=this,r="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,e===((t.v=0)|e)?t.x=e:r+=e;for(var i=0;i<r.length+64;i++)t.x^=0|r.charCodeAt(i),i==r.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function o(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function i(e,t){var r=new a(e),i=t&&t.state,n=function(){return(r.next()>>>0)/4294967296};return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,i&&("object"==typeof i&&o(i,r),n.state=function(){return o(r,{})}),n}t&&t.exports?t.exports=i:r&&r.amd?r(function(){return i}):this.xorwow=i}(0,"object"==typeof t&&t,"function"==typeof define&&define)},{}],21:[function(t,r,e){!function(s,u){var l,c=this,h=256,f=6,d="random",p=u.pow(h,f),m=u.pow(2,52),g=2*m,v=h-1;function e(e,t,r){var i=[],n=_(function e(t,r){var i,n=[],a=typeof t;if(r&&"object"==a)for(i in t)try{n.push(e(t[i],r-1))}catch(e){}return n.length?n:"string"==a?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,w(s)]:null==e?function(){try{var e;return l&&(e=l.randomBytes)?e=e(h):(e=new Uint8Array(h),(c.crypto||c.msCrypto).getRandomValues(e)),w(e)}catch(e){var t=c.navigator,r=t&&t.plugins;return[+new Date,c,r,c.screen,w(s)]}}():e,3),i),a=new b(i),o=function(){for(var e=a.g(f),t=p,r=0;e<m;)e=(e+r)*h,t*=h,r=a.g(1);for(;g<=e;)e/=2,t/=2,r>>>=1;return(e+r)/t};return o.int32=function(){return 0|a.g(4)},o.quick=function(){return a.g(4)/4294967296},o.double=o,_(w(a.S),s),(t.pass||r||function(e,t,r,i){return i&&(i.S&&y(i,a),e.state=function(){return y(a,{})}),r?(u[d]=e,t):e})(o,n,"global"in t?t.global:this==u,t.state)}function b(e){var t,r=e.length,o=this,i=0,n=o.i=o.j=0,a=o.S=[];for(r||(e=[r++]);i<h;)a[i]=i++;for(i=0;i<h;i++)a[i]=a[n=v&n+e[i%r]+(t=a[i])],a[n]=t;(o.g=function(e){for(var t,r=0,i=o.i,n=o.j,a=o.S;e--;)t=a[i=v&i+1],r=r*h+a[v&(a[i]=a[n=v&n+t])+(a[n]=t)];return o.i=i,o.j=n,r})(h)}function y(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function _(e,t){for(var r,i=e+"",n=0;n<i.length;)t[v&n]=v&(r^=19*t[v&n])+i.charCodeAt(n++);return w(t)}function w(e){return String.fromCharCode.apply(0,e)}if(u["seed"+d]=e,_(u.random(),s),"object"==typeof r&&r.exports){r.exports=e;try{l=t("crypto")}catch(e){}}else"function"==typeof define&&define.amd&&define(function(){return e})}([],Math)},{crypto:25}],22:[function(e,t,r){var i=180/Math.PI,n=Math.PI/180,a=Math.PI/2,o=3*Math.PI/2,s=Math.PI,u=a,l=o,c=s,h=2*Math.PI,f=Math.PI/4,d=Math.PI/2;function p(e,t){var r;return 0<((e-t+Math.PI)%(r=h)+r)%r-Math.PI?1:-1}function m(e,t){var r=Math.abs(e-t)%h;return r>Math.PI?h-r:r}function g(e){return e-h*Math.floor(e/h)}t.exports={UP:a,DOWN:o,LEFT:s,RIGHT:0,NORTH:u,SOUTH:l,WEST:c,EAST:0,PI_2:h,PI_QUARTER:f,PI_HALF:d,toDegrees:function(e){return e*i},toRadians:function(e){return e*n},isAngleBetween:function(e,t,r){if(((r-t)%h+h)%h>=Math.PI){var i=t;t=r,r=i}return t<=r?t<=e&&e<=r:t<=e||e<=r},differenceAnglesSign:p,differenceAngles:m,shortestAngle:function(e,t){return m(t,e)*p(t,e)+e},normalize:g,angleTwoPoints:function(){return 4===arguments.length?Math.atan2(arguments[3]-arguments[1],arguments[2]-arguments[0]):Math.atan2(arguments[1].y-arguments[0].y,arguments[1].x-arguments[0].x)},distanceTwoPoints:function(){return 2===arguments.length?Math.sqrt(Math.pow(arguments[1].x-arguments[0].x,2)+Math.pow(arguments[1].y-arguments[0].y,2)):Math.sqrt(Math.pow(arguments[2]-arguments[0],2)+Math.pow(arguments[3]-arguments[1],2))},distanceTwoPointsSquared:function(){return 2===arguments.length?Math.pow(arguments[1].x-arguments[0].x,2)+Math.pow(arguments[1].y-arguments[0].y,2):Math.pow(arguments[2]-arguments[0],2)+Math.pow(arguments[3]-arguments[1],2)},closestAngle:function(e){var t=m(e,s),r=m(e,0),i=m(e,a),n=m(e,o);return t<=r&&t<=i&&t<=n?s:r<=i&&r<=n?0:i<=n?a:o},equals:function(e,t,r){return r?m(e,t)<r:g(e)===g(t)},explain:function(e){switch(e){case a:return"UP";case o:return"DOWN";case s:return"LEFT";case 0:return"RIGHT";default:return"NOT CARDINAL"}}}},{}],23:[function(e,t,r){var s=e("yy-random");t.exports={poundToHex:function(e){return"0x"+parseInt(e.substr(1)).toString(16)},hexToPound:function(e){return"#"+e.substr(2)},valueToPound:function(e){return"#"+e.toString(16)},hexToHsl:function(e){var t,r,i=this.hexToRgb(e),n=i.r,a=i.g,o=i.b,s=Math.max(n,a,o),u=Math.min(n,a,o),l=(s+u)/2;if(s===u)t=r=0;else{var c=s-u;switch(r=.5<l?c/(2-s-u):c/(s+u),s){case n:t=(a-o)/c+(a<o?6:0);break;case a:t=(o-n)/c+2;break;case o:t=(n-a)/c+4}t/=6}return{h:t,s:r,l:l}},hslToHex:function(e){var t,r,i,n,a,o;function s(e,t,r){return r<0&&(r+=1),1<r&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(o=1===arguments.length?(n=e.h,a=e.s,e.l):(n=e,a=arguments[1],arguments[2]),0===a)t=r=i=o;else{var u=o<.5?o*(1+a):o+a-o*a,l=2*o-u;t=s(l,u,n+1/3),r=s(l,u,n),i=s(l,u,n-1/3)}return this.rgbToHex(255*t,255*r,255*i)},hexToRgb:function(e){if(0===e)e="0x000000";else if("string"!=typeof e){var t="000000"+e.toString(16);e="0x"+t.substr(t.length-6)}var r=/^0x?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},rgbToHex:function(e,t,r){if(1===arguments.length)if(Array.isArray(e)){var i=e;e=i[0],t=i[1],r=i[2]}else{var n=e.replace(/( *rgb *\( *)|( )|(\) *;?)/,"").split(",");e=n[0],t=n[1],r=n[2]}return"0x"+((1<<24)+(parseInt(e)<<16)+(parseInt(t)<<8)+parseInt(r)).toString(16).slice(1)},darken:function(e,t){return this.blend(t,e,0)},saturate:function(e,t){t=0===t?0:t||10;var r=this.hexToHsl(e);return r.s+=t/100,r.s=Math.min(1,Math.max(0,r.s)),this.hslToHex(r)},desaturate:function(e,t){t=0===t?0:t||10;var r=this.hexToHsl(e);return r.s-=t/100,r.s=Math.min(1,Math.max(0,r.s)),this.hslToHex(r)},blend:function(e,t,r){if(0===e)return t;if(1===e)return r;var i=1-e;return i*(t>>16)+e*(r>>16)<<16|i*(t>>8&255)+e*(r>>8&255)<<8|i*(255&t)+e*(255&r)},random:function(e,t){function r(){return s.range(e,t)}var i=s.pick([{r:1,g:1,b:1},{r:1,g:1,b:0},{r:1,g:0,b:1},{r:0,g:1,b:1},{r:1,g:0,b:0},{r:0,g:1,b:0},{r:0,g:0,b:1}]);return e=e||0,t=t||255,this.rgbToHex(i.r?r():0,i.g?r():0,i.b?r():0)},randomHSL:function(e,t,r,i,n,a){var o={h:s.range(e,t),s:s.range(r,i,!0),l:s.range(n,a,!0)};return this.hslToHex(o)},randomGoldenRatioHSL:function(e,t,r){for(var i=s.get(1,!0),n=[],a=0;a<e;a++)n.push(this.hslToHex(i,t,r)),i=(i+.618033988749895)%1;return n}}},{"yy-random":24}],24:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var n=e("seedrandom"),a=function(){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.generator=Math.random}return i(r,[{key:"seed",value:function(e,t){t=t||{},this.generator=n[t.PRNG||"alea"](e,{state:t.state}),this.options=t}},{key:"save",value:function(){if(this.generator!==Math.random)return this.generator.state()}},{key:"restore",value:function(e){this.generator=n[this.options.PRNG||"alea"]("",{state:e})}},{key:"seedOld",value:function(t){this.generator=function(){var e=1e4*Math.sin(t++);return e-Math.floor(e)}}},{key:"separateSeed",value:function(e){var t=new r;return t.seed(e),t}},{key:"reset",value:function(){this.generator=Math.random}},{key:"get",value:function(e,t){var r=e<0?-1:1;e*=r;return(t?this.generator()*e:Math.floor(this.generator()*e))*r}},{key:"getHuge",value:function(){return this.get(Number.MAX_SAFE_INTEGER)}},{key:"middle",value:function(e,t,r){var i=t/2;return this.range(e-i,e+i,r)}},{key:"range",value:function(e,t,r){if(t===e)return t;if(r)return this.get(t-e,!0)+e;var i=void 0;return e<0&&0<t?i=-e+t+1:0===e&&0<t?i=t+1:e<0&&0===t?(i=e-1,e=1):i=e<0&&t<0?t-e-1:t-e+1,Math.floor(this.generator()*i)+e}},{key:"rangeMultiple",value:function(e,t,r,i){for(var n=[],a=0;a<r;a++)n.push(this.range(e,t,i));return n}},{key:"middleMultiple",value:function(e,t,r,i){for(var n=[],a=0;a<r;a++)n.push(e(e,t,i));return n}},{key:"sign",value:function(e){return e=e||.5,this.generator()<e?1:-1}},{key:"chance",value:function(e){return this.generator()<(e||.5)}},{key:"angle",value:function(){return this.get(2*Math.PI,!0)}},{key:"shuffle",value:function(e,t){if(t&&(e=e.slice()),0===e.length)return e;for(var r=e.length,i=void 0,n=void 0;0!==r;)n=this.get(r),i=e[r-=1],e[r]=e[n],e[n]=i;return e}},{key:"pick",value:function(e,t){if(t){var r=this.get(e.length),i=e[r];return e.splice(r,1),i}return e[this.get(e.length)]}},{key:"property",value:function(e){var t,r=0;for(var i in e)this.chance(1/++r)&&(t=i);return t}},{key:"set",value:function(e,t,r){var i,n=[],a=[];for(i=e;i<t;i++)a.push(i);for(i=0;i<r;i++){var o=this.get(a.length);n.push(a[o]),a.splice(o,1)}return n}},{key:"distribution",value:function(e,t,r,i,n,a){var o=Math.floor((t-e)/r),s=o/2,u=o/4,l=[];i&&l.push(e);for(var c=0;c<r;c++)l.push(e+c*o+s+this.range(-u,u,a));return n&&l.push(t),l}},{key:"weightedProbabilityInt",value:function(e,t,r,i){function n(){for(var e=void 0,t=void 0,r=void 0;1<=(r=(e=2*this.get(1,!0)-1)*e+(t=2*this.get(1,!0)-1)*t)||0===r;);return e*Math.sqrt(-2*Math.log(r)/r)}if(i=i||1,!(Math.random()<.81546))return this.range(e,t);for(;;){var a=n()*i+r;if(e<=a&&a<=t)return a}}},{key:"color",value:function(){return this.get(16777215)}}]),r}();t.exports=new a},{seedrandom:14}],25:[function(e,t,r){},{}]},{},[3]),function a(o,s,u){function l(r,e){if(!s[r]){if(!o[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(r,!0);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[r]={exports:{}};o[r][0].call(n.exports,function(e){var t=o[r][1][e];return l(t||e)},n,n.exports,a,o,s,u)}return s[r].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./utils"),o=e("./plugin");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t=t||{},r.time=t.time||150,r.ease=a.ease(t.ease,"easeInOutSine"),r.friction=t.friction||.5,t.sides=t.sides||"all",t.sides&&("all"===t.sides?r.top=r.bottom=r.left=r.right=!0:"horizontal"===t.sides?r.right=r.left=!0:"vertical"===t.sides?r.top=r.bottom=!0:(r.top=-1!==t.sides.indexOf("top"),r.bottom=-1!==t.sides.indexOf("bottom"),r.left=-1!==t.sides.indexOf("left"),r.right=-1!==t.sides.indexOf("right"))),r.parseUnderflow(t.underflow||"center"),r.last={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,o),n(i,[{key:"parseUnderflow",value:function(e){"center"===(e=e.toLowerCase())?(this.underflowX=0,this.underflowY=0):(this.underflowX=-1!==e.indexOf("left")?-1:-1!==e.indexOf("right")?1:0,this.underflowY=-1!==e.indexOf("top")?-1:-1!==e.indexOf("bottom")?1:0)}},{key:"down",value:function(){this.toX=this.toY=null}},{key:"up",value:function(){this.bounce()}},{key:"update",value:function(e){if(!this.paused){if(this.bounce(),this.toX){var t=this.toX;t.time+=e,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),t.time>=this.time?(this.parent.x=t.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(t.time,t.start,t.delta,this.time),this.parent.dirty=!0}if(this.toY){var r=this.toY;r.time+=e,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),r.time>=this.time?(this.parent.y=r.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(r.time,r.start,r.delta,this.time),this.parent.dirty=!0}}}},{key:"calcUnderflowX",value:function(){var e=void 0;switch(this.underflowX){case-1:e=0;break;case 1:e=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:e=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return e}},{key:"calcUnderflowY",value:function(){var e=void 0;switch(this.underflowY){case-1:e=0;break;case 1:e=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:e=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return e}},{key:"bounce",value:function(){if(!this.paused){var e=void 0,t=this.parent.plugins.decelerate;t&&(t.x||t.y)&&(t.x&&t.percentChangeX===t.friction||t.y&&t.percentChangeY===t.friction)&&(((e=this.parent.OOB()).left&&this.left||e.right&&this.right)&&(t.percentChangeX=this.friction),(e.top&&this.top||e.bottom&&this.bottom)&&(t.percentChangeY=this.friction));var r=this.parent.plugins.drag||{},i=this.parent.plugins.pinch||{};if(t=t||{},!(r.active||i.active||this.toX&&this.toY||t.x&&t.y)){var n=(e=e||this.parent.OOB()).cornerPoint;if(!this.toX&&!t.x){var a=null;e.left&&this.left?a=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():0:e.right&&this.right&&(a=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-n.x),null!==a&&this.parent.x!==a&&(this.toX={time:0,start:this.parent.x,delta:a-this.parent.x,end:a},this.parent.emit("bounce-x-start",this.parent))}if(!this.toY&&!t.y){var o=null;e.top&&this.top?o=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():0:e.bottom&&this.bottom&&(o=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-n.y),null!==o&&this.parent.y!==o&&(this.toY={time:0,start:this.parent.y,delta:o-this.parent.y,end:o},this.parent.emit("bounce-y-start",this.parent))}}}}},{key:"reset",value:function(){this.toX=this.toY=null}}]),i}()},{"./plugin":9,"./utils":12}],2:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./plugin");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return r.minWidth=t.minWidth,r.minHeight=t.minHeight,r.maxWidth=t.maxWidth,r.maxHeight=t.maxHeight,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),n(i,[{key:"resize",value:function(){this.clamp()}},{key:"clamp",value:function(){if(!this.paused){var e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight;this.minWidth&&e<this.minWidth&&(this.parent.fitWidth(this.minWidth),e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),this.maxWidth&&e>this.maxWidth&&(this.parent.fitWidth(this.maxWidth),e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),this.minHeight&&t<this.minHeight&&(this.parent.fitHeight(this.minHeight),e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),this.maxHeight&&t>this.maxHeight&&(this.parent.fitHeight(this.maxHeight),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}]),i}()},{"./plugin":9}],3:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./plugin"),o=e("./utils");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=t||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return void 0===t.direction?(r.left=o.defaults(t.left,null),r.right=o.defaults(t.right,null),r.top=o.defaults(t.top,null),r.bottom=o.defaults(t.bottom,null)):(r.left="x"===t.direction||"all"===t.direction,r.right="x"===t.direction||"all"===t.direction,r.top="y"===t.direction||"all"===t.direction,r.bottom="y"===t.direction||"all"===t.direction),r.parseUnderflow(t.underflow||"center"),r.move(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),n(i,[{key:"parseUnderflow",value:function(e){"center"===(e=e.toLowerCase())?(this.underflowX=0,this.underflowY=0):(this.underflowX=-1!==e.indexOf("left")?-1:-1!==e.indexOf("right")?1:0,this.underflowY=-1!==e.indexOf("top")?-1:-1!==e.indexOf("bottom")?1:0)}},{key:"move",value:function(){this.update()}},{key:"update",value:function(){if(!this.paused){var e=this.parent.plugins.decelerate||{};if(null!==this.left||null!==this.right){var t=void 0;if(this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:0!==this.parent.x&&(t=!(this.parent.x=0));break;case 1:this.parent.x!==this.parent.screenWidth-this.parent.screenWorldWidth&&(this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth,t=!0);break;default:this.parent.x!==(this.parent.screenWidth-this.parent.screenWorldWidth)/2&&(this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2,t=!0)}else null!==this.left&&this.parent.left<(!0===this.left?0:this.left)&&(this.parent.x=-(!0===this.left?0:this.left)*this.parent.scale.x,t=!(e.x=0)),null!==this.right&&this.parent.right>(!0===this.right?this.parent.worldWidth:this.right)&&(this.parent.x=-(!0===this.right?this.parent.worldWidth:this.right)*this.parent.scale.x+this.parent.screenWidth,t=!(e.x=0));t&&this.parent.emit("moved",{viewport:this.parent,type:"clamp-x"})}if(null!==this.top||null!==this.bottom){var r=void 0;if(this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:0!==this.parent.y&&(r=!(this.parent.y=0));break;case 1:this.parent.y!==this.parent.screenHeight-this.parent.screenWorldHeight&&(this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight,r=!0);break;default:this.parent.y!==(this.parent.screenHeight-this.parent.screenWorldHeight)/2&&(this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2,r=!0)}else null!==this.top&&this.parent.top<(!0===this.top?0:this.top)&&(this.parent.y=-(!0===this.top?0:this.top)*this.parent.scale.y,r=!(e.y=0)),null!==this.bottom&&this.parent.bottom>(!0===this.bottom?this.parent.worldHeight:this.bottom)&&(this.parent.y=-(!0===this.bottom?this.parent.worldHeight:this.bottom)*this.parent.scale.y+this.parent.screenHeight,r=!(e.y=0));r&&this.parent.emit("moved",{viewport:this.parent,type:"clamp-y"})}}}}]),i}()},{"./plugin":9,"./utils":12}],4:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();e("./utils");var a=e("./plugin");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t=t||{},r.friction=t.friction||.95,r.bounce=t.bounce||.5,r.minSpeed=void 0!==t.minSpeed?t.minSpeed:.01,r.saved=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),n(i,[{key:"down",value:function(){this.saved=[],this.x=this.y=!1}},{key:"move",value:function(){if(!this.paused){var e=this.parent.countDownPointers();(1===e||1<e&&!this.parent.plugins.pinch)&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),60<this.saved.length&&this.saved.splice(0,30))}}},{key:"up",value:function(){if(0===this.parent.countDownPointers()&&this.saved.length){var e=performance.now(),t=!0,r=!1,i=void 0;try{for(var n,a=this.saved[Symbol.iterator]();!(t=(n=a.next()).done);t=!0){var o=n.value;if(o.time>=e-100){var s=e-o.time;this.x=(this.parent.x-o.x)/s,this.y=(this.parent.y-o.y)/s,this.percentChangeX=this.percentChangeY=this.friction;break}}}catch(e){r=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw i}}}}},{key:"activate",value:function(e){void 0!==(e=e||{}).x&&(this.x=e.x,this.percentChangeX=this.friction),void 0!==e.y&&(this.y=e.y,this.percentChangeY=this.friction)}},{key:"update",value:function(e){if(!this.paused){var t=void 0;this.x&&(this.parent.x+=this.x*e,this.x*=this.percentChangeX,Math.abs(this.x)<this.minSpeed&&(this.x=0),t=!0),this.y&&(this.parent.y+=this.y*e,this.y*=this.percentChangeY,Math.abs(this.y)<this.minSpeed&&(this.y=0),t=!0),t&&(this.parent.dirty=!0,this.parent.emit("moved",{viewport:this.parent,type:"decelerate"}))}}},{key:"reset",value:function(){this.x=this.y=null}}]),i}()},{"./plugin":9,"./utils":12}],5:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./utils"),o=e("./plugin");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=t||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return r.moved=!1,r.wheelActive=a.defaults(t.wheel,!0),r.wheelScroll=t.wheelScroll||1,r.reverse=t.reverse?1:-1,r.clampWheel=t.clampWheel,r.xDirection=!t.direction||"all"===t.direction||"x"===t.direction,r.yDirection=!t.direction||"all"===t.direction||"y"===t.direction,r.parseUnderflow(t.underflow||"center"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,o),n(i,[{key:"parseUnderflow",value:function(e){"center"===(e=e.toLowerCase())?(this.underflowX=0,this.underflowY=0):(this.underflowX=-1!==e.indexOf("left")?-1:-1!==e.indexOf("right")?1:0,this.underflowY=-1!==e.indexOf("top")?-1:-1!==e.indexOf("bottom")?1:0)}},{key:"down",value:function(e){if(!this.paused){var t=this.parent.countDownPointers();if((1===t||1<t&&!this.parent.plugins.pinch)&&this.parent.parent){var r=this.parent.parent.toLocal(e.data.global);this.last={x:e.data.global.x,y:e.data.global.y,parent:r},this.current=e.data.pointerId}else this.last=null}}},{key:"move",value:function(e){if(!this.paused&&this.last&&this.current===e.data.pointerId){var t=e.data.global.x,r=e.data.global.y,i=this.parent.countDownPointers();if(1===i||1<i&&!this.parent.plugins.pinch){var n=t-this.last.x,a=r-this.last.y;if(this.moved||this.xDirection&&this.parent.checkThreshold(n)||this.yDirection&&this.parent.checkThreshold(a)){var o=this.parent.parent.toLocal(e.data.global);this.xDirection&&(this.parent.x+=o.x-this.last.parent.x),this.yDirection&&(this.parent.y+=o.y-this.last.parent.y),this.last={x:t,y:r,parent:o},this.moved||this.parent.emit("drag-start",{screen:this.last,world:this.parent.toWorld(this.last),viewport:this.parent}),this.moved=!0,this.parent.dirty=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"})}}else this.moved=!1}}},{key:"up",value:function(){var e=this.parent.getTouchPointers();if(1===e.length){var t=e[0];if(t.last){var r=this.parent.parent.toLocal(t.last);this.last={x:t.last.x,y:t.last.y,parent:r},this.current=t.last.data.pointerId}this.moved=!1}else this.last&&this.moved&&(this.parent.emit("drag-end",{screen:this.last,world:this.parent.toWorld(this.last),viewport:this.parent}),this.last=this.moved=!1)}},{key:"wheel",value:function(e){if(!this.paused&&this.wheelActive){var t=this.parent.plugins.wheel;if(!t)return this.parent.x+=e.deltaX*this.wheelScroll*this.reverse,this.parent.y+=e.deltaY*this.wheelScroll*this.reverse,this.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",this.parent),this.parent.dirty=!0,e.preventDefault(),!0}}},{key:"resume",value:function(){this.last=null,this.paused=!1}},{key:"clamp",value:function(){var e=this.parent.plugins.decelerate||{};if("y"!==this.clampWheel)if(this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x=0;break;case 1:this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}else this.parent.left<0?(this.parent.x=0,e.x=0):this.parent.right>this.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,e.x=0);if("x"!==this.clampWheel)if(this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y=0;break;case 1:this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}else this.parent.top<0&&(this.parent.y=0,e.y=0),this.parent.bottom>this.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,e.y=0)}},{key:"active",get:function(){return this.moved}}]),i}()},{"./plugin":9,"./utils":12}],6:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./plugin");t.exports=function(e){function n(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return r=r||{},i.speed=r.speed||0,i.target=t,i.radius=r.radius,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a),i(n,[{key:"update",value:function(){if(!this.paused){var e=this.parent.center,t=this.target.x,r=this.target.y;if(this.radius){if(!(Math.sqrt(Math.pow(this.target.y-e.y,2)+Math.pow(this.target.x-e.x,2))>this.radius))return;var i=Math.atan2(this.target.y-e.y,this.target.x-e.x);t=this.target.x-Math.cos(i)*this.radius,r=this.target.y-Math.sin(i)*this.radius}if(this.speed){var n=t-e.x,a=r-e.y;if(n||a){var o=Math.atan2(r-e.y,t-e.x),s=Math.cos(o)*this.speed,u=Math.sin(o)*this.speed,l=Math.abs(s)>Math.abs(n)?t:e.x+s,c=Math.abs(u)>Math.abs(a)?r:e.y+u;this.parent.moveCenter(l,c),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else this.parent.moveCenter(t,r),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}}]),n}()},{"./plugin":9}],7:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./utils"),o=e("./plugin");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t=t||{},r.options=t,r.reverse=t.reverse?1:-1,r.noDecelerate=t.noDecelerate,r.linear=t.linear,r.radiusSquared=Math.pow(t.radius,2),r.resize(),r.speed=t.speed||8,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,o),n(i,[{key:"resize",value:function(){var e=this.options,t=e.distance;a.exists(t)?(this.left=t,this.top=t,this.right=window.innerWidth-t,this.bottom=window.innerHeight-t):this.radius||(this.left=a.exists(e.left)?e.left:null,this.top=a.exists(e.top)?e.top:null,this.right=a.exists(e.right)?window.innerWidth-e.right:null,this.bottom=a.exists(e.bottom)?window.innerHeight-e.bottom:null)}},{key:"down",value:function(){this.horizontal=this.vertical=null}},{key:"move",value:function(e){if("MOUSE"===e.data.identifier&&0===e.data.buttons){var t=e.data.global.x,r=e.data.global.y;if(this.radiusSquared){var i=this.parent.toScreen(this.parent.center);if(Math.pow(i.x-t,2)+Math.pow(i.y-r,2)>=this.radiusSquared){var n=Math.atan2(i.y-r,i.x-t);this.linear?(this.horizontal=Math.round(Math.cos(n))*this.speed*this.reverse*.06,this.vertical=Math.round(Math.sin(n))*this.speed*this.reverse*.06):(this.horizontal=Math.cos(n)*this.speed*this.reverse*.06,this.vertical=Math.sin(n)*this.speed*this.reverse*.06)}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else a.exists(this.left)&&t<this.left?this.horizontal=1*this.reverse*this.speed*.06:a.exists(this.right)&&t>this.right?this.horizontal=-1*this.reverse*this.speed*.06:(this.decelerateHorizontal(),this.horizontal=0),a.exists(this.top)&&r<this.top?this.vertical=1*this.reverse*this.speed*.06:a.exists(this.bottom)&&r>this.bottom?this.vertical=-1*this.reverse*this.speed*.06:(this.decelerateVertical(),this.vertical=0)}}},{key:"decelerateHorizontal",value:function(){var e=this.parent.plugins.decelerate;this.horizontal&&e&&!this.noDecelerate&&e.activate({x:this.horizontal*this.speed*this.reverse/(1e3/60)})}},{key:"decelerateVertical",value:function(){var e=this.parent.plugins.decelerate;this.vertical&&e&&!this.noDecelerate&&e.activate({y:this.vertical*this.speed*this.reverse/(1e3/60)})}},{key:"up",value:function(){this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null}},{key:"update",value:function(){if(!this.paused&&(this.horizontal||this.vertical)){var e=this.parent.center;this.horizontal&&(e.x+=this.horizontal*this.speed),this.vertical&&(e.y+=this.vertical*this.speed),this.parent.moveCenter(e),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}}]),i}()},{"./plugin":9,"./utils":12}],8:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./plugin");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t=t||{},r.percent=t.percent||1,r.noDrag=t.noDrag,r.center=t.center,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),n(i,[{key:"down",value:function(){2<=this.parent.countDownPointers()&&(this.active=!0)}},{key:"move",value:function(e){if(!this.paused&&this.active){var t=e.data.global.x,r=e.data.global.y,i=this.parent.getTouchPointers();if(2<=i.length){var n=i[0],a=i[1],o=n.last&&a.last?Math.sqrt(Math.pow(a.last.x-n.last.x,2)+Math.pow(a.last.y-n.last.y,2)):null;if(n.pointerId===e.data.pointerId?n.last={x:t,y:r,data:e.data}:a.pointerId===e.data.pointerId&&(a.last={x:t,y:r,data:e.data}),o){var s=void 0,u={x:n.last.x+(a.last.x-n.last.x)/2,y:n.last.y+(a.last.y-n.last.y)/2};this.center||(s=this.parent.toLocal(u));var l=(Math.sqrt(Math.pow(a.last.x-n.last.x,2)+Math.pow(a.last.y-n.last.y,2))-o)/this.parent.screenWidth*this.parent.scale.x*this.percent;this.parent.scale.x+=l,this.parent.scale.y+=l,this.parent.emit("zoomed",{viewport:this.parent,type:"pinch"});var c=this.parent.plugins["clamp-zoom"];if(c&&c.clamp(),this.center)this.parent.moveCenter(this.center);else{var h=this.parent.toGlobal(s);this.parent.x+=u.x-h.x,this.parent.y+=u.y-h.y,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.noDrag&&this.lastCenter&&(this.parent.x+=u.x-this.lastCenter.x,this.parent.y+=u.y-this.lastCenter.y,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=u,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);this.parent.dirty=!0}}}},{key:"up",value:function(){this.pinching&&this.parent.touches.length<=1&&(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent))}}]),i}()},{"./plugin":9}],9:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();t.exports=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.parent=e,this.paused=!1}return i(t,[{key:"down",value:function(){}},{key:"move",value:function(){}},{key:"up",value:function(){}},{key:"wheel",value:function(){}},{key:"update",value:function(){}},{key:"resize",value:function(){}},{key:"reset",value:function(){}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(){this.paused=!1}}]),t}()},{}],10:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./plugin"),o=e("./utils");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t=t||{},r.width=t.width,r.height=t.height,0<r.width&&(r.x_scale=e._screenWidth/r.width),0<r.height&&(r.y_scale=e._screenHeight/r.height),r.xIndependent=o.exists(r.x_scale),r.yIndependent=o.exists(r.y_scale),r.x_scale=r.xIndependent?r.x_scale:r.y_scale,r.y_scale=r.yIndependent?r.y_scale:r.x_scale,r.time=o.defaults(t.time,1e3),r.ease=o.ease(t.ease,"easeInOutSine"),r.center=t.center,r.noMove=t.noMove,r.stopOnResize=t.stopOnResize,r.removeOnInterrupt=t.removeOnInterrupt,r.removeOnComplete=o.defaults(t.removeOnComplete,!0),r.interrupt=o.defaults(t.interrupt,!0),0===r.time?(e.container.scale.x=r.x_scale,e.container.scale.y=r.y_scale,r.removeOnComplete&&r.parent.removePlugin("snap-zoom")):t.forceStart&&r.createSnapping(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),n(i,[{key:"createSnapping",value:function(){var e=this.parent.scale;this.snapping={time:0,startX:e.x,startY:e.y,deltaX:this.x_scale-e.x,deltaY:this.y_scale-e.y},this.parent.emit("snap-zoom-start",this.parent)}},{key:"resize",value:function(){this.snapping=null,0<this.width&&(this.x_scale=this.parent._screenWidth/this.width),0<this.height&&(this.y_scale=this.parent._screenHeight/this.height),this.x_scale=this.xIndependent?this.x_scale:this.y_scale,this.y_scale=this.yIndependent?this.y_scale:this.x_scale}},{key:"reset",value:function(){this.snapping=null}},{key:"wheel",value:function(){this.removeOnInterrupt&&this.parent.removePlugin("snap-zoom")}},{key:"down",value:function(){this.removeOnInterrupt?this.parent.removePlugin("snap-zoom"):this.interrupt&&(this.snapping=null)}},{key:"update",value:function(e){if(!(this.paused||this.interrupt&&0!==this.parent.countDownPointers())){var t=void 0;if(this.center||this.noMove||(t=this.parent.center),this.snapping){if(this.snapping){var r=this.snapping;if(r.time+=e,r.time>=this.time)this.parent.scale.set(this.x_scale,this.y_scale),this.removeOnComplete&&this.parent.removePlugin("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{var i=this.snapping;this.parent.scale.x=this.ease(i.time,i.startX,i.deltaX,this.time),this.parent.scale.y=this.ease(i.time,i.startY,i.deltaY,this.time)}var n=this.parent.plugins["clamp-zoom"];n&&n.clamp(),this.noMove||(this.center?this.parent.moveCenter(this.center):this.parent.moveCenter(t))}}else this.parent.scale.x===this.x_scale&&this.parent.scale.y===this.y_scale||this.createSnapping()}}},{key:"resume",value:function(){this.snapping=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"resume",this).call(this)}}]),i}()},{"./plugin":9,"./utils":12}],11:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var n=e("./plugin"),o=e("./utils");t.exports=function(e){function a(e,t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return i=i||{},n.friction=i.friction||.8,n.time=i.time||1e3,n.ease=o.ease(i.ease,"easeInOutSine"),n.x=t,n.y=r,n.topLeft=i.topLeft,n.interrupt=o.defaults(i.interrupt,!0),n.removeOnComplete=i.removeOnComplete,n.removeOnInterrupt=i.removeOnInterrupt,i.forceStart&&n.startEase(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),i(a,[{key:"snapStart",value:function(){this.percent=0,this.snapping={time:0};var e=this.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-e.x,this.deltaY=this.y-e.y,this.startX=e.x,this.startY=e.y,this.parent.emit("snap-start",this.parent)}},{key:"wheel",value:function(){this.removeOnInterrupt&&this.parent.removePlugin("snap")}},{key:"down",value:function(){this.removeOnInterrupt?this.parent.removePlugin("snap"):this.interrupt&&(this.snapping=null)}},{key:"up",value:function(){if(0===this.parent.countDownPointers()){var e=this.parent.plugins.decelerate;e&&(e.x||e.y)&&(e.percentChangeX=e.percentChangeY=this.friction)}}},{key:"update",value:function(e){if(!(this.paused||this.interrupt&&0!==this.parent.countDownPointers()))if(this.snapping){var t=this.snapping;t.time+=e;var r=void 0,i=void 0,n=void 0;if(t.time>this.time)r=!0,i=this.startX+this.deltaX,n=this.startY+this.deltaY;else{var a=this.ease(t.time,0,1,this.time);i=this.startX+this.deltaX*a,n=this.startY+this.deltaY*a}this.topLeft?this.parent.moveCorner(i,n):this.parent.moveCenter(i,n),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),r&&(this.removeOnComplete&&this.parent.removePlugin("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{var o=this.topLeft?this.parent.corner:this.parent.center;o.x===this.x&&o.y===this.y||this.snapStart()}}}]),a}()},{"./plugin":9,"./utils":12}],12:[function(e,t,r){"use strict";var i=e("penner");function n(e){return null!=e}t.exports={exists:n,defaults:function(e,t){return null!=e?e:t},ease:function(e,t){return n(e)?"function"==typeof e?e:"string"==typeof e?i[e]:void 0:i[t]}}},{penner:15}],13:[function(e,t,r){"use strict";var i=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var n=e("./utils"),a=e("./drag"),o=e("./pinch"),s=e("./clamp"),u=e("./clamp-zoom"),l=e("./decelerate"),c=e("./bounce"),h=e("./snap"),f=e("./snap-zoom"),d=e("./follow"),p=e("./wheel"),m=e("./mouse-edges"),g=["drag","pinch","wheel","follow","mouse-edges","decelerate","bounce","snap-zoom","clamp-zoom","snap","clamp"],v=function(e){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),e=e||{};var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return t.plugins={},t.pluginsList=[],t._screenWidth=e.screenWidth,t._screenHeight=e.screenHeight,t._worldWidth=e.worldWidth,t._worldHeight=e.worldHeight,t.hitAreaFullScreen=n.defaults(e.hitAreaFullScreen,!0),t.forceHitArea=e.forceHitArea,t.threshold=n.defaults(e.threshold,5),t.interaction=e.interaction||null,t.div=e.divWheel||document.body,t.listeners(t.div),t.touches=[],t.ticker=e.ticker||PIXI.ticker.shared,t.tickerFunction=function(){return t.update()},t.ticker.add(t.tickerFunction),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,PIXI.Container),i(r,[{key:"removeListeners",value:function(){this.ticker.remove(this.tickerFunction),this.div.removeEventListener("wheel",this.wheelFunction)}},{key:"destroy",value:function(e){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroy",this).call(this,e),this.removeListeners()}},{key:"update",value:function(){if(!this.pause){var e=!0,t=!1,r=void 0;try{for(var i,n=this.pluginsList[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){i.value.update(this.ticker.elapsedMS)}}catch(e){t=!0,r=e}finally{try{!e&&n.return&&n.return()}finally{if(t)throw r}}}this.forceHitArea||(this.hitArea.x=this.left,this.hitArea.y=this.top,this.hitArea.width=this.worldScreenWidth,this.hitArea.height=this.worldScreenHeight)}},{key:"resize",value:function(e,t,r,i){this._screenWidth=e||window.innerWidth,this._screenHeight=t||window.innerHeight,this._worldWidth=r,this._worldHeight=i,this.resizePlugins()}},{key:"resizePlugins",value:function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.pluginsList[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){i.value.resize()}}catch(e){t=!0,r=e}finally{try{!e&&n.return&&n.return()}finally{if(t)throw r}}}},{key:"listeners",value:function(e){var t=this;this.interactive=!0,this.forceHitArea||(this.hitArea=new PIXI.Rectangle(0,0,this.worldWidth,this.worldHeight)),this.on("pointerdown",this.down),this.on("pointermove",this.move),this.on("pointerup",this.up),this.on("pointerupoutside",this.up),this.on("pointercancel",this.up),this.on("pointerout",this.up),this.wheelFunction=function(e){return t.handleWheel(e)},e.addEventListener("wheel",this.wheelFunction),this.leftDown=!1}},{key:"down",value:function(e){if(!this.pause){if("mouse"===e.data.pointerType?0==e.data.originalEvent.button&&(this.leftDown=!0):this.touches.push(e.data.pointerId),1===this.countDownPointers()){this.last={x:e.data.global.x,y:e.data.global.y};var t=this.plugins.decelerate,r=this.plugins.bounce;t&&(t.x||t.y)||r&&(r.toX||r.toY)||(this.clickedAvailable=!0)}else this.clickedAvailable=!1;var i=!0,n=!1,a=void 0;try{for(var o,s=this.pluginsList[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){o.value.down(e)}}catch(e){n=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw a}}}}},{key:"checkThreshold",value:function(e){return Math.abs(e)>=this.threshold}},{key:"move",value:function(e){if(!this.pause){var t=!0,r=!1,i=void 0;try{for(var n,a=this.pluginsList[Symbol.iterator]();!(t=(n=a.next()).done);t=!0){n.value.move(e)}}catch(e){r=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw i}}if(this.clickedAvailable){var o=e.data.global.x-this.last.x,s=e.data.global.y-this.last.y;(this.checkThreshold(o)||this.checkThreshold(s))&&(this.clickedAvailable=!1)}}}},{key:"up",value:function(e){if(!this.pause){if(e.data.originalEvent instanceof MouseEvent&&0==e.data.originalEvent.button&&(this.leftDown=!1),"mouse"!==e.data.pointerType)for(var t=0;t<this.touches.length;t++)if(this.touches[t]===e.data.pointerId){this.touches.splice(t,1);break}var r=!0,i=!1,n=void 0;try{for(var a,o=this.pluginsList[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){a.value.up(e)}}catch(e){i=!0,n=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw n}}this.clickedAvailable&&0===this.countDownPointers()&&(this.emit("clicked",{screen:this.last,world:this.toWorld(this.last),viewport:this}),this.clickedAvailable=!1)}}},{key:"getPointerPosition",value:function(e){var t=new PIXI.Point;return this.interaction?this.interaction.mapPositionToPoint(t,e.clientX,e.clientY):(t.x=e.clientX,t.y=e.clientY),t}},{key:"handleWheel",value:function(e){if(!this.pause){var t=this.toLocal(this.getPointerPosition(e));if(this.left<=t.x&&t.x<=this.right&&this.top<=t.y&&t.y<=this.bottom){var r=void 0,i=!0,n=!1,a=void 0;try{for(var o,s=this.pluginsList[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){o.value.wheel(e)&&(r=!0)}}catch(e){n=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw a}}return r}}}},{key:"toWorld",value:function(){if(2!==arguments.length)return this.toLocal(arguments[0]);var e=arguments[0],t=arguments[1];return this.toLocal({x:e,y:t})}},{key:"toScreen",value:function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.toGlobal({x:e,y:t})}var r=arguments[0];return this.toGlobal(r)}},{key:"moveCenter",value:function(){var e=void 0,t=void 0;return t=isNaN(arguments[0])?(e=arguments[0].x,arguments[0].y):(e=arguments[0],arguments[1]),this.position.set((this.worldScreenWidth/2-e)*this.scale.x,(this.worldScreenHeight/2-t)*this.scale.y),this._reset(),this}},{key:"moveCorner",value:function(){return 1===arguments.length?this.position.set(-arguments[0].x*this.scale.x,-arguments[0].y*this.scale.y):this.position.set(-arguments[0]*this.scale.x,-arguments[1]*this.scale.y),this._reset(),this}},{key:"fitWidth",value:function(e,t){var r=void 0;return t&&(r=this.center),e=e||this.worldWidth,this.scale.x=this.screenWidth/e,this.scale.y=this.scale.x,t&&this.moveCenter(r),this}},{key:"fitHeight",value:function(e,t){var r=void 0;return t&&(r=this.center),e=e||this.worldHeight,this.scale.y=this.screenHeight/e,this.scale.x=this.scale.y,t&&this.moveCenter(r),this}},{key:"fitWorld",value:function(e){var t=void 0;return e&&(t=this.center),this.scale.x=this._screenWidth/this._worldWidth,this.scale.y=this._screenHeight/this._worldHeight,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y,e&&this.moveCenter(t),this}},{key:"fit",value:function(e,t,r){var i=void 0;return e&&(i=this.center),t=t||this.worldWidth,r=r||this.worldHeight,this.scale.x=this.screenWidth/t,this.scale.y=this.screenHeight/r,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y,e&&this.moveCenter(i),this}},{key:"zoomPercent",value:function(e,t){var r=void 0;t&&(r=this.center);var i=this.scale.x+this.scale.x*e;return this.scale.set(i),t&&this.moveCenter(r),this}},{key:"zoom",value:function(e,t){return this.fitWidth(e+this.worldScreenWidth,t),this}},{key:"snapZoom",value:function(e){return this.plugins["snap-zoom"]=new f(this,e),this.pluginsSort(),this}},{key:"OOB",value:function(){var e={};return e.left=this.left<0,e.right=this.right>this._worldWidth,e.top=this.top<0,e.bottom=this.bottom>this._worldHeight,e.cornerPoint={x:this._worldWidth*this.scale.x-this._screenWidth,y:this._worldHeight*this.scale.y-this._screenHeight},e}},{key:"countDownPointers",value:function(){return(this.leftDown?1:0)+this.touches.length}},{key:"getTouchPointers",value:function(){var e=[],t=this.trackedPointers;for(var r in t){var i=t[r];-1!==this.touches.indexOf(i.pointerId)&&e.push(i)}return e}},{key:"getPointers",value:function(){var e=[],t=this.trackedPointers;for(var r in t)e.push(t[r]);return e}},{key:"_reset",value:function(){this.plugins.bounce&&(this.plugins.bounce.reset(),this.plugins.bounce.bounce()),this.plugins.decelerate&&this.plugins.decelerate.reset(),this.plugins.snap&&this.plugins.snap.reset(),this.plugins.clamp&&this.plugins.clamp.update(),this.plugins["clamp-zoom"]&&this.plugins["clamp-zoom"].clamp(),this.dirty=!0}},{key:"removePlugin",value:function(e){this.plugins[e]&&(this.plugins[e]=null,this.emit(e+"-remove"),this.pluginsSort())}},{key:"pausePlugin",value:function(e){this.plugins[e]&&this.plugins[e].pause()}},{key:"resumePlugin",value:function(e){this.plugins[e]&&this.plugins[e].resume()}},{key:"pluginsSort",value:function(){var e=!0,t=!(this.pluginsList=[]),r=void 0;try{for(var i,n=g[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var a=i.value;this.plugins[a]&&this.pluginsList.push(this.plugins[a])}}catch(e){t=!0,r=e}finally{try{!e&&n.return&&n.return()}finally{if(t)throw r}}}},{key:"drag",value:function(e){return this.plugins.drag=new a(this,e),this.pluginsSort(),this}},{key:"clamp",value:function(e){return this.plugins.clamp=new s(this,e),this.pluginsSort(),this}},{key:"decelerate",value:function(e){return this.plugins.decelerate=new l(this,e),this.pluginsSort(),this}},{key:"bounce",value:function(e){return this.plugins.bounce=new c(this,e),this.pluginsSort(),this}},{key:"pinch",value:function(e){return this.plugins.pinch=new o(this,e),this.pluginsSort(),this}},{key:"snap",value:function(e,t,r){return this.plugins.snap=new h(this,e,t,r),this.pluginsSort(),this}},{key:"follow",value:function(e,t){return this.plugins.follow=new d(this,e,t),this.pluginsSort(),this}},{key:"wheel",value:function(e){return this.plugins.wheel=new p(this,e),this.pluginsSort(),this}},{key:"clampZoom",value:function(e){return this.plugins["clamp-zoom"]=new u(this,e),this.pluginsSort(),this}},{key:"mouseEdges",value:function(e){return this.plugins["mouse-edges"]=new m(this,e),this.pluginsSort(),this}},{key:"screenWidth",get:function(){return this._screenWidth},set:function(e){this._screenWidth=e}},{key:"screenHeight",get:function(){return this._screenHeight},set:function(e){this._screenHeight=e}},{key:"worldWidth",get:function(){return this._worldWidth?this._worldWidth:this.width},set:function(e){this._worldWidth=e,this.resizePlugins()}},{key:"worldHeight",get:function(){return this._worldHeight?this._worldHeight:this.height},set:function(e){this._worldHeight=e,this.resizePlugins()}},{key:"worldScreenWidth",get:function(){return this._screenWidth/this.scale.x}},{key:"worldScreenHeight",get:function(){return this._screenHeight/this.scale.y}},{key:"screenWorldWidth",get:function(){return this._worldWidth*this.scale.x}},{key:"screenWorldHeight",get:function(){return this._worldHeight*this.scale.y}},{key:"center",get:function(){return{x:this.worldScreenWidth/2-this.x/this.scale.x,y:this.worldScreenHeight/2-this.y/this.scale.y}},set:function(e){this.moveCenter(e)}},{key:"corner",get:function(){return{x:-this.x/this.scale.x,y:-this.y/this.scale.y}},set:function(e){this.moveCorner(e)}},{key:"right",get:function(){return-this.x/this.scale.x+this.worldScreenWidth},set:function(e){this.x=-e*this.scale.x+this.screenWidth,this._reset()}},{key:"left",get:function(){return-this.x/this.scale.x},set:function(e){this.x=-e*this.scale.x,this._reset()}},{key:"top",get:function(){return-this.y/this.scale.y},set:function(e){this.y=-e*this.scale.y,this._reset()}},{key:"bottom",get:function(){return-this.y/this.scale.y+this.worldScreenHeight},set:function(e){this.y=-e*this.scale.y+this.screenHeight,this._reset()}},{key:"dirty",get:function(){return this._dirty},set:function(e){this._dirty=e}},{key:"forceHitArea",get:function(){return this._forceHitArea},set:function(e){e?(this._forceHitArea=e,this.hitArea=e):(this._forceHitArea=!1,this.hitArea=new PIXI.Rectangle(0,0,this.worldWidth,this.worldHeight))}},{key:"pause",get:function(){return this._pause},set:function(e){(this._pause=e)&&(this.touches=[],this.leftDown=!1)}}]),r}();PIXI.extras.Viewport=v,t.exports=v},{"./bounce":1,"./clamp":3,"./clamp-zoom":2,"./decelerate":4,"./drag":5,"./follow":6,"./mouse-edges":7,"./pinch":8,"./snap":11,"./snap-zoom":10,"./utils":12,"./wheel":14}],14:[function(e,t,r){"use strict";var n=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();var a=e("./plugin");t.exports=function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t=t||{},r.percent=t.percent||.1,r.center=t.center,r.reverse=t.reverse,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),n(i,[{key:"wheel",value:function(e){if(!this.paused){var t=void 0;t=this.reverse?0<e.deltaY?1+this.percent:1-this.percent:0<e.deltaY?1-this.percent:1+this.percent;var r=this.parent.getPointerPosition(e),i=void 0;this.center||(i=this.parent.toLocal(r)),this.parent.scale.x*=t,this.parent.scale.y*=t,this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});var n=this.parent.plugins["clamp-zoom"];if(n&&n.clamp(),this.center)this.parent.moveCenter(this.center);else{var a=this.parent.toGlobal(i);this.parent.x+=r.x-a.x,this.parent.y+=r.y-a.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel",{wheel:{dx:e.deltaX,dy:e.deltaY,dz:e.deltaZ},event:e,viewport:this.parent}),e.preventDefault()}}}]),i}()},{"./plugin":9}],15:[function(e,t,r){(function(){var n;(function(e){"object"==typeof r?t.exports=e:"function"==typeof define&&define.amd?define([],e):this.penner=e})(n={linear:function(e,t,r,i){return r*e/i+t},easeInQuad:function(e,t,r,i){return r*(e/=i)*e+t},easeOutQuad:function(e,t,r,i){return-r*(e/=i)*(e-2)+t},easeInOutQuad:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,r,i){return r*(e/=i)*e*e+t},easeOutCubic:function(e,t,r,i){return r*((e=e/i-1)*e*e+1)+t},easeInOutCubic:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,r,i){return r*(e/=i)*e*e*e+t},easeOutQuart:function(e,t,r,i){return-r*((e=e/i-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e*e*e+t:-r/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,r,i){return r*(e/=i)*e*e*e*e+t},easeOutQuint:function(e,t,r,i){return r*((e=e/i-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,r,i){return(e/=i/2)<1?r/2*e*e*e*e*e+t:r/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,r,i){return-r*Math.cos(e/i*(Math.PI/2))+r+t},easeOutSine:function(e,t,r,i){return r*Math.sin(e/i*(Math.PI/2))+t},easeInOutSine:function(e,t,r,i){return-r/2*(Math.cos(Math.PI*e/i)-1)+t},easeInExpo:function(e,t,r,i){return 0===e?t:r*Math.pow(2,10*(e/i-1))+t},easeOutExpo:function(e,t,r,i){return e===i?t+r:r*(1-Math.pow(2,-10*e/i))+t},easeInOutExpo:function(e,t,r,i){return(e/=i/2)<1?r/2*Math.pow(2,10*(e-1))+t:r/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,r,i){return-r*(Math.sqrt(1-(e/=i)*e)-1)+t},easeOutCirc:function(e,t,r,i){return r*Math.sqrt(1-(e=e/i-1)*e)+t},easeInOutCirc:function(e,t,r,i){return(e/=i/2)<1?-r/2*(Math.sqrt(1-e*e)-1)+t:r/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,r,i){var n,a,o;return o=1.70158,(a=0)===e||(e/=i),a||(a=.3*i),o=(n=r)<Math.abs(r)?(n=r,a/4):a/(2*Math.PI)*Math.asin(r/n),-n*Math.pow(2,10*(e-=1))*Math.sin((e*i-o)*(2*Math.PI)/a)+t},easeOutElastic:function(e,t,r,i){var n,a,o;return o=1.70158,(a=0)===e||(e/=i),a||(a=.3*i),o=(n=r)<Math.abs(r)?(n=r,a/4):a/(2*Math.PI)*Math.asin(r/n),n*Math.pow(2,-10*e)*Math.sin((e*i-o)*(2*Math.PI)/a)+r+t},easeInOutElastic:function(e,t,r,i){var n,a,o;return o=1.70158,(a=0)===e||(e/=i/2),a||(a=i*(.3*1.5)),o=(n=r)<Math.abs(r)?(n=r,a/4):a/(2*Math.PI)*Math.asin(r/n),e<1?n*Math.pow(2,10*(e-=1))*Math.sin((e*i-o)*(2*Math.PI)/a)*-.5+t:n*Math.pow(2,-10*(e-=1))*Math.sin((e*i-o)*(2*Math.PI)/a)*.5+r+t},easeInBack:function(e,t,r,i,n){return void 0===n&&(n=1.70158),r*(e/=i)*e*((n+1)*e-n)+t},easeOutBack:function(e,t,r,i,n){return void 0===n&&(n=1.70158),r*((e=e/i-1)*e*((n+1)*e+n)+1)+t},easeInOutBack:function(e,t,r,i,n){return void 0===n&&(n=1.70158),(e/=i/2)<1?r/2*(e*e*((1+(n*=1.525))*e-n))+t:r/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:function(e,t,r,i){return r-n.easeOutBounce(i-e,0,r,i)+t},easeOutBounce:function(e,t,r,i){return(e/=i)<1/2.75?r*(7.5625*e*e)+t:e<2/2.75?r*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?r*(7.5625*(e-=2.25/2.75)*e+.9375)+t:r*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,r,i){return e<i/2?.5*n.easeInBounce(2*e,0,r,i)+t:.5*n.easeOutBounce(2*e-i,0,r,i)+.5*r+t}})}).call(this)},{}]},{},[13]),function(){"use strict";var h="undefined"==typeof WebKitCSSMatrix?new DOMMatrix:new WebKitCSSMatrix;function f(e,t,r){this.x=e,this.y=t,this.z=r}function d(t){try{return"undefined"==typeof WebKitCSSMatrix?new DOMMatrix(t):new WebKitCSSMatrix(t)}catch(e){return console.warn(t),console.warn(e.toString()),h}}function i(e){for(var t=h,r=e;null!=r&&r!==r.ownerDocument.documentElement;){var i=window.getComputedStyle(r,void 0).transform||"none";t=("none"===i?h:d(i)).multiply(t),r=r.parentNode}for(var n=e.offsetWidth,a=e.offsetHeight,o=4,s=1/0,u=1/0;0<=--o;){var l=new f(0===o||1===o?0:n,0===o||3===o?0:a,0).transformBy(t);l.x<s&&(s=l.x),l.y<u&&(u=l.y)}var c=e.getBoundingClientRect();return t=h.translate(window.pageXOffset+c.left-s,window.pageYOffset+c.top-u,0).multiply(t)}f.prototype.transformBy=function(e){var t=e.multiply(h.translate(this.x,this.y,this.z));return new f(t.m41,t.m42,t.m43)},window.convertPointFromPageToNode=function(e,t,r){return new f(t,r,0).transformBy(i(e).inverse())},window.convertPointFromNodeToPage=function(e,t,r){return new f(t,r,0).transformBy(i(e))}}(),function(){var e={exports:null};function t(e){var t=[],r=0;if(this.trie=this.createTrie(e.patterns),this.leftMin=e.leftmin,this.rightMin=e.rightmin,this.exceptions={},e.exceptions)for(t=e.exceptions.split(/,\s?/g);r<t.length;r+=1)this.exceptions[t[r].replace(/\u2027/g,"").toLowerCase()]=new RegExp("("+t[r].split("‧").join(")(")+")","i")}t.prototype.createTrie=function(e){var t,r=0,i=0,n=0,a=0,o=null,s=null,u=null,l=null,c={_points:[]};for(r in e)if(e.hasOwnProperty(r))for(t=e[r].match(new RegExp(".{1,"+ +r+"}","g")),i=0;i<t.length;i+=1){for(o=t[i].replace(/[0-9]/g,"").split(""),s=t[i].split(/\D/),l=c,n=0;n<o.length;n+=1)l[u=o[n].charCodeAt(0)]||(l[u]={}),l=l[u];for(l._points=[],a=0;a<s.length;a+=1)l._points[a]=s[a]||0}return c},t.prototype.hyphenateText=function(e,t){t=t||4;for(var r=e.split(/([a-zA-Z0-9_\u0027\u00DF-\u00EA\u00EC-\u00EF\u00F1-\u00F6\u00F8-\u00FD\u0101\u0103\u0105\u0107\u0109\u010D\u010F\u0111\u0113\u0117\u0119\u011B\u011D\u011F\u0123\u0125\u012B\u012F\u0131\u0135\u0137\u013C\u013E\u0142\u0144\u0146\u0148\u0151\u0153\u0155\u0159\u015B\u015D\u015F\u0161\u0165\u016B\u016D\u016F\u0171\u0173\u017A\u017C\u017E\u017F\u0219\u021B\u02BC\u0390\u03AC-\u03CE\u03F2\u0401\u0410-\u044F\u0451\u0454\u0456\u0457\u045E\u0491\u0531-\u0556\u0561-\u0587\u0902\u0903\u0905-\u090B\u090E-\u0910\u0912\u0914-\u0928\u092A-\u0939\u093E-\u0943\u0946-\u0948\u094A-\u094D\u0982\u0983\u0985-\u098B\u098F\u0990\u0994-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BE-\u09C3\u09C7\u09C8\u09CB-\u09CD\u09D7\u0A02\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A14-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A82\u0A83\u0A85-\u0A8B\u0A8F\u0A90\u0A94-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABE-\u0AC3\u0AC7\u0AC8\u0ACB-\u0ACD\u0B02\u0B03\u0B05-\u0B0B\u0B0F\u0B10\u0B14-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B57\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C02\u0C03\u0C05-\u0C0B\u0C0E-\u0C10\u0C12\u0C14-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3E-\u0C43\u0C46-\u0C48\u0C4A-\u0C4D\u0C82\u0C83\u0C85-\u0C8B\u0C8E-\u0C90\u0C92\u0C94-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBE-\u0CC3\u0CC6-\u0CC8\u0CCA-\u0CCD\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D60\u0D61\u0D7A-\u0D7F\u1F00-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB2-\u1FB4\u1FB6\u1FB7\u1FBD\u1FBF\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD2\u1FD3\u1FD6\u1FD7\u1FE2-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u200D\u2019]+)/g),i=0;i<r.length;i+=1)-1!==r[i].indexOf("/")?0===i||i===r.length-1||/\s+\/|\/\s+/.test(r[i])||(r[i]+=""):r[i].length>t&&(r[i]=this.hyphenate(r[i]).join(""));return r.join("")},t.prototype.hyphenate=function(e){var t,r,i,n,a,o,s,u,l,c=[],h=[],f=e.toLowerCase(),d=Math.max,p=this.trie,m=[""];if(this.exceptions.hasOwnProperty(f))return e.match(this.exceptions[f]).slice(1);if(-1!==e.indexOf(""))return[e];for(t=(e="_"+e+"_").toLowerCase().split(""),r=e.split(""),s=t.length,i=0;i<s;i+=1)h[i]=0,c[i]=t[i].charCodeAt(0);for(i=0;i<s;i+=1)for(o=p,n=i;n<s&&(o=o[c[n]]);n+=1)if(u=o._points)for(a=0,l=u.length;a<l;a+=1)h[i+a]=d(h[i+a],u[a]);for(i=1;i<s-1;i+=1)i>this.leftMin&&i<s-this.rightMin&&h[i]%2?m.push(r[i]):m[m.length-1]+=r[i];return m},e.exports=t,window.Hypher=e.exports,window.Hypher.languages={}}(),jQuery.fn.hyphenate=function(r){if(window.Hypher.languages[r])return this.each(function(){for(var e=0,t=this.childNodes.length;e<t;e+=1)3===this.childNodes[e].nodeType&&(this.childNodes[e].nodeValue=window.Hypher.languages[r].hyphenateText(this.childNodes[e].nodeValue))})},function(){var e={exports:null,exports:{id:"de",leftmin:2,rightmin:2,patterns:{3:"2aaa1äa1ba1da1ga1j2aoa1öa1p2aqa1ßa2ua1xä1aä1bä1dä1gä1jä1k1äqä1ß1äxä1z1bibl21cacä3c1dc4h1cic1jc4k3co2cp2cs3cu1cy1de1did1ö1due1be1d4eee1fe1ge1ke1m2eoe1pe1qe1ße1te3üe1wey1e1z1fa1fä1fe1fi1fo1fö1fu1fü1fy2gd1geg1n1guh1j2hl2hnh1q2hr4hsh2ü2hwh1zi1a2iä2ici1d2ifi1ji1ßi1üj2u1ka1käkl21ko1kök1q2ks1kü1le1li4ln1lo1lö1ly1ma3mä1me1mi1mo1mö1mu1mü1my1na1nä1ne1nin1j1noo1b2oco1d2oi2ol2omo1qo2uo1vo1xö1bö1dö1e1öf2önöo1ö1ßö1vö1wö1zp2a1päp2e1php1j1puqu42rc1re1ri4rnr1q1ru1rü1ry1sa1sä1sc1se1si1so1sös1t1su1sü1ße1ßiß1j1ßu1ta1tä1tet1h1ti1to2tö2ts1tu2tü2ua2ucu1h2uiu1ju1lun12uou1q2usu1w1üb2üc2üdü1gü1k2ünü1ß2ütü1vü1zve2v2r2vsw2aw2ä2wnw2rw2ux1a1xe1xix1jx1q1xu2xyx1zy1by1ey1gy1hy1jy1ly1py1ry1vy1wy1yzä2zu1zw2",4:"_ax4_äm3_ch2_en1_eu1_fs4_gd2_gs4_he2_ia4_in1_ks2_oa3_öd2_pf4_ph4_ps2_st4_th4_ts2_um3_ur1_xe3a1abaa1ca3au2abaab1ä1abd1abf1abg1abh2abi1abkab1l1abnab3r1abs2abu2abü1abw2aby1abz2aca2acc2acu1add2adf2adh5adj2ado2adp2adq2adu2a1eae2bae2cae2da2ekae2pa2eta2ewae2xaf1a2afe2afia2fö2agaag2n2agt2ah_2ahsa1huah1wa1hyaif2a2il2aisaje22ak_2akb2akc2akd4ako2aks1akza1laa1lä2ale2ali2aloa1lu4aly2am_2amä2amf2amk2amla2mö2amu1anb2ane1anf1anh2anj1anl2anna1nö1anra1nü1anwao1ia1opa1or2ap_2apa2apea2pfap2n2apr2ar_a1raa1rä1arb2are2arf2arh2ari2arr2arua2rü2arv2ary4asha2söa2süaße22a1tata1at2cat2eat2h3atmat1ö4atra3tü2au_2aub4auc2aue2aug2auj4aum4aunau1o2auu2auw2aux2auz2a1ü2a1v4avia2vr2a1wax2eays4ay3t2a1zaz2aaz2oaz2uäb2sä1ckä2daä2dräd2s2ä1eäf3läf3räf2säg2näh1aä3hi2ähm2ähsä1huäh1wä1imä1la2äleä1lu2ämläm2s2än_2äne2änsä1onä1paär1äär1c4äreä1röä2rü1ärzä3suä3teät2häu1cä2uf1äug4äul2äumä2un2äur1äuß4ä1v3bah3basb2ärb2äs4b1bb3bebb2sbbu12b1c3be_3bea3beb3bek3bel1bembe1o3bet1bezbge3bib23bilbiz24b1j2bl_b2leb2lo3blü2b1mbni2bo4abo2cboe1b1op2böfb1öl2b1qb2r42br_3brä3brü4b1sb3säb3scb4slb2söbss2bs2t4b3tb5teb4thbt4rbtü1bu2fbü1c2b1v2b1w3by1by3pbys2ca1h3camc4an3carcäs22c1ccch22cec2cefce1i2cek1cen1cer1cetce1u2c1f4ch_2chb2chc2chd2chf2chg2chh2chj2chk2chp4chs2cht4chü2chv4chw1chy2chzci1cci2s4ck_ck1ack1ä2ckb2ckc2ckd1cke2ckf2ckg2ckh1cki2ckk2ckm2ckp4cks2ckt1cku2ckv2ckw1cky2ckzclo1co2ccoi22c1qcre2cry2cs2ac2si4c1tcti22c1z3da_da1ad1afd1agda1sdä2u2d1cd3dhd5dodeg2d1eides1det2dga2d3gl3di_3dicdi2edi1p2d1j4d1ld3ladni2d1obdo2o2d1qd2r4d3rid3rö2d1s4dsb4dsld2södss4dst42d1td2thdto2d3tödt3rd3tüdu2fdu1idu1odur22düb3düf3dün2d1wdwa2dy2s2d1z2e1aea2ceak1eam3e2ase1ä22eba2ebl2ebre3bue1ce2ecle3cr2ected2eed2öee1eeeg2e1eie1en2ef_2efa2efe2efi2eflefs22efu2efüegd4e3gee2gn2egue1hee1hi2ehme1hoehs22ehte1hue1hüeh1we1hy4eibe2idei1ee4ilei1p2eire2it2eiu2e1jek2a1ekdek4nek2oek4r2ektek2ue1la2eli2eln2eloe1lü2elz2ema2emm2emüen3fe4nre4nten1ue1nüe1nye1ofe1ohe4ole1ore1ove1ö2e3pae3puer1ae1räer1cer3h2erie1roer1ö2eru2esbes2c2esf4eshes3l2esmes2ö2esp2esres3we3syes3ze3teet2he3tie3tö2etre3tü2etz2euf1euke1um2euneu1p2eut2eux2e1ve3vo2ewae3wä2eweew2s2ex_3exp2exuey4neys4e3ziez2wfab43facf4ahf2alf2arf3atfä1cf1äu2f1cfe2c3fewf1ex3fez2f1fff2efff4ff3lff2s3fi_fid2fi2ofi2r3fis3fiz2f1jf2l22fl_1fläf3löf4lü2föf2f1qf2r2f3ruf3rü4f1sf3scf3sifs2tf2süf3sy4f1tf2thf3töf3tü3fugf1umf2ur3fut2fübfü2r2f1v2f1w2f1zfz2afz2öfzu33ga_ga1c5gaiga1kgäs5gä4ugbi22g1cg1dag1dog1dögdt4gd1uge1cged4gef4g2el4g1gg3gegg4r2g1h4gh_gh2egh1lg2hugh1w2g1j4gl_2gls3glüg2ly2gn_gn2e2gng2gnp2gns2gnt2gnug2nüg2ny2gnzgo4a2goggo1igo1y2g1qg2r4gse2g4slgso2gsp4g4swg3sy2g1tg3tegt2sg3tügu1cgu2egu2t2gübgür1güs32g1v2g1w3haah1ahh1aph2as2h1c2heahe3x2hi_2hiahi2ehi2n2hio2hiuhlb4hld4hlg4hll2hlm2h2lo2h1mh2moh3möhm2sh2muh2nah2nähn2eh1nu2hodhoe42hoih2on2hoo2hop3hov1h2öhö2ch4örhr1chr3dhrf2hrg2h2rihrr4h3rüh2ryhrz2hss24h1th2thhto2h4tshtt4h3tühu1chu2n2hurhüs32h1vhvi23hyg3hyphz2o2ia_i4aai2ab2iaci2afi2ahi3aii2aji2ak2iali2am2iani2apia1q2iasi3au2iavi1ämiär22i1bib2oi2böice1idt4i2dyie1ci1eii1exif3lif3rif2s2i1gi2gli3go4i1hi3heih3mih3nih3rihs2ih1wi3i2ii4s2i1k4ikei2kni1la6ilbil2cilf22iloilv42im_2ime2imo2imt2imu2inein3f2inoi1nö2inp2inrin1ui1ny2i1oio1cio2dion2i2ori2oui2ovio2xi3ön2ip_i1pai1peiph2ip4li1pr2ips2ipu2i1qi1räir1cir2eir2i2irki1roi1rö2isb2iseis3ti2sü4itäi6tli3töi3tü2itzium12i1v2i1w2i1xi2xai3xi2i1zi2zöja1c2jatje2aje1cje2gje2pje3wji2ajit3ji2vjoa3jo2iju2kjus32j1v3ka_ka1ck2adk2agka2o3kask1ähk1änkär2kby42k3cki1c3kir2kiz2k3j4kl_k2lek1lu2kly2k1mk2n2k3nek3nu3knü3komk2onk2os3kowkö2fk1ölk2r4kst44k1tk2thktt2k3tükt3zku1ckuh12kübkü1c2k1v2k1w3la_1lad2laf1lai3lao1lawlay1lä1c1läd2läf4lät2l1blb2slb2u2l1c4l1dld3rldt43le_2lec3ledle2e3lehl2ek2leple2u3levl2ey2l1flf4u2l1glgd4l3go3li_3liali1cl2ie3ligli3l2limli2o3liu4l1j2l1klk2l4l1lllb4llg4llk4ll5mlln22l1mlm3plm3tlnd2l3nil1nul1nü3loklo2o2lox2löd4lög4löß2l1plp2fl3pu2l1q4l1s4l1tl2thl6tsltt2l3tü1luf4luo2lur3lux2lüb5lüd2l1v2l3wly3c3lynly1oly3u2l1zl2zölz1wm1abmae2ma1f3mas3maßm4aymb4lmby42m3c2m1dmd1ameb43mehme1o2meö3mesmeu13mi_mi1c3mig3mil3mit2m1jm3ka4m1lm3li4m1mmmd2mmm2mm3pmm2smoa33moh3mom3mos3motmo1ymö2c4mökm1öl2m1pm2pfm3pim3pu2m1q4m1sm3säm3scm3sem2süm3sy4m1tm2thm3tömtt2m3tümt3zmu1a3munm4us2müb3mün3müt2m1vmwa2my4s2m1z3na_n1af3nain1ar3nas3natn1au3näe3näs2näunby42n1cn2ck2n1dn2döndy33ne_2nec3nedn1efneg4ne2l3nenne2un2ew3nez2n1fnf2änff4n3finf4lnf2onf4rnf3s4n1gng3mn2gnn3hän3hen3hu3nian1idn4ie3niknin1n2ip2nitni3v3nix2n1k4n1nnn3fnng4n3ni3no_no1cn1of3nov3now3noz2nödn2ör2n1q6n1snsp4n3sy2n1tn3ton3tön4tsn3tun3tü1nu_1nud3nuenuf21nug1nuinu2n1nuo2nup2nur1nut1nuu1nux1nuz3nü_3nüs1nüt4n1w1ny_1nyhn1yo1nyr1nys1nyw2n1znz3so4aco4ado4aho2aro2aso4ato5au2obbob2e1objob1lo3cao1ceo1ck2odrodt4o2ecoen12ofa2ofiof3l2ofo2oft2o1go3ghogs2o1hao1häo1heo1hio1hooh1soh3to1huoh1wo3ieo1imo1inoi2r2o1j2o1kok4n4okrokt4o1lao1läol2io3loo1lu3olyoms2omy12ona2onä2onc2oneono1o1nuon3v1onyon3zoof2o1opo1oro1pao1pi2or_or1ao3räor1c4ore2orf2orh2orm2orq2orro3ru2osh2osio3sk2oso2o1to3tüoub4oug2o3uho3um2our2ouv2o1ü2ovi2ovo2o1wo3wiox2aox2eo2xu1oxyo1yo2o1zoz2eo3ziöb2l2ö1cödi3öf3lög3lög3rö1heö1huö1keök3r3öl_öls2öm2sön2eö3niön2sö1nuö1peör1cöru4ö2saö2spö2stö3su2ö1töt2höts2öze31pa_1paa1pacpag41pak1pap2paß1pat1pau3päd3pär3päs2p1b2p3cpda41pe_pe2a1pedpef4pei13pel1pem1pep3pet4pf_1pfäpff4pf3r2p1g4ph_ph2a2phä2phb4phd2phf4phg4phkph2l2phm2phn2phöph4r2phs2phz3pik1pilpi2o3pip3pispku22pl_3pläp4lo2p1n1p2opo1c3podpo2i3pokpo2wpo3xpö2c2p1ppp3lppt2p2r2p4rä2p1s4ps_p3sep2söp2st2p1tpt1ap3tep2thptt2ptü4pt3zpu1apub42puc2pur3put1püf2pülpün22p1v2p1w3py1pys4py3t2p1z1ra_r1abr2ad1raer2afr2air2alr2apr1arr2as2raß1rat1raür2ax4räf4räg2räh2rämrä2u2r1brbb2rb2orb2srb2ur1ce2r1dr2dördt43re_2reä3reg3rekre2u2reür1ew3rez2r1frf2u4r1gr1h42rh_2rha2rhä2rhö2rhsrid2r2ie3rigr2isr2itrix12r1j2r1krk4n4r1lrl2erl3t4r1mrm2urnd4r3nern3frng2r3nirn1ör1nur1nür1nyro1c2rof3roir2onr1or4roß2rox2röf4rögr1ök4röpr1örrp4erpf4r3porp3tr3pu2r1rrrb2rr1crr2or3ru4r1sr3sirs3lr3sor3sy4r1tr3tör4tsrtt4r3türt3zru1a3ruf4rug2rum3rut4ruz2rüb2r1v2r1w4r1xry2c2r1zrz2ö3sa_3saa3sams1an3sat3säl2sc_s2ci2scj4scl2scos2cr2scs2scusd4r3see3seh3seq3set2s1hsh2as3häsh3ns3hösh4rsib43sio2s1j4sk_4skbsk4lsk4n4skö4skss3läsl3bs3les3li4sna4snö3so_so4aso1c3sog3sol3somso3o3sos3sov3sow3sozsö2csö2fs1ös1sp22sp_s2pä2spls3pn4spy2s1q6s1sss3l6st_s2ta2stb2stdst2e2stf2stg4sth2stj2stk4stl4stm2stns2to1stö2stp2stqs2trst2u1stü2stv2stwsu2n3suv3süc3sün4s3v2s1ws3was3we1s4ysyl12s1zsz2os3zü2ß1c2ß1d2ß1f2ß1h2ß1l2ß1mß1o2ßos2ßst22ß1t2ß1ü2ß1v2ß1w2ß1z3ta_4taatah2t2ai2tam3tas3tav3tax4täbtä1c4täd3täe3täg2täh4tämt1äptä2st2ät2täx4t1ct4ckt3cr3te_2teh3ten3tes4th_th2e1thi2thk2thp2ths2thü2thvt2hy3tig3tik3tio3tip3tis3tiv2t1j4t3ltl4e3to_to1c3tod3tok3ton3too4toß3tow4töftö4l3tön4töß3töttpf42t1q2tr_3tritry14ts_ts1ot2söt3sy4t1tt3tit3tot3töttt4t3tut3tü2tub3tuc2tud3tue4tuf2tuh2tuk4tüb3tüf3tüm4t3v4t3wtwa21ty13typtys44t1ztz1ätz2öu1amu3auu1ayu1ämu1äu2u1bub2lub1ru1ce2u1d2u1eu2edu2eguen1u2ep2uffuf3luf3r2u1gugo3u2göu2gü2uh_uh1wu1ieu3iguk2au1keu1kiuk4nuk2öu1kuulb4ulg4u2lü1umf1umg1umk1uml4umm1umr1umz4un_u3ne2unk1unruns21unt1unw2unzu3ofuos2u1pau3piu1pr2ur_u1raurd22ure2urfu1röur3purt2u3ruurü2u2sü2u1ß2u1tu3teuto1u3töu3tüu1ü22u1xux2eux2oux3tu1ya2u1z2übc2übdübe2üb3lüb3rüd3rüf3lü2gnüg3süh1aü1heüh1iüh1süh3tü1huüh1wül1aül2cül4eü1luün2sünt2ü1nuü1peü1piür1aürr2ür2süs2aü2stva1cva1sv4at2v1b2v1dve3bve3cve3dve3gve3hve4ive3over1ves12veüve3v2v1g2v1hvi2cvig22v1k2v1m2v1n3vol3voyvö2c2v1pv3revs2e2v3t2v1v2v1w2v1z1waa1wag1wah1walwa2p1was1wäh1wäl1wäswbu22w1c2w1dwe2a1weg1wehwe2i1wet2w1g2w3h1widwi2ewik21wil2w1k2w1l2w1mwn3s1wohwot21wöc2w1pw3ro2w1sws2t2w1twti21wucwul2wus21wühwül2wün32w1w1xa_1xae2x1b2x1c4x1d2xekxe2lx1emx2en3xes2x1f2x1g2x1hxib4xi1cxi3gxil12x1l2x1m2x1nx1or4x1p2x1r4x1txt1äxt1uxu1axu2s2x1v2x1w3xy_3xys1yacy1äty1c2y1d4y2efy1f2ygi2yg2lyhr2y1i4y1k2yl3cynt2y1nuy1ofyom2y1osy1ouypa2ype2y2pfy3phypo3y3riyrr2yse1y1t2yu2ry1z2za1c3zahz1anz1as2z3czdä1ze1e2z1h2z1j3zolzo2oz1orz1öl2zön2z1qz3saz3shz3skz3sz2z1tz3töz3tüzu3azub4zud4zu3kzuz22züb2z1v4z1zzz2ö",5:"_ab1a_abi4_ab3l_abo2_ack2_ag4n_ag4r_ag2u_ai2s_ang2_an3s_apo1_aps2_as3t_at4h_au3d_ät2s_by4t_dab4_de1i_de1s_dü1b_dys1_ei3k_eke2_enn2_er1e_erf4_er1i_es1p_et2s_eu3t_ext4_fe2i_fi2s_ga4t_ge3u_hi2s_im2a_im5m_in3e_ink4_inu1_ire3_is2a_jor3_ka2i_ki4e_kus2_li2f_ma3d_ma2i_me2e_ne4s_ni4e_nob4_nus2_ob1a_obe2_or2a_ort2_ozo4_pro1_ro4a_ro3m_rü1b_sch4_sha2_te2e_te2f_te2s_ti2a_tid1_ti2s_to2w_umo2_un3d_un3e_un3g_un3s_ur2i_ut2a_ut3r_übe4_vo4r_wa2s_wi4e_wor2_ya4l_za2s_zi2e_zwe2aa2beaa2gr4a2araart2aas5tab2äuab1ebabe1eabei12abela3ber2abet2abew3abfiab1irab1it2ableab3liab4loa2blua2bo_ab2of2abora3braa4brä2abrü2abs_abs2aab5scab3spabst4ab3szab1uraby4ta1cem2ach_ach1a2achba1che4achfa1chiach3lach3mach3na1choach3öach3ra4chta1chuach3ü2achvac1in2ada_ad2agada2m4adav1a2dä2ade_2aden4a3diad2obad3ru2ads2ad3stad3szad2t1ad4tead4tra2elaa2eleae2o3aes5ta2faka2fana3faraf4ata2faua2fexaf2fl2af3lafo1saf3raaf3räaf3reaf3röaf2spag1abag1arag1auag2diag2drag2duage1iag2er2agesag3gl1aggr2a2glag4laa4glöag4nuag4roagsa2ags3pag2th2a1haah4at2a1heahe1sa1h2iahin3ah2löahnt21ahorah1osa2h3öahr1aah3riaht3saian3aid2sai1e2aien3ai3g4a3ik_ai3keai3kuai2loa1indain4ea1ingai2saaiso2a3iv_aive3a3ivla3ivs2akal2akarak4at4a1kea2kefa2keu2a1ki2ak3lak4li2a1kr4akra3akroak3sh2akta2aktb2a1kua2kun4a3kü2ala_al1abal1afala2ga3lalal1ama2larala4s2alatal1aual1ämal2bralb3sal2däal2dral3dualen1ale2pale4talf4r3algi3almba2l1öal3öfal2ös1alphal2ufa2lumal1ural2zw2am2aamab4amad2ama3g2am4e4ame_a2meba3meta2mewa3miea3mis2ammlammu2am3pr2am2sam3sa1amt_am4töam2tu2ana_2anabana3ca3nak2anam2ananan1äs2anbuan3ch2and_2andua3nee2anfi4ang_2angf2anghang1l2angoang1r2a3ni2ank_an3klank1rankt42anmu3annäan1oda3nola3nos2anpr1ansä1ansc2ansk2ant_2anto1antr1antw2a1nuanu3s2anzb2anzg2anzs1anzü2anzwa1os3ao3t2a3ot_a2pefap2faa3pfla3phäa2pht2ap3la2pot3applap3pu2a3pua3ra_ar2ab2arb_4arba2arbiar2bl2arbr2arbt2arbu1ar1ca2reaa4rega2reha4reka3renare3uar2ewarf1rar2glar2gnar2iaar1ima3riuarm2äarn2e2a1roar1oba2rorar2rh2arsaarse32arsiar2st2arto2artsar1ufar1uhar1umarwa2ar2zä2arze1arztas3aua2s1äa2sca4as2ea2seba3ses2asisas1ora2s1pas2phas2pias2poa3spuas2stas3teas3tias3to2astraßen3at1abat2afat4agata3la3tama2tatat1aua2t1ä4ate_a2teb4atena2tep4atesat3ha3athl4a3ti4atorat3räat3reat2saat2seat2siat2soat3taatt3sa3tubatu2nat2zoau2draue2baue2sau2faauff43aufn4au1iau2isau3lüaun2eau1nua4unz2aup22ausc1ausd3ausf1ausg1auslau2so1ausr1ausü1ausz2aut_2aute1autoauz2wa3v4aawi3eax4am2a1yaa1yeuaysi1ä2b3lä1cheä1chiäch3lä2chrä1chuäck2eäf2fläge1iäge3sä2g3lä2g3räg4ra1ä2gy2ä3heähl1aähl2eäh3neäh3riä1is_ä1iskä2k3lä2k3rälbe2äl2bläl2p3ämt2eän5deän2dräne1sän2f52ängeän2glän2gr2ä3niänk2eän2kränk2säp2pläp2präp4stär4afäre2när2grärk2särm2sär1o2ärse2är4siär2stärt4eär2thär2zwä5s4eäse3tä2s1päss2eäs2stäs4träte2nät1obä2t3rät2saät2sääts3lät4trät2zwäu2bräude3äu3eläuf2eäug3läu2maäun2eäu1nuäu3seä3usgä3uskä3usnäu2späu2trba2bl2babs2b1afbais2ba2kabak1lbak1rbal2a2b1amban2ab1ang2banlban3tb1anzbar3bbar3nba2scba2stbau3gbau1sba1yobben3bbe4pbb2lö2b3d4bde1sbe3anbe3arbe3asb2ebe1be1cbedi4be1eh3bef4be3g2beil2b2einbe3li1ben_ben3nbe1ra3be1sbes2abe1ur3b2ew2b1ex2b5f4bfal22b1g2bges42b5h2bhut2bi3akbibe2bie2sbik2abil2abi2lubin2ebi2o1bio3dbi3onbiri1bi3seb1isobi2spb2it_b2itebi2tu2b1k4b3lad3blatb3leb3blemb4letb3leub2lie2bligb4lisb2litb4locb3los2blun3blut4b3n2bnis1bo5asb1ob3bo2blbo2brbo3d22b1ofbo3febo1is3bon_bond1bo2ne3bonsbo4räbor2sb1ortbo2scbo3thbo2xibö2b32b1p2bpa2gb4ra_b4rahbrä4u2bre_3brea2breg3bremb4rer2brigb4riob3rohb4ronb4rucbru4sbs3arbsat2b4särbs2äubs2cabs4cub3se_bse2bbsi4tbs2kubso2rbs2plb3stob3stöb3stübtal3btil4b4ts2bu2e3bu3libung4b2urgbu2sa2b3z22c1abca2chca2e3ca3g4cal3tca2pecar3ncas3tca1y2ceco4ce2drcen3gcere3ce3sh2ceta2chab2chaf1chaoch1äs1chef4chei2chic2chl2ch2lech2lu4ch2m2chn42chobcho2fch1ohch2r44chrech3rh2chuf2chuh2chum1cka_2ckac1ckag2ckalcka4r2ckau2ckeh2ckexck1imck1in3ckis2ck3l2ck3nck1o22ck3rckt2e3c4l2clet4co3chco2d2co3dicoff4co1itco2keco2lecol2oco2peco1racor3dco3recos3tco4te1c4r2cte3ecti4octur6cu2p32d1ab2d1acd2ac_dagi2dah3lda1ho3d4aida1inda1isdal2ada3löd1altdamo3d4ampd2an_d1ang2danw2d1apd2aph4dapp3darlda2rod3arrdar3sd1artda2rudas4tdat2a4datmdau3e2dauk2d1äh2d1äp2därzdä3us2d1b4dbu2cdco4r2d1d2ddar2de2adde3asde3b43de1cde1e4de3gldehe2de3hod2eicde2löd2en_dend2den3gd2enhde2nide1nude1ondepi2d4er_de3rude2sade2spde2sude1unde3us2dexp2d1f42d1g2dga3gd2ge_2d1h2d2hisdi4abdi2addi4amdi1cediet3dik2adin2adi2obdi2spdist2di2tadi2thdit3sdi2tu3di5vdi3z22d1k4d3l2edli2f2d3m24d5n2dnis1d2obadob4ld2obrdole4doll22doped2opp2dorc2dordd2orp2dortd2os_dos3sdost1dot6hdo3undö2l13d2ör2d3p2drag4d3rai2drädd4räh4dre_2dreg4drem2d3rhd4ri_d4ridd4ried4rifd4rikd4rild3robd3rocd4roid3roud5rubdrü1bd2sands1änd3seidse4td3shodso2rd2späds2pods2pud2steds2tids2tud2sundta2dd5teadt3hodt5s2du1ardub3l2d1uh2dumd2dumf2dumg2dumld2ump2dumrd1umsdung42dunrdun2s2duntdus3t2d1v2e3a2beab3lea2drea2g4ea3gaea3gleakt2ea2laeam1oea2nae2anoe3ar_ea2rae3arre3arveas3se3athea5tre3aug2ebedebe2i2ebeleb2en2ebeteb3loeb2lö2eb2oebot2ebö2seb4rueb2s1ebse22e3caech1äe1chiech3lech3mech3ne1chuech1weci6a2eckteco3dec1s4e3d2aed2dre3deiede2re3d2oeds2äed2suedu2se3dy3ee3a2eeb2lee2ceee1chee2ckeede3e1effeef4leef3see1imeel2ee1empeena2e2enäe2encee3nie2enoeen3see1rae1erde1erkee1röeert2e1erzee3s2ees3kee3taee2thee1u2e1e2xef1are2fate2fäue3fe_ef1emef2er2eff_1effief2flefi2s1efkue3fraef4rüef3soef3spe2fumege1ue2gloeg3nieg2thegus32e1ha2e1häeh2eceh2ele3hereh1läehle2eh3loeh3mue3holehr1äeh3rieh3sheh3übei2blei3de2eidn1eifrei3gl2eigt2eigu2eil_2eilbeil3d2eilne1impei4näein3kei3o2eip2fei3ree1irre2is_2eitäei3teei2theitt4e3ke_e3kene3kese3keye3k2lekt2oe3k2wela2cel1afela2h2elaoela4s2e1läel2da2ele_elea2ele2c2eleh2elei1eleke3lepel2ete3leu2elevele2x1elf_el3feelf4l1elfm1elfte3lieel3klel3leelm2ael5nae2lofe2lolelon2elö2selto22e1luel1ure2lyaelz2eema2keme2se2mop3empfem2saem2stem3t21emule2n1a4ena_2enace3nade4naf4enahe4nak4enam4enaten1äu2ene_2enem2enen2enesenf2aenf2uen3geen2gl1engpe3ni_e3nice2nide3niee3nio2enise3nit2enive2nofen1ohe3nolen1one3noteno2w2e1nöen3sp1entd1entn2entü1entw1entz2enut4enwüeo2fee1on_e1onde1onfe1onhe1onle1onre1onse1opee1opfeop4te3or_e3orbe3orse3orweo1s2e3os_eo3ulepa2gep3leep2paep4plep2prept2aepu2se3ra_era2ge1raie2rake1rale1rape2rare1rasera2ße1rawe1razer1äher1ämerb2eer3brer3da1erdber3de4ere_er1ebere2l2erer2ereserf2eerf4rerg3s2erhüe3ribe3rio2erk_erk3te3ro_er3oaer1ofer1ohe3rone3rose3rowerö2d2eröker3p4er3rä2errüers2aer3seers2ier3sker3sner3sper3sz4ertier3uzerü4bes3abes3ake3sceesch2es2eles2hues2ide2siles2ire4skees3kles3kue4skye3sote3spies3sces3se2essoe1stre1stues4tüeße2setab4et1am3etapet4atet1ähet2enete2oet3hüeti2m2e3toeto2bets2pet3suett1aet2thet2zäet2zweu1a2eu2gaeugs4euil4eu1ineu2käe3um_e3umbe3umleun2eeu1o2eur2eeu3speust4eut2heu2zw4everewä2se2we_e3wirewi2se3witex3atex1er1exis2ext_ex2tu2e3xye3z2aezi2sf1abefab5sfa2drfaib4fa2ke2fanb2fanf2fanlf1anp2fanrfan3s2fanw2f1ap3farifa3shf3aug3f4avfa2xa2f1b22f3d4fdie2f2echfe2drfe2eife1emfef4lf4eief1eisfel3tf2em_fem4m2fempfe2näfen3gfe2nof1entf2er_fe1raf2eref2ertf1erwfe2st3fete2fexpff3arff1auffe2eff3eiffe2mff4enf2fexff4laff4läff4lof3fluf3flüff3roff3röffs3t4f3g2fge3s2f1h2fi3atfien3fi3klfi2krfil3dfilg4fi3lif2inafi3nifin2sfi3olfi3rafis2afis2pfi3tu4f1k4f3ladf3lapf3länf4leef3lerflo2wf4luc2f3m2fma2d2f3n2fni2sfob2l2f1offoli3fo2nafon2efo2nu2f1opfo1ra3form2f1ök2f1ölför2s4f1p2f4racf5radfra4mf5rap2fre_f3recf3red2fregf3repf4reufri3dfri2e2frig1frisf3rocfro2sf3rotf2sanfs3arf4scefs4cofse4tf2sphfs1prfs3s4fs3thf4ta_f2tabft1afft1anft1arf3tatft3hoft1opft2s1ftsa2ftse4ft3stf2tumftwa4ft3z23f2uhfung42funt2gabfgab4r2gabz2gadlga1flga2kagal2ag4amo2ganbgan3d2ganh2ganl2ganwga1ny2garb2garc3gardg2arsga3ruga2saga2siga3spgas3sgat2a2gatmgat4rgau1cg2aukg1aus2g1äp2gärz2g1b2gber2gby4tgd1ing1d3rgd3s2ge3a2geb2ageb4rge1e2ge3ecge2esge1imge1irge2isge3lege3lügelz2ge3migem2uge3nagen3ggen3ngeo2rge1ouge3p4ge1ragerm4ge3sigest2ge5trge1ulge1ur2g1ex2g1f4gga4tg2g3lgg4log2g3n3gh2rgie3ggi2elgi2gugi3negi3tugi4us4g3k2g1labg1lac3glad3glätg2l4e2gle_3gleag3lecg3leg2glehg3len2glesg4lia2glib2glif2gligg2lik4gling2lio2glisg2lizglo3gg2lom2g1luglu2t2g1m2g2n2ag4na_2gnacg4nat3g2näg3neh2gneug2nieg2nifg4nin3g2nogno1r2g1of2g1ohgol2a2gord2gorggo2s1go3stgo3th2g1p2g4rebg4remg4rerg3retg3revgri2e3grif2grig2groc2grohgron4g4rosgro4ug4ruf2grut4g2s1gsa2gg3salgs3angs3arg3s2cg4scagsch4g4scogs2ehgsen1gs3ergse4tgsi2dg3silg3spigs3plgsrü2gs5s4gs3tag3stog3stögs3trg3stugs3tügti2mg5t4rgu3amgu1as2guedguet42g1uhgu1is3gummgu4stgut1agut3h2g3z2hab2ahab2eh2absha1kl2haleh1alph1amth2an_h2andh4ann2hanr2hantha2plha2pr2harbh2ardhasi1h1äff2h3b22h3d4hdan2he2adhe3behe2blhe3brhed2ghee4she2fä2heffhe2frhe2fuhe3guh1eieh1eifh1eighe2im4heioh1eiwhe3lihe3lohe2lö3hemdhe3mi3hemmh2en_he2näheng22henihe2nohen3z4he2ohe3onhe3ophe3phherg22hermhe3roh1eröhert2he3thhet2ih2e2uheu3ghe1y22h3f4hfi2s2h3g2hget42h1h2hi2achi1ce2hi3dh2idehi2krh1infh1inhhi3nohi4onhi3or2hip1hi2phhi2pih2i2rhi3rahi3rihirn1hi3rohir2shis2ahi2sehi2sthi1thhi3ti2h1k4h4lachla2nh1lash1lath3lädh1läsh1läuh3lebhle3eh3lerh3lesh3lexh2lieh2lifh2liph2lish2lith3lochl1ofhl1oph4lorh3löch2löshl3t2h3lufh3lukh1lüfh2mabh3magh3manh3marh4mäch4mähh4mälh4mäuh3me_hme1eh3menh4monhm3p4hm3sahms1phn1adh3namhn1anhn3d4h2nelhn3exh2nich2nidh2niehn1imhn1inh2niphn3k4h2norhnts2h2nuch2nulho2blho2efho4fa3hole4holo3holzhom2ehono3ho1rahor3dh1orgho3slho2spho4st2hot_ho3thh1o2xho1y2hö3ckhö2s1h3öst2h3p2hr1achr3adh1raih3räuh2rech3redh3refh3relh3rephre2th3revh3richri4eh3rinh2robh3rohh3rolh4ronh2rorh3rouhrs3khr2suhr4swhr2thh3ruhh4rübh2sanh2sauh2späh2sphh1stah1stoh2s1uh2t1ahta4nht2ash2tärht1ehhte2sh4thohtod1h3töpht4riht3röht2soht2sphtti2ht3z2hu2buhuko3hu2lähu2loh1umsh1unah1up_h1upshurg2hu3sahu2sohu2tihut2th4übsh3übuhvil4hwe1c2hy2thzug4iab4liaf4li3ak_i3akti5al_ia2läial3bial3dialk2i3allia2lui3am_i4amoian2ei3anni2anoi3anti3anzi3ar_ia2rai2ascia3shi2asiias3siast4i3at_i4ate1iatri3atsia3uni1är_i1ärsi1ät_i1ätaib1eiibe4nibi2ki3blai3blei4bräich1aich1äi1chei1chiich3lich3mi1choi1chuich1wi3damid2ani2deiidni3i2dol2i2drie3a2ie2bäie2blie2ckie2drie1e2iel3di1ell2i1eni3en_i3enai3endi2enei3enfi3enhi3enji3enki3enmi3enni3enöi3enpi3enrien2sie1nui3envi3enwi3enzie1o2i2erei4erii1ernie2röie3sui1ettieu2eie1unif1arif4atif1aui2fecife2iif2enif2flif4läi1flüif4rai1freif3seif3spif2taiga3iig1läig4nai4gnäig4noig4raig3säig4seig3soi2harihe1eihe4ni4is_i4i3ti2käri3ki_ik1ini2k3lik3noiko3si2kölik3räik3reik1s2ik3soik3szikt2eikt3ri2kuni3kusi1lä1il2daild1oil2drile2hil1el2ill_2illsil3öfi1lu2i2lumi3lusim4ati2megi2meji2meki2mew1immo1impoimp4s1impuim2stin2afin3ami3napina4sin1äsin3do2indrin3eii3nelin1euine2x2ingain2gl4inhei3nie2inigin2ir2inis2inn_2innlin1odin1orino3tin3suint2hin3zwi2odaio3e4iof4li2o3hio3k4i3ol_i3om_i3omsi3on_ion3di2onyi2o1pio4pfi3opsi3opti3or_i3orci3orpi3orsi3ortio3s2i2osti3ot_i3otsi3oz_i1ö2ki1ös_ipen3i3perip3fa2i1piipi2sip2plip3pui1r2ai3radirat2ir2bli3ree2irekir2glirg4sir2he2irigir4mäir2no1ironiro2sirr2hir3seir3shir2sti3sacis2api2saui2scaise3eisi2ais1opis1pais1peis3sais2stis4töis4tüit1amit1ani3tatit1auit2ärität22itelite4ni2texi5thr1itiii5tocit3rei3truit2sait2soit1uhitut4it2zä2i3u2i2vebive4niwur2ix2emiz1apiz1auize2niz4erizo2bi2z1wja3nejani1ja1stje3najet3tjo2b1job3rjoni1jo1rajord2jo2scjou4lju2blju3nijur2ok3a2aka3ar2kabh2kabska1frka1inka3kak1allkalo5k3amakand4kan2ekank42kanlk1anska3nu2kanw3kara2karbk2ardk2argk2arkk2arskar3tkaru2k2arwka3sekasi1kas3s2kattk1auskäse32k3b4kbo4nkbu2s2k3d2k1effkefi4kege2ke2glk1einkei1skeit2ke2lake2läkel1ek4eltk2en_ke2no2keo2ke2plk2er_k2erck2erlkerz2k6es_ket3ske1up2k3f42k1g22k1h4kho3mki3a4ki3drki2elki3k4ki3liki3lok2imik2in_k2ing2kinhk2inik2innkin3ski3orkio4skis2pkist2ki3zi2k1k44kla_k4lar4kle_4kleh2klic2kligk2link3lipk2lir4klizk4lopklö2sk2lötkluf23knabk4neiko2al2kobjkoff4ko1i2kol4ako3leko4muko3nu2kop_ko1pe2kops2kopzko3riko2spko2stko3ta2k1ouko2wek1o2x2k1p2k4rawk4raz2kre_2kreg2k3rh2krib2krip3kris2krufkrü1bk2sanks3ark2sauks2änksch4ks3hak3sofks1pak3speks2puks3s2k1stak1stek1stok1strk1stuk2s1uk3talkt1amkt1anktä3skte3ekt1eik2texkt3hokt1imk3topkt4rokt3s4kul2a4kulpkung42kuntku2roku2spkus3tku2sukür4s2k3z2kze3lla3ba2labb2labf2labg2labhlab2ol2abrl1abt3labu2labwla1celad2il1adl2ladm3ladul1advla2falaf3slaf3tla2gala2gnlago2l2akk2l1al4lall4lalpl2amil2amp2lanb2lanf2lanll1anp2lanslar3sla2ru4lasdla3se2lash2lasila2so2laspla2stlat2ala3telat2s1lauglawa41länd2läub2läuc2läue1läufl3bacl3blälb3lel2blil3blolb3salb3selb4sklb3splbs6tl3chel3chilch3llch3rlch3ülch1wlda2gld1all3daml3dasl3datld1auld1ärl2deil2dexldo2rld2osld2ö2l2dreld4rüld3sald3stld3thle2adle2bl4leddle3dele3eilef2ale2gäle2glleg4r4lehs4lehtl2eicl2eidl2eitlel3s4lemplem3sl2en_le2näl2enfle3nil2enkle1os3lepa3lepf3leprl2er_lerb4lerk2ler3tl1erzles2ele3shlesi1le3skles2t4lesw2lesy2leto4leud3leut2lexe2lexzl3fahlfe1elf3lolf2trlfur1lga3tlg3rel3gro2l1h23lhi_li3acli3akli3amli3arlia1sli3b4libi34lickli4ds3lie_lig4nli3keli2krlil2a3limol1inv2linzli4om3lis_li2spliss2lit2ali3telit2hli3tu2lixili2zalk3lolk4nelk4ralk2s1lk3sälks3tl3k2ülla2nl3lapll1aullch4ll3d4ll2emll2esl2lexll3l2ll1obl3lowll3shll5t4llu2fll1urll3z2lme2el2möllmpf4lms2tlna4rl3n4e2lobjl2obrlo1fllof4rloi4rlol2a2lopf2loptlo1ralo4rä2lorcl1ordlo3ro3lorq3los_lo4sa3loselo2talot4h2l1ovlo2velö2b3l2ö2fl1öhrlpi4plp3t42l3r2lre1slrut4lrü1bl3sacl2saul3sexl4shalsho2ls2pols3s2lst2al2stels4trls2tuls1uml2sunlsu3sl2tabltag4lt1aklt1ehlt2enlt3hol3thul2toblt1oplto2wlt1öll3törlt1ösl3trält3relt3sclt2solt1uhlu1anluba2lubs2lu2drlu2es2lufflu2golu2gu2l1uhlume22lumf2lumll2umpl1umsl1umw1lu2n2lunt2lunwl1urnl1urt2luselu2splu4stlu2tälüh1lly1ar2lymply3nolzo2flz3t2m2abe2mabk2mabs2mabtma2cima3damal3dmalu4mam3m2manbm2anfm2anh2manlm4ann2manzma2orm2app2marb4marrm1arzmat4cma3unma1yom1ähnmä1i2m1ärg2m1b2mbe2em3b4rm2d1äm2deimds2em2e1cmedi32medyme1efmega1m2eil3meldmell2m2en_m2ens2meou3mer_me1rame2ro3mersmes1ame4sä4mesume3th2m1ex2m1f4mfi4l4m1g22m1h4mi2admi3akmibi1mi3damie3lmi2ermi4etmi2kimi2ku4milzmi3nimi1nu3mir_mi3ra3miri3mirs3mirwmi2samise1mi2tami2th4mitz4m1k4m2mabmm1eimm3simm3spm2mummm2unmmül22m3n22mobj3m2odmo2dr4mog_mo2i32mol_mom2e3m2onmo3ne3mo2o2moptmo1ramork4m1o2xmp2flm3ponmp3ta2m3r2m2sanm4sapms1asm2saumsch2m4scom4sexmso2rm2späms2poms2pums3s2m3stoms4trms4tüms1ummt1abmt1akm3tammt1armt3homti2smt1ösm4ts1mt2samt2semt1um2m3uhmu3la2mulsmu3nim4unkmunt24munzmu3ra3musimu2spmus3tmu2sumuts32m1w2mwa4rmwel42n1abna2bä4nabg4nabhna2bln2abona2br4nabt3n2ac4naddn2ade3n2ag3n2ahn3ahnnai2en1aig2n1akna2ka3nakon2al_na2län4alena2lu2nalyn4am_3name3namon1an_4nanb2nanh2nani4nank2nanl3nannna3non1anp2nanr2nanw5nar_2narcn2ard4narg3narin2ark2narmn2arpn2as_4naspn4ata4natmnats14natt4naufn3aug5naui3n2äcn1ähn2n1ännä2scn2äss2n3b4nbe3nnbes4nbu2snch3mnd2agndat2nd1aun2dein2dobndo1cnd1opnd1orn2drönd3thndt4rn2dü4ne2apne3asne3atne2bl3necane1ckne2de2nee33nehm2n1ein2eid4neifne2ke3nelanel3bne3lin2em_n4en_n2enbn2encn2enhne2nin2enjnen3kne2non2ensn2envn2enwne2obne1os2nepfn2er_ne1ranere2n1erfn1erh3nerin1erkne2ron2erpn2erv3n2esn4es_nes4cnes1one2thneu1cneu3gneur22n1exnf1aknfo1snft2on2f1ung1adng3d4n3gefn3gerng3g4ng3hun2glon2glöng3neng1orngs3cng3tsn2gum2n1h4n3hann3harn3haunhe2rnib4lni2deni3drnie3bni1elnig2anig3rni3klni2kr3n2ilnim2o2ninfni2obni3okni3olni3ra3n2isni2tinit4sni3tunk2amn2kähnke2cnk2lonk2lunk4nan2knenk2öfn2köl2n3l22n1m4n2naunne2snn2exn2nofnn3scnn3senn2thnn1ur3nobl2no2dno3drn3olen2on_3nor_nor2a2norc3norh3norm3norsn1ortno3shno2täno2tr2nö2f2n3p4npa2gnpro1npsy32n3r2n3savns2cans1ebnse2tn3sexn3siln4sphn2sponsrü2ns3s2ns2tins2tunst2ün2styns2umnta3mnt4atnt1ämnte2bnte1ent1ehnt2enn3ternteu3nte3vn3thrnti3cntmo2nt3sants2onts2pnts2tntum4nt3z21nu1anu3arnubi11nu1cnu2esnu2fe2n1uhnu3k4n2um_2numf2numg3numm2numr2nuna2nunt3nu2snu3scnu3senu3slnu2ta2nü4bnür1c2n1v2n3ver2nymun2zadn2zann2zärnz1ecn2zornz2öln2zwö2o3a2o4abioa3deo4a3ioa3ke2obano3bar2obe_2obea2obewobi4t2o3boo3briob3skobs2pob3sz2o3buobu2s2o3bü2oby4och1ao1cheoch3loch3moch1ooch3roch1socht2o1chuoch1wo3ckeo3ckio2ckoo3d2aod2dro3debo3dexo3diro2donodo4so2dre2o3du2o1e2o4e3so2e3to3et_o3etsof1amof1auof2eno3feroffs2of2fuof1laof4läof4löof3raof3räof4rüofs1aof3thoga3dog2loo3g4nog3spohl1aoh3looh2lu3ohngoh2ni1ohnmo2h3öohr1aoh1ro2o1hyo1i2do2isco1ismoiss2oi1thoki2ook1läo2labol2arol4drole3eoler2ole3sol1exol2faol2flolf1rol2glol2grol2klolk3rol2of1olymol2zwo2mabo2mebome3co2melo2mepom2esom3maom3pfomtu3ona2bo2naeo3nalon1apon2auonbe3one2ion3f2ong4rong3s4o3nion3k2onli4o3nodono3sons1aonsi2ons3lons1pont2hont3s2onukoor3foo4skoo2tr2o1ö2opab4o3panopa5so1peco1pei2opf_op2fäo2pfeopf1l4oph2o3pheopin2op3li2o3poop4plop2pr2o1pr1opsiop3szo1rad2orak2oral3oramo1rasor1ätorb2l2orcaor2ce4orda1ordnor2do2ordr2ords2ordwore2hor1eror3gaor2glor2gn4oril2oritork2aork2s2o1ro2o1röorr4aor3rh2ors2or3shor3szor4töor2ufo2r3üo2ryaos3ados4anosa1sos4co2o3seose3eose2no3shoo4skaos3keo4skios2lo2os1pos2peos2saos4säos3to2osu42o3syo2tebote2s4ot2hot4heo2throt2inotli2ot4olot2oroto1so3traot2saot3scots1pot2thou2ceou2geou3glouri4outu4ove3so3wecoy1s4o3z2aozon1ö2bleö2b3röb2s3öch1lö2chröch2söcht4öd2stöf2flöh3riö3ig_ö2ko3öl1a2öl1eiöl1emöl4enöl1imöl1inöl3laöl1o2öl3saöl3szö2l1uölz2wönn2eön3scön3spöpf3lör3a2ör2drör2glör2klör1o2örs2eört2eör2trös2stös3teös2thös3trö2t3aöt2scöt2trözes4pa3dapa2drpa3ghpa1ho3pala1paläpa3li2paltpank42panl2pannpant2panz4papi23para1parc2parg1paro2parppa4stpat4cp3auf3pä2cpä2to2p1d2pea4rpech1pe2en2peicpe1im2pekupel3dpena41pennpe1rapere21perl3pero5perspe3sape2stp2fabp2fadp2fafpf1aip2feipf3lopf3lup2forpf1ra2pfs2pf3slpf3sz2pf3tpgra2p3hopph3t2phu4s2p1hüpi2a3pias4p4id2pi2el3pierpi3lepin2epi3oipi2pepi3ri4pisopi1thpit2s2pitz2p1k2pkur11p2l43p4lap5la_p5lad2ple_ple1cp4legp4lem2pligp4likp4liz2p3lu2p1m2po3b42p3ohpo3id3poin3p4olpo3li2pondpo1pepo2plpo3pt2pornpor3spos2epo3ta3potepö2blp2p1hpp1läp2plep2pripp3sa1prak1prax1präd1präg3präm3präs2pre_2prec1pred1preipri4e2prig1p4ro3prob2proc3prod3prog3proj3prot1prüf2prünps4anp3s2hps1idps2pop3staps2tup3stü3p2syps2zept2abpt3atpte4lp4tospto2wp2t3rpt3s2pt1um3p2typu2dr2p1uh2pundpun2s2puntput2spwa4r1queura2abr3aalra3ar2rabd2rabf2rabgra2br2rabs2rabt1rabyra1cer2ackr4ad_3radf3radlrad5tra2gn4raht2raic1rake3rakür4al_ral3bra3le2ralgr4aliralk2r4alsra2lu3ralyr2ammr2an_4ranc2ranf2ranl2ranr2rapfr2ara2rarbr2arkr2arpr4as_ras2ar4at_r3atlrat4r4rau_4raud2rauf2raug3raum3r2äd3rän_3räni3räns2r1ärr2är_rä3raräu2s4räutr2bakr3blärb2lörb4rirb3serbs1orb3sprby4tr1chirch3lrch3mrch3rrch1wr2ck1r2dafrd2amr4dapr2deir3denrd1itr2dobr3donrd1osrd4rird3tard3thrdwa4re2amre3asreb1rre2bür2ech3red_4reddre1elre1er3refe4reff3refl3refo5reg_rehl4r2ei_r2eie2reigr1einre3larel2ere3lorelu2r4em_r2emi4remur4en_r2enare2näre2nir2enzre3or3repe3repo4reppr1erfr1ergr1erkr1erlrer2nr2eror1erör1ertre2sa3rese3reso2ress3rest3resu2reulre2wi4rezirf2äurf2esrf4lör3flür3forrf4rurf4rürf2sarf2targ2abrg2anr2gnorg3spr2ha_r3herr2hoe2rholrhu2sri3amria1sri3atri1ceri1elri1euri2frrif3s5rig_5rigjrig1l4rigrrik1lr2imb2rimprim2s2rink3rinn2rint4r1irris2ari3so3rissri2strit4r5riturk2amr2kährk4lork2lur3krirk2sprk1strk2tark1uhrk2umrku2nr3l2arle2ar3lecrle2ir3letr3l2irli2sr3l2orm2ärrm3d2r3me_r2meorm2esrmo1srm3sarmt2arna2brna4nr2naurn3drr4nefrn2eirne2nr5nesrn2etr4nexr3nodr1nötrn1ur2robj2robsro3e4roh1lro1irro3lerol3s2roly4rom_4romm4romt3ronnrons2ro1pero3phr2oraro3shro2ßu3routrö2du1r2öh1r2öl3römir2ös_r2öse2r1p2r3p4ar2plirpro1rps3trr2abrr2arrr1ämr3r2er4rewrr2herrik2rro3mrr2strr2thr3r2ürrü1brs3abrs2anrs3arr3shors2klr4skor4skrr4skurs4nor4sobrs2p4rs3s2rs2thrs2tir3stor3störs2tur3swirtal2rt1amrt1ärrten1r2thirto1prt1orr5trirt2sorube2ru2drru2fa3ruinru1is4rumfru2mi4ruml4rumz2rund4runn2runwru3pr4r3urru2ra5ruroru2siru2strut3hru2zwrü1ch4rümmrz2anr2zarr2zasrz1idrz1oprz3terz2thr3zwä2s1absa2besa2blsa2br4sabss1adm3safasa2fe3safi3sagasag4nsa2gr3s2aisail22s1aksa2ka3saki3sakr4sakt3salo5samms1amps2an_s3anbs2and3sani2s1apsa2po3sapr2s1ar3saris3arrs1aspsat2a4satmsa2trsa3tss1a4u3sau_3sauc3saue3saum3saur2s3avsa2vos3ähns1ält2s1äm2s1är3s2ät3säul2säuß4s3b4sba4n2scams2cans2cap2scar2s1ce4sch_s4chä4schb4schc2schd2schf2schg2schh2schks4chls4chö2schp2schq4schss4chu3schü2schv2schz4s3d2sde1sseb4rse1ecse2glseg4rse3heseh1lseh1sseh3ts1ein3s2eks2el_s2elsse2nä3senkse2noseo2rs4er_3seraser3gs1erh3seriseru25ses_se3su2s1exse2xe4sexpsex3t4s3f4sflo44s3g2sha2k1shass3h2e3shi_3shidshi4rs3hoc4shof3shop3showsi2ad2siat5si1cs2ido3s4iesien3sie2ssi1f43s4igsig4nsi2kisik1lsi2krsik3ssi2ku3silosin1ision43s2issi2sasis3s3s2itsit3rsi3tusiv1asive3si2vr2s1k24skams3kar4skasskel1s4keps2kifs2kig4skirski1s3skiz4skom4skor4skow4sk3t2s1l23slal4slans2laws3lo_s3loe2s3m22s3n4snab4so3baso3et3softso3la3s2onsone22sopf3sor_s1orc3sorsso4rus4os_2s1ox2s1ök2spaa4spak4spap3spaß4spaus2paz3späh2spärs3pe_2spel4spet4s3pf2sphas4phäs3phespi2k4spil3spio4spis4spla4splä4sple2spod2spogs2poi2spok4spol4spr_3spru2s3ps2s4pt2spun2spup3spur4sput4s3r4sret3srü2ds5safs3sagss1ajs3sals3s2äs4sces4scoss1ecssoi4ss2poss3s4sst2ass2thss2tis3stü4sta_3staast2ac2stag3stah2stak2stax3s2tä4stäg2st3c2steas2ted4stee2stem4stens2tep2ster4stes2stetst3ev4stexs4thäs4this2thu2stia2stibs2ticsti2e2stig2stiks2til2stio2stis2stiv2sto_s3tob1stof4ston4stoo1stoß4stou2stow2stoz2stöt1stru1stub4stuc2stue3stuf3stuhstu2n3stüt4st3zsu1ansuba24subi3su1c2s1uhsu1issul2asul2isult23summ3sun_su4nes1unf4sunt3s2upsup3psu2ras1urtsu2s1su3sasu3shsu3sisus3s2sü4bsü2d1sweh24swie4swilsy4n34s3zas2zess2zis4s3zu4s3zw2ß1a22ß1b22ß1ec2ß1eißen3gße2niße2noße2roßer3t2ß3g2ßig4s2ß1in2ß1k4ßler32ß1n22ß1p22ß3r22ß1s22ß1um5taan4tab_2tabf2tabg2tabh2tabkta2br4tabsta2bü2tabw2tabz2t1ac3tacut1adatadi33taf_4tafft1afg3t2agt3agotai2ltai4r2takzta2latal3d3talo2talt3tameta2mit1amt3tan_2tanbta3ne4tanf2tang3tanit2ank4tanlt2anot1ansta2nuta3or2tapfta2pl2tarb4tark2taro2tartta2ruta3sata2tht3atlt4atmt1auk3taum4tägyt1ämt3tänzt2är_tä2ru4tätt2täuß4t3b2t3chat3chetch2itch3lt2chutch1w4t3d4tdun2te2a22teakte3alte3an3tebat2ech2teckte1emte2es2teff3teha3tehä3tei_teik43teiltekt25tel_3telatelb43telg3telk5teln3telp5tels3tem_tem3st6en_ten3ate2nät4enbten3gt4enhte2nit4enjt4enmten3n3terct4erit4erot3erötert2teru2t2estte2su3tet2t2et_4teth4tetl3teuf3teumte1unte2vite1xa4texp3text4t1f4tfi2l4t1g2tger22th4at2hagt3hait2hak2t3hä3thea2thebt2hect2hekt2hem1then3theot2hest2heut2hik4th3l4th3m2th3n1t2hot3hoft3horthou24t3hö2thub4thunti2ad3tib4ti1cetieg42tiehti1elti1etti1eu3tif_ti1fr4tift3tilgti2lötil3stilt4ti2lut2imiti3nat1inbt1infti1nuti3orti3plti1rhti2sptium2tive3ti2za4t3k45tlem6t5li4t3m24t5n4tnes2to4asto5at4tobjtob2ltode2toi4rto3la3tole4tolz2tomg3topo2topt3tor_to1ra4torct1ord3toret1orgto2rö3torsto2rut2orwto3sc3toseto4sktos2p4toss3totrtots23t4outo3un3töch4t1ökt1öst4t3p21t2r45tra_3trac3trag3trak3tral4traß5träc3träg4träs4träß4treb4trec3tref4treg2trekt4remt4rert4rett4reut3rev2trez2t3rh4trict4riptri2x3tro_3troe3tront4rop3troyt3röc2tröh3trös3trua4truktrum2t4rübt4rügts1adts1alt2sants1ast2sauts1emts3krtso2rt3sout2spät2spht2spots3s4t1st4ts2tut2s1u1tsubtt1abtt2actt1aktt2altta1st3telttes1tto1st3trott3rutt3rütts1ptt2untu3antuf2etuff3tu2istul2at2um_3tun_3tune3tungt1up_tu2rätur1c3turntu2rotu4rutu2satu2sotu3ta3tüch3tür_tür1c3türe3türg4tütztwi4ety2pat2za2tz1agtz1altz1artz1aut3ze_t2zortz2thtz1wätz1witz1wuu1a2bu1a2cuad4ru1al_u1albu1alfu1alru1alsu1altua2luu1ansu3ar_u1arsua3saua2thuat2iubau1u3b4iu2bopub3räu2bübuch1auch1äu1cheu1chiuch3luch3much3nu1chuuch3üuch1wu2ckiu3d2au2donud3rau3druue2ckue2enu2elaue2leueli4ue2miue2näue2niue2nou2ereu3errue2tau3fahuf1akuf3aru3fasuf1au2ufe_uff4luffs4u2fobufo2ruf3säuf4sou2fumug1afug1akuga4sug1auug3d2ug3huu2g1lug3lou4gluu2g3nug1orug3roug3seug3siuh1lauh1läuh2liuhme4uhr1auh3riuhrt4uh2ruuh4rüui2chui1emu4igeu1in_u1is_u3käuu1k2lu1k4ruk2tauku2sul1abul1amula2sul1ämul2drule4nule2tu2lexul3f4uli2kul3kaul2knull2aull3sulo2iul1orul2sauls3z2ultaul3thult3sul2vrulz2wuma4rum2enum1irumm2aum2suum3t2um2un2una_1unabun3acun4alun3at1unda1undd1undf2undg1undn1undv1undzune2bune2hung5hun2idunik4un2imuni2r2unisunks23unkuunna2uno4run2os2uns_un3se1unsiun3skun3spun3taun3trunt3s2untuu1o2bu3or_u3orsu1os_uote2u1pe2uper1up2faup2plup2prupt1oup4tru2rabu2rar2u1räur1änurch1ur3diure4nurf3turi2cur1imurk2s4u1rou3roluro1sur4swur2zaur2zäur2ziur2zou4safu3sepus3klu4skous3ocu3sohus1ouus1peu2spou2spuus2thus3tru1stuus2uru2tärut1egute2lut2esut2etu4tevutfi4ut2heu2thiu2thuuto3cut4orutos4ut3rüut3teutts2ut2zo2u1u2uufe22u1v4u2ve_uz1weuz3z4übe3cüber3ü1cheüch3lüd3a4üd1o4üd3s2üdsa1üd3t4ü2f1aüfer2üf2flü2f1iüf2toü2g3lüg4stühla2ühl2eüh3moüh3neühn2süh1roühs2püh4thül2laül2loül2löü2n1aün2daün2dründ3sünen3ün2faün2frünn2sün3scün3seün3spün2zaüp2plür2flür2frür3scür3seür3spürt2hüse3hüse3lüse1süss2eüs2stü2t3rüt2s1üt2tr2v1abval2s2vang2varb2v1auve3arveit4ve3lave3leve3live3love3maven2cve3neve3nive3növer3averd2vere2verf4verg4ve3river3kvert2ver3uve3tavete1ve3trve3x22v1f4vi3arvi2elvi2ervima2vi4navin2svi3savise4vi2spvis2u2v1l22v1obvo3gavo2gu2v1opvo2r1vor3avor3dvor3evor3gvo3ri2v3rav4ree2v3rov1stav3s2zvu2et2vumfwa5gewa3gowai2b2walb2walmwa3nawa3sawa3sewa3sh2wängwäs2c2w1b2we2bawe2blweb3swe2e4weed3we2fl2weiewe3niwerd2we2röwer2s1wesewe4stwet2s2w1eywie3lwin2e2wing1wi4rwi2sp1wisswi3th1wo1c1wolfwor3aw3s2kwun2s4wur_wur2s2xa2b1x2adxa1fl1x2agx3a2mx2anz1x2asx1e4gx2er_x2erexers22x3euxich2xide2xie3lxil2axi2loxi2lux2is1xis2cxi2sexis3sxi2su2x1k22x3s2x2t1axt2asx2tänxtfi4xt3s2x3turx1u2n2y1aby1al_y1a2myan2gy1anky2chiych3nyen4ny2erey2es_yes2pye2thygie5yke3nyk3s2y4le_yli4nyl3s2y2l1uyma4tym3p4ympi1y2n1oyno4dyon4iy1ontyp3any4p3sy3r2eyri2ayri1ey3r4oys2any3s2cy3s2hy4s3lysme3ys2poys1prys3t4y3s2zy2te_y2tesy3to1yure3zab3lz1a2dza3de2z1afza3grzale32z1amza2na3zani2zarb2zarcz1arm3zaubz3aug3zaun2z1äc3z2äh2z1ämz1ärgz1ärm4z3b4zbü1b2z3d2zdan2zeik4zelu25zen_zen3nze2no3zentz2er_zerk2z2ernzers2ze2säze3sczes1ezes1ize2spze2tr2z1ex2z1f42z1g2z2henzhir3zi3arzid3rzil2ezin2ezi2o3zi3opzirk22z3k42z1l22z1m2zme2e2z3n42z1ob2z1ofzo2gl2z1oh2zopezo2ri2z3ot2zö2f2z3p42z3r24z1s2zt3hozt3s2zu4chzudi4zu2elzu3f4zu3gl2zumf2zumg2zumlzun2ezung42zuntz1urkzu3s4zu5t2zür1cz1wac4zwahz1war2zwas4zwäl2zweg2zwet4zwirz2wit2z1woz1wörz1wur2z1wüz3z4az3z2o",6:"_ab3ol_ab1or_akt2a_al3br_alt3s_ampe4_an3d2_angs4_ans2p_ans2t_an3th_ari1e_ark2a_ar2sc_as4ta_au2f3_au4s3_be3ra_boge2_da2r1_darm1_de2al_de1o2_des2e_de3sk_des2t_do2mo_do1pe_dorf1_ehe1i_ei3e2_ei4na_ei2sp_ei4st_ei4tr_el2bi_elb3s_em3m2_end3s_enns3_en2t3_en4tr_er2da_ere3c_es3ta_est2h_es3to_es5tr_eu3g4_eve4r_flug1_for2t_fu2sc_ge3ne_guss1_he3fe_he3ri_inn2e_kamp2_kle2i_kni4e_kopf1_le4ar_li4tu_ma3la_ma2st_mel2a_mi4t1_näs1c_no4th_oper4_oste2_ost3r_poka2_ram3s_reli1_ri2as_rom2a_rö2s1_se3ck_sen3s_ser2u_se2t1_si4te_ski1e_tal2e_ta2to_te3no_te4st_ti5ta_tite4_to4pl_tro2s_tu3ri_uf2e2_ufer1_un3a2_uni4t_uns4t_uro2p_ur3s2_wah4l4a1a2naa2r1aaar3f4aat4s3ab1aufab1eilabe2laab1erkab1erzab1ins1a2blaab5lag1a2bläab4le_3a2blö1a2bon2absarab3s2i2abst_ab3ste1abteia1chalach3auach1eia3cho_ach1orach3su4ach1wa1ckarack2ena2ckinack2seack3slacon4na3d2abad3amaa2d1an3a4dapade2aladefi4a2deina2deri4ade1sades4sadi3enad4resa2f1eca2fentaf1erlaf4fluaf3s2aaf3s2haf2t1aaf2teiaf2t3raf2tura2f3urag1a2da3gen_age4naage2saage4si3a2gitag4ne_a2g3rea2g3riag4samag4setag4spoag3staag3stea2gundahl3a2ahl3szah4n1aah3r2eahrta2ain3spai3s2e2a3kam1a2kazaken2nak3rauak5tan2aktikak2t3r2aktstal1ageal3amealami5al3ampal1anaal1ansal1anza3lar_a3lareal2armal3arral1asial1assal3augal2b1lalb3lial2bohalb3rualds2ta4l1eha2l1eia2l1ela2lengal1epoal1erl3alermal1etaal1etha2l1eua4leur3a2lexal2glial1insa2linvalk1ar1alkohalk3s2alks4tal2labal2laual3les1allgäal2lobalo2gaal1opeal1orc3alpe_al3sklal3sunal4takal3tamal2treal2trial2troalt2seal1umbame2n1amer2aa2meriame3rua4mesh2a3mirami3taami3ti2ammalam2meiam2minam3stram2t1aam2t1äam4tel2amtemam2t3ram4treanadi3an1algan3dacande2san2dexand2suand1uran3e2can2ei_an3eifan1e4kan1ethanft5san3f2uang1ar3angeb2angiean2gla4angs_an2i3d3a4nima4ninsan2keian4klöank3ra3an3naann2aban3n2ea2n1orans2enan2seuan3skrans1pa1anspran3s2z1antei1anthran2tro2anwet1anzeian2zwiar3abtara3d2a2r3al2a2rara2r1auar2bauar2bec2arbenar2bre2arbs2ar2droar1effar1ehra2reinar2erfa2reria2rerlar1intar2kalar2knear2korar4kriark1s4ark3saark3shar2lesar2nana2r1oparr3hear3s2har3staar3t2ear2thear3t2iartin2art3rear2z1was1alaa3schea3schia2schma3schua3s2hiasin2gaska3sa3skopas3s2aas3s2eas3s2ias2s1pass3tias3stras3stu2as3taas4tauas4tofast3räaswa2s3a2sylat1apfa2tausat3eiga2teliate2ru4athe1atil4sati2st4atmusatra4tat3romat4setat2s1pat4takat4tauat2teiatz1eratz3t2at2z1w2au1a2au2bliau2bloauf1an2aufe_2aufehauf1er2aufs_2auft_4augehaule2sau2malau2m1oaum3p2aum3s6au3n4aau2nio2au3r2au2sauau2spraus3s22auts4ava3t4äche1eäch2späch4stä2d1iaäft4s3äg3str2äh3t4äl2l1aämi3enäne2n1äng3seän2k3län2s1cänse3häp2s1cä2r3a2ä2r1eiär1intär2k3lärt2s3äse3g2äser2iäskop2ä3s2kräs6s1cä4s3t2äß1erkä4t1a2ät2e1iätein2ät2s1iät2s1pät2s3täum4s52ä3us_backs4b1a2drbah2nuba2k1iba2krabal3th3b2andban2drba3n2eban4klban2kr2b1ansbar3deba2reibar2enbar3zwba3s2abau3sp3b2ä1cbbens2bb3lerbbru2cbe2delbe2erkbe1erlbe1etabei1f4bei3k4bei3labe1indbei3scbeis2ebei1stbeit2sbe3lasbe3lecbe3leibe2letbel3label3szbel3t4ben3arbe3nei3ben3gbe3n2iben2sebenst4ben2su2bentbb2entib1ents2bentwben3unben3z2ber3ambe2ranbere4sber3nab1erntbe2robbe3ropbe3rumbe3slobes2pobess4ebes3szbe2tapbe3thabien3sbi2ke_bi2kes2b1inb2b1infbin3gl2b1intbi2solbi2s5tb2it2abla3b4b2lancb2latt2b3law3ble2a2b3legb3lein3ble4nb3leseble3sz2blich3blickbling43blitzbo3ch2bo2e3ibon2debo1r2abo2reibo4rigbo4s3pbot2st2b3radb4ra3k2b3refb3reif2b3repbri2er2b3rolbrust3bru2thb2s1adb3sandb3sel_bse2n1b3s2esb2s1ofb3s2pubst3acbst1akbs3tätbst3erb2stipb4stodbs4trib4stübb2s1unbu2chibul2la2b3umkbu3r4ibus1erbu2sinbu2s1pbu2s1ubzeit1carri1ca3t4hcha2ck2ch1akch2anb3chancch1ang4chanz4char_1characha2sc3chato4chatuch1ärm3chef_3chefi3chefsch1eimcher3ach1ess2cheta1ch1iachi3na4chind2chinf2chinhch1insch1int1chiruch1offch1orcchre3s1chron2chunt2ck3an4ckeffck1ehe4ck1eick1entcke2rack2ereck1erhck2ern2ckero2ck1id2ckunt2ck1upcon2nec1s4trcussi43d2abäda2ben3d2ablda2bredab4rüdach3ada2chodach1sdal3b2d1amma2d1amt2d1ana2dangedan4kldan2kr2d1ans2dantwd2anz_4danzida2r3a2darb2dar2mada3s2hdat4e2da3teidate4n4d3atl4daush2d1ämt2d1änd2d1ängde3a2tde4ca_de2cka2d1eff2d1ehrdein2ddein2sdel1ändel1ec2delek2delem2delfmdelle2de2lopde3lordel5scdel2sodel3t4dem2ar2d1empden3th2dentwdera2bde1radde2rapder2bl2derdbderer33derieder3m2de4ruhde4rumde3sacdesa2gde4samdes2äcde2sebde4sehde2seide4setde2sinde2sordes3s2de2sto2d1etwde1urlde2xisdha1s4di3e2ddi3enidie2thdige4sdil2s52d1imb2d1ind2d1inf2d1inh2d1ins2d1intdion3sdi4re_di2rendi2ris2d1irl2d1isrdi4t3rdle2ra2d1o2fdo2mardo5n4adoni1e2d1opfdor2fädor2fldor2fr2d1orgdo2riedor2tadö2s1c3d4ra_2d3rad2drahm3d4ramd3rand2d3rät2d3räud4rea_d4reas3d4rehd4reiv4d3ren2d3rep4d3rer4dres_d4resc3d4ria2d5ricd5riegd4rin_3d4rit4dritu2d3rod2d3rot2d3rovdrö2s13d4ruc2d3ruh2d5rutd2sau2d2s1efds2eigd2serhds1errd3s2had2s1imds2infd3skuld2s1opds1orids1pasd2sprods3tabd4stagd4stead3steid4stemds4tilds4tipds1umsds2zend4theidtran2du1alvdu2bli2d1ufe2d1umb2d3umkd2ums_2d1umvdund2a2d1unfdun3kedun2kl2d1url2dursadwest3ea3dereadli4e3aleiealti2eat4e2eater1eat3s2e3au2feau1ste3b2akebert4eb3lereb4leue3blieeb3reiebs3paeb3staeb3strebu2t12e3cheech1eie2cho_e2ch3rech3taech1uheck3seede2aledens1edi4aled2s1oed2s1pee2choeed3s2ee2lekee3lenee4nage1e2pie1erbtee3r2eeere2see4reteer2öse1ertree3r2uee4tateewa4re2f1adef1anae2fente3f4lu2e3f2oef3reaef3rolef3romef2tanege2raeg4saleg4stoegung4eh1ache3h2aleh2auseh1eff1e2hepehe1raeh1inteh1lameh2linehl2seehr1a2eh2reiehre3seh1ro2ehr1obehr1ofeh1stee2hunt2ei3a2ei2bareibu4tei2choei2d1aei3danei3dra4eien33eifrüeig2er2eigew2eigrueik2arei3kauei2lareilen1eil3f41eilzuei2moreim2plei2n1aei4nasein3dr2einduei4nelei2neu2einfoein3g2e1initein4szei2sa4eis2peeis4thei1stoei2sumei2tabei2tanei2tarei2troeit3umek1s4tek5triel3abiel2abte2l1akel4amiel4ampel1ansel1anze2l1apel3ariel1asiel1aspel2ast3elbiseld3s22e3lebe2l1el1e2leme3lem_el1empel1erdel1erfel1erkel1erl2eles2el1esse2l1ideli2neel1itael3lanel5le_el3linell3spel1opee2l1orelo2riel2sumelte2kel2t3re2l1umel3useel2zwae2m1ad3emanze3m2ene2m1imemi5naem1intemi3tiemma3uem2meiem3pflem2spren4amee4nanden3angen3areen2ascen3atte3nauee2n1ären4ce_en2dalend3siend3szend2umen1e2ce2neffe4neine2n1elene4lee2nerfe4nerhe4nerk4enerne4nerz1engad3engagen3g2ien3gloeng3see2n1inen3k2üeno2mae2n1openost3en1ö2den3sacen2sauen2sebens2el1ensemensen1en3skaens2po2enstoent4agen2teb1entfa3entgaen2thi3entlaenü1ste1o2b1e3p2f41episo1e2pocep2tale3rad_er3admeraf4aera1frer3aicer3alleran3de3raneer3anfe2ranher3anmer3apfe3rarie2rathe3ratie2ratme1rauber3aueerau2fer3augerb4sper3chl2erdece3recher1effer1eige2reiner1ele2e3reme3renae3renz4erer_e4rerl4ererne3reroer1errer1erse2rerter1erwer1esser1eul4erfür1ergolergs4t1erhabe2riat4e3ric4e3rieer1inber1inker1inter1ita1erklä2erkreern1oser1o2ber3onye4ro2rer3smoert2aker2thoerts2eeruf4ser1u4mer1underung4er1unses2aches3anze3s2ases3cape3schaes3evaes2haresi1eres3intes2kates4loges2ortes2sau4essemessi2aes2sofes2spues3stres3stuest1ake1stare1state3stele1stile2stipes4trie2s1umes3umse4teinet3haleti2tae4t1ofetons4e2treset4riget2tabet2teiet2t3ret4troett3szetwa4retze4seu2esceu4glae3um2seum4sceums1peum3steu4neie3un2geu2nioeun3ka3eu3roeu1staeu1stoeu1stre2velae2vent1e2xeme2x1inex2tinfa2benfa2chof1aderfa3l2afal2klfal3tefalt2sfan2gr2f1ankf1an3zfar2br2f3arcfarr3s3f4art2f3arzfa3s4afa2to32f1auff1ausb2f1ärmfä2ßerfeatu42f1eckfe1inifek2tafe2l1afel2drfe2lesfe2l1ofen3safer2anfe2rauferde3fer2erf1erfaf2erl_f4erpaf2ers_fest1afest3r2f1etafe4tagfeu4ruf2f3efffe1inf3f4räff3shoffs4trfi2kinfik1o2fi2kobfi2lesfi4linfil2ipfin3sp2f1intfi2s5tfit1o2fi2tor3f4läc2f5läd2f3läu2f3leb3f6limfli4ne2f5lon1f4lop1f4lot1f4lug4f3orgfo3rinfor4stfor2thfor3tu2f1o2xf3rand1f4ränfreik2frein42f3ricf4risc1f4ronfro2nafs1allfs4ammf2s1asf2sauff2sausf2sautfs1e2bf2s1emf2s1erf2si2df2s1o2f3spanfs1penf3s2plf2sprefs2prif2sprofs2pruf2stasf3steif2stipf3st4rf2s1unf2t1alft1e2hft1eigft1eisf4theif2t3rof2t3röf3t4ruft4samft3s2cft4sehfts3elfts2tift1url2f1unffun2klfun2ko2f1unmfu4re_fus2safus2stfzu4gaga2b5l2ga2dr2g1amtgan2gagan2grg3anla3g2ano2g1armga3r2og1arti2g1arzgas3eiga2sorga4spega4sprgas4taga4ste2g1auf2g1autg2d1aug2d1erge3g2l2g1eifge2in_gein2sge2intgein2vgei3shgelb1rge5lehgell2age3lorgels2tgel3szge3lumge4namge4nargen1ebge3necgen3szgen3th2gentwge2rabger2erger3noge1r2öge3r2ug1erwag2e1s23ge3scges4pige3steges3thge3t2a2getapge3t4ugge2ne3g2het3g2hiegi3alogi2e1igie1stgi2me_gi4mesgi2met2g1indgin2ga2g1insgi3t2ag2lade2g1lag3glanz2gläuf2g3leb4g5lerg3lese3g2lid3g2lie3g2lit3g2loa3g2lobg3loch3g4lok3g2lop3g2lotgne2tr4g3notgoa3li2gonis2g1ope2g1opfg2o1ragra2bigra2bl2gradl2g3rah2g3rak2g3räu2g5re_2g3recg4re2eg3reit2g3ric2g3röh2g3rui2g3rum3g4rup2g3rüc3g4rüng3s2ahg4saltgs3amags3augg4s3cegs4chig4s3crg3sel_gs3elig3selngs5erkg4setags4pieg4spingsrat4g3stang3starg4s3täg5stämg3stelg1steugst2heg3stirgs3tocg4stolgs3topgst4rig4sturgs4tücgu1an_gu1antgu4d3r2g1u2fgu1ins2g1unfg2ung_gunge2g2un4s2gunt22g1urlgurt3sgu2s3agus2spgus2stha2choha2delha4dinh1adle2h2al_ha2lauhal2bahalb3rhal2lahal2sthand3shan2krh4a3rah1arm_h2armehar2thh1arti2ha3sahat5t2h1aukthau2sahau2sc2hautohau2trhä3usphe1choh1echthe3ckehe2e3lhe2fanhe2f3lhe3friheim3phei4muheine2h1einkhe1ismhe1isthel1eche3lenhe4lof4h1emphend2she2nethenst2hen5trh1entshe2ral2heraphe3rasherb4she2relh1erfüh1erkeher3thher2zwhe1stahe2tapheter2he3t4she1x4ahfell1hi2angh1i4dihi3enshier1ihiers2hil2frh1induhin2enhi3n2ihin3n2hin3s22hi3rehl1anzh1lauth5len_hlen3ghl2ennhle2rahl1erghl1erwh4lerzh4lesihl1indh3listhlo2reh3losihl2sanhl2serhl3skuhl3slohme1inhmen2shme2rahn3eighn3einhne4n1hne4pfh3nerlh3nerzhn3s2khn1unfho2ch3ho2ckahock3tho2f3rhol1au4holdyhol3g4ho4lor3hol3sh1o2lyho2mecho2medho4seihotli42ho2w1h1raneh3rechh4rei_h3reich3r2enhr2erghr2erkhr2ermhr2erzh4rickh4rineh4rinhh4risth4romeh4romihr2sauhr2serhr4sethr2tabhr2tanhr2torhrt3rihr2trohrt2sahrt2sehr1umsh2s1ech3s2exh2s1ofhs2porh2spräh2sprohst2anh1stechst2heh1s2tih2storh1s4trhst3rih1stunhs2ungh3t2alht3aneh3tankh4tasyht3a2tht1e2ch2t1efhte2heh2teifh2temph2t1euh2t1exh4theihthe3uh2t1inh2tolyh2torgh4trefh2t3ruh2t3rühts2tihu2b1ahu2b3lhu4b3rhu2h1ahu2h1ihuk3t4hu2l3ahu2lerhu2lethu3m2ahung4shu3ni1hus4sahus2sphu2tabhu3t2hhühne4h2wallh1weibhy2pe_i4a3g2ia2l1ai3aleiial3laia2lorial3t4ial3z2ia2nali3and2ia3p2fi2a3spi3a4tai3at4hib2blii2beigi2beisibela2iben3aib3renib4stei2bunki2buntibu2s1ich1eii2chini3chloi2ch3ri3ck2eid2ab4i2d1au1i2deeidel2äide3soide3sp1i2dio1idol_i3d2scid2s1pie2breie2choie2fauief3f4ie2f3lie2froie4g5lie3g4nie2g3riegs3cie3lasiel3auiel1ecielo4biel3sziel3taiena2bi3e2näien1ebie3neri3en3gi3e2noien3scien3siiens2kien3szier3a2ie2rapie3resi3ereuierin3ier3k2i3ern_iers2tier3teies2spie1staie2t1aie4t1oie2triiet2seiet3zwifens2if1ergif1erhi1f4lai1frauif4reii1f4rüif2topift3szig2absig1artiga1s4ige4naig1erzi2g1imig3reiig4salig3sprig4stoig4stöig3strig3stüigung4i2h1ami2h1umi4i3a4ik1amtik1anzik1artik3atti2k1aui2k1eiike2l1ik1erfi2kindi3k4läi2k3raik2trei2l3abi2l1acil1a2di2l1akil1ansil1aspi2l1auil3ausild2eril2doril1e2cil1eheil1einil2f3lilf4s3ilie4ni2l1ipi3lip_i3lipsil3l2ail3l2iil2makil2mauil2mini2l1oril3t2hilung4i2manwima2tri2melei2melfi4meshi2metiim2meiim1orgim3pseim3staimt3s2in3a2ci4nacki2n1adin2arain2arsin4arti2n3auin2dalin2dan1indexind4riin3drü1indusin1ehein2erhi4neskine3un1info_1infosing1af1inhab2inhar2inhauin2i3dini3krini3sei3nitzin2nor1inntain3olsino1s4in1ö2dins2aminsch2in2seb2insenin3skr1insta1insufin3s2z1integin3t4rin5trii3n2umin3unzinvil4io2i3dio2naui3ons3ion4stiore4nipi3elipi3en1i2rakir2k3lirli4nir2makir2mauir2mumir2narirpla4irt2stiru2s1isage2is3arei2s1äni2schmi2s3crise3haise3hiise2n1is2endisen3si2serhiser2uis2hasi2s1idi2s1of3i2soti2sparis1picis2pitis2pori2sprois4sauis3stais3stoiss3tris3stuis2sumis4tabis4tamist2anis4teliste4nistes3is4tocis5törist4raist3reisum3piß1ersit1ab_ital1ait1altit2an_it1arti3tauci4t1axi2t1äsi2t1eii4teigit2eili4teinite2lai4tepoi2t1idit2innitmen2i2t1ofit3rafit3rasit3rauit3räuit3ricit3romit4ronit3runit2stoit2tebit4triitt2spi2t1umi2tunsit1urgitzes4it2z1wi2v1akiv1angi2v1eiiv1elti2v1urizei3ci2z1irjahr4sja3l2ajean2sjek2trje4s3tje2t1aje2t3hje2t3rjet3s2jugen2jut2e1kab2blka2ben2kabla2kabläka3b4r2k1abt2k3adaka1f4lkaf3t2kaken42kala_ka2lanka3leikal2kakal2krkal4trkan2alka2nau2kanda2k1angk2ans_k2anz_2k1apfka3r2i2k1armk2arp3kar2pfk2artaka2s3tka3tanka3t4hka4t3r4kaufrkau3t22kautok1ä2mikä2s1ckdamp22k1e1cke2he_kehr2s2k1eic2k1eig2keinhkel1acke3lagkel3b4ke2lenke2lerkell4e2k1empken3au2kenläkens2kken3szk2enteken3thk2entrk2entu2kentwke1radk2erkok1e2rok2ers_ke2selke4t1ake2t3h2k1e2xki1f4lki1f4r2k1intkis4to4k1lack4leidk3lem_2k3lerkle2ra2k3leukle3usk2lisc2klistklit2s2k3locklo2i3klost4klung42k1lüc2k5nerkno4bl2k5norkoh3lukol2k5ko3n2ekon3s4ko1r2a2k1orckot3s22k3radk3rats2kraum2k3rät2k3rec2kred_2k3refk3reick3reih2k3rick3ries3k4ronks1e2bk2s1emk2sentks1erlk2s1idk2s1ink2s1o2ks2pork1s2tik2stork2sträk2stumks2zenk2t1adkt1aktkta4rek2t1auk2tempk2tentkte3ruk2t1idkt1insk2t1ofkt1opekt4rankt3rask4trefktro1skt3runk2tuns2k1uhrku3l2eku3l2i2k3umlkum2s1kun4s4kunst32k1up_kur2blku2reikuri2ekur2spkur2stlab4ralab4ri2l3absla2ce_la2gio2la1hola2kesla2k1ila1k4lla3min1lammf2l1amtlamt4sla4munl1analla2nau3l2andlan2gl2lanhäl2anhe4lanli2l3ann4lansä2lantrlan2zwlap4pll3artila2saulast1ola4tel2l3athl2auf_lau2fol2aufz2lausl2lausr2lauto2l1ähnlä2s1cl4betal2b1idlb2latl4bre_lb3ritlbst3elb4stol2b3uflbzei2l3d2acl2d1akld1amml2da2rld3arild1arml2delel3der_ld1erpl2d1idl2d1iml2dranl3d4rul2d1umle2chile2gau3l2ei_lei2br4l1eigl2ein_l2eindl2eine2leinkl2eintl4eistlei2talekt2a2lektr3l2ela3lemesle4nad2lendul2e2nolen3szl1ents4lentzlen2zil2e1rale2ragle2raul1erfol2erfrl2erfül2erkal2erkol2erlel4ers_lers2klers2tl2ert_l2ertel2erzales2amle3serleste3le1stole2tat2le3thlet4tule3u2f2leurole2xislfang3l2f1ecl4feisl3f4läl3f4lulf3ramlgen2alge3ral2getilian2gli3chili2ckali3d2ali2deo2l1idolid3scli3enelien3slie2stli2grelik2spli3m2ali3n2alin3alli2nefli2nehli2nepli2nes2l1inflings52l1inh2l1injlink2sli2noll2ins_l2insal2insc2linsp2linst2l1intli3os_li2p3ali3s2a2l1islli2tallit1s2lit3szlizei3lk1alpl3k2anl3kar_lken3tl3k4lul2k3rol2k3rulk4ställ1abbl2labtll1affll1aktl3l2alll3amall2anwll1anzll1armll3augl2lausl2l1ämll1echlle3enl2l1efll1eiml3len_llen3gl3ler_lle2ral2lerzll1imbll1impll1insl2lobel2l1ofll1opfl3lor_l3lorel2l1oul2l3öfll3s2kll2sprllti2mllt5s2l2marclm1auslm1indlm1inslm3stelm3s2zln3are3l2ob_lo2berlob4ril1o2felo2gaulo3h2e2l1ohrlo2k3rl1o2lylo2minlo2n1olo3renlo4skelo2speloss2elo4stelo3thalo3thiloti4o2l3öfelpe2n3l2p1holrat4sl3s2all2sannl3sarel2s1ecl2s1emls1erels1ergl2serhls1erlls2logl3s2pil2sprol3s2pulstab6ls4tafl3stecl3steil3stell4stemls2tiel2stitls2zenlt1a2mlt3andlt1angl3tarblt1artl2t1aultbau1lt3elil5ten_lter3alt2erglt4erölte2thl2t1eul4theiltimo4l2t1ofl4t3ötltra3llt3räult4rielt3roclt3rosl2t3röl2t1umltu2ri4lu4b32l1ufelu2g1alu4g3llu2g3rlug3salug3splu1id_2l1una2l1unf2l1unilu2s1ulu2t1alu4teglu2toplu4t3rl2z3acl3z2anlz2erklz1indlz2wecm2ab4rma2d4rma4d2sma2ge_ma2gebma2gefma2gegma2gekma2gepma2getma2gevma2gew2m1aggma3g4n2m1agomai4se2m1aktmal1akma2lanma2lauma3lermali1emal3lo2malltma2nauman3d2ma2net2mansa2mansä2mansc2mantwmar3g2maro3dma3r2uma2tanma2telma5trimat3semat3sp2mausg4m1ändmä3t4rm2d1ummedie4mee2n12m1eif2m1eig3meistme3lamme2laume2lekme2lermelet42melf_mel2semel5t4mena2bme3nalmen3armen3aumen3glme3normen4skmen2somen3ta2mentnmer2er3merinme2sal4meser2me3shmes2stmeste2me1stome3t2amie3drmi2e1imien3smie2romie4timi2karmi3l2amilch1mild4s2m1impmin2enmin2eumin2ga3min2omi2t1rmit3s2mit5sami5tsumi2t1umk5re_m2m1akm2m1almm1angmm1anzm2m1aumme4namme2samm1inbmm1infmm1inhmm1insmm1intmmi3scmm3stamm3strmmüll1m4nesimode3smo2galmo2k1lmon2s3mon3su2m1opemo2rar2m1orcmor2drmo2rermos4tampf3limpf1ormp3strms3andm4s1efms1erwms1inims1orim2spedm2spotm2sprom4stagm3stelm3s2tims5träm3s2tumt3aremt1eltm2t1eum2t1immtmen2m2t3romt2sprmt1urtmu3cke4m3unfmu4s1amu2s1omut1aumut2stmvoll14n3absna2ch1nach3s4na2drna1f4rna2gemna2h1a3n2aldna2letnal3lanalmo2na2lopnal2phn2als_nal3t4n4amenna3m4n2n1amtnamt4sn1and24n1ang2n1ans2nantrnap2sina2r1an2arle4n3artna3r2unasyl2na3t4hnat4sanat4sc3n2aul4nausb4nausgn2auso4nauss4nausw2n1ä2mnär4s53nä1umnbe2inn2d1akn2danlnd1annnde2sendi2a3ndo2ben2d3ren2drobnd3rolnd3rosn2druind2sornd2spr2n1ebnne3ein4n1ehr3neigtnek3t42n1ele5neleb4nelek4nelemne3lennel4la3ne3lu2n1embn1e2mi2n3emp2n1emsnen3a2n1endgnen3einenen14nengb4nengs4nengtnens4enen3skn1entb4nentn5nentrn1ents4nentzne2n3u2n1epone2posne2ranne2rapne2raun1erbine2reb2nerfü3nergrn2erlin1ermän2ern_ne1rösn2ert_n1ertrne2rup2n1erzne3sanne3skane2s1pne1stanes3tine2tadne2tapn1etatne2taunet3han1e2tunet2zi2n1eupnfalt4nf5linnft4s3ng2absn2g1acn2g1akng2anfng1anzn2g1äln3g2enngen2an3gläsn2glicngrab6ng3ratng3rocngs3panich1s3n2id_nie4n3ni3eneni1eronifes3ni2grenig4spni2kalni2karni3ker4n1imp3n2in_n2in4a4n3ind4n1inhni2nor2n1insn2ins_4ninse4n1int2n1invni2s1eni3se_ni2s1pni3spinis3s4ni2s1uni3t4rni3tscnitts1n2k3adn2k1akn3k2aln2kansn2kausn2k1ärnk4ergnk1inhnk3lennk3lesn2klienk3lunn2k3ronks2eink3s2znk2taknk2tannkt1itnk4topnk2trunmen2snna2ben2nadan2n1annnen3gnn2erhnn2erknne2rönner2znnes1enne4stnn1o2rnn3s2pn2n1ufno2blano2leu3n2opano2radno1rakno3ral3n2os_no2s3pn2ostenost1r2nostvno3tabno2telno3t3hno4thano4thi2n1o2x4n1ö4lnräu3snre3sznrö2s1n2sangn2santn2sausn2s1änns1e2dns1entn2s1epns1erfns1ergn2serhns1ersnsfi4lnsho2fn2simpnsi4tensi2trns2kaln2s1opn4spatn3s2pins4piens3ponn4sprän4spronst1akn3starn3statns4tornstü1bn2s1unns2ungns4unrns4unsn4s3zint3absn3t2alnt1angnt2arbnt1arknt2armn2t1äunte3aunt1ebente3g6n2teignt4enent4ernnt4ersnt4ertnt2hern2t3hon3t4hunti3kln2tinfntini1nt2insn3ti1tnt4lemntmen2nto3ment3recn5trepnt4rign5tropn2t3rünt4saunt2sto3n4tu_ntu2ra2n3umb2n1ums2n3umz3nung_n3ungl2n1uninu4t3rn2z1aun2z1ännzdi1snzi2ganzig4snz1inin2zurkn2z1wan2z1wän2z1wuoa3cheoa3chioa4k1lo4a3lao4a3mi3oa3seo3b2al2o3b2äob3ein2o3b2iob3iteo2b3li2o3bloo2b3reob3s2hob2staocha2boche4boch1eioch3ö2och3teochu2fo2ckarock2erock3szodein3ode2n1odene4ode3sp2o3diaof1a2co2f1eiof2f1a1offizof2f5lof2f3r2o1f1rof4samof2speof2sprof2s1uof2teio2g1abog1alaog1ango2g1eiogi2erog1steohen3sohl3auoh3lecohl1eioh3lemoh3lenoh3lepohls2eoh2n1ooho2laoh1o2poh4rinoimmu4oka2laokale43o2kelok2s1po2l1akolars2ol1aufol4damol1eieol1eisol2fraoli3k4ol2kreol2lakol2lelolo3p2ol1ortol2strol2z1aol2zinom2anwom1arto2m1auo2m1eio3men_o2meruom1erzomiet1om1ingom1orgo4munto2narbon3ausone2n3onens2on1erbon1ergon1eröo3netton3g2lon2i3do4nikro4n1imon3ingonlo2con3n2eo2nokeon1orconsa2gon4samon2sebonse2lonst2hon3t2aoo2k3lo2p3adop3aktopa2leo1pe4nop2f3aop3fahopf3laop1flüopi5a4op5lago2p3le1op3t4or3a2bor4altor2ando2ranhor3arbor3attor1ändor2baror2dauor2deuor2ditor2dumore4aso2r1efor1eigo2reino2rerfor1ethor2fleorf3s42orgetor3g2h2orgiaorgi1eor3gle2o3ric4orie_o3rier4orin1or5ne_or3s4aor2täror2tefor2theor2torort3reo4r3un2o3s2ao3scheo2s1eio3s2hi2os2kl2os2koos3peco3s2poos2seios2s3oos4sonos2s3pos2s3tost1auos4teios2t3hos3tilost3räost3reost3ufo3s2zeo2ß1elota2goo5tarko3tarto2t1auot3augotei4not4em3otemp2ot5helo2t3hiot3hosot1opfoto2rao2t3reot3rinot4spaots2peot2sprot2t3rot4triou1f4lou4le_o3undsou3s2ioviso3owe2r11o2xidöbe2laöbe4liöh3l2eöl2k3löl2naröl2ungönizi1öp4s3tö2r3ecö2r1eiör2ergö2rerlör2f3lö2r1imörner2ör3s2kö2schaö2schlö2schwö2s1eiös2s1cöte4n3pa1f4rpa1k4lpak2topala3tpa2narpa3neipa2neu1pa2nopan3slpa5regpa5rek1park_par2klpar2kr1partn1partypar3z2pa3s2ppat4e2pa5t4rpa3unipä3ckepä2t3hpät3s4pekt4spe2letpe2lexpell2apell4epen3dape4nenpe2n1o3pensi1pensupen3z2per2anper4nape2robperwa4pes3s2p2f1akpf1ansp2fa4rpf3arepf3armp2f1au4p3fe_pf1eimpf1einp3fen_p2fentp3fer_pf2erwp3f2esp2f3läpf3leipf3lie2p1heiphen3dphen3sphi2ka2phthepi3as_pi3chlpiela2ping3s3pinsepi3onupi4pel3pirinpi3t2aplan3gpo2laupo4lorpo1o2bpo1ralpo1raupo4stapo4stäpo2stopos6trpo2t1upp3anlppe2n1p2p1f4p3p2hopp5lanp2p3rap2p3repre2e13preis2p3rer3p4res1prinz2prosspro1stp3steap3stelp3s2tipt3albp4t3ecp4t1eip4telept1in1pto3mept1urspul2sppu2s3t2r3aacra2barrab2blr2aber1r4abi2r3abwra2chura2dam2radapraf3arra2ferra3gle3r2ahmrail4l2r3airra2krera2kro2raktira2la2ral3abr3alar3r4aldral3larall2e2rallgr3alp_2ralper3al3trama3srambi2ra2mer1r2ami2r1amtramt4sr4andar4anderand3sr4aner1rangirani1eran2kr2r1anm2r1anpr2ans_r2ansp2rantr2r3anw3rareirar3f42r3arz2rato_rat2st3raub_rau2mi3rausc2rausgrau2spraut5srä2s1c3rätser2b1abrbal3arba3rerb1artrb1aufrb1echr4belärb1entr3b2larbla2dr2ble_rb3lerrb2linrb4seirb3skarb4stärb3strr1che_r1chenrch1s2rch3sprch3tar3d2acr2d1akr2d1alrdani1rd1antrd1anzrd2ei_rden3drde3rerde3sprdi3a2rdia4lrdo2berd3ratre2altre3at_re3atsre2b1are2b1lreb3ra4rechs2reck_2recki2reditre2hacre2h1ire2h1orei4bl4reifrrei3gareim2p4reingr3eink4reinr4re2ke2r1elbre3lei2r1elf2r1elt4rempfrena2bre3nal3rendiren3drren4gl2rengp2rengsr1ense2rentw3r4er_2r1erbr2erbr2r1erdr2erenr2erki2rerlö2r1ermre2robr2erse2rerspr2erte2rertr2r1erzrer5zer2erzy3r4es_ress2ere1stare2thyreu3g2re3uni2r1eurrewa4rrf1ältr2fentrf3licrf3linrf2s1ärf2s3trf3t4rr2g1ahr2g1akrge4anrge2blr2getor2glanr2gleur2g1obr2gregr2gresr2gretrg3rinrgs4tr3r4he_3r4henrho2i3rib2blri1cha2ridolrie2frriene4rien3srie2nuri1er_ri4ereri2f1ari2ferri2f1orim4scr2i3na2r1indri3n4erine1i2r1infrin2foring3lrin2gr2r1inh2rinitr1innu2r1insrin4sorin2sp2r1inv3risikri4s1pri3t2irit2trr3klaur2klisrk5nebr2k5nurk3räurk3rinrk2s1erk3shirk2tinrk2t3rrk3trark4trirk1unirlös3srl2s1prl3ster3m2agrma2larm1ansrm1anzrm1a2pr2maphr2m1efr2mider2m1imrm3starm3umsrn2andrn3anirn2a2rrn3arern3arirn3eifr4nerfr4nerkr4n1inr2n1opr2n1orrn3s2ärn3s2prn3s2zrn3t2ero2bei3rock_r2o3deroh3na3r2ohrro2madro2mer4ro1nyror3alro2ratro2reiro2r1oror3thro3s2iro3smoro3starost1rro4tagrote3iro2thoro4trirots2orot2taro3t2uro3untrö2b3lrpe2rerrer4srre2strr2n3ar2r3obrr3stur4samprs3anprs3antrsch2lr3schur3schwr2seinrse2n1rs2endrse4ners1erers1erörs1ersrs1erzrs1etars2kalrs2kanrs2kiers2kisr4s1opr4sordr2s3phrs2tecr3stier2stinr2stiprs4tobr4stotr3s4trr3s4türtals1rt1angrt1annrt1antrt1anzr2t1arrte1e2rt4eifr2telfr2temort1ersrt3holrt2humr2t1idr2tinfrto2rirt3recrt3rosrtrü2crt2spart2sprru2ckurude2aruf2s32r1uhrru1insru2m3ar2ums_2r1unar2unde2r1unf2runglrun2kr2r1unl2r1unm4r3untru2r1erus4stru3staru4teiru2t3rrü1benrwun3srz1a2cr5zenerz1engr3z2ofrzug2u3sabetsa3blesach3t2s1ada2s3affsa1f4r3s2al_sal2se2s1alt3s2alz4s1amnsam2tos2an2cs4and_3sang_2s3anh2s3anl2s3anssan4sk2s3anw3s4ar_3s2ara4s3arb3s2ard3s2ars4sartisa4ru24s3ath4s3atlsauri1s3ausw2s1änd3sänge2schak2schao3sche_2schefsch2en3sches4schexschi4es4chim3schis2schmö2schn_2schoxschs2e4sch3tscht2ascht4rsch2up3s4cop3sco4rsda3mese3at_s1echtsee3igseein2se1er_se1erö2s1effse2galse4helse2hinseh3rese2hüb2s1ei_2s1eie2s1eig2seinb4seing2seinh4seink2seinl2seinn4seinr2seinw4s1eis3s2eitse2l1ase3ladsela2gse3lamsel1ec4selem2self_s3elixse2l3ösel3szsel3trs4e3ma2s1emp3s2en_se4nagsen3gl3s2enise4nob3s2enss2ent_s2enti2sentw2sentzse2n3use5refser2ers2erfrs3erfüs2ergr2serhöse2robs2ers_2sersas4ert_s2ertase3rum3s4ervse2selse1stase2tatse1u2n3s2ha_4s3hansho4resi2achsi3enesi1errsi3gnusi2g3rsig4stsi2k1äsik3t42s1immsi3n4a2s1ind2s1infsing1asin3ghsin2gr4s1inhsini1e2s1inq2s1ins2s1int4s1invsi2s1esi2s1osi2s1psi2tausi2tra3skala4skanz3s2ki_3s2kik3skulpsla2vesler3s3s4lipsli4tuslo3be4s5not2s1o2bs1o2he4sohng2s1ohr4so2lyson3auson3säso1ral2s3ordso2rei4s1ostso3unt2s1ö2l2spala2spara4sparo3sparuspe3p4s1peri2sperl2speros2perr4spers3s2pez4spi4p3s2plis3p4lu4s3poss2potts2pracs2pran4sprax2spräm4spräs2spred2spres2sprob4sprüfsrat2ssrö2s1ssa3bos2sanos4sansss2antss3attsse3hass1erös3s2essse3tass1offs2s1opss1oris2spros3stelss4tipss2turss1ums2stabb3s4tad3staff2stale2stalkst1almst1alpst1ami4stan_sta4na3stand2stani2stans2stanws4tar_4staris4tarsst1asis3tat_2stauf2staum3staur2staus4stälts4tänd5stätts3täus4s5te_3s2tegste2gr3s4tehs2te2i3steig4steil1s2tel2stel_2steln2stels4stem_s5ten_st4ens4stermste4sts4teti3s2teu1steue4steufs2t3ho2stie_s2tiegs2tiel2stien3s2tif3s4tims4tinfs3tinnst1ins1stitu2sto3d4stod_s4toffs4t3om2stopo2stor_2store2storg2storis3tort2stose4stote2stöch2strad2strag4strai4strak2stral5straß2strua2strug3struk2strup2st3t43s4tud2stumt2stun_4stunn2stuntstu3rest3url2sturn2s3tus2stüch2stür_2stüre2stürg2stürs3s2tyl3su2b3su2cha2s1u2fsu1it_su2marsu2mau3s2umesu2mels3umfesum1o2su2mors3umsas3umst2s1uni2s1urlsüden24s3zeis2zena4szent4s3zet2ß1e2gße2l1aß2ers_2ßerseßge2bl2t1abb3tabel2taben3table2t3abn2t3abtta3d2s3taf2et1af4rta2ga24ta3gltag4sttah3leta3i2kta1insta1ir_t1a2kata2krotak6ta3taktb3t2al_ta3lagta3lakt1alb_t1albk3t4aletal2löta2mert1amplt1a2na4t2andt3ankl2tanwa2tanwät2anz_t1anzat1anzuta2pe_ta2pes2t1armt1artitar2to2t1arz4t1aspta2tanta2tautat3eita2temtat3heta2tom4tatue2t1auf4taufg4taufnt1ausb3tausct2auset1ausk4tausltaxi1s2t1ältt1ängs3t4ebbte3cha3technteck2ete2ckite2en3te1erwteg3ret3eifr2t1ein4teinf4teinnt3eis_t3eisb3te3letel1eb2telemtel1ente4leute2littell2ete2l1ö3telt4tel3tatel3thte2min2temme2tempfte4m1utena2bte4naste4nauten3dat6endit6endote2nefte2nettens2et4entat3entb4tentdt4ente4tentnten3zwt3e2pi3t4er_tera2bte1rafter3am4terbs4terbtte2relt4erfrte3ria3termi2ternct4ers_terst4ter3zatesa2cte2santesä2cte2selte2sprtes3s2te2tat3teur_2t1exz3t4ha_3thal_4t3hau1t2he_2t3heit4heint4henet4heni2therr3these2t3hil2t3himth4mag2t3hoc2t3hoht4hol_2t3hot1th2r2ti3a2mtiden2ti2deo3tief_3ti2erti2kamti2karti2kinti2kräti2larti2leiti2lel4t1imp3t2in_4t1indti3n2eting3lting3s2t1inj2t1int4t1invti2seiti1sta2ti3tuti2vanti2velti2v1oti2v3rtlung4tnes4s3tochtto4d1utom1e2to2mento2nauto2nehto2pakto2patto2rauto4ränto2relt3orga3torint1ort_3tost4to1sta3to3teto2thotouil44tractt3rad_6trahm5t4rai2trand3trankt3rann3transt3raset3rasi3träne4t5re_tre2brt3recht4reck6t3red5t4ree4trefe4trefot4rei_4treic2treift3reigt3reint3reis6treitt3reiz6t3relt4ren_3trendt3rent2trepe2trepot4reprt4res_3treuh5trieb2triegtri4er5triggt3rind4tringtri3ni4trinn4tripttrizi13t4roitro2ke4trom_tro2mi4troml2t3roo3tropf2t3röttrums15t4ruptru2thtrü1betrü1bu2t3rüct4sa4bt3s2act2s1aht4s3art2s1änts4cort3seiltse2n1t2s1erts1init2s1irt1slalt3spalts1parts2pedt3spekt3s2pit4stagts3takts4talt2stipt4stitts3tocts3tort2strits3türtta2bet2t1adtt2anttt1arttt1ebett1eiftt1eistte2lattel1otte2satte2sätt2häut2t3hott4roctt2sentt2sortt2spett2sprtt2stitu1almtu2chitu3fent3u2kr3t2ume2t3umf2t3umg2t3umk2t3umrtum2situm2so2t3umt2t3umz2t1una2t1und2t3unft3unga2tunif2t3unttu2re_tu2reitu2resturin1tück2s3tür3s3tütentze4n1tz2enetz1erltze2rotz2erst3ze2stzgel2tz1indtz1inttz2tinua2lauu3aletual2mau3a2louara2bu2be2cub3licu2b3luub2sanub2s1oub2spau1cha_uch1eiu3chesuch1iluch1inu2ch3ruch2souchst4u2ckemuder2eudert4udi3enuditi4ue2neruenge4uen2zuue2r3aue2r1äu3erehu3ereru3erexuer3g2uer2neue2r3ouer3scuer3t2u3erumue4teku2f1äsu2f1eiu2f1emu3fen_u2fentuf2ernuf2frouf1oriuf4sinuf2spouft3s2u2g1apu2g1eiug3ladu3g2löug4serug3spaug4sprug4spuug5stäug3strug3stüuhe3s6uh2reruh4rinuisi4nui4s5tukle1iuk2t3ruld2seu2l1elul1erful1erhul1erwule2saul1etaul1insul2lesul2p1hul4samuls2thul4trium1allum1anzu2maut1um3d2umer2aum1ins3umsatum4serum2simu2m1uru3n2amu2n3an2un2asun4dabun4deiun2didun2dorun2d3r4unds_und3spund3stun2ei_un3einunen2tun4es41unget1ungew1unglüun2g1rung3raung3riung4saun3ide1u2nifun3islu3n2it3u2nivun2keiun3n2eunvol2u1or3cu2pf2eu2pf1iu3rabaura2beur2anbur2anhu2r1auur3b2aur1effu2releu4r1epur1erhur1erwur2griurg3s4ur1iniur3insur1int1urlauur3sacur2sanur2sauur2serur4sinurst4rur2z1wus4annu2s1ecu2s1eiu3seiduse1rau2serpu2s1opu2spatus1picus2porus4sezus2sofu1stalus3tauust2inu2stunu2sturut1altut3a2mu2t1apu2t1arute4geut1ei_ut1eieutel1eute2n1u2tentu4t1exu2t3hout1opfu2topsut3reaut3s2aut2s1äut2spaut5t4lutu4reutu5ruut2z1wuve3räüb2s3tücht4eü3ckenück1erü3den_üden4güdwes2ü2f1eiü2h1eiühl1acüh3r2eühr3taü2mentün2fliün2g3lün3strü2r1eiü3r2o1ü2schlüs2s1cü2t1alva2teiva2t3hvatik2va2t3rvat3s4va2t1uveits32ve3muve3nalve3radve3rasver3b2ve4rekve4rinver3stver5te2ve3scves3tivi4a3tvie2w1vi2l1avi4leh2v1i2m2v1intvi3s2ovoll1avol2livo5rigv1steuwab2blwa3chewaffe2wa2g3nwah2liwal4dawal2tawal2towang4s1war2eware1iwart4ewass4e4webebwe2g1awe2g3lwe2g3rweg3s4wei4blwei2gawei3k4wei4trwel2t1wel4trwen3a4we2r3awer2bl1werbu1werduwerer2wer2fl1werk_wer2ka1werkewer2klwer2kuwer2tawer2to1wertswe2s1pwest1awes2thwest3rwes4tuwett3swi3ckawien2ewie2stwim2mawin2drwi3s2e1witzlwo2chawoche4woh2lewo2r3iwo4r3uwört2hwul3sewur2fa1wurstwus3te1wu4t1xe3lei3x2em_xen3s2x1i2doxin3s2xi2so2xis4täx1i2tuxtblo4x2t1eix4tentx2t3evy3chisyloni1y2p1iny1s4tyy2s1u22z3a2b2z3a2k2z1all2z3anf2z3anlz1artizar2tr2z1arzza1st42z3at3z1au2fzbübe32zecho2z1eck2z1effzei3lazeile42z1einzei3s4zeist4zei2trze2lenzell2azel3sz2z1empzens2ezent3sze2r3a2zerhöz2erl_2zerlö2z1erq2z1erzze3skuzes2spzes2stze2s3tze3sta2zettszger2azi3alozi1erhziers1zi1es_2z1impzin4er2z1inf2z1inhzin1itzin2sa2z1invzirk6szi3s2zzi1t2hzor4ne2z1oszz2t1auz4tehezt1inszt3reczu3ckezug1un2z1uhr2z1um_zumen22z1umszup2fizu3r2a2z1url2z1urs2z1urtz2wangz2weigz1weis2z1wel2z1wen2z1werz2werg2z1weszzi1s4",7:"_al4tei_amt4s3_and4ri_an3gli_angst3_an4si__an4tag_ausch3_be3erb_be3r2e_berg3a_bo4s3k_bu4ser_da4rin_da4te__da4tes_de4in__dien4e_ebe2r1_en2d3r_en4tei_er4dan_er4dar_er4dei_er4der_es5t4e_fer4no_fi3est_fi4le__fi4len_ge5nar_ge3r2a_ge3r2e_ger4in_hau2t1_her3an_ho4met_ima4ge_ka2b5l_li4ve__lo3ver_lus4tr_men3t4_orts3e_pa4r1e_reb3s2_re3cha_rein4t_reli3e_res6tr_sali3e_sim3p4_sto4re_tage4s_ti4me__ti4mes_to4nin_tri3es_ul4mei_urin4s_ur3o2m_ve5n2e_wei4ta_wor4tu_zin4stab1er2raber4ziaber4zoab3essea4cherfa4cherka4cheröach1o2bach2t1oach1u2fa3d2ar3ade1r2aade3s2pade5str2ad3recaf4t5reage4neba4gentuage4ralage4selage2s3pag3esseags4toca2h1erhah4l1eiahner4eahre4s3ahr6tria3isch_ajekt4o1a2k4adak5t4riala5ch2a2l1angalb3einalb3eisal4berh3a2l1efa4l3einal3endsa2l1erfa2l1erha2l1ert3a2lerza2l1eskali4eneali4nalal3lenda2l1o2balt3eigalt3ricalt4stüalzer4zamen4seamp2fa2am4schlana4lin2ana1s4and4artandel4san2d3rüand4sasand3stean2f5laan2g1eian4gerwan2g3raan2k1anan2k3noan2k3rä3antennan3t4heant3rina3ra3lia2r1anga2r1ansa2r1anza2r3appar2b3unaren4seare3r2aa2r1erhar2f3raari3e4nari3erdari3ergarin3itark3amtar2k1arark3aueark3lagark4trear4merkar3m2ora2r1o2dar2r3adarre4n3ar4schla4schecasch3laa2s3e2ma2s1o2fas4s3eia1s4tasas6t3rea2t1aktater3s2ato4mana2t1ortat4schnatt3angat3t4häat2t3räat4zerkat4zerwat2z1inau2b1alauch3taau4ferkaup4terau2s1ahau4schmau4schoaus3erp3aussagaus4se_aus5triau2t1äuä3isch_äl4schlän3n4e2ä2r1eneär4mentäser4eiäse4renäskopf3ät4schlät4schräu4schmäus2s1cba2k1erban2k1aba2r1ambau3s2k2b1eierbei4ge_2b1eimebe1in2hbe2l1enben3dorben4spaben4sprben5t4rber4ei_be4rerkber4in_ber3issbe2s1erb3esst_be3s4ze4b1illubis2s1cb2i3tusbjek4to2b3leidbo2l1anbor2d1ibor2d3rbor2t3rbra1st42b3rat_2b3riemb4schanb6schefb4s1erfb4s1ersbst1a2bb2s3träbs3treubtast3rbu4schlbu4schmbu4schwbügel3eca3s2a3ch3a2bich3anst3chartache4fer4chelemche4ler4chents4chentwche3rei2ch1e4x3chines2ch1invch3leinch4sper2ch1unf4ckense4ckentw4ckerhö4ckerke2ck1err4ckerze2ck1eseck4stro2ck1um3com4te_comtes4cre4mes2d1alar2d1ammädan4ce_dan5kladan2k1odar2m1i2d1au2f2d1aus3delei4gde3leindel4lebdel4leide2l1obdel4sandel2s5edel2s1p4denergden4sende2re2bde4reckder3ediderer4tderin4f4derklä4derneuder3taudert4rades3eltde2sen1de4stredes4tumdeten4tdge4t1edie4nebdi3ens_die2s3cdi2s5tedi4tengd2o3r4ador2f1a2d3rast2d3rauc3d4reck2d3reic3d4riscdrunge3drü5cked4s1amtds3assid4schind2s1e2bd4seinsd2s1engd2s1entd2s1erfd2s1erkd2s1erzd4s1etad3s2kand2s1pard3stell2d1un3ddu4schndu4schrdu4schwe4aler_e3at5t4ebens3eebet2s3eb4scheeb4stätebs3temebs3t2hech1o2bede3n2eeden4seeden4speder3t2ed2s1esed2s3treein4see2f1e2be2f1i2de2f1insege4strehen6t3ehe3strehl3eineh4lenteh5l2erehr1e2cehr3erleienge44eigeno1ei2g3nei3k4laei4leineil3inseim3allei4nengein4fo_ein4fosein4hab3einkomei2n1o23einsate4inverekt4antekt3erfekt3ergela4bene2l3a2me2l1a2re2l1eine3leinee4leing2e3len_e4lensee2l1ente2l1erge2l1errell3ebeell3eiseller4nelt3eng3elternelt3s2kelt3s2pe2m3anfe2m1ansem2d3a2e2m1erw1e2metiem2p3leena3l2ien3d2acend4ortend3romend3s2pene4bene4n1enten4entr4e3ner_e2n1erd1e2nerge2n1erle2n1erre2n1erse2n1erte2n3erue2n1erwe4n3essenge3raeni3er_e2n1i4me2n1o2benob4lee2n1o2ren4terb3entspr4entwetenz3erte4ratemerd3erwer3echser1e2ckere4dite2r1e2h4e3rei_4e3ren_e4rensee4rentne2r3erfe2r1erher3e4tiere4vid3ergebn4ergehäe3ri3k44e3rin_e2r1ini3erlebnermen4serm3erse2r1o2pers4toder4tersert3ins3erweck6erweise4s3atoe2s3einese4lere3s2peke3s2pore3s4praess3erges2s1paestab4be4starb1e2stase1s2tecest3ories3tropeße3r2eeten3d2eter4höeter4tre4traume6t3recetsch3wet2t3auette4n1et4t1umeu3ereieu3g2ereve5r2iewinde3e2z1ennfa4chebfa2ch1ifäh2r1ufeh4lei2f1eing4f1einh2f1einw2fe2lekfe2l1erfel4sohfe4rangfer3erz4ferneufest3eifet2t3afeuer3effel2d1f2f3emifi1er2ffi2l1anfisch3o2f3leinflu4gerfor4teifor2t3r2f5raucf4schanf4scheff4s1ehrf2s1entf4s1etaf3s2kief2s1pasf3s2porf4stechf3s4telf3sternft1a2bef4t1entft4scheft4s3täft4stri2f1u2nifun2k3rfus2s1pfu2ß1er4gangeb2g3ankugas5tangebe4amge4lanzge4lessgel3stegel3t2agen4auggen2d1rgen3eidgen3erngen4samgen4ta_2g1entfge4renggerin4fgerin4tger4satger4stoges3aufges3eltge2s3erges3s2tgien2e12g3isel3g2laub2g1lauf4g3lein4g3lisc2gni2s13g2num_2g3rede2g3reic2g3rein2g3renng3riese2g3ringg4s3a2kg4schefg3s2eilg3s2pekg3s2porgst3entgst3errg4s3torgs4trat4gungew2g1unglguschi5gus4serhaf3f4lhalan4chal4beihal4t3rhar4mes2h1aufmhau4spahäu2s1chba2r3ahe4b1eihe5ch2ehe2f1eihef3ermheiler4heit4s3he2l3auh3e2lekhel3ershel4meihe4n3a2hen3endhen3erg2h3entwher3a2bhe4reck4hereighe4rerwh1er2foherin4fherin4sh3erlauhe2s5trhie4rinhif3f4rhi2l3a4hin4t1ahir4nerhlags4ohle3runhner3eih3nungeho2l1ei2hot3s2hrei4bah4r3eigh3re2s1h2r1etah3rieslhr2s1achr2s3anhr3schlhr2s1enhr4s1inhr4s1ofh2s1achh4schanhse4lerh2s1erlh2s1ingh2s1parhst3alth2s3tauh3steinh5stellhst3ranh3taktsh4t3alth4t3a2mh4t3assh2t1eimh2t1eish4tentfht3erfoht3erfüh2t1erhh4terklht3erscht3ersth2t1erzh4t1eseh4t1esshte3stah4t3rakht3randh2t3rath4t5rinh2t3rolh2t3rosh4t1rösht3spriht4stabhts4tieht4stürh2t1urshu2b3eihu2b1enhu2l3eihu4lenthu2l1inhut4zeni3alenti3alerfi3alerhi3a2leti3a4liai1ät3s4i2b1aufich4speich2t3rieb4stoieb4strie2f1akie2f1anie3g4rai2e2l1aien4erfienge4fien3s2eie3r2erie4rerfi2er5niier4sehier3staier3steies2s3tie2t3hoie4t1ö4i2f3armift3erkif4t3riift3s2pi2g1angi4gefari3g4neuig3steiig4strei2k1a4ki2k1anoi4kanzei2k1erhi2ker2li2k1etaik4leriik2o3p4ikt3erki2l3a2mi4lentsi2l1erfi2l1ergi2l1erril2f3reilig1a2ili4gabi2l1indil3l2eril4mangil2m3atil2z1arilz3erki2m1armimat5scima4turi2m1erfi2m1erzi2m1infi2m1insindes4ii2n1engin3erbei4nerbiiner4löing4sam3inkarninma4leinn4stains3ertin3skanin3stelin4s3umional3aion4spiir2m1eii4s1amtisch3ari3s2chei4schefi4schini2sch1lisch3leisch3obisch3reisch3rui4schwai4schwoisch3wuise3infi4seinti2s1ermi2s1essis4s1aci1s4tati1s4teui1s4tilit3a4reiten3s2iti4kaniti3k2ei2t1in1i2t3ranits1a2git2s1e4its3er1it2s1peit4stafi2v1enei2v1enti2z1enejek4terjektor4je2t1u2jugend3jung3s42k1a2bo2k3a2drka3len_ka4lenskal3eri2k1annakari3es2k1artikau2f1okauf4spke1in2d2k1eiseke4leim2ke2lek2ke3letkel3s2kk3enten2k1ents4kerfahk4erfamk3ergebk3er4hökerin4tker4kenker4neuker4zeu2k1i2dekie2l3o2ki3l2aki3n4o32k1inse4k1lastkle3ari4k3leit2k1o2fekop4fenkot4tak2k3räum2k3redekreier4k4s1amtk2s1ersk2s1erwk3stat4k2t3a2rk2t1erhk2t1ingkti4terk4torgakt3oriek2u3n2akuri4erku4schl4l3aben4l1a2bl2l1a2drla2g1oblan2d3rlang3s4l1a2po2la2r1anla2r1eila4rene3l2ar3glar3ini2l1ar3t3lasserla2t3ralat4tanlat2t3rlau2b3rlaub4se2l1ausslär2m1al2b1edel2b1insld3a2b1ld3a2ckl2d1a2dl2d3a2nld4arm_lecht4ele2g1asleh3r2elein4dulei4ßerleit3s22le2lekle2m1o24lendet4lenerg2l1ennilen4sem2l3entwlent4wäle2r3asler3engle4rers3lergehl3ergen2l1ergilerin4s2l1er2ö3l2erra2l1esellgeräu33lichem3licherliebe4slie2s3clik4ter2l1indulingst4lin2k1ali4schu2l1i4solkor2b1ll1a2bel2l1a2mlle4n3all3endul4lentsl4lerfol4lergoll3erntll3ertrl2l1indl2l1o2rll1ö4sellus5t6l2m3a2blm3einsl2m1e2pl2m1erz2l1o2bllos3t4r2l1ö4l3l2s1a2dl4s1ambl4schinl4schmül2s1e2bl2s1ersl2s1erwl2s1impls3ohnel4t3amel2t3atol2t1eislt4stablt4stocltu4ranluf2t1aluf2t1eluf2t5rlung4sclus4s3alus2s1cluss3erlus2s1olus2s1plus2s3tlus4stälus4t1alust3relut1o2fmach4trma4ges_ma4laktma4l3atma2l3ut2m1analman4ce_man3ers2m1angr4ma3r2oma3s2pa4m1aspemassen3mas4telma1s4trma2ta2b2m1au2fmäu2s1cmbast3emedien3mein4dame1i4so2m1e2miment4spme2r3apme4rensmerin4dmerin4tmerz4en4m1essames2s1omes2s1pme4t3römierer4mil4cheminde4sming3s4mi4schami4schnmi4schwmis2s1cmi2s5tem2m1ansmme4linm4mentwmme2ra2mme4recmmi1s4tmo4n1ermor2d3amoster4mpf3erpmpf3errms5trenm2t1erfm4t1ergm2t1erlm2t1ersm2t1ertm4t1etam2t1insmt3s2kamun2d1amül4lenmütter3na3chenna2l1a2na4lent4n1a2nana4schw4n1a2synauf4frn4austenbe3r2en3ce2n3n2d1anznde4al_nde4lännde4robn2d3ratn4d3runnd4stabnds3taune2e2i22ne2he_2nehen44n3eing4n3eink3ne3l2o4n1endb4n1endd4n1endf4n1endh4n1endk4n1endp4n1endt4n1endwne4nenenen4ge_nen4gen4n1entl4n3entwne2ra2bne3r4alne2r3am4nerbe_4nerben4n5erfonerfor42n3erhö2n1erlöner4mit4n1ernt3n2ers_2n3ersa4n3essine2t1akne2t1annett4scnfi4le_n2g3a2mn2g1andn2g1einnge4ramnge4zänn2g1i2dn3g2locngs5trinie3l2a3n2ing4ni4schwnitt4san4k3algn2k1insn2k1ortnk2s1aln4n1alln4nentsn2n1unfn2o3ble2n1ob2s2n3o2fenor2d5rno4t3eino2t3inno2t1opn2s1a2dn2s1alln2s1äusn6schefn4schronsen4spn2s1erkn2s1erön2s1erwn2s1erzn4s1etan2s1inin4sperin4stat_nst3eifn3stemmns4tentnst4erön4stracn4strien3t2a3cn4tanzan2t1eisn4t1essn2t1inhnton2s1nt3reifnt3riegntu4re_ntu4res1n2ung4n2z1a2gn4zensen4zentwn4zentznz3erwe2o3b4enoben3d4oben3seobe4riso2ch1ecocher4ko3d2e1iof2f1inoge2l1io2h1eiso2h1erto2h1erzoh4lergoh4lerwo3isch_ol2l3auoll1e2col2l1eiol4lerkoma4nero3m2eiso2m1indo2m1into2n1erdon3n2anont3antont3erwon4t3riop4ferdopi3er_o2r3almor2d3amor2d1irord3s2to4rientor2k3aror4mansor4mentor3n2o1oro3n2aor2t1akor4t1anor2t1auort3eigort3erfor2t3evort3insor4trauort3ricor2t1umo4sentsoss3andost1a2bos4t3amost3angos3tarros4ta4soster3eos4t1obost3ranost3roto2ß1enzo2ß1ereo2ß1erfo3t2e1iote2l1aote4leio2t1erwo2t1i2mot4terkoun4ge_our4ne_ozen4taöchs4tuögen2s1öl2f1eiö2r1e2lö3r2erzö2r1uneö2sch3mpa2r3afpar3akt2par2erpar4kampar4kaupe2l1a2pe3li4npe3n2alper2r1a2ph1erspil4zerpingen4pi2z1in3ple5n4po2p3akpo2p3arpor4tinpor4trepor6tripo2s3tepost3eipost3rap2p3a2bppe4lerp4t1entpt3ereip4t1erwp4t1erz2r1acetra4chebra4chinracht3rr3a2d3r3ra1k4l2r3alm_r4alt2hram4manram4m3uram2p3lran4dep4r3aneiran4spara2r1inra4schl2r3asph2r3attarau3e2nrau4man2raus5srbe3r2erchst4rr2d1elbrden4glrder4err2d1innre3alerrech3ar3reigewrei3l2arei3l2irei3necre1in2v2re2lek2r1entl2r1ents4r3entzr4ergen2r1ernä4r3erns4r3ernt3r2ers_2r1ersare2s2tu2r3evid2r3e2x1rfi4le_rfolg4srf4s1idrf2s3prr2g1a2drge4ralrge4taprgi4selr2g3ralrg5s2turi2d3anri3ers_ri3estiri2f1eirif4terri4generin4dexrin4diz4rinnta3r4ins_r4inspirin4tegrin4t5rri4schori4schwr3i2talr2k3reark4stecrkt3ersrk2t1o2rl2s3tor2m1aldr2n1anzr4n3eisr4n1enern3enser4n1ergrn4erhir4n1ertrol4lanro4nerbron4tanros2s1crre4aler2s1a2dr4s1amtr2s3angr3sch2er4stantrs4temprs4terbrst3ingrst3ranr2t1almrt3a4rer2t3attrtei3lartei1s4rten3s2rt3ereir4terfar4terfor4t3erhr2t1erkrter4rerte3s2kr2t1imar4t3rakr4treisrt4s1ehr2t1urtru3a2r3ruch3strun2d1arund3er2r1u2ni4r3uniorus2s1pru2t1o2rve4n1er2z1erfr2z1ergr2z1erkr2z1erwrz2t3ror3z2wecsa2cho22s1a2drsa4gentsa3i2k1sa2l1ids3ameri6s1amma2s3a2nasan4dri4s3antr4s3a2sy2s3aufb2s3ausb3s2ausesbe3r2es4ch2al4schanc4schangsch3ei_4schemp4schess4schiru4schle_sch6lit4schre_4schrinsch3rom4schrousch3s2k4schunt4schwetsch4wilsdien4e2s1echo2s1e2ckse2e1i4se2h1a2se4h1eise4herk5s4ein_sein4dusei3n2esein4fos4eins_4seinsp4seinstsel3ers2s1endl4s1entf2s3entg2s1entsser3a2dse2r3als3erbe_s3ereig2s1erfo4serfül4serken2s3ernt4s3eröf4sersehse4r1ufse3rund4se4tap4s1e2thsi3ach_siege4ssi2g1a2si2k1absik3erlsin3g4lsing3sasi4schuska4te_4skategska4tes4s3klassni3er_sni3ersso4l3eisol4lerson2s1o2s1orga5s2orgeso2r1o24s1o2ve4spensi3s2pi4e4spier43s4prec3sprosssrat4scss1a2cks4s1alas4s1albs4s3amts4s3angs4s3anzs3sa1s2s2s1egasse3infss3ersessquet4s3ta3li4s3tann3staus_st3a2ve4stechn3steilhstei4naste4mar6s5ter_3sterncs4t3ese3s4tett1s2ti2rst1i4sosto3s2t1s4trah4strans3s4tras4straum4s5träg4sträne4s5tref4streibst3renn2s4trig2s5trisst3rollstro4ma4st3run2s4t3s42stum2sstum4sc3s4tunds2t3uni2s3tuns2st3urtsuch4st3s4zene2ß1estrßi2g1a2ta2b1anta4bend2t1a2drta2g1eitahl3sk3t2aktuta4lensta2l1optan4gar2t1anme4t1anna3t2ans_4t3ansi4t3anspta4rens3t4a3rita2ta2bta2t3erta2t1um4t3ausg4t3auss4t1auswtbauer4tbe3r2e4teilhet3einget3einlate2l3abte2l1acte2l1autele4bete4l1ecte4l1ehte4leinte4lerd4t3elf_te2l1inte4losttel3s2kte2m1ei3temperte4na2dte4na2g4t3endf4t1endl4t3endpten3d4rten3eidten3ens4tenerg4t1eng_ten4glate4n3in4tensem4t3entw4t3entzte3ran_te2re2bter3endte4rengte4rerkterer4z4terfol4terfül3ter3g2t6ergru4terklä2t1erlöter4mert3erneuter4re_ter4sert4erst_t4erstit4erstute4r1ufter4wäh2t3erzbtes3tantest3eitestes4teu3ereteu3eriteu2r3a2t3e2xe2t1e2xi4thrin_4thrinsti4dendti3e4n3tie4recti4gerzti2ma2gtim2m1atin2g1at1in1ittin2k1l3t2ins_4t1inseti4que_ti4schatisch3w3ti3t2etle2r3atmen6t3tmo4desto2d1ertor3inttra3chatra4demtra4far2t3rams3t4ran_tre4ale3t4reib2t3reih4trenditre2t3r2t3rund3t4runkt3s2chat4schart3sch2et4schefts4chemtsch4lit4schrot2s1e2bt4seindt2s1engt2s1entt2s1i2dts4paret3s2pont3s2port4spreits3tätit2s3tepts3tradt4strants3traut2s3trät4streut4stropt2s3trütte4lebtte4lent3u2fertums5trtung4s5tu2r1ertu4schlt2z1e2ct2z1eiet2z1eistz3entsubal3l2ubi3os_u2b3rituch4spruch4toruch2t3ru4ckentu3ck2eruden3s2ue3reigue4rergue4rerku4erinnuer4neru3erunfu3eruntu2f1ä2ßu2f1erhu4ferleufs3temuf2t1ebu4gabteu2g1erfu2g1erlugge4stu2g3rüsu3isch_u3ischsuk2t1inulm3einu2m3a2ku2m1artu2m1ausument4su2m1ergu2m1erlu2m1erwumpf4lium2p3leum2s1peun2d1umun2k1a2unk4titunk2t3run2n3aduns4t1runte4riunvoll3up4t3a2upt3ergu2r3a2mu2r1anau2r1angurgros4ur3s2zeu2s1eseusi3er_us3partu2s1pasu3s2peku5s4pizust3abeu5strasus6trisute4leiuter4eruto4berut4schlut4schmut4schöutz3engut2z1inüch2s1cück3eriü4ckersück4speü3d2ensü2f1ergü2h1engü2h1erkü2h1erzühr3ei_ül2l1eiün2f1eiü2r1entüste3neva2t3a4va4t1inve4l1auvenen4dve3rand2ve3s2evid3s2tvie2h3avie4recvi2l1invollen4vormen4waffel3wah4lerwalt4stwar3stewa4schawä3schewe3cke_we3ckeswei3strwer4gelwe4r3iowest3eiwest1o2wim4m3uwolf4s3wol4lerwor2t3rxi2d1emx2t1e2dxtra3b4x2t3rany2l3a2myl4antezei2t1aze2l1a2ze2l1erze2l1inzel3t2hze4n3aczen4semzen4zerze2re2b2z1ergäz3erhalzerin4tzer4neb2z1ersazert1a2zert4anzer4tin4zerwei3z2erzazessen4zger4s1zin4ser4zinsufzon4terz3t2herzu2g1arzu4gentzwan2d1",8:"_al1e2r1_al5l4en_anden6k_ar4m3ac_ar4t3ei_ber6gab_ber4g3r_de3r4en_einen6g_en4d3er_en5der__er4zen4_ka4t3io_lo4g3in_mode6ra_ost5end_oste6re_par3t4h_richt6e_sucher6_tan4k3la2ch1e2ca4ch3erwacht5ergach6tritack3sta43a2er2o1af4t3erlage4s3tiah4l3erhal4b3erw3a2l1e2bal2l3a4rall5erfaalli5er_al4t3erfam4t3ernand6spas3a4n1erban4g3erfan4g3erlan4g3erzang4s3poani5ers_an2t3a4ran2z1i4nar4t3ramau5ereinau4s3erwauster6mau4ten4gau4t3erhäs4s3erkbach7t4ebal4l3ehbe4r3eiwber6gan_ber3st4abe6steinbe4s3tolbote3n4ebst5einbbu4s3chach3e4ben6chergebcher6zie6ckergeb4d3achse2d1an3d22d1e4ben3d2e1i2mde2l1a2gde4l3augdel5sterde4n3endden4k3li4den4semde4r3eisde3r4erbde3r4erfde4r3ero4d3erhöh4d3ersatdest5altdest5ratdienst5r2d1in1it4d3innerdi4t3erldi4t3ermdi4t3ersd4s3tätid3s4tern2d1u2m1edu4sch3le3a4reneech3t4eiege4n3a2eg4se4r1ehr6erleei4b3uteei4d3errei2m1a2gein6karnein6stalei6schwuei4s3erwek4t3erzeld5erstel4d3erwe4ler4fae4ler4lae4l3ernäe4l3e4taelgi5er_elgi5ersel4l3einemen4t3he6mentspen4d3esse4n3ermoeni5ers_en5sch4eenst5alten4s3täten4t3rolen4z3erfen4z3ergen4z3erke2r3a4sie4r3eis_e4r3entferi3e4n3er6tereier4t3erfess4e3rees4t3enges4t3erhes4t3essestmo6deet4z3enteue6reifeut6schnfacher5ffal6schafal6schmfe4r3anzfrach6trf4s3tätif4s3tresf4s3tütef4t1e4tift4s3tanfzeiten6gas4t3el2g1eise2gel4b3ragel4b3rogel6dersge4l3ers4g3ereigge4ren4sge4r3entge4s3terglei4t5rgrammen6gros6selg3s4tatigs4t3rosgu4t3erhhaft4s3phal6lerfhau3f4lihau5steihau6terkhe4f3inghel4l3auhe2n1e2bhe4r3eishe4r3o4bhfel6lerhich6terho6ckerlhol6zeneh6rerlebh3s4terbh3t4akt_h4teil4zh4t3elith4t3entsht5erkenh6terneuh4t3erreh6terstaht6ersteht6raumeht4s3turhu4l3enghut4z3eria4l3ermie4n3a2gie4n3ergienst5räie4r3erziesen3s4ie4t3erhie4t3ertiker6fahi3l4aufbim4m3enti2n1e2bei4ner4trin2g1a2gin4n3ermin4s3tätir4m3untir4sch3wi4sch3eii5schingi6schwiri4s3etatiso6nendis4s3cheit4z3ergjah4r3eika4n1a4s6kantennkehr4s3o4ken4gagken5steiker6gebnkerin6stk3er4lauk3er4lebk6erlebe2k1er2zikeu6schlkor6dergkre1i2e4k4s3tanzk4t3erfolan2d3a22lat2t1alat4t3inl2d1e2seleben4s3lei6nerble4n3end5lentwet4l3ereigle4r3eim3l4ergew6lerwerbli4g3ers2l1in1itl6lergebl6lergen2l1or3g2l4s3ort_l4s3tätils6ternels6ternsl4te4leml4t1e4skl2t1o2rilu2g1e2blus6serflus6serklus6serslu4t3ergl2z1u4femagi5er_magi5ersmar6schmmar6schrma4t3erdmen6tanz4m3entwi4m3ergänmes6sergmp4f3ergmp4f3erz4m3ungebmu4r1u2fnacht6ra4n3a2mernavi5er_navi5ersn4d3entsnder5stene2n1e2bn4g3erseng4s3e4h2n3i2gelni4k3ingn4k3erfanseh5eren4s3ort_n4s3prien4s3tatens6terbenst5opfenten6te_nt4s3parober3in4ode6rat_ode6rateoh4l3erholl5endsoll5erweol4z3ernonderer5on4t3endopf5erdeopi5ers_or4d3engo2r1e2ckorsch5lior4t3entor4t3ereor4t3offor4t3räuos4s3enzo2ß1en2kö4sch3eipargel6dpä4t1e2hpä4t3entpe4l3inkp2f1in3spos4t3agrach6trärali5er_rali5ersran4d3errau4m3agräu5scher2b1a2der4b3lastrch6terwrderin6sr4d3erntrege4l3äre4h3entreister6re4n3end4r3erken4r3erlaurge4l3errgen4z3w4r3innerrkstati6rk4t3engrk4t3erfrk6terscrk4t3erwr2m1o2rirn3e4benrol3l4enrpe4r3inr6scherlr4s3ort_r6strangr4t3erler4t3ernäru6ckerlrun6derlrun6dersrun6derwr4z3entssa4l3erbsat4z3en6schlein2s1e2bense4l3erl4s1e2pos6sereignse4r3eimse4r3enk2s1i2deoson5ende2s1o2riesrücker6sse3in4tstel4l3äs4t3endss4t3engls4t3entfste6rersstes6se_5st4reif1s4tri2ksun6derhtan6zerhta4r3eretau3f4litau6schrtau6schwtblock5e4t1e2bentein3e4cte2m1o2rte2n1e2bte3n4ei_ten4t3riten6zerh4t3erde_te4r3eif6tergreiter4n3art6erscha6terwerbtes6terkti4v3erlto6ckenttrücker6t4s1amt4t4s3esset3s4terotta6gess2t1u2niotu2r1a2gtu2r1e4tu2ch1e4cu3erin4tuern3s4tu4g3reisun4d3erfund5erhau2r1an5sur3a4renu6schentusch5werusi5ers_u4t3ersaüge6leiswach6stuwach4t4rwahl5entwandels6we5cken_wein4s3aweis4s3pwel6schlwel6schrwel4t3a2wen4k3ri5werdensxpor6terx2t1er2fx2t1il2l2z1e2benzeit5endzei4t3er4z3ergebzer4n3ei4z3erstezer4t3agzer6terezer6trau",9:"_char8me__er8stein_he6r5inn_men8schl_men8schw_os5t6alg_rü6cker6_wort5en6_wor8tendach8traumalli7ers_allkon8tral5s6terbausan8ne_äh4l3e4be6b5rechtebs3e4r3inchner8ei_dampf8erfden6s5taue6ch5erziee4r3en4ge6l5eier_erg3el4s3fal6l5erk6fel6ternfor4m3a4gforni7er_fzei8tendgot6t5erggrab8schegren6z5eihä6s5chenhe6rin6nuherin8terh6l3er4näh6t5erspaieler8gebi2k1e2r2eil4d3en4ti4sch3e4hkamp8ferfke6rin6nulan6d5erwlan6d5erzleis6s5erlepositi86mel6ternmorgen5s65n2en3t2aner8schlenich8tersn4n3er4wano6t5entrnsch7werdn5s6ternen5s6ternsos4s3en4kpapieren8ram6m5ersr8blasserres6s5erw6r5innenmris6t5ersr6st5eingrs4t3er4wr4t3er4lasfal6l5erspani7er_sse6r5atts4s3e4strsu6m5ents4t3a4genttblocken8tes6ter6gür4g3en4gvati8ons_vol6l5endwer6t5ermwin4d3e4czes6s5end",10:"_er8brecht_os8ten8deder6t5en6deren8z7endgram8m7endhrei6b5e6cos6t5er6werein8s7trewel6t5en6dwin8n7ersczge8rin8nu",11:"_er8stritt__spiege8leiach8träume_lei8t7er8scpapie8r7endpiegelei8en",12:"ach8träumen_7sprechende_",13:"_er8stritten_"},charSubstitution:{ſ:"s"}}},t=new window.Hypher(e.exports);"string"==typeof e.exports.id&&(e.exports.id=[e.exports.id]);for(var r=0;r<e.exports.id.length;r+=1)window.Hypher.languages[e.exports.id[r]]=t}(),function(){var e={exports:null,exports:{id:"en-gb",leftmin:2,rightmin:3,patterns:{3:"sw2s2ym1p2chck1cl2cn2st24sss1rzz21moc1qcr2m5q2ct2byb1vcz2z5sd3bs1jbr4m3rs2hd2gbo2t3gd1jb1j1dosc2d1pdr2dt4m1v1dum3w2myd1vea2r2zr1we1bb2e2edn1az1irt2e1fe1j4aya4xr1q2av2tlzd4r2kr1jer1m1frh2r1fr2er1bqu44qft3ptr22ffy3wyv4y3ufl21fo1po2pn2ft3fut1wg1ba2ra4q2gh4ucm2ep5gp1fm5d2ap2aom1cg3p2gyuf2ha2h1bh1ch1d4nda2nhe22oz2oyo4xh1fh5h4hl2ot2hrun1h1wh2y2yp2aki2d2upie22ah2oo2igu4r2ii2omo1j2oiyn1lz42ip2iq2ir1aba4a2ocn3fuu4uv22ix1iz1jay1iy1h2lylx4l3wn5w2ji4jr4ng4jsy1gk1ck1fkk4y5fk1mkn21vok1pvr44vsk1t4vyk5vk1wl2aw5cn2ul3bw5fwh2wi2w1m1wowt4wy2wz4x1an1in1rn1ql3hxe4x1hx1ill24lsn3mlm2n1jx1ox3plr4x5wxx4",4:"d3gr_fi2xy3ty1a2x5usy5acx1urxu4on2ielph2xti4ni2gx4thn2ilx1t2x1s25niql3rix4osxo4n1logn2ivx5om1locl3ro2lo_l3nel1n4_hi2l5rul1mexi4pl1max3io_ex1l1lu_ig3ll5tll3sll3p_in14n2kl1loll3mn3le_ew4n1n4nne4l1lixi4cll3fn3nil1lal5skls4p_eu14no_l4ivx3erx3enl1itx1eml1isx5eg3lirli1qxe2d3lik5lihx1ec1lig4y1bn1oun4ow4li_x3c4yb2il1g2l2fox2as1leyn3p42lev1letx2ag4ni_l1te_es1nhy2yc1l4n1sw3tow5tenho4ns2cwra42lerle5qn2si3womwol4l1try1d4lek42ledwl1in3suw3la4le_l3don1teldi2nth2lce4yda4l1c2l1tu4lu_l4by_od4lbe4lu1a4laz_oi4l4awnt2iwes4l4aul4asn2tjla4p_or1n1tr5wein1tun2tyn1h2w4ednu1awe4b5nuc_os13nudl4all4af_ov4w3drl4aey3eenu3iw1b45nukl4ac5laa4la_4lue3kyllu1in1gu4wabn1go_ph2v5vikur5_en12vv2ks4ty3enk3slv5rov5ri4k1sk3rung1n2vowy1erkol4ko5a4vonk2novo2l2vo_5lupn2gingh4k3lok3lik3lak2l2ng2aki4wvi2tkis4k1inki2l5kihk3holu1vke4g3kee4kedkdo4_sa2k5d2_eg4k1b4kav4kap4vim4ka3ovi4lk4ann3v2nve2vic2ka4lju1v4vi_ju5ljui4_sh2ygi2nfo4_st44jo_3jo2jil43jigl4vi2vel3veive3gjew3jeu42ve_4jesjeo2y3gljal43jac2ja__th44ly_2izz_ti22izo_do2i5yeix3oy3in2i1wn2x4i2vov4ad2ny25nyc5vacn1z24va_nzy4uy4aux2o2oa2o3ag2ivauve2u4vayle2i3um2ittly1c4obau3tu2itrob2i4obo_up12ithob5tuts2lym2ut2o_ve2oc2ait1a2isyo1clo1crut2ioct2is1pis1lo1cy4usto2doo2du4isblyp2n4ew2ab_2abai4saoe3a2abbus1pir2sir4qoe4do5eeir1ioep5o5eqo3er2usco1etir1a3lyr3lywipy43oeuo3evi3poab1ro3ex4ofo2o1gur1uo2ga2abyac2a3lyzi5oxo3gii3oti1orioe4ur2so2gui1od2io22acio1h2ur1o2inuo3hao3heohy44ma_oi4cins24inqoig4ac1r2ino2inn4inl4inkur1ioi4our2f4oisoi4t2iniynd4ok3lok5u2ind2inco1loyn2eo1mai2moom1iur2ca2doim1iil3v4iluon1co2nead1ril3f4onh2ik24iju4adyae5aija4i5in4aed2mahae5gihy4ae5pur1aae4s2i1h4igions2i1geyng42ont4af_4afe5maka4fui3fyu2pri3foon2zn1eru4po4agli2fe2i1foo1iu1ph4ieua2groo4moo2pyn4yi1er4iemie5ia1heah4n4iec2ai24ai_ai3aa1icne2p4idraig2oo2tu1peo1paop1iy1o2u1ouu3os4oplid1ayo3d2icuop1uor1a2ick4ich2a1ja4ju2mam4iceak5u4ibuunu44iboib1i2oreiav4i3aui3atun5ror1iun5o2alei5aii3ah2unniaf4i5ae2ormhy4thyr4hy3ohyn4hy2m2orthy2l1man2nedhuz4un2ihu4gh1th4alko1sch4skhsi42mapu1mu2h1shry4hri4hre41mar4h1pum2ph2ou4osp4osuy2ph4oth4ho_u1mi2h1mh1leh3la2ne_h4irhi2pu1mao4u2oub2h1in2a2mhi4l4oueu1lu2ulsoug4h1ic2hi_u1loul3mnde24ulln2daheu2ul2iou3mam1ihet12ounhep1ow1iows4ow5yyp1nox3ih4eiox5oypo1oy5aoys4u1la4ul_am2pu2izmav4h2ea4he_y2prhdu42m1ban2ao1zo_ch4mb4dy5pu4pa_ha4m1paru2ic5pau2ui2h4ac4ha_u4gon1cug5z2uft43gynu4fou3fl3ufa5gymmb2iue4tgy2b4anhnc1t2g1w5paw3gun2p1bu4edueb4p1c42guep5d2an1og5to2pe_gs4tgs4c2g1san2s2ped3grug4rou2dog4reud4g1gr2n1crgov12gou3gosud4e3goop4ee3goe5god3goc5goa2go_pe2fg2nog1niuc3lg1na2gn2an2y2pes3gluyr4r3pet5aowyr4s4ap_4apa3glo4pexyr5uu4ch2gl24y2s5gip2me_3gioap1i2ph_gi4g3gib4gi_uba41g2igh2tg3hoa2prphe44aps2medg2gegg4ame2g2g1gy3shu1alua5hu2ag2g1f3get2ua2ph2lge4o1pho2tz23gen4phs1gel1typ4gef2ge_g5d4me2m1phug1at4pi_p2iety4a4ty_p2ilt3wopim23gait2wi3gagn3b44ga_5piqar3har1i1tutfu4c4fu_1menp2l23tunna2vfs4p2f3s1pla1fr2tu1ifo3v4tufp4ly2p1myso53foo2arrme4par2stu1afo2n4tu_4po_t2tytt5s3pod2aru4poffo2e3foc4fo_ar5zas1ays1t3flu2asc3flo3flan2asas2et3ti2fin5poypph44f5hf3fr1pr2f1fif1fena5o3feufe4t4pry2ps22asotta4p3sh5fei3fecass2p1sits2its4ht2sc2fe_4t1s2f5d4f5b5faw5farp1st2pt2as1u2fa_1f2aeyl44ey_1expe1wre3whe1waevu4p4trp1tupub1puc4p4uneus44eumeuk5eue4p4uset5zyzy4z1a14p1wet2t2p4y4tovpy3e3pyg3pylpy5t2za__av44ra_r2adras2et2ae1su1namr2bat1orr2berb2ir1c2r2clrct4nak24re_rea4e2sc4es_2erza2to5tok2erurei4erk44erj1tog3toere1qre1vza2irf4lr1g2r2gez4as4ri_2ereto1b2erd2to_2erc4m3hri3ori5reph14mi_2au24au_m1ic4auc4t3me1paeo3mt1lieo2leof2eo3b4enur1lar1leaun2r1loen2sen1ot1laen3kzeb4r1mur2n24ene2end3tiurn5nrnt4ze4d4ro_r2od4roiroo4r2opelv4e1lur4owti4q1tip4roxrpe2r2ph1tior3puaw1i5nahaw5y4mijr3ri_as12eleay3mayn4ays2r5rurry5ek4l2az2m2ilaze4e2ize2iv4eis2ba_t1ineig24eifeid45bahba4ir2seehy21timeh5se5hoe1h2e2gr2efuef4lna2ceep1ee2mee1iee5gee2fr3su2na_rt3ced4g1basede23mytr1turu3ar2udr4ufe1clru2le1ceru2pb1c2ec2a2b1deb2te2bre4bl3myi4be_3beaeb2iebe4eb2b2bedzib5r1v2r2veeau3t1icmy3e5bee3bef2r2yry2tz2ie1bel2sa_2sabeap25saebe3meak1ea4gsa4g3sai4ti_5sak4beobe3q4eabmy4dd3zo3dyndyl25dyksa2l2d2y2d1wsa4mbe3w2b1fbfa44b1hb4ha2bi_1biazi5mdu3udu2ps3apb4ie3ducbif42ths2du_z4isb1ilmi3od4swds3m4bimd5sl1saumi3pz3li3dox4s3bd4osd2or3doosby3bip4bi5qbir44zo_s1cab2iss1cedo4jd4ob4do_5zoa2d1mmtu4d5lu2bl2d1losch2d1la2dl4tha42th_m5si4m1ss2co2t3f1diu2se_se2a4bly2b1m3texbmi44b1nm4ry4bo_3boa2sed5bobdil4bo5h3sei1didse2p1dia4di_d4hu3bon4d1hxys4dg4ami2t2d5f1boo3dexs2es1set3sev3sex3sey2s1fsfi4_an1d3eqde1ps4idsif4bow2si4g2sin5boyzo5p3sipde3gs1it3dec2de_d3di2tep3miute2od1d4d3c4zot23davs2k24sk_d1atske2d3ap4sksd1agb3sc2sl44da_5zumb5sicy4tbso2te2ltei4cys4cy4m2b1tcyl34bu_5bubte2g1cyc2cy_bun2cu5v5cuu1cuss2le1curt4edc4ufc1tyc1tu4te_c1trs1n2s2na2so_t1ca5mix4b3w4zy_4by_3byibys45byt2ca_2tc23soes2olc1te5cafsos45cai5cakc1al3sou4t3bt4axc2ta4m1lcry2sph2s1plc2res2pos4pym3pum3pocoz4cov14mo_sre22moc5cao1caps1sa3cooss3mcon11cars4sns1sos1su1takss3wmod13coe4st_1tai3tah3coc3coa4co_taf4c3nim2pist3cc1atste2mo1mc4kem4ons1th2cim3cau2tab2ta_3cayc1c44stl3cilc3ch3syn4cigci3f4ce_4ci_3chrs1tu1cho2ced4chm1sylch5k4stw4cefce5gs4tysy4d4su_sug3sy1c3sui4ch_m3pa2cem4sy_cew4ce2t1cepsu5zm4op2swo2s3vzzo3",5:"n5tau2cenn3centsves45swee5cencsu5sus4urg1cen2sur3csu5pe3cerasun4a3cerdsum3i5cern5cesss4u2m1s2ulce4mo3cemi4celysy4bi4chab3chae3chaisui5ccelo45cellchec44ched3chee3chemsuf3fch1ersu3etsud4asuct44chessubt2ch5eusu4b13chewch5ex5chi_3chiasu5ansy4ce1styl3ceiv3chio5chip3cedi3cedestu4m5cedace4cicho3a5choc4chois4tud3chor3ceas2st3sstre43chots2tou3stonchow5cean3chur43chut5chyd3chyl3chym1c2i24ceab4ciaccia4mci3ca4cids4cie_ci3ers4toeci5etccle3cifi4ccip4ci3gast3lisyn5esyr5icat4ucim3aci3mes5tizs4thu4cinds4thac4atss4tec4cintci3olci5omci4pocisi4cit3rt2abockar5cka5tt5adeck5ifck4scc2atcs4teb3clasc2le22cle_c5lecc4at_clev3cli1mtad4icli2qclo4q4stakclue4clyp55clystad2rtae5n1c2o2case5car4vco5ba3tagrco3cico5custab23tail4cody2tairco5etco3grcar5mt4ais4col_col3atal2css5poco5lyta3lyco4met4anecomp4cap3uta4pass5liss1ins1sifs1siccon3scon3ts3siacapt4coop4co3orcop4eco3phco5plco3pocop4t2corassev3s5seus1sel1tard3corn4corotar3n5cort3cos_sre4ssreg5co5ta3tarr5cotytas3it3asmco3vacow5a5tassco5zic4anotas4t5craftat4rc4ran5spomcam4is4plysple2ca3maca3lys2pins2pids3phacal4m4speocri3lcron4so3vi4crousov5et5awacrym3cryo34c5s4csim5tawn43calcc3tacc4alaso5thct1an4soseca3gos3orycad4rc4teasor3os2o2ps4onect5esct5etct2ics2onaso3mo1so2mc3timsol3acaco3c4acesody4sod3oc5tio2s3odc3tittcas4tch5u4t1d4smo4dsmi3gc1tomc3tons3mensmas4b3utec2tres3man3bustc2tumte3cr2s1m4buss2s5lucslov5c2ulislo3cs3lits5leycu4mi5cunacun4e5cuni5cuolcu5pacu3pic3upl4tedds3lets5leabur3ebunt4cus5a3slauc3utr4tedobun4a4teeicy4bib4ulit3egoteg1rcy5noteg3us1latbsin41tellbsen4d4abr1d2acdach43tels3dact4b1s2sky3ld4aled4alg4bry_dam5a3damed3amida5mu3dangs5keybrum4d3ard5darms3ketbros4tem3as5kardat4ub4roa4teme4tenet5enm4tenob2ridteo5l4bre_5sivad3dlid3dyite3pe4s1ivde5awde4bisi4teb2ranbram44sismde1cr4dectded3i4sishs1is24bralde4gude3iosi4prtep5i4sio_1sio45sinkde5lo1d4emsin3is2ine4boxy1silibow3ssif5f4demybous4den4d4dened3enh4sidssi4de4sid_3bourde3oddeo3ldeon2si4cu5terd3sicc4s1ibde2pu5botishys44shu4d4eres3hon5shipsh3io1derider3k3dermsh5etsh1er4shab1teri2s1g4der3s5deru4des_de3sa5descbor4nter5k3terrdes4isexo23borides1psewo4de3sq2t2es5seum1de1t4tes_de5thde2tise5sh4ses_bor3d3septsep3atesi4t3esqdfol4tes4tteti4dgel4d4genbon4ebon4cdhot4bol4tbol3itet1rdi2ad3diarbol4e4d1ibd1ic_3sensdi4cedi3chd5iclsen5g1dictsem4osem2i5self4sele4boke5selasei3gd4ifo2boid3seedbod5i5dilldilo4di3luse4dabo5amdi1mi2d1indin4ese2cosec4a3di1odio4csea3wdip5t3diredi3riseas4di4s1d4iscs4eamb3lis3dissbli2q2s1d22s1cud3itos4coi2ditybli3oscof44blikscid5dix4i3bler4the_b3lan5dlefblag43dlewdlin45blac4b5k4bi5ve4d1n24bity4thea4thed4sceidog4abis4od4ol_s4ced5bismscav3sca2pd4ols5dom_1thei3theobi3ousbe4sdo5mos4bei4donybio5mbio3l4dor_dor4mdort41bi2ot4hersavi2dot1asaur52dousd4own4thi_th5lo2thm25binad3ral3dramdran4d4rassat1u3dreldres4sa2tedri4ed4rifs2a1td4romsas3s3sas_4d1s2th4mi3thotds4mi1th2rb2iledt5hobigu3bi5gadu1at5thurduch5sar5sdu4cosap3rbid5idu5en2santdu5indul3cd3uledul4lsan3adun4asamp43b2iddu3pl5durod5usesam5o5thymbi4b1dver2be3trsa3lube3sl3sale2bes_be1s2dy5ar5dy4e3thyrber5sdyll35dymi5berrdys3pberl4thys42beree1actbe5nuea5cue5addbe1neead1i1ti2ati3abben4deal3abel4tsad5osad5is3actean5i2t3ibsac4qe3appear3a5sacks3abl2belebe3labe3gube5grryp5arym4bry4goeas4t5rygmry5erbe3gobe4durvi4tr3veyr3vetr3vene4atube4doeav5ibed2it3ic_eaz5ibe3daebar43becube3caru3tirus4pe2beneb5et4bease5bile4bine4bisbdi4ve4bosrur4ibde4beb1rat2icie4bucru3putic1ut3id_run4trun4ge5camrun2eec3atr4umib3blir4umeech3ie4cibeci4ft4ida2b1b2ru3in3tidirue4lt5idsru4cerub3rr4ube1tif2ec1ror4tusti3fert5sirto5lr1t4oec1ulrt3li4tiffr2tize2dat3tigie4dede5dehrt3ivr2tinrth2ir5teue3deve5dew5barsr5tetr1ted4tigmr3tarrta4grt3abed1itedi2v5tigued3liedor4e4doxed1ror4suse2dulbar4nrs5liee4cers3ivee4doti4kabar4d5barbr4sitba4p1r3sioeem3ib4ansee4par4sileesi4ee3tot4illr5sieefal4rs3ibr3shir3sha5bangr3setb4anee4fugrsel4egel3egi5ae4gibe3glaeg3leeg4mir3secr3seat4ilte5gurban4abam4abal5utim1abal3abag4a5eidobaen43backr4sare4in_e3ince2inee1ingein5ir2sanei4p4eir3oazz4leis3ir2saleith4azyg4r4sagaz5eeaz3ar2r1s2ek3enek5isayth4e4lace5ladr3rymelam4r3ryi3tinnay5sirro4trrog5rrob3ay5larric4ax2idrrhe3rre2lele3orrap4el1ere1lesrra4h4r1r44tinst4intrpre4el5exrp5ise1lierph5ee3limav1isti3ocrp3atav3ige3livavas3r4oute3loae3locroul35rouero3tue2logro1te4rossr4osa4roreel3soror5dav5arelu4melus42t1ise5lyi3elytr4opr4rop_emar4tis4c5root1roomem5bie1me4e4meee4mele3mem3tissro1noro3murom4pe4miee2migro3lyro3laroid3e3mioro3ictis2te4miuro3gnro1fero3doava4ge2moge4moiro3cuem5om4emon5roccro5bre2morro4beav4abr5nute5mozrnuc4au3thr5nogr3noc3titlem3ume5muten3ace4nalrn3izrni5vr1nisrn3inr3nicrn5ibr5niaenct42t1ivr3neyr3netr3nelaus5pene5den3eern5are5nepe2nerr5nadr3nacrn3abt3iveen1et4aus_rmol4e3newen3gien3icr3mocrmil5en5inr5migaur4o5tleben3oieno2mrm4ieenov3aun3dr2micen3sprme2arm4asr2malr5madr3mac3tlefen2tor4litau3marlat33tlem5tlenen3uaen3ufen3uren5ut5enwa5tlewe4oche4odaaul4taul3ir3keyr3ketrk1ere5olutlin4eon4ae3onteop4te1or1r5kaseor3eeor5oeo1s2eo4toauc3oep4alaub5iepa4t4a2tyr2i4vr2ispris4cep5extmet2eph4ie2pige5pla2t3n2ri5orri4oprio4gatu4mrin4sr4inorin4e4rimse1p4u4rimmr4imbri2ma4rim_at1ulr4ileri2esera4gera4lri3erri5elrid4e2ricur4icl2riceri3boer3be2r2ib2a2tuer3cher3cltoas4ri5apri3am4toccat1ri4ered3r2hyrhos4tod4irgu5frg5lier3enr3gerr3geor5geee3reqer3erere4sa4trergal4r4gagat3rarfu4meret42a2tra5tozatos4ere4ver3exreur4er3glre3unre3tur3esq2res_er2ider3ierere4rer4aer3into5dore5phre1pe3reos3reogre3oce3river5iza3too4atoner3mer4enirene2rena4r3empr5em_re1le4ero_re1lam5ordreit3re3isre1inre3if2atolre2fe3reerree3mre1drre1de2r4ed4atogeru4beru5dre3cure3ce3reavr5eautol4ltolu5es5ames5an4atiure3agre3afr4ea_to5lye3seatom4be5seeat1itese4lr4dolrd3lie1shie5shurdi3ord2inr5digr4dier4desr2dares3imes3inr5dame4sitrc5titon4er5clor4clees4od3tonnrcis2rcil4eso3pe1sorr2cesrca4ston3ses4plr4bumr2bosrbit1r2binrbic4top4er4beses2sor3belrbe5ca4timrbar3e2stirb1anr4baga2tif4toreest4rrawn4tor5pra3sor4asktor4qr2aseras3cati2crare2eta3p4rarcran2tet4asra3mur5amnet5ayra3lyra3grra4de3tos_eter2r2acurac4aetex4e2th1r2abo2etia5rabera3bae5timet3inath5re3tir5quireti4u1quet2que_e2ton4quar5quaktos4ttot5uath3ipyr3etou4fet1ri5tourt3ousath3aet1ro4a2that5etetud4pu3tre4tumet4wetra5q3tray4ater4tre_4trede3urgeur5itren4pur3cpur5beut3ipu3pipun2tpun3i3puncev3atpun4aeve4n4trewpum4op4u4mpu5ere4vese1viapuch4e2vict2rieevid3ev5igpu5be2trilt2rit4trixe4viuevoc3p5tomp3tilata3st4rode4wage5wayew1erata3pew5ieew1inp5tiee3witatam4ex5icpt4ictro5ft2rotey4as2a2taey3s2p5tetp1tedez5ieas5uras4unfab4ip2tarfact2p4tan2f3agp4tad5falopt3abtro1v3psyc3troypso3mt4rucfar3itru3i2t4rytrys42asta3feast4silfeb5ras3ph2fed1as5orfe1lifem3i2t1t4p3sacf5enias4loas4la3feropro1l4pro_3ferrfer3v2fes_priv24priopren3aski43prempre1dfet4ot3tabpreb3as5iva3sit4pre_f5feta5siof5fiaf3ficf5fieffil3prar4ff4lepra5dffoc3prac1as3int5tanppi4ct5tast3tedfib5u4fic_ppet33fici4ficsppar34p1p2fiel4asep4p5oxi1fi2l4asedfin2apo1tefind3fin2ef1ing3p4os3portpor3pf3itapo4paas2crt3tlifle2s2ponyflin4t5toip4o2nasan2pom4eas4afa5ryta3ryot5torar3umt3tospo3caar2thar3soar2rhar4pupnos4tu5bufor5bar3oxtu5en5formplu2m2plesaro4ntu4is3plen3plegfrar44ple_fre4sar3odfruc42tum_3tumi4tumsf1tedtun4aft5es2p3k2p2itutu4netur4dtur4npis2sfug4ap4iscfun2gp4is_fur3npir4tfus5oar3guar5ghpi4pegadi4pip4at3wa4ar3en3gale3pi1op4innpin4e3galot3wit5pilo3piletwon4pig3n5tychpict4g5arcg4arepi4crpi3co4picagar5p5garr1ga4sgas5igas3o3piarar4bl3phyltyl5ig4at_2phy_phu5ity5mig4attgat5ugaud5ga5zaar3baara3va3rau5geal3gean2ge4d3gedi5gednar1at3type4gelege4li1tyr13phrage4lu2gelygem3i5gemoara3mph3ou3phorgen3oa3rajt5ziat5zie4gereph1is2ges_5gessphi4nua3ciget3aara2ga5quia5punua5lu1philg3ger4phic3phibg3gligglu3g5glyph3etg4grouan4og5haiuar3auar2dg4hosuar3iap5lia5pirph2angi4atu1b2igi5coap3in4phaeub5loub3ragi4orgi4otaph3igi5pag4i4s5gis_gi2t15gituu1c2aa5peug3laru5chrglec43glerap3alpe4wag4leypet3rpe2tia1pacaol3iglom34glopa5nyian5yap4ery3glyp2g1m4a5nuta3nurg4nabper3vp4eri4pere5percpe5ongn5eegn3eru4comg4niapen5upel5v4pelean3uluco5tgno4suc2trant4ruc3ubuc5ulu5cumgo4etgo4geu5dacg5oidgo3isgo2me5gonnpe2duud1algoph44gor_5gorg4gorsg4oryud5epgos4t1anth3pedsg1ousan2teu4derudev4grab43gram3pedigra2pudi3ogril43pedeu5doigro4gg5rongrop4ud5onan3scgru5ipe4coan5otan2osanor3g4stiu5doran2oeg4u2agu5ab5guan4annyg5uatan5no5gueu4aniuuen4ogu2magu4mi4anigpawk4uer3agur4ngur4u4gurypau3pani3fan3icues4san3euan4eagyn5ouga4cug2niug3uluhem3ui3alp5atohae3opas1t1p4ashag5uha5ichais4par3luid5ouil4apa3pypap3uhan2gpa3pepa4pahan4tpan3iha4pehap3lhar1ahar5bhar4dpan1ep4alspa3lohar3opain2paes4pad4rhat5ouil4to3zygozo5ihav5oana5kuin4san3aeuint4amyl5am3ului5pruis4t1head3hearui3vou4laba3mon4ulacu5lathe3doheek4ul4bohe3isul3caul4ch4uleaow5slow5shu5leehem1aow5in3amidow5hahem4pow1elhe3orulet4h1er_owd3lher2bowd4io5wayow3anow3ago1vish5erho5varouv5ah1erlouss42ouseh1ersoun2dul4evami2cul2fahet3ioul4tul4iaheum3ou5gihe4v4hev5ihex5oa3men3ambuu5lomhi4aram1atou5gaul4poh4iclh5ie_h1ierou3eth1iesama4gh3ifyhig4ohi5kaa5madoud5iou5coou5caa5lynhin4dou5brul1v45ou3aalv5uh2ins4o1trh4ioral1vahip3lum3amhir4ro4touhit4ahiv5aumar4u5masalu3bh3leth1l2ihli4aum2bio1t2oot4iv2h1n2o5tiaal3phho3anho4cou4micho5duho5epo4tedhold1o3taxo3tapot3ama5lowh2o4nos1uru4mos4ostaos4saos1pihon1o1hoodhoo5rh4opea4louo5sono5skeh4orno4sisos1inos5ifhosi4o3siaalos4os5eual1ora3looo2seta3lomoser4hr5erhres4um4paos5eohrim4h5rith3rodose5ga5loeo3secumpt4un5abun4aeht5aght5eeo4scio2schos4ceos4caht5eoht5esun2ce4aliuosar5un3doos3alosa5iory5phun4chunk4hun4thur3ior4unu1nicun4ie4or1uun3inal1in5aligal3ifal1iduni5por4schy1pehy3phuni1vor1ouun3iz2i1a2ia4blo5rooorm1ii2achiac3oa2letork5a5origa1leoun3kni2ag4ia3gnor3ifia3graleg4a3lec4ori_al3chor5gn4ialnor4fria5lyi5ambia3me5orexi3anti5apeia3phi2ardore4va5lavor3eiore3giat4uore3fal3atun3s4un5shun2tiibio4or4duib5lia1laei4bonibor4or4chi5bouib1riun3usoram4ic3acor5ali4calic1an2icariccu4akel4i5ceoa5ismich4io5raiora4g4icini5cioais1iic4lo2i2coico3cair3sair5pi5copop2ta2i1cri4crii4crui4cry1op1top5soopre4air5aop2plic3umopon4i5cut2i1cyuo3deain5oi5dayide4mo4poiain3iu1pato1phyid3ifi5digi5dili3dimo4pheo1phaidir4op1ero5peco4pabidi4vid3liid3olail3oai5guid3owu5peeid5riid3ulaid4aa5hoo2ieg2ie3gauper3i5ellahar22i1enien2da1h2aoo4sei2erio3opt4iernier2oi4erti3escagru5oon3iag3ri2i1eti4et_oo4leag5otook3iiev3au5pidiev3o4ag1nagli4if4fau5pola5giao5nuson5urifi4difi4n4i2fla5gheifoc5ont4rupre4af5tai3gadaev3a3igaraeth4i3geraet4aono3saes3ton5oionk4si3gonig1orig3oto1nioo5nigon3ifig1urae5siae3on4ura_aeco34uraead3umura2gik5anike4bi2l3aila4gon4id4a2duil4axil5dril4dui3lenon4guuras5on1eto3neoon1ee4oned4oneaad1owon5dyon3dril1ina3dos4onauon3aiil5iqona4do2mouil4moi5lonil3ouilth4il2trad3olil5uli5lumo4moi4adoi4ilymima4cim2agomni3im1alim5amom2naomme4om2itomil44adoeomi2co3mia3adjuome4gurc3ai5mogi3monim5ooome4dom4beo3mato2malo2macim5primpu4im1ulim5umin3abo4mabur4duadi4p4olytina4lol1ouin5amin3anin3apo3losol1or4olocur3eain3auin4aw4adilol3mia5difolle2ol2itolis4o5lifoli2eo1lia4inea4inedin5eeo3leuol1erine4so3lepo3leo4ineuinev5ol5chol4an4infu4ingaola4c4ingeur5ee4ingiad4haur1er4ingo4inguoith44adeeada3v4inico3isma5daiur3faac2too3inguril4ur1m4ac3ry4ino_in3oioil5i4inos4acou4oideo2i4d4acosurn5soi5chinse2o3ic_aco3din3si5insk4aco_ac3lio3ho4ack5aohab34acitacif4in5ulin5umin3unin3ura4cicuro4do5gyrur5oturph4iod5our3shio3gr4i1olio3maog4shio3moi5opeio3phi5opoiop4sa5cato4gro4ioreo2grio4got4iorlior4nio3sci3osei3osii4osoog2naur5taiot4aio5tho4gioio5tri4otyur1teo5geyac3alurth2ip3alipap4ogen1o3gasip1ato3gamurti4ur4vaofun4iphi4i4phuip3idi5pilip3ino4fulipir4ip5isab1uloflu42abs_ip3lou3sadi4pogus3agi4pomipon3i4powip2plab3omip4reoet4rip1uli5putus3alabli4i3quaab3laus4apoet3iira4co4et_ir4agus3atoes3t4abio2abiniray4ird3iire3air3ecir5eeirel4a3bieires4oelo4ab1icoe5icir4ima3bet5irizush5aoe5cuir5olir3omusil52abe4ir5taoe4biabay4us4pais5ado5dytis1alis3amis1anis3aris5av_za5ri2s3cod3ul_xy3lod5ruo3drouss4eod3liis2er5odizod5it4iseuod4ilodes4o5degode4co5cyt2isiais5icis3ie4isim_vo1c4isisis4keus1troc5uo2ismais1onocum4iso5pu5teooc1to5ispr2is1soc2te_vi2socre3u3tieiss4o4istao2cleu3tioo5chuoch4e4istho4cea4istloc5ago3cadis1tro4cab4istyi5sulis3urut3leutli4it5abita4c4itaiit3am_vec5it4asit3at_ur4oit3eeo3busob3ul_ura4_up3lo3braith5io5botith3rithy52itiao5bolob3ocit1ieit3ig4itim_un5uob1lio3blaob3iti5tiqut5smit3ivit4liit5lo4ito_it5ol2itonit1ou_un5sobe4lu4tul_un3goat5aoap5ioan4t4itueit1ulit1urit3us2i1u2_un3eiur5euven3oal4iiv1ati4vedu5vinoad5io3acto5ace_ul4luy5er2v3abives4iv3eti4vieiv3ifnyth4va1cavacu1iv1itva4geivoc3vag5rv1al_1vale_tor1vali25valu4izahiz3i2_til4iz5oivam4i_tho4va5mo5vannnwom4jac3ujag5u_te4mja5lonwin44vasev4at_jeop34vatuvect4_ta4m4velev1ellve1nejill55jis_4venu5ve3ojoc5ojoc5ujol4e_sis35verbju1di4ves__ses1ju3ninvi4tjut3a_se1qk4abinvel3kach4k3a4gkais5vi1b4vi4ca5vicuvign3vil3i5vimekar4i1kas_kaur42v1invin2evint4kcom43vi1oviol3kdol5vi5omke5dak5ede_rit2_rin4ken4dkeno4kep5tker5ak4erenu1trker4jker5okes4iket5anu4to5vi3pkfur4_re3w_re5uvire4kilo3vir3uk2in_3kind3nunc5numik3ingkin4ik2inskir3mkir4rv3ism3kis_k1ishkit5cvit2avit1rk5kervi3tu_re5ok5leak3lerk3let_re1mv3ity_re1ivi5zovolv41know3vorc4voreko5miko5pe3vorok5ro4_po2pv5ra4vrot4ks2miv3ure_pi2ev5verwag3owais4w3al_w3alswar4fwass4nu1men3ult5labrwas4tla2can4ulowa1tela4chla2conu4isw4bonla3cula4del5admw5die_out1nug4anu3enlag3r5lah4nud5i_oth54lale_osi4_or2o_or4ilam1ol5amu_ore4lan2d_or3dn5turntub5n3tua3weedweir4n5topwel3ilapi4n3tomn1t2o_op2i_on4ent3izla4tenti3pn3tign1tient4ibwent45laur_ome2_ol4d_of5twest3_oed5l4bit_ob3lw5hidl2catwid4elcen4n1thelch4el3darl3dedl3dehwi5ern4teol5dew_no4cl3dien3teln4tecwim2pld5li_ni4cwin2ecen3int1atnt1aln3swale3cawl1ernsta4_na5kle5drleg1an3s2t3leggn5sonleg3ons3ivwl4iensi2tlel5olelu5n3sion3sien3sid5lemml3emnle2mon4sicns3ibwon2tn3sh2n5seule1nen2seslen3on5seclen5ule3onleo4swoun4wp5inn4scun2sco_mis1_mi4enre3mnre4ix4ach4les_x4adenpri4x3aggnpos4npla4npil4leur5x3amil3eva5levexan5dle4wil5exaxano4lf5id_lyo3lf3on_lub3l4gall4gemlgi4al4gidl4goixas5pxcav3now3llias4lib1rl1ic_5lich_lo2pnove2nou5v2nousli4cul3ida3nounn4oug3lieul4ifel4ifoxcor5_li4p3notenot1a_li3oxec3r1l4illil4ilim2bno3splim4pnos4on4os_lin4dl4inenor4tn4oronop5i5nood4noneno2mo1nomi3linqnol4i3liogli4ollio3mliot4li3ou5liphlipt5x5edlx5edn_le2pl4iskno3la_le4ml2it_n5ol_no4fa3lithnoe4c3litrlit4uxer4gn4odyno4dinob4ln5obilk5atxer3on5nyi_ki4ex3ia_nnov3x4iasl5lasl4lawl5lebl1lecl1legl3leil1lellle5ml1lenl3lepl3leul3lev_is4o_is4c_ir3rx5ige_in3tllic4nlet4_in3ol5lie4n1l2l2linnk5ilnk5ifn3keyl5liolli5v_in2ixim3ank5ar_in3dllo2ql4lovnjam2_im5b_il4i_ig1n_idi2llun4l5lyal3lycl3lygl3lyhl3lyil5lymx4ime_hov3_ho2ll4mer_hi3bl5mipni3vox4it__he4ilneo4x4its5loadniv4ax4ode_hab2ni4ten5iss2locynis4onis4l_gos3n4isk4loi_lo5milom4mn4is_lon4expel43nipuni1ou5nioln4inu5ninnnin4jn4imelop4en3im1l3opm1lo1qnil4ax4tednik5e3nignn3igml4os_lo1soloss4_ga4mnift4nif4flo5tu5louplp1atlp3erxtre4l5phe_fo3cl2phol3piel3pitxur4b1y2ar_eye3_ex3a3yardl5samls5an4nicllsi4mls4isyas4i_eur4l1s2tni3ba3niac_es3tl5tar_es3pl4teiyca5mlth3inhyd5y3choltin4lti3tycom4lt4ory2cosnhab3_er2al4tusyder4_epi1luch4_eos5n2gumlu4cu_ent2lu1enlu5er_en3slu4ityel5olu4mo5lumpn4gry_en5c5lune_emp4n5gic_em3by5ettlusk5luss4_el2in5geen4gae_ei5rlut5r_ei3dygi5a_ec3t_eco3l4vorygo4i_dys3_du4c_do4eyl3osly4calyc4lyl5ouy1me4news3_de4wly4pay3meny5metnet1ry5miaym5inymot4yn4cim4acanet3an1est1nessn1escmact44mad_4mada4madsma4ge5magn2nes_yn3erma5ho3ma4i4mai_maid3_der2ner2vner5oyni4c_de1mneon4m3algneo3ln3end4n1enne2moyoun4n4ely2neleyp5alneis4man3a5negune3goneg3a3nedi_dav5m4ansne2coyper3m3aphy4petne4cl5neckn3earyph4en3dyind2wemar3vn4dunndu4bn2doundor4n5docnd1lin3diem4at_n1dicnd4hin5deznde4snde4ln1dedn3deayph3in3damm4atsn3daly4p1iy4poxyp5riyp4siypt3am5becn4cuny3ragm4besyr3atm2bicnct2oyr3icm4bisy5rigncoc4n1c2lm3blimbru4mbu3lmbur4yr3is_can1ys5agys5atmea5gn4cifme4bame4biy3s2c4med_n4cicn3chun3chon3chan5ceyme4dom5edy_bre2n5cetn3cer4melen1c2anbit4nbet4mel4tnbe4n_bov4ys1icys3in3men_2menaysi4o3nautnaus3me1nenat4rnati45meogys4sonas3s4merenas5p2me2snas5iys4tomes5qyz5er1me2tnam4nmet1e3nameza4bina3lyn5algmet3o_aus5_au3b_at3t_at3rza4tena5ivmi3co5nailm4ictzen4an5agom4idina4ginag4ami5fimig5an2ae_mi2gr_as4qmi5kaz5engm3ilanadi4nach4zer5a3millmi5lomil4t3m2immim5iz3et4_ari4_ar4e_ar5d5zic4_ap4i5my3c_any5z3ing3zlemz3ler_an3smu4sem5uncm2is_m4iscmi4semuff4zo3anmsol43zoo2_and2zo3olzo3onzo5op4mity_am2i_al1k_air3_ag5nmlun42m1m2_ag4amp5trmp3tompov5mpo2tmmig3_af3tmmis3mmob3m5mocmmor3mp3is4m1n2mnif4m4ninmni5omnis4mno5l_af3f_ae5d_ad3o_ad3em3pirmp1inmo4gom5pigm5oirmok4imol3amp5idz3zarm4phlmo3lyz5zasm4phe_ach4mona4z3ziemon1gmo4no_ace45most_ab4imo3spmop4t3morpz5zot",6:"reit4i_ab3olmo5rel3moriam5orizmor5onm3orab3morse_acet3_aer3i_al5immo3sta2m1ous_al3le4monedm4pancm4pantmpath3_am5ar_am3pemper3izo5oti_am3phmo4mis_ana3b_ana3s_an5damog5rimp3ily_an4el_an4enmmut3ammin3u_an4glmmet4e_ant3am3medizing5imman4d_ar5abm5itanm3ists_ar5apmsel5fm3ist_5missimis3hamuck4e4misemmul1t2_ar4cimu5niomun3ismus5comirab4mus5kemu3til_at5ar1m4intmin3olm4initmin5ie_bas4i_be3di5myst4_be3lo_be5sm5min4d_bi4er_bo3lo_ca3de_cam5inac4te_cam3oyr5olona4d4amil4adnad4opyr3i4t_car4imid5onn4agen_ca4timid4inmi4cus_cer4imi3cul3micromi4cinmet3ri4naledyp5syfn4aliameti4cmeth4i4metedmeta3tna5nas_cit4anan4ta_co5itnan4to_co3pa4n4ard_co3ru_co3simes5enmer4iam5erannas5tenat5alna5tatn4ateena3thenath4l5mentsn4ati_nat5icn4ato_na3tomna4tosy4peroy4periy5peremend5oyoung5naut3imen4agna5vel4m5emeyo4gisnbeau4_de3linbene4mel3on_de3nomel5een4cal_yn4golncel4i_de3ra_de3rimega5tncer4en4ces_yn5ast3medityn5ap4nch4ie4medieynand5ynago43mediaym4phame5and_de3vem5blern4cles_dia3s_di4atmb5ist_din4anc4tin_dio5cm5bil5m4beryncu4lo_east5_ed5emncus4tmbat4t_elu5sn3da4c3m4attn4dalema3topnd3ancmat5omma3tognde3ciyes5tey3est__em5innd3enc_em5pyn3derlm4atit_en5tay4drouma3term4atenndic5undid5aydro5snd5ilynd4inend3ise_epi3d_er4i4nd5itynd3ler_er4o2_eros43mas1ty4collnd5ourndrag5ndram4n5dronmassi4y4colima3sonyclam4mar5rima3roone3aloma5ronne2b3umar5ol5maran_erot3_er4rima5nilych5isne4du4manic4man3dr_eth3e3m4an__eval3ne5lianeli4g_far4imal4limal3le_fen4dm3alismal3efmal5ed5male24nered_fin3gxtra3vner4r5mal3apxtra5d2mago4ma4cisne3sia5machy_fu5ganes3trmac3adnet3icne4toglys5erxtern3neut5rnev5erlypt5olymph5n4eys_lyc5osl5vet4xter3ixpoun4nfran3lv5atelu5tocxpo5n2_ge3ron3gerin5gerolut5an3lur3olu3oringio4gn5glemn3glien5gliol3unta_go3nolu2m5uxo4matluc5ralu2c5o_hama5l3t4ivltim4alti4ciltern3lt5antl4tangltan3en4icabni4cen_hem5anict5a_hy3loni4diol3phinni4ersximet4lot5atnif5ti_ico3s_in3e2loros4lo5rof_is4li_iso5ml4ored_ka5ro_kin3e5nimetn4inesl3onizl3onisloni4e3lonia_lab4olo5neyl5onellon4allo5gan3lo3drl3odis_la4me_lan5ixen4opnitch4loc5ulni3thon4itosni5tra_lep5rni3trinit4urloc3al5lob3al2m3odnivoc4niz5enlm3ing_lig3anjur5illoc5ulloc3an5kerol3linel3linal5lin__loc3anland5lli5col4liclllib4e_loph3_mac5ulli4anlli5amxa5met_math5llact4nni3killa4balk3erslk3er_lkal5ono5billiv5id_ment4_mi3gr_mirk4liv3erl5ivat5litia5liternois5il3it5a5lisselint5inom3al3lingu5lingtling3i3nonicw5sterws5ingnora4tnor5dinor4ianor4isnor3ma_mi5to_mo3bil4inasl4ina_wotch4word5ili5ger_mon3a5lidifl4idarlict4o_mu3ninova4l5licionov3el_mu3sili4cienow5erli4ani_myth3_nari4le5trenpoin4npo5lale5tra3les4sle3scon4quefler3otleros4ler3om_nast4le5rigl4eric3w4isens3cotle5recwin4tr_nec3tle5nielen4dolend4e_nom3ol5endalem5onn5sickl5emizlem3isns5ifins3ing_nos3tn3s2is4leledle3gransolu4le4ginn4soren4soryn3spirl3egan_obed5nstil4le5chansur4e_ob3elntab4unt3agew5est__oe5sont5and_om5el_on4cewel4liweliz4nt3ast_opt5ant5athnt3ati_or3eo3leaguld3ish_pal5in4tee_n4teesld4ine_pa5tald3estn4ter_n3terin5tern_pecu3war4tel5deral4cerenther5_ped3elav5atlat5usn4tic_ward5r_pend4n4tics_pep3tn3tid4_pi3la_plic4_plos4_po3lan5tillnt3ing_pop5lvo3tar_pur4rn4tis_nt3ismnt3istvo5raclat5al4laredlar5delar5anntoni4lan4tr_re3cantra3dnt3ralviv5orn3tratviv5alnt3rilv5itien5trymlan3etlan4er3landsvi5telland3i3land_lan3atlam4ievi3tal2v5istla4ic_la4gisla3gerlac5on5visiola5cerla5ceolabel4vi5ridlab5ar_re3ta5numerkin5et_rib5anu3tatn5utivkey4wok5erelkal4iska5limk2a5bunven4enven5o_ros3ajuscu4_sac5rjel5laja5panja2c5oi5vorevin5ta_sal4inym5itv5iniz5vinit3vinciiv3erii4ver_iv5elsoad5ervin4aciv5el_oak5ero3alesiv5ancoal5ino5alitit5uar_sanc5oar5eroar4se_sap5ait4titoat5eeoat5eri4tric_sa3vo4i5titob3ing2obi3o_sci3e4itio_it4insit4in_it5icuiti4coi5tholitha5lobrom4it3erait3entit3enci3tectit4ana3istry_sea3si4s1to5vider_sect4oc5ato4o3ce25vict2ocen5ovice3r_se3groch5ino3chon_sen3tvi4atroci3aboci4al5verseis4taliss4ivis5sanis4saliss5adi3s2phocu4luver4neislun4ocuss4ver3m4ocut5ris3incis5horocyt5ood3al_ish3op4ishioode4gao5dendo3dentish5eeod3icao4d1ieod3igais3harod1is2v5eriei2s3etis5ere4is3enis3ellod5olood5ousise5cr4i1secisci5cver3eiver5eaven4tris5chiis3agevent5oir5teeir5ochve5niair4is_ir2i4do3elecoelli4ir5essoe3o4pire5liven4doi5rasoven4alvel3liir4ae_ir4abiv4ellaip3plii4poliip3linip4itiip1i4tip4ine_su5daiphen3i1ph2ei3pendog5ar5v3eleripar3oi4oursi4our_iot5icio5staogoni45ioriz4ioritiora4mvel3atiod3i4ioact4_sul3tintu5m_tar5oin3til_tect45vateein4tee_tel5avast3av5a4sovar4isin3osiin5osei3nos_oi5ki5oil3eri5noleoin3de4vantlvanta4oin4tr_ter4pin3ionin4iciin5ia_oit4aling3um4ingliok4ine4ingleing5hain5galo4lacko5laliinfol4olan5dol5ast_thol45val4vole2c4ol5eciol5efiine5teole4onin3esi4in5eoo3lestin5egain5drool3icao3lice_ti5niol5ickol3icsol5id_va5lieo3lier_tri3dinde3tvager4oli5goo5linaol3ingoli5osol5ip4indes5inde5pin5darollim34vagedol4lyi3vag3ava5ceo4inataol3oido4lona_tro4vi3nas_in4ars_turb44ol1ubo3lumi_turi4ol3us_oly3phin3airin5aglin4ado4inaceimpot5im5pieo4maneomast4_tu5te_tu3toi3mos_im5mesomeg5aome3liom3enaomen4to3meriim5inoim4inei3m2ieomic5rom4ie_imat5uom4inyomiss4uv5eri_un5cei5m2asim3ageil5ureomoli3o2mo4nom5onyo4mos__un5chilit5uom5pil_un3d2il4iteil5ippo5nas__uni3c_uni3o4iliou_un3k4oncat3on4cho_un3t4u4t1raon3deru4to5sili4feili4eri5lienonec4ri3lici_ve5loon5ellil3iaron3essil3ia_ong3atilesi45u5tiz4o1niaon5iar2oni4conic5aut3istut5ismon3iesigu5iti4g5roi5gretigno5m4onneson5odiign5izono4miu5tiniut3ingo5nota_ver3nig3andu4tereon4ter_vis3ionton5if5teeon4treif5icsut5eniutch4eif3ic_u3taneoof3eriev3erook3eri5eutiiet3ieool5iei3est_i1es2ties3eloop4ieieri4ni3eresus5uri4idomioot3erooz5eridol3ausur4eo5paliopa5raopath5id4istopens4id1is43operaus4treidios4_vi5sooph4ieo5philop5holi3dicuus1to4iderm5op3iesop5ingo3p2itid3eraust3ilid3encopol3ii5cun4op5onyop5oriopoun4o2p5ovicu4luop5plioprac4op3ranict5icopro4lop5ropic4terust5igust4icicon3ous5tanic5olaor5adoich5olus3tacic5ado4oralsib3utaoran3eab5areorb3ini4boseorch3iibios4ib3eraor5eadore5arore5caab5beri5atomia5theoreo5lor3escore3shor3essusk5eru4s1inor5ett4iaritianch5i2a3loial5lii3alitab3erdor3ia_4orianori4cius5ianorien4ab3erria5demori5gaori4no4orio_or5ion4oriosia5crii2ac2rus4canor3n4a5ornisor3nitor3oneabi5onor5oseor5osohys3teorrel3orres3hyol5ior4seyor4stihyl5enort3anort3atort3erab3itaor3thior4thror4titort3izor4toror5traort3reh4warthu3siahu4minhu5merhu4matht4ineht4fooht3ensht3eniab4ituht3en_ab3otah3rym3osec3uhrom4ios5encosens43abouthre5maabu4loab3useho4tonosi4alosi4anos5ideo3sierhort5hho5roghorn5ihor5etab3usio3sophos3opoho2p5ro3specho5niohong3ioss5aros4sithon3eyur3theos4taros5teeos5tenac5ablur5tesos3tilac5ardost3orho5neuhon5emhom5inot3a4gurs3orho4magach5alho5lysurs5ero5ta5vurs5alhol3aroter4muroti4ho3donachro4ur5o4mach5urac5onro5thorurn3ero5tillurn3alh5micao3tivao5tiviur5lieo5toneo4tornhirr5ihio5looturi4oty3lehi5noph5inizhi5nieh2in2ehimos4hi5merhi5ma4h3ifi4url5erhi4cinur5ionur4iliur4ie_ac2t5roult5ih4et3ahes3trh5erwaound5aac5uatur3ettoun3troup5liour3erou5sanh4eron5ousiaher5omur1e2tur3ersova3lead5eni4ovatiad3icao4ver_over3bover3sov4eteadi4opadis4iovis5oo2v5oshere3ohere3aherb3iherb3aher4ashende5ur5diehe5mopa3ditihemis4he3menowi5neh3el3ohel4lihe5liuhe3lioh5elinhe5lat5admithe5delhec3t4adram4heast5ad3ulahdeac5ae4cithavel4ura4cipac4tepa5douhas4tehar4tipa3gan4pagataed5isu5quet4pairmpa5lanpal3inag4ariharge4pan5ac4agerihant3ah5anizh1ani4agi4asham5an4aginopara5sup3ingpa3rocpa3rolpar5onhagi3oag3onihaged5agor4apa3terpati4naha5raaid5erail3erhadi4epaul5egust5apa5vilg4uredg4uraspaw5kigui5ta5guit43guardaim5erai5neagrum4bpec4tugru3en5ped3agrim3a4grameped3isgour4igo5noma3ing_5gnorig4ni2ope5leogn4in_pen4at5p4encu5orospen5drpen4ic3p4ennal5ablg2n3ingn5edlalact4until4g5natial5ais5gnathala3map3eronalc3atald5riun4nagg5nateglu5tiglu5tepes4s3ale5ma4g5lodun5ketpet3eng5lis4gli5ong4letrg4letoal3ibrali4cigin5gigi5ganun3istph5al_gi4alluni3sogh5eniph5esiggrav3ggi4a5al5icsg5gedlun4ine3germ4phi5thgeo3logen5ti4phobla5linigen5italin5ophos3pgen4dugel5ligel4ing4atosg4ato_gat5ivgast3ral5ipegasol5ga5rotp5icalu3n2ergar3eeg5antsgan4trp4iestpi5etip5ifieg5ant_un4dus4ganed4alis_gan5atpi3lotgam4blun4diepin5et3pingegali4a5p4insga5lenga4dosga4ciefu5tilpir5acfu3sil4furedfu4minundi4cpiss5aunde4tpis4trft4inefti4etf4ter_un3dedpla5noun4dalalk5ieun4as_al4lab4pled_frant4frag5aunabu44plism4plistal4lagu4n3a4umu4lofore3tfor4difor5ayfo5ramfon4deallig4fo4liefo1l4ifoeti42p5oidpois5iump5tepo4ly1poly3spoman5flum4iump5lipon4acpon4ceump3er3ponifpon5taf3licaf5iteepo5pleal3ogrpor3ea4poredpori4ffir2m1fin4nial3ous5fininpos1s2fi3nalu4moraumi4fyu2m5iffight5fier4cfid3enfi5delal5penp4pene4ficalumen4tal3tiep4pledp5plerp5pletal5uedal3uesffor3effoni4ff3linf2f3isal5ver2a1ly4fet4inaman5dul3siffet4ala3mas_fest5ipres3aulph3op3reseulph3i5pricipri4es4pri4mam5atuam4binfest3ap5riolpri4osul4litfess3o4privafer5ompro3boul4lispro4chfe5rocpron4aul4latam5elopro3r2pros4iu5litypro3thfer3ee4feredu5litipsal5tfemin5fea3tup5sin_fant3iul5ishpsul3i4fan3aul3ingfa5lonu3linefa2c3ufa3cetpt5arcez5ersp5tenapt5enn5pteryez5er_ex4on_ew5ishamen4dp2t3inpt4inep3tisep5tisievol5eevis5oam3eraev5ishev4ileam5erle4viabpudi4ce4veriam5icapu4laramic5rpu5lisu5lentu1len4a3miliev5eliev3astpun5gieva2p3eval5eev4abieu3tereu5teneudio5am5ilypu3tat5ulcheet3udeet3tere4trima5mis_et4riaul5ardet4ranetra5mamor5aetra5getor3iet3onaamort3am5ose3quera4quere4ques_et5olo5quinauit5er3quito4quitueti4naeti4gie3ticuuisti4ethyl3ra3bolamp3liuis3erampo5luin4taet5enia5nadian3agerag5ouuinc5u3raillra5ist4raliaet3eeret3atiet3ater4andian3aliran4dura5neeui3libra3niara3noiet5aryan3arca5nastan4conrant5orapol5rap5toet3arieta5merar3efand5auug3uraan5delet3al_es4ur5e2s3ulrass5aan5difug5lifra5tapra5tatrat5eurath4erat3ifan5ditra5tocan5eeran3ellra4tosra5tuirat5umrat3urrav5aian3ganrav3itestud4ra3ziees5tooe3stocangov4rb3alian4gures5taue5starest3anesta4brbel5orb3entes4siless5eeessar5rbic5uan5ifor5binee5s2pres5potan5ionrbu5t4es5pitrcant54anityr4celean3omaan4scoans3ilrcha3irch3alan4suran2t2ar3cheor4cherud3iedr4chinrch3isr3chites3onaan3talan5tamrciz4ies3olae3s4mie3skinrcolo4rcrit5an4thies4itses4it_e5sion3anthrrd4an_es5iesr5de4lr3dens4anticrd5essrd5ianan4tiee5sickes5ic_rd3ingesi4anrd1is2rd5lere3sh4aes5encrd5ouse5seg5e3sectescut5esci5eant4ives5chees5canre5altre5ambre3anire5antre5ascreas3oeryth35erwauan4tusreb5ucre3calrec4ceer4vilan5tymre3chaan3um_an5umsap5aroerund5ert5izer4thire3disre4dolape5lireed5iu4cender4terer5tedre3finuccen5re5grare3grereg3rire3groreg3ulaph5emer4repaph5olaphyl3ero5stero5iser3oidern3it4reledre3liarel3icre5ligreli4qrel3liern3isrem5acap5icuub3linern3errem5ulu4bicuren5atr4endiap4ineren4eser4moirenic5ren4itub5blyre5num4eri2ta3planre5olare3olier4iscer3ioure4pereri4onrep5idre3pinre3plere4preeri4nauari4ner3iffre5reare3r2uapo3thre3scrre3selre3semre3serap5ronre5sitre3speapt5at4arabiara5bore5stu3retarre3tenar3agear5agire1t2ore5tonre3trare3trere5trier4ianer3ia_ergi3ver3ettrev3elrevi4ter3etser3et_ar3agoar3allaran4ger3esier5eseere5olr4geneeren4e5erende4remeer5elser5ellr5hel4rhe5oler5el_er3egrer3ealerdi4eerd5arerb5oser3batar5apaer5atuarb5etar4bidty4letri5cliri3colri5corri4craarb3lirid4aler3apyer3apier3aphera4doar4bularch5otwi5liri5gamaren5dri5l4aar5ettar3ev5ar5iff5tur5oequin4rima4gar4illrim3ate4putarimen4e3pur5ept3or5turitr4inetturf5iturb3aep5rimt4uranrins5itu5racep3rehtun5it5rioneepol3iepol3ari5p2ari5piear5iniep3licarm3erris4ise4peteris4paris4pear5mit4ristiri3tonr5it5rep5ertriv4alar3nalar3nisriv3enriv3il5ri5zoar5oidep5arceor4derk5atir5kellrk5enia5rotieol5ata5roucr3kiertud5ier5kin_r5kinsrks4meen4tusent5uptu5denr3l4icr3liner5linsen4tritu4binen5tiarma5cetuari4ent3arr4mancr4manor4marir4maryen4susars5alart5atarth4een4sumens5alrm4icar5m2iden3otyenit5ut4tupermin4erm3ingarth3rar5tizen5iere2n3euen4ettrmu3lie3nessen5esiener5var5un4as5conrn3ateas5cotrn5edlt3tlerr3nessrn5esttti3tuas3ectt5test3encept4tereen3as_rn4inee2n3arrn3isten4annash5ayem4preash5ilem5pesas5ilyempa5rask5erem3orras5ochrob3letstay4e3moniem3oloemod4uemo3birody4n4emnitem4maee4mitaem3ismem5ingem3inar4oledas4silassit5as4tatro5melro3mitas4tiaas3tisemet4eron4ac4ronalas4titron5chron4dorong5ir5onmeem5ero4asto2as3traas4trit5roto4atabiem3anaro3peltro3spem3agor5opteel5tieelp5inel5opsrosi4aro5solel5op_5troopros4tiatar3aro3tatata3t4ro4terelo4dieloc3uelo5caat3eautri3me4roussell5izel4labrow3erelit4ttri3lie4li4seli3onr3pentrp5er_el3ingat3echr3pholrp3ingat5eerrpol3ar2p5ouele3vi3tricuelev3at5ricla5tel_e5lesstres4sele5phel3enor4reo4el5eni4e4ledelea5grricu4tre5prate5lerri4oseld3ertre4moat3entat3eraelast3el5ancel5age4traddeiv3ereit5ertra4co4atesse4ins_to3warehyd5re5g4oneg5nabefut5arsell5rs3er_rs3ersa3thene4fiteath3odr4shier5si2ato3temto5stra5thonrs3ingeem5eree2l1ieed3ere4d5urrstor4to3s4ped3ulo4a3tiator5oitor5ered3imeed5igrrt3ageto5radr4tareed5icsto4posr4tedlr3tel4r5tendrt3enito5piaa2t3in4atinaat5ingede3teton5earth3rir1t4icr4ticlr5tietr5tilar5tilltom5osrt5ilyedes3tr3tinart3ingr3titirti5tue4delee5dansrt5lete5culito4mogec4titrt5ridecti4cec4teratit3urtwis4e4cremtoma4nec3ratec5oroec3oratom3acat4iviec3lipruis5iecip5i4toledec5ath5at5odrun4clruncu42t3oidrun2d4e4caporu5netecal5ea4topsec3adea4toryebus5iebot3oe4belstode5cat3ronat5rouat4tagru3tale4bel_eav5our4vanceavi4ervel4ie3atrirven4erv5er_t4nerer3vestat3uraeatit4e3atifeat5ieeat3ertmo4t5east5iat3urge1as1s3ryngoau5ceraud5ereas5erryth4iaudic4ear4tee5ar2rear4liear3ereap5eream3ersac4teeam4blea3logeal3eread3liead3ersain4teac4tedy4ad_sa5lacdwell3sa3lies4al4t5tletrdvert3sa5minault5id5un4cdum4be5tledrs4an4etlant4san5ifdu5ettau5reodu5elldu5eliau5rordrunk3tiv3isaus5erdri4g3aut3ars5ativti3tradrast4d5railsau5ciaut3erdossi4sa3voudo5simdon4atdom5itt3itisdomin5doman4tit5ildo4lonscar4cdol5ittith4edol3endo4c3u4s4ces5dlestt4istrdi4val1di1v2ditor3av3ageava5latish5idithe4av5alr3tisand4iterd4itas3disiadisen34d5irodi4oladi5nossec5andin5gisecon4dimet4di5mersed4itdi3gamdig3al3di3evdi4ersd5icurse3lecselen55dicul2s4emedic4tesemi5dav5antdic5oldic5amt3iristi5quaav3end5sentmti3pliav3ernti5omosep4side4voisep3tiser4antiol3aser4to4servode3vitde3visdev3ils5estade3tesdes3tid3est_sev3enaviol4aw5er_de3sidde3sectin3uetin4tedes4casfor5esfran5der5os3dero45dernesh4abiaw5ersder4miaw5nieay5sta3dererde5reg4deredde3raiderac4si4allsiast5tin3ets3icatdepen42s5icldeont5si5cul4tinedba5birdens5aside5lsid3enbalm5ideni4eba5lonsi4ersde1n2ade4mosde3morba5nan5tilindemo4nti4letsin5etbardi44demiedel5lisi5nolsi3nusba5romdeli4esi5o5sde3lat5de3isde4fy_bar3onde4cilsist3asist3otigi5odeb5itsit5omdeac3td3dlerd4derebas4tedaugh3dativ4dast5a3d4as2d1an4ts3kierba4th4sk5ily3baticba5tiod4a4gid5ache3ti2encys5toc3utivbat5on4cur4oti3diecur4er1c2ultb4batab4bonecul5abcu5itycub3atctro5tbcord4ti3colct5olo3smithbdeac5tic5asct5ivec4tityc4tituc3t2isbed5elc3tinict5ing4s3oid4te3loct4in_so5lansol4erso3lic3solvebe5dra5ti5bube3lit3some_bend5ac4ticsbe5nigson5atbicen5son5orc4tentbi4ers5soriosor4its5orizc2t5eec3tato5bilesct5antc5ta5gctac5u5c4ruscrost4spast45thoug3b2ill3sperms5pero4thoptcre4to5creti3spher4t5hoocre4p3sp5id_s5pierspil4lcre3atsp3ingspi5nith3oli4creancra4tecras3tbimet55crani5bin4d3spons3spoonspru5dbind3ecous5t3co3trth4is_srep5ucost3aco5rolco3rels5sam24coreds5sengs3sent5th4ioss3er_s5seriss3ers3thinkt5hillbin5etcon4iecon4eyth3eryss4in_s4siness4is_s3s2itss4ivicon4chth3ernco3mo4co5masssol3ut5herds4soreth5erc5colouco3logco3inc4c3oidco3difco3dicsta3bic4lotrs4talebin5i4s3tas_theo3lc3lingbi3re4ste5arste5atbi5rusbisul54s1teds4tedls4tedn4stereth5eas3bituas3terost5est5blastcine5a4cinabs3ti3a3sticks3ticuthal3ms4tilyst3ing5s4tir5cimenth5al_st3lercigar5ci3estch5ousstone3bla5tu5blespblim3as4tose4chotis4tray4chosostrep33strucstru5dbment4tew3arch5oid5chlorstur4echizz4ch3innch4in_ch3ily3chicoche5va3chetech4erltetr5och4eriche3olcha3pa4boledbon4iesu5ingces5trcest5oce3remcer4bites5tusu3pinsupra3sur4ascept3a5testesur3pltest3aboni4ft3ess_bon4spcent4ab3oratbor5eebor5etbor5icter5nobor5iocen5cice4metce5lomter3itt4erinsy4chrcel3aice3darcci3d4ter5ifsy5photer5idcav3ilter3iabot3an3tablica3t2rta3bolta4bout4a3cete3reota3chyta4cidc4atom3casu35t2adjta5dor5terel3cas3scashi4tage5ota5gogca3roucar5oocar5oncar3olcar3nicar3ifter5ecca3reeter3ebta5lept4aliat4alin2tere45tallut2alo43ter3bt4eragtera4c3brachtan5atbran4db4reas5taneltan5iet5aniz4b2rescap3tica5piltent4atark5ican4trte5nog5brief5tennaca3noec2an4eta3stabring5t4ateu3tatist4ato_tat4ouca5nartat3uttau3tobri4osca5lefcal5ar4tenarcab5inb5ut5obut4ivten4ag3butiob5utinbu5tarte5cha5technbus5sibusi4ete5d2abur4rite5monb4ulosb5rist5tegicb5tletbro4mab4stacbso3lubsol3e4teledtel5izbscon4ct4ina",7:"mor4atobstupe5buf5ferb5u5nattch5ettm3orat4call5inmor5talcan5tarcan5tedcan4tictar5ia_brev5ettant5anca3ra5ctand5er_ad4din5ta3mettam5arit4eratocar5ameboun5tital4l3atal5entmonolo4cas5tigta5chom3teres4ta5blemcaulk4iccent5rcces4sacel5ib5mpel5licel5lincen5ded5ternit4sweredswell5icend5encend5ersvest5isvers5acen5tedt5esses_ama5tem5perercen5testest5ertest5intest5orcep5ticmpet5itchan5gi5cherin4choredchor5olmphal5os5toratblem5atston4iecil5lin4mologu4mologss4tern_ster4iaci5nesscla5rifclemat45static4molog_5therapmogast4ssolu4b4theredcon4aticond5erconta5dcor5dedcord5ermpol5itcost5ercraft5ispon5gicra5niuspital5spic5ulspers5a4thorescret5orspens5ac5tariabi4fid_4sor3iecter4iab5ertinberga5mc5ticiabend5erso5metesoma5toctifi4esolv5erc5tin5o_an4on_ct4ivittici5ar3ti3cint4icityc5torisc5toriz4ticulecull5ercull5inbattle5cur5ialmmel5lislang5idal5lersk5iness5kiest4tific_daun5tede5cantdefor5edel5ler_an3ti34dem4issim4plyb4aniti_ant4icde4mons_an4t5osid5eri5timet4dens5er5ti5nadden5titdeposi4zin4c3i_aph5orshil5lider5minsfact5otin5tedtint5erde5scalmis4tindes5ponse5renedevol5u4tionemdiat5omti5plexseo5logsent5eemi5racu_ar4isedic5tat4scuras4scura__ar4isi5scopic3s4cope5t4istedi5vineti5t4ando5linesca5lendom5inodot4tins5atorydress5oaus4tedtiv5allsassem4dropho4duci5ansant5risan5garaun4dresan4ded_ar5sendust5erault5erdvoc5ataul5tedearth5iea4soni4ryngoleassem4eat5enieat4iturv5ers_rus4t5urus5ticrust5eeatric5urust5at_as5sibrup5licminth5oecad5enruncul5ru4moreecent5oa5tivizecon4sc_ateli4_au3g4uec5rean_aur4e5ect5atiec4t5usrtil5le4at4is__av5erar4theneedeter5edi4alsr5terered5icala4t1i4lediges4at5icizediv5idtori4asrswear4ati5citat5icisedu5cerrstrat4eer4ineefact5oming5li_ba5sicef5ereemin4ersath5eteath5eromin4er__be5r4ae5ignitr5salizmind5err5salisejudic44traistmil5iestrarch4tra5ven_blaz5o4m5iliee4lates_bos5omat5enatelch5errrin5getrend5irri4fy_rran5gie4lesteel3et3o_boun4d_bra5chtri5fli_burn5ieli4ers_ca4ginrou5sel_can5tamigh5tiros5tita5talisro5stattro4pharop4ineemarc5aem5atizemat5ole4m3eraron4tonro5nateem4icisnaffil4romant4emig5rarol5iteass5iblassa5giemon5ola4sonedem5orise4moticempara54empli_en3am3o_cen5sot5tereren4cileen4d5alen4dedlttitud45n4a3grend5ritrn5atine5nellee5nereor4mite_r4ming_en3ig3rmet5icirma5tocr4m3atinannot4en4tersen4tifyarp5ersent5rinr5kiesteol5ar_eologi4aro4mas_clem5eriv5eliri5vallris5ternan5teda5rishi3mesti4epolit5tup5lettup5lic_cop5roepres5erink5erme5si4aring5ie_co5terrim5an4equi5noment5or4tut4ivna5turiera4cierig5ant5rifugaar4donear5dinarif5tiear5chetrift5er4erati_4eratimrick4enrich5omrica5tuaran5teer5esteer5estieres5trre5termar4aged_dea5coaract4irest5erre5stalapu5lareri4ciduant5isuant5itres5ist5er5ickapo5strer4imet_de5lecuar4t5iua5terneri5staren4ter5ernaclmend5errem5atoreman4d_del5egerre5laer5sinere5galiert5er_ert5ersrec4t3rr4e1c2rreci5simelt5er_deli5ran4tone_de5nitan4tinges5idenesi5diur4d1an4rcriti4es3ol3urci5nogant5abludi4cinrch4ieru5dinisrch5ateu5ditiorch5ardes3per3mel5lerrcen5eres5piraanis5teesplen5uen4teres4s3anest5ifi_de5resues5trin4cept_rav5elianel5li4r4atom5ra5tolan4donirat4in_r4as5teand5istrass5in5meg2a1et3al5oand5eerrar5ia_an3d4atrant5inuicent55rantelran5teduild5erran4gennch5oloetell5irad4inencid5enra5culorac5ulaet3er3aet5eria3ra3binet5itivui5val5amphi5gam5peri_de5sirqua5tio4e4trala4mium_et5ressetrib5aaminos4am5inizamini4fp5u5tis5ulchrepush4ieev5eratev5eren4ulenciever4erpu5lar_puff5erevictu4evis5in_de5sisfall5inncip5ie_di4al_fend5erpros5trpropyl5proph5eul4l5ibp3roc3apris5inpring5imbival5nco5pat5pressiyllab5iulp5ingpre5matylin5dem4b3ingnct4ivife5veriffec4te_du4al_pprob5am5bererum4bar__echin5fi5anceal5tatipparat5pout5ern4curviumi5liaumin4aru4minedu4m3ingpoult5epor5tieal4orim4poratopon4i4eflo5rical4lish_ed4it_foment4_ed4itialli5anplum4befor4m3a_el3ev3fratch4pla5t4oma5turem4atizafrost5ipis5tilmat4itifuel5ligal5lerpill5ingang5ergariz4aunho5lial5ipotgass5inph5oriz4phonedgest5atg5gererphant5ipha5gedgiv5en_5glass_unk5eripet5allal5endepes5tilpert5isper5tinper4os_al5ance5p4er3nperem5indeleg4gna5turndepre4aint5eruodent4pend5er4gogram_en4dedpearl5indes5crgth5enimas4tinpat4richad4inepas4tinnd5is4ihak4inehal5anthan4crohar5dieha5rismhar4tedaet4or_aerody5pag4atihaught5_er5em5hearch44urantiheav5enurb5ingoxic5olowhith4ur5den_ur5deniowel5lih5erettovid5ennd5ism_her5ialh5erineout5ishoun5ginound5elhet4tedact5oryu5ri5cuheumat5ur5ifieact5ileought5ihi3c4anuri4os_h4i4ersh4manicurl5ingact5atemast4ichnocen5_men5taaci4erso5thermmar4shimantel5ot5estaurpen5tach5isma5chinihol4is_ot4atioot4anico5talito5stome5acanthost5icaosten5tost5ageh4op4te3house3hras5eoy4chosen5ectom4abolicht5eneror5tes_man4icay5chedei5a4g5oori5cidialect4or5este_escal5iatur4aorator5_wine5s_vo5lutich5ingo5quial_etern5us5ticiic4tedloplast4ophy5laid4ines4operag2i4d1itoost5eriff5leronvo5lui4ficaconti5fiman5dar_vic5to_fal4lemament4mal4is__ver4ieila5telonical4i5later_feoff5ili4arl_va5ledil4ificond5ent_ur5eth5ond5arut4toneil5ine_on5ativonast5i_under5ompt5eromot5ivi4matedi4matin_fi5liaimpar5a_fil5tro5lunte4inalit_tular5olon5el5neringinator5_tro4ph_fis4c5inc4tua_trin4aol4lopeoli4f3eol5ies_mal5ari_tran4c_tit4isnerv5inval4iseol5icizinfilt5olat5erin4itud_gam5etxter4m3ink4inein4sch5_tell5evas5el5insect5insec5uinsolv5int5essvat4inaoher4erint5res_tamar5xtens5o_tact4iinvol5ui4omani_gen4et_gen5iave5linei5pheriip5torivel5lerir4alinvel5opiir4alliirassi4nfortu5irl5ingirwo4meo4ducts4lut5arv5en5ue_stat4o_si5gnoverde5v4v4ere4o4duct_odu5cerodis5iaocus5siis5onerist5encxotrop4_ser4ie5vialitist5entochro4n_gnost4_sec5tovi5cariocess4iis4t3iclum4brio5calli4is4tom4itioneit5ress3vili4av5ilisev5ilizevil5linoast5eritu4als_han4de_hast5ii4vers__sa5linlsi4fiai5vilit5ivist_5ivistsnvoc5at_ho5rol_rol4lakinema4ni4cul4nultim5_re5strloth4ie5la5collos5sienight5ilor4ife_re5spolor5iatntup5li5lo5pen_re5sen_res5ci_re5linnt5ressn4trant_re5garloom5erxhort4a_ran5gilong5invol4ubi_ra5cem_put4ten5tition4tiparlo4cus__pos5si_lash4e_len5tint5ing_nit5res_le5vanxecut5o_plica4n4tify__plast45latini_phon4illow5er_li4onslligat4_peri5nntic4u4_pen5dewall5ern5ticizwan5gliwank5erwar5dedward5ern5ticisnth5ine_lo4giawar5thinmater4_pec3t4_pa4tiowav4ine_lous5i_para5t_par5af_lov5ernmor5ti_orner4nt5ativ_or5che_ma5lin_mar5ti_or4at4le5ation5tasiswel4izint4ariun4t3antntan5eon4t3ancleav5erl3eb5rannel5li_nucle5_no5ticlem5enclen5darwill5in_ni5tronsec4tewing5er4lentio5l4eriannerv5a_nas5tinres5tr5le5tu5lev5itano5blemnovel5el3ic3onwol5ver_mor5tilift5erlight5ilimet4e_mo5lec5lin3ealin4er_lin4erslin4gern5ocula_min5uenobser4_met4er_me5rin_me5ridmas4ted",8:"_musi5cobserv5anwith5erilect5icaweight5ica5laman_mal5ad5l5di5nestast5i4cntend5enntern5alnter5nat_perse5c_pe5titi_phe5nomxe5cutio5latiliz_librar5nt5ilati_les5son_po5lite_ac5tiva5latilisnis5tersnis5ter_tamorph5_pro5batvo5litiolan5tine_ref5eremophil5ila5melli_re5statca3r4i3c5lamandrcen5ter_5visecti5numentanvers5aniver5saliv5eling_salt5ercen5ters_ha5bilio4c5ativlunch5eois5terer_sev5era_glor5io_stra5tocham5perstor5ianstil5ler_ge5neti_sulph5a_tac5ticnform5eroin4t5erneuma5to_te5ra5tma5chinecine5mat_tri5bal_fran5ch_tri5sti_fi5n4it_troph5o_fin5essimparad5stant5iv_vent5il4o5nomicssor5ialight5ersight5er__evol5utm5ament_ont5ane_icotyle5orest5atiab5oliziab5olismod5ifiehrill5inothalam5oth5erinnduct5ivrth5ing_otherm5a5ot5inizov5elinghav5ersipass5ivessent5ermater5n4ain5dersuo5tatiopens5atipercent5slav5eriplant5er5sing5erfortu5naplumb5erpo5lemicpound5erffranch5ppress5oa5lumnia_domest5pref5ereprel5atea5marinepre5scina5m4aticpring5ertil4l5agmmand5er5sid5u4a_de5spoievol5utee5tometeetend5erting5ingmed5icatran5dishm5ed5ieset5allis_de5servsh5inessmlo5cutiuest5ratncent5rincarn5atdes5ignareact5ivr5ebratereced5ennbarric5sen5sorier5nalisuar5tersre4t4er3_custom5naugh5tirill5er_sen5sati5scripti_cotyle5e4p5rob5a5ri5netaun5chierin4t5errip5lica_art5icl5at5ressepend5entu4al5lir5ma5tolttitu5di_cent5ria5torianena5ture5na5geri_cas5ualromolec5elom5ateatitud5i_ca5pituround5ernac5tiva_at5omizrpass5intomat5oltrifu5gae4l3ica4rpret5erel5ativetrav5esttra5versat5ernisat5ernizefor5estath5erinef5initeto5talizto5talis_barri5c_authen5mass5ing",9:"_bap5tismna5cious_econstit5na5ciousl_at5omisena5culari_cen5tena_clima5toepe5titionar5tisti_cri5ticirill5ingserpent5inrcen5tenaest5igati_de5scrib_de5signe_determ5ifals5ifiefan5tasizplas5ticiundeter5msmu5tatiopa5triciaosclero5s_fec5unda_ulti5matindeterm5ipart5ite_string5i5lutionizltramont5_re5storeter5iorit_invest5imonolog5introl5ler_lam5enta_po5sitio_para5dis_ora5tori_me5lodio"}}},t=new window.Hypher(e.exports);"string"==typeof e.exports.id&&(e.exports.id=[e.exports.id]);for(var r=0;r<e.exports.id.length;r+=1)window.Hypher.languages[e.exports.id[r]]=t}(); |