253 lines
1.3 MiB
253 lines
1.3 MiB
!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 r=[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){for(var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).root,i=void 0===t?document:t,n=[],r=(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}),n.shift()),o=null,a=0,s=r.length;a<s;a++)if("break"===function(){var t=r[a];if(n.some(function(e){return!e.some(function(e){return e===t})}))return"break";o=t}())break;return o},t.getCommonProperties=function(e){var l={classes:[],attributes:{},tag:null};return e.forEach(function(e){var r,i,n,t,o=l.classes,a=l.attributes,s=l.tag;void 0!==o&&((r=e.getAttribute("class"))?(r=r.trim().split(" "),o.length?(o=o.filter(function(t){return r.some(function(e){return e===t})})).length?l.classes=o:delete l.classes:l.classes=r):delete l.classes),void 0!==a&&(i=e.attributes,n=Object.keys(i).reduce(function(e,t){var t=i[t],r=t.name;return t&&"class"!==r&&(e[r]=t.value),e},{}),o=Object.keys(n),t=Object.keys(a),o.length?t.length?(a=t.reduce(function(e,t){var r=a[t];return r===n[t]&&(e[t]=r),e},{}),Object.keys(a).length?l.attributes=a:delete l.attributes):l.attributes=n:delete l.attributes),void 0!==s&&(o=e.tagName.toLowerCase(),s?o!==s&&delete l.tag:l.tag=o)}),l}},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,u.default)(t[0],r);var i=e.replace(/> /g,">").split(/\s+(?=(?:(?:[^"]*"){2})*[^"]*$)/);if(i.length<2)return c("",e,"",t);var n=[i.pop()];for(;1<i.length;){var o=i.pop(),a=i.join(" "),s=n.join(" "),l=a+" "+s;document.querySelectorAll(l).length!==t.length&&n.unshift(c(a,o,s,t))}n.unshift(i[0]),(i=n)[0]=c("",i[0],i.slice(1).join(" "),t),i[i.length-1]=c(i.slice(0,-1).join(" "),i[i.length-1],"",t);return i.join(" ").replace(/>/g,"> ").trim()};var i=r(3),u=(i=i)&&i.__esModule?i:{default:i},h=r(0);function c(r,i,n,o){if(r.length&&(r+=" "),n.length&&(n=" "+n),/\[*\]/.test(i)){var e=i.replace(/=.*$/,"]"),a=""+r+e+n;if(f(document.querySelectorAll(a),o))i=e;else for(var s=document.querySelectorAll(""+r+e),l=0,t=s.length;l<t;l++)if("break"===function(){var e,t=s[l];if(o.some(function(e){return t.contains(e)}))return e=t.tagName.toLowerCase(),a=""+r+e+n,f(document.querySelectorAll(a),o)&&(i=e),"break"}())break}if(/>/.test(i)&&(e=i.replace(/>/,""),a=""+r+e+n,f(document.querySelectorAll(a),o)&&(i=e)),/:nth-child/.test(i)&&(e=i.replace(/nth-child/g,"nth-of-type"),a=""+r+e+n,f(document.querySelectorAll(a),o)&&(i=e)),/\.\S+\.\S+/.test(i)){for(var u=i.trim().split(".").slice(1).map(function(e){return"."+e}).sort(function(e,t){return e.length-t.length});u.length;){var h=i.replace(u.shift(),"").trim();if(!(a=(""+r+h+n).trim()).length||">"===a.charAt(0)||">"===a.charAt(a.length-1))break;f(document.querySelectorAll(a),o)&&(i=h)}if((u=i&&i.match(/\./g))&&2<u.length)for(var c=document.querySelectorAll(""+r+i),l=0,t=c.length;l<t;l++)if("break"===function(){var e,t=c[l];if(o.some(function(e){return t.contains(e)}))return e=t.tagName.toLowerCase(),a=""+r+e+n,f(document.querySelectorAll(a),o)&&(i=e),"break"}())break}return i}function f(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},m=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var r=t,i=[],n=!0,t=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!r||i.length!==r);n=!0);}catch(e){t=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(t)throw o}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function _(e,r){e.forEach(function(e){var t=!0;r(e,function(){return t=!1}),e.childTags&&t&&_(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 _(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 _([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=(e=e.replace(/(>)(\S)/g,"$1 $2").trim()).split(" ").reverse().map(function(e,t){var r,i,n,o=0===t,t=e.split(":"),e=m(t,2),a=e[0],t=e[1],s=null,l=null;switch(!0){case/>/.test(a):l=function(t){return function(e){return e(t.parent)&&t.parent}};break;case/^\./.test(a):var u=a.substr(1).split(".");s=function(e){var t=e.attribs.class;return t&&u.every(function(e){return-1<t.indexOf(e)})},l=function(e,t){return o?e.getElementsByClassName(u.join(" ")):"function"==typeof e?e(s):g(e,t,s)};break;case/^\[/.test(a):var h=a.replace(/\[|\]|"/g,"").split("="),h=m(h,2),c=h[0],f=h[1];s=function(e){return-1<Object.keys(e.attribs).indexOf(c)&&(!f||e.attribs[c]===f)},l=function(e,t){if(o){i=[],_([e],function(e){s(e)&&i.push(e)});var r={v:i};if("object"===(void 0===r?"undefined":d(r)))return r.v}var i;return"function"==typeof e?e(s):g(e,t,s)};break;case/^#/.test(a):var p=a.substr(1);s=function(e){return e.attribs.id===p},l=function(e,t){if(o){i=[],_([e],function(e,t){s(e)&&(i.push(e),t())});var r={v:i};if("object"===(void 0===r?"undefined":d(r)))return r.v}var i;return"function"==typeof e?e(s):g(e,t,s)};break;case/\*/.test(a):s=function(e){return!0},l=function(e,t){if(o){i=[],_([e],function(e){return i.push(e)});var r={v:i};if("object"===(void 0===r?"undefined":d(r)))return r.v}var i;return"function"==typeof e?e(s):g(e,t,s)};break;default:s=function(e){return e.name===a},l=function(e,t){if(o){i=[],_([e],function(e){s(e)&&i.push(e)});var r={v:i};if("object"===(void 0===r?"undefined":d(r)))return r.v}var i;return"function"==typeof e?e(s):g(e,t,s)}}return t?(e=t.match(/-(child|type)\((\d+)\)$/),r=e[1],i=parseInt(e[2],10)-1,n=function(t){if(t){var e=t.parent.childTags;if((e="type"===r?e.filter(s):e).findIndex(function(e){return e===t})===i)return!0}return!1},function(e){e=l(e);return o?e.reduce(function(e,t){return n(t)&&e.push(t),e},[]):n(e)&&e}):l}),e=i.shift(),n=i.length;return e(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 _([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=h,t.getMultiSelector=c,t.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(!e.length||e.name?h:c)(e,t)};var o=u(r(3)),n=u(r(5)),a=u(r(2)),s=r(0),l=r(1);function u(e){return e&&e.__esModule?e:{default:e}}function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(1!==(e=3===e.nodeType?e.parentNode: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,a.default)(r,e,t)}function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if((e=Array.isArray(e)?e:(0,s.convertNodeList)(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=h((0,l.getCommonAncestor)(e,t),t),i=function(e){var e=(0,l.getCommonProperties)(e),t=e.classes,r=e.attributes,e=e.tag,i=[];e&&i.push(e);t&&(e=t.map(function(e){return"."+e}).join(""),i.push(e));r&&(t=Object.keys(r).reduce(function(e,t){return e.push("["+t+'="'+r[t]+'"]'),e},[]).join(""),i.push(t));return[i.join("")]}(e)[0],r=(0,a.default)(r+" "+i,e,t),n=(0,s.convertNodeList)(document.querySelectorAll(r));return e.every(function(t){return n.some(function(e){return e===t})})?r: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,r=t.skip,n=void 0===r?null:r,r=t.priority,o=void 0===r?["id","class","href","src"]:r,r=t.ignore,a=void 0===r?{}:r,s=[],l=e,u=s.length,h=!1,c=n&&(Array.isArray(n)?n:[n]).map(function(t){return"function"!=typeof t?function(e){return e===t}:t});Object.keys(a).forEach(function(e){"class"===e&&(h=!0);var r=a[e];"function"!=typeof r&&("boolean"==typeof(r="string"==typeof(r="number"==typeof r?r.toString():r)?new RegExp((0,f.escapeValue)(r).replace(/\\/g,"\\\\")):r)&&(r=r?/(?:)/:/.^/),a[e]=function(e,t){return r.test(t)})}),h&&function(){var i=a.attribute;a.attribute=function(e,t,r){return a.class(t)||i&&i(e,t,r)}}();for(;l!==i;){if(!0!==function(t){return n&&c.some(function(e){return e(t)})}(l)){if(p(o,l,a,s,i))break;if(d(l,a,s,i))break;p(o,l,a,s),s.length===u&&d(l,a,s),s.length===u&&!function(e,t,r,i){for(var n=t.parentNode,o=n.childTags||n.children,a=0,s=o.length;a<s;a++){var l,u,h=o[a];if(h===t)return(l=m(e,h,r))?(u="> "+l+":nth-child("+(a+1)+")",i.unshift(u)):console.warn("\n Element couldn't be matched through strict ignore pattern!\n ",h,r,l)}}(o,l,a,s)}l=l.parentNode,u=s.length}l===i&&(t=m(o,l,a),s.unshift(t));return s.join(" ")};var f=r(0),c={attribute:function(e){return-1<["style","data-reactid","data-react-checksum"].indexOf(e)}};function p(e,t,r,i,n){n=4<arguments.length&&void 0!==n?n:t.parentNode,e=o(e,t,r);if(e&&1===n.querySelectorAll(e).length)return i.unshift(e),1}function o(r,e,t){for(var i=e.attributes,n=Object.keys(i).sort(function(e,t){e=r.indexOf(i[e].name),t=r.indexOf(i[t].name);return-1===t?-1===e?0:-1:e-t}),o=0,a=n.length;o<a;o++){var s=n[o],s=i[s],l=s.name,s=(0,f.escapeValue)(s.value),u=t[l]||t.attribute,h=c[l]||c.attribute;if(!_(u,l,s,h))return u="["+l+'="'+s+'"]',!1===/\b\d/.test(s)&&("id"===l&&(u="#"+s),"class"===l&&(u="."+s.trim().replace(/\s+/g,"."))),u}return null}function d(e,t,r,i){i=3<arguments.length&&void 0!==i?i:e.parentNode,e=n(e,t);if(e&&1===i.getElementsByTagName(e).length)return r.unshift(e),1}function n(e,t){e=e.tagName.toLowerCase();return _(t.tag,null,e)?null:e}function m(e,t,r){return o(e,t,r)||n(t,r)}function _(e,t,r,i){return!r||(e=e||i)&&e(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),n=(Object.defineProperty(t,"getSingleSelector",{enumerable:!0,get:function(){return i.getSingleSelector}}),Object.defineProperty(t,"getMultiSelector",{enumerable:!0,get:function(){return i.getMultiSelector}}),a(i)),o=a(r(2)),r=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 a(e){return e&&e.__esModule?e:{default:e}}t.select=n.default,t.optimize=o.default,t.common=r,t.default=n.default}],n={},i.m=r,i.c=n,i.i=function(e){return e},i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=6);function i(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var r,n}),!function(n,F,h){"use strict";var N=["","webkit","Moz","MS","ms","o"],z=F.createElement("div"),B="function",o=Math.round,c=Math.abs,j=Date.now;function U(e,t,r){return setTimeout(Y(e,r),t)}function r(e,t,r){return Array.isArray(e)&&(a(e,r[t],r),1)}function a(e,t,r){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(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function G(r,e,t){var i="DEPRECATED METHOD: "+e+"\n"+t+" AT \n";return function(){var e=new Error("get-stack-trace"),e=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",t=n.console&&(n.console.warn||n.console.log);return t&&t.call(n.console,i,e),r.apply(this,arguments)}}var s="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,X=G(function(e,t,r){for(var i=Object.keys(t),n=0;n<i.length;)r&&e[i[n]]!==h||(e[i[n]]=t[i[n]]),n++;return e},"extend","Use `assign`."),H=G(function(e,t){return X(e,t,!0)},"merge","Use `assign`.");function e(e,t,r){var t=t.prototype,i=e.prototype=Object.create(t);i.constructor=e,i._super=t,r&&s(i,r)}function Y(e,t){return function(){return e.apply(t,arguments)}}function W(e,t){return typeof e==B?e.apply(t&&t[0]||h,t):e}function q(e,t){return e===h?t:e}function t(t,e,r){a(u(e),function(e){t.addEventListener(e,r,!1)})}function i(t,e,r){a(u(e),function(e){t.removeEventListener(e,r,!1)})}function V(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function l(e,t){return-1<e.indexOf(t)}function u(e){return e.trim().split(/\s+/g)}function f(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 p(e){return Array.prototype.slice.call(e,0)}function K(e,r,t){for(var i=[],n=[],o=0;o<e.length;){var a=r?e[o][r]:e[o];f(n,a)<0&&i.push(e[o]),n[o]=a,o++}return i=t?r?i.sort(function(e,t){return e[r]>t[r]}):i.sort():i}function d(e,t){for(var r,i=t[0].toUpperCase()+t.slice(1),n=0;n<N.length;){if((r=(r=N[n])?r+i:t)in e)return r;n++}return h}var J=1;function Z(e){e=e.ownerDocument||e;return e.defaultView||e.parentWindow||n}var Q="ontouchstart"in n,$=d(n,"PointerEvent")!==h,ee=Q&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),m="touch",te="mouse",re=25,_=1,g=4,v=8,y=1,b=2,x=4,T=8,w=16,E=b|x,S=T|w,ie=E|S,ne=["x","y"],A=["clientX","clientY"];function k(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){W(t.options.enable,[t])&&r.handler(e)},this.init()}function oe(e,t,r){var i=r.pointers.length,n=r.changedPointers.length,o=t&_&&i-n==0,i=t&(g|v)&&i-n==0,n=(r.isFirst=!!o,r.isFinal=!!i,o&&(e.session={}),r.eventType=t,e),i=r,o=n.session,t=i.pointers,a=t.length,a=(o.firstInput||(o.firstInput=ae(i)),1<a&&!o.firstMultiple?o.firstMultiple=ae(i):1===a&&(o.firstMultiple=!1),o.firstInput),s=o.firstMultiple,l=(s||a).center,u=i.center=se(t),a=(i.timeStamp=j(),i.deltaTime=i.timeStamp-a.timeStamp,i.angle=he(l,u),i.distance=O(l,u),function(e,t){var r=t.center,i=e.offsetDelta||{},n=e.prevDelta||{},o=e.prevInput||{};t.eventType!==_&&o.eventType!==g||(n=e.prevDelta={x:o.deltaX||0,y:o.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)}(o,i),i.offsetDirection=ue(i.deltaX,i.deltaY),le(i.deltaTime,i.deltaX,i.deltaY)),l=(i.overallVelocityX=a.x,i.overallVelocityY=a.y,i.overallVelocity=c(a.x)>c(a.y)?a.x:a.y,i.scale=s?function(e,t){return O(t[0],t[1],A)/O(e[0],e[1],A)}(s.pointers,t):1,i.rotation=s?function(e,t){return he(t[1],t[0],A)+he(e[1],e[0],A)}(s.pointers,t):0,i.maxPointers=!o.prevInput||i.pointers.length>o.prevInput.maxPointers?i.pointers.length:o.prevInput.maxPointers,function(e,t){var r,i,n,o=e.lastInterval||t,a=t.timeStamp-o.timeStamp;{var s,l;t.eventType!=v&&(re<a||o.velocity===h)?(s=t.deltaX-o.deltaX,l=t.deltaY-o.deltaY,a=le(a,s,l),i=a.x,n=a.y,r=c(a.x)>c(a.y)?a.x:a.y,s=ue(s,l),e.lastInterval=t):(r=o.velocity,i=o.velocityX,n=o.velocityY,s=o.direction)}t.velocity=r,t.velocityX=i,t.velocityY=n,t.direction=s}(o,i),n.element);V(i.srcEvent.target,l)&&(l=i.srcEvent.target),i.target=l,e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function ae(e){for(var t=[],r=0;r<e.pointers.length;)t[r]={clientX:o(e.pointers[r].clientX),clientY:o(e.pointers[r].clientY)},r++;return{timeStamp:j(),pointers:t,center:se(t),deltaX:e.deltaX,deltaY:e.deltaY}}function se(e){var t=e.length;if(1===t)return{x:o(e[0].clientX),y:o(e[0].clientY)};for(var r=0,i=0,n=0;n<t;)r+=e[n].clientX,i+=e[n].clientY,n++;return{x:o(r/t),y:o(i/t)}}function le(e,t,r){return{x:t/e||0,y:r/e||0}}function ue(e,t){return e===t?y:c(e)>=c(t)?e<0?b:x:t<0?T:w}function O(e,t,r){var i=t[(r=r||ne)[0]]-e[r[0]],t=t[r[1]]-e[r[1]];return Math.sqrt(i*i+t*t)}function he(e,t,r){var i=t[(r=r||ne)[0]]-e[r[0]],t=t[r[1]]-e[r[1]];return 180*Math.atan2(t,i)/Math.PI}k.prototype={handler:function(){},init:function(){this.evEl&&t(this.element,this.evEl,this.domHandler),this.evTarget&&t(this.target,this.evTarget,this.domHandler),this.evWin&&t(Z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&i(this.element,this.evEl,this.domHandler),this.evTarget&&i(this.target,this.evTarget,this.domHandler),this.evWin&&i(Z(this.element),this.evWin,this.domHandler)}};var ce={mousedown:_,mousemove:2,mouseup:g};function P(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,k.apply(this,arguments)}e(P,k,{handler:function(e){var t=ce[e.type];t&_&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=g),this.pressed&&(t&g&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:te,srcEvent:e}))}});var fe={pointerdown:_,pointermove:2,pointerup:g,pointercancel:v,pointerout:v},pe={2:m,3:"pen",4:te,5:"kinect"},de="pointerdown",me="pointermove pointerup pointercancel";function _e(){this.evEl=de,this.evWin=me,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}n.MSPointerEvent&&!n.PointerEvent&&(de="MSPointerDown",me="MSPointerMove MSPointerUp MSPointerCancel"),e(_e,k,{handler:function(e){var t=this.store,r=!1,i=e.type.toLowerCase().replace("ms",""),i=fe[i],n=pe[e.pointerType]||e.pointerType,o=n==m,a=f(t,e.pointerId,"pointerId");i&_&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):i&(g|v)&&(r=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:n,srcEvent:e}),r&&t.splice(a,1))}});var ge={touchstart:_,touchmove:2,touchend:g,touchcancel:v};function ve(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,k.apply(this,arguments)}e(ve,k,{handler:function(e){var t,r=ge[e.type];r===_&&(this.started=!0),this.started&&(t=function(e,t){var r=p(e.touches),e=p(e.changedTouches);t&(g|v)&&(r=K(r.concat(e),"identifier",!0));return[r,e]}.call(this,e,r),r&(g|v)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,r,{pointers:t[0],changedPointers:t[1],pointerType:m,srcEvent:e}))}});var ye={touchstart:_,touchmove:2,touchend:g,touchcancel:v};function be(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},k.apply(this,arguments)}e(be,k,{handler:function(e){var t=ye[e.type],r=function(e,t){var r=p(e.touches),i=this.targetIds;if(t&(2|_)&&1===r.length)return i[r[0].identifier]=!0,[r,r];var n,o,a=p(e.changedTouches),s=[],l=this.target;if(o=r.filter(function(e){return V(e.target,l)}),t===_)for(n=0;n<o.length;)i[o[n].identifier]=!0,n++;n=0;for(;n<a.length;)i[a[n].identifier]&&s.push(a[n]),t&(g|v)&&delete i[a[n].identifier],n++;if(s.length)return[K(o.concat(s),"identifier",!0),s]}.call(this,e,t);r&&this.callback(this.manager,t,{pointers:r[0],changedPointers:r[1],pointerType:m,srcEvent:e})}});var xe=2500;function Te(){k.apply(this,arguments);var e=Y(this.handler,this);this.touch=new be(this.manager,e),this.mouse=new P(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function we(e){var t,r,e=e.changedPointers[0];e.identifier===this.primaryTouch&&(t={x:e.clientX,y:e.clientY},this.lastTouches.push(t),r=this.lastTouches,setTimeout(function(){var e=r.indexOf(t);-1<e&&r.splice(e,1)},xe))}e(Te,k,{handler:function(e,t,r){var i=r.pointerType==m,n=r.pointerType==te;if(!(n&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(i)!function(e,t){e&_?(this.primaryTouch=t.changedPointers[0].identifier,we.call(this,t)):e&(g|v)&&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],o=Math.abs(t-n.x),n=Math.abs(r-n.y);if(o<=25&&n<=25)return!0}return!1}.call(this,r))return;this.callback(e,t,r)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ee,Se,Ae=d(z.style,"touchAction"),ke=Ae!==h,Oe="compute",Pe="manipulation",R="none",C="pan-x",M="pan-y",Re=ke&&(Ee={},Se=n.CSS&&n.CSS.supports,["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){Ee[e]=!Se||n.CSS.supports("touch-action",e)}),Ee);function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==Oe&&(e=this.compute()),ke&&this.manager.element.style&&Re[e]&&(this.manager.element.style[Ae]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e,t,r=[],i=(a(this.manager.recognizers,function(e){W(e.options.enable,[e])&&(r=r.concat(e.getTouchAction()))}),r.join(" "));return l(i,R)||(e=l(i,C),t=l(i,M),e&&t)?R:e||t?e?C:M:l(i,Pe)?Pe:"auto"},preventDefaults:function(e){var t=e.srcEvent,r=e.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,n=l(i,R)&&!Re[R],o=l(i,M)&&!Re[M],i=l(i,C)&&!Re[C];if(n){var a=1===e.pointers.length,s=e.distance<2,e=e.deltaTime<250;if(a&&s&&e)return}return i&&o?void 0:n||o&&r&E||i&&r&S?this.preventSrc(t):void 0}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function I(e){this.options=s({},this.defaults,e||{}),this.id=J++,this.manager=null,this.options.enable=q(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Me(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ie(e){return e==w?"down":e==T?"up":e==b?"left":e==x?"right":""}function De(e,t){t=t.manager;return t?t.get(e):e}function D(){I.apply(this,arguments)}function Le(){D.apply(this,arguments),this.pX=null,this.pY=null}function Fe(){D.apply(this,arguments)}function Ne(){I.apply(this,arguments),this._timer=null,this._input=null}function ze(){D.apply(this,arguments)}function Be(){D.apply(this,arguments)}function je(){I.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function L(e,t){return(t=t||{}).recognizers=q(t.recognizers,L.defaults.preset),new Ue(e,t)}I.prototype={defaults:{},set:function(e){return s(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){var t;return r(e,"recognizeWith",this)||((t=this.simultaneous)[(e=De(e,this)).id]||(t[e.id]=e).recognizeWith(this)),this},dropRecognizeWith:function(e){return r(e,"dropRecognizeWith",this)||(e=De(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){var t;return r(e,"requireFailure",this)||-1===f(t=this.requireFail,e=De(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){return r(e,"dropRequireFailure",this)||(e=De(e,this),-1<(e=f(this.requireFail,e))&&this.requireFail.splice(e,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+Me(e)),i(r.options.event),t.additionalEvent&&i(t.additionalEvent),8<=e&&i(r.options.event+Me(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(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){e=s({},e);W(this.options.enable,[this,e])?(56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)):(this.reset(),this.state=32)},process:function(e){},getTouchAction:function(){},reset:function(){}},e(D,I,{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,e=this.attrTest(e);return i&&(r&v||!e)?16|t:i||e?r&g?8|t:2&t?4|t:2:32}}),e(Le,D,{defaults:{event:"pan",threshold:10,pointers:1,direction:ie},getTouchAction:function(){var e=this.options.direction,t=[];return e&E&&t.push(M),e&S&&t.push(C),t},directionTest:function(e){var t=this.options,r=!0,i=e.distance,n=e.direction,o=e.deltaX,a=e.deltaY;return n&t.direction||(i=t.direction&E?(n=0===o?y:o<0?b:x,r=o!=this.pX,Math.abs(e.deltaX)):(n=0===a?y:a<0?T:w,r=a!=this.pY,Math.abs(e.deltaY))),e.direction=n,r&&i>t.threshold&&n&t.direction},attrTest:function(e){return D.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=Ie(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),e(Fe,D,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[R]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){var t;1!==e.scale&&(t=e.scale<1?"in":"out",e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),e(Ne,I,{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&(g|v)&&!n)this.reset();else if(e.eventType&_)this.reset(),this._timer=U(function(){this.state=8,this.tryEmit()},t.time,this);else if(e.eventType&g)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&g?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=j(),this.manager.emit(this.options.event,this._input)))}}),e(ze,D,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[R]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),e(Be,D,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:E|S,pointers:1},getTouchAction:function(){return Le.prototype.getTouchAction.call(this)},attrTest:function(e){var t,r=this.options.direction;return r&(E|S)?t=e.overallVelocity:r&E?t=e.overallVelocityX:r&S&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&e.eventType&g},emit:function(e){var t=Ie(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),e(je,I,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Pe]},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&_&&0===this.count)return this.failTimeout();if(i&&n&&r){if(e.eventType!=g)return this.failTimeout();i=!this.pTime||e.timeStamp-this.pTime<t.interval,n=!this.pCenter||O(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,n&&i?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=U(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=U(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))}}),L.VERSION="2.0.7",L.defaults={domEvents:!1,touchAction:Oe,enable:!0,inputTarget:null,inputClass:null,preset:[[ze,{enable:!1}],[Fe,{enable:!1},["rotate"]],[Be,{direction:E}],[Le,{direction:E},["swipe"]],[je],[je,{event:"doubletap",taps:2},["tap"]],[Ne]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ue(e,t){this.options=s({},L.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((t=this).options.inputClass||($?_e:ee?be:Q?Te:P))(t,oe),this.touchAction=new Ce(this,this.options.touchAction),Ge(this,!0),a(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 Ge(r,i){var n,o=r.element;o.style&&(a(r.options.cssProps,function(e,t){n=d(o.style,t),i?(r.oldCssProps[n]=o.style[n],o.style[n]=e):o.style[n]=r.oldCssProps[n]||""}),i||(r.oldCssProps={}))}Ue.prototype={set:function(e){return s(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){this.touchAction.preventDefaults(e);for(var r,i=this.recognizers,n=t.curRecognizer,o=((!n||8&n.state)&&(n=t.curRecognizer=null),0);o<i.length;)r=i[o],2===t.stopped||n&&r!=n&&!r.canRecognizeWith(n)?r.reset():r.recognize(e),!n&&14&r.state&&(n=t.curRecognizer=r),o++}},get:function(e){if(e instanceof I)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){var t;return r(e,"add",this)?this:((t=this.get(e.options.event))&&this.remove(t),this.recognizers.push(e),(e.manager=this).touchAction.update(),e)},remove:function(e){var t;return!r(e,"remove",this)&&(e=this.get(e))&&-1!==(e=f(t=this.recognizers,e))&&(t.splice(e,1),this.touchAction.update()),this},on:function(e,t){var r;if(e!==h&&t!==h)return r=this.handlers,a(u(e),function(e){r[e]=r[e]||[],r[e].push(t)}),this},off:function(e,t){var r;if(e!==h)return r=this.handlers,a(u(e),function(e){t?r[e]&&r[e].splice(f(r[e],t),1):delete r[e]}),this},emit:function(e,t){this.options.domEvents&&(r=e,i=t,(n=F.createEvent("Event")).initEvent(r,!0,!0),(n.gesture=i).target.dispatchEvent(n));var r,i,n,o=this.handlers[e]&&this.handlers[e].slice();if(o&&o.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var a=0;a<o.length;)o[a](t),a++}},destroy:function(){this.element&&Ge(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(L,{INPUT_START:_,INPUT_MOVE:2,INPUT_END:g,INPUT_CANCEL:v,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:y,DIRECTION_LEFT:b,DIRECTION_RIGHT:x,DIRECTION_UP:T,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:E,DIRECTION_VERTICAL:S,DIRECTION_ALL:ie,Manager:Ue,Input:k,TouchAction:Ce,TouchInput:be,MouseInput:P,PointerEventInput:_e,TouchMouseInput:Te,SingleTouchInput:ve,Recognizer:I,AttrRecognizer:D,Tap:je,Pan:Le,Swipe:Be,Pinch:Fe,Rotate:ze,Press:Ne,on:t,off:i,each:a,merge:H,extend:X,assign:s,inherit:e,bindFn:Y,prefixed:d}),(void 0!==n?n:"undefined"!=typeof self?self:{}).Hammer=L,"function"==typeof define&&define.amd?define(function(){return L}):"undefined"!=typeof module&&module.exports?module.exports=L:n.Hammer=L}(window,document),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).propagating=t()}(this,function(){"use strict";var u=null;return function i(n,e){var o,a,s=e||{preventDefault:!1};return n.Manager?((o=n).assign(e=function(e,t){var r=Object.create(s);return t&&o.assign(r,t),i(new o(e,r),r)},o),e.Manager=function(e,t){var r=Object.create(s);return t&&o.assign(r,t),i(new o.Manager(e,r),r)},e):(a=Object.create(n),(e=n.element).hammer||(e.hammer=[]),e.hammer.push(a),n.on("hammer.input",function(e){!0!==s.preventDefault&&s.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(u=e.target)}),a._handlers={},a.on=function(e,r){return t(e).forEach(function(e){var t=a._handlers[e];t||(a._handlers[e]=t=[],n.on(e,l)),t.push(r)}),a},a.off=function(e,r){return t(e).forEach(function(e){var t=a._handlers[e];t&&(0<(t=r?t.filter(function(e){return e!==r}):[]).length?a._handlers[e]=t:(n.off(e,l),delete a._handlers[e]))}),a},a.emit=function(e,t){u=t.target,n.emit(e,t)},a.destroy=function(){var e=n.element.hammer,t=e.indexOf(a);-1!==t&&e.splice(t,1),e.length||delete n.element.hammer,a._handlers={},n.destroy()},a);function t(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}for(var t=!1,r=(e.stopPropagation=function(){t=!0},e.srcEvent.stopPropagation.bind(e.srcEvent)),i=("function"==typeof r&&(e.srcEvent.stopPropagation=function(){r(),e.stopPropagation()}),e.firstTarget=u);i&&!t;){var n=i.hammer;if(n)for(var o,a=0;a<n.length;a++)if(o=n[a]._handlers[e.type])for(var s=0;s<o.length&&!t;s++)o[s](e);i=i.parentNode}}}});var PIXI=function($){"use strict";var I=setTimeout;function D(e){return Boolean(e&&void 0!==e.length)}function L(){}function F(e){if(!(this instanceof F))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],G(e,this)}function N(r,i){for(;3===r._state;)r=r._value;0===r._state?r._deferreds.push(i):(r._handled=!0,F._immediateFn(function(){var e,t=1===r._state?i.onFulfilled:i.onRejected;if(null===t)(1===r._state?z:B)(i.promise,r._value);else{try{e=t(r._value)}catch(e){return void B(i.promise,e)}z(i.promise,e)}}))}function z(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof F)return t._state=3,t._value=e,void j(t);if("function"==typeof r)return void G((i=r,n=e,function(){i.apply(n,arguments)}),t)}t._state=1,t._value=e,j(t)}catch(e){B(t,e)}var i,n}function B(e,t){e._state=2,e._value=t,j(e)}function j(e){2===e._state&&0===e._deferreds.length&&F._immediateFn(function(){e._handled||F._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;t<r;t++)N(e,e._deferreds[t]);e._deferreds=null}function U(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function G(e,t){var r=!1;try{e(function(e){r||(r=!0,z(t,e))},function(e){r||(r=!0,B(t,e))})}catch(e){r||(r=!0,B(t,e))}}F.prototype.catch=function(e){return this.then(null,e)},F.prototype.then=function(e,t){var r=new this.constructor(L);return N(this,new U(e,t,r)),r},F.prototype.finally=function(t){var r=this.constructor;return this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){return r.reject(e)})})},F.all=function(t){return new F(function(n,o){if(!D(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return n([]);var s=a.length;for(var e=0;e<a.length;e++)!function t(r,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if("function"==typeof i)return void i.call(e,function(e){t(r,e)},o)}a[r]=e,0==--s&&n(a)}catch(e){o(e)}}(e,a[e])})},F.allSettled=function(r){return new this(function(n,e){if(!r||void 0===r.length)return e(new TypeError(typeof r+" "+r+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var o=Array.prototype.slice.call(r);if(0===o.length)return n([]);var a=o.length;for(var t=0;t<o.length;t++)!function t(r,e){if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if("function"==typeof i)return void i.call(e,function(e){t(r,e)},function(e){o[r]={status:"rejected",reason:e},0==--a&&n(o)})}o[r]={status:"fulfilled",value:e},0==--a&&n(o)}(t,o[t])})},F.resolve=function(t){return t&&"object"==typeof t&&t.constructor===F?t:new F(function(e){e(t)})},F.reject=function(r){return new F(function(e,t){t(r)})},F.race=function(n){return new F(function(e,t){if(!D(n))return t(new TypeError("Promise.race accepts an array"));for(var r=0,i=n.length;r<i;r++)F.resolve(n[r]).then(e,t)})},F._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){I(e,0)},F._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var X=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;for(var W,e=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i,n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===n.join(""))return i={},"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var r,i=arguments,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var a in r=Object(i[o]))H.call(r,a)&&(n[a]=r[a]);if(X)for(var s=X(r),l=0;l<s.length;l++)Y.call(r,s[l])&&(n[s[l]]=r[s[l]])}return n},q=("undefined"==typeof globalThis&&("undefined"!=typeof self?self.globalThis=self:"undefined"!=typeof global&&(global.globalThis=global)),globalThis.Promise||(globalThis.Promise=F),Object.assign||(Object.assign=e),Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),globalThis.performance&&globalThis.performance.now||(W=Date.now(),globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-W}),Date.now()),V=["ms","moz","webkit","o"],K=0;K<V.length&&!globalThis.requestAnimationFrame;++K){var J=V[K];globalThis.requestAnimationFrame=globalThis[J+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[J+"CancelAnimationFrame"]||globalThis[J+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(e){if("function"!=typeof e)throw new TypeError(e+"is not a function");var t=Date.now(),r=16+q-t;return r<0&&(r=0),q=t,globalThis.self.setTimeout(function(){q=Date.now(),e(performance.now())},r)}),globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(e){return clearTimeout(e)}),Math.sign||(Math.sign=function(e){return 0===(e=Number(e))||isNaN(e)?e:0<e?1:-1}),Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}),globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array),globalThis.Float32Array||(globalThis.Float32Array=Array),globalThis.Uint32Array||(globalThis.Uint32Array=Array),globalThis.Uint16Array||(globalThis.Uint16Array=Array),globalThis.Uint8Array||(globalThis.Uint8Array=Array),globalThis.Int32Array||(globalThis.Int32Array=Array),(e={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",(e=Ia=Ia||{})[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",(e=_a=_a||{})[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",(e=Ti=Ti||{})[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",(e={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(e={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",(e=oa=oa||{})[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",(e=Xt=Xt||{}).LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",(e=Si=Si||{})[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH";function Z(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&1<e.maxTouchPoints&&"undefined"==typeof MSStream}var e={createCanvas:function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var e;return null!=(e=document.baseURI)?e:window.location.href},fetch:function(e,t){return fetch(e,t)}},t=/iPhone/i,Q=/iPod/i,re=/iPad/i,ie=/\biOS-universal(?:.+)Mac\b/i,ne=/\bAndroid(?:.+)Mobile\b/i,oe=/Android/i,r=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,i=/Silk/i,n=/Windows Phone/i,o=/\bWindows(?:.+)ARM\b/i,a=/BlackBerry/i,ae=/BB10/i,s=/Opera Mini/i,se=/\b(CriOS|Chrome)(?:.+)Mobile/i,le=/Mobile(?:.+)Firefox\b/i;d=globalThis.navigator,Xe={userAgent:"",platform:"",maxTouchPoints:0},d||"undefined"==typeof navigator?"string"==typeof d?Xe.userAgent=d:d&&d.userAgent&&(Xe={userAgent:d.userAgent,platform:d.platform,maxTouchPoints:d.maxTouchPoints||0}):Xe={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0},void 0!==(p=(d=void 0!==(p=(d=Xe.userAgent).split("[FBAN"))[1]?p[0]:d).split("Twitter"))[1]&&(d=p[0]),ue=d,(d={apple:{phone:(p=function(e){return e.test(ue)})(t)&&!p(n),ipod:p(Q),tablet:!p(t)&&(p(re)||Z(Xe))&&!p(n),universal:p(ie),device:(p(t)||p(Q)||p(re)||p(ie)||Z(Xe))&&!p(n)},amazon:{phone:p(r),tablet:!p(r)&&p(i),device:p(r)||p(i)},android:{phone:!p(n)&&p(r)||!p(n)&&p(ne),tablet:!p(n)&&!p(r)&&!p(ne)&&(p(i)||p(oe)),device:!p(n)&&(p(r)||p(i)||p(ne)||p(oe))||p(/\bokhttp\b/i)},windows:{phone:p(n),tablet:p(o),device:p(n)||p(o)},other:{blackberry:p(a),blackberry10:p(ae),opera:p(s),firefox:p(le),chrome:p(se),device:p(a)||p(ae)||p(s)||p(le)||p(se)},any:!1,phone:!1,tablet:!1}).any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet;var ue,he=d;var R={ADAPTER:e,MIPMAP_TEXTURES:Ti.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Si.NONE,SPRITE_MAX_TEXTURES:(t=32,Q=!0,(he.tablet||he.phone)&&(he.apple.device&&(it=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(it[1],10)<11&&(Q=!1),he.android.device&&(it=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(it[1],10)<7&&(Q=!1)),Q?t:4),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:oa.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:_a.CLAMP,SCALE_MODE:Ia.LINEAR,PRECISION_VERTEX:Xt.HIGH,PRECISION_FRAGMENT:he.apple.device?Xt.HIGH:Xt.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!he.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fe(e,t,r){return e(r={path:t,exports:{},require:function(e,t){throw null==t&&r.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},r.exports),r.exports}var re=fe(function(e){var i=Object.prototype.hasOwnProperty,d="~";function r(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function n(e,t,r,i,n){if("function"!=typeof r)throw new TypeError("The listener must be a function");r=new o(r,i||e,n),i=d?d+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],r]:e._events[i].push(r):(e._events[i]=r,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function t(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(d=!1)),t.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},t.prototype.listeners=function(e){var e=d?d+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,i=t.length,n=new Array(i);r<i;r++)n[r]=t[r].fn;return n},t.prototype.listenerCount=function(e){e=d?d+e:e,e=this._events[e];return e?e.fn?1:e.length:0},t.prototype.emit=function(e,t,r,i,n,o){var a=arguments,s=d?d+e:e;if(!this._events[s])return!1;var l,u=this._events[s],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,n),!0;case 6:return u.fn.call(u.context,t,r,i,n,o),!0}for(p=1,l=new Array(h-1);p<h;p++)l[p-1]=a[p];u.fn.apply(u.context,l)}else for(var c,f=u.length,p=0;p<f;p++)switch(u[p].once&&this.removeListener(e,u[p].fn,void 0,!0),h){case 1:u[p].fn.call(u[p].context);break;case 2:u[p].fn.call(u[p].context,t);break;case 3:u[p].fn.call(u[p].context,t,r);break;case 4:u[p].fn.call(u[p].context,t,r,i);break;default:if(!l)for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=a[c];u[p].fn.apply(u[p].context,l)}return!0},t.prototype.on=function(e,t,r){return n(this,e,t,r,!1)},t.prototype.once=function(e,t,r){return n(this,e,t,r,!0)},t.prototype.removeListener=function(e,t,r,i){e=d?d+e:e;if(this._events[e])if(t){var n=this._events[e];if(n.fn)n.fn!==t||i&&!n.once||r&&n.context!==r||l(this,e);else{for(var o=0,a=[],s=n.length;o<s;o++)(n[o].fn!==t||i&&!n[o].once||r&&n[o].context!==r)&&a.push(n[o]);a.length?this._events[e]=1===a.length?a[0]:a:l(this,e)}}else l(this,e);return this},t.prototype.removeAllListeners=function(e){return e?(e=d?d+e:e,this._events[e]&&l(this,e)):(this._events=new r,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=d,e.exports=t.EventEmitter=t}),pe=de,ie=de;function de(e,t,r){r=r||2;var i,n,o,a,s,l=t&&t.length,u=l?t[0]*r:e.length,h=me(e,0,u,r,!0),c=[];if(h&&h.next!==h.prev){if(l&&(h=function(e,t,r,i){var n,o,a,s,l=[];for(n=0,o=t.length;n<o;n++)s=t[n]*i,a=n<o-1?t[n+1]*i:e.length,(s=me(e,s,a,i,!1))===s.next&&(s.steiner=!0),l.push(function(e){var t=e,r=e;for(;(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next,t!==e;);return r}(s));for(l.sort(ve),n=0;n<l.length;n++)r=function(e,t){var r=function(e,t){var r,i=t,n=e.x,o=e.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=n&&a<s&&(a=s,r=i.x<i.next.x?i:i.next,s===n))return r}}while(i=i.next,i!==t);if(!r)return null;var l,u=r,h=r.x,c=r.y,f=1/0;i=r;for(;n>=i.x&&i.x>=h&&n!==i.x&&be(o<c?n:a,o,h,c,o<c?a:n,o,i.x,i.y)&&(l=Math.abs(o-i.y)/(n-i.x),Ae(i,e)&&(l<f||l===f&&(i.x>r.x||i.x===r.x&&function(e,t){return xe(e.prev,e,t.prev)<0&&xe(t.next,e,e.next)<0}(r,i)))&&(r=i,f=l)),i=i.next,i!==u;);return r}(e,t);return r?(_e(e=ke(r,e),e.next),_e(r,r.next)):t}(l[n],r);return r}(e,t,h,r)),e.length>80*r){for(var f=i=e[0],p=n=e[1],d=r;d<u;d+=r)(o=e[d])<f&&(f=o),(a=e[d+1])<p&&(p=a),i<o&&(i=o),n<a&&(n=a);s=0!==(s=Math.max(i-f,n-p))?32767/s:0}ge(h,c,r,f,p,s,0)}return c}function me(e,t,r,i,n){var o,a;if(n===0<Ce(e,t,r,i))for(o=t;o<r;o+=i)a=Oe(o,e[o],e[o+1],a);else for(o=r-i;t<=o;o-=i)a=Oe(o,e[o],e[o+1],a);return a&&Te(a,a.next)&&(Pe(a),a=a.next),a}function _e(e,t){if(!e)return e;t=t||e;var r,i=e;do{if(r=!1,i.steiner||!Te(i,i.next)&&0!==xe(i.prev,i,i.next))i=i.next;else{if(Pe(i),(i=t=i.prev)===i.next)break;r=!0}}while(r||i!==t);return t}function ge(e,t,r,i,n,o,a){if(e){if(!a&&o){for(var s=e,l=i,u=n,h=o,c=s;0===c.z&&(c.z=ye(c.x,c.y,l,u,h)),c.prevZ=c.prev,c.nextZ=c.next,(c=c.next)!==s;);c.prevZ.nextZ=null,c.prevZ=null;var f,p,d,m,_,g,v,y,b=c,x=1;do{for(p=b,_=b=null,g=0;p;){for(g++,d=p,f=v=0;f<x&&(v++,d=d.nextZ);f++);for(y=x;0<v||0<y&&d;)0!==v&&(0===y||!d||p.z<=d.z)?(p=(m=p).nextZ,v--):(d=(m=d).nextZ,y--),_?_.nextZ=m:b=m,m.prevZ=_,_=m;p=d}}while(_.nextZ=null,x*=2,1<g)}for(var T,w,E=e;e.prev!==e.next;)if(T=e.prev,w=e.next,o?function(e,t,r,i){var n=e.prev,o=e,a=e.next;if(0<=xe(n,o,a))return;var s=n.x,l=o.x,u=a.x,h=n.y,c=o.y,f=a.y,p=s<l?s<u?s:u:l<u?l:u,d=h<c?h<f?h:f:c<f?c:f,m=l<s?u<s?s:u:u<l?l:u,_=c<h?f<h?h:f:f<c?c:f,g=ye(p,d,t,r,i),v=ye(m,_,t,r,i),y=e.prevZ,b=e.nextZ;for(;y&&y.z>=g&&b&&b.z<=v;){if(y.x>=p&&y.x<=m&&y.y>=d&&y.y<=_&&y!==n&&y!==a&&be(s,h,l,c,u,f,y.x,y.y)&&0<=xe(y.prev,y,y.next))return;if(y=y.prevZ,b.x>=p&&b.x<=m&&b.y>=d&&b.y<=_&&b!==n&&b!==a&&be(s,h,l,c,u,f,b.x,b.y)&&0<=xe(b.prev,b,b.next))return;b=b.nextZ}for(;y&&y.z>=g;){if(y.x>=p&&y.x<=m&&y.y>=d&&y.y<=_&&y!==n&&y!==a&&be(s,h,l,c,u,f,y.x,y.y)&&0<=xe(y.prev,y,y.next))return;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=m&&b.y>=d&&b.y<=_&&b!==n&&b!==a&&be(s,h,l,c,u,f,b.x,b.y)&&0<=xe(b.prev,b,b.next))return;b=b.nextZ}return 1}(e,i,n,o):function(e){var t=e.prev,r=e,e=e.next;if(0<=xe(t,r,e))return;var i=t.x,n=r.x,o=e.x,a=t.y,s=r.y,l=e.y,u=i<n?i<o?i:o:n<o?n:o,h=a<s?a<l?a:l:s<l?s:l,c=n<i?o<i?i:o:o<n?n:o,f=s<a?l<a?a:l:l<s?s:l,p=e.next;for(;p!==t;){if(p.x>=u&&p.x<=c&&p.y>=h&&p.y<=f&&be(i,a,n,s,o,l,p.x,p.y)&&0<=xe(p.prev,p,p.next))return;p=p.next}return 1}(e))t.push(T.i/r|0),t.push(e.i/r|0),t.push(w.i/r|0),Pe(e),e=w.next,E=w.next;else if((e=w)===E){a?1===a?ge(e=function(e,t,r){var i=e;do{var n=i.prev,o=i.next.next}while(!Te(n,o)&&we(n,i,i.next,o)&&Ae(n,o)&&Ae(o,n)&&(t.push(n.i/r|0),t.push(i.i/r|0),t.push(o.i/r|0),Pe(i),Pe(i.next),i=e=o),i=i.next,i!==e);return _e(i)}(_e(e),t,r),t,r,i,n,o,2):2===a&&function(e,t,r,i,n,o){var a=e;do{for(var s,l=a.next.next;l!==a.prev;){if(a.i!==l.i&&function(e,t){return e.next.i!==t.i&&e.prev.i!==t.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&&we(r,r.next,e,t))return 1}while(r=r.next,r!==e);return}(e,t)&&(Ae(e,t)&&Ae(t,e)&&function(e,t){var r=e,i=!1,n=(e.x+t.x)/2,o=(e.y+t.y)/2;for(;r.y>o!=r.next.y>o&&r.next.y!==r.y&&n<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next,r!==e;);return i}(e,t)&&(xe(e.prev,e,t.prev)||xe(e,t.prev,t))||Te(e,t)&&0<xe(e.prev,e,e.next)&&0<xe(t.prev,t,t.next))}(a,l))return s=ke(a,l),a=_e(a,a.next),s=_e(s,s.next),ge(a,t,r,i,n,o,0),ge(s,t,r,i,n,o,0);l=l.next}}while(a=a.next,a!==e)}(e,t,r,i,n,o):ge(_e(e),t,r,i,n,o,1);break}}}function ve(e,t){return e.x-t.x}function ye(e,t,r,i,n){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function be(e,t,r,i,n,o,a,s){return(e-a)*(o-s)<=(n-a)*(t-s)&&(r-a)*(t-s)<=(e-a)*(i-s)&&(n-a)*(i-s)<=(r-a)*(o-s)}function xe(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Te(e,t){return e.x===t.x&&e.y===t.y}function we(e,t,r,i){var n=Se(xe(e,t,r)),o=Se(xe(e,t,i)),a=Se(xe(r,i,e)),s=Se(xe(r,i,t));return n!==o&&a!==s||(0===n&&Ee(e,r,t)||(0===o&&Ee(e,i,t)||(0===a&&Ee(r,e,i)||!(0!==s||!Ee(r,t,i)))))}function Ee(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Se(e){return 0<e?1:e<0?-1:0}function Ae(e,t){return xe(e.prev,e,e.next)<0?0<=xe(e,t,e.next)&&0<=xe(e,e.prev,t):xe(e,t,e.prev)<0||xe(e,e.next,t)<0}function ke(e,t){var r=new Re(e.i,e.x,e.y),i=new Re(t.i,t.x,t.y),n=e.next,o=t.prev;return(e.next=t).prev=e,(r.next=n).prev=r,(i.next=r).prev=i,(o.next=i).prev=o,i}function Oe(e,t,r,i){e=new Re(e,t,r);return i?(e.next=i.next,(e.prev=i).next.prev=e,i.next=e):(e.prev=e).next=e,e}function Pe(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 Re(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ce(e,t,r,i){for(var n=0,o=t,a=r-i;o<r;o+=i)n+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return n}de.deviation=function(e,t,r,i){var n=t&&t.length,o=n?t[0]*r:e.length,a=Math.abs(Ce(e,0,o,r));if(n)for(var s=0,l=t.length;s<l;s++){var u=t[s]*r,h=s<l-1?t[s+1]*r:e.length;a-=Math.abs(Ce(e,u,h,r))}for(var c=0,s=0;s<i.length;s+=3){var f=i[s]*r,p=i[s+1]*r,d=i[s+2]*r;c+=Math.abs((e[f]-e[d])*(e[1+p]-e[1+f])-(e[f]-e[p])*(e[1+d]-e[1+f]))}return 0===a&&0===c?0:Math.abs((c-a)/a)},de.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 o=0;o<e[n].length;o++)for(var a=0;a<t;a++)r.vertices.push(e[n][o][a]);0<n&&(i+=e[n-1].length,r.holes.push(i))}return r},pe.default=ie;var Me=fe(function(e,t){var r=ce,i=t&&!t.nodeType&&t,t=e&&!e.nodeType&&e,n="object"==typeof ce&&ce;n.global!==n&&n.window!==n&&n.self!==n||(r=n);var o,a,_=2147483647,g=36,v=26,s=38,l=700,u=/^xn--/,h=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=g-1,y=Math.floor,b=String.fromCharCode;function x(e){throw RangeError(f[e])}function d(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function m(e,t){var r=e.split("@"),i="",r=(1<r.length&&(i=r[0]+"@",e=r[1]),(e=e.replace(c,".")).split("."));return i+d(r,t).join(".")}function T(e){for(var t,r,i=[],n=0,o=e.length;n<o;)55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<o?56320==(64512&(r=e.charCodeAt(n++)))?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),n--):i.push(t);return i}function w(e){return d(e,function(e){var t="";return 65535<e&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=b(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var i=0;for(e=r?y(e/l):e>>1,e+=y(e/t);p*v>>1<e;i+=g)e=y(e/p);return y(i+(p+1)*e/(e+s))}function A(e){var t,r,i,n,o,a,s,l=[],u=e.length,h=0,c=128,f=72,p=e.lastIndexOf("-");for(p<0&&(p=0),r=0;r<p;++r)128<=e.charCodeAt(r)&&x("not-basic"),l.push(e.charCodeAt(r));for(i=0<p?p+1:0;i<u;){for(n=h,o=1,a=g;u<=i&&x("invalid-input"),s=e.charCodeAt(i++),(g<=(s=s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:g)||s>y((_-h)/o))&&x("overflow"),h+=s*o,!(s<(s=a<=f?1:f+v<=a?v:a-f));a+=g)o>y(_/(s=g-s))&&x("overflow"),o*=s;f=S(h-n,t=l.length+1,0==n),y(h/t)>_-c&&x("overflow"),c+=y(h/t),h%=t,l.splice(h++,0,c)}return w(l)}function k(e){for(var t,r,i,n,o,a,s,l,u,h,c=[],f=(e=T(e)).length,p=128,d=72,m=t=0;m<f;++m)(s=e[m])<128&&c.push(b(s));for(r=i=c.length,i&&c.push("-");r<f;){for(n=_,m=0;m<f;++m)p<=(s=e[m])&&s<n&&(n=s);for(n-p>y((_-t)/(l=r+1))&&x("overflow"),t+=(n-p)*l,p=n,m=0;m<f;++m)if((s=e[m])<p&&++t>_&&x("overflow"),s==p){for(o=t,a=g;!(o<(u=a<=d?1:d+v<=a?v:a-d));a+=g)c.push(b(E(u+(h=o-u)%(u=g-u),0))),o=y(h/u);c.push(b(E(o,0))),d=S(t,l,r==i),t=0,++r}++t,++p}return c.join("")}if(o={version:"1.3.2",ucs2:{decode:T,encode:w},decode:A,encode:k,toASCII:function(e){return m(e,function(e){return h.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return u.test(e)?A(e.slice(4).toLowerCase()):e})}},i&&t)if(e.exports==i)t.exports=o;else for(a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);else r.punycode=o}),Ie=function(e){return"string"==typeof e},De=function(e){return"object"==typeof e&&null!==e},Le=function(e){return null===e},Fe=function(e){return null==e};function Ne(e,t,r,i){t=t||"&",r=r||"=";var n={};if("string"==typeof e&&0!==e.length){var o=/\+/g,t=(e=e.split(t),1e3),a=(i&&"number"==typeof i.maxKeys&&(t=i.maxKeys),e.length);0<t&&t<a&&(a=t);for(var s=0;s<a;++s){var l,u=e[s].replace(o,"%20"),h=u.indexOf(r),h=0<=h?(l=u.substr(0,h),u.substr(h+1)):(l=u,""),u=decodeURIComponent(l),h=decodeURIComponent(h);Object.prototype.hasOwnProperty.call(n,u)?Array.isArray(n[u])?n[u].push(h):n[u]=[n[u],h]:n[u]=h}}return n}function ze(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Be(r,i,n,e){return i=i||"&",n=n||"=","object"==typeof(r=null===r?void 0:r)?Object.keys(r).map(function(e){var t=encodeURIComponent(ze(e))+n;return Array.isArray(r[e])?r[e].map(function(e){return t+encodeURIComponent(ze(e))}).join(i):t+encodeURIComponent(ze(r[e]))}).join(i):e?encodeURIComponent(ze(e))+n+encodeURIComponent(ze(r)):""}function je(e,t){return rt(e,!1,!0).resolve(t)}function Ue(e){return(e=Ie(e)?rt(e):e)instanceof He?e.format():He.prototype.format.call(e)}var Ge=fe(function(e,t){t.decode=t.parse=Ne,t.encode=t.stringify=Be}),Xe=rt;function He(){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}var Ye=/^([a-z0-9.+-]+:)/i,We=/:[0-9]*$/,qe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Ve=["'"].concat(r),Ke=["%","/","?",";","#"].concat(Ve),Je=["/","?","#"],Ze=/^[+a-z0-9A-Z_-]{0,63}$/,Qe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,$e={javascript:!0,"javascript:":!0},et={javascript:!0,"javascript:":!0},tt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function rt(e,t,r){var i;return e&&De(e)&&e instanceof He?e:((i=new He).parse(e,t,r),i)}He.prototype.parse=function(e,t,r){if(!Ie(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),i=-1!==i&&i<e.indexOf("#")?"?":"#",n=e.split(i);n[0]=n[0].replace(/\\/g,"/");var o=(o=e=n.join(i)).trim();if(!r&&1===e.split("#").length){n=qe.exec(o);if(n)return this.path=o,this.href=o,this.pathname=n[1],n[2]?(this.search=n[2],this.query=t?Ge.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var a,i=Ye.exec(o);if(i&&(a=(i=i[0]).toLowerCase(),this.protocol=a,o=o.substr(i.length)),!(r||i||o.match(/^\/\/[^@\/]+@[^@\/]+/))||!(b="//"===o.substr(0,2))||i&&et[i]||(o=o.substr(2),this.slashes=!0),!et[i]&&(b||i&&!tt[i])){for(var s=-1,l=0;l<Je.length;l++)-1!==(u=o.indexOf(Je[l]))&&(-1===s||u<s)&&(s=u);-1!==(e=-1===s?o.lastIndexOf("@"):o.lastIndexOf("@",s))&&(n=o.slice(0,e),o=o.slice(e+1),this.auth=decodeURIComponent(n));for(var u,s=-1,l=0;l<Ke.length;l++)-1!==(u=o.indexOf(Ke[l]))&&(-1===s||u<s)&&(s=u);-1===s&&(s=o.length),this.host=o.slice(0,s),o=o.slice(s),this.parseHost(),this.hostname=this.hostname||"";r="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!r)for(var h=this.hostname.split(/\./),l=0,c=h.length;l<c;l++){var f=h[l];if(f&&!f.match(Ze)){for(var p="",d=0,m=f.length;d<m;d++)127<f.charCodeAt(d)?p+="x":p+=f[d];if(!p.match(Ze)){var _=h.slice(0,l),g=h.slice(l+1),v=f.match(Qe);v&&(_.push(v[1]),g.unshift(v[2])),g.length&&(o="/"+g.join(".")+o),this.hostname=_.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),r||(this.hostname=Me.toASCII(this.hostname));var y=this.port?":"+this.port:"",b=this.hostname||"";this.host=b+y,this.href+=this.host,r&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!$e[a])for(l=0,c=Ve.length;l<c;l++){var x,T=Ve[l];-1!==o.indexOf(T)&&((x=encodeURIComponent(T))===T&&(x=escape(T)),o=o.split(T).join(x))}i=o.indexOf("#"),-1!==i&&(this.hash=o.substr(i),o=o.slice(0,i)),e=o.indexOf("?");return-1!==e?(this.search=o.substr(e),this.query=o.substr(e+1),t&&(this.query=Ge.parse(this.query)),o=o.slice(0,e)):t&&(this.search="",this.query={}),o&&(this.pathname=o),tt[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(y=this.pathname||"",n=this.search||"",this.path=y+n),this.href=this.format(),this},He.prototype.format=function(){var e=this.auth||"",t=(e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@"),this.protocol||""),r=this.pathname||"",i=this.hash||"",n=!1,o="",e=(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&&De(this.query)&&Object.keys(this.query).length&&(o=Ge.stringify(this.query)),this.search||o&&"?"+o||"");return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||tt[t])&&!1!==n?(n="//"+(n||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):n=n||"",i&&"#"!==i.charAt(0)&&(i="#"+i),e&&"?"!==e.charAt(0)&&(e="?"+e),t+n+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(e=e.replace("#","%23"))+i},He.prototype.resolve=function(e){return this.resolveObject(rt(e,!1,!0)).format()},He.prototype.resolveObject=function(e){Ie(e)&&((f=new He).parse(e,!1,!0),e=f);for(var t=new He,r=Object.keys(this),i=0;i<r.length;i++){var n=r[i];t[n]=this[n]}if(t.hash=e.hash,""!==e.href)if(e.slashes&&!e.protocol){for(var o=Object.keys(e),a=0;a<o.length;a++){var s=o[a];"protocol"!==s&&(t[s]=e[s])}tt[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/")}else if(e.protocol&&e.protocol!==t.protocol)if(tt[e.protocol]){if(t.protocol=e.protocol,e.host||et[e.protocol])t.pathname=e.pathname;else{for(var l=(e.pathname||"").split("/");l.length&&!(e.host=l.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),t.pathname=l.join("/")}t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(t.pathname||t.search)&&(f=t.pathname||"",p=t.search||"",t.path=f+p),t.slashes=t.slashes||e.slashes}else for(var u=Object.keys(e),h=0;h<u.length;h++){var c=u[h];t[c]=e[c]}else{var f=t.pathname&&"/"===t.pathname.charAt(0),p=e.host||e.pathname&&"/"===e.pathname.charAt(0),f=p||f||t.host&&e.pathname,d=f,m=t.pathname&&t.pathname.split("/")||[],l=e.pathname&&e.pathname.split("/")||[],_=t.protocol&&!tt[t.protocol];if(_&&(t.hostname="",t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===l[0]?l[0]=e.host:l.unshift(e.host)),e.host=null),f=f&&(""===l[0]||""===m[0])),p)t.host=(e.host||""===e.host?e:t).host,t.hostname=(e.hostname||""===e.hostname?e:t).hostname,t.search=e.search,t.query=e.query,m=l;else if(l.length)(m=m||[]).pop(),m=m.concat(l),t.search=e.search,t.query=e.query;else if(!Fe(e.search))return _&&(t.hostname=t.host=m.shift(),(b=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=b.shift(),t.host=t.hostname=b.shift())),t.search=e.search,t.query=e.query,Le(t.pathname)&&Le(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.href=t.format(),t;if(m.length){for(var g=m.slice(-1)[0],p=(t.host||e.host||1<m.length)&&("."===g||".."===g)||""===g,v=0,y=m.length;0<=y;y--)"."===(g=m[y])?m.splice(y,1):".."===g?(m.splice(y,1),v++):v&&(m.splice(y,1),v--);if(!f&&!d)for(;v--;)m.unshift("..");!f||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),p&&"/"!==m.join("/").substr(-1)&&m.push("");var b,d=""===m[0]||m[0]&&"/"===m[0].charAt(0);_&&(t.hostname=t.host=!d&&m.length?m.shift():"",(b=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=b.shift(),t.host=t.hostname=b.shift())),(f=f||t.host&&m.length)&&!d&&m.unshift(""),m.length?t.pathname=m.join("/"):(t.pathname=null,t.path=null),Le(t.pathname)&&Le(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes}else t.pathname=null,t.search?t.path="/"+t.search:t.path=null}return t.href=t.format(),t},He.prototype.parseHost=function(){var e=this.host,t=We.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};$.ENV=void 0,(i=$.ENV||($.ENV={}))[i.WEBGL_LEGACY=0]="WEBGL_LEGACY",i[i.WEBGL=1]="WEBGL",i[i.WEBGL2=2]="WEBGL2",$.RENDERER_TYPE=void 0,(ne=$.RENDERER_TYPE||($.RENDERER_TYPE={}))[ne.UNKNOWN=0]="UNKNOWN",ne[ne.WEBGL=1]="WEBGL",ne[ne.CANVAS=2]="CANVAS",$.BUFFER_BITS=void 0,(oe=$.BUFFER_BITS||($.BUFFER_BITS={}))[oe.COLOR=16384]="COLOR",oe[oe.DEPTH=256]="DEPTH",oe[oe.STENCIL=1024]="STENCIL",$.BLEND_MODES=void 0,(n=$.BLEND_MODES||($.BLEND_MODES={}))[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",$.DRAW_MODES=void 0,(o=$.DRAW_MODES||($.DRAW_MODES={}))[o.POINTS=0]="POINTS",o[o.LINES=1]="LINES",o[o.LINE_LOOP=2]="LINE_LOOP",o[o.LINE_STRIP=3]="LINE_STRIP",o[o.TRIANGLES=4]="TRIANGLES",o[o.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",o[o.TRIANGLE_FAN=6]="TRIANGLE_FAN",$.FORMATS=void 0,(a=$.FORMATS||($.FORMATS={}))[a.RGBA=6408]="RGBA",a[a.RGB=6407]="RGB",a[a.RG=33319]="RG",a[a.RED=6403]="RED",a[a.RGBA_INTEGER=36249]="RGBA_INTEGER",a[a.RGB_INTEGER=36248]="RGB_INTEGER",a[a.RG_INTEGER=33320]="RG_INTEGER",a[a.RED_INTEGER=36244]="RED_INTEGER",a[a.ALPHA=6406]="ALPHA",a[a.LUMINANCE=6409]="LUMINANCE",a[a.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",a[a.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",a[a.DEPTH_STENCIL=34041]="DEPTH_STENCIL",$.TARGETS=void 0,(ae=$.TARGETS||($.TARGETS={}))[ae.TEXTURE_2D=3553]="TEXTURE_2D",ae[ae.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",ae[ae.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",ae[ae.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",ae[ae.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",ae[ae.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",ae[ae.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",ae[ae.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",ae[ae.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",$.TYPES=void 0,(s=$.TYPES||($.TYPES={}))[s.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",s[s.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",s[s.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",s[s.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",s[s.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",s[s.UNSIGNED_INT=5125]="UNSIGNED_INT",s[s.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",s[s.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",s[s.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",s[s.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",s[s.BYTE=5120]="BYTE",s[s.SHORT=5122]="SHORT",s[s.INT=5124]="INT",s[s.FLOAT=5126]="FLOAT",s[s.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",s[s.HALF_FLOAT=36193]="HALF_FLOAT",$.SAMPLER_TYPES=void 0,(le=$.SAMPLER_TYPES||($.SAMPLER_TYPES={}))[le.FLOAT=0]="FLOAT",le[le.INT=1]="INT",le[le.UINT=2]="UINT",$.SCALE_MODES=void 0,(p=$.SCALE_MODES||($.SCALE_MODES={}))[p.NEAREST=0]="NEAREST",p[p.LINEAR=1]="LINEAR",$.WRAP_MODES=void 0,(se=$.WRAP_MODES||($.WRAP_MODES={}))[se.CLAMP=33071]="CLAMP",se[se.REPEAT=10497]="REPEAT",se[se.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",$.MIPMAP_MODES=void 0,(d=$.MIPMAP_MODES||($.MIPMAP_MODES={}))[d.OFF=0]="OFF",d[d.POW2=1]="POW2",d[d.ON=2]="ON",d[d.ON_MANUAL=3]="ON_MANUAL",$.ALPHA_MODES=void 0,(Ti=$.ALPHA_MODES||($.ALPHA_MODES={}))[Ti.NPM=0]="NPM",Ti[Ti.UNPACK=1]="UNPACK",Ti[Ti.PMA=2]="PMA",Ti[Ti.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",Ti[Ti.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",Ti[Ti.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",Ti[Ti.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",$.CLEAR_MODES=void 0,(Si=$.CLEAR_MODES||($.CLEAR_MODES={}))[Si.NO=0]="NO",Si[Si.YES=1]="YES",Si[Si.AUTO=2]="AUTO",Si[Si.BLEND=0]="BLEND",Si[Si.CLEAR=1]="CLEAR",Si[Si.BLIT=2]="BLIT",$.GC_MODES=void 0,(it=$.GC_MODES||($.GC_MODES={}))[it.AUTO=0]="AUTO",it[it.MANUAL=1]="MANUAL",$.PRECISION=void 0,(Q=$.PRECISION||($.PRECISION={})).LOW="lowp",Q.MEDIUM="mediump",Q.HIGH="highp",$.MASK_TYPES=void 0,(t=$.MASK_TYPES||($.MASK_TYPES={}))[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",$.COLOR_MASK_BITS=void 0,(oa=$.COLOR_MASK_BITS||($.COLOR_MASK_BITS={}))[oa.RED=1]="RED",oa[oa.GREEN=2]="GREEN",oa[oa.BLUE=4]="BLUE",oa[oa.ALPHA=8]="ALPHA",$.MSAA_QUALITY=void 0,(_a=$.MSAA_QUALITY||($.MSAA_QUALITY={}))[_a.NONE=0]="NONE",_a[_a.LOW=2]="LOW",_a[_a.MEDIUM=4]="MEDIUM",_a[_a.HIGH=8]="HIGH",$.BUFFER_TYPE=void 0,(Ia=$.BUFFER_TYPE||($.BUFFER_TYPE={}))[Ia.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",Ia[Ia.ARRAY_BUFFER=34962]="ARRAY_BUFFER",Ia[Ia.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER";var it,nt={parse:Xe,format:Ue,resolve:je};function ot(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function at(e){return e.split("?")[0].split("#")[0]}var st,lt={toPosix:function(e){return t="\\",r="/",e.replace(new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),r);var t,r},isUrl:function(e){return/^https?:/.test(this.toPosix(e))},isDataUrl:function(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol:function(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol:function(e){ot(e),e=this.toPosix(e);var t="",r=/^file:\/\/\//.exec(e),i=/^[^/:]+:\/\//.exec(e),n=/^[^/:]+:\//.exec(e);return(r||i||n)&&(r=(null==r?void 0:r[0])||(null==i?void 0:i[0])||(null==n?void 0:n[0]),e=e.slice((t=r).length)),t},toAbsolute:function(e,t,r){return this.isDataUrl(e)?e:(t=at(this.toPosix(null!=t?t:R.ADAPTER.getBaseUrl())),r=at(this.toPosix(null!=r?r:this.rootname(t))),ot(e),(e=this.toPosix(e)).startsWith("/")?lt.join(r,e.slice(1)):this.isAbsolute(e)?e:this.join(t,e))},normalize:function(e){var t,r,i;return ot(e=this.toPosix(e)),0===e.length?".":(t="",r=e.startsWith("/"),this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length)),i=e.endsWith("/"),0<(e=function(e,t){for(var r,i="",n=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o!==s-1&&1!==a)if(o!==s-1&&2===a){if(i.length<2||2!==n||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(2<i.length){var l=i.lastIndexOf("/");if(l!==i.length-1){n=-1===l?(i="",0):(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(2===i.length||1===i.length){i="",o=s,a=n=0;continue}t&&(0<i.length?i+="/..":i="..",n=2)}else 0<i.length?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),n=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return i}(e,!1)).length&&i&&(e+="/"),r?"/"+e:t+e)},isAbsolute:function(e){return ot(e),e=this.toPosix(e),!!this.hasProtocol(e)||e.startsWith("/")},join:function(){for(var e,t=arguments,r=[],i=0;i<arguments.length;i++)r[i]=t[i];if(0===r.length)return".";for(var n=0;n<r.length;++n){var o,a=r[n];ot(a),0<a.length&&(void 0===e?e=a:(o=null!=(o=r[n-1])?o:"",this.extname(o)?e+="/../"+a:e+="/"+a))}return void 0===e?".":this.normalize(e)},dirname:function(e){if(ot(e),0===e.length)return".";for(var t=47===(e=this.toPosix(e)).charCodeAt(0),r=-1,i=!0,n=this.getProtocol(e),o=e,a=(e=e.slice(n.length)).length-1;1<=a;--a)if(47===e.charCodeAt(a)){if(!i){r=a;break}}else i=!1;return-1===r?t?"/":this.isUrl(o)?n+e:n:t&&1===r?"//":n+e.slice(0,r)},rootname:function(e){ot(e);var t,r="";return r=(e=this.toPosix(e)).startsWith("/")?"/":this.getProtocol(e),this.isUrl(e)&&!(r=-1!==(t=e.indexOf("/",r.length))?e.slice(0,t):e).endsWith("/")&&(r+="/"),r},basename:function(e,t){ot(e),t&&ot(t),e=this.toPosix(e);var r=0,i=-1,n=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";for(var o=t.length-1,a=-1,s=e.length-1;0<=s;--s){var l=e.charCodeAt(s);if(47===l){if(!n){r=s+1;break}}else-1===a&&(n=!1,a=s+1),0<=o&&(l===t.charCodeAt(o)?-1==--o&&(i=s):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(s=e.length-1;0<=s;--s)if(47===e.charCodeAt(s)){if(!n){r=s+1;break}}else-1===i&&(n=!1,i=s+1);return-1===i?"":e.slice(r,i)},extname:function(e){ot(e);for(var t=-1,r=0,i=-1,n=!0,o=0,a=(e=this.toPosix(e)).length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?"":e.slice(t,i)},parse:function(e){ot(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){(e=this.toPosix(e)).charCodeAt(0);for(var r,i,n=this.isAbsolute(e),o=(t.root=this.rootname(e),i=n||this.hasProtocol(e)?1:0,-1),a=0,s=-1,l=!0,u=e.length-1,h=0;i<=u;--u){if(47===(r=e.charCodeAt(u))){if(l)continue;a=u+1;break}-1===s&&(l=!1,s=u+1),46===r?-1===o?o=u:1!==h&&(h=1):-1!==o&&(h=-1)}-1===o||-1===s||0===h||1===h&&o===s-1&&o===a+1?-1!==s&&(t.base=t.name=0===a&&n?e.slice(1,s):e.slice(a,s)):(0===a&&n?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(a,o),t.base=e.slice(a,s)),t.ext=e.slice(o,s)),t.dir=this.dirname(e)}return t},sep:"/",delimiter:":"},ut=(R.RETINA_PREFIX=/@([0-9\.]+)x/,R.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1);function ht(e){var t;ut||(-1<R.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")?(t=globalThis.console).log.apply(t,["\n %c %c %c PixiJS 6.5.5 - ✰ "+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;"]):globalThis.console&&globalThis.console.log("PixiJS 6.5.5 - "+e+" - http://www.pixijs.com/"),ut=!0)}function ct(){return st=void 0===st?function(){var e,t,r,i,n={stencil:!0,failIfMajorPerformanceCaveat:R.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{return R.ADAPTER.getWebGLRenderingContext()?(r=!(!(t=(e=R.ADAPTER.createCanvas()).getContext("webgl",n)||e.getContext("experimental-webgl",n))||!t.getContextAttributes().stencil),t&&(i=t.getExtension("WEBGL_lose_context"))&&i.loseContext(),t=null,r):!1}catch(e){return!1}}():st}var ft={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function pt(e,t){return(t=void 0===t?[]:t)[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t}function dt(e){e=e.toString(16);return"#"+("000000".substring(0,6-e.length)+e)}function mt(e){return"string"==typeof e&&"#"===(e=ft[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)}var _t=function(){for(var e=[],t=[],r=0;r<32;r++)t[e[r]=r]=r;e[$.BLEND_MODES.NORMAL_NPM]=$.BLEND_MODES.NORMAL,e[$.BLEND_MODES.ADD_NPM]=$.BLEND_MODES.ADD,e[$.BLEND_MODES.SCREEN_NPM]=$.BLEND_MODES.SCREEN,t[$.BLEND_MODES.NORMAL]=$.BLEND_MODES.NORMAL_NPM,t[$.BLEND_MODES.ADD]=$.BLEND_MODES.ADD_NPM,t[$.BLEND_MODES.SCREEN]=$.BLEND_MODES.SCREEN_NPM;var i=[];return i.push(t),i.push(e),i}();function gt(e,t){return _t[t?1:0][e]}function vt(e,t,r,i){return 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]),r[3]=t,r}function yt(e,t){return 1===t?(255*t<<24)+e:0===t?0:(255*t<<24)+(((e>>16&255)*t+.5|0)<<16)+(((e>>8&255)*t+.5|0)<<8)+((255&e)*t+.5|0)}function bt(e,t,r,i){return(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),r[3]=t,r}function xt(e,t){var r=6*e;if((t=(t=void 0===t?null:t)||new Uint16Array(r)).length!==r)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+r);for(var i=0,n=0;i<r;i+=6,n+=4)t[i+0]=n+0,t[i+1]=n+1,t[i+2]=n+2,t[i+3]=n+0,t[i+4]=n+2,t[i+5]=n+3;return t}function Tt(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var wt={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function Et(e){return e+=0===e?1:0,--e,(e=(e=(e=(e=(e|=e>>>1)|e>>>2)|e>>>4)|e>>>8)|e>>>16)+1}function St(e){return!(e&e-1||!e)}function At(e){var t=(65535<e?1:0)<<4,r=(255<(e>>>=t)?1:0)<<3;return(t|=r)|(r=(15<(e>>>=r)?1:0)<<2)|(r=(3<(e>>>=r)?1:0)<<1)|(e>>>=r)>>1}function kt(e,t,r){var i=e.length;if(!(i<=t||0===r)){for(var n=i-(r=i<t+r?i-t:r),o=t;o<n;++o)e[o]=e[o+r];e.length=n}}function Ot(e){return 0===e?0:e<0?-1:1}var Pt=0;function Rt(){return++Pt}var Ct={};function Mt(e,t,r){var i;void 0===r&&(r=3),Ct[t]||(void 0===(i=(new Error).stack)?console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e):(i=i.split("\n").splice(r).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+"\nDeprecated since v"+e),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e),console.warn(i))),Ct[t]=!0)}var It={},Dt=Object.create(null),Lt=Object.create(null);Nt.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},Nt.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},Nt.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(Nt.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0});var Ft=Nt;function Nt(e,t,r){this.canvas=R.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=r||R.RESOLUTION,this.resize(e,t)}function zt(e){for(var t,r,i=e.width,n=e.height,e=e.getContext("2d"),o=e.getImageData(0,0,i,n).data,a=o.length,s={top:null,left:null,right:null,bottom:null},l=null,u=0;u<a;u+=4)0!==o[u+3]&&(t=u/4%i,r=~~(u/4/i),null===s.top&&(s.top=r),(null===s.left||t<s.left)&&(s.left=t),(null===s.right||s.right<t)&&(s.right=1+t),(null===s.bottom||s.bottom<r)&&(s.bottom=r));return null!==s.top&&(l=e.getImageData(s.left,s.top,i=s.right-s.left,n=s.bottom-s.top+1)),{height:n,width:i,data:l}}var Bt,jt=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function Ut(e,t){if(void 0===t&&(t=globalThis.location),0===e.indexOf("data:"))return"";t=t||globalThis.location,(Bt=Bt||document.createElement("a")).href=e;var e=nt.parse(Bt.href),r=!e.port&&""===t.port||e.port===t.port;return e.hostname===t.hostname&&r&&e.protocol===t.protocol?"":"anonymous"}function Gt(e,t){e=R.RETINA_PREFIX.exec(e);return e?parseFloat(e[1]):void 0!==t?t:1}var Xt={__proto__:null,BaseTextureCache:Lt,CanvasRenderTarget:Ft,DATA_URI:jt,ProgramCache:It,TextureCache:Dt,clearTextureCache:function(){for(var e in Dt)delete Dt[e];for(e in Lt)delete Lt[e]},correctBlendMode:gt,createIndicesForQuads:xt,decomposeDataUri:function(e){if(e=jt.exec(e))return{mediaType:e[1]?e[1].toLowerCase():void 0,subType:e[2]?e[2].toLowerCase():void 0,charset:e[3]?e[3].toLowerCase():void 0,encoding:e[4]?e[4].toLowerCase():void 0,data:e[5]}},deprecation:Mt,destroyTextureCache:function(){for(var e in Dt)Dt[e].destroy();for(e in Lt)Lt[e].destroy()},determineCrossOrigin:Ut,getBufferType:Tt,getResolutionOfUrl:Gt,hex2rgb:pt,hex2string:dt,interleaveTypedArrays:function(e,t){for(var r=0,i=0,n={},o=0;o<e.length;o++)i+=t[o],r+=e[o].length;for(var a=new ArrayBuffer(4*r),s=null,l=0,o=0;o<e.length;o++){var u=t[o],h=e[o],c=Tt(h);n[c]||(n[c]=new wt[c](a));for(var s=n[c],f=0;f<h.length;f++)s[(f/u|0)*i+l+f%u]=h[f];l+=u}return new Float32Array(a)},isPow2:St,isWebGLSupported:ct,log2:At,nextPow2:Et,path:lt,premultiplyBlendMode:_t,premultiplyRgba:vt,premultiplyTint:yt,premultiplyTintToRgba:bt,removeItems:kt,rgb2hex:function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},sayHello:ht,sign:Ot,skipHello:function(){ut=!0},string2hex:mt,trimCanvas:zt,uid:Rt,url:nt,isMobile:he,EventEmitter:re,earcut:pe},Ht=2*Math.PI,Yt=180/Math.PI,Wt=Math.PI/180,ee=($.SHAPES=void 0,(ie=$.SHAPES||($.SHAPES={}))[ie.POLY=0]="POLY",ie[ie.RECT=1]="RECT",ie[ie.CIRC=2]="CIRC",ie[ie.ELIP=3]="ELIP",ie[ie.RREC=4]="RREC",qt.prototype.clone=function(){return new qt(this.x,this.y)},qt.prototype.copyFrom=function(e){return this.set(e.x,e.y),this},qt.prototype.copyTo=function(e){return e.set(this.x,this.y),e},qt.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},qt.prototype.set=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=e),this.x=e,this.y=t,this},qt.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},qt);function qt(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.x=0,this.y=0,this.x=e,this.y=t}var Vt=[new ee,new ee,new ee,new ee],w=(Object.defineProperty(Kt.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(Kt.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(Kt.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(Kt.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(Kt,"EMPTY",{get:function(){return new Kt(0,0,0,0)},enumerable:!1,configurable:!0}),Kt.prototype.clone=function(){return new Kt(this.x,this.y,this.width,this.height)},Kt.prototype.copyFrom=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},Kt.prototype.copyTo=function(e){return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},Kt.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)},Kt.prototype.intersects=function(e,t){var r,i,n,o,a,s,l,u,h,c,f,p,d;return t?(r=this.left,i=this.right,n=this.top,o=this.bottom,!(i<=r||o<=n)&&(a=Vt[0].set(e.left,e.top),d=Vt[1].set(e.left,e.bottom),s=Vt[2].set(e.right,e.top),l=Vt[3].set(e.right,e.bottom),!(s.x<=a.x||d.y<=a.y)&&(0!==(u=Math.sign(t.a*t.d-t.b*t.c))&&(t.apply(a,a),t.apply(d,d),t.apply(s,s),t.apply(l,l),!(Math.max(a.x,d.x,s.x,l.x)<=r||Math.min(a.x,d.x,s.x,l.x)>=i||Math.max(a.y,d.y,s.y,l.y)<=n||Math.min(a.y,d.y,s.y,l.y)>=o)&&(h=(t=u*(d.y-a.y))*r+(d=u*(a.x-d.x))*n,c=t*i+d*n,f=t*r+d*o,p=t*i+d*o,!(Math.max(h,c,f,p)<=t*a.x+d*a.y||Math.min(h,c,f,p)>=t*l.x+d*l.y)&&(f=(h=u*(a.y-s.y))*r+(c=u*(s.x-a.x))*n,p=h*i+c*n,t=h*r+c*o,d=h*i+c*o,!(Math.max(f,p,t,d)<=h*a.x+c*a.y||Math.min(f,p,t,d)>=h*l.x+c*l.y))))))):(u=(this.x<e.x?e:this).x,!((this.right>e.right?e:this).right<=u)&&(this.y<e.y?e:this).y<(this.bottom>e.bottom?e:this).bottom)},Kt.prototype.pad=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=e),this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t,this},Kt.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),e=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(r-t,0),this.y=i,this.height=Math.max(e-i,0),this},Kt.prototype.ceil=function(e,t){void 0===e&&(e=1),void 0===t&&(t=.001);var r=Math.ceil((this.x+this.width-t)*e)/e,i=Math.ceil((this.y+this.height-t)*e)/e;return 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,this},Kt.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),e=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=r-t,this.y=i,this.height=e-i,this},Kt.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},Kt);function Kt(e,t,r,i){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=Number(e),this.y=Number(t),this.width=Number(r),this.height=Number(i),this.type=$.SHAPES.RECT}Zt.prototype.clone=function(){return new Zt(this.x,this.y,this.radius)},Zt.prototype.contains=function(e,t){var r;return!(this.radius<=0)&&(r=this.radius*this.radius,e=this.x-e,t=this.y-t,(e*=e)+(t*=t)<=r)},Zt.prototype.getBounds=function(){return new w(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},Zt.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"};var Jt=Zt;function Zt(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),this.x=e=void 0===e?0:e,this.y=t,this.radius=r,this.type=$.SHAPES.CIRC}$t.prototype.clone=function(){return new $t(this.x,this.y,this.width,this.height)},$t.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e=(e-this.x)/this.width,t=(t-this.y)/this.height,(e*=e)+(t*=t)<=1)},$t.prototype.getBounds=function(){return new w(this.x-this.width,this.y-this.height,this.width,this.height)},$t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"};var Qt=$t;function $t(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=e=void 0===e?0:e,this.y=t,this.width=r,this.height=i,this.type=$.SHAPES.ELIP}tr.prototype.clone=function(){var e=new tr(this.points.slice());return e.closeStroke=this.closeStroke,e},tr.prototype.contains=function(e,t){for(var r=!1,i=this.points.length/2,n=0,o=i-1;n<i;o=n++){var a=this.points[2*n],s=this.points[2*n+1],l=this.points[2*o],u=this.points[2*o+1];t<s!=t<u&&e<(t-s)/(u-s)*(l-a)+a&&(r=!r)}return r},tr.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce(function(e,t){return e+", "+t},"")+"]"};var er=tr;function tr(){for(var e=arguments,t=[],r=0;r<arguments.length;r++)t[r]=e[r];var i=Array.isArray(t[0])?t[0]:t;if("number"!=typeof i[0]){for(var n=[],o=0,a=i.length;o<a;o++)n.push(i[o].x,i[o].y);i=n}this.points=i,this.type=$.SHAPES.POLY,this.closeStroke=!0}ir.prototype.clone=function(){return new ir(this.x,this.y,this.width,this.height,this.radius)},ir.prototype.contains=function(e,t){if(!(this.width<=0||this.height<=0)&&e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){var r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+r&&t<=this.y+this.height-r||e>=this.x+r&&e<=this.x+this.width-r)return!0;var i=e-(this.x+r),n=t-(this.y+r),o=r*r;if(i*i+n*n<=o)return!0;if((i=e-(this.x+this.width-r))*i+n*n<=o)return!0;if(i*i+(n=t-(this.y+this.height-r))*n<=o)return!0;if((i=e-(this.x+r))*i+n*n<=o)return!0}return!1},ir.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"};var rr=ir;function ir(e,t,r,i,n){void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===n&&(n=20),this.x=e=void 0===e?0:e,this.y=t,this.width=r,this.height=i,this.radius=n,this.type=$.SHAPES.RREC}or.prototype.clone=function(e,t){return new or(e=void 0===e?this.cb:e,t=void 0===t?this.scope:t,this._x,this._y)},or.prototype.set=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=e),this._x===e&&this._y===t||(this._x=e,this._y=t,this.cb.call(this.scope)),this},or.prototype.copyFrom=function(e){return this._x===e.x&&this._y===e.y||(this._x=e.x,this._y=e.y,this.cb.call(this.scope)),this},or.prototype.copyTo=function(e){return e.set(this._x,this._y),e},or.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},or.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(or.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(or.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0});var nr=or;function or(e,t,r,i){void 0===i&&(i=0),this._x=r=void 0===r?0:r,this._y=i,this.cb=e,this.scope=t}sr.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]},sr.prototype.set=function(e,t,r,i,n,o){return this.a=e,this.b=t,this.c=r,this.d=i,this.tx=n,this.ty=o,this},sr.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));t=t||this.array;return e?(t[0]=this.a,t[1]=this.b,t[2]=0,t[3]=this.c,t[4]=this.d,t[5]=0,t[6]=this.tx,t[7]=this.ty):(t[0]=this.a,t[1]=this.c,t[2]=this.tx,t[3]=this.b,t[4]=this.d,t[5]=this.ty,t[6]=0,t[7]=0),t[8]=1,t},sr.prototype.apply=function(e,t){t=t||new ee;var r=e.x,e=e.y;return t.x=this.a*r+this.c*e+this.tx,t.y=this.b*r+this.d*e+this.ty,t},sr.prototype.applyInverse=function(e,t){t=t||new ee;var r=1/(this.a*this.d+this.c*-this.b),i=e.x,e=e.y;return t.x=this.d*r*i+-this.c*r*e+(this.ty*this.c-this.tx*this.d)*r,t.y=this.a*r*e+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,t},sr.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},sr.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},sr.prototype.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),r=this.a,i=this.c,n=this.tx;return this.a=r*t-this.b*e,this.b=r*e+this.b*t,this.c=i*t-this.d*e,this.d=i*e+this.d*t,this.tx=n*t-this.ty*e,this.ty=n*e+this.ty*t,this},sr.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},sr.prototype.setTransform=function(e,t,r,i,n,o,a,s,l){return this.a=Math.cos(a+l)*n,this.b=Math.sin(a+l)*n,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,this.tx=e-(r*this.a+i*this.c),this.ty=t-(r*this.b+i*this.d),this},sr.prototype.prepend=function(e){var t,r,i=this.tx;return 1===e.a&&0===e.b&&0===e.c&&1===e.d||(t=this.a,r=this.c,this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d),this.tx=i*e.a+this.ty*e.c+e.tx,this.ty=i*e.b+this.ty*e.d+e.ty,this},sr.prototype.decompose=function(e){var t=this.a,r=this.b,i=this.c,n=this.d,o=e.pivot,a=-Math.atan2(-i,n),s=Math.atan2(r,t),l=Math.abs(a+s);return l<1e-5||Math.abs(Ht-l)<1e-5?(e.rotation=s,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=a,e.skew.y=s),e.scale.x=Math.sqrt(t*t+r*r),e.scale.y=Math.sqrt(i*i+n*n),e.position.x=this.tx+(o.x*t+o.y*i),e.position.y=this.ty+(o.x*r+o.y*n),e},sr.prototype.invert=function(){var e=this.a,t=this.b,r=this.c,i=this.d,n=this.tx,o=e*i-t*r;return this.a=i/o,this.b=-t/o,this.c=-r/o,this.d=e/o,this.tx=(r*this.ty-i*n)/o,this.ty=-(e*this.ty-t*n)/o,this},sr.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},sr.prototype.clone=function(){var e=new sr;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},sr.prototype.copyTo=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},sr.prototype.copyFrom=function(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this},sr.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(sr,"IDENTITY",{get:function(){return new sr},enumerable:!1,configurable:!0}),Object.defineProperty(sr,"TEMP_MATRIX",{get:function(){return new sr},enumerable:!1,configurable:!0});var ar=sr;function sr(e,t,r,i,n,o){void 0===e&&(e=1),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=1),void 0===n&&(n=0),void 0===o&&(o=0),this.array=null,this.a=e,this.b=t,this.c=r,this.d=i,this.tx=n,this.ty=o}var lr=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ur=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],hr=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],cr=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],fr=[],pr=[],dr=Math.sign;for(var mr=0;mr<16;mr++){var _r=[];fr.push(_r);for(var gr=0;gr<16;gr++)for(var vr=dr(lr[mr]*lr[gr]+hr[mr]*ur[gr]),yr=dr(ur[mr]*lr[gr]+cr[mr]*ur[gr]),br=dr(lr[mr]*hr[gr]+hr[mr]*cr[gr]),xr=dr(ur[mr]*hr[gr]+cr[mr]*cr[gr]),Tr=0;Tr<16;Tr++)if(lr[Tr]===vr&&ur[Tr]===yr&&hr[Tr]===br&&cr[Tr]===xr){_r.push(Tr);break}}for(mr=0;mr<16;mr++){var wr=new ar;wr.set(lr[mr],ur[mr],hr[mr],cr[mr],0,0),pr.push(wr)}var Er={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(e){return lr[e]},uY:function(e){return ur[e]},vX:function(e){return hr[e]},vY:function(e){return cr[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return fr[e][t]},sub:function(e,t){return fr[e][Er.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?Er.S:Er.N:2*Math.abs(t)<=Math.abs(e)?0<e?Er.E:Er.W:0<t?0<e?Er.SE:Er.SW:0<e?Er.NE:Er.NW},matrixAppendRotationInv:function(e,t,r,i){void 0===r&&(r=0),void 0===i&&(i=0);t=pr[Er.inv(t)];t.tx=r,t.ty=i,e.append(t)}},Sr=(Ar.prototype.onChange=function(){this._localID++},Ar.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++},Ar.prototype.toString=function(){return"[@pixi/math:Transform position=("+this.position.x+", "+this.position.y+") rotation="+this.rotation+" scale=("+this.scale.x+", "+this.scale.y+") skew=("+this.skew.x+", "+this.skew.y+") ]"},Ar.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)},Ar.prototype.updateTransform=function(e){var t,r,i=this.localTransform;this._localID!==this._currentLocalID&&(i.a=this._cx*this.scale.x,i.b=this._sx*this.scale.x,i.c=this._cy*this.scale.y,i.d=this._sy*this.scale.y,i.tx=this.position.x-(this.pivot.x*i.a+this.pivot.y*i.c),i.ty=this.position.y-(this.pivot.x*i.b+this.pivot.y*i.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID&&(t=e.worldTransform,(r=this.worldTransform).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._parentID=e._worldID,this._worldID++)},Ar.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},Object.defineProperty(Ar.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())},enumerable:!1,configurable:!0}),Ar.IDENTITY=new Ar,Ar);function Ar(){this.worldTransform=new ar,this.localTransform=new ar,this.position=new nr(this.onChange,this,0,0),this.scale=new nr(this.onChange,this,1,1),this.pivot=new nr(this.onChange,this,0,0),this.skew=new nr(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}R.SORTABLE_CHILDREN=!1;Or.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},Or.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},Or.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?w.EMPTY:((e=e||new w(0,0,1,1)).x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},Or.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)},Or.prototype.addPointMatrix=function(e,t){var r=e.a,i=e.b,n=e.c,o=e.d,a=e.tx,e=e.ty,r=r*t.x+n*t.y+a,n=i*t.x+o*t.y+e;this.minX=Math.min(this.minX,r),this.maxX=Math.max(this.maxX,r),this.minY=Math.min(this.minY,n),this.maxY=Math.max(this.maxY,n)},Or.prototype.addQuad=function(e){var t=this.minX,r=this.minY,i=this.maxX,n=this.maxY,o=e[0],a=e[1],t=o<t?o:t,r=a<r?a:r,i=i<o?o:i,n=n<a?a:n;t=(o=e[2])<t?o:t,r=(a=e[3])<r?a:r,i=i<o?o:i,n=n<a?a:n,t=(o=e[4])<t?o:t,r=(a=e[5])<r?a:r,i=i<o?o:i,n=n<a?a:n,o=e[6],r=(a=e[7])<r?a:r,i=i<o?o:i,n=n<a?a:n,this.minX=o<t?o:t,this.minY=r,this.maxX=i,this.maxY=n},Or.prototype.addFrame=function(e,t,r,i,n){this.addFrameMatrix(e.worldTransform,t,r,i,n)},Or.prototype.addFrameMatrix=function(e,t,r,i,n){var o=e.a,a=e.b,s=e.c,l=e.d,u=e.tx,e=e.ty,h=o*t+s*r+u,c=a*t+l*r+e,f=h<(f=this.minX)?h:f,p=c<(p=this.minY)?c:p,d=(d=this.maxX)<h?h:d,m=(m=this.maxY)<c?c:m;f=(h=o*i+s*r+u)<f?h:f,p=(c=a*i+l*r+e)<p?c:p,d=d<h?h:d,m=m<c?c:m,f=(h=o*t+s*n+u)<f?h:f,p=(c=a*t+l*n+e)<p?c:p,m=m<c?c:m,p=(c=a*i+l*n+e)<p?c:p,d=(d=d<h?h:d)<(h=o*i+s*n+u)?h:d,m=m<c?c:m,this.minX=h<f?h:f,this.minY=p,this.maxX=d,this.maxY=m},Or.prototype.addVertexData=function(e,t,r){for(var i=this.minX,n=this.minY,o=this.maxX,a=this.maxY,s=t;s<r;s+=2)var l=e[s],u=e[s+1],i=l<i?l:i,n=u<n?u:n,o=o<l?l:o,a=a<u?u:a;this.minX=i,this.minY=n,this.maxX=o,this.maxY=a},Or.prototype.addVertices=function(e,t,r,i){this.addVerticesMatrix(e.worldTransform,t,r,i)},Or.prototype.addVerticesMatrix=function(e,t,r,i,n,o){void 0===n&&(n=0),void 0===o&&(o=n);for(var a=e.a,s=e.b,l=e.c,u=e.d,h=e.tx,c=e.ty,f=this.minX,p=this.minY,d=this.maxX,m=this.maxY,_=r;_<i;_+=2)var g=t[_],v=t[_+1],y=a*g+l*v+h,v=u*v+s*g+c,f=Math.min(f,y-n),d=Math.max(d,y+n),p=Math.min(p,v-o),m=Math.max(m,v+o);this.minX=f,this.minY=p,this.maxX=d,this.maxY=m},Or.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},Or.prototype.addBoundsMask=function(e,t){var r,i,n,o=(e.minX>t.minX?e:t).minX,a=(e.minY>t.minY?e:t).minY,s=(e.maxX<t.maxX?e:t).maxX,e=(e.maxY<t.maxY?e:t).maxY;o<=s&&a<=e&&(t=this.minX,r=this.minY,i=this.maxX,n=this.maxY,this.minX=o<t?o:t,this.minY=a<r?a:r,this.maxX=i<s?s:i,this.maxY=n<e?e:n)},Or.prototype.addBoundsMatrix=function(e,t){this.addFrameMatrix(t,e.minX,e.minY,e.maxX,e.maxY)},Or.prototype.addBoundsArea=function(e,t){var r,i,n,o=e.minX>t.x?e.minX:t.x,a=e.minY>t.y?e.minY:t.y,s=e.maxX<t.x+t.width?e.maxX:t.x+t.width,e=e.maxY<t.y+t.height?e.maxY:t.y+t.height;o<=s&&a<=e&&(t=this.minX,r=this.minY,i=this.maxX,n=this.maxY,this.minX=o<t?o:t,this.minY=a<r?a:r,this.maxX=i<s?s:i,this.maxY=n<e?e:n)},Or.prototype.pad=function(e,t){void 0===e&&(e=0),void 0===t&&(t=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t)},Or.prototype.addFramePad=function(e,t,r,i,n,o){t-=o,r+=n,i+=o,this.minX=this.minX<(e-=n)?this.minX:e,this.maxX=this.maxX>r?this.maxX:r,this.minY=this.minY<t?this.minY:t,this.maxY=this.maxY>i?this.maxY:i};var kr=Or;function Or(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}var Pr=function(e,t){return(Pr=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 Rr(e,t){function r(){this.constructor=e}Pr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Rr(l,Cr=re),l.mixin=function(e){for(var t=Object.keys(e),r=0;r<t.length;++r){var i=t[r];Object.defineProperty(l.prototype,i,Object.getOwnPropertyDescriptor(e,i))}},Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),l.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},l.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},l.prototype.getBounds=function(e,t){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),t||(this._boundsRect||(this._boundsRect=new w),t=this._boundsRect),this._bounds.getRectangle(t)},l.prototype.getLocalBounds=function(e){e||(this._localBoundsRect||(this._localBoundsRect=new w),e=this._localBoundsRect),this._localBounds||(this._localBounds=new kr);var t=this.transform,r=this.parent,i=(this.parent=null,this.transform=this._tempDisplayObjectParent.transform,this._bounds),n=this._boundsID,e=(this._bounds=this._localBounds,this.getBounds(!1,e));return this.parent=r,this.transform=t,this._bounds=i,this._bounds.updateID+=this._boundsID-n,e},l.prototype.toGlobal=function(e,t,r){return(r=void 0===r?!1:r)||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,t)},l.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)},l.prototype.setParent=function(e){if(e&&e.addChild)return e.addChild(this),e;throw new Error("setParent: Argument must be a Container")},l.prototype.setTransform=function(e,t,r,i,n,o,a,s,l){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===i&&(i=1),void 0===n&&(n=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0),void 0===l&&(l=0),this.position.x=e=void 0===e?0:e,this.position.y=t,this.scale.x=r||1,this.scale.y=i||1,this.rotation=n,this.skew.x=o,this.skew.y=a,this.pivot.x=s,this.pivot.y=l,this},l.prototype.destroy=function(e){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(l.prototype,"_tempDisplayObjectParent",{get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new Dr),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),l.prototype.enableTempParent=function(){var e=this.parent;return this.parent=this._tempDisplayObjectParent,e},l.prototype.disableTempParent=function(e){this.parent=e},Object.defineProperty(l.prototype,"x",{get:function(){return this.position.x},set:function(e){this.transform.position.x=e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"y",{get:function(){return this.position.y},set:function(e){this.transform.position.y=e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"position",{get:function(){return this.transform.position},set:function(e){this.transform.position.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scale",{get:function(){return this.transform.scale},set:function(e){this.transform.scale.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"skew",{get:function(){return this.transform.skew},set:function(e){this.transform.skew.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"angle",{get:function(){return this.transform.rotation*Yt},set:function(e){this.transform.rotation=e*Wt},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"zIndex",{get:function(){return this._zIndex},set:function(e){this._zIndex=e,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"worldVisible",{get:function(){var e=this;do{if(!e.visible)return!1}while(e=e.parent);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"mask",{get:function(){return this._mask},set:function(e){var t;this._mask!==e&&(this._mask&&(t=this._mask.isMaskData?this._mask.maskObject:this._mask)&&(t._maskRefCount--,0===t._maskRefCount&&(t.renderable=!0,t.isMask=!1)),this._mask=e,this._mask&&(t=this._mask.isMaskData?this._mask.maskObject:this._mask)&&(0===t._maskRefCount&&(t.renderable=!1,t.isMask=!0),t._maskRefCount++))},enumerable:!1,configurable:!0});var Cr,r=l;function l(){var e=Cr.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new Sr,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new kr,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}Rr(Lr,Mr=r);var Mr,Ir,Dr=Lr;function Lr(){var e=null!==Mr&&Mr.apply(this,arguments)||this;return e.sortDirty=null,e}function Fr(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}r.prototype.displayObjectUpdateTransform=r.prototype.updateTransform,(i={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",i[i.SRC_IN=21]="SRC_IN",i[i.SRC_OUT=22]="SRC_OUT",i[i.SRC_ATOP=23]="SRC_ATOP",i[i.DST_OVER=24]="DST_OVER",i[i.DST_IN=25]="DST_IN",i[i.DST_OUT=26]="DST_OUT",i[i.DST_ATOP=27]="DST_ATOP",i[i.ERASE=26]="ERASE",i[i.SUBTRACT=28]="SUBTRACT",i[i.XOR=29]="XOR",(ne={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",ne[ne.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",ne[ne.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",ne[ne.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(oe={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",oe[oe.CLEAR=1]="CLEAR",oe[oe.BLIT=2]="BLIT",(n=Ir=Ir||{})[n.NONE=0]="NONE",n[n.SCISSOR=1]="SCISSOR",n[n.STENCIL=2]="STENCIL",n[n.SPRITE=3]="SPRITE",n[n.COLOR=4]="COLOR";Rr(u,Nr=r),u.prototype.onChildrenChange=function(e){},u.prototype.addChild=function(){for(var e=arguments,t=[],r=0;r<arguments.length;r++)t[r]=e[r];if(1<t.length)for(var i=0;i<t.length;i++)this.addChild(t[i]);else{var n=t[0];n.parent&&n.parent.removeChild(n),(n.parent=this).sortDirty=!0,n.transform._parentID=-1,this.children.push(n),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",n,this,this.children.length-1),n.emit("added",this)}return t[0]},u.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).sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e},u.prototype.swapChildren=function(e,t){var r,i;e!==t&&(r=this.getChildIndex(e),i=this.getChildIndex(t),this.children[r]=t,this.children[i]=e,this.onChildrenChange(r<i?r:i))},u.prototype.getChildIndex=function(e){e=this.children.indexOf(e);if(-1===e)throw new Error("The supplied DisplayObject must be a child of the caller");return e},u.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);kt(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)},u.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},u.prototype.removeChild=function(){for(var e=arguments,t=[],r=0;r<arguments.length;r++)t[r]=e[r];if(1<t.length)for(var i=0;i<t.length;i++)this.removeChild(t[i]);else{var n=t[0],o=this.children.indexOf(n);if(-1===o)return null;n.parent=null,n.transform._parentID=-1,kt(this.children,o,1),this._boundsID++,this.onChildrenChange(o),n.emit("removed",this),this.emit("childRemoved",n,this,o)}return t[0]},u.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,kt(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t},u.prototype.removeChildren=function(e,t){var r=e=void 0===e?0:e,i=(t=void 0===t?this.children.length:t)-r;if(0<i&&i<=t){for(var n=this.children.splice(r,i),o=0;o<n.length;++o)n[o].parent=null,n[o].transform&&(n[o].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(o=0;o<n.length;++o)n[o].emit("removed",this),this.emit("childRemoved",n[o],this,o);return n}if(0==i&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},u.prototype.sortChildren=function(){for(var e=!1,t=0,r=this.children.length;t<r;++t){var i=this.children[t];i._lastSortedIndex=t,e||0===i.zIndex||(e=!0)}e&&1<this.children.length&&this.children.sort(Fr),this.sortDirty=!1},u.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),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()}},u.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var t,r=this.children[e];r.visible&&r.renderable&&(r.calculateBounds(),r._mask?(t=r._mask.isMaskData?r._mask.maskObject:r._mask)?(t.calculateBounds(),this._bounds.addBoundsMask(r._bounds,t._bounds)):this._bounds.addBounds(r._bounds):r.filterArea?this._bounds.addBoundsArea(r._bounds,r.filterArea):this._bounds.addBounds(r._bounds))}this._bounds.updateID=this._boundsID},u.prototype.getLocalBounds=function(e,t){void 0===t&&(t=!1);e=Nr.prototype.getLocalBounds.call(this,e);if(!t)for(var r=0,i=this.children.length;r<i;++r){var n=this.children[r];n.visible&&n.updateTransform()}return e},u.prototype._calculateBounds=function(){},u.prototype._renderWithCulling=function(e){var t,r,i=e.renderTexture.sourceFrame;if(0<i.width&&0<i.height){if(this.cullArea?(t=this.cullArea,r=this.worldTransform):this._render!==u.prototype._render&&(t=this.getBounds(!0)),t&&i.intersects(t,r))this._render(e);else if(this.cullArea)return;for(var n=0,o=this.children.length;n<o;++n){var a=this.children[n],s=a.cullable;a.cullable=s||!this.cullArea,a.render(e),a.cullable=s}}},u.prototype.render=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(var t=0,r=this.children.length;t<r;++t)this.children[t].render(e)}},u.prototype.renderAdvanced=function(e){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])}var n=t&&this._enabledFilters&&this._enabledFilters.length||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==Ir.NONE));if(n&&e.batch.flush(),t&&this._enabledFilters&&this._enabledFilters.length&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(var i=0,o=this.children.length;i<o;++i)this.children[i].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&this._enabledFilters&&this._enabledFilters.length&&e.filter.pop()},u.prototype._render=function(e){},u.prototype.destroy=function(e){Nr.prototype.destroy.call(this),this.sortDirty=!1;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)},Object.defineProperty(u.prototype,"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},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"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},enumerable:!1,configurable:!0});var Nr,zr=u;function u(){var e=Nr.call(this)||this;return e.children=[],e.sortableChildren=R.SORTABLE_CHILDREN,e.sortDirty=!1,e}zr.prototype.containerUpdateTransform=zr.prototype.updateTransform;function Br(e){if("function"==typeof e||"object"==typeof e&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");var t="object"!=typeof e.extension?{type:e.extension}:e.extension;e=jr(jr({},t),{ref:e})}if("object"!=typeof e)throw new Error("Invalid extension type");return"string"==typeof(e=jr({},e)).type&&(e.type=[e.type]),e}var jr=function(){return(jr=Object.assign||function(e){for(var t,r=arguments,i=1,n=arguments.length;i<n;i++)for(var o in t=r[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ur=($.ExtensionType=void 0,(o=$.ExtensionType||($.ExtensionType={})).Application="application",o.RendererPlugin="renderer-webgl-plugin",o.CanvasRendererPlugin="renderer-canvas-plugin",o.Loader="loader",o.LoadParser="load-parser",o.ResolveParser="resolve-parser",o.CacheParser="cache-parser",o.DetectionParser="detection-parser",{_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var e=arguments,i=this,t=[],r=0;r<arguments.length;r++)t[r]=e[r];return t.map(Br).forEach(function(r){r.type.forEach(function(e){var t;return null==(e=(t=i._removeHandlers)[e])?void 0:e.call(t,r)})}),this},add:function(){for(var e=arguments,n=this,t=[],r=0;r<arguments.length;r++)t[r]=e[r];return t.map(Br).forEach(function(i){i.type.forEach(function(e){var t=n._addHandlers,r=n._queue;t[e]?t[e](i):(r[e]=r[e]||[],r[e].push(i))})}),this},handle:function(e,t,r){var i=this._addHandlers=this._addHandlers||{},n=this._removeHandlers=this._removeHandlers||{};if(i[e]||n[e])throw new Error("Extension type "+e+" already has a handler");i[e]=t,n[e]=r;i=this._queue;return i[e]&&(i[e].forEach(function(e){return t(e)}),delete i[e]),this},handleByMap:function(e,t){return this.handle(e,function(e){t[e.name]=e.ref},function(e){delete t[e.name]})},handleByList:function(r,i){return this.handle(r,function(e){var t;i.push(e.ref),r===$.ExtensionType.Loader&&null!=(t=(e=e.ref).add)&&t.call(e)},function(e){e=i.indexOf(e.ref);-1!==e&&i.splice(e,1)})}}),Gr=(Xr.prototype.emit=function(e,t,r,i,n,o,a,s){if(8<arguments.length)throw new Error("max arguments reached");var l=this.name,u=this.items;this._aliasCount++;for(var h=0,c=u.length;h<c;h++)u[h][l](e,t,r,i,n,o,a,s);return u===this.items&&this._aliasCount--,this},Xr.prototype.ensureNonAliasedItems=function(){0<this._aliasCount&&1<this.items.length&&(this._aliasCount=0,this.items=this.items.slice(0))},Xr.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},Xr.prototype.remove=function(e){e=this.items.indexOf(e);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},Xr.prototype.contains=function(e){return-1!==this.items.indexOf(e)},Xr.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},Xr.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(Xr.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(Xr.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Xr);function Xr(e){this.items=[],this._name=e,this._aliasCount=0}Object.defineProperties(Gr.prototype,{dispatch:{value:Gr.prototype.emit},run:{value:Gr.prototype.emit}}),R.TARGET_FPMS=.06,$.UPDATE_PRIORITY=void 0,(a=$.UPDATE_PRIORITY||($.UPDATE_PRIORITY={}))[a.INTERACTION=50]="INTERACTION",a[a.HIGH=25]="HIGH",a[a.NORMAL=0]="NORMAL",a[a.LOW=-25]="LOW",a[a.UTILITY=-50]="UTILITY";Yr.prototype.match=function(e,t){return void 0===t&&(t=null),this.fn===e&&this.context===t},Yr.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},Yr.prototype.connect=function(e){(this.previous=e).next&&(e.next.previous=this),this.next=e.next,e.next=this},Yr.prototype.destroy=function(e){void 0===e&&(e=!1),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};var Hr=Yr;function Yr(e,t,r,i){void 0===t&&(t=null),void 0===r&&(r=0),void 0===i&&(i=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=t,this.priority=r,this.once=i}h.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},h.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},h.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},h.prototype.add=function(e,t,r){return void 0===r&&(r=$.UPDATE_PRIORITY.NORMAL),this._addListener(new Hr(e,t,r))},h.prototype.addOnce=function(e,t,r){return void 0===r&&(r=$.UPDATE_PRIORITY.NORMAL),this._addListener(new Hr(e,t,r,!0))},h.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},h.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},Object.defineProperty(h.prototype,"count",{get:function(){if(!this._head)return 0;for(var e=0,t=this._head;t=t.next;)e++;return e},enumerable:!1,configurable:!0}),h.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},h.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},h.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},h.prototype.update=function(e){var t;if((e=void 0===e?performance.now():e)>this.lastTime){if((t=this.elapsedMS=e-this.lastTime)>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){var r=e-this._lastFrame|0;if(r<this._minElapsedMS)return;this._lastFrame=e-r%this._minElapsedMS}this.deltaMS=t,this.deltaTime=this.deltaMS*R.TARGET_FPMS;for(var r=this._head,i=r.next;i;)i=i.emit(this.deltaTime);r.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e},Object.defineProperty(h.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(e){e=Math.min(this.maxFPS,e),e=Math.min(Math.max(0,e)/1e3,R.TARGET_FPMS);this._maxElapsedMS=1/e},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(e){0===e?this._minElapsedMS=0:(e=Math.max(this.minFPS,e),this._minElapsedMS=1/(e/1e3))},enumerable:!1,configurable:!0}),Object.defineProperty(h,"shared",{get:function(){var e;return h._shared||((e=h._shared=new h).autoStart=!0,e._protected=!0),h._shared},enumerable:!1,configurable:!0}),Object.defineProperty(h,"system",{get:function(){var e;return h._system||((e=h._system=new h).autoStart=!0,e._protected=!0),h._system},enumerable:!1,configurable:!0});var Wr=h;function h(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Hr(null,null,1/0),this.deltaMS=1/R.TARGET_FPMS,this.elapsedMS=1/R.TARGET_FPMS,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)))}}qr.init=function(e){var t=this;e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{set:function(e){this._ticker&&this._ticker.remove(this.render,this),(this._ticker=e)&&e.add(this.render,this,$.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}}),this.stop=function(){t._ticker.stop()},this.start=function(){t._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?Wr.shared:new Wr,e.autoStart&&this.start()},qr.destroy=function(){var e;this._ticker&&(e=this._ticker,this.ticker=null,e.destroy())},qr.extension=$.ExtensionType.Application;ae=qr;function qr(){}R.PREFER_ENV=he.any?$.ENV.WEBGL:$.ENV.WEBGL2,R.STRICT_TEXTURE_CACHE=!1;var Vr=[];function Kr(e,t){if(!e)return null;var r,i="";"string"==typeof e&&(r=/\.(\w{3,4})(?:$|\?|#)/i.exec(e))&&(i=r[1].toLowerCase());for(var n=Vr.length-1;0<=n;--n){var o=Vr[n];if(o.test&&o.test(e,i))return new o(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}var Jr=function(e,t){return(Jr=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 c(e,t){function r(){this.constructor=e}Jr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Zr=function(){return(Zr=Object.assign||function(e){for(var t,r=arguments,i=1,n=arguments.length;i<n;i++)for(var o in t=r[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};$r.prototype.bind=function(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},$r.prototype.unbind=function(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)},$r.prototype.resize=function(e,t){e===this._width&&t===this._height||(this._width=e,this._height=t,this.onResize.emit(e,t))},Object.defineProperty($r.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),$r.prototype.update=function(){this.destroyed||this.onUpdate.emit()},$r.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty($r.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty($r.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),$r.prototype.style=function(e,t,r){return!1},$r.prototype.dispose=function(){},$r.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},$r.test=function(e,t){return!1};var Qr=$r;function $r(e,t){void 0===t&&(t=0),this._width=e=void 0===e?0:e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new Gr("setRealSize"),this.onUpdate=new Gr("update"),this.onError=new Gr("onError")}c(ri,ei=Qr),ri.prototype.upload=function(e,t,r){var e=e.gl,i=(e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===$.ALPHA_MODES.UNPACK),t.realWidth),n=t.realHeight;return r.width===i&&r.height===n?e.texSubImage2D(t.target,0,0,0,i,n,t.format,r.type,this.data):(r.width=i,r.height=n,e.texImage2D(t.target,0,r.internalFormat,i,n,0,t.format,r.type,this.data)),!0},ri.prototype.dispose=function(){this.data=null},ri.test=function(e){return e instanceof Float32Array||e instanceof Uint8Array||e instanceof Uint32Array};var ei,ti=ri;function ri(e,t){var r=this,t=t||{},i=t.width,t=t.height;if(i&&t)return(r=ei.call(this,i,t)||this).data=e,r;throw new Error("BufferResource width or height invalid")}var ii,ni={scaleMode:$.SCALE_MODES.NEAREST,format:$.FORMATS.RGBA,alphaMode:$.ALPHA_MODES.NPM},C=(c(f,ii=re),Object.defineProperty(f.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),f.prototype.setStyle=function(e,t){var r;return void 0!==e&&e!==this.scaleMode&&(this.scaleMode=e,r=!0),void 0!==t&&t!==this.mipmap&&(this.mipmap=t,r=!0),r&&this.dirtyStyleId++,this},f.prototype.setSize=function(e,t,r){return r=r||this.resolution,this.setRealSize(e*r,t*r,r)},f.prototype.setRealSize=function(e,t,r){return this.resolution=r||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this},f.prototype._refreshPOT=function(){this.isPowerOfTwo=St(this.realWidth)&&St(this.realHeight)},f.prototype.setResolution=function(e){var t=this.resolution;return t!==e&&(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT()),this},f.prototype.setResource=function(e){if(this.resource!==e){if(this.resource)throw new Error("Resource can be set only once");e.bind(this),this.resource=e}return this},f.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):0<this.width&&0<this.height&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},f.prototype.onError=function(e){this.emit("error",this,e)},f.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Lt[this.cacheId],delete Dt[this.cacheId],this.cacheId=null),this.dispose(),f.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},f.prototype.dispose=function(){this.emit("dispose",this)},f.prototype.castToBaseTexture=function(){return this},f.from=function(e,t,r){void 0===r&&(r=R.STRICT_TEXTURE_CACHE);var i="string"==typeof e,n=null,n=i?e:(e._pixiId||(o=t&&t.pixiIdPrefix||"pixiid",e._pixiId=o+"_"+ ++Pt),e._pixiId),o=Lt[n];if(i&&r&&!o)throw new Error('The cacheId "'+n+'" does not exist in BaseTextureCache.');return o||((o=new f(e,t)).cacheId=n,f.addToCache(o,n)),o},f.fromBuffer=function(e,t,r,i){e=e||new Float32Array(t*r*4);var n=new ti(e,{width:t,height:r}),e=e instanceof Float32Array?$.TYPES.FLOAT:$.TYPES.UNSIGNED_BYTE;return new f(n,Object.assign(ni,i||{width:t,height:r,type:e}))},f.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),Lt[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),Lt[t]=e)},f.removeFromCache=function(e){if("string"==typeof e){var t,r=Lt[e];if(r)return-1<(t=r.textureCacheIds.indexOf(e))&&r.textureCacheIds.splice(t,1),delete Lt[e],r}else if(e&&e.textureCacheIds){for(var i=0;i<e.textureCacheIds.length;++i)delete Lt[e.textureCacheIds[i]];return e.textureCacheIds.length=0,e}return null},f._globalBatch=0,f);function f(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=ii.call(this)||this,i=(t=t||{}).alphaMode,n=t.mipmap,o=t.anisotropicLevel,a=t.scaleMode,s=t.width,l=t.height,u=t.wrapMode,h=t.format,c=t.type,f=t.target,p=t.resolution,t=t.resourceOptions;return!e||e instanceof Qr||((e=Kr(e,t)).internal=!0),r.resolution=p||R.RESOLUTION,r.width=Math.round((s||0)*r.resolution)/r.resolution,r.height=Math.round((l||0)*r.resolution)/r.resolution,r._mipmap=void 0!==n?n:R.MIPMAP_TEXTURES,r.anisotropicLevel=void 0!==o?o:R.ANISOTROPIC_LEVEL,r._wrapMode=u||R.WRAP_MODE,r._scaleMode=void 0!==a?a:R.SCALE_MODE,r.format=h||$.FORMATS.RGBA,r.type=c||$.TYPES.UNSIGNED_BYTE,r.target=f||$.TARGETS.TEXTURE_2D,r.alphaMode=void 0!==i?i:$.ALPHA_MODES.UNPACK,r.uid=++Pt,r.touched=0,r.isPowerOfTwo=!1,r._refreshPOT(),r._glTextures={},r.dirtyId=0,r.dirtyStyleId=0,r.cacheId=null,r.valid=0<s&&0<l,r.textureCacheIds=[],r.destroyed=!1,r.resource=null,r._batchEnabled=0,r._batchLocation=0,r.parentTextureArray=null,r.setResource(e),r}c(ai,oi=Qr),ai.prototype.initFromArray=function(e,t){for(var r=0;r<this.length;r++)e[r]&&(e[r].castToBaseTexture?this.addBaseTextureAt(e[r].castToBaseTexture(),r):e[r]instanceof Qr?this.addResourceAt(e[r],r):this.addResourceAt(Kr(e[r],t),r))},ai.prototype.dispose=function(){for(var e=0,t=this.length;e<t;e++)this.items[e].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},ai.prototype.addResourceAt=function(e,t){if(this.items[t])return e.valid&&!this.valid&&this.resize(e.width,e.height),this.items[t].setResource(e),this;throw new Error("Index "+t+" is out of bounds")},ai.prototype.bind=function(e){if(null!==this.baseTexture)throw new Error("Only one base texture per TextureArray is allowed");oi.prototype.bind.call(this,e);for(var t=0;t<this.length;t++)this.items[t].parentTextureArray=e,this.items[t].on("update",e.update,e)},ai.prototype.unbind=function(e){oi.prototype.unbind.call(this,e);for(var t=0;t<this.length;t++)this.items[t].parentTextureArray=null,this.items[t].off("update",e.update,e)},ai.prototype.load=function(){var e,r=this;return this._load||(e=this.items.map(function(e){return e.resource}).filter(function(e){return e}).map(function(e){return e.load()}),this._load=Promise.all(e).then(function(){var e=r.items[0],t=e.realWidth,e=e.realHeight;return r.resize(t,e),Promise.resolve(r)})),this._load};var oi,s=ai;function ai(e,t){var r=this,t=t||{},i=t.width,t=t.height;(r=oi.call(this,i,t)||this).items=[],r.itemDirtyIds=[];for(var n=0;n<e;n++){var o=new C;r.items.push(o),r.itemDirtyIds.push(-2)}return r.length=e,r._load=null,r.baseTexture=null,r}c(li,si=s),li.prototype.addBaseTextureAt=function(e,t){if(e.resource)return this.addResourceAt(e.resource,t),this;throw new Error("ArrayResource does not support RenderTexture")},li.prototype.bind=function(e){si.prototype.bind.call(this,e),e.target=$.TARGETS.TEXTURE_2D_ARRAY},li.prototype.upload=function(e,t,r){var i=this.length,n=this.itemDirtyIds,o=this.items,a=e.gl;r.dirtyId<0&&a.texImage3D(a.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,t.format,r.type,null);for(var s=0;s<i;s++){var l=o[s];n[s]<l.dirtyId&&(n[s]=l.dirtyId,l.valid&&a.texSubImage3D(a.TEXTURE_2D_ARRAY,0,0,0,s,l.resource.width,l.resource.height,1,t.format,r.type,l.resource.source))}return!0};var si,le=li;function li(e,t){var r,i=this,n=t||{},o=n.width,n=n.height,e=Array.isArray(e)?(r=e).length:e,i=si.call(this,e,{width:o,height:n})||this;return r&&i.initFromArray(r,t),i}c(ci,ui=Qr),ci.crossOrigin=function(e,t,r){void 0===r&&0!==t.indexOf("data:")?e.crossOrigin=Ut(t):!1!==r&&(e.crossOrigin="string"==typeof r?r:"anonymous")},ci.prototype.upload=function(e,t,r,i){var e=e.gl,n=t.realWidth,o=t.realHeight;if((i=i||this.source)instanceof HTMLImageElement){if(!i.complete||0===i.naturalWidth)return!1}else if(i instanceof HTMLVideoElement&&i.readyState<=1)return!1;return e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===$.ALPHA_MODES.UNPACK),this.noSubImage||t.target!==e.TEXTURE_2D||r.width!==n||r.height!==o?(r.width=n,r.height=o,e.texImage2D(t.target,0,r.internalFormat,t.format,r.type,i)):e.texSubImage2D(e.TEXTURE_2D,0,0,0,t.format,r.type,i),!0},ci.prototype.update=function(){var e,t;this.destroyed||(e=(t=this.source).naturalWidth||t.videoWidth||t.width,t=t.naturalHeight||t.videoHeight||t.height,this.resize(e,t),ui.prototype.update.call(this))},ci.prototype.dispose=function(){this.source=null};var ui,hi=ci;function ci(e){var t=this,r=e.naturalWidth||e.videoWidth||e.width,i=e.naturalHeight||e.videoHeight||e.height;return(t=ui.call(this,r,i)||this).source=e,t.noSubImage=!1,t}c(pi,fi=hi),pi.test=function(e){var t=globalThis.OffscreenCanvas;return!!(t&&e instanceof t)||globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement};var fi,p=pi;function pi(e){return fi.call(this,e)||this}c(mi,di=s),mi.prototype.bind=function(e){di.prototype.bind.call(this,e),e.target=$.TARGETS.TEXTURE_CUBE_MAP},mi.prototype.addBaseTextureAt=function(e,t,r){if(!this.items[t])throw new Error("Index "+t+" is out of bounds");if(!this.linkBaseTexture||e.parentTextureArray||0<Object.keys(e._glTextures).length){if(!e.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(e.resource,t)}else e.target=$.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this},mi.prototype.upload=function(e,t,r){for(var i=this.itemDirtyIds,n=0;n<mi.SIDES;n++){var o=this.items[n];(i[n]<o.dirtyId||r.dirtyId<t.dirtyId)&&(o.valid&&o.resource?(o.resource.upload(e,o,r),i[n]=o.dirtyId):i[n]<-1&&(e.gl.texImage2D(o.target,0,r.internalFormat,t.realWidth,t.realHeight,0,t.format,r.type,null),i[n]=-1))}return!0},mi.test=function(e){return Array.isArray(e)&&e.length===mi.SIDES},mi.SIDES=6;var di,se=mi;function mi(e,t){var r=this,i=t||{},n=i.width,o=i.height,a=i.autoLoad,i=i.linkBaseTexture;if(e&&e.length!==mi.SIDES)throw new Error("Invalid length. Got "+e.length+", expected 6");for(var r=di.call(this,6,{width:n,height:o})||this,s=0;s<mi.SIDES;s++)r.items[s].target=$.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X+s;return r.linkBaseTexture=!1!==i,e&&r.initFromArray(e,t),!1!==a&&r.load(),r}c(vi,_i=hi),vi.prototype.load=function(e){var n=this;return this._load||(void 0!==e&&(this.createBitmap=e),this._load=new Promise(function(e,t){function r(){n.destroyed||(i.onload=null,i.onerror=null,n.resize(i.width,i.height),n._load=null,n.createBitmap?e(n.process()):e(n))}var i=n.source;n.url=i.src;i.complete&&i.src?r():(i.onload=r,i.onerror=function(e){t(e),n.onError.emit(e)})})),this._load},vi.prototype.process=function(){var t=this,r=this.source;if(null===this._process){if(null!==this.bitmap||!globalThis.createImageBitmap)return Promise.resolve(this);var i=globalThis.createImageBitmap,e=!r.crossOrigin||"anonymous"===r.crossOrigin;this._process=fetch(r.src,{mode:e?"cors":"no-cors"}).then(function(e){return e.blob()}).then(function(e){return i(e,0,0,r.width,r.height,{premultiplyAlpha:t.alphaMode===$.ALPHA_MODES.UNPACK?"premultiply":"none"})}).then(function(e){return t.destroyed?Promise.reject():(t.bitmap=e,t.update(),t._process=null,Promise.resolve(t))})}return this._process},vi.prototype.upload=function(e,t,r){if("number"==typeof this.alphaMode&&(t.alphaMode=this.alphaMode),!this.createBitmap)return _i.prototype.upload.call(this,e,t,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(_i.prototype.upload.call(this,e,t,r,this.bitmap),!this.preserveBitmap){var i,n=!0,o=t._glTextures;for(i in o){var a=o[i];if(a!==r&&a.dirtyId!==t.dirtyId){n=!1;break}}n&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},vi.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,_i.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},vi.test=function(e){return"string"==typeof e||e instanceof HTMLImageElement};var _i,gi=vi;function vi(e,t){var r,i=this;return t=t||{},e instanceof HTMLImageElement||(r=new Image,hi.crossOrigin(r,e,t.crossorigin),r.src=e,e=r),i=_i.call(this,e)||this,!e.complete&&i._width&&i._height&&(i._width=0,i._height=0),i.url=e.src,i._process=null,i.preserveBitmap=!1,i.createBitmap=(void 0!==t.createBitmap?t.createBitmap:R.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,i.alphaMode="number"==typeof t.alphaMode?t.alphaMode:null,i.bitmap=null,i._load=null,!1!==t.autoLoad&&i.load(),i}c(bi,yi=hi),bi.prototype.load=function(){var t=this;return this._load||(this._load=new Promise(function(e){if(t._resolve=function(){t.resize(t.source.width,t.source.height),e(t)},bi.SVG_XML.test(t.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");t.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(t.svg)))}t._loadSvg()})),this._load},bi.prototype._loadSvg=function(){var o=this,a=new Image;hi.crossOrigin(a,this.svg,this._crossorigin),a.src=this.svg,a.onerror=function(e){o._resolve&&(a.onerror=null,o.onError.emit(e))},a.onload=function(){if(o._resolve){var e=a.width,t=a.height;if(!e||!t)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var r=e*o.scale,i=t*o.scale,n=((o._overrideWidth||o._overrideHeight)&&(r=o._overrideWidth||o._overrideHeight/t*e,i=o._overrideHeight||o._overrideWidth/e*t),r=Math.round(r),i=Math.round(i),o.source);n.width=r,n.height=i,n._pixiId="canvas_"+ ++Pt,n.getContext("2d").drawImage(a,0,0,e,t,0,0,r,i),o._resolve(),o._resolve=null}}},bi.getSize=function(e){var e=bi.SVG_SIZE.exec(e),t={};return e&&(t[e[1]]=Math.round(parseFloat(e[3])),t[e[5]]=Math.round(parseFloat(e[7]))),t},bi.prototype.dispose=function(){yi.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},bi.test=function(e,t){return"svg"===t||"string"==typeof e&&e.startsWith("data:image/svg+xml")||"string"==typeof e&&bi.SVG_XML.test(e)},bi.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,bi.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;var yi,d=bi;function bi(e,t){var r=this;return t=t||{},(r=yi.call(this,R.ADAPTER.createCanvas())||this)._width=0,r._height=0,r.svg=e,r.scale=t.scale||1,r._overrideWidth=t.width,r._overrideHeight=t.height,r._resolve=null,r._crossorigin=t.crossorigin,r._load=null,!1!==t.autoLoad&&r.load(),r}c(wi,xi=hi),wi.prototype.update=function(e){var t;this.destroyed||(t=Wr.shared.elapsedMS*this.source.playbackRate,this._msToNextUpdate=Math.floor(this._msToNextUpdate-t),(!this._updateFPS||this._msToNextUpdate<=0)&&(xi.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0))},wi.prototype.load=function(){var t,r=this;return this._load||(((t=this.source).readyState===t.HAVE_ENOUGH_DATA||t.readyState===t.HAVE_FUTURE_DATA)&&t.width&&t.height&&(t.complete=!0),t.addEventListener("play",this._onPlayStart.bind(this)),t.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(t.addEventListener("canplay",this._onCanPlay),t.addEventListener("canplaythrough",this._onCanPlay),t.addEventListener("error",this._onError,!0)),this._load=new Promise(function(e){r.valid?e(r):(r._resolve=e,t.load())})),this._load},wi.prototype._onError=function(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)},wi.prototype._isSourcePlaying=function(){var e=this.source;return 0<e.currentTime&&!1===e.paused&&!1===e.ended&&2<e.readyState},wi.prototype._isSourceReady=function(){var e=this.source;return 3===e.readyState||4===e.readyState},wi.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Wr.shared.add(this.update,this),this._isConnectedToTicker=!0)},wi.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Wr.shared.remove(this.update,this),this._isConnectedToTicker=!1)},wi.prototype._onCanPlay=function(){var e=this.source,t=(e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay),this.valid);this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},wi.prototype.dispose=function(){this._isConnectedToTicker&&(Wr.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),xi.prototype.dispose.call(this)},Object.defineProperty(wi.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Wr.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Wr.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(wi.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),wi.test=function(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||-1<wi.TYPES.indexOf(t)},wi.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],wi.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};var xi,Ti=wi;function wi(e,t){var r=this;if(t=t||{},!(e instanceof HTMLVideoElement)){var i=document.createElement("video"),n=(i.setAttribute("preload","auto"),i.setAttribute("webkit-playsinline",""),i.setAttribute("playsinline",""),(e="string"==typeof e?[e]:e)[0].src||e[0]);hi.crossOrigin(i,n,t.crossorigin);for(var o=0;o<e.length;++o){var a=document.createElement("source"),s=e[o],l=s.src,s=s.mime,u=(l=l||e[o]).split("?").shift().toLowerCase(),u=u.slice(u.lastIndexOf(".")+1),s=s||wi.MIME_TYPES[u]||"video/"+u;a.src=l,a.type=s,i.appendChild(a)}e=i}return(r=xi.call(this,e)||this).noSubImage=!0,r._autoUpdate=!0,r._isConnectedToTicker=!1,r._updateFPS=t.updateFPS||0,r._msToNextUpdate=0,r.autoPlay=!1!==t.autoPlay,r._load=null,r._resolve=null,r._onCanPlay=r._onCanPlay.bind(r),r._onError=r._onError.bind(r),!1!==t.autoLoad&&r.load(),r}c(Ai,Ei=hi),Ai.test=function(e){return!!globalThis.createImageBitmap&&"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap};var Ei,Si=Ai;function Ai(e){return Ei.call(this,e)||this}Vr.push(gi,Si,p,Ti,d,ti,se,le);var ki,Oi={__proto__:null,Resource:Qr,BaseImageResource:hi,INSTALLED:Vr,autoDetectResource:Kr,AbstractMultiResource:s,ArrayResource:le,BufferResource:ti,CanvasResource:p,CubeResource:se,ImageResource:gi,SVGResource:d,VideoResource:Ti,ImageBitmapResource:Si},Pi=(c(Ri,ki=ti),Ri.prototype.upload=function(e,t,r){var e=e.gl,i=(e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===$.ALPHA_MODES.UNPACK),t.realWidth),n=t.realHeight;return r.width===i&&r.height===n?e.texSubImage2D(t.target,0,0,0,i,n,t.format,r.type,this.data):(r.width=i,r.height=n,e.texImage2D(t.target,0,r.internalFormat,i,n,0,t.format,r.type,this.data)),!0},Ri);function Ri(){return null!==ki&&ki.apply(this,arguments)||this}Object.defineProperty(Mi.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),Mi.prototype.addColorTexture=function(e,t){return this.colorTextures[e=void 0===e?0:e]=t||new C(null,{scaleMode:$.SCALE_MODES.NEAREST,resolution:1,mipmap:$.MIPMAP_MODES.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},Mi.prototype.addDepthTexture=function(e){return this.depthTexture=e||new C(new Pi(null,{width:this.width,height:this.height}),{scaleMode:$.SCALE_MODES.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:$.MIPMAP_MODES.OFF,format:$.FORMATS.DEPTH_COMPONENT,type:$.TYPES.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},Mi.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},Mi.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},Mi.prototype.resize=function(e,t){if(e=Math.round(e),t=Math.round(t),e!==this.width||t!==this.height){this.width=e,this.height=t,this.dirtyId++,this.dirtySize++;for(var r=0;r<this.colorTextures.length;r++){var i=this.colorTextures[r],n=i.resolution;i.setSize(e/n,t/n)}this.depthTexture&&(n=this.depthTexture.resolution,this.depthTexture.setSize(e/n,t/n))}},Mi.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},Mi.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)};var Ci=Mi;function Mi(e,t){this.width=Math.round(e||100),this.height=Math.round(t||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Gr("disposeFramebuffer"),this.multisample=$.MSAA_QUALITY.NONE}c(Li,Ii=C),Li.prototype.resize=function(e,t){this.framebuffer.resize(e*this.resolution,t*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},Li.prototype.dispose=function(){this.framebuffer.dispose(),Ii.prototype.dispose.call(this)},Li.prototype.destroy=function(){Ii.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null};var Ii,Di=Li;function Li(e){var t=this;return(e="number"==typeof(e=void 0===e?{}:e)?{width:arguments[0],height:arguments[1],scaleMode:arguments[2],resolution:arguments[3]}:e).width=e.width||100,e.height=e.height||100,e.multisample=void 0!==e.multisample?e.multisample:$.MSAA_QUALITY.NONE,(t=Ii.call(this,null,e)||this).mipmap=$.MIPMAP_MODES.OFF,t.valid=!0,t.clearColor=[0,0,0,0],t.framebuffer=new Ci(t.realWidth,t.realHeight).addColorTexture(0,t),t.framebuffer.multisample=e.multisample,t.maskStack=[],t.filterStack=[{}],t}Ni.prototype.set=function(e,t,r){var i,n,o,a,s=t.width,t=t.height;r?(i=e.width/2/s,n=e.height/2/t,o=e.x/s+i,a=e.y/t+n,r=Er.add(r,Er.NW),this.x0=o+i*Er.uX(r),this.y0=a+n*Er.uY(r),r=Er.add(r,2),this.x1=o+i*Er.uX(r),this.y1=a+n*Er.uY(r),r=Er.add(r,2),this.x2=o+i*Er.uX(r),this.y2=a+n*Er.uY(r),r=Er.add(r,2),this.x3=o+i*Er.uX(r),this.y3=a+n*Er.uY(r)):(this.x0=e.x/s,this.y0=e.y/t,this.x1=(e.x+e.width)/s,this.y1=e.y/t,this.x2=(e.x+e.width)/s,this.y2=(e.y+e.height)/t,this.x3=e.x/s,this.y3=(e.y+e.height)/t),this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},Ni.prototype.toString=function(){return"[@pixi/core:TextureUvs x0="+this.x0+" y0="+this.y0+" x1="+this.x1+" y1="+this.y1+" x2="+this.x2+" y2="+this.y2+" x3="+this.x3+" y3="+this.y3+"]"};var Fi=Ni;function Ni(){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.uvsFloat32=new Float32Array(8)}var zi=new Fi;function Bi(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}c(m,ji=re),m.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},m.prototype.onBaseTextureUpdated=function(e){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=e.width,this._frame.height=e.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},m.prototype.destroy=function(e){this.baseTexture&&(e&&((e=this.baseTexture.resource)&&e.url&&Dt[e.url]&&m.removeFromCache(e.url),this.baseTexture.destroy()),this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,m.removeFromCache(this),this.textureCacheIds=null},m.prototype.clone=function(){var e=this._frame.clone(),t=this._frame===this.orig?e:this.orig.clone(),t=new m(this.baseTexture,!this.noFrame&&e,t,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(t._frame=e),t},m.prototype.updateUvs=function(){this._uvs===zi&&(this._uvs=new Fi),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},m.from=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=R.STRICT_TEXTURE_CACHE);var i="string"==typeof e,n=null,n=i?e:e instanceof C?(e.cacheId||(o=t&&t.pixiIdPrefix||"pixiid",e.cacheId=o+"-"+ ++Pt,C.addToCache(e,e.cacheId)),e.cacheId):(e._pixiId||(o=t&&t.pixiIdPrefix||"pixiid",e._pixiId=o+"_"+ ++Pt),e._pixiId),o=Dt[n];if(i&&r&&!o)throw new Error('The cacheId "'+n+'" does not exist in TextureCache.');return o||e instanceof C?!o&&e instanceof C&&(o=new m(e),m.addToCache(o,n)):(t.resolution||(t.resolution=Gt(e)),(o=new m(new C(e,t))).baseTexture.cacheId=n,C.addToCache(o.baseTexture,n),m.addToCache(o,n)),o},m.fromURL=function(e,t){var r=Object.assign({autoLoad:!1},null==t?void 0:t.resourceOptions),i=m.from(e,Object.assign({resourceOptions:r},t),!1),e=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):e.load().then(function(){return Promise.resolve(i)})},m.fromBuffer=function(e,t,r,i){return new m(C.fromBuffer(e,t,r,i))},m.fromLoader=function(e,t,r,i){var e=new C(e,Object.assign({scaleMode:R.SCALE_MODE,resolution:Gt(t)},i)),i=e.resource,n=(i instanceof gi&&(i.url=t),new m(e));return C.addToCache(n.baseTexture,r=r||t),m.addToCache(n,r),r!==t&&(C.addToCache(n.baseTexture,t),m.addToCache(n,t)),n.baseTexture.valid?Promise.resolve(n):new Promise(function(e){n.baseTexture.once("loaded",function(){return e(n)})})},m.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),Dt[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),Dt[t]=e)},m.removeFromCache=function(e){if("string"==typeof e){var t,r=Dt[e];if(r)return-1<(t=r.textureCacheIds.indexOf(e))&&r.textureCacheIds.splice(t,1),delete Dt[e],r}else if(e&&e.textureCacheIds){for(var i=0;i<e.textureCacheIds.length;++i)Dt[e.textureCacheIds[i]]===e&&delete Dt[e.textureCacheIds[i]];return e.textureCacheIds.length=0,e}return null},Object.defineProperty(m.prototype,"resolution",{get:function(){return this.baseTexture.resolution},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"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,o=t+i>this.baseTexture.width,a=r+n>this.baseTexture.height;if(o||a)throw t="X: "+t+" + "+i+" = "+(t+i)+" > "+this.baseTexture.width,r="Y: "+r+" + "+n+" = "+(r+n)+" > "+this.baseTexture.height,new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+t+" "+(o&&a?"and":"or")+" "+r);this.valid=i&&n&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),m.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(m,"EMPTY",{get:function(){return m._EMPTY||(Bi(m._EMPTY=new m(new C)),Bi(m._EMPTY.baseTexture)),m._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(m,"WHITE",{get:function(){var e,t;return m._WHITE||(t=(e=R.ADAPTER.createCanvas(16,16)).getContext("2d"),e.width=16,e.height=16,t.fillStyle="white",t.fillRect(0,0,16,16),Bi(m._WHITE=new m(C.from(e))),Bi(m._WHITE.baseTexture)),m._WHITE},enumerable:!1,configurable:!0});var ji,te=m;function m(e,t,r,i,n,o){var a=ji.call(this)||this;if(a.noFrame=!1,t||(a.noFrame=!0,t=new w(0,0,1,1)),e instanceof m&&(e=e.baseTexture),a.baseTexture=e,a._frame=t,a.trim=i,a.valid=!1,a._uvs=zi,a.uvMatrix=null,a.orig=r||t,a._rotate=Number(n||0),!0===n)a._rotate=2;else if(a._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return a.defaultAnchor=o?new ee(o.x,o.y):new ee(0,0),a._updateID=0,a.textureCacheIds=[],e.valid?a.noFrame?e.valid&&a.onBaseTextureUpdated(e):a.frame=t:e.once("loaded",a.onBaseTextureUpdated,a),a.noFrame&&e.on("update",a.onBaseTextureUpdated,a),a}c(Xi,Ui=te),Object.defineProperty(Xi.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(Xi.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),Xi.prototype.resize=function(e,t,r){void 0===r&&(r=!0);var i=this.baseTexture.resolution,e=Math.round(e*i)/i,t=Math.round(t*i)/i;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()},Xi.prototype.setResolution=function(e){var t=this.baseTexture;t.resolution!==e&&(t.setResolution(e),this.resize(t.width,t.height,!1))},Xi.create=function(e){for(var t=arguments,r=[],i=1;i<arguments.length;i++)r[i-1]=t[i];return"number"==typeof e&&(Mt("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),e={width:e,height:r[0],scaleMode:r[1],resolution:r[2]}),new Xi(new Di(e))};var Ui,Gi=Xi;function Xi(e,t){e=Ui.call(this,e,t)||this;return e.valid=!0,e.filterFrame=null,e.filterPoolKey=null,e.updateUvs(),e}Yi.prototype.createTexture=function(e,t,r){void 0===r&&(r=$.MSAA_QUALITY.NONE);e=new Di(Object.assign({width:e,height:t,resolution:1,multisample:r},this.textureOptions));return new Gi(e)},Yi.prototype.getOptimalTexture=function(e,t,r,i){void 0===r&&(r=1),void 0===i&&(i=$.MSAA_QUALITY.NONE),e=Math.ceil(e*r-1e-6),t=Math.ceil(t*r-1e-6),this.enableFullScreen&&e===this._pixelsWidth&&t===this._pixelsHeight?n=1<i?-i:-1:(n=((65535&(e=Et(e)))<<16|65535&(t=Et(t)))>>>0,1<i&&(n+=4294967296*i)),this.texturePool[n]||(this.texturePool[n]=[]);var n,o=this.texturePool[n].pop();return(o=o||this.createTexture(e,t,i)).filterPoolKey=n,o.setResolution(r),o},Yi.prototype.getFilterTexture=function(e,t,r){t=this.getOptimalTexture(e.width,e.height,t||e.resolution,r||$.MSAA_QUALITY.NONE);return t.filterFrame=e.filterFrame,t},Yi.prototype.returnTexture=function(e){var t=e.filterPoolKey;e.filterFrame=null,this.texturePool[t].push(e)},Yi.prototype.returnFilterTexture=function(e){this.returnTexture(e)},Yi.prototype.clear=function(e){if(e=!1!==e)for(var t in this.texturePool){var r=this.texturePool[t];if(r)for(var i=0;i<r.length;i++)r[i].destroy(!0)}this.texturePool={}},Yi.prototype.setScreenSize=function(e){if(e.width!==this._pixelsWidth||e.height!==this._pixelsHeight){for(var t in this.enableFullScreen=0<e.width&&0<e.height,this.texturePool)if(Number(t)<0){var r=this.texturePool[t];if(r)for(var i=0;i<r.length;i++)r[i].destroy(!0);this.texturePool[t]=[]}this._pixelsWidth=e.width,this._pixelsHeight=e.height}},Yi.SCREEN_KEY=-1;var Hi=Yi;function Yi(e){this.texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}qi.prototype.destroy=function(){this.buffer=null},qi.from=function(e,t,r,i,n){return new qi(e,t,r,i,n)};var Wi=qi;function qi(e,t,r,i,n,o,a){void 0===t&&(t=0),void 0===r&&(r=!1),void 0===i&&(i=$.TYPES.FLOAT),this.buffer=e,this.size=t,this.normalized=r,this.type=i,this.stride=n,this.start=o,this.instance=a}var Vi=0,Ki=(Ji.prototype.update=function(e){e instanceof Array&&(e=new Float32Array(e)),this.data=e||this.data,this._updateID++},Ji.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},Ji.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(Ji.prototype,"index",{get:function(){return this.type===$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER},set:function(e){this.type=e?$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER:$.BUFFER_TYPE.ARRAY_BUFFER},enumerable:!1,configurable:!0}),Ji.from=function(e){return new Ji(e=e instanceof Array?new Float32Array(e):e)},Ji);function Ji(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1),this.data=e||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=r,this.static=t,this.id=Vi++,this.disposeRunner=new Gr("disposeBuffer")}var Zi={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var Qi={5126:4,5123:2,5121:1},$i=0,en={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array},tn=(rn.prototype.addAttribute=function(e,t,r,i,n,o,a,s){if(void 0===r&&(r=0),void 0===i&&(i=!1),void 0===s&&(s=!1),!t)throw new Error("You must pass a buffer when creating an attribute");t instanceof Ki||(t instanceof Array&&(t=new Float32Array(t)),t=new Ki(t));var l=e.split("|");if(1<l.length)for(var u=0;u<l.length;u++)this.addAttribute(l[u],t,r,i,n);else{var h=this.buffers.indexOf(t);-1===h&&(this.buffers.push(t),h=this.buffers.length-1),this.attributes[e]=new Wi(h,r,i,n,o,a,s),this.instanced=this.instanced||s}return this},rn.prototype.getAttribute=function(e){return this.attributes[e]},rn.prototype.getBuffer=function(e){return this.buffers[this.getAttribute(e).buffer]},rn.prototype.addIndex=function(e){return e instanceof Ki||(e instanceof Array&&(e=new Uint16Array(e)),e=new Ki(e)),e.type=$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER,this.indexBuffer=e,-1===this.buffers.indexOf(e)&&this.buffers.push(e),this},rn.prototype.getIndex=function(){return this.indexBuffer},rn.prototype.interleave=function(){if(!(1===this.buffers.length||2===this.buffers.length&&this.indexBuffer)){var e,t=[],r=[],i=new Ki;for(e in this.attributes){var n=this.attributes[e],o=this.buffers[n.buffer];t.push(o.data),r.push(n.size*Qi[n.type]/4),n.buffer=0}for(i.data=function(e,t){for(var r=0,i=0,n={},o=0;o<e.length;o++)i+=t[o],r+=e[o].length;for(var a=new ArrayBuffer(4*r),s=null,l=0,o=0;o<e.length;o++){var u=t[o],h=e[o],c=Tt(h);n[c]||(n[c]=new Zi[c](a));for(var s=n[c],f=0;f<h.length;f++)s[(f/u|0)*i+l+f%u]=h[f];l+=u}return new Float32Array(a)}(t,r),e=0;e<this.buffers.length;e++)this.buffers[e]!==this.indexBuffer&&this.buffers[e].destroy();this.buffers=[i],this.indexBuffer&&this.buffers.push(this.indexBuffer)}return this},rn.prototype.getSize=function(){for(var e in this.attributes){e=this.attributes[e];return this.buffers[e.buffer].data.length/(e.stride/4||e.size)}return 0},rn.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},rn.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null},rn.prototype.clone=function(){for(var e=new rn,t=0;t<this.buffers.length;t++)e.buffers[t]=new Ki(this.buffers[t].data.slice(0));for(t in this.attributes){var r=this.attributes[t];e.attributes[t]=new Wi(r.buffer,r.size,r.normalized,r.type,r.stride,r.start,r.instance)}return this.indexBuffer&&(e.indexBuffer=e.buffers[this.buffers.indexOf(this.indexBuffer)],e.indexBuffer.type=$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER),e},rn.merge=function(e){for(var t=new rn,r=[],i=[],n=[],o=0;o<e.length;o++)for(var a=e[o],s=0;s<a.buffers.length;s++)i[s]=i[s]||0,i[s]+=a.buffers[s].data.length,n[s]=0;for(o=0;o<a.buffers.length;o++)r[o]=new en[Tt(a.buffers[o].data)](i[o]),t.buffers[o]=new Ki(r[o]);for(o=0;o<e.length;o++){a=e[o];for(s=0;s<a.buffers.length;s++)r[s].set(a.buffers[s].data,n[s]),n[s]+=a.buffers[s].data.length}if(t.attributes=a.attributes,a.indexBuffer){t.indexBuffer=t.buffers[a.buffers.indexOf(a.indexBuffer)],t.indexBuffer.type=$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER;for(var l=0,u=0,h=0,c=0,o=0;o<a.buffers.length;o++)if(a.buffers[o]!==a.indexBuffer){c=o;break}for(o in a.attributes){var f=a.attributes[o];(0|f.buffer)===c&&(u+=f.size*Qi[f.type]/4)}for(o=0;o<e.length;o++){for(var p=e[o].indexBuffer.data,s=0;s<p.length;s++)t.indexBuffer.data[s+h]+=l;l+=e[o].buffers[c].data.length/u,h+=p.length}}return t},rn);function rn(e,t){void 0===t&&(t={}),this.buffers=e=void 0===e?[]:e,this.indexBuffer=null,this.attributes=t,this.glVertexArrayObjects={},this.id=$i++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new Gr("disposeGeometry"),this.refCount=0}c(an,nn=tn);var nn,on=an;function an(){var e=nn.call(this)||this;return e.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),e}c(un,sn=tn),un.prototype.map=function(e,t){var r;return this.uvs[0]=0,this.uvs[1]=0,this.uvs[2]=0+t.width/e.width,this.uvs[3]=0,this.uvs[4]=0+t.width/e.width,this.uvs[5]=0+t.height/e.height,this.uvs[6]=0,this.uvs[7]=0+t.height/e.height,e=t.x,r=t.y,this.vertices[0]=e,this.vertices[1]=r,this.vertices[2]=e+t.width,this.vertices[3]=r,this.vertices[4]=e+t.width,this.vertices[5]=r+t.height,this.vertices[6]=e,this.vertices[7]=r+t.height,this.invalidate(),this},un.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this};var sn,ln=un;function un(){var e=sn.call(this)||this;return e.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),e.uvs=new Float32Array([0,0,1,0,1,1,0,1]),e.vertexBuffer=new Ki(e.vertices),e.uvBuffer=new Ki(e.uvs),e.addAttribute("aVertexPosition",e.vertexBuffer).addAttribute("aTextureCoord",e.uvBuffer).addIndex([0,1,2,0,2,3]),e}var hn=0,cn=(fn.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},fn.prototype.add=function(e,t,r){if(this.ubo)throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");this.uniforms[e]=new fn(t,r)},fn.from=function(e,t,r){return new fn(e,t,r)},fn.uboFrom=function(e,t){return new fn(e,null==t||t,!0)},fn);function fn(e,t,r){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=hn++,this.static=!!t,this.ubo=!!r,e instanceof Ki?(this.buffer=e,this.buffer.type=$.BUFFER_TYPE.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Ki(new Float32Array(1)),this.buffer.type=$.BUFFER_TYPE.UNIFORM_BUFFER,this.autoManage=!0))}dn.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null};var pn=dn;function dn(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=$.MSAA_QUALITY.NONE,this.sourceFrame=new w,this.destinationFrame=new w,this.bindingSourceFrame=new w,this.bindingDestinationFrame=new w,this.filters=[],this.transform=null}var mn=[new ee,new ee,new ee,new ee],_n=new ar,gn=(vn.prototype.push=function(e,t){for(var r=this.renderer,i=this.defaultFilterStack,n=this.statePool.pop()||new pn,o=this.renderer.renderTexture,a=t[0].resolution,s=t[0].multisample,l=t[0].padding,u=t[0].autoFit,h=null==(p=t[0].legacy)||p,c=1;c<t.length;c++)var f=t[c],a=Math.min(a,f.resolution),s=Math.min(s,f.multisample),l=this.useMaxPadding?Math.max(l,f.padding):l+f.padding,u=u&&f.autoFit,h=h||null==(f=f.legacy)||f;1===i.length&&(this.defaultFilterStack[0].renderTexture=o.current),i.push(n),n.resolution=a,n.multisample=s,n.legacy=h,n.target=e,n.sourceFrame.copyFrom(e.filterArea||e.getBounds(!0)),n.sourceFrame.pad(l);var p=this.tempRect.copyFrom(o.sourceFrame),i=(r.projection.transform&&this.transformAABB(_n.copyFrom(r.projection.transform).invert(),p),u?(n.sourceFrame.fit(p),(n.sourceFrame.width<=0||n.sourceFrame.height<=0)&&(n.sourceFrame.width=0,n.sourceFrame.height=0)):n.sourceFrame.intersects(p)||(n.sourceFrame.width=0,n.sourceFrame.height=0),this.roundFrame(n.sourceFrame,(o.current||r).resolution,o.sourceFrame,o.destinationFrame,r.projection.transform),n.renderTexture=this.getOptimalFilterTexture(n.sourceFrame.width,n.sourceFrame.height,a,s),n.filters=t,n.destinationFrame.width=n.renderTexture.width,n.destinationFrame.height=n.renderTexture.height,this.tempRect);i.x=0,i.y=0,i.width=n.sourceFrame.width,i.height=n.sourceFrame.height,n.renderTexture.filterFrame=n.sourceFrame,n.bindingSourceFrame.copyFrom(o.sourceFrame),n.bindingDestinationFrame.copyFrom(o.destinationFrame),n.transform=r.projection.transform,r.projection.transform=null,o.bind(n.renderTexture,n.sourceFrame,i),r.framebuffer.clear(0,0,0,0)},vn.prototype.pop=function(){var e=this.defaultFilterStack,t=e.pop(),r=t.filters,i=(this.activeState=t,this.globalUniforms.uniforms),n=(i.outputFrame=t.sourceFrame,i.resolution=t.resolution,i.inputSize),o=i.inputPixel,a=i.inputClamp,n=(n[0]=t.destinationFrame.width,n[1]=t.destinationFrame.height,n[2]=1/n[0],n[3]=1/n[1],o[0]=Math.round(n[0]*t.resolution),o[1]=Math.round(n[1]*t.resolution),o[2]=1/o[0],o[3]=1/o[1],a[0]=.5*o[2],a[1]=.5*o[3],a[2]=t.sourceFrame.width*n[2]-.5*o[2],a[3]=t.sourceFrame.height*n[3]-.5*o[3],t.legacy&&((a=i.filterArea)[0]=t.destinationFrame.width,a[1]=t.destinationFrame.height,a[2]=t.sourceFrame.x,a[3]=t.sourceFrame.y,i.filterClamp=i.inputClamp),this.globalUniforms.update(),e[e.length-1]);if(this.renderer.framebuffer.blit(),1===r.length)r[0].apply(this,t.renderTexture,n.renderTexture,$.CLEAR_MODES.BLEND,t),this.returnFilterTexture(t.renderTexture);else{for(var s=t.renderTexture,l=((h=this.getOptimalFilterTexture(s.width,s.height,t.resolution)).filterFrame=s.filterFrame,0),l=0;l<r.length-1;++l){1===l&&1<t.multisample&&((h=this.getOptimalFilterTexture(s.width,s.height,t.resolution)).filterFrame=s.filterFrame),r[l].apply(this,s,h,$.CLEAR_MODES.CLEAR,t);var u=s,s=h,h=u}r[l].apply(this,s,n.renderTexture,$.CLEAR_MODES.BLEND,t),1<l&&1<t.multisample&&this.returnFilterTexture(t.renderTexture),this.returnFilterTexture(s),this.returnFilterTexture(h)}t.clear(),this.statePool.push(t)},vn.prototype.bindAndClear=function(e,t){void 0===t&&(t=$.CLEAR_MODES.CLEAR);var r=this.renderer,i=r.renderTexture,r=r.state,n=(e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,e&&e.filterFrame?((n=this.tempRect).x=0,n.y=0,n.width=e.filterFrame.width,n.height=e.filterFrame.height,i.bind(e,e.filterFrame,n)):e!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(e):this.renderer.renderTexture.bind(e,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame),1&r.stateId||this.forceClear);(t===$.CLEAR_MODES.CLEAR||t===$.CLEAR_MODES.BLIT&&n)&&this.renderer.framebuffer.clear(0,0,0,0)},vn.prototype.applyFilter=function(e,t,r,i){var n=this.renderer;n.state.set(e.state),this.bindAndClear(r,i),e.uniforms.uSampler=t,e.uniforms.filterGlobals=this.globalUniforms,n.shader.bind(e),e.legacy=!!e.program.attributeData.aTextureCoord,e.legacy?(this.quadUv.map(t._frame,t.filterFrame),n.geometry.bind(this.quadUv),n.geometry.draw($.DRAW_MODES.TRIANGLES)):(n.geometry.bind(this.quad),n.geometry.draw($.DRAW_MODES.TRIANGLE_STRIP))},vn.prototype.calculateSpriteMatrix=function(e,t){var r=this.activeState,i=r.sourceFrame,r=r.destinationFrame,n=t._texture.orig,e=e.set(r.width,0,0,r.height,i.x,i.y),r=t.worldTransform.copyTo(ar.TEMP_MATRIX);return r.invert(),e.prepend(r),e.scale(1/n.width,1/n.height),e.translate(t.anchor.x,t.anchor.y),e},vn.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},vn.prototype.getOptimalFilterTexture=function(e,t,r,i){return void 0===i&&(i=$.MSAA_QUALITY.NONE),this.texturePool.getOptimalTexture(e,t,r=void 0===r?1:r,i)},vn.prototype.getFilterTexture=function(e,t,r){"number"==typeof e&&(i=e,e=t,t=i),e=e||this.activeState.renderTexture;var i=this.texturePool.getOptimalTexture(e.width,e.height,t||e.resolution,r||$.MSAA_QUALITY.NONE);return i.filterFrame=e.filterFrame,i},vn.prototype.returnFilterTexture=function(e){this.texturePool.returnTexture(e)},vn.prototype.emptyPool=function(){this.texturePool.clear(!0)},vn.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},vn.prototype.transformAABB=function(e,t){var r=mn[0],i=mn[1],n=mn[2],o=mn[3],e=(r.set(t.left,t.top),i.set(t.left,t.bottom),n.set(t.right,t.top),o.set(t.right,t.bottom),e.apply(r,r),e.apply(i,i),e.apply(n,n),e.apply(o,o),Math.min(r.x,i.x,n.x,o.x)),a=Math.min(r.y,i.y,n.y,o.y),s=Math.max(r.x,i.x,n.x,o.x),r=Math.max(r.y,i.y,n.y,o.y);t.x=e,t.y=a,t.width=s-e,t.height=r-a},vn.prototype.roundFrame=function(e,t,r,i,n){if(!(e.width<=0||e.height<=0||r.width<=0||r.height<=0)){if(n){var o=n.a,a=n.b,s=n.c,l=n.d;if((1e-4<Math.abs(a)||1e-4<Math.abs(s))&&(1e-4<Math.abs(o)||1e-4<Math.abs(l)))return}(n=n?_n.copyFrom(n):_n.identity()).translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(n,e),e.ceil(t),this.transformAABB(n.invert(),e)}},vn);function vn(e){this.renderer=e,this.defaultFilterStack=[{}],this.texturePool=new Hi,this.texturePool.setScreenSize(e.view),this.statePool=[],this.quad=new on,this.quadUv=new ln,this.tempRect=new w,this.activeState={},this.globalUniforms=new cn({outputFrame:new w,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}bn.prototype.flush=function(){},bn.prototype.destroy=function(){this.renderer=null},bn.prototype.start=function(){},bn.prototype.stop=function(){this.flush()},bn.prototype.render=function(e){};var yn=bn;function bn(e){this.renderer=e}Tn.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},Tn.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},Tn.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},Tn.prototype.copyBoundTextures=function(e,t){for(var r=this.renderer.texture.boundTextures,i=t-1;0<=i;--i)e[i]=r[i]||null,e[i]&&(e[i]._batchLocation=i)},Tn.prototype.boundArray=function(e,t,r,i){for(var n=e.elements,o=e.ids,a=e.count,s=0,l=0;l<a;l++){var u=n[l],h=u._batchLocation;if(0<=h&&h<i&&t[h]===u)o[l]=h;else for(;s<i;){var c=t[s];if(!c||c._batchEnabled!==r||c._batchLocation!==s){o[l]=s,t[u._batchLocation=s]=u;break}s++}}},Tn.prototype.destroy=function(){this.renderer=null};var xn=Tn;function Tn(e){this.renderer=e,this.emptyRenderer=new yn(e),this.currentRenderer=this.emptyRenderer}var wn=0,En=(Object.defineProperty(Sn.prototype,"isLost",{get:function(){return!this.gl||this.gl.isContextLost()},enumerable:!1,configurable:!0}),Sn.prototype.contextChange=function(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=wn++,e.isContextLost()&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").restoreContext()},Sn.prototype.initFromContext=function(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=wn++,this.renderer.runners.contextChange.emit(e)},Sn.prototype.initFromOptions=function(e){e=this.createContext(this.renderer.view,e);this.initFromContext(e)},Sn.prototype.createContext=function(e,t){var r;if(r=R.PREFER_ENV>=$.ENV.WEBGL2?e.getContext("webgl2",t):r)this.webGLVersion=2;else if(this.webGLVersion=1,!(r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl},Sn.prototype.getExtensions=function(){var e=this.gl,t={anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),loseContext:e.getExtension("WEBGL_lose_context"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,t,{colorBufferFloat:e.getExtension("EXT_color_buffer_float")})},Sn.prototype.handleContextLost=function(e){e.preventDefault()},Sn.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},Sn.prototype.destroy=function(){var e=this.renderer.view;this.renderer=null,e.removeEventListener("webglcontextlost",this.handleContextLost),e.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},Sn.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},Sn.prototype.validateContext=function(e){var t=e.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext,t=(r&&(this.webGLVersion=2),t&&!t.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly"),r||!!e.getExtension("OES_element_index_uint"));(this.supports.uint32Indices=t)||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},Sn);function Sn(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),e.view.addEventListener("webglcontextlost",this.handleContextLost,!1),e.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}var An=function(e){this.framebuffer=e,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=$.MSAA_QUALITY.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0},kn=new w,On=(Pn.prototype.contextChange=function(){var t,e,r=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new w,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion?(t=this.renderer.context.extensions.drawBuffers,e=this.renderer.context.extensions.depthTexture,R.PREFER_ENV===$.ENV.WEBGL_LEGACY&&(e=t=null),t?r.drawBuffers=function(e){return t.drawBuffersWEBGL(e)}:(this.hasMRT=!1,r.drawBuffers=function(){}),e||(this.writeDepthTexture=!1)):this.msaaSamples=r.getInternalformatParameter(r.RENDERBUFFER,r.RGBA8,r.SAMPLES)},Pn.prototype.bind=function(e,t,r){void 0===r&&(r=0);var i=this.gl;if(e){var n=e.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(e);this.current!==e&&(this.current=e,i.bindFramebuffer(i.FRAMEBUFFER,n.framebuffer)),n.mipLevel!==r&&(e.dirtyId++,e.dirtyFormat++,n.mipLevel=r),n.dirtyId!==e.dirtyId&&(n.dirtyId=e.dirtyId,n.dirtyFormat!==e.dirtyFormat?(n.dirtyFormat=e.dirtyFormat,n.dirtySize=e.dirtySize,this.updateFramebuffer(e,r)):n.dirtySize!==e.dirtySize&&(n.dirtySize=e.dirtySize,this.resizeFramebuffer(e)));for(var o,a,s=0;s<e.colorTextures.length;s++){var l=e.colorTextures[s];this.renderer.texture.unbind(l.parentTextureArray||l)}e.depthTexture&&this.renderer.texture.unbind(e.depthTexture),t?(o=t.width>>r,a=t.height>>r,n=o/t.width,this.setViewport(t.x*n,t.y*n,o,a)):(o=e.width>>r,a=e.height>>r,this.setViewport(0,0,o,a))}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),t?this.setViewport(t.x,t.y,t.width,t.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},Pn.prototype.setViewport=function(e,t,r,i){var n=this.viewport;e=Math.round(e),t=Math.round(t),r=Math.round(r),i=Math.round(i),n.width===r&&n.height===i&&n.x===e&&n.y===t||(n.x=e,n.y=t,n.width=r,n.height=i,this.gl.viewport(e,t,r,i))},Object.defineProperty(Pn.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),Pn.prototype.clear=function(e,t,r,i,n){void 0===n&&(n=$.BUFFER_BITS.COLOR|$.BUFFER_BITS.DEPTH);var o=this.gl;o.clearColor(e,t,r,i),o.clear(n)},Pn.prototype.initFramebuffer=function(e){var t=this.gl,t=new An(t.createFramebuffer());return t.multisample=this.detectSamples(e.multisample),e.glFramebuffers[this.CONTEXT_UID]=t,this.managedFramebuffers.push(e),e.disposeRunner.add(this),t},Pn.prototype.resizeFramebuffer=function(e){var t=this.gl,r=e.glFramebuffers[this.CONTEXT_UID],i=(r.msaaBuffer&&(t.bindRenderbuffer(t.RENDERBUFFER,r.msaaBuffer),t.renderbufferStorageMultisample(t.RENDERBUFFER,r.multisample,t.RGBA8,e.width,e.height)),r.stencil&&(t.bindRenderbuffer(t.RENDERBUFFER,r.stencil),r.msaaBuffer?t.renderbufferStorageMultisample(t.RENDERBUFFER,r.multisample,t.DEPTH24_STENCIL8,e.width,e.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,e.width,e.height)),e.colorTextures),n=i.length;t.drawBuffers||(n=Math.min(n,1));for(var o=0;o<n;o++){var a=i[o],a=a.parentTextureArray||a;this.renderer.texture.bind(a,0)}e.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(e.depthTexture,0)},Pn.prototype.updateFramebuffer=function(e,t){for(var r,i=this.gl,n=e.glFramebuffers[this.CONTEXT_UID],o=e.colorTextures,a=o.length,s=(i.drawBuffers||(a=Math.min(a,1)),1<n.multisample&&this.canMultisampleFramebuffer(e)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,e.width,e.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null)),[]),l=0;l<a;l++){var u=o[l],h=u.parentTextureArray||u;this.renderer.texture.bind(h,0),0===l&&n.msaaBuffer||(i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+l,u.target,h._glTextures[this.CONTEXT_UID].texture,t),s.push(i.COLOR_ATTACHMENT0+l))}1<s.length&&i.drawBuffers(s),e.depthTexture&&this.writeDepthTexture&&(r=e.depthTexture,this.renderer.texture.bind(r,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,r._glTextures[this.CONTEXT_UID].texture,t)),!e.stencil&&!e.depth||e.depthTexture&&this.writeDepthTexture?n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null):(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,e.width,e.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,e.width,e.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil))},Pn.prototype.canMultisampleFramebuffer=function(e){return 1!==this.renderer.context.webGLVersion&&e.colorTextures.length<=1&&!e.depthTexture},Pn.prototype.detectSamples=function(e){var t=this.msaaSamples,r=$.MSAA_QUALITY.NONE;if(!(e<=1||null===t)){for(var i=0;i<t.length;i++)if(t[i]<=e){r=t[i];break}1===r&&(r=$.MSAA_QUALITY.NONE)}return r},Pn.prototype.blit=function(e,t,r){var i=this.current,n=this.renderer,o=this.gl,a=this.CONTEXT_UID;if(2===n.context.webGLVersion&&i){n=i.glFramebuffers[a];if(n){if(!e){if(!n.msaaBuffer)return;a=i.colorTextures[0];if(!a)return;n.blitFramebuffer||(n.blitFramebuffer=new Ci(i.width,i.height),n.blitFramebuffer.addColorTexture(0,a)),(e=n.blitFramebuffer).colorTextures[0]!==a&&(e.colorTextures[0]=a,e.dirtyId++,e.dirtyFormat++),e.width===i.width&&e.height===i.height||(e.width=i.width,e.height=i.height,e.dirtyId++,e.dirtySize++)}t||((t=kn).width=i.width,t.height=i.height);a=t.width===(r=r||t).width&&t.height===r.height;this.bind(e),o.bindFramebuffer(o.READ_FRAMEBUFFER,n.framebuffer),o.blitFramebuffer(t.left,t.top,t.right,t.bottom,r.left,r.top,r.right,r.bottom,o.COLOR_BUFFER_BIT,a?o.NEAREST:o.LINEAR)}}},Pn.prototype.disposeFramebuffer=function(e,t){var r,i=e.glFramebuffers[this.CONTEXT_UID],n=this.gl;i&&(delete e.glFramebuffers[this.CONTEXT_UID],0<=(r=this.managedFramebuffers.indexOf(e))&&this.managedFramebuffers.splice(r,1),e.disposeRunner.remove(this),t||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose())},Pn.prototype.disposeAll=function(e){var t=this.managedFramebuffers;this.managedFramebuffers=[];for(var r=0;r<t.length;r++)this.disposeFramebuffer(t[r],e)},Pn.prototype.forceStencil=function(){var e,t,r,i,n=this.current;!n||(e=n.glFramebuffers[this.CONTEXT_UID])&&!e.stencil&&(n.stencil=!0,t=n.width,n=n.height,i=(r=this.gl).createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i),e.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,e.multisample,r.DEPTH24_STENCIL8,t,n):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,n),e.stencil=i,r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i))},Pn.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new w},Pn.prototype.destroy=function(){this.renderer=null},Pn);function Pn(e){this.renderer=e,this.managedFramebuffers=[],this.unknownFramebuffer=new Ci(10,10),this.msaaSamples=null}var Rn={5126:4,5123:2,5121:1},Cn=(Mn.prototype.contextChange=function(){this.disposeAll(!0);var t,o,e=this.gl=this.renderer.gl,r=this.renderer.context;this.CONTEXT_UID=this.renderer.CONTEXT_UID,2!==r.webGLVersion&&(t=this.renderer.context.extensions.vertexArrayObject,(t=R.PREFER_ENV===$.ENV.WEBGL_LEGACY?null:t)?(e.createVertexArray=function(){return t.createVertexArrayOES()},e.bindVertexArray=function(e){return t.bindVertexArrayOES(e)},e.deleteVertexArray=function(e){return t.deleteVertexArrayOES(e)}):(this.hasVao=!1,e.createVertexArray=function(){return null},e.bindVertexArray=function(){return null},e.deleteVertexArray=function(){return null})),2!==r.webGLVersion&&((o=e.getExtension("ANGLE_instanced_arrays"))?(e.vertexAttribDivisor=function(e,t){return o.vertexAttribDivisorANGLE(e,t)},e.drawElementsInstanced=function(e,t,r,i,n){return o.drawElementsInstancedANGLE(e,t,r,i,n)},e.drawArraysInstanced=function(e,t,r,i){return o.drawArraysInstancedANGLE(e,t,r,i)}):this.hasInstance=!1),this.canUseUInt32ElementIndex=2===r.webGLVersion||!!r.extensions.uint32ElementIndex},Mn.prototype.bind=function(e,t){t=t||this.renderer.shader.shader;var r=this.gl,i=e.glVertexArrayObjects[this.CONTEXT_UID],n=!1,i=(i||((this.managedGeometries[e.id]=e).disposeRunner.add(this),e.glVertexArrayObjects[this.CONTEXT_UID]=i={},n=!0),i[t.program.id]||this.initGeometryVao(e,t,n));this._activeGeometry=e,this._activeVao!==i&&(this._activeVao=i,this.hasVao?r.bindVertexArray(i):this.activateVao(e,t.program)),this.updateBuffers()},Mn.prototype.reset=function(){this.unbind()},Mn.prototype.updateBuffers=function(){for(var e=this._activeGeometry,t=this.renderer.buffer,r=0;r<e.buffers.length;r++){var i=e.buffers[r];t.update(i)}},Mn.prototype.checkCompatibility=function(e,t){var r,i=e.attributes;for(r in t.attributeData)if(!i[r])throw new Error('shader and geometry incompatible, geometry missing the "'+r+'" attribute')},Mn.prototype.getSignature=function(e,t){var r,i=e.attributes,n=t.attributeData,o=["g",e.id];for(r in i)n[r]&&o.push(r,n[r].location);return o.join("-")},Mn.prototype.initGeometryVao=function(e,t,r){void 0===r&&(r=!0);var i=this.gl,n=this.CONTEXT_UID,o=this.renderer.buffer,a=t.program,t=(a.glPrograms[n]||this.renderer.shader.generateProgram(t),this.checkCompatibility(e,a),this.getSignature(e,a)),s=e.glVertexArrayObjects[this.CONTEXT_UID],l=s[t];if(l)return s[a.id]=l;var u,h=e.buffers,c=e.attributes,f={},p={};for(u in h)p[u]=f[u]=0;for(u in c)!c[u].size&&a.attributeData[u]?c[u].size=a.attributeData[u].size:c[u].size||console.warn("PIXI Geometry attribute '"+u+"' size cannot be determined (likely the bound shader does not have the attribute)"),f[c[u].buffer]+=c[u].size*Rn[c[u].type];for(u in c){var d=c[u],m=d.size;void 0===d.stride&&(f[d.buffer]===m*Rn[d.type]?d.stride=0:d.stride=f[d.buffer]),void 0===d.start&&(d.start=p[d.buffer],p[d.buffer]+=m*Rn[d.type])}l=i.createVertexArray(),i.bindVertexArray(l);for(var _=0;_<h.length;_++){var g=h[_];o.bind(g),r&&g._glBuffers[n].refCount++}return this.activateVao(e,a),this._activeVao=l,s[a.id]=l,s[t]=l},Mn.prototype.disposeGeometry=function(e,t){var r;if(this.managedGeometries[e.id]){delete this.managedGeometries[e.id];var i=e.glVertexArrayObjects[this.CONTEXT_UID],n=this.gl,o=e.buffers,a=null==(r=this.renderer)?void 0:r.buffer;if(e.disposeRunner.remove(this),i){if(a)for(var s=0;s<o.length;s++){var l=o[s]._glBuffers[this.CONTEXT_UID];l&&(l.refCount--,0!==l.refCount||t||a.dispose(o[s],t))}if(!t)for(var u in i)"g"===u[0]&&(u=i[u],this._activeVao===u&&this.unbind(),n.deleteVertexArray(u));delete e.glVertexArrayObjects[this.CONTEXT_UID]}}},Mn.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedGeometries),r=0;r<t.length;r++)this.disposeGeometry(this.managedGeometries[t[r]],e)},Mn.prototype.activateVao=function(e,t){var r,i=this.gl,n=this.CONTEXT_UID,o=this.renderer.buffer,a=e.buffers,s=e.attributes,l=(e.indexBuffer&&o.bind(e.indexBuffer),null);for(r in s){var u=s[r],h=a[u.buffer],c=h._glBuffers[n];if(t.attributeData[r]){l!==c&&(o.bind(h),l=c);h=t.attributeData[r].location;if(i.enableVertexAttribArray(h),i.vertexAttribPointer(h,u.size,u.type||i.FLOAT,u.normalized,u.stride,u.start),u.instance){if(!this.hasInstance)throw new Error("geometry error, GPU Instancing is not supported on this device");i.vertexAttribDivisor(h,1)}}}},Mn.prototype.draw=function(e,t,r,i){var n,o,a=this.gl,s=this._activeGeometry;return s.indexBuffer?(o=2===(n=s.indexBuffer.data.BYTES_PER_ELEMENT)?a.UNSIGNED_SHORT:a.UNSIGNED_INT,2===n||4===n&&this.canUseUInt32ElementIndex?s.instanced?a.drawElementsInstanced(e,t||s.indexBuffer.data.length,o,(r||0)*n,i||1):a.drawElements(e,t||s.indexBuffer.data.length,o,(r||0)*n):console.warn("unsupported index buffer type: uint32")):s.instanced?a.drawArraysInstanced(e,r,t||s.getSize(),i||1):a.drawArrays(e,r,t||s.getSize()),this},Mn.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},Mn.prototype.destroy=function(){this.renderer=null},Mn);function Mn(e){this.renderer=e,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}Object.defineProperty(Dn.prototype,"filter",{get:function(){return this._filters?this._filters[0]:null},set:function(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null},enumerable:!1,configurable:!0}),Dn.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=$.MASK_TYPES.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},Dn.prototype.copyCountersOrReset=function(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)};var In=Dn;function Dn(e){void 0===e&&(e=null),this.type=$.MASK_TYPES.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=R.FILTER_MULTISAMPLE,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}function Ln(e,t,r){t=e.createShader(t);return e.shaderSource(t,r),e.compileShader(t),t}function Fn(e,t){var r=e.getShaderSource(t).split("\n").map(function(e,t){return t+": "+e}),e=e.getShaderInfoLog(t),t=e.split("\n"),i={},t=t.map(function(e){return parseFloat(e.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(e){return!(!e||i[e])&&(i[e]=!0)}),n=[""],t=(t.forEach(function(e){r[e-1]="%c"+r[e-1]+"%c",n.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")}),r.join("\n"));n[0]=t,console.error(e),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,n),console.groupEnd()}function Nn(e){for(var t=new Array(e),r=0;r<t.length;r++)t[r]=!1;return t}function zn(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"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return Nn(2*t);case"bvec3":return Nn(3*t);case"bvec4":return Nn(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])}return null}var Bn,jn={},Un=jn;function Gn(){var e,t;return(Un===jn||Un&&Un.isContextLost())&&(e=R.ADAPTER.createCanvas(),t=void 0,(t=R.PREFER_ENV>=$.ENV.WEBGL2?e.getContext("webgl2",{}):t)||((t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}))?t.getExtension("WEBGL_draw_buffers"):t=null),Un=t),Un}function Xn(e,t,r){return"precision"!==e.substring(0,9)?"precision "+(t===$.PRECISION.HIGH&&r!==$.PRECISION.HIGH?$.PRECISION.MEDIUM:t)+" float;\n"+e:r!==$.PRECISION.HIGH&&"precision highp"===e.substring(0,15)?e.replace("precision highp","precision mediump"):e}var Hn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Yn(e){return Hn[e]}var Wn=null,qn={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Vn(e,t){if(!Wn){var r=Object.keys(qn);Wn={};for(var i=0;i<r.length;++i){var n=r[i];Wn[e[n]]=qn[n]}}return Wn[t]}var Kn=[{test:function(e){return"float"===e.type&&1===e.size&&!e.isArray},code:function(e){return'\n if(uv["'+e+'"] !== ud["'+e+'"].value)\n {\n ud["'+e+'"].value = uv["'+e+'"]\n gl.uniform1f(ud["'+e+'"].location, uv["'+e+'"])\n }\n '}},{test:function(e,t){return!("sampler2D"!==e.type&&"samplerCube"!==e.type&&"sampler2DArray"!==e.type||1!==e.size||e.isArray||null!=t&&void 0===t.castToBaseTexture)},code:function(e){return't = syncData.textureCount++;\n\n renderer.texture.bind(uv["'+e+'"], t);\n\n if(ud["'+e+'"].value !== t)\n {\n ud["'+e+'"].value = t;\n gl.uniform1i(ud["'+e+'"].location, t);\n; // eslint-disable-line max-len\n }'}},{test:function(e,t){return"mat3"===e.type&&1===e.size&&!e.isArray&&void 0!==t.a},code:function(e){return'\n gl.uniformMatrix3fv(ud["'+e+'"].location, false, uv["'+e+'"].toArray(true));\n '},codeUbo:function(e){return"\n var "+e+"_matrix = uv."+e+".toArray(true);\n\n data[offset] = "+e+"_matrix[0];\n data[offset+1] = "+e+"_matrix[1];\n data[offset+2] = "+e+"_matrix[2];\n \n data[offset + 4] = "+e+"_matrix[3];\n data[offset + 5] = "+e+"_matrix[4];\n data[offset + 6] = "+e+"_matrix[5];\n \n data[offset + 8] = "+e+"_matrix[6];\n data[offset + 9] = "+e+"_matrix[7];\n data[offset + 10] = "+e+"_matrix[8];\n "}},{test:function(e,t){return"vec2"===e.type&&1===e.size&&!e.isArray&&void 0!==t.x},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud["'+e+'"].location, v.x, v.y);\n }'},codeUbo:function(e){return"\n v = uv."+e+";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n "}},{test:function(e){return"vec2"===e.type&&1===e.size&&!e.isArray},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(ud["'+e+'"].location, v[0], v[1]);\n }\n '}},{test:function(e,t){return"vec4"===e.type&&1===e.size&&!e.isArray&&void 0!==t.width},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud["'+e+'"].location, v.x, v.y, v.width, v.height)\n }'},codeUbo:function(e){return"\n v = uv."+e+";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n data[offset+2] = v.width;\n data[offset+3] = v.height;\n "}},{test:function(e){return"vec4"===e.type&&1===e.size&&!e.isArray},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud["'+e+'"].location, v[0], v[1], v[2], v[3])\n }'}}],Jn={float:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1f(location, v);\n }",vec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2f(location, v[0], v[1])\n }",vec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }",vec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }",int:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",ivec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",ivec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",ivec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",uint:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1ui(location, v);\n }",uvec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2ui(location, v[0], v[1]);\n }",uvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }",uvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }",bool:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1i(location, v);\n }",bvec2:"\n if (cv[0] != v[0] || cv[1] != v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",bvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",bvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",samplerCube:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",sampler2DArray:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }"},Zn={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};var Qn,$n=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function eo(e,t){if(0===e)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var r=t.createShader(t.FRAGMENT_SHADER);;){var i=$n.replace(/%forloop%/gi,function(e){for(var t="",r=0;r<e;++r)0<r&&(t+="\nelse "),r<e-1&&(t+="if(test == "+r+".0){}");return t}(e));if(t.shaderSource(r,i),t.compileShader(r),t.getShaderParameter(r,t.COMPILE_STATUS))break;e=e/2|0}return e}var to=0,ro={},io=(Object.defineProperty(no,"defaultVertexSrc",{get:function(){return"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n"},enumerable:!1,configurable:!0}),Object.defineProperty(no,"defaultFragmentSrc",{get:function(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}"},enumerable:!1,configurable:!0}),no.from=function(e,t,r){var i=e+t,n=It[i];return n||(It[i]=n=new no(e,t,r)),n},no);function no(e,t,r){void 0===r&&(r="pixi-shader"),this.id=to++,this.vertexSrc=e||no.defaultVertexSrc,this.fragmentSrc=t||no.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),"#version"!==this.vertexSrc.substring(0,8)&&(r=r.replace(/\s+/g,"-"),ro[r]?(ro[r]++,r+="-"+ro[r]):ro[r]=1,this.vertexSrc="#define SHADER_NAME "+r+"\n"+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+r+"\n"+this.fragmentSrc,this.vertexSrc=Xn(this.vertexSrc,R.PRECISION_VERTEX,$.PRECISION.HIGH),this.fragmentSrc=Xn(this.fragmentSrc,R.PRECISION_FRAGMENT,(Bn||(Bn=$.PRECISION.MEDIUM,(e=Gn())&&e.getShaderPrecisionFormat&&(e=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT),Bn=e.precision?$.PRECISION.HIGH:$.PRECISION.MEDIUM)),Bn))),this.glPrograms={},this.syncUniforms=null}ao.prototype.checkUniformExists=function(e,t){if(t.uniforms[e])return!0;for(var r in t.uniforms){r=t.uniforms[r];if(r.group&&this.checkUniformExists(e,r))return!0}return!1},ao.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(ao.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),ao.from=function(e,t,r){return new ao(io.from(e,t),r)};var oo=ao;function ao(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof cn?this.uniformGroup=t:this.uniformGroup=new cn(t):this.uniformGroup=new cn({})}Object.defineProperty(lo.prototype,"blend",{get:function(){return!!(1&this.data)},set:function(e){!!(1&this.data)!==e&&(this.data^=1)},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"offsets",{get:function(){return!!(2&this.data)},set:function(e){!!(2&this.data)!==e&&(this.data^=2)},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"culling",{get:function(){return!!(4&this.data)},set:function(e){!!(4&this.data)!==e&&(this.data^=4)},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"depthTest",{get:function(){return!!(8&this.data)},set:function(e){!!(8&this.data)!==e&&(this.data^=8)},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"depthMask",{get:function(){return!!(32&this.data)},set:function(e){!!(32&this.data)!==e&&(this.data^=32)},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"clockwiseFrontFace",{get:function(){return!!(16&this.data)},set:function(e){!!(16&this.data)!==e&&(this.data^=16)},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"blendMode",{get:function(){return this._blendMode},set:function(e){this.blend=e!==$.BLEND_MODES.NONE,this._blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(lo.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(e){this.offsets=!!e,this._polygonOffset=e},enumerable:!1,configurable:!0}),lo.prototype.toString=function(){return"[@pixi/core:State blendMode="+this.blendMode+" clockwiseFrontFace="+this.clockwiseFrontFace+" culling="+this.culling+" depthMask="+this.depthMask+" polygonOffset="+this.polygonOffset+"]"},lo.for2d=function(){var e=new lo;return e.depthTest=!1,e.blend=!0,e};var so=lo;function lo(){this.data=0,this.blendMode=$.BLEND_MODES.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}c(ho,uo=oo),ho.prototype.apply=function(e,t,r,i,n){e.applyFilter(this,t,r,i)},Object.defineProperty(ho.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(ho.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e},enumerable:!1,configurable:!0}),Object.defineProperty(ho,"defaultVertexSrc",{get:function(){return"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n"},enumerable:!1,configurable:!0}),Object.defineProperty(ho,"defaultFragmentSrc",{get:function(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n"},enumerable:!1,configurable:!0});var uo,Q=ho;function ho(e,t,r){var i=this,e=io.from(e||ho.defaultVertexSrc,t||ho.defaultFragmentSrc);return(i=uo.call(this,e,r)||this).padding=0,i.resolution=R.FILTER_RESOLUTION,i.multisample=R.FILTER_MULTISAMPLE,i.enabled=!0,i.autoFit=!0,i.state=new so,i}var co=new ar,fo=(Object.defineProperty(po.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture=e,this._textureID=-1},enumerable:!1,configurable:!0}),po.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],o=e[i+1];t[i]=n*r.a+o*r.c+r.tx,t[i+1]=n*r.b+o*r.d+r.ty}return t},po.prototype.update=function(e){var t=this._texture;if(!t||!t.valid)return!1;if(!e&&this._textureID===t._updateID)return!1;this._textureID=t._updateID,this._updateID++;var e=t._uvs,e=(this.mapCoord.set(e.x1-e.x0,e.y1-e.y0,e.x3-e.x0,e.y3-e.y0,e.x0,e.y0),t.orig),r=t.trim,e=(r&&(co.set(e.width/r.width,0,0,e.height/r.height,-r.x/r.width,-r.y/r.height),this.mapCoord.append(co)),t.baseTexture),r=this.uClampFrame,i=this.clampMargin/e.resolution,n=this.clampOffset;return r[0]=(t._frame.x+i+n)/e.width,r[1]=(t._frame.y+i+n)/e.height,r[2]=(t._frame.x+t._frame.width-i+n)/e.width,r[3]=(t._frame.y+t._frame.height-i+n)/e.height,this.uClampOffset[0]=n/e.realWidth,this.uClampOffset[1]=n/e.realHeight,this.isSimple=t._frame.width===e.width&&t._frame.height===e.height&&0===t.rotate,!0},po);function po(e,t){this._texture=e,this.mapCoord=new ar,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=void 0===t?.5:t,this.isSimple=!1}c(go,mo=Q),Object.defineProperty(go.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),go.prototype.apply=function(e,t,r,i){var n=this._maskSprite,o=n._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new fo(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,n).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,r,i))};var mo,_o=go;function go(e,t,r){var i=this,n=null;return"string"!=typeof e&&void 0===t&&void 0===r&&(n=e,r=t=e=void 0),(i=mo.call(this,e||"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",t||"varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\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 float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * alpha * clip);\n\n gl_FragColor = original;\n}\n",r)||this).maskSprite=n,i.maskMatrix=new ar,i}yo.prototype.setMaskStack=function(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)},yo.prototype.push=function(e,t){var r,i=t,t=(i.isMaskData||((r=this.maskDataPool.pop()||new In).pooled=!0,r.maskObject=t,i=r),0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null);if(i.copyCountersOrReset(t),i._colorMask=t?t._colorMask:15,i.autoDetect&&this.detect(i),i._target=e,i.type!==$.MASK_TYPES.SPRITE&&this.maskStack.push(i),i.enabled)switch(i.type){case $.MASK_TYPES.SCISSOR:this.renderer.scissor.push(i);break;case $.MASK_TYPES.STENCIL:this.renderer.stencil.push(i);break;case $.MASK_TYPES.SPRITE:i.copyCountersOrReset(null),this.pushSpriteMask(i);break;case $.MASK_TYPES.COLOR:this.pushColorMask(i)}i.type===$.MASK_TYPES.SPRITE&&this.maskStack.push(i)},yo.prototype.pop=function(e){var t=this.maskStack.pop();if(t&&t._target===e){if(t.enabled)switch(t.type){case $.MASK_TYPES.SCISSOR:this.renderer.scissor.pop(t);break;case $.MASK_TYPES.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case $.MASK_TYPES.SPRITE:this.popSpriteMask(t);break;case $.MASK_TYPES.COLOR:this.popColorMask(t)}t.reset(),t.pooled&&this.maskDataPool.push(t),0===this.maskStack.length||(e=this.maskStack[this.maskStack.length-1]).type===$.MASK_TYPES.SPRITE&&e._filters&&(e._filters[0].maskSprite=e.maskObject)}},yo.prototype.detect=function(e){var t=e.maskObject;t?t.isSprite?e.type=$.MASK_TYPES.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=$.MASK_TYPES.SCISSOR:e.type=$.MASK_TYPES.STENCIL:e.type=$.MASK_TYPES.COLOR},yo.prototype.pushSpriteMask=function(e){var t,r=e.maskObject,i=e._target,n=(n=(n=e._filters)||this.alphaMaskPool[this.alphaMaskIndex])||(this.alphaMaskPool[this.alphaMaskIndex]=[new _o]),o=this.renderer,a=o.renderTexture,s=(a=a.current?(a=a.current,t=e.resolution||a.resolution,null!=(s=e.multisample)?s:a.multisample):(t=e.resolution||o.resolution,null!=(s=e.multisample)?s:o.multisample),n[0].resolution=t,n[0].multisample=a,n[0].maskSprite=r,i.filterArea);i.filterArea=r.getBounds(!0),o.filter.push(i,n),i.filterArea=s,e._filters||this.alphaMaskIndex++},yo.prototype.popSpriteMask=function(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},yo.prototype.pushColorMask=function(e){var t=e._colorMask,e=e._colorMask=t&e.colorMask;e!==t&&this.renderer.gl.colorMask(0!=(1&e),0!=(2&e),0!=(4&e),0!=(8&e))},yo.prototype.popColorMask=function(e){var e=e._colorMask,t=0<this.maskStack.length?this.maskStack[this.maskStack.length-1]._colorMask:15;t!==e&&this.renderer.gl.colorMask(0!=(1&t),0!=(2&t),0!=(4&t),0!=(8&t))},yo.prototype.destroy=function(){this.renderer=null};var vo=yo;function yo(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}bo.prototype.getStackLength=function(){return this.maskStack.length},bo.prototype.setMaskStack=function(e){var t=this.renderer.gl,r=this.getStackLength(),e=(this.maskStack=e,this.getStackLength());e!==r&&(0===e?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))},bo.prototype._useCurrent=function(){},bo.prototype.destroy=function(){this.renderer=null,this.maskStack=null};t=bo;function bo(e){this.renderer=e,this.maskStack=[],this.glConst=0}var xo,To=new ar,wo=[],Eo=(c(So,xo=t),So.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0},So.prototype.calcScissorRect=function(e){var t,r,i,n;e._scissorRectLocal||(t=e._scissorRect,n=e.maskObject,i=(r=this.renderer).renderTexture,n=n.getBounds(!0,null!=(n=wo.pop())?n:new w),this.roundFrameToPixels(n,(i.current||r).resolution,i.sourceFrame,i.destinationFrame,r.projection.transform),t&&n.fit(t),e._scissorRectLocal=n)},So.isMatrixRotated=function(e){var t,r,i;return!!e&&(t=e.a,r=e.b,i=e.c,e=e.d,(1e-4<Math.abs(r)||1e-4<Math.abs(i))&&(1e-4<Math.abs(t)||1e-4<Math.abs(e)))},So.prototype.testScissor=function(e){var t=e.maskObject;if(!t.isFastRect||!t.isFastRect())return!1;if(So.isMatrixRotated(t.worldTransform))return!1;if(So.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);t=e._scissorRectLocal;return 0<t.width&&0<t.height},So.prototype.roundFrameToPixels=function(e,t,r,i,n){So.isMatrixRotated(n)||((n=n?To.copyFrom(n):To.identity()).translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.renderer.filter.transformAABB(n,e),e.fit(i),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))},So.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var t=this.renderer.gl;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},So.prototype.pop=function(e){var t=this.renderer.gl;e&&wo.push(e._scissorRectLocal),0<this.getStackLength()?this._useCurrent():t.disable(t.SCISSOR_TEST)},So.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y;this.renderer.gl.scissor(e.x,t,e.width,e.height)},So);function So(e){e=xo.call(this,e)||this;return e.glConst=R.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,e}c(Oo,Ao=t),Oo.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},Oo.prototype.push=function(e){var t=e.maskObject,r=this.renderer.gl,i=e._stencilCounter,n=(0===i&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),e._stencilCounter++,e._colorMask);0!==n&&(e._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,i,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,0!==n&&(e._colorMask=n,r.colorMask(0!=(1&n),0!=(2&n),0!=(4&n),0!=(8&n))),this._useCurrent()},Oo.prototype.pop=function(e){var t,r,i=this.renderer.gl;0===this.getStackLength()?i.disable(i.STENCIL_TEST):(0!==(r=(t=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null)?t._colorMask:15)&&(t._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilOp(i.KEEP,i.KEEP,i.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,0!==r&&(t._colorMask=r,i.colorMask(0!=(1&r),0!=(2&r),0!=(4&r),0!=(8&r))),this._useCurrent())},Oo.prototype._useCurrent=function(){var e=this.renderer.gl;e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)};var Ao,ko=Oo;function Oo(e){e=Ao.call(this,e)||this;return e.glConst=R.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,e}Ro.prototype.update=function(e,t,r,i){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||e,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);t=this.renderer;t.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,t.globalUniforms.update(),t.shader.shader&&t.shader.syncUniformGroup(t.shader.shader.uniforms.globals)},Ro.prototype.calculateProjection=function(e,t,r,i){var n=this.projectionMatrix,i=i?-1:1;n.identity(),n.a=1/t.width*2,n.d=i*(1/t.height*2),n.tx=-1-t.x*n.a,n.ty=-i-t.y*n.d},Ro.prototype.setTransform=function(e){},Ro.prototype.destroy=function(){this.renderer=null};var Po=Ro;function Ro(e){this.renderer=e,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new ar,this.transform=null}var Co=new w,Mo=new w,Io=(Do.prototype.bind=function(e,t,r){var i,n,o,a=this.renderer,s=((this.current=e=void 0===e?null:e)?(o=(i=e.baseTexture).resolution,t||(Co.width=e.frame.width,Co.height=e.frame.height,t=Co),r||(Mo.x=e.frame.x,Mo.y=e.frame.y,Mo.width=t.width,Mo.height=t.height,r=Mo),n=i.framebuffer):(o=a.resolution,t||(Co.width=a.screen.width,Co.height=a.screen.height,t=Co),r||((r=Co).width=t.width,r.height=t.height)),this.viewportFrame);s.x=r.x*o,s.y=r.y*o,s.width=r.width*o,s.height=r.height*o,e||(s.y=a.view.height-(s.y+s.height)),s.ceil(),this.renderer.framebuffer.bind(n,s),this.renderer.projection.update(r,t,o,!n),e?this.renderer.mask.setMaskStack(i.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(t),this.destinationFrame.copyFrom(r)},Do.prototype.clear=function(e,t){e=this.current?e||this.current.baseTexture.clearColor:e||this.clearColor;var r,i,n,o=this.destinationFrame,a=this.current?this.current.baseTexture:this.renderer.screen,o=o.width!==a.width||o.height!==a.height;o&&(r=(a=this.viewportFrame).x,i=a.y,n=a.width,a=a.height,r=Math.round(r),i=Math.round(i),n=Math.round(n),a=Math.round(a),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(r,i,n,a)),this.renderer.framebuffer.clear(e[0],e[1],e[2],e[3],t),o&&this.renderer.scissor.pop()},Do.prototype.resize=function(){this.bind(null)},Do.prototype.reset=function(){this.bind(null)},Do.prototype.destroy=function(){this.renderer=null},Do);function Do(e){this.renderer=e,this.clearColor=e._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new w,this.destinationFrame=new w,this.viewportFrame=new w}function Lo(e,t,r,i,n){r.buffer.update(n)}var Fo={float:"\n data[offset] = v;\n ",vec2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n ",vec3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n ",vec4:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n data[offset+3] = v[3];\n ",mat2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n\n data[offset+4] = v[2];\n data[offset+5] = v[3];\n ",mat3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];\n ",mat4:"\n for(var i = 0; i < 16; i++)\n {\n data[offset + i] = v[i];\n }\n "},No={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function zo(e){for(var t=e.map(function(e){return{data:e,offset:0,dataLen:0,dirty:0}}),r=0,i=0,n=0,o=0;o<t.length;o++){var a,s=t[o],r=No[s.data.type];1<s.data.size&&(r=Math.max(r,16)*s.data.size),i%(s.dataLen=r)!=0&&i<16&&(i+=a=i%r%16,n+=a),16<i+r?(n=16*Math.ceil(n/16),s.offset=n,n+=r,i=r):(s.offset=n,i+=r,n+=r)}return{uboElements:t,size:n=16*Math.ceil(n/16)}}function Bo(e,t){var r,i=[];for(r in e)t[r]&&i.push(t[r]);return i.sort(function(e,t){return e.index-t.index}),i}function jo(e,t){if(!e.autoManage)return{size:0,syncFunc:Lo};for(var t=zo(Bo(e.uniforms,t)),r=t.uboElements,t=t.size,i=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],n=0;n<r.length;n++){for(var o,a,s=r[n],l=e.uniforms[s.data.name],u=s.data.name,h=!1,c=0;c<Kn.length;c++){var f=Kn[c];if(f.codeUbo&&f.test(s.data,l)){i.push("offset = "+s.offset/4+";",Kn[c].codeUbo(s.data.name,l)),h=!0;break}}h||(1<s.data.size?(o=Yn(s.data.type),a=Math.max(No[s.data.type]/16,1),i.push("\n cv = ud."+u+".value;\n v = uv."+u+";\n offset = "+s.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+s.data.size*a+"; i++)\n {\n for(var j = 0; j < "+(o=o/a)+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+(4-o%4)%4+";\n }\n\n ")):(a=Fo[s.data.type],i.push("\n cv = ud."+u+".value;\n v = uv."+u+";\n offset = "+s.offset/4+";\n "+a+";\n ")))}return i.push("\n renderer.buffer.update(buffer);\n "),{size:t,syncFunc:new Function("ud","uv","renderer","syncData","buffer",i.join("\n"))}}function Uo(){}Xo.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null};var Go=Xo;function Xo(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}function Ho(e,t){var r,i,n,o,a=Ln(e,e.VERTEX_SHADER,t.vertexSrc),s=Ln(e,e.FRAGMENT_SHADER,t.fragmentSrc),l=e.createProgram();if(e.attachShader(l,a),e.attachShader(l,s),e.linkProgram(l),e.getProgramParameter(l,e.LINK_STATUS)||(i=l,n=a,o=s,(r=e).getProgramParameter(i,r.LINK_STATUS)||(r.getShaderParameter(n,r.COMPILE_STATUS)||Fn(r,n),r.getShaderParameter(o,r.COMPILE_STATUS)||Fn(r,o),console.error("PixiJS Error: Could not initialize shader."),""!==r.getProgramInfoLog(i)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",r.getProgramInfoLog(i)))),t.attributeData=function(e,t){for(var r={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=0;n<i;n++){var o,a=t.getActiveAttrib(e,n);0!==a.name.indexOf("gl_")&&(o={type:o=Vn(t,a.type),name:a.name,size:Yn(o),location:t.getAttribLocation(e,a.name)},r[a.name]=o)}return r}(l,e),t.uniformData=function(e,t){for(var r={},i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=0;n<i;n++){var o=t.getActiveUniform(e,n),a=o.name.replace(/\[.*?\]$/,""),s=!!o.name.match(/\[.*?\]$/),l=Vn(t,o.type);r[a]={name:a,index:n,type:l,size:o.size,isArray:s,value:zn(l,o.size)}}return r}(l,e),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(t.vertexSrc)){var u=Object.keys(t.attributeData);u.sort(function(e,t){return t<e?1:-1});for(var h=0;h<u.length;h++)t.attributeData[u[h]].location=h,e.bindAttribLocation(l,h,u[h]);e.linkProgram(l)}e.deleteShader(a),e.deleteShader(s);var c={};for(h in t.uniformData){var f=t.uniformData[h];c[h]={location:e.getUniformLocation(l,h),value:zn(f.type,f.size)}}return new Go(l,c)}var Yo=0,Wo={textureCount:0,uboCount:0},qo=(Vo.prototype.systemCheck=function(){if(!function(){if("boolean"!=typeof Qn)try{var e=new Function("param1","param2","param3","return param1[param2] === param3;");Qn=!0===e({a:"b"},"a","b")}catch(e){Qn=!1}return Qn}())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},Vo.prototype.contextChange=function(e){this.gl=e,this.reset()},Vo.prototype.bind=function(e,t){e.uniforms.globals=this.renderer.globalUniforms;var r=e.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),t||(Wo.textureCount=0,Wo.uboCount=0,this.syncUniformGroup(e.uniformGroup,Wo)),i},Vo.prototype.setUniforms=function(e){var t=this.shader.program,r=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(r.uniformData,e,this.renderer)},Vo.prototype.syncUniformGroup=function(e,t){var r=this.getGlProgram();e.static&&e.dirtyId===r.uniformDirtyGroups[e.id]||(r.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,r,t))},Vo.prototype.syncUniforms=function(e,t,r){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,r)},Vo.prototype.createSyncGroups=function(e){var t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=function(e,t){var r,i=["\n var v = null;\n var cv = null;\n var cu = null;\n var t = 0;\n var gl = renderer.gl;\n "];for(r in e.uniforms){var n=t[r];if(n){for(var o,a=e.uniforms[r],s=!1,l=0;l<Kn.length;l++)if(Kn[l].test(n,a)){i.push(Kn[l].code(r,a)),s=!0;break}s||(o=(1!==n.size||n.isArray?Zn:Jn)[n.type].replace("location",'ud["'+r+'"].location'),i.push('\n cu = ud["'+r+'"];\n cv = cu.value;\n v = uv["'+r+'"];\n '+o+";"))}else null!=(o=e.uniforms[r])&&o.group&&(e.uniforms[r].ubo?i.push("\n renderer.shader.syncUniformBufferGroup(uv."+r+", '"+r+"');\n "):i.push("\n renderer.shader.syncUniformGroup(uv."+r+", syncData);\n "))}return new Function("ud","uv","renderer","syncData",i.join("\n"))}(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]},Vo.prototype.syncUniformBufferGroup=function(e,t){var r,i=this.getGlProgram();e.static&&0===e.dirtyId&&i.uniformGroups[e.id]||(e.dirtyId=0,r=i.uniformGroups[e.id]||this.createSyncBufferGroup(e,i,t),e.buffer.update(),r(i.uniformData,e.uniforms,this.renderer,Wo,e.buffer)),this.renderer.buffer.bindBufferBase(e.buffer,i.uniformBufferBindings[t])},Vo.prototype.createSyncBufferGroup=function(e,t,r){var i=this.renderer.gl,n=(this.renderer.buffer.bind(e.buffer),this.gl.getUniformBlockIndex(t.program,r)),r=(t.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(t.program,n,this.shader.uniformBindCount),this.shader.uniformBindCount++,this.getSignature(e,this.shader.program.uniformData,"ubo")),i=(i=this._uboCache[r])||(this._uboCache[r]=jo(e,this.shader.program.uniformData));return e.autoManage&&(n=new Float32Array(i.size/4),e.buffer.update(n)),t.uniformGroups[e.id]=i.syncFunc,t.uniformGroups[e.id]},Vo.prototype.getSignature=function(e,t,r){var i,n=[r+"-"];for(i in e.uniforms)n.push(i),t[i]&&n.push(t[i].type);return n.join("-")},Vo.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},Vo.prototype.generateProgram=function(e){var t=this.gl,e=e.program,t=Ho(t,e);return e.glPrograms[this.renderer.CONTEXT_UID]=t},Vo.prototype.reset=function(){this.program=null,this.shader=null},Vo.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},Vo);function Vo(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Yo++}Jo.prototype.contextChange=function(e){var t;this.gl=e,this.blendModes=(e=e,(t=void 0===t?[]:t)[$.BLEND_MODES.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.ADD]=[e.ONE,e.ONE],t[$.BLEND_MODES.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.NONE]=[0,0],t[$.BLEND_MODES.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[$.BLEND_MODES.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[$.BLEND_MODES.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[$.BLEND_MODES.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[$.BLEND_MODES.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[$.BLEND_MODES.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[$.BLEND_MODES.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t),this.set(this.defaultState),this.reset()},Jo.prototype.set=function(e){if(e=e||this.defaultState,this.stateId!==e.data){for(var t=this.stateId^e.data,r=0;t;)1&t&&this.map[r].call(this,!!(e.data&1<<r)),t>>=1,r++;this.stateId=e.data}for(r=0;r<this.checks.length;r++)this.checks[r](this,e)},Jo.prototype.forceState=function(e){e=e||this.defaultState;for(var t=0;t<this.map.length;t++)this.map[t].call(this,!!(e.data&1<<t));for(t=0;t<this.checks.length;t++)this.checks[t](this,e);this.stateId=e.data},Jo.prototype.setBlend=function(e){this.updateCheck(Jo.checkBlendMode,e),this.gl[e?"enable":"disable"](this.gl.BLEND)},Jo.prototype.setOffset=function(e){this.updateCheck(Jo.checkPolygonOffset,e),this.gl[e?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},Jo.prototype.setDepthTest=function(e){this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST)},Jo.prototype.setDepthMask=function(e){this.gl.depthMask(e)},Jo.prototype.setCullFace=function(e){this.gl[e?"enable":"disable"](this.gl.CULL_FACE)},Jo.prototype.setFrontFace=function(e){this.gl.frontFace(this.gl[e?"CW":"CCW"])},Jo.prototype.setBlendMode=function(e){var t;e!==this.blendMode&&(this.blendMode=e,e=this.blendModes[e],t=this.gl,2===e.length?t.blendFunc(e[0],e[1]):t.blendFuncSeparate(e[0],e[1],e[2],e[3]),6===e.length?(this._blendEq=!0,t.blendEquationSeparate(e[4],e[5])):this._blendEq&&(this._blendEq=!1,t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD)))},Jo.prototype.setPolygonOffset=function(e,t){this.gl.polygonOffset(e,t)},Jo.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},Jo.prototype.updateCheck=function(e,t){var r=this.checks.indexOf(e);t&&-1===r?this.checks.push(e):t||-1===r||this.checks.splice(r,1)},Jo.checkBlendMode=function(e,t){e.setBlendMode(t.blendMode)},Jo.checkPolygonOffset=function(e,t){e.setPolygonOffset(1,t.polygonOffset)},Jo.prototype.destroy=function(){this.gl=null};var Ko=Jo;function Jo(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=$.BLEND_MODES.NONE,this._blendEq=!1,this.map=[],this.map[0]=this.setBlend,this.map[1]=this.setOffset,this.map[2]=this.setCullFace,this.map[3]=this.setDepthTest,this.map[4]=this.setFrontFace,this.map[5]=this.setDepthMask,this.checks=[],this.defaultState=new so,this.defaultState.blend=!0}Qo.prototype.postrender=function(){this.renderer.renderingToScreen&&(this.count++,this.mode!==$.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},Qo.prototype.run=function(){for(var e=this.renderer.texture,t=e.managedTextures,r=!1,i=0;i<t.length;i++){var n=t[i];!n.framebuffer&&this.count-n.touched>this.maxIdle&&(e.destroyTexture(n,!0),r=!(t[i]=null))}if(r){for(var o=0,i=0;i<t.length;i++)null!==t[i]&&(t[o++]=t[i]);t.length=o}},Qo.prototype.unload=function(e){var t=this.renderer.texture,r=e._texture;r&&!r.framebuffer&&t.destroyTexture(r);for(var i=e.children.length-1;0<=i;i--)this.unload(e.children[i])},Qo.prototype.destroy=function(){this.renderer=null};var Zo=Qo;function Qo(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=R.GC_MAX_IDLE,this.checkCountMax=R.GC_MAX_CHECK_COUNT,this.mode=R.GC_MODE}var $o=function(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=$.TYPES.UNSIGNED_BYTE,this.internalFormat=$.FORMATS.RGBA,this.samplerType=0},ea=(ta.prototype.contextChange=function(){var e,t,r=this.gl=this.renderer.gl,i=(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=(e=r,e="WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?((o={})[$.TYPES.UNSIGNED_BYTE]=((t={})[$.FORMATS.RGBA]=e.RGBA8,t[$.FORMATS.RGB]=e.RGB8,t[$.FORMATS.RG]=e.RG8,t[$.FORMATS.RED]=e.R8,t[$.FORMATS.RGBA_INTEGER]=e.RGBA8UI,t[$.FORMATS.RGB_INTEGER]=e.RGB8UI,t[$.FORMATS.RG_INTEGER]=e.RG8UI,t[$.FORMATS.RED_INTEGER]=e.R8UI,t[$.FORMATS.ALPHA]=e.ALPHA,t[$.FORMATS.LUMINANCE]=e.LUMINANCE,t[$.FORMATS.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,t),o[$.TYPES.BYTE]=((t={})[$.FORMATS.RGBA]=e.RGBA8_SNORM,t[$.FORMATS.RGB]=e.RGB8_SNORM,t[$.FORMATS.RG]=e.RG8_SNORM,t[$.FORMATS.RED]=e.R8_SNORM,t[$.FORMATS.RGBA_INTEGER]=e.RGBA8I,t[$.FORMATS.RGB_INTEGER]=e.RGB8I,t[$.FORMATS.RG_INTEGER]=e.RG8I,t[$.FORMATS.RED_INTEGER]=e.R8I,t),o[$.TYPES.UNSIGNED_SHORT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA16UI,t[$.FORMATS.RGB_INTEGER]=e.RGB16UI,t[$.FORMATS.RG_INTEGER]=e.RG16UI,t[$.FORMATS.RED_INTEGER]=e.R16UI,t[$.FORMATS.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,t),o[$.TYPES.SHORT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA16I,t[$.FORMATS.RGB_INTEGER]=e.RGB16I,t[$.FORMATS.RG_INTEGER]=e.RG16I,t[$.FORMATS.RED_INTEGER]=e.R16I,t),o[$.TYPES.UNSIGNED_INT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA32UI,t[$.FORMATS.RGB_INTEGER]=e.RGB32UI,t[$.FORMATS.RG_INTEGER]=e.RG32UI,t[$.FORMATS.RED_INTEGER]=e.R32UI,t[$.FORMATS.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,t),o[$.TYPES.INT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA32I,t[$.FORMATS.RGB_INTEGER]=e.RGB32I,t[$.FORMATS.RG_INTEGER]=e.RG32I,t[$.FORMATS.RED_INTEGER]=e.R32I,t),o[$.TYPES.FLOAT]=((t={})[$.FORMATS.RGBA]=e.RGBA32F,t[$.FORMATS.RGB]=e.RGB32F,t[$.FORMATS.RG]=e.RG32F,t[$.FORMATS.RED]=e.R32F,t[$.FORMATS.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,t),o[$.TYPES.HALF_FLOAT]=((t={})[$.FORMATS.RGBA]=e.RGBA16F,t[$.FORMATS.RGB]=e.RGB16F,t[$.FORMATS.RG]=e.RG16F,t[$.FORMATS.RED]=e.R16F,t),o[$.TYPES.UNSIGNED_SHORT_5_6_5]=((t={})[$.FORMATS.RGB]=e.RGB565,t),o[$.TYPES.UNSIGNED_SHORT_4_4_4_4]=((t={})[$.FORMATS.RGBA]=e.RGBA4,t),o[$.TYPES.UNSIGNED_SHORT_5_5_5_1]=((t={})[$.FORMATS.RGBA]=e.RGB5_A1,t),o[$.TYPES.UNSIGNED_INT_2_10_10_10_REV]=((t={})[$.FORMATS.RGBA]=e.RGB10_A2,t[$.FORMATS.RGBA_INTEGER]=e.RGB10_A2UI,t),o[$.TYPES.UNSIGNED_INT_10F_11F_11F_REV]=((t={})[$.FORMATS.RGB]=e.R11F_G11F_B10F,t),o[$.TYPES.UNSIGNED_INT_5_9_9_9_REV]=((t={})[$.FORMATS.RGB]=e.RGB9_E5,t),o[$.TYPES.UNSIGNED_INT_24_8]=((t={})[$.FORMATS.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,t),o[$.TYPES.FLOAT_32_UNSIGNED_INT_24_8_REV]=((t={})[$.FORMATS.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,t),o):((t={})[$.TYPES.UNSIGNED_BYTE]=((o={})[$.FORMATS.RGBA]=e.RGBA,o[$.FORMATS.RGB]=e.RGB,o[$.FORMATS.ALPHA]=e.ALPHA,o[$.FORMATS.LUMINANCE]=e.LUMINANCE,o[$.FORMATS.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,o),t[$.TYPES.UNSIGNED_SHORT_5_6_5]=((o={})[$.FORMATS.RGB]=e.RGB,o),t[$.TYPES.UNSIGNED_SHORT_4_4_4_4]=((o={})[$.FORMATS.RGBA]=e.RGBA,o),t[$.TYPES.UNSIGNED_SHORT_5_5_5_1]=((o={})[$.FORMATS.RGBA]=e.RGBA,o),t)),r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS));this.boundTextures.length=i;for(var n=0;n<i;n++)this.boundTextures[n]=null;this.emptyTextures={};var o=new $o(r.createTexture());r.bindTexture(r.TEXTURE_2D,o.texture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,1,1,0,r.RGBA,r.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[r.TEXTURE_2D]=o,this.emptyTextures[r.TEXTURE_CUBE_MAP]=new $o(r.createTexture()),r.bindTexture(r.TEXTURE_CUBE_MAP,this.emptyTextures[r.TEXTURE_CUBE_MAP].texture);for(n=0;n<6;n++)r.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X+n,0,r.RGBA,1,1,0,r.RGBA,r.UNSIGNED_BYTE,null);r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MIN_FILTER,r.LINEAR);for(n=0;n<this.boundTextures.length;n++)this.bind(null,n)},ta.prototype.bind=function(e,t){void 0===t&&(t=0);var r,i=this.gl;(e=null==e?void 0:e.castToBaseTexture())&&e.valid&&!e.parentTextureArray?(e.touched=this.renderer.textureGC.count,r=e._glTextures[this.CONTEXT_UID]||this.initTexture(e),this.boundTextures[t]!==e&&(this.currentLocation!==t&&(this.currentLocation=t,i.activeTexture(i.TEXTURE0+t)),i.bindTexture(e.target,r.texture)),r.dirtyId!==e.dirtyId?(this.currentLocation!==t&&(this.currentLocation=t,i.activeTexture(i.TEXTURE0+t)),this.updateTexture(e)):r.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(e),this.boundTextures[t]=e):(this.currentLocation!==t&&(this.currentLocation=t,i.activeTexture(i.TEXTURE0+t)),i.bindTexture(i.TEXTURE_2D,this.emptyTextures[i.TEXTURE_2D].texture),this.boundTextures[t]=null)},ta.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var e=0;e<this.boundTextures.length;e++)this.boundTextures[e]=this.unknownTexture},ta.prototype.unbind=function(e){var t=this.gl,r=this.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var i=0;i<r.length;i++)r[i]===this.unknownTexture&&this.bind(null,i)}for(i=0;i<r.length;i++)r[i]===e&&(this.currentLocation!==i&&(t.activeTexture(t.TEXTURE0+i),this.currentLocation=i),t.bindTexture(e.target,this.emptyTextures[e.target].texture),r[i]=null)},ta.prototype.ensureSamplerType=function(e){var t=this.boundTextures,r=this.hasIntegerTextures,i=this.CONTEXT_UID;if(r)for(var n=e-1;0<=n;--n){var o=t[n];o&&o._glTextures[i].samplerType!==$.SAMPLER_TYPES.FLOAT&&this.renderer.texture.unbind(o)}},ta.prototype.initTexture=function(e){var t=new $o(this.gl.createTexture());return t.dirtyId=-1,e._glTextures[this.CONTEXT_UID]=t,this.managedTextures.push(e),e.on("dispose",this.destroyTexture,this),t},ta.prototype.initTextureType=function(e,t){var r;t.internalFormat=null!=(r=null==(r=this.internalFormats[e.type])?void 0:r[e.format])?r:e.format,2===this.webGLVersion&&e.type===$.TYPES.HALF_FLOAT?t.type=this.gl.HALF_FLOAT:t.type=e.type},ta.prototype.updateTexture=function(e){var t,r,i,n=e._glTextures[this.CONTEXT_UID];n&&(i=this.renderer,this.initTextureType(e,n),e.resource&&e.resource.upload(i,e,n)?n.samplerType!==$.SAMPLER_TYPES.FLOAT&&(this.hasIntegerTextures=!0):(t=e.realWidth,r=e.realHeight,i=i.gl,(n.width!==t||n.height!==r||n.dirtyId<0)&&(n.width=t,n.height=r,i.texImage2D(e.target,0,n.internalFormat,t,r,0,e.format,n.type,null))),e.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(e),n.dirtyId=e.dirtyId)},ta.prototype.destroyTexture=function(e,t){var r=this.gl;(e=e.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(e),r.deleteTexture(e._glTextures[this.CONTEXT_UID].texture),e.off("dispose",this.destroyTexture,this),delete e._glTextures[this.CONTEXT_UID],t||-1!==(r=this.managedTextures.indexOf(e))&&kt(this.managedTextures,r,1))},ta.prototype.updateTextureStyle=function(e){var t=e._glTextures[this.CONTEXT_UID];t&&(e.mipmap!==$.MIPMAP_MODES.POW2&&2===this.webGLVersion||e.isPowerOfTwo?t.mipmap=1<=e.mipmap:t.mipmap=!1,2===this.webGLVersion||e.isPowerOfTwo?t.wrapMode=e.wrapMode:t.wrapMode=$.WRAP_MODES.CLAMP,e.resource&&e.resource.style(this.renderer,e,t)||this.setStyle(e,t),t.dirtyStyleId=e.dirtyStyleId)},ta.prototype.setStyle=function(e,t){var r,i=this.gl;t.mipmap&&e.mipmap!==$.MIPMAP_MODES.ON_MANUAL&&i.generateMipmap(e.target),i.texParameteri(e.target,i.TEXTURE_WRAP_S,t.wrapMode),i.texParameteri(e.target,i.TEXTURE_WRAP_T,t.wrapMode),t.mipmap?(i.texParameteri(e.target,i.TEXTURE_MIN_FILTER,e.scaleMode===$.SCALE_MODES.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST),(t=this.renderer.context.extensions.anisotropicFiltering)&&0<e.anisotropicLevel&&e.scaleMode===$.SCALE_MODES.LINEAR&&(r=Math.min(e.anisotropicLevel,i.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),i.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY_EXT,r))):i.texParameteri(e.target,i.TEXTURE_MIN_FILTER,e.scaleMode===$.SCALE_MODES.LINEAR?i.LINEAR:i.NEAREST),i.texParameteri(e.target,i.TEXTURE_MAG_FILTER,e.scaleMode===$.SCALE_MODES.LINEAR?i.LINEAR:i.NEAREST)},ta.prototype.destroy=function(){this.renderer=null},ta);function ta(e){this.renderer=e,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new C,this.hasIntegerTextures=!1}var ra,ia={__proto__:null,FilterSystem:gn,BatchSystem:xn,ContextSystem:En,FramebufferSystem:On,GeometrySystem:Cn,MaskSystem:vo,ScissorSystem:Eo,StencilSystem:ko,ProjectionSystem:Po,RenderTextureSystem:Io,ShaderSystem:qo,StateSystem:Ko,TextureGCSystem:Zo,TextureSystem:ea},na=new ar,oa=(c(aa,ra=re),aa.prototype.initPlugins=function(e){for(var t in e)this.plugins[t]=new e[t](this)},Object.defineProperty(aa.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(aa.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),aa.prototype.resize=function(e,t){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(t*this.resolution);e=this.view.width/this.resolution,t=this.view.height/this.resolution;this.screen.width=e,this.screen.height=t,this.autoDensity&&(this.view.style.width=e+"px",this.view.style.height=t+"px"),this.emit("resize",e,t)},aa.prototype.generateTexture=function(e,t,r,i){"number"==typeof(t=void 0===t?{}:t)&&(Mt("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),t={scaleMode:t,resolution:r,region:i});r=t.region,t=function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(t,["region"]),0===(i=r||e.getLocalBounds(null,!0)).width&&(i.width=1),0===i.height&&(i.height=1),r=Gi.create(Zr({width:i.width,height:i.height},t));return na.tx=-i.x,na.ty=-i.y,this.render(e,{renderTexture:r,clear:!1,transform:na,skipUpdateTransform:!!e.parent}),r},aa.prototype.destroy=function(e){for(var t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);this.plugins=null,this.type=$.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this._tempDisplayObjectParent=null,this.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(aa.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=dt(e),pt(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(aa.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),aa);function aa(e,t){void 0===e&&(e=$.RENDERER_TYPE.UNKNOWN);var r=ra.call(this)||this;return t=Object.assign({},R.RENDER_OPTIONS,t),r.options=t,r.type=e,r.screen=new w(0,0,t.width,t.height),r.view=t.view||R.ADAPTER.createCanvas(),r.resolution=t.resolution||R.RESOLUTION,r.useContextAlpha=t.useContextAlpha,r.autoDensity=!!t.autoDensity,r.preserveDrawingBuffer=t.preserveDrawingBuffer,r.clearBeforeRender=t.clearBeforeRender,r._backgroundColor=0,r._backgroundColorRgba=[0,0,0,1],r._backgroundColorString="#000000",r.backgroundColor=t.backgroundColor||r._backgroundColor,r.backgroundAlpha=t.backgroundAlpha,void 0!==t.transparent&&(Mt("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),r.useContextAlpha=t.transparent,r.backgroundAlpha=t.transparent?0:1),r._lastObjectRendered=null,r.plugins={},r}var sa=function(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0},la=(ua.prototype.destroy=function(){this.renderer=null},ua.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},ua.prototype.bind=function(e){var t=this.gl,r=this.CONTEXT_UID,r=e._glBuffers[r]||this.createGLBuffer(e);t.bindBuffer(e.type,r.buffer)},ua.prototype.bindBufferBase=function(e,t){var r=this.gl,i=this.CONTEXT_UID;this.boundBufferBases[t]!==e&&(i=e._glBuffers[i]||this.createGLBuffer(e),this.boundBufferBases[t]=e,r.bindBufferBase(r.UNIFORM_BUFFER,t,i.buffer))},ua.prototype.bindBufferRange=function(e,t,r){var i=this.gl,n=this.CONTEXT_UID,n=(r=r||0,e._glBuffers[n]||this.createGLBuffer(e));i.bindBufferRange(i.UNIFORM_BUFFER,t||0,n.buffer,256*r,256)},ua.prototype.update=function(e){var t,r=this.gl,i=this.CONTEXT_UID,i=e._glBuffers[i];e._updateID!==i.updateID&&(i.updateID=e._updateID,r.bindBuffer(e.type,i.buffer),i.byteLength>=e.data.byteLength?r.bufferSubData(e.type,0,e.data):(t=e.static?r.STATIC_DRAW:r.DYNAMIC_DRAW,i.byteLength=e.data.byteLength,r.bufferData(e.type,e.data,t)))},ua.prototype.dispose=function(e,t){var r,i;this.managedBuffers[e.id]&&(delete this.managedBuffers[e.id],r=e._glBuffers[this.CONTEXT_UID],i=this.gl,e.disposeRunner.remove(this),r&&(t||i.deleteBuffer(r.buffer),delete e._glBuffers[this.CONTEXT_UID]))},ua.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedBuffers),r=0;r<t.length;r++)this.dispose(this.managedBuffers[t[r]],e)},ua.prototype.createGLBuffer=function(e){var t=this.CONTEXT_UID,r=this.gl;return e._glBuffers[t]=new sa(r.createBuffer()),(this.managedBuffers[e.id]=e).disposeRunner.add(this),e._glBuffers[t]},ua);function ua(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}c(fa,ha=oa),fa.create=function(e){if(ct())return new fa(e);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},fa.prototype.contextChange=function(){var e,t,r=this.gl;1===this.context.webGLVersion?(t=r.getParameter(r.FRAMEBUFFER_BINDING),r.bindFramebuffer(r.FRAMEBUFFER,null),e=r.getParameter(r.SAMPLES),r.bindFramebuffer(r.FRAMEBUFFER,t)):(t=r.getParameter(r.DRAW_FRAMEBUFFER_BINDING),r.bindFramebuffer(r.DRAW_FRAMEBUFFER,null),e=r.getParameter(r.SAMPLES),r.bindFramebuffer(r.DRAW_FRAMEBUFFER,t)),e>=$.MSAA_QUALITY.HIGH?this.multisample=$.MSAA_QUALITY.HIGH:e>=$.MSAA_QUALITY.MEDIUM?this.multisample=$.MSAA_QUALITY.MEDIUM:e>=$.MSAA_QUALITY.LOW?this.multisample=$.MSAA_QUALITY.LOW:this.multisample=$.MSAA_QUALITY.NONE},fa.prototype.addSystem=function(e,t){var r,i=new e(this);if(this[t])throw new Error('Whoops! The name "'+t+'" is already in use');for(r in this[t]=i,this.runners)this.runners[r].add(i);return this},fa.prototype.render=function(e,t){var r,i,n,o;t&&(o=t instanceof Gi?(Mt("6.0.0","Renderer#render arguments changed, use options instead."),r=t,i=arguments[2],n=arguments[3],arguments[4]):(r=t.renderTexture,i=t.clear,n=t.transform,t.skipUpdateTransform)),this.renderingToScreen=!r,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=n,this.context.isLost||(r||(this._lastObjectRendered=e),o||(t=e.enableTempParent(),e.updateTransform(),e.disableTempParent(t)),this.renderTexture.bind(r),this.batch.currentRenderer.start(),(void 0!==i?i:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),r&&r.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender"))},fa.prototype.generateTexture=function(e,t,r,i){e=ha.prototype.generateTexture.call(this,e,t=void 0===t?{}:t,r,i);return this.framebuffer.blit(),e},fa.prototype.resize=function(e,t){ha.prototype.resize.call(this,e,t),this.runners.resize.emit(this.screen.height,this.screen.width)},fa.prototype.reset=function(){return this.runners.reset.emit(),this},fa.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},fa.prototype.destroy=function(e){for(var t in this.runners.destroy.emit(),this.runners)this.runners[t].destroy();ha.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(fa.prototype,"extract",{get:function(){return Mt("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),fa.registerPlugin=function(e,t){Mt("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),Ur.add({name:e,type:$.ExtensionType.RendererPlugin,ref:t})},fa.__plugins={};var ha,ca=fa;function fa(e){var t=ha.call(this,$.RENDERER_TYPE.WEBGL,e)||this;return e=t.options,t.gl=null,t.CONTEXT_UID=0,t.runners={destroy:new Gr("destroy"),contextChange:new Gr("contextChange"),reset:new Gr("reset"),update:new Gr("update"),postrender:new Gr("postrender"),prerender:new Gr("prerender"),resize:new Gr("resize")},t.runners.contextChange.add(t),t.globalUniforms=new cn({projectionMatrix:new ar},!0),t.addSystem(vo,"mask").addSystem(En,"context").addSystem(Ko,"state").addSystem(qo,"shader").addSystem(ea,"texture").addSystem(la,"buffer").addSystem(Cn,"geometry").addSystem(On,"framebuffer").addSystem(Eo,"scissor").addSystem(ko,"stencil").addSystem(Po,"projection").addSystem(Zo,"textureGC").addSystem(gn,"filter").addSystem(Io,"renderTexture").addSystem(xn,"batch"),t.initPlugins(fa.__plugins),t.multisample=void 0,e.context?t.context.initFromContext(e.context):t.context.initFromOptions({alpha:!!t.useContextAlpha,antialias:e.antialias,premultipliedAlpha:t.useContextAlpha&&"notMultiplied"!==t.useContextAlpha,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:t.options.powerPreference}),t.renderingToScreen=!0,ht(2===t.context.webGLVersion?"WebGL 2":"WebGL 1"),t.resize(t.options.width,t.options.height),t}function pa(e){return ca.create(e)}Ur.handleByMap($.ExtensionType.RendererPlugin,ca.__plugins);var da="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}",ma="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",_a=(ga.prototype.destroy=function(){this.renderer=null},ga);function ga(e){Mt("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=e}var va=function(){this.texArray=null,this.blend=0,this.type=$.DRAW_MODES.TRIANGLES,this.start=0,this.size=0,this.data=null},ya=(ba.prototype.clear=function(){for(var e=0;e<this.count;e++)this.elements[e]=null;this.count=0},ba);function ba(){this.elements=[],this.ids=[],this.count=0}Object.defineProperty(Ta.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(Ta.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(Ta.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(Ta.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(Ta.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),Ta.prototype.view=function(e){return this[e+"View"]},Ta.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},Ta.sizeOf=function(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(e+" isn't a valid view type")}};var xa=Ta;function Ta(e){"number"==typeof e?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}c(Sa,wa=yn),Sa.prototype.contextChange=function(){var e=this.renderer.gl;R.PREFER_ENV===$.ENV.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),R.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=eo(this.MAX_TEXTURES,e)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()},Sa.prototype.initFlushBuffers=function(){for(var e=Sa._drawCallPool,t=Sa._textureArrayPool,r=this.size/4,i=Math.floor(r/this.MAX_TEXTURES)+1;e.length<r;)e.push(new va);for(;t.length<i;)t.push(new ya);for(var n=0;n<this.MAX_TEXTURES;n++)this._tempBoundTextures[n]=null},Sa.prototype.onPrerender=function(){this._flushId=0},Sa.prototype.render=function(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},Sa.prototype.buildTexturesAndDrawCalls=function(){var e=this._bufferedTextures,t=this.MAX_TEXTURES,r=Sa._textureArrayPool,i=this.renderer.batch,n=this._tempBoundTextures,o=this.renderer.textureGC.count,a=++C._globalBatch,s=0,l=r[0],u=0;i.copyBoundTextures(n,t);for(var h=0;h<this._bufferSize;++h){var c=e[h];e[h]=null,c._batchEnabled!==a&&(l.count>=t&&(i.boundArray(l,n,a,t),this.buildDrawCalls(l,u,h),u=h,l=r[++s],++a),c._batchEnabled=a,c.touched=o,l.elements[l.count++]=c)}0<l.count&&(i.boundArray(l,n,a,t),this.buildDrawCalls(l,u,this._bufferSize),++s,++a);for(h=0;h<n.length;h++)n[h]=null;C._globalBatch=a},Sa.prototype.buildDrawCalls=function(e,t,r){var i=this._bufferedElements,n=this._attributeBuffer,o=this._indexBuffer,a=this.vertexSize,s=Sa._drawCallPool,l=this._dcIndex,u=this._aIndex,h=this._iIndex,c=s[l];c.start=this._iIndex,c.texArray=e;for(var f=t;f<r;++f){var p=i[f],d=p._texture.baseTexture,d=_t[d.alphaMode?1:0][p.blendMode];i[f]=null,t<f&&c.blend!==d&&(c.size=h-c.start,t=f,(c=s[++l]).texArray=e,c.start=h),this.packInterleavedGeometry(p,n,o,u,h),u+=p.vertexData.length/2*a,h+=p.indices.length,c.blend=d}t<r&&(c.size=h-c.start,++l),this._dcIndex=l,this._aIndex=u,this._iIndex=h},Sa.prototype.bindAndClearTexArray=function(e){for(var t=this.renderer.texture,r=0;r<e.count;r++)t.bind(e.elements[r],e.ids[r]),e.elements[r]=null;e.count=0},Sa.prototype.updateGeometry=function(){var e=this._packedGeometries,t=this._attributeBuffer,r=this._indexBuffer;R.CAN_UPLOAD_SAME_BUFFER?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(r),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(r),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},Sa.prototype.drawBatches=function(){for(var e=this._dcIndex,t=this.renderer,r=t.gl,i=t.state,n=Sa._drawCallPool,o=null,a=0;a<e;a++){var s=n[a],l=s.texArray,u=s.type,h=s.size,c=s.start,s=s.blend;o!==l&&this.bindAndClearTexArray(o=l),this.state.blendMode=s,i.set(this.state),r.drawElements(u,h,r.UNSIGNED_SHORT,2*c)}},Sa.prototype.flush=function(){0!==this._vertexCount&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)},Sa.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),R.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},Sa.prototype.stop=function(){this.flush()},Sa.prototype.destroy=function(){for(var e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]&&this._packedGeometries[e].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),wa.prototype.destroy.call(this)},Sa.prototype.getAttributeBuffer=function(e){var e=Et(Math.ceil(e/8)),t=At(e),e=8*e,t=(this._aBuffers.length<=t&&(this._iBuffers.length=t+1),this._aBuffers[e]);return t||(this._aBuffers[e]=t=new xa(e*this.vertexSize*4)),t},Sa.prototype.getIndexBuffer=function(e){var e=Et(Math.ceil(e/12)),t=At(e),e=12*e,r=(this._iBuffers.length<=t&&(this._iBuffers.length=t+1),this._iBuffers[t]);return r||(this._iBuffers[t]=r=new Uint16Array(e)),r},Sa.prototype.packInterleavedGeometry=function(e,t,r,i,n){for(var o=t.uint32View,a=t.float32View,s=i/this.vertexSize,l=e.uvs,u=e.indices,h=e.vertexData,c=e._texture.baseTexture._batchLocation,t=Math.min(e.worldAlpha,1),f=t<1&&e._texture.baseTexture.alphaMode?yt(e._tintRGB,t):e._tintRGB+(255*t<<24),p=0;p<h.length;p+=2)a[i++]=h[p],a[i++]=h[p+1],a[i++]=l[p],a[i++]=l[p+1],o[i++]=f,a[i++]=c;for(p=0;p<u.length;p++)r[n++]=s+u[p]},Sa._drawCallPool=[],Sa._textureArrayPool=[];var wa,Ea=Sa;function Sa(e){var t=wa.call(this,e)||this;return t.shaderGenerator=null,t.geometryClass=null,t.vertexSize=null,t.state=so.for2d(),t.size=4*R.SPRITE_BATCH_SIZE,t._vertexCount=0,t._indexCount=0,t._bufferedElements=[],t._bufferedTextures=[],t._bufferSize=0,t._shader=null,t._packedGeometries=[],t._packedGeometryPoolSize=2,t._flushId=0,t._aBuffers={},t._iBuffers={},t.MAX_TEXTURES=1,t.renderer.on("prerender",t.onPrerender,t),e.runners.contextChange.add(t),t._dcIndex=0,t._aIndex=0,t._iIndex=0,t._attributeBuffer=null,t._indexBuffer=null,t._tempBoundTextures=[],t}ka.prototype.generateShader=function(e){if(!this.programCache[e]){for(var t=new Int32Array(e),r=0;r<e;r++)t[r]=r;this.defaultGroupCache[e]=cn.from({uSamplers:t},!0);var i=this.fragTemplate;i=(i=i.replace(/%count%/gi,""+e)).replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new io(this.vertexSrc,i)}i={tint:new Float32Array([1,1,1,1]),translationMatrix:new ar,default:this.defaultGroupCache[e]};return new oo(this.programCache[e],i)},ka.prototype.generateSampleSrc=function(e){for(var t=(t="")+"\n"+"\n",r=0;r<e;r++)0<r&&(t+="\nelse "),r<e-1&&(t+="if(vTextureId < "+r+".5)"),t=(t+="\n{")+"\n\tcolor = texture2D(uSamplers["+r+"], vTextureCoord);\n}";return t=t+"\n"+"\n"};var Aa=ka;function ka(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},t.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(t.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}c(Ra,Oa=tn);var Oa,Pa=Ra;function Ra(e){void 0===e&&(e=!1);var t=Oa.call(this)||this;return t._buffer=new Ki(null,e,!1),t._indexBuffer=new Ki(null,e,!0),t.addAttribute("aVertexPosition",t._buffer,2,!1,$.TYPES.FLOAT).addAttribute("aTextureCoord",t._buffer,2,!1,$.TYPES.FLOAT).addAttribute("aColor",t._buffer,4,!0,$.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",t._buffer,1,!0,$.TYPES.FLOAT).addIndex(t._indexBuffer),t}var Ca="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n",Ma="varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n",Ia=(Da.create=function(e){var t,e=Object.assign({vertex:Ca,fragment:Ma,geometryClass:Pa,vertexSize:6},e),r=e.vertex,i=e.fragment,n=e.vertexSize,o=e.geometryClass;return c(a,t=Ea),a;function a(e){e=t.call(this,e)||this;return e.shaderGenerator=new Aa(r,i),e.geometryClass=o,e.vertexSize=n,e}},Object.defineProperty(Da,"defaultVertexSrc",{get:function(){return Ca},enumerable:!1,configurable:!0}),Object.defineProperty(Da,"defaultFragmentTemplate",{get:function(){return Ma},enumerable:!1,configurable:!0}),Da);function Da(){}var Xe=Ia.create(),La=(Object.assign(Xe,{extension:{name:"batch",type:$.ExtensionType.RendererPlugin}}),{});for(Fa in Oi)!function(e){Object.defineProperty(La,e,{get:function(){return Mt("6.0.0","PIXI.systems."+e+" has moved to PIXI."+e),Oi[e]}})}(Fa);var Fa,Na={};for(Fa in ia)!function(e){Object.defineProperty(Na,e,{get:function(){return Mt("6.0.0","PIXI.resources."+e+" has moved to PIXI."+e),ia[e]}})}(Fa);ie={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1},r.mixin(ie),Object.defineProperty(za.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(za.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),za.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..toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",function(){e._isMobileAccessibility=!0,e.activate(),e.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t},za.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},za.prototype.activate=function(){var e;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),null!=(e=this.renderer.view.parentNode)&&e.appendChild(this.div))},za.prototype.deactivate=function(){var e;this._isActive&&!this._isMobileAccessibility&&(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),null!=(e=this.div.parentNode)&&e.removeChild(this.div))},za.prototype.updateAccessibleObjects=function(e){if(e.visible&&e.accessibleChildren){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);var t=e.children;if(t)for(var r=0;r<t.length;r++)this.updateAccessibleObjects(t[r])}},za.prototype.update=function(){var e=performance.now();if(!(he.android.device&&e<this.androidUpdateCount)&&(this.androidUpdateCount=e+this.androidUpdateFrequency,this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),t=e.left,r=e.top,i=e.width,e=e.height,n=this.renderer,o=n.width,a=n.height,n=n.resolution,s=i/o*n,l=e/a*n;(h=this.div).style.left=t+"px",h.style.top=r+"px",h.style.width=o+"px",h.style.height=a+"px";for(var u=0;u<this.children.length;u++){var h,c,f,p=this.children[u];p.renderId!==this.renderId?(p._accessibleActive=!1,kt(this.children,u,1),this.div.removeChild(p._accessibleDiv),this.pool.push(p._accessibleDiv),p._accessibleDiv=null,u--):(h=p._accessibleDiv,c=p.hitArea,f=p.worldTransform,p.hitArea?(h.style.left=(f.tx+c.x*f.a)*s+"px",h.style.top=(f.ty+c.y*f.d)*l+"px",h.style.width=c.width*f.a*s+"px",h.style.height=c.height*f.d*l+"px"):(c=p.getBounds(),this.capHitArea(c),h.style.left=c.x*s+"px",h.style.top=c.y*l+"px",h.style.width=c.width*s+"px",h.style.height=c.height*l+"px",h.title!==p.accessibleTitle&&null!==p.accessibleTitle&&(h.title=p.accessibleTitle),h.getAttribute("aria-label")!==p.accessibleHint&&null!==p.accessibleHint&&h.setAttribute("aria-label",p.accessibleHint)),p.accessibleTitle===h.title&&p.tabIndex===h.tabIndex||(h.title=p.accessibleTitle,h.tabIndex=p.tabIndex,this.debug&&this.updateDebugHTML(h)))}this.renderId++}},za.prototype.updateDebugHTML=function(e){e.innerHTML="type: "+e.type+"</br> title : "+e.title+"</br> tabIndex: "+e.tabIndex},za.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0);var t=this.renderer,r=t.width,t=t.height;e.x+e.width>r&&(e.width=r-e.x),e.y+e.height>t&&(e.height=t-e.y)},za.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,255,255,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=2..toString(),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))),t.style.pointerEvents=e.accessiblePointerEvents,t.type=e.accessibleType,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),this.debug&&this.updateDebugHTML(t),e._accessibleActive=!0,(e._accessibleDiv=t).displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},za.prototype._onClick=function(e){var t=this.renderer.plugins.interaction,e=e.target.displayObject,r=t.eventData;t.dispatchEvent(e,"click",r),t.dispatchEvent(e,"pointertap",r),t.dispatchEvent(e,"tap",r)},za.prototype._onFocus=function(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","assertive");var t=this.renderer.plugins.interaction,e=e.target.displayObject,r=t.eventData;t.dispatchEvent(e,"mouseover",r)},za.prototype._onFocusOut=function(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","polite");var t=this.renderer.plugins.interaction,e=e.target.displayObject,r=t.eventData;t.dispatchEvent(e,"mouseout",r)},za.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},za.prototype._onMouseMove=function(e){0===e.movementX&&0===e.movementY||this.deactivate()},za.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},za.extension={name:"accessibility",type:[$.ExtensionType.RendererPlugin,$.ExtensionType.CanvasRendererPlugin]},i=za;function za(e){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(he.tablet||he.phone)&&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..toString(),this.div=t,this.renderer=e,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}Object.defineProperty(ja.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),ja.prototype.getLocalPosition=function(e,t,r){return e.worldTransform.applyInverse(r||this.global,t)},ja.prototype.copyEvent=function(e){"isPrimary"in e&&e.isPrimary&&(this.isPrimary=!0),this.button="button"in e&&e.button;var t="buttons"in e&&e.buttons;this.buttons=Number.isInteger(t)?t:"which"in e&&e.which,this.width="width"in e&&e.width,this.height="height"in e&&e.height,this.tiltX="tiltX"in e&&e.tiltX,this.tiltY="tiltY"in e&&e.tiltY,this.pointerType="pointerType"in e&&e.pointerType,this.pressure="pressure"in e&&e.pressure,this.rotationAngle="rotationAngle"in e&&e.rotationAngle,this.twist="twist"in e&&e.twist||0,this.tangentialPressure="tangentialPressure"in e&&e.tangentialPressure||0},ja.prototype.reset=function(){this.isPrimary=!1};var Ba=ja;function ja(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new ee,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}var Ua=function(e,t){return(Ua=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)};Xa.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},Xa.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null};var Ga=Xa;function Xa(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}Ya.prototype._doSet=function(e,t){this._flags=t?this._flags|e:this._flags&~e},Object.defineProperty(Ya.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(Ya.prototype,"flags",{get:function(){return this._flags},set:function(e){this._flags=e},enumerable:!1,configurable:!0}),Object.defineProperty(Ya.prototype,"none",{get:function(){return this._flags===Ya.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(Ya.prototype,"over",{get:function(){return 0!=(this._flags&Ya.FLAGS.OVER)},set:function(e){this._doSet(Ya.FLAGS.OVER,e)},enumerable:!1,configurable:!0}),Object.defineProperty(Ya.prototype,"rightDown",{get:function(){return 0!=(this._flags&Ya.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(Ya.FLAGS.RIGHT_DOWN,e)},enumerable:!1,configurable:!0}),Object.defineProperty(Ya.prototype,"leftDown",{get:function(){return 0!=(this._flags&Ya.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(Ya.FLAGS.LEFT_DOWN,e)},enumerable:!1,configurable:!0}),Ya.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4});var Ha=Ya;function Ya(e){this._pointerId=e,this._flags=Ya.FLAGS.NONE}qa.prototype.recursiveFindHit=function(e,t,r,i,n){var o;if(!t||!t.visible)return!1;var a,s=e.data.global,l=!1,u=n=t.interactive||n,h=!0;if(t.hitArea?(i&&(t.worldTransform.applyInverse(s,this._tempPoint),t.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?l=!0:h=i=!1),u=!1):t._mask&&i&&(a=t._mask.isMaskData?t._mask.maskObject:t._mask)&&(null==(o=a.containsPoint)||!o.call(a,s))&&(i=!1),h&&t.interactiveChildren&&t.children)for(var c=t.children,f=c.length-1;0<=f;f--){var p=c[f],d=this.recursiveFindHit(e,p,r,i,u);d&&p.parent&&(u=!1,d&&(e.target&&(i=!1),l=!0))}return n&&(i&&!e.target&&!t.hitArea&&t.containsPoint&&t.containsPoint(s)&&(l=!0),t.interactive&&(l&&!e.target&&(e.target=t),r&&r(e,t,!!l))),l},qa.prototype.findHit=function(e,t,r,i){this.recursiveFindHit(e,t,r,i,!1)};var Wa=qa;function qa(){this._tempPoint=new ee}var Va,Ka,ne={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},Ja=(r.mixin(ne),{target:null,data:{global:null}}),n=(Ua(Ka=_,oe=Va=re),Ka.prototype=null===oe?Object.create(oe):(Za.prototype=oe.prototype,new Za),Object.defineProperty(_.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(e){(this._useSystemTicker=e)?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),_.prototype.hitTest=function(e,t){return Ja.target=null,Ja.data.global=e,t=t||this.lastObjectRendered,this.processInteractive(Ja,t,null,!0),Ja.target},_.prototype.setTargetElement=function(e,t){void 0===t&&(t=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=e,this.resolution=t,this.addEvents(),this.addTickerListener()},_.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(Wr.system.add(this.tickerUpdate,this,$.UPDATE_PRIORITY.INTERACTION),this.tickerAdded=!0)},_.prototype.removeTickerListener=function(){this.tickerAdded&&(Wr.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},_.prototype.addEvents=function(){var e;!this.eventsAdded&&this.interactionDOMElement&&(e=this.interactionDOMElement.style,globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):this.supportsPointerEvents&&(e.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0)},_.prototype.removeEvents=function(){var e;this.eventsAdded&&this.interactionDOMElement&&(e=this.interactionDOMElement.style,globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):this.supportsPointerEvents&&(e.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1)},_.prototype.tickerUpdate=function(e){this._deltaTime+=e,this._deltaTime<this.interactionFrequency||(this._deltaTime=0,this.update())},_.prototype.update=function(){if(this.interactionDOMElement)if(this._didMove)this._didMove=!1;else{for(var e in this.cursor=null,this.activeInteractionData)!this.activeInteractionData.hasOwnProperty(e)||(e=this.activeInteractionData[e]).originalEvent&&"touch"!==e.pointerType&&(e=this.configureInteractionEventForDOMEvent(this.eventData,e.originalEvent,e),this.processInteractive(e,this.lastObjectRendered,this.processPointerOverOut,!0));this.setCursorMode(this.cursor)}},_.prototype.setCursorMode=function(e){e=e||"default";var t=!0;if(globalThis.OffscreenCanvas&&this.interactionDOMElement instanceof OffscreenCanvas&&(t=!1),this.currentCursorMode!==e){this.currentCursorMode=e;var r=this.cursorStyles[e];if(r)switch(typeof r){case"string":t&&(this.interactionDOMElement.style.cursor=r);break;case"function":r(e);break;case"object":t&&Object.assign(this.interactionDOMElement.style,r)}else t&&"string"==typeof e&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.interactionDOMElement.style.cursor=e)}},_.prototype.dispatchEvent=function(e,t,r){r.stopPropagationHint&&e!==r.stopsPropagatingAt||(r.currentTarget=e,r.type=t,e.emit(t,r),e[t]&&e[t](r))},_.prototype.delayDispatchEvent=function(e,t,r){this.delayedEvents.push({displayObject:e,eventString:t,eventData:r})},_.prototype.mapPositionToPoint=function(e,t,r){var i=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:this.interactionDOMElement.width,height:this.interactionDOMElement.height,left:0,top:0},n=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},_.prototype.processInteractive=function(e,t,r,i){var t=this.search.findHit(e,t,r,i),n=this.delayedEvents;if(n.length){e.stopPropagationHint=!1;var o=n.length;this.delayedEvents=[];for(var a=0;a<o;a++){var s=n[a],l=s.displayObject,u=s.eventString,s=s.eventData;s.stopsPropagatingAt===l&&(s.stopPropagationHint=!0),this.dispatchEvent(l,u,s)}}return t},_.prototype.onPointerDown=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType)for(var t=this.normalizeToPointerData(e),r=(!this.autoPreventDefault||!t[0].isNormalized||!e.cancelable&&"cancelable"in e||e.preventDefault(),t.length),i=0;i<r;i++){var n=t[i],o=this.getInteractionDataForPointerId(n),o=this.configureInteractionEventForDOMEvent(this.eventData,n,o);o.data.originalEvent=e,this.processInteractive(o,this.lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",o),"touch"===n.pointerType?this.emit("touchstart",o):"mouse"!==n.pointerType&&"pen"!==n.pointerType||(o=2===n.button,this.emit(o?"rightdown":"mousedown",this.eventData))}},_.prototype.processPointerDown=function(e,t,r){var i=e.data,n=e.data.identifier;r&&(t.trackedPointers[n]||(t.trackedPointers[n]=new Ha(n)),this.dispatchEvent(t,"pointerdown",e),"touch"===i.pointerType?this.dispatchEvent(t,"touchstart",e):"mouse"!==i.pointerType&&"pen"!==i.pointerType||((r=2===i.button)?t.trackedPointers[n].rightDown=!0:t.trackedPointers[n].leftDown=!0,this.dispatchEvent(t,r?"rightdown":"mousedown",e)))},_.prototype.onPointerComplete=function(e,t,r){for(var i=this.normalizeToPointerData(e),n=i.length,o=e.target,a=(o=e.composedPath&&0<e.composedPath().length?e.composedPath()[0]:o)!==this.interactionDOMElement?"outside":"",s=0;s<n;s++){var l,u=i[s],h=this.getInteractionDataForPointerId(u),h=this.configureInteractionEventForDOMEvent(this.eventData,u,h);h.data.originalEvent=e,this.processInteractive(h,this.lastObjectRendered,r,t||!a),this.emit(t?"pointercancel":"pointerup"+a,h),"mouse"===u.pointerType||"pen"===u.pointerType?(l=2===u.button,this.emit(l?"rightup"+a:"mouseup"+a,h)):"touch"===u.pointerType&&(this.emit(t?"touchcancel":"touchend"+a,h),this.releaseInteractionDataForPointerId(u.pointerId))}},_.prototype.onPointerCancel=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!0,this.processPointerCancel)},_.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))},_.prototype.onPointerUp=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!1,this.processPointerUp)},_.prototype.processPointerUp=function(e,t,r){var i,n=e.data,o=e.data.identifier,a=t.trackedPointers[o],s="touch"===n.pointerType,l="mouse"===n.pointerType||"pen"===n.pointerType,u=!1;l&&(n=2===n.button,i=Ha.FLAGS,i=n?i.RIGHT_DOWN:i.LEFT_DOWN,i=void 0!==a&&a.flags&i,r?(this.dispatchEvent(t,n?"rightup":"mouseup",e),i&&(this.dispatchEvent(t,n?"rightclick":"click",e),u=!0)):i&&this.dispatchEvent(t,n?"rightupoutside":"mouseupoutside",e),a&&(n?a.rightDown=!1:a.leftDown=!1)),r?(this.dispatchEvent(t,"pointerup",e),s&&this.dispatchEvent(t,"touchend",e),a&&(l&&!u||this.dispatchEvent(t,"pointertap",e),s&&(this.dispatchEvent(t,"tap",e),a.over=!1))):a&&(this.dispatchEvent(t,"pointerupoutside",e),s&&this.dispatchEvent(t,"touchendoutside",e)),a&&a.none&&delete t.trackedPointers[o]},_.prototype.onPointerMove=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){for(var t=this.normalizeToPointerData(e),r=("mouse"!==t[0].pointerType&&"pen"!==t[0].pointerType||(this._didMove=!0,this.cursor=null),t.length),i=0;i<r;i++){var n=t[i],o=this.getInteractionDataForPointerId(n),o=this.configureInteractionEventForDOMEvent(this.eventData,n,o);o.data.originalEvent=e,this.processInteractive(o,this.lastObjectRendered,this.processPointerMove,!0),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)}},_.prototype.processPointerMove=function(e,t,r){var i=e.data,n="touch"===i.pointerType,i="mouse"===i.pointerType||"pen"===i.pointerType;i&&this.processPointerOverOut(e,t,r),this.moveWhenInside&&!r||(this.dispatchEvent(t,"pointermove",e),n&&this.dispatchEvent(t,"touchmove",e),i&&this.dispatchEvent(t,"mousemove",e))},_.prototype.onPointerOut=function(e){var t,r;this.supportsTouchEvents&&"touch"===e.pointerType||("mouse"===(e=this.normalizeToPointerData(e)[0]).pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null)),t=this.getInteractionDataForPointerId(e),(r=this.configureInteractionEventForDOMEvent(this.eventData,e,t)).data.originalEvent=e,this.processInteractive(r,this.lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",r),"mouse"===e.pointerType||"pen"===e.pointerType?this.emit("mouseout",r):this.releaseInteractionDataForPointerId(t.identifier))},_.prototype.processPointerOverOut=function(e,t,r){var i=e.data,n=e.data.identifier,i="mouse"===i.pointerType||"pen"===i.pointerType,o=t.trackedPointers[n];void 0!==(o=r&&!o?t.trackedPointers[n]=new Ha(n):o)&&(r&&this.mouseOverRenderer?(o.over||(o.over=!0,this.delayDispatchEvent(t,"pointerover",e),i&&this.delayDispatchEvent(t,"mouseover",e)),i&&null===this.cursor&&(this.cursor=t.cursor)):o.over&&(o.over=!1,this.dispatchEvent(t,"pointerout",this.eventData),i&&this.dispatchEvent(t,"mouseout",e),o.none&&delete t.trackedPointers[n]))},_.prototype.onPointerOver=function(e){var t;this.supportsTouchEvents&&"touch"===e.pointerType||(e=this.normalizeToPointerData(e)[0],t=this.getInteractionDataForPointerId(e),"mouse"===((t=this.configureInteractionEventForDOMEvent(this.eventData,e,t)).data.originalEvent=e).pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",t),"mouse"!==e.pointerType&&"pen"!==e.pointerType||this.emit("mouseover",t))},_.prototype.getInteractionDataForPointerId=function(e){var t,r=e.pointerId;return 1===r||"mouse"===e.pointerType?t=this.mouse:this.activeInteractionData[r]?t=this.activeInteractionData[r]:((t=this.interactionDataPool.pop()||new Ba).identifier=r,this.activeInteractionData[r]=t),t.copyEvent(e),t},_.prototype.releaseInteractionDataForPointerId=function(e){var t=this.activeInteractionData[e];t&&(delete this.activeInteractionData[e],t.reset(),this.interactionDataPool.push(t))},_.prototype.configureInteractionEventForDOMEvent=function(e,t,r){return e.data=r,this.mapPositionToPoint(r.global,t.clientX,t.clientY),"touch"===t.pointerType&&(t.globalX=r.global.x,t.globalY=r.global.y),r.originalEvent=t,e.reset(),e},_.prototype.normalizeToPointerData=function(e){var t,r=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(var i=0,n=e.changedTouches.length;i<n;i++){var o=e.changedTouches[i];void 0===o.button&&(o.button=e.touches.length?1:0),void 0===o.buttons&&(o.buttons=e.touches.length?1:0),void 0===o.isPrimary&&(o.isPrimary=1===e.touches.length&&"touchstart"===e.type),void 0===o.width&&(o.width=o.radiusX||1),void 0===o.height&&(o.height=o.radiusY||1),void 0===o.tiltX&&(o.tiltX=0),void 0===o.tiltY&&(o.tiltY=0),void 0===o.pointerType&&(o.pointerType="touch"),void 0===o.pointerId&&(o.pointerId=o.identifier||0),void 0===o.pressure&&(o.pressure=o.force||.5),void 0===o.twist&&(o.twist=0),void 0===o.tangentialPressure&&(o.tangentialPressure=0),void 0===o.layerX&&(o.layerX=o.offsetX=o.clientX),void 0===o.layerY&&(o.layerY=o.offsetY=o.clientY),o.isNormalized=!0,r.push(o)}else!globalThis.MouseEvent||e instanceof MouseEvent&&!(this.supportsPointerEvents&&e instanceof globalThis.PointerEvent)?(void 0===(t=e).isPrimary&&(t.isPrimary=!0),void 0===t.width&&(t.width=1),void 0===t.height&&(t.height=1),void 0===t.tiltX&&(t.tiltX=0),void 0===t.tiltY&&(t.tiltY=0),void 0===t.pointerType&&(t.pointerType="mouse"),void 0===t.pointerId&&(t.pointerId=1),void 0===t.pressure&&(t.pressure=.5),void 0===t.twist&&(t.twist=0),void 0===t.tangentialPressure&&(t.tangentialPressure=0),t.isNormalized=!0,r.push(t)):r.push(e);return r},_.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),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.search=null},_.extension={name:"interaction",type:[$.ExtensionType.RendererPlugin,$.ExtensionType.CanvasRendererPlugin]},_);function Za(){this.constructor=Ka}function _(e,t){var r=Va.call(this)||this;return t=t||{},r.renderer=e,r.autoPreventDefault=void 0===t.autoPreventDefault||t.autoPreventDefault,r.interactionFrequency=t.interactionFrequency||10,r.mouse=new Ba,r.mouse.identifier=1,r.mouse.global.set(-999999),r.activeInteractionData={},r.activeInteractionData[1]=r.mouse,r.interactionDataPool=[],r.eventData=new Ga,r.interactionDOMElement=null,r.moveWhenInside=!1,r.eventsAdded=!1,r.tickerAdded=!1,r.mouseOverRenderer=!("PointerEvent"in globalThis),r.supportsTouchEvents="ontouchstart"in globalThis,r.supportsPointerEvents=!!globalThis.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.resolution=1,r.delayedEvents=[],r.search=new Wa,r._tempDisplayObject=new Dr,r._eventListenerOptions={capture:!0,passive:!1},r._useSystemTicker=void 0===t.useSystemTicker||t.useSystemTicker,r.setTargetElement(r.renderer.view,r.renderer.resolution),r}var Qa=new w,o=($a.prototype.image=function(e,t,r){var i=new Image;return i.src=this.base64(e,t,r),i},$a.prototype.base64=function(e,t,r){return this.canvas(e).toDataURL(t,r)},$a.prototype.canvas=function(e,t){var r,i,n=this.renderer,o=!1,a=!1,e=(e&&(e instanceof Gi?r=e:(r=this.renderer.generateTexture(e),a=!0)),r?(i=r.baseTexture.resolution,t=null!=t?t:r.frame,o=!1,n.renderTexture.bind(r)):(i=n.resolution,t||((t=Qa).width=n.width,t.height=n.height),o=!0,n.renderTexture.bind(null)),Math.round(t.width*i)),s=Math.round(t.height*i),l=new Ft(e,s,1),u=new Uint8Array(4*e*s),n=n.gl,t=(n.readPixels(Math.round(t.x*i),Math.round(t.y*i),e,s,n.RGBA,n.UNSIGNED_BYTE,u),l.context.getImageData(0,0,e,s));return $a.arrayPostDivide(u,t.data),l.context.putImageData(t,0,0),o&&((i=new Ft(l.width,l.height,1)).context.scale(1,-1),i.context.drawImage(l.canvas,0,-s),l.destroy(),l=i),a&&r.destroy(!0),l.canvas},$a.prototype.pixels=function(e,t){var r,i,n=this.renderer,o=!1,e=(e&&(e instanceof Gi?i=e:(i=this.renderer.generateTexture(e),o=!0)),i?(r=i.baseTexture.resolution,t=null!=t?t:i.frame,n.renderTexture.bind(i)):(r=n.resolution,t||((t=Qa).width=n.width,t.height=n.height),n.renderTexture.bind(null)),Math.round(t.width*r)),a=Math.round(t.height*r),s=new Uint8Array(4*e*a),n=n.gl;return n.readPixels(Math.round(t.x*r),Math.round(t.y*r),e,a,n.RGBA,n.UNSIGNED_BYTE,s),o&&i.destroy(!0),$a.arrayPostDivide(s,s),s},$a.prototype.destroy=function(){this.renderer=null},$a.arrayPostDivide=function(e,t){for(var r=0;r<e.length;r+=4){var i=t[r+3]=e[r+3];0!==i?(t[r]=Math.round(Math.min(255*e[r]/i,255)),t[r+1]=Math.round(Math.min(255*e[r+1]/i,255)),t[r+2]=Math.round(Math.min(255*e[r+2]/i,255))):(t[r]=e[r],t[r+1]=e[r+1],t[r+2]=e[r+2])}},$a.extension={name:"extract",type:$.ExtensionType.RendererPlugin},$a);function $a(e){this.renderer=e}ts.prototype.detach=function(){return null!==this._owner&&(this._owner.detach(this),!0)};var es=ts;function ts(e,t,r){void 0===t&&(t=!1),this._fn=e,this._once=t,this._thisArg=r,this._next=this._prev=this._owner=null}function rs(e,t){return e._head?(e._tail._next=t)._prev=e._tail:e._head=t,(e._tail=t)._owner=e,t}os.prototype.handlers=function(e){var t=this._head;if(e=void 0===e?!1:e)return!!t;for(var r=[];t;)r.push(t),t=t._next;return r},os.prototype.has=function(e){if(e instanceof es)return e._owner===this;throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.")},os.prototype.dispatch=function(){for(var e=arguments,t=[],r=0;r<arguments.length;r++)t[r]=e[r];var i=this._head;if(!i)return!1;for(;i;)i._once&&this.detach(i),i._fn.apply(i._thisArg,t),i=i._next;return!0},os.prototype.add=function(e,t){if(void 0===t&&(t=null),"function"!=typeof e)throw new Error("MiniSignal#add(): First arg must be a Function.");return rs(this,new es(e,!1,t))},os.prototype.once=function(e,t){if(void 0===t&&(t=null),"function"!=typeof e)throw new Error("MiniSignal#once(): First arg must be a Function.");return rs(this,new es(e,!0,t))},os.prototype.detach=function(e){if(e instanceof es)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;throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.")},os.prototype.detachAll=function(){var e=this._head;if(e)for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this};var is,ns=os;function os(){this._head=this._tail=void 0}function as(e,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=t||{}).strictMode?"strict":"loose"].exec(e),n={},o=14;o--;)n[i.key[o]]=r[o]||"";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}var ss=null;function ls(){}function us(e,t,r){(t=t&&0===t.indexOf(".")?t.substring(1):t)&&(e[t]=r)}function hs(e){return e.toString().replace("object ","")}function g(e,t,r){if(this._dequeue=ls,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,"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(g.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=g.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=ls,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 ns,this.onProgress=new ns,this.onComplete=new ns,this.onAfterMiddleware=new ns}function cs(){}$.LoaderResource=(g.setExtensionLoadType=function(e,t){us(g._loadTypeMap,e,t)},g.setExtensionXhrType=function(e,t){us(g._xhrTypeMap,e,t)},Object.defineProperty(g.prototype,"isDataUrl",{get:function(){return this._hasFlag(g.STATUS_FLAGS.DATA_URL)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isComplete",{get:function(){return this._hasFlag(g.STATUS_FLAGS.COMPLETE)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isLoading",{get:function(){return this._hasFlag(g.STATUS_FLAGS.LOADING)},enumerable:!1,configurable:!0}),g.prototype.complete=function(){this._clearEvents(),this._finish()},g.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=g.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},g.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(g.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case g.LOAD_TYPE.IMAGE:this.type=g.TYPE.IMAGE,this._loadElement("image");break;case g.LOAD_TYPE.AUDIO:this.type=g.TYPE.AUDIO,this._loadSourceElement("audio");break;case g.LOAD_TYPE.VIDEO:this.type=g.TYPE.VIDEO,this._loadSourceElement("video");break;default:g.LOAD_TYPE.XHR;(is=void 0===is?!(!globalThis.XDomainRequest||"withCredentials"in new XMLHttpRequest):is)&&this.crossOrigin?this._loadXdr():this._loadXhr()}},g.prototype._hasFlag=function(e){return 0!=(this._flags&e)},g.prototype._setFlag=function(e,t){this._flags=t?this._flags|e:this._flags&~e},g.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))},g.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(g.STATUS_FLAGS.COMPLETE,!0),this._setFlag(g.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},g.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===e&&void 0!==globalThis.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))},g.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===e&&void 0!==globalThis.Audio?this.data=new Audio:this.data=document.createElement(e),null===this.data)this.abort("Unsupported element: "+e);else{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{t=this.metadata.mimeType;this.data.appendChild(this._createSource(e,this.url,Array.isArray(t)?t[0]:t))}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))}},g.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;"use-credentials"===this.crossOrigin&&(e.withCredentials=!0),e.open("GET",this.url,!0),e.timeout=this.timeout,this.xhrType===g.XHR_RESPONSE_TYPE.JSON||this.xhrType===g.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=g.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()},g.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new globalThis.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)},g.prototype._createSource=function(e,t,r){r=r||e+"/"+this._getExtension(t);e=document.createElement("source");return e.src=t,e.type=r,e},g.prototype._onError=function(e){this.abort("Failed to load element using: "+e.target.nodeName)},g.prototype._onProgress=function(e){e&&e.lengthComputable&&this.onProgress.dispatch(this,e.loaded/e.total)},g.prototype._onTimeout=function(){this.abort("Load timed out.")},g.prototype._xhrOnError=function(){var e=this.xhr;this.abort(hs(e)+" Request failed. Status: "+e.status+', text: "'+e.statusText+'"')},g.prototype._xhrOnTimeout=function(){var e=this.xhr;this.abort(hs(e)+" Request timed out.")},g.prototype._xhrOnAbort=function(){var e=this.xhr;this.abort(hs(e)+" Request was aborted by the user.")},g.prototype._xhrOnLoad=function(){var e,t,r=this.xhr,i="",n=void 0===r.status?200:r.status;if(""!==r.responseType&&"text"!==r.responseType&&void 0!==r.responseType||(i=r.responseText),0===n&&(0<i.length||r.responseType===g.XHR_RESPONSE_TYPE.BUFFER)?n=200:1223===n&&(n=204),2!=(n/100|0))this.abort("["+r.status+"] "+r.statusText+": "+r.responseURL);else{if(this.xhrType===g.XHR_RESPONSE_TYPE.TEXT)this.data=i,this.type=g.TYPE.TEXT;else if(this.xhrType===g.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(i),this.type=g.TYPE.JSON}catch(e){return void this.abort("Error trying to parse loaded json: "+e)}else if(this.xhrType===g.XHR_RESPONSE_TYPE.DOCUMENT)try{globalThis.DOMParser?(e=new DOMParser,this.data=e.parseFromString(i,"text/xml")):((t=document.createElement("div")).innerHTML=i,this.data=t),this.type=g.TYPE.XML}catch(e){return void this.abort("Error trying to parse loaded xml: "+e)}else this.data=r.response||i;this.complete()}},g.prototype._determineCrossOrigin=function(e,t){if(0===e.indexOf("data:"))return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";t=t||globalThis.location,(ss=ss||document.createElement("a")).href=e;var e=as(ss.href,{strictMode:!0}),r=!e.port&&""===t.port||e.port===t.port,i=e.protocol?e.protocol+":":"";return e.host===t.hostname&&r&&i===t.protocol?"":"anonymous"},g.prototype._determineXhrType=function(){return g._xhrTypeMap[this.extension]||g.XHR_RESPONSE_TYPE.TEXT},g.prototype._determineLoadType=function(){return g._loadTypeMap[this.extension]||g.LOAD_TYPE.XHR},g.prototype._getExtension=function(e){void 0===e&&(e=this.url);var t,r;return(this.isDataUrl?(r=e.indexOf("/"),e.substring(r+1,e.indexOf(";",r))):(r=e.indexOf("?"),t=e.indexOf("#"),r=Math.min(-1<r?r:e.length,-1<t?t:e.length),(e=e.substring(0,r)).substring(e.lastIndexOf(".")+1))).toLowerCase()},g.prototype._getMimeFromXhrType=function(e){switch(e){case g.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case g.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case g.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case g.XHR_RESPONSE_TYPE.JSON:return"application/json";case g.XHR_RESPONSE_TYPE.DEFAULT:case g.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},g),a=$.LoaderResource||($.LoaderResource={}),(t=a.STATUS_FLAGS||(a.STATUS_FLAGS={}))[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING",(t=a.TYPE||(a.TYPE={}))[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT",(t=a.LOAD_TYPE||(a.LOAD_TYPE={}))[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO",(t=a.XHR_RESPONSE_TYPE||(a.XHR_RESPONSE_TYPE={})).DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text",a._loadTypeMap={gif:a.LOAD_TYPE.IMAGE,png:a.LOAD_TYPE.IMAGE,bmp:a.LOAD_TYPE.IMAGE,jpg:a.LOAD_TYPE.IMAGE,jpeg:a.LOAD_TYPE.IMAGE,tif:a.LOAD_TYPE.IMAGE,tiff:a.LOAD_TYPE.IMAGE,webp:a.LOAD_TYPE.IMAGE,tga:a.LOAD_TYPE.IMAGE,svg:a.LOAD_TYPE.IMAGE,"svg+xml":a.LOAD_TYPE.IMAGE,mp3:a.LOAD_TYPE.AUDIO,ogg:a.LOAD_TYPE.AUDIO,wav:a.LOAD_TYPE.AUDIO,mp4:a.LOAD_TYPE.VIDEO,webm:a.LOAD_TYPE.VIDEO},a._xhrTypeMap={xhtml:a.XHR_RESPONSE_TYPE.DOCUMENT,html:a.XHR_RESPONSE_TYPE.DOCUMENT,htm:a.XHR_RESPONSE_TYPE.DOCUMENT,xml:a.XHR_RESPONSE_TYPE.DOCUMENT,tmx:a.XHR_RESPONSE_TYPE.DOCUMENT,svg:a.XHR_RESPONSE_TYPE.DOCUMENT,tsx:a.XHR_RESPONSE_TYPE.DOCUMENT,gif:a.XHR_RESPONSE_TYPE.BLOB,png:a.XHR_RESPONSE_TYPE.BLOB,bmp:a.XHR_RESPONSE_TYPE.BLOB,jpg:a.XHR_RESPONSE_TYPE.BLOB,jpeg:a.XHR_RESPONSE_TYPE.BLOB,tif:a.XHR_RESPONSE_TYPE.BLOB,tiff:a.XHR_RESPONSE_TYPE.BLOB,webp:a.XHR_RESPONSE_TYPE.BLOB,tga:a.XHR_RESPONSE_TYPE.BLOB,json:a.XHR_RESPONSE_TYPE.JSON,text:a.XHR_RESPONSE_TYPE.TEXT,txt:a.XHR_RESPONSE_TYPE.TEXT,ttf:a.XHR_RESPONSE_TYPE.BUFFER,otf:a.XHR_RESPONSE_TYPE.BUFFER},a.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var fs=function(e,t){this.data=e,this.callback=t},ps=(ds.prototype._next=function(i){var n=this;return function(){for(var e=arguments,t=[],r=0;r<arguments.length;r++)t[r]=e[r];--n.workers,i.callback.apply(i,t),null!=t[0]&&n.error(t[0],i.data),n.workers<=n.concurrency-n.buffer&&n.unsaturated(),n.idle()&&n.drain(),n.process()}},ds.prototype.push=function(e,t){this._insert(e,!1,t)},ds.prototype.kill=function(){this.workers=0,this.drain=cs,this.started=!1,this._tasks=[]},ds.prototype.unshift=function(e,t){this._insert(e,!0,t)},ds.prototype.length=function(){return this._tasks.length},ds.prototype.running=function(){return this.workers},ds.prototype.idle=function(){return this._tasks.length+this.workers===0},ds.prototype.pause=function(){!0!==this.paused&&(this.paused=!0)},ds.prototype.resume=function(){if(!1!==this.paused){this.paused=!1;for(var e=1;e<=this.concurrency;e++)this.process()}},ds.eachSeries=function(r,i,n,o){var a=0,s=r.length;!function e(t){t||a===s?n&&n(t):o?setTimeout(function(){i(r[a++],e)},1):i(r[a++],e)}()},ds.queue=function(e,t){return new ds(e,t)},ds);function ds(e,t){var i=this;if(void 0===t&&(t=1),this.workers=0,this.saturated=cs,this.unsaturated=cs,this.empty=cs,this.drain=cs,this.error=cs,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(e,t,r){if(r&&"function"!=typeof r)throw new Error("task callback must be a function");i.started=!0,null==e&&i.idle()?setTimeout(function(){return i.drain()},1):(e=new fs(e,"function"==typeof r?r:cs),t?i._tasks.unshift(e):i._tasks.push(e),setTimeout(i.process,1))},this.process=function(){for(;!i.paused&&i.workers<i.concurrency&&i._tasks.length;){var e=i._tasks.shift();0===i._tasks.length&&i.empty(),i.workers+=1,i.workers===i.concurrency&&i.saturated(),i._worker(e.data,function(n){return function(){for(var e=arguments,t=[],r=0;r<arguments.length;r++)t[r]=e[r];if(null===n)throw new Error("Callback was already called.");var i=n;n=null,i.apply(this,t)}}(i._next(e)))}},this._worker=e,0===t)throw new Error("Concurrency must not be zero");this.concurrency=t,this.buffer=t/4}var ms=/(#[\w-]+)?$/,_s=(gs.prototype._add=function(e,t,r,i){if(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 $.LoaderResource(e,t,r),"function"==typeof i&&this.resources[e].onAfterMiddleware.once(i),this.loading){for(var n=r.parentResource,o=[],a=0;a<n.children.length;++a)n.children[a].isComplete||o.push(n.children[a]);var s=n.progressChunk*(o.length+1)/(o.length+2);n.children.push(this.resources[e]),n.progressChunk=s;for(a=0;a<o.length;++a)o[a].progressChunk=s;this.resources[e].progressChunk=s}return this._queue.push(this.resources[e]),this},gs.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},gs.prototype.use=function(e){return this._afterMiddleware.push(e),this},gs.prototype.reset=function(){for(var e in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){e=this.resources[e];e._onLoadBinding&&e._onLoadBinding.detach(),e.isLoading&&e.abort("loader reset")}return this.resources={},this},gs.prototype.load=function(e){if(Mt("6.5.0","@pixi/loaders is being replaced with @pixi/assets in the next major release."),"function"==typeof e&&this.onComplete.once(e),!this.loading)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},Object.defineProperty(gs.prototype,"concurrency",{get:function(){return this._queue.concurrency},set:function(e){this._queue.concurrency=e},enumerable:!1,configurable:!0}),gs.prototype._prepareUrl=function(e){var t=as(e,{strictMode:!0});return t=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&&(e=ms.exec(t)[0],-1!==(t=t.slice(0,t.length-e.length)).indexOf("?")?t+="&"+this.defaultQueryString:t+="?"+this.defaultQueryString,t+=e),t},gs.prototype._loadResource=function(r,e){var i=this;r._dequeue=e,ps.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)},gs.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},gs.prototype._onComplete=function(){this.progress=100,this.loading=!1,this.onComplete.dispatch(this,this.resources)},gs.prototype._onLoad=function(r){var i=this;r._onLoadBinding=null,this._resourcesParsing.push(r),r._dequeue(),ps.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)},gs.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(gs,"shared",{get:function(){var e=gs._shared;return e||((e=new gs)._protected=!0,gs._shared=e),e},enumerable:!1,configurable:!0}),gs.registerPlugin=function(e){return Mt("6.5.0","Loader.registerPlugin() is deprecated, use extensions.add() instead."),Ur.add({type:$.ExtensionType.Loader,ref:e}),gs},gs._plugins=[],gs);function gs(e,t){var r=this;void 0===e&&(e=""),void 0===t&&(t=10),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.resources={},this.baseUrl=e,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,t){return r._loadResource(e,t)},this._queue=ps.queue(this._boundLoadResource,t),this._queue.pause(),this.resources={},this.onProgress=new ns,this.onError=new ns,this.onLoad=new ns,this.onStart=new ns,this.onComplete=new ns;for(var i=0;i<gs._plugins.length;++i){var n=gs._plugins[i],o=n.pre,n=n.use;o&&this.pre(o),n&&this.use(n)}this._protected=!1}Ur.handleByList($.ExtensionType.Loader,_s._plugins),_s.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"==typeof e&&(r=e,i=t||r.callback||r.onComplete,t=r.url,e=r.name||r.key||r.url),"string"!=typeof t&&(i=r,r=t,t=e),"string"!=typeof t)throw new Error("No url passed to add resource to loader.");return"function"==typeof r&&(i=r,r=null),this._add(e,t,r,i)};vs.init=function(e){e=Object.assign({sharedLoader:!1},e),this.loader=e.sharedLoader?_s.shared:new _s},vs.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},vs.extension=$.ExtensionType.Application;re=vs;function vs(){}ys.add=function(){$.LoaderResource.setExtensionLoadType("svg",$.LoaderResource.LOAD_TYPE.XHR),$.LoaderResource.setExtensionXhrType("svg",$.LoaderResource.XHR_RESPONSE_TYPE.TEXT)},ys.use=function(t,r){var e,i,n,o;!t.data||t.type!==$.LoaderResource.TYPE.IMAGE&&"svg"!==t.extension?r():(e=t.data,i=t.url,n=t.name,o=t.metadata,te.fromLoader(e,i,n,o).then(function(e){t.texture=e,r()}).catch(r))},ys.extension=$.ExtensionType.Loader;oe=ys;function ys(){}var bs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function xs(e,t){if(e.data&&(e.xhr&&e.xhrType===$.LoaderResource.XHR_RESPONSE_TYPE.BLOB))if(self.Blob&&"string"!=typeof e.data){var r,i;if(0===e.data.type.indexOf("image"))return r=globalThis.URL||globalThis.webkitURL,i=r.createObjectURL(e.data),e.blob=e.data,e.data=new Image,e.data.src=i,e.type=$.LoaderResource.TYPE.IMAGE,void(e.data.onload=function(){r.revokeObjectURL(i),e.data.onload=null,t()})}else{var n=e.xhr.getResponseHeader("content-type");if(n&&0===n.indexOf("image"))return e.data=new Image,e.data.src="data:"+n+";base64,"+function(e){for(var t="",r=0;r<e.length;){for(var i=[0,0,0],n=[0,0,0,0],o=0;o<i.length;++o)r<e.length?i[o]=255&e.charCodeAt(r++):i[o]=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(o=0;o<n.length;++o)t+=bs.charAt(n[o])}return t}(e.xhr.responseText),e.type=$.LoaderResource.TYPE.IMAGE,void(e.data.onload=function(){e.data.onload=null,t()})}t()}function Ts(){}Ts.extension=$.ExtensionType.Loader,Ts.use=xs,Ur.add(oe,Ts),$.INTERNAL_FORMATS=void 0,(t=$.INTERNAL_FORMATS||($.INTERNAL_FORMATS={}))[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",t[t.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",t[t.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL";(a={})[$.INTERNAL_FORMATS.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,a[$.INTERNAL_FORMATS.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,a[$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,a[$.INTERNAL_FORMATS.COMPRESSED_R11_EAC]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_SIGNED_R11_EAC]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RG11_EAC]=1,a[$.INTERNAL_FORMATS.COMPRESSED_SIGNED_RG11_EAC]=1,a[$.INTERNAL_FORMATS.COMPRESSED_RGB8_ETC2]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA8_ETC2_EAC]=1,a[$.INTERNAL_FORMATS.COMPRESSED_SRGB8_ETC2]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,a[$.INTERNAL_FORMATS.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,a[$.INTERNAL_FORMATS.COMPRESSED_RGB_ETC1_WEBGL]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGB_ATC_WEBGL]=.5,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,a[$.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1;var ws=a,Es=function(e,t){return(Es=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 Ss(e,t){function r(){this.constructor=e}Es(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function As(e,a,s,l){return new(s=s||Promise)(function(r,t){function i(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,n)}o((l=l.apply(e,a||[])).next())})}function ks(i,n){var o,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=n.call(i,l)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Ss(Ps,Os=ti),Ps.prototype.onBlobLoaded=function(e){},Ps.prototype.load=function(){return As(this,void 0,Promise,function(){var t;return ks(this,function(e){switch(e.label){case 0:return[4,fetch(this.origin)];case 1:return[4,e.sent().blob()];case 2:return[4,e.sent().arrayBuffer()];case 3:return t=e.sent(),this.data=new Uint32Array(t),this.buffer=new xa(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),[2,this]}})})};var Os,t=Ps;function Ps(e,t){void 0===t&&(t={width:1,height:1,autoLoad:!0});var r,i=this,e="string"==typeof e?(r=e,new Uint8Array):(r=null,e);return(i=Os.call(this,e,t)||this).origin=r,i.buffer=e?new xa(e):null,i.origin&&!1!==t.autoLoad&&i.load(),e&&e.length&&(i.loaded=!0,i.onBlobLoaded(i.buffer.rawBinaryData)),i}Ss(Ms,Rs=t),Ms.prototype.upload=function(e,t,r){var i=e.gl;if(!e.context.extensions[this._extension])throw new Error(this._extension+" textures are not supported on the current machine");if(!this._levelBuffers)return!1;for(var n=0,o=this.levels;n<o;n++){var a=this._levelBuffers[n],s=a.levelID,l=a.levelWidth,u=a.levelHeight,a=a.levelBuffer;i.compressedTexImage2D(i.TEXTURE_2D,s,this.format,l,u,0,a)}return!0},Ms.prototype.onBlobLoaded=function(){this._levelBuffers=Ms._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},Ms._formatToExtension=function(e){if(33776<=e&&e<=33779)return"s3tc";if(37488<=e&&e<=37497)return"etc";if(35840<=e&&e<=35843)return"pvrtc";if(36196<=e)return"etc1";if(35986<=e&&e<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},Ms._createLevelBuffers=function(e,t,r,i,n,o,a){for(var s=new Array(r),l=e.byteOffset,u=o,h=a,c=u+i-1&~(i-1),f=h+n-1&~(n-1),p=c*f*ws[t],d=0;d<r;d++)s[d]={levelID:d,levelWidth:1<r?u:c,levelHeight:1<r?h:f,levelBuffer:new Uint8Array(e.buffer,l,p)},l+=p,p=(c=(u=u>>1||1)+i-1&~(i-1))*(f=(h=h>>1||1)+n-1&~(n-1))*ws[t];return s};var Rs,Cs=Ms;function Ms(e,t){var r=Rs.call(this,e,t)||this;return r.format=t.format,r.levels=t.levels||1,r._width=t.width,r._height=t.height,r._extension=Ms._formatToExtension(r.format),(t.levelBuffers||r.buffer)&&(r._levelBuffers=t.levelBuffers||Ms._createLevelBuffers(e instanceof Uint8Array?e:r.buffer.uint8View,r.format,r.levels,4,4,r.width,r.height)),r}Is.use=function(r,i){var e=r.data;if(r.type===$.LoaderResource.TYPE.JSON&&e&&e.cacheID&&e.textures){for(var t,n,o=e.textures,a=void 0,s=void 0,l=0,u=o.length;l<u;l++){var h=o[l],c=h.src,h=h.format;if(h||(s=c),Is.textureFormats[h]){a=c;break}}(a=a||s)?a===r.url?i(new Error("URL of compressed texture cannot be the same as the manifest's URL")):(t={crossOrigin:r.crossOrigin,metadata:r.metadata.imageMetadata,parentResource:r},n=nt.resolve(r.url.replace(this.baseUrl,""),a),e=e.cacheID,this.add(e,n,t,function(e){var t;e.error?i(e.error):(t=e.texture,e=e.textures,Object.assign(r,{texture:void 0===t?null:t,textures:void 0===e?{}:e}),i())})):i(new Error("Cannot load compressed-textures in "+r.url+", make sure you provide a fallback"))}else i()},Object.defineProperty(Is,"textureExtensions",{get:function(){if(!Is._textureExtensions){var e=R.ADAPTER.createCanvas().getContext("webgl");if(!e)return console.warn("WebGL not available for compressed textures. Silently failing."),{};e={s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};Is._textureExtensions=e}return Is._textureExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(Is,"textureFormats",{get:function(){if(!Is._textureFormats){var e,t=Is.textureExtensions;for(e in Is._textureFormats={},t){var r=t[e];r&&Object.assign(Is._textureFormats,Object.getPrototypeOf(r))}}return Is._textureFormats},enumerable:!1,configurable:!0}),Is.extension=$.ExtensionType.Loader;a=Is;function Is(){}function Ds(n,e,t){var o={textures:{},texture:null};return e&&e.map(function(e){return new te(new C(e,Object.assign({mipmap:$.MIPMAP_MODES.OFF,alphaMode:$.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA},t)))}).forEach(function(e,t){var r=e.baseTexture,i=n+"-"+(t+1);C.addToCache(r,i),te.addToCache(e,i),0===t&&(C.addToCache(r,n),te.addToCache(e,n),o.texture=e),o.textures[i]=e}),o}var Ls,Fs=3,Ns=4,zs=7,Bs=19,js=2,Us=0,Gs=1,Xs=2,Hs=3,Ys=((v=fl=fl||{})[v.DXGI_FORMAT_UNKNOWN=0]="DXGI_FORMAT_UNKNOWN",v[v.DXGI_FORMAT_R32G32B32A32_TYPELESS=1]="DXGI_FORMAT_R32G32B32A32_TYPELESS",v[v.DXGI_FORMAT_R32G32B32A32_FLOAT=2]="DXGI_FORMAT_R32G32B32A32_FLOAT",v[v.DXGI_FORMAT_R32G32B32A32_UINT=3]="DXGI_FORMAT_R32G32B32A32_UINT",v[v.DXGI_FORMAT_R32G32B32A32_SINT=4]="DXGI_FORMAT_R32G32B32A32_SINT",v[v.DXGI_FORMAT_R32G32B32_TYPELESS=5]="DXGI_FORMAT_R32G32B32_TYPELESS",v[v.DXGI_FORMAT_R32G32B32_FLOAT=6]="DXGI_FORMAT_R32G32B32_FLOAT",v[v.DXGI_FORMAT_R32G32B32_UINT=7]="DXGI_FORMAT_R32G32B32_UINT",v[v.DXGI_FORMAT_R32G32B32_SINT=8]="DXGI_FORMAT_R32G32B32_SINT",v[v.DXGI_FORMAT_R16G16B16A16_TYPELESS=9]="DXGI_FORMAT_R16G16B16A16_TYPELESS",v[v.DXGI_FORMAT_R16G16B16A16_FLOAT=10]="DXGI_FORMAT_R16G16B16A16_FLOAT",v[v.DXGI_FORMAT_R16G16B16A16_UNORM=11]="DXGI_FORMAT_R16G16B16A16_UNORM",v[v.DXGI_FORMAT_R16G16B16A16_UINT=12]="DXGI_FORMAT_R16G16B16A16_UINT",v[v.DXGI_FORMAT_R16G16B16A16_SNORM=13]="DXGI_FORMAT_R16G16B16A16_SNORM",v[v.DXGI_FORMAT_R16G16B16A16_SINT=14]="DXGI_FORMAT_R16G16B16A16_SINT",v[v.DXGI_FORMAT_R32G32_TYPELESS=15]="DXGI_FORMAT_R32G32_TYPELESS",v[v.DXGI_FORMAT_R32G32_FLOAT=16]="DXGI_FORMAT_R32G32_FLOAT",v[v.DXGI_FORMAT_R32G32_UINT=17]="DXGI_FORMAT_R32G32_UINT",v[v.DXGI_FORMAT_R32G32_SINT=18]="DXGI_FORMAT_R32G32_SINT",v[v.DXGI_FORMAT_R32G8X24_TYPELESS=19]="DXGI_FORMAT_R32G8X24_TYPELESS",v[v.DXGI_FORMAT_D32_FLOAT_S8X24_UINT=20]="DXGI_FORMAT_D32_FLOAT_S8X24_UINT",v[v.DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS=21]="DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS",v[v.DXGI_FORMAT_X32_TYPELESS_G8X24_UINT=22]="DXGI_FORMAT_X32_TYPELESS_G8X24_UINT",v[v.DXGI_FORMAT_R10G10B10A2_TYPELESS=23]="DXGI_FORMAT_R10G10B10A2_TYPELESS",v[v.DXGI_FORMAT_R10G10B10A2_UNORM=24]="DXGI_FORMAT_R10G10B10A2_UNORM",v[v.DXGI_FORMAT_R10G10B10A2_UINT=25]="DXGI_FORMAT_R10G10B10A2_UINT",v[v.DXGI_FORMAT_R11G11B10_FLOAT=26]="DXGI_FORMAT_R11G11B10_FLOAT",v[v.DXGI_FORMAT_R8G8B8A8_TYPELESS=27]="DXGI_FORMAT_R8G8B8A8_TYPELESS",v[v.DXGI_FORMAT_R8G8B8A8_UNORM=28]="DXGI_FORMAT_R8G8B8A8_UNORM",v[v.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB=29]="DXGI_FORMAT_R8G8B8A8_UNORM_SRGB",v[v.DXGI_FORMAT_R8G8B8A8_UINT=30]="DXGI_FORMAT_R8G8B8A8_UINT",v[v.DXGI_FORMAT_R8G8B8A8_SNORM=31]="DXGI_FORMAT_R8G8B8A8_SNORM",v[v.DXGI_FORMAT_R8G8B8A8_SINT=32]="DXGI_FORMAT_R8G8B8A8_SINT",v[v.DXGI_FORMAT_R16G16_TYPELESS=33]="DXGI_FORMAT_R16G16_TYPELESS",v[v.DXGI_FORMAT_R16G16_FLOAT=34]="DXGI_FORMAT_R16G16_FLOAT",v[v.DXGI_FORMAT_R16G16_UNORM=35]="DXGI_FORMAT_R16G16_UNORM",v[v.DXGI_FORMAT_R16G16_UINT=36]="DXGI_FORMAT_R16G16_UINT",v[v.DXGI_FORMAT_R16G16_SNORM=37]="DXGI_FORMAT_R16G16_SNORM",v[v.DXGI_FORMAT_R16G16_SINT=38]="DXGI_FORMAT_R16G16_SINT",v[v.DXGI_FORMAT_R32_TYPELESS=39]="DXGI_FORMAT_R32_TYPELESS",v[v.DXGI_FORMAT_D32_FLOAT=40]="DXGI_FORMAT_D32_FLOAT",v[v.DXGI_FORMAT_R32_FLOAT=41]="DXGI_FORMAT_R32_FLOAT",v[v.DXGI_FORMAT_R32_UINT=42]="DXGI_FORMAT_R32_UINT",v[v.DXGI_FORMAT_R32_SINT=43]="DXGI_FORMAT_R32_SINT",v[v.DXGI_FORMAT_R24G8_TYPELESS=44]="DXGI_FORMAT_R24G8_TYPELESS",v[v.DXGI_FORMAT_D24_UNORM_S8_UINT=45]="DXGI_FORMAT_D24_UNORM_S8_UINT",v[v.DXGI_FORMAT_R24_UNORM_X8_TYPELESS=46]="DXGI_FORMAT_R24_UNORM_X8_TYPELESS",v[v.DXGI_FORMAT_X24_TYPELESS_G8_UINT=47]="DXGI_FORMAT_X24_TYPELESS_G8_UINT",v[v.DXGI_FORMAT_R8G8_TYPELESS=48]="DXGI_FORMAT_R8G8_TYPELESS",v[v.DXGI_FORMAT_R8G8_UNORM=49]="DXGI_FORMAT_R8G8_UNORM",v[v.DXGI_FORMAT_R8G8_UINT=50]="DXGI_FORMAT_R8G8_UINT",v[v.DXGI_FORMAT_R8G8_SNORM=51]="DXGI_FORMAT_R8G8_SNORM",v[v.DXGI_FORMAT_R8G8_SINT=52]="DXGI_FORMAT_R8G8_SINT",v[v.DXGI_FORMAT_R16_TYPELESS=53]="DXGI_FORMAT_R16_TYPELESS",v[v.DXGI_FORMAT_R16_FLOAT=54]="DXGI_FORMAT_R16_FLOAT",v[v.DXGI_FORMAT_D16_UNORM=55]="DXGI_FORMAT_D16_UNORM",v[v.DXGI_FORMAT_R16_UNORM=56]="DXGI_FORMAT_R16_UNORM",v[v.DXGI_FORMAT_R16_UINT=57]="DXGI_FORMAT_R16_UINT",v[v.DXGI_FORMAT_R16_SNORM=58]="DXGI_FORMAT_R16_SNORM",v[v.DXGI_FORMAT_R16_SINT=59]="DXGI_FORMAT_R16_SINT",v[v.DXGI_FORMAT_R8_TYPELESS=60]="DXGI_FORMAT_R8_TYPELESS",v[v.DXGI_FORMAT_R8_UNORM=61]="DXGI_FORMAT_R8_UNORM",v[v.DXGI_FORMAT_R8_UINT=62]="DXGI_FORMAT_R8_UINT",v[v.DXGI_FORMAT_R8_SNORM=63]="DXGI_FORMAT_R8_SNORM",v[v.DXGI_FORMAT_R8_SINT=64]="DXGI_FORMAT_R8_SINT",v[v.DXGI_FORMAT_A8_UNORM=65]="DXGI_FORMAT_A8_UNORM",v[v.DXGI_FORMAT_R1_UNORM=66]="DXGI_FORMAT_R1_UNORM",v[v.DXGI_FORMAT_R9G9B9E5_SHAREDEXP=67]="DXGI_FORMAT_R9G9B9E5_SHAREDEXP",v[v.DXGI_FORMAT_R8G8_B8G8_UNORM=68]="DXGI_FORMAT_R8G8_B8G8_UNORM",v[v.DXGI_FORMAT_G8R8_G8B8_UNORM=69]="DXGI_FORMAT_G8R8_G8B8_UNORM",v[v.DXGI_FORMAT_BC1_TYPELESS=70]="DXGI_FORMAT_BC1_TYPELESS",v[v.DXGI_FORMAT_BC1_UNORM=71]="DXGI_FORMAT_BC1_UNORM",v[v.DXGI_FORMAT_BC1_UNORM_SRGB=72]="DXGI_FORMAT_BC1_UNORM_SRGB",v[v.DXGI_FORMAT_BC2_TYPELESS=73]="DXGI_FORMAT_BC2_TYPELESS",v[v.DXGI_FORMAT_BC2_UNORM=74]="DXGI_FORMAT_BC2_UNORM",v[v.DXGI_FORMAT_BC2_UNORM_SRGB=75]="DXGI_FORMAT_BC2_UNORM_SRGB",v[v.DXGI_FORMAT_BC3_TYPELESS=76]="DXGI_FORMAT_BC3_TYPELESS",v[v.DXGI_FORMAT_BC3_UNORM=77]="DXGI_FORMAT_BC3_UNORM",v[v.DXGI_FORMAT_BC3_UNORM_SRGB=78]="DXGI_FORMAT_BC3_UNORM_SRGB",v[v.DXGI_FORMAT_BC4_TYPELESS=79]="DXGI_FORMAT_BC4_TYPELESS",v[v.DXGI_FORMAT_BC4_UNORM=80]="DXGI_FORMAT_BC4_UNORM",v[v.DXGI_FORMAT_BC4_SNORM=81]="DXGI_FORMAT_BC4_SNORM",v[v.DXGI_FORMAT_BC5_TYPELESS=82]="DXGI_FORMAT_BC5_TYPELESS",v[v.DXGI_FORMAT_BC5_UNORM=83]="DXGI_FORMAT_BC5_UNORM",v[v.DXGI_FORMAT_BC5_SNORM=84]="DXGI_FORMAT_BC5_SNORM",v[v.DXGI_FORMAT_B5G6R5_UNORM=85]="DXGI_FORMAT_B5G6R5_UNORM",v[v.DXGI_FORMAT_B5G5R5A1_UNORM=86]="DXGI_FORMAT_B5G5R5A1_UNORM",v[v.DXGI_FORMAT_B8G8R8A8_UNORM=87]="DXGI_FORMAT_B8G8R8A8_UNORM",v[v.DXGI_FORMAT_B8G8R8X8_UNORM=88]="DXGI_FORMAT_B8G8R8X8_UNORM",v[v.DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM=89]="DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM",v[v.DXGI_FORMAT_B8G8R8A8_TYPELESS=90]="DXGI_FORMAT_B8G8R8A8_TYPELESS",v[v.DXGI_FORMAT_B8G8R8A8_UNORM_SRGB=91]="DXGI_FORMAT_B8G8R8A8_UNORM_SRGB",v[v.DXGI_FORMAT_B8G8R8X8_TYPELESS=92]="DXGI_FORMAT_B8G8R8X8_TYPELESS",v[v.DXGI_FORMAT_B8G8R8X8_UNORM_SRGB=93]="DXGI_FORMAT_B8G8R8X8_UNORM_SRGB",v[v.DXGI_FORMAT_BC6H_TYPELESS=94]="DXGI_FORMAT_BC6H_TYPELESS",v[v.DXGI_FORMAT_BC6H_UF16=95]="DXGI_FORMAT_BC6H_UF16",v[v.DXGI_FORMAT_BC6H_SF16=96]="DXGI_FORMAT_BC6H_SF16",v[v.DXGI_FORMAT_BC7_TYPELESS=97]="DXGI_FORMAT_BC7_TYPELESS",v[v.DXGI_FORMAT_BC7_UNORM=98]="DXGI_FORMAT_BC7_UNORM",v[v.DXGI_FORMAT_BC7_UNORM_SRGB=99]="DXGI_FORMAT_BC7_UNORM_SRGB",v[v.DXGI_FORMAT_AYUV=100]="DXGI_FORMAT_AYUV",v[v.DXGI_FORMAT_Y410=101]="DXGI_FORMAT_Y410",v[v.DXGI_FORMAT_Y416=102]="DXGI_FORMAT_Y416",v[v.DXGI_FORMAT_NV12=103]="DXGI_FORMAT_NV12",v[v.DXGI_FORMAT_P010=104]="DXGI_FORMAT_P010",v[v.DXGI_FORMAT_P016=105]="DXGI_FORMAT_P016",v[v.DXGI_FORMAT_420_OPAQUE=106]="DXGI_FORMAT_420_OPAQUE",v[v.DXGI_FORMAT_YUY2=107]="DXGI_FORMAT_YUY2",v[v.DXGI_FORMAT_Y210=108]="DXGI_FORMAT_Y210",v[v.DXGI_FORMAT_Y216=109]="DXGI_FORMAT_Y216",v[v.DXGI_FORMAT_NV11=110]="DXGI_FORMAT_NV11",v[v.DXGI_FORMAT_AI44=111]="DXGI_FORMAT_AI44",v[v.DXGI_FORMAT_IA44=112]="DXGI_FORMAT_IA44",v[v.DXGI_FORMAT_P8=113]="DXGI_FORMAT_P8",v[v.DXGI_FORMAT_A8P8=114]="DXGI_FORMAT_A8P8",v[v.DXGI_FORMAT_B4G4R4A4_UNORM=115]="DXGI_FORMAT_B4G4R4A4_UNORM",v[v.DXGI_FORMAT_P208=116]="DXGI_FORMAT_P208",v[v.DXGI_FORMAT_V208=117]="DXGI_FORMAT_V208",v[v.DXGI_FORMAT_V408=118]="DXGI_FORMAT_V408",v[v.DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE=119]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE",v[v.DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE=120]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE",v[v.DXGI_FORMAT_FORCE_UINT=121]="DXGI_FORMAT_FORCE_UINT",(v=Ls=Ls||{})[v.DDS_DIMENSION_TEXTURE1D=2]="DDS_DIMENSION_TEXTURE1D",v[v.DDS_DIMENSION_TEXTURE2D=3]="DDS_DIMENSION_TEXTURE2D",v[v.DDS_DIMENSION_TEXTURE3D=6]="DDS_DIMENSION_TEXTURE3D",(v={})[827611204]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[861165636]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[894720068]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v),Ws=((v={})[fl.DXGI_FORMAT_BC1_TYPELESS]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[fl.DXGI_FORMAT_BC1_UNORM]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[fl.DXGI_FORMAT_BC2_TYPELESS]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[fl.DXGI_FORMAT_BC2_UNORM]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[fl.DXGI_FORMAT_BC3_TYPELESS]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v[fl.DXGI_FORMAT_BC3_UNORM]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v[fl.DXGI_FORMAT_BC1_UNORM_SRGB]=$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,v[fl.DXGI_FORMAT_BC2_UNORM_SRGB]=$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,v[fl.DXGI_FORMAT_BC3_UNORM_SRGB]=$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,v);function qs(e){var t=new Uint32Array(e);if(542327876!==t[0])throw new Error("Invalid DDS file magic word");var r=new Uint32Array(e,0,124/Uint32Array.BYTES_PER_ELEMENT),i=r[Fs],n=r[Ns],o=r[zs],r=new Uint32Array(e,Bs*Uint32Array.BYTES_PER_ELEMENT,32/Uint32Array.BYTES_PER_ELEMENT),a=r[1];if(4&a){r=r[js];if(808540228!==r)return r=Ys[r],s=new Uint8Array(e,128),[new Cs(s,{format:r,width:n,height:i,levels:o})];var s=new Uint32Array(t.buffer,128,20/Uint32Array.BYTES_PER_ELEMENT),r=s[Us],t=s[Gs],l=s[Xs],u=s[Hs],h=Ws[r];if(void 0===h)throw new Error("DDSParser cannot parse texture data with DXGI format "+r);if(4===l)throw new Error("DDSParser does not support cubemap textures");if(t===Ls.DDS_DIMENSION_TEXTURE3D)throw new Error("DDSParser does not supported 3D texture data");var c=new Array;if(1===u)c.push(new Uint8Array(e,148));else{for(var f=ws[h],p=0,d=n,m=i,_=0;_<o;_++)p+=Math.max(1,d+3&-4)*Math.max(1,m+3&-4)*f,d>>>=1,m>>>=1;for(var g=148,_=0;_<u;_++)c.push(new Uint8Array(e,g,p)),g+=p}return c.map(function(e){return new Cs(e,{format:h,width:n,height:i,levels:o})})}if(64&a)throw new Error("DDSParser does not support uncompressed texture data.");if(512&a)throw new Error("DDSParser does not supported YUV uncompressed texture data.");if(131072&a)throw new Error("DDSParser does not support single-channel (lumninance) texture data!");if(2&a)throw new Error("DDSParser does not support single-channel (alpha) texture data!");throw new Error("DDSParser failed to load a texture file due to an unknown reason!")}var Vs=[171,75,84,88,32,49,49,187,13,10,26,10],Ks=12,Js=16,Zs=24,Qs=28,$s=36,el=40,tl=44,rl=48,il=52,nl=56,ol=60,al=64,sl=((fl={})[$.TYPES.UNSIGNED_BYTE]=1,fl[$.TYPES.UNSIGNED_SHORT]=2,fl[$.TYPES.INT]=4,fl[$.TYPES.UNSIGNED_INT]=4,fl[$.TYPES.FLOAT]=4,fl[$.TYPES.HALF_FLOAT]=8,fl),ll=((v={})[$.FORMATS.RGBA]=4,v[$.FORMATS.RGB]=3,v[$.FORMATS.RG]=2,v[$.FORMATS.RED]=1,v[$.FORMATS.LUMINANCE]=1,v[$.FORMATS.LUMINANCE_ALPHA]=2,v[$.FORMATS.ALPHA]=1,v),ul=((fl={})[$.TYPES.UNSIGNED_SHORT_4_4_4_4]=2,fl[$.TYPES.UNSIGNED_SHORT_5_5_5_1]=2,fl[$.TYPES.UNSIGNED_SHORT_5_6_5]=2,fl);function hl(e,t,r){void 0===r&&(r=!1);var i=new DataView(t);if(!function(e,t){for(var r=0;r<Vs.length;r++)if(t.getUint8(r)!==Vs[r])return void console.error(e+" is not a valid *.ktx file!");return 1}(e,i))return null;var n=67305985===i.getUint32(Ks,!0),o=i.getUint32(Js,n),a=i.getUint32(Zs,n),s=i.getUint32(Qs,n),l=i.getUint32($s,n),u=i.getUint32(el,n)||1,e=i.getUint32(tl,n)||1,h=i.getUint32(rl,n)||1,c=i.getUint32(il,n),f=i.getUint32(nl,n),p=i.getUint32(ol,n);if(0===u||1!==e)throw new Error("Only 2D textures are supported");if(1!==c)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(1!==h)throw new Error("WebGL does not support array textures");var e=l+3&-4,c=u+3&-4,d=new Array(h),m=0===o?e*c:l*u,_=0!==o?sl[o]?sl[o]*ll[a]:ul[o]:ws[s];if(void 0===_)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var r=r?function(e,t,r){var i=new Map,n=0;for(;n<t;){var o=e.getUint32(al+n,r),a=al+n+4,s=3-(o+3)%4;if(0===o||t-n<o){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var l=0;l<o&&0!==e.getUint8(a+l);l++);if(-1===l){console.error("KTXLoader: Failed to find null byte terminating kvData key");break}var u=(new TextDecoder).decode(new Uint8Array(e.buffer,a,l)),h=new DataView(e.buffer,a+l+1,o-l-1);i.set(u,h),n+=4+o+s}return i}(i,p,n):null,g=m*_,v=l,y=u,b=e,x=c,T=al+p,w=0;w<f;w++){for(var E=i.getUint32(T,n),S=T+4,A=0;A<h;A++)(d[A]||(d[A]=new Array(f)))[w]={levelID:w,levelWidth:1<f||0!==o?v:b,levelHeight:1<f||0!==o?y:x,levelBuffer:new Uint8Array(t,S,g)},S+=g;T=(T+=E+4)%4!=0?T+4-T%4:T,g=(b=(v=v>>1||1)+4-1&-4)*(x=(y=y>>1||1)+4-1&-4)*_}return 0!==o?{uncompressed:d.map(function(e){var t=e[0].levelBuffer,r=!1;return o===$.TYPES.FLOAT?t=new Float32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4):o===$.TYPES.UNSIGNED_INT?(r=!0,t=new Uint32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)):o===$.TYPES.INT&&(r=!0,t=new Int32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)),{resource:new ti(t,{width:e[0].levelWidth,height:e[0].levelHeight}),type:o,format:r?function(e){switch(e){case $.FORMATS.RGBA:return $.FORMATS.RGBA_INTEGER;case $.FORMATS.RGB:return $.FORMATS.RGB_INTEGER;case $.FORMATS.RG:return $.FORMATS.RG_INTEGER;case $.FORMATS.RED:return $.FORMATS.RED_INTEGER;default:return e}}(a):a}}),kvData:r}:{compressed:d.map(function(e){return new Cs(null,{format:s,width:l,height:u,levels:f,levelBuffers:e})}),kvData:r}}$.LoaderResource.setExtensionXhrType("dds",$.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);cl.use=function(e,t){if("dds"===e.extension&&e.data)try{Object.assign(e,Ds(e.name||e.url,qs(e.data),e.metadata))}catch(e){return void t(e)}t()},cl.extension=$.ExtensionType.Loader;var v=cl;function cl(){}$.LoaderResource.setExtensionXhrType("ktx",$.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);pl.use=function(e,t){if("ktx"===e.extension&&e.data)try{var i,n=e.name||e.url,r=hl(n,e.data,this.loadKeyValueData),o=r.compressed,a=r.uncompressed,s=r.kvData;if(o){var l=Ds(n,o,e.metadata);if(s&&l.textures)for(var u in l.textures)l.textures[u].baseTexture.ktxKeyValueData=s;Object.assign(e,l)}else a&&(i={},a.forEach(function(e,t){var e=new te(new C(e.resource,{mipmap:$.MIPMAP_MODES.OFF,alphaMode:$.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA,type:e.type,format:e.format})),r=n+"-"+(t+1);s&&(e.baseTexture.ktxKeyValueData=s),C.addToCache(e.baseTexture,r),te.addToCache(e,r),0===t&&(i[n]=e,C.addToCache(e.baseTexture,n),te.addToCache(e,n)),i[r]=e}),Object.assign(e,{textures:i}))}catch(e){return void t(e)}t()},pl.extension=$.ExtensionType.Loader,pl.loadKeyValueData=!1;var fl=pl;function pl(){}var dl=function(e,t){return(dl=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 ml(e,t){function r(){this.constructor=e}dl(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}ml(vl,_l=zr),vl.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])},vl.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(vl.prototype,"tint",{get:function(){return this._tint},set:function(e){pt(this._tint=e,this.tintRgb)},enumerable:!1,configurable:!0}),vl.prototype.render=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.valid||this.baseTexture.once("update",function(){return t.onChildrenChange(0)})),e.batch.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},vl.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},vl.prototype.dispose=function(){if(this._buffers){for(var e=0;e<this._buffers.length;++e)this._buffers[e].destroy();this._buffers=null}},vl.prototype.destroy=function(e){_l.prototype.destroy.call(this,e),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null};var _l,gl=vl;function vl(e,t,r,i){void 0===e&&(e=1500),void 0===r&&(r=16384),void 0===i&&(i=!1);var n=_l.call(this)||this;return 16384<r&&(r=16384),n._properties=[!1,!0,!1,!1,!1],n._maxSize=e,n._batchSize=r,n._buffers=null,n._bufferUpdateIDs=[],n._updateID=0,n.interactiveChildren=!1,n.blendMode=$.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}bl.prototype.initBuffers=function(){var e=this.geometry,t=0;this.indexBuffer=new Ki(xt(this.size),!0,!0),e.addIndex(this.indexBuffer);for(var r=this.dynamicStride=0;r<this.dynamicProperties.length;++r)(o=this.dynamicProperties[r]).offset=t,t+=o.size,this.dynamicStride+=o.size;for(var i=new ArrayBuffer(this.size*this.dynamicStride*4*4),n=(this.dynamicData=new Float32Array(i),this.dynamicDataUint32=new Uint32Array(i),this.dynamicBuffer=new Ki(this.dynamicData,!1,!1),0),r=this.staticStride=0;r<this.staticProperties.length;++r)(o=this.staticProperties[r]).offset=n,n+=o.size,this.staticStride+=o.size;i=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(i),this.staticDataUint32=new Uint32Array(i),this.staticBuffer=new Ki(this.staticData,!0,!1);for(r=0;r<this.dynamicProperties.length;++r){var o=this.dynamicProperties[r];e.addAttribute(o.attributeName,this.dynamicBuffer,0,o.type===$.TYPES.UNSIGNED_BYTE,o.type,4*this.dynamicStride,4*o.offset)}for(r=0;r<this.staticProperties.length;++r){o=this.staticProperties[r];e.addAttribute(o.attributeName,this.staticBuffer,0,o.type===$.TYPES.UNSIGNED_BYTE,o.type,4*this.staticStride,4*o.offset)}},bl.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.type===$.TYPES.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer._updateID++},bl.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.type===$.TYPES.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer._updateID++},bl.prototype.destroy=function(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()};var yl=bl;function bl(e,t,r){this.geometry=new tn,this.indexBuffer=null,this.size=r,this.dynamicProperties=[],this.staticProperties=[];for(var i=0;i<e.length;++i){var n={attributeName:(n=e[i]).attributeName,size:n.size,uploadFunction:n.uploadFunction,type:n.type||$.TYPES.FLOAT,offset:n.offset};(t[i]?this.dynamicProperties:this.staticProperties).push(n)}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()}ml(wl,xl=yn),wl.prototype.render=function(e){var t=e.children,r=e._maxSize,i=e._batchSize,n=this.renderer,o=t.length;if(0!==o){r<o&&!e.autoResize&&(o=r);for(var a=(a=e._buffers)||(e._buffers=this.generateBuffers(e)),r=t[0]._texture.baseTexture,s=0<r.alphaMode,l=(this.state.blendMode=gt(e.blendMode,s),n.state.set(this.state),n.gl),u=e.worldTransform.copyTo(this.tempMatrix),h=(u.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=vt(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,s),this.shader.uniforms.uSampler=r,this.renderer.shader.bind(this.shader),!1),c=0,f=0;c<o;c+=i,f+=1){var p=o-c,d=(i<p&&(p=i),f>=a.length&&a.push(this._generateOneMoreBuffer(e)),a[f]),m=(d.uploadDynamic(t,c,p),e._bufferUpdateIDs[f]||0);(h=h||d._updateID<m)&&(d._updateID=e._updateID,d.uploadStatic(t,c,p)),n.geometry.bind(d.geometry),l.drawElements(l.TRIANGLES,6*p,l.UNSIGNED_SHORT,0)}}},wl.prototype.generateBuffers=function(e){for(var t=[],r=e._maxSize,i=e._batchSize,n=e._properties,o=0;o<r;o+=i)t.push(new yl(this.properties,n,i));return t},wl.prototype._generateOneMoreBuffer=function(e){var t=e._batchSize,e=e._properties;return new yl(this.properties,e,t)},wl.prototype.uploadVertices=function(e,t,r,i,n,o){for(var a=0,s=0,l=0,u=0,h=0;h<r;++h){var c=e[t+h],f=c._texture,p=c.scale.x,d=c.scale.y,m=f.trim,f=f.orig;m?(a=(s=m.x-c.anchor.x*f.width)+m.width,l=(u=m.y-c.anchor.y*f.height)+m.height):(a=f.width*(1-c.anchor.x),s=f.width*-c.anchor.x,l=f.height*(1-c.anchor.y),u=f.height*-c.anchor.y),i[o]=s*p,i[o+1]=u*d,i[o+n]=a*p,i[o+n+1]=u*d,i[o+2*n]=a*p,i[o+2*n+1]=l*d,i[o+3*n]=s*p,i[o+3*n+1]=l*d,o+=4*n}},wl.prototype.uploadPosition=function(e,t,r,i,n,o){for(var a=0;a<r;a++){var s=e[t+a].position;i[o]=s.x,i[o+1]=s.y,i[o+n]=s.x,i[o+n+1]=s.y,i[o+2*n]=s.x,i[o+2*n+1]=s.y,i[o+3*n]=s.x,i[o+3*n+1]=s.y,o+=4*n}},wl.prototype.uploadRotation=function(e,t,r,i,n,o){for(var a=0;a<r;a++){var s=e[t+a].rotation;i[o]=s,i[o+n]=s,i[o+2*n]=s,i[o+3*n]=s,o+=4*n}},wl.prototype.uploadUvs=function(e,t,r,i,n,o){for(var a=0;a<r;++a){var s=e[t+a]._texture._uvs;s?(i[o]=s.x0,i[o+1]=s.y0,i[o+n]=s.x1,i[o+n+1]=s.y1,i[o+2*n]=s.x2,i[o+2*n+1]=s.y2,i[o+3*n]=s.x3,i[o+3*n+1]=s.y3):(i[o]=0,i[o+1]=0,i[o+n]=0,i[o+n+1]=0,i[o+2*n]=0,i[o+2*n+1]=0,i[o+3*n]=0,i[o+3*n+1]=0),o+=4*n}},wl.prototype.uploadTint=function(e,t,r,i,n,o){for(var a=0;a<r;++a){var s=e[t+a],l=0<s._texture.baseTexture.alphaMode,u=s.alpha,l=u<1&&l?yt(s._tintRGB,u):s._tintRGB+(255*u<<24);i[o]=l,i[o+n]=l,i[o+2*n]=l,i[o+3*n]=l,o+=4*n}},wl.prototype.destroy=function(){xl.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},wl.extension={name:"particle",type:$.ExtensionType.RendererPlugin};var xl,Tl=wl;function wl(e){e=xl.call(this,e)||this;return e.shader=null,e.properties=null,e.tempMatrix=new ar,e.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:e.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:e.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:e.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:e.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:$.TYPES.UNSIGNED_BYTE,uploadFunction:e.uploadTint,offset:0}],e.shader=oo.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nattribute vec2 aPositionCoord;\nattribute float aRotation;\n\nuniform mat3 translationMatrix;\nuniform vec4 uColor;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void){\n float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);\n float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);\n\n vec2 v = vec2(x, y);\n v = v + aPositionCoord;\n\n gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vColor = aColor * uColor;\n}\n","varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n gl_FragColor = color;\n}",{}),e.state=so.for2d(),e}$.LINE_JOIN=void 0,(Ml=$.LINE_JOIN||($.LINE_JOIN={})).MITER="miter",Ml.BEVEL="bevel",Ml.ROUND="round",$.LINE_CAP=void 0,(Ml=$.LINE_CAP||($.LINE_CAP={})).BUTT="butt",Ml.ROUND="round",Ml.SQUARE="square";var El={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){return void 0===t&&(t=20),this.adaptive&&e&&!isNaN(e)?((e=Math.ceil(e/this.maxLength))<this.minSegments?e=this.minSegments:e>this.maxSegments&&(e=this.maxSegments),e):t}},Sl=(Al.prototype.clone=function(){var e=new Al;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},Al.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=te.WHITE,this.matrix=null,this.visible=!1},Al.prototype.destroy=function(){this.texture=null,this.matrix=null},Al);function Al(){this.color=16777215,this.alpha=1,this.texture=te.WHITE,this.matrix=null,this.visible=!1,this.reset()}var kl=function(e,t){return(kl=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 Ol(e,t){function r(){this.constructor=e}kl(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Pl(e,t){void 0===t&&(t=!1);var r=e.length;if(!(r<6)){for(var i=0,n=0,o=e[r-2],a=e[r-1];n<r;n+=2){var s=e[n],l=e[n+1];i+=(s-o)*(l+a),o=s,a=l}if(!t&&0<i||t&&i<=0)for(t=r/2,n=t+t%2;n<r;n+=2){var u=r-n-2,h=r-n-1,c=n,f=n+1,p=[e[c],e[u]];e[u]=p[0],e[c]=p[1],u=[e[f],e[h]],e[h]=u[0],e[f]=u[1]}}}var Rl={build:function(e){e.points=e.shape.points.slice()},triangulate:function(e,t){var r=e.points,i=e.holes,n=t.points,o=t.indices;if(6<=r.length){Pl(r,!1);for(var a=[],s=0;s<i.length;s++){var l=i[s];Pl(l.points,!0),a.push(r.length/2),r=r.concat(l.points)}var u=pe(r,a,2);if(u){for(var h=n.length/2,s=0;s<u.length;s+=3)o.push(u[s]+h),o.push(u[s+1]+h),o.push(u[s+2]+h);for(s=0;s<r.length;s++)n.push(r[s])}}}},Cl={build:function(e){var t,r,i,n,o,a,s,l=e.points;if(e.type===$.SHAPES.CIRC?(i=(h=e.shape).x,n=h.y,o=r=h.radius,a=t=0):e.type===$.SHAPES.ELIP?(i=(h=e.shape).x,n=h.y,o=h.width,r=h.height,a=t=0):(e=(h=e.shape).width/2,s=h.height/2,i=h.x+e,n=h.y+s,a=e-(o=r=Math.max(0,Math.min(h.radius,Math.min(e,s)))),t=s-r),0<=o&&0<=r&&0<=a&&0<=t){var u=Math.ceil(2.3*Math.sqrt(o+r)),h=8*u+(a?4:0)+(t?4:0);if(0!=(l.length=h))if(0===u)l.length=8,l[0]=l[6]=i+a,l[1]=l[3]=n+t,l[2]=l[4]=i-a,l[5]=l[7]=n-t;else{var c=0,f=4*u+(a?2:0)+2,p=f,d=h,m=i+(x=a+o),_=i-x,g=n+(T=t);l[c++]=m,l[c++]=g,l[--f]=g,l[--f]=_,t&&(b=n-T,l[p++]=_,l[p++]=b,l[--d]=b,l[--d]=m);for(var v=1;v<u;v++){var y=Math.PI/2*(v/u),m=i+(x=a+Math.cos(y)*o),_=i-x,g=n+(T=t+Math.sin(y)*r),b=n-T;l[c++]=m,l[c++]=g,l[--f]=g,l[--f]=_,l[p++]=_,l[p++]=b,l[--d]=b,l[--d]=m}var x,T,m=i+(x=a),_=i-x,g=n+(T=t+r),b=n-T;l[c++]=m,l[c++]=g,l[--d]=b,l[--d]=m,a&&(l[c++]=_,l[c++]=g,l[--d]=b,l[--d]=_)}}else l.length=0},triangulate:function(e,t){var r=e.points,i=t.points,n=t.indices;if(0!==r.length){var o,a=i.length/2,s=a,l=(t=e.type!==$.SHAPES.RREC?(o=(t=e.shape).x,t.y):(o=(t=e.shape).x+t.width/2,t.y+t.height/2),e.matrix);i.push(e.matrix?l.a*o+l.c*t+l.tx:o,e.matrix?l.b*o+l.d*t+l.ty:t),a++,i.push(r[0],r[1]);for(var u=2;u<r.length;u+=2)i.push(r[u],r[u+1]),n.push(a++,s,a);n.push(s+1,s,a)}}},Ml={build:function(e){var t=e.shape,r=t.x,i=t.y,n=t.width,t=t.height,e=e.points;e.length=0,e.push(r,i,r+n,i,r+n,i+t,r,i+t)},triangulate:function(e,t){var e=e.points,r=t.points,i=r.length/2;r.push(e[0],e[1],e[2],e[3],e[6],e[7],e[4],e[5]),t.indices.push(i,1+i,2+i,1+i,2+i,3+i)}};function Il(e,t,r){return e+(t-e)*r}function Dl(e,t,r,i,n,o,a){for(var s,l,u,h,c,f=a=void 0===a?[]:a,p=0;p<=20;++p)u=Il(e,r,c=p/20),s=Il(t,i,c),h=Il(r,n,c),l=Il(i,o,c),u=Il(u,h,c),h=Il(s,l,c),0===p&&f[f.length-2]===u&&f[f.length-1]===h||f.push(u,h)}var Ll={build:function(e){var t,r,i,n,o;su.nextRoundedRectBehavior?Cl.build(e):(o=e.shape,e=e.points,t=o.x,r=o.y,i=o.width,n=o.height,o=Math.max(0,Math.min(o.radius,Math.min(i,n)/2)),e.length=0,o?(Dl(t,r+o,t,r,t+o,r,e),Dl(t+i-o,r,t+i,r,t+i,r+o,e),Dl(t+i,r+n-o,t+i,r+n,t+i-o,r+n,e),Dl(t+o,r+n,t,r+n,t,r+n-o,e)):e.push(t,r,t+i,r,t+i,r+n,t,r+n))},triangulate:function(e,t){if(su.nextRoundedRectBehavior)Cl.triangulate(e,t);else{for(var r=e.points,i=t.points,n=t.indices,o=i.length/2,a=pe(r,null,2),s=0,l=a.length;s<l;s+=3)n.push(a[s]+o),n.push(a[s+1]+o),n.push(a[s+2]+o);for(s=0,l=r.length;s<l;s++)i.push(r[s],r[++s])}}};function Fl(e,t,r,i,n,o,a,s){var l,a=a?(l=i,-r):(l=-i,r),u=e+r*o+l,o=t+i*o+a;return s.push(e-r*n+l,t-i*n+a),s.push(u,o),2}function Nl(e,t,r,i,n,o,a,s){var l=r-e,u=i-t,h=Math.atan2(l,u),c=Math.atan2(n-e,o-t),f=(s&&h<c?h+=2*Math.PI:!s&&c<h&&(c+=2*Math.PI),h),c=c-h,h=Math.abs(c),p=Math.sqrt(l*l+u*u),d=1+(15*h*Math.sqrt(p)/Math.PI>>0),m=c/d;if(f+=m,s){a.push(e,t),a.push(r,i);for(var _=1,g=f;_<d;_++,g+=m)a.push(e,t),a.push(e+Math.sin(g)*p,t+Math.cos(g)*p);a.push(e,t),a.push(n,o)}else{a.push(r,i),a.push(e,t);for(_=1,g=f;_<d;_++,g+=m)a.push(e+Math.sin(g)*p,t+Math.cos(g)*p),a.push(e,t);a.push(n,o),a.push(e,t)}return 2*d}function zl(e,t){if(e.lineStyle.native){var r=t,i=0,n=(a=e).shape,o=a.points||n.points,a=n.type!==$.SHAPES.POLY||n.closeStroke;if(0!==o.length){var F=r.points,N=r.indices,z=o.length/2,n=F.length/2,s=n;for(F.push(o[0],o[1]),i=1;i<z;i++)F.push(o[2*i],o[2*i+1]),N.push(s,s+1),s++;a&&N.push(s,n)}}else{var r=t,n=(a=e).shape,l=a.points||n.points.slice(),t=r.closePointEps;if(0!==l.length){var u=a.lineStyle,a=new ee(l[0],l[1]),e=new ee(l[l.length-2],l[l.length-1]),n=n.type!==$.SHAPES.POLY||n.closeStroke,t=Math.abs(a.x-e.x)<t&&Math.abs(a.y-e.y)<t,h=(n&&(l=l.slice(),t&&(l.pop(),l.pop(),e.set(l[l.length-2],l[l.length-1])),t=.5*(a.x+e.x),e=.5*(e.y+a.y),l.unshift(t,e),l.push(t,e)),r.points),c=l.length/2,f=l.length,B=h.length/2,p=u.width/2,j=p*p,U=u.miterLimit*u.miterLimit,d=l[0],m=l[1],_=l[2],g=l[3],v=0,y=0,b=-(m-g),x=d-_,T=0,w=0,E=Math.sqrt(b*b+x*x),a=(b=b/E*p,x=x/E*p,u.alignment),S=2*(1-a),A=2*a;n||(u.cap===$.LINE_CAP.ROUND?f+=Nl(d-b*(S-A)*.5,m-x*(S-A)*.5,d-b*S,m-x*S,d+b*A,m+x*A,h,!0)+2:u.cap===$.LINE_CAP.SQUARE&&(f+=Fl(d,m,b,x,S,A,!0,h))),h.push(d-b*S,m-x*S),h.push(d+b*A,m+x*A);for(var k=1;k<c-1;++k){d=l[2*(k-1)],m=l[2*(k-1)+1],_=l[2*k],g=l[2*k+1],v=l[2*(k+1)],y=l[2*(k+1)+1],x=d-_,b=(b=-(m-g))/(E=Math.sqrt(b*b+x*x))*p,x=x/E*p,w=_-v;var O,P,R,C,M,G,T=(T=-(g-y))/(E=Math.sqrt(T*T+w*w))*p,w=w/E*p,I=_-d,X=m-g,H=_-v,Y=y-g,D=X*H-Y*I,L=D<0;Math.abs(D)<.1?(h.push(_-b*S,g-x*S),h.push(_+b*A,g+x*A)):(R=_+((P=(I*(C=(-T+v)*(-w+g)-(-T+_)*(-w+y))-H*(O=(-b+d)*(-x+g)-(-b+_)*(-x+m)))/D)-_)*S,C=g+((O=(Y*O-X*C)/D)-g)*S,D=_-(P-_)*A,M=g-(O-g)*A,G=L?S:A,(P=(P-_)*(P-_)+(O-g)*(O-g))<=Math.min(I*I+X*X,H*H+Y*Y)+G*G*j?u.join===$.LINE_JOIN.BEVEL||U<P/j?(L?(h.push(R,C),h.push(_+b*A,g+x*A),h.push(R,C),h.push(_+T*A,g+w*A)):(h.push(_-b*S,g-x*S),h.push(D,M),h.push(_-T*S,g-w*S),h.push(D,M)),f+=2):u.join===$.LINE_JOIN.ROUND?L?(h.push(R,C),h.push(_+b*A,g+x*A),f+=Nl(_,g,_+b*A,g+x*A,_+T*A,g+w*A,h,!0)+4,h.push(R,C),h.push(_+T*A,g+w*A)):(h.push(_-b*S,g-x*S),h.push(D,M),f+=Nl(_,g,_-b*S,g-x*S,_-T*S,g-w*S,h,!1)+4,h.push(_-T*S,g-w*S),h.push(D,M)):(h.push(R,C),h.push(D,M)):(h.push(_-b*S,g-x*S),h.push(_+b*A,g+x*A),u.join===$.LINE_JOIN.ROUND?f+=L?Nl(_,g,_+b*A,g+x*A,_+T*A,g+w*A,h,!0)+2:Nl(_,g,_-b*S,g-x*S,_-T*S,g-w*S,h,!1)+2:u.join===$.LINE_JOIN.MITER&&P/j<=U&&(L?(h.push(D,M),h.push(D,M)):(h.push(R,C),h.push(R,C)),f+=2),h.push(_-T*S,g-w*S),h.push(_+T*A,g+w*A),f+=2))}d=l[2*(c-2)],m=l[2*(c-2)+1],_=l[2*(c-1)],b=-(m-(g=l[2*(c-1)+1])),x=d-_,E=Math.sqrt(b*b+x*x),h.push(_-(b=b/E*p)*S,g-(x=x/E*p)*S),h.push(_+b*A,g+x*A),n||(u.cap===$.LINE_CAP.ROUND?f+=Nl(_-b*(S-A)*.5,g-x*(S-A)*.5,_-b*S,g-x*S,_+b*A,g+x*A,h,!1)+2:u.cap===$.LINE_CAP.SQUARE&&(f+=Fl(_,g,b,x,S,A,!1,h)));for(var W=r.indices,q=El.epsilon*El.epsilon,k=B;k<f+B-2;++k)d=h[2*k],m=h[2*k+1],_=h[2*(k+1)],g=h[2*(k+1)+1],v=h[2*(k+2)],y=h[2*(k+2)+1],Math.abs(d*(g-y)+_*(y-m)+v*(m-g))<q||W.push(k,k+1,k+2)}}}jl.curveTo=function(e,t,r,i,n,o){var a,s,l,u,h=o[o.length-2],c=o[o.length-1]-t,h=h-e,i=i-t,r=r-e,f=Math.abs(c*r-h*i);return f<1e-8||0===n?(o[o.length-2]===e&&o[o.length-1]===t||o.push(e,t),null):(o=c*c+h*h,l=i*i+r*r,u=c*i+h*r,o=(a=n*Math.sqrt(o)/f)*u/o,l=r*(a+(u=(f=n*Math.sqrt(l)/f)*u/l)),u=i*(a+u),{cx:(s=a*r+f*h)+e,cy:(e=a*i+f*c)+t,radius:n,startAngle:Math.atan2(c*(f+o)-e,h*(f+o)-s),endAngle:Math.atan2(u-e,l-s),anticlockwise:r*c<h*i})},jl.arc=function(e,t,r,i,n,o,a,s,l){for(var a=a-o,u=El._segmentsCount(Math.abs(a)*n,40*Math.ceil(Math.abs(a)/Ht)),h=a/(2*u),c=2*h,f=Math.cos(h),p=Math.sin(h),d=u-1,m=d%1/d,_=0;_<=d;++_){var g=h+o+c*(_+m*_),v=Math.cos(g),g=-Math.sin(g);l.push((f*v+p*g)*n+r,(f*-g+p*v)*n+i)}};var Bl=jl;function jl(){}Gl.curveLength=function(e,t,r,i,n,o,a,s){for(var l,u,h,c,f,p,d,m,_=0,g=e,v=t,y=1;y<=10;++y)d=g-(f=(p=(m=(c=1-(l=y/10))*c)*c)*e+3*m*l*r+3*c*(u=l*l)*n+(h=u*l)*a),m=v-(p=p*t+3*m*l*i+3*c*u*o+h*s),g=f,v=p,_+=Math.sqrt(d*d+m*m);return _},Gl.curveTo=function(e,t,r,i,n,o,a){var s,l,u,h,c,f=a[a.length-2],p=a[a.length-1],d=(a.length-=2,El._segmentsCount(Gl.curveLength(f,p,e,t,r,i,n,o)));a.push(f,p);for(var m,_=1;_<=d;++_)a.push((u=(l=(s=1-(m=_/d))*s)*s)*f+3*l*m*e+3*s*(h=m*m)*r+(c=h*m)*n,u*p+3*l*m*t+3*s*h*i+c*o)};var Ul=Gl;function Gl(){}Hl.curveLength=function(e,t,r,i,n,o){var n=e-2*r+n,o=t-2*i+o,r=2*r-2*e,e=2*i-2*t,i=4*(n*n+o*o),t=4*(n*r+o*e),n=r*r+e*e,o=2*Math.sqrt(i+t+n),r=Math.sqrt(i),e=2*i*r,a=2*Math.sqrt(n),s=t/r;return(e*o+r*t*(o-a)+(4*n*i-t*t)*Math.log((2*r+s+o)/(s+a)))/(4*e)},Hl.curveTo=function(e,t,r,i,n){for(var o=n[n.length-2],a=n[n.length-1],s=El._segmentsCount(Hl.curveLength(o,a,e,t,r,i)),l=1;l<=s;++l){var u,h=l/s;n.push((u=o+(e-o)*h)+(e+(r-e)*h-u)*h,(u=a+(t-a)*h)+(t+(i-t)*h-u)*h)}};var Xl=Hl;function Hl(){}Wl.prototype.begin=function(e,t,r){this.reset(),this.style=e,this.start=t,this.attribStart=r},Wl.prototype.end=function(e,t){this.attribSize=t-this.attribStart,this.size=e-this.start},Wl.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0};var Yl=Wl;function Wl(){this.reset()}(lu={})[$.SHAPES.POLY]=Rl,lu[$.SHAPES.CIRC]=Cl,lu[$.SHAPES.ELIP]=Cl,lu[$.SHAPES.RECT]=Ml,lu[$.SHAPES.RREC]=Ll;var ql=lu,Vl=[],Kl=[],Jl=(Zl.prototype.clone=function(){return new Zl(this.shape,this.fillStyle,this.lineStyle,this.matrix)},Zl.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},Zl);function Zl(e,t,r,i){void 0===t&&(t=null),void 0===r&&(r=null),void 0===i&&(i=null),this.points=[],this.holes=[],this.shape=e,this.lineStyle=r,this.fillStyle=t,this.matrix=i,this.type=e.type}var Ql,$l=new ee,eu=(Ol(y,Ql=Pa),Object.defineProperty(y.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),y.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0;for(var e=this.textureIds.length=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Kl.push(this.drawCalls[e]);for(e=this.drawCalls.length=0;e<this.batches.length;e++){var t=this.batches[e];t.reset(),Vl.push(t)}this.batches.length=0},y.prototype.clear=function(){return 0<this.graphicsData.length&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},y.prototype.drawShape=function(e,t,r,i){e=new Jl(e,t=void 0===t?null:t,r=void 0===r?null:r,i=void 0===i?null:i);return this.graphicsData.push(e),this.dirty++,this},y.prototype.drawHole=function(e,t){return this.graphicsData.length?(e=new Jl(e,null,null,t=void 0===t?null:t),t=this.graphicsData[this.graphicsData.length-1],e.lineStyle=t.lineStyle,t.holes.push(e),this.dirty++,this):null},y.prototype.destroy=function(){Ql.prototype.destroy.call(this);for(var e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null},y.prototype.containsPoint=function(e){for(var t=this.graphicsData,r=0;r<t.length;++r){var i=t[r];if(i.fillStyle.visible&&(i.shape&&(i.matrix?i.matrix.applyInverse(e,$l):$l.copyFrom(e),i.shape.contains($l.x,$l.y)))){var n=!1;if(i.holes)for(var o=0;o<i.holes.length;o++)if(i.holes[o].shape.contains($l.x,$l.y)){n=!0;break}if(!n)return!0}}return!1},y.prototype.updateBatches=function(){if(this.graphicsData.length){if(this.validateBatching()){this.cacheDirty=this.dirty;var e=this.uvs,t=this.graphicsData,r=null,i=null;0<this.batches.length&&(i=(r=this.batches[this.batches.length-1]).style);for(var n=this.shapeIndex;n<t.length;n++){this.shapeIndex++;var o=t[n],a=o.fillStyle,s=o.lineStyle;ql[o.type].build(o),o.matrix&&this.transformPoints(o.points,o.matrix),(a.visible||s.visible)&&this.processHoles(o.holes);for(var l=0;l<2;l++){var u,h,c,f=0===l?a:s;f.visible&&(c=f.texture.baseTexture,u=this.indices.length,h=this.points.length/2,c.wrapMode=$.WRAP_MODES.REPEAT,0===l?this.processFill(o):this.processLine(o),0!=(c=this.points.length/2-h)&&(r&&!this._compareStyles(i,f)&&(r.end(u,h),r=null),r||((r=Vl.pop()||new Yl).begin(f,u,h),this.batches.push(r),i=f),this.addUvs(this.points,e,f.texture,h,c,f.matrix)))}}var p=this.indices.length,d=this.points.length/2;r&&r.end(p,d),0===this.batches.length?this.batchable=!0:(p=65535<d,this.indicesUint16&&this.indices.length===this.indicesUint16.length&&p==2<this.indicesUint16.BYTES_PER_ELEMENT?this.indicesUint16.set(this.indices):this.indicesUint16=new(p?Uint32Array:Uint16Array)(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls())}}else this.batchable=!0},y.prototype._compareStyles=function(e,t){return!(!e||!t)&&(e.texture.baseTexture===t.texture.baseTexture&&(e.color+e.alpha===t.color+t.alpha&&!!e.native==!!t.native))},y.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var e=0,t=this.graphicsData.length;e<t;e++){var r=this.graphicsData[e],i=r.fillStyle,r=r.lineStyle;if(i&&!i.texture.baseTexture.valid)return!1;if(r&&!r.texture.baseTexture.valid)return!1}return!0},y.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var e=this.batches,t=0,r=e.length;t<r;t++)for(var i=e[t],n=0;n<i.size;n++){var o=i.start+n;this.indicesUint16[o]=this.indicesUint16[o]-i.attribStart}},y.prototype.isBatchable=function(){if(131070<this.points.length)return!1;for(var e=this.batches,t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<2*y.BATCHABLE_SIZE},y.prototype.buildDrawCalls=function(){for(var e=++C._globalBatch,t=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),Kl.push(this.drawCalls[t]);this.drawCalls.length=0;var r=this.colors,i=this.textureIds,n=Kl.pop(),o=(n||((n=new va).texArray=new ya),n.texArray.count=0,n.start=0,n.size=0,n.type=$.DRAW_MODES.TRIANGLES,0),a=null,s=!1,l=$.DRAW_MODES.TRIANGLES,u=0;this.drawCalls.push(n);for(t=0;t<this.batches.length;t++){var h=this.batches[t],c=h.style,f=c.texture.baseTexture;s!==!!c.native&&(l=(s=!!c.native)?$.DRAW_MODES.LINES:$.DRAW_MODES.TRIANGLES,a=null,o=8,e++),a!==f&&(a=f)._batchEnabled!==e&&(8===o&&(e++,(o=0)<n.size&&((n=Kl.pop())||((n=new va).texArray=new ya),this.drawCalls.push(n)),n.start=u,n.size=0,n.texArray.count=0,n.type=l),f.touched=1,f._batchEnabled=e,f._batchLocation=o,f.wrapMode=$.WRAP_MODES.REPEAT,n.texArray.elements[n.texArray.count++]=f,o++),n.size+=h.size,u+=h.size,f=f._batchLocation,this.addColors(r,c.color,c.alpha,h.attribSize,h.attribStart),this.addTextureIds(i,f,h.attribSize,h.attribStart)}C._globalBatch=e,this.packAttributes()},y.prototype.packAttributes=function(){for(var e=this.points,t=this.uvs,r=this.colors,i=this.textureIds,n=new ArrayBuffer(3*e.length*4),o=new Float32Array(n),a=new Uint32Array(n),s=0,l=0;l<e.length/2;l++)o[s++]=e[2*l],o[s++]=e[2*l+1],o[s++]=t[2*l],o[s++]=t[2*l+1],a[s++]=r[l],o[s++]=i[l];this._buffer.update(n),this._indexBuffer.update(this.indicesUint16)},y.prototype.processFill=function(e){(e.holes.length?Rl:ql[e.type]).triangulate(e,this)},y.prototype.processLine=function(e){zl(e,this);for(var t=0;t<e.holes.length;t++)zl(e.holes[t],this)},y.prototype.processHoles=function(e){for(var t=0;t<e.length;t++){var r=e[t];ql[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}},y.prototype.calculateBounds=function(){var e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)},y.prototype.transformPoints=function(e,t){for(var r=0;r<e.length/2;r++){var i=e[2*r],n=e[2*r+1];e[2*r]=t.a*i+t.c*n+t.tx,e[2*r+1]=t.b*i+t.d*n+t.ty}},y.prototype.addColors=function(e,t,r,i,n){void 0===n&&(n=0);var o=yt((t>>16)+(65280&t)+((255&t)<<16),r);e.length=Math.max(e.length,n+i);for(var a=0;a<i;a++)e[n+a]=o},y.prototype.addTextureIds=function(e,t,r,i){void 0===i&&(i=0),e.length=Math.max(e.length,i+r);for(var n=0;n<r;n++)e[i+n]=t},y.prototype.addUvs=function(e,t,r,i,n,o){void 0===o&&(o=null);for(var a=0,s=t.length,l=r.frame;a<n;){var u,h=e[2*(i+a)],c=e[2*(i+a)+1];o&&(u=o.a*h+o.c*c+o.tx,c=o.b*h+o.d*c+o.ty,h=u),a++,t.push(h/l.width,c/l.height)}var f=r.baseTexture;(l.width<f.width||l.height<f.height)&&this.adjustUvs(t,r,s,n)},y.prototype.adjustUvs=function(e,t,r,i){for(var n=t.baseTexture,o=r+2*i,i=t.frame,a=i.width/n.width,s=i.height/n.height,l=i.x/i.width,u=i.y/i.height,h=Math.floor(e[r]+1e-6),c=Math.floor(e[r+1]+1e-6),f=r+2;f<o;f+=2)h=Math.min(h,Math.floor(e[f]+1e-6)),c=Math.min(c,Math.floor(e[f+1]+1e-6));l-=h,u-=c;for(f=r;f<o;f+=2)e[f]=(e[f]+l)*a,e[f+1]=(e[f+1]+u)*s},y.BATCHABLE_SIZE=100,y);function y(){var e=Ql.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new kr,e.boundsDirty=-1,e}Ol(iu,tu=Sl),iu.prototype.clone=function(){var e=new iu;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e.width=this.width,e.alignment=this.alignment,e.native=this.native,e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e},iu.prototype.reset=function(){tu.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1};var tu,ru=iu;function iu(){var e=null!==tu&&tu.apply(this,arguments)||this;return e.width=0,e.alignment=.5,e.native=!1,e.cap=$.LINE_CAP.BUTT,e.join=$.LINE_JOIN.MITER,e.miterLimit=10,e}var nu,ou=new Float32Array(3),au={},su=(Ol(b,nu=zr),Object.defineProperty(b.prototype,"geometry",{get:function(){return this._geometry},enumerable:!1,configurable:!0}),b.prototype.clone=function(){return this.finishPoly(),new b(this._geometry)},Object.defineProperty(b.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"fill",{get:function(){return this._fillStyle},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"line",{get:function(){return this._lineStyle},enumerable:!1,configurable:!0}),b.prototype.lineStyle=function(e,t,r,i,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===i&&(i=.5),void 0===n&&(n=!1),this.lineTextureStyle(e="number"==typeof(e=void 0===e?null:e)?{width:e,color:t,alpha:r,alignment:i,native:n}:e)},b.prototype.lineTextureStyle=function(e){e=Object.assign({width:0,texture:te.WHITE,color:e&&e.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:$.LINE_CAP.BUTT,join:$.LINE_JOIN.MITER,miterLimit:10},e),this.currentPath&&this.startPoly();var t=0<e.width&&0<e.alpha;return t?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:t},e)):this._lineStyle.reset(),this},b.prototype.startPoly=function(){var e,t;this.currentPath?(e=this.currentPath.points,2<(t=this.currentPath.points.length)&&(this.drawShape(this.currentPath),this.currentPath=new er,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))):(this.currentPath=new er,this.currentPath.closeStroke=!1)},b.prototype.finishPoly=function(){this.currentPath&&(2<this.currentPath.points.length?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},b.prototype.moveTo=function(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this},b.prototype.lineTo=function(e,t){this.currentPath||this.moveTo(0,0);var r=this.currentPath.points,i=r[r.length-2],n=r[r.length-1];return i===e&&n===t||r.push(e,t),this},b.prototype._initCurve=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[e,t]):this.moveTo(e,t)},b.prototype.quadraticCurveTo=function(e,t,r,i){this._initCurve();var n=this.currentPath.points;return 0===n.length&&this.moveTo(0,0),Xl.curveTo(e,t,r,i,n),this},b.prototype.bezierCurveTo=function(e,t,r,i,n,o){return this._initCurve(),Ul.curveTo(e,t,r,i,n,o,this.currentPath.points),this},b.prototype.arcTo=function(e,t,r,i,n){this._initCurve(e,t);var o=this.currentPath.points,e=Bl.curveTo(e,t,r,i,n,o);return e&&(t=e.cx,r=e.cy,i=e.radius,n=e.startAngle,o=e.endAngle,e=e.anticlockwise,this.arc(t,r,i,n,o,e)),this},b.prototype.arc=function(e,t,r,i,n,o){var a,s,l,u,h,c;return void 0===o&&(o=!1),i!==n&&(!o&&n<=i?n+=Ht:o&&i<=n&&(i+=Ht),0!=n-i&&(a=e+Math.cos(i)*r,s=t+Math.sin(i)*r,l=this._geometry.closePointEps,(u=this.currentPath?this.currentPath.points:null)?(h=Math.abs(u[u.length-2]-a),c=Math.abs(u[u.length-1]-s),h<l&&c<l||u.push(a,s)):(this.moveTo(a,s),u=this.currentPath.points),Bl.arc(a,s,e,t,r,i,n,o,u))),this},b.prototype.beginFill=function(e,t){return this.beginTextureFill({texture:te.WHITE,color:e=void 0===e?0:e,alpha:t=void 0===t?1:t})},b.prototype.beginTextureFill=function(e){e=Object.assign({texture:te.WHITE,color:16777215,alpha:1,matrix:null},e),this.currentPath&&this.startPoly();var t=0<e.alpha;return t?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:t},e)):this._fillStyle.reset(),this},b.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},b.prototype.drawRect=function(e,t,r,i){return this.drawShape(new w(e,t,r,i))},b.prototype.drawRoundedRect=function(e,t,r,i,n){return this.drawShape(new rr(e,t,r,i,n))},b.prototype.drawCircle=function(e,t,r){return this.drawShape(new Jt(e,t,r))},b.prototype.drawEllipse=function(e,t,r,i){return this.drawShape(new Qt(e,t,r,i))},b.prototype.drawPolygon=function(){for(var e=arguments,t=[],r=0;r<arguments.length;r++)t[r]=e[r];var i=!0,n=t[0],n=n.points?(i=n.closeStroke,n.points):Array.isArray(t[0])?t[0]:t,n=new er(n);return n.closeStroke=i,this.drawShape(n),this},b.prototype.drawShape=function(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this},b.prototype.clear=function(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this},b.prototype.isFastRect=function(){var e=this._geometry.graphicsData;return!(1!==e.length||e[0].shape.type!==$.SHAPES.RECT||e[0].matrix||e[0].holes.length||e[0].lineStyle.visible&&e[0].lineStyle.width)},b.prototype._render=function(e){this.finishPoly();var t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))},b.prototype._populateBatches=function(){var e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(var i=0;i<r;i++){var n=e.batches[i],o=n.style.color,a=new Float32Array(this.vertexData.buffer,4*n.attribStart*2,2*n.attribSize),s=new Float32Array(e.uvsFloat32.buffer,4*n.attribStart*2,2*n.attribSize),a={vertexData:a,blendMode:t,indices:new Uint16Array(e.indicesUint16.buffer,2*n.start,n.size),uvs:s,_batchRGB:pt(o),_tintRGB:o,_texture:n.style.texture,alpha:n.style.alpha,worldAlpha:1};this.batches[i]=a}},b.prototype._renderBatched=function(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var t=0,r=this.batches.length;t<r;t++){var i=this.batches[t];i.worldAlpha=this.worldAlpha*i.alpha,e.plugins[this.pluginName].render(i)}}},b.prototype._renderDirect=function(e){var t=this._resolveDirectShader(e),r=this._geometry,i=this.tint,n=this.worldAlpha,o=t.uniforms,a=r.drawCalls;o.translationMatrix=this.transform.worldTransform,o.tint[0]=(i>>16&255)/255*n,o.tint[1]=(i>>8&255)/255*n,o.tint[2]=(255&i)/255*n,o.tint[3]=n,e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(var s=0,l=a.length;s<l;s++)this._renderDrawCallDirect(e,r.drawCalls[s])},b.prototype._renderDrawCallDirect=function(e,t){for(var r=t.texArray,i=t.type,n=t.size,t=t.start,o=r.count,a=0;a<o;a++)e.texture.bind(r.elements[a],a);e.geometry.draw(i,n,t)},b.prototype._resolveDirectShader=function(e){var t=this.shader,r=this.pluginName;if(!t){if(!au[r]){for(var i=e.plugins[r].MAX_TEXTURES,n=new Int32Array(i),o=0;o<i;o++)n[o]=o;var a={tint:new Float32Array([1,1,1,1]),translationMatrix:new ar,default:cn.from({uSamplers:n},!0)},e=e.plugins[r]._shader.program;au[r]=new oo(e,a)}t=au[r]}return t},b.prototype._calculateBounds=function(){this.finishPoly();var e,t,r,i=this._geometry;i.graphicsData.length&&(e=(i=i.bounds).minX,t=i.minY,r=i.maxX,i=i.maxY,this._bounds.addFrame(this.transform,e,t,r,i))},b.prototype.containsPoint=function(e){return this.worldTransform.applyInverse(e,b._TEMP_POINT),this._geometry.containsPoint(b._TEMP_POINT)},b.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var e=pt(this.tint,ou),t=0;t<this.batches.length;t++){var r=this.batches[t],i=r._batchRGB,i=(e[0]*i[0]*255<<16)+(e[1]*i[1]*255<<8)+(0|e[2]*i[2]*255);r._tintRGB=(i>>16)+(65280&i)+((255&i)<<16)}}},b.prototype.calculateVertices=function(){var e=this.transform._worldID;if(this._transformID!==e){this._transformID=e;for(var e=this.transform.worldTransform,t=e.a,r=e.b,i=e.c,n=e.d,o=e.tx,a=e.ty,s=this._geometry.points,l=this.vertexData,u=0,h=0;h<s.length;h+=2){var c=s[h],f=s[h+1];l[u++]=t*c+i*f+o,l[u++]=n*f+r*c+a}}},b.prototype.closePath=function(){var e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this},b.prototype.setMatrix=function(e){return this._matrix=e,this},b.prototype.beginHole=function(){return this.finishPoly(),this._holeMode=!0,this},b.prototype.endHole=function(){return this.finishPoly(),this._holeMode=!1,this},b.prototype.destroy=function(e){this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,nu.prototype.destroy.call(this,e)},b.nextRoundedRectBehavior=!1,b._TEMP_POINT=new ee,b);function b(e){void 0===e&&(e=null);var t=nu.call(this)||this;return t.shader=null,t.pluginName="batch",t.currentPath=null,t.batches=[],t.batchTint=-1,t.batchDirty=-1,t.vertexData=null,t._fillStyle=new Sl,t._lineStyle=new ru,t._matrix=null,t._holeMode=!1,t.state=so.for2d(),t._geometry=e||new eu,t._geometry.refCount++,t._transformID=-1,t.tint=16777215,t.blendMode=$.BLEND_MODES.NORMAL,t}var lu={buildPoly:Rl,buildCircle:Cl,buildRectangle:Ml,buildRoundedRectangle:Ll,buildLine:zl,ArcUtils:Bl,BezierUtils:Ul,QuadraticUtils:Xl,BatchPart:Yl,FILL_COMMANDS:ql,BATCH_POOL:Vl,DRAW_CALL_POOL:Kl},uu=function(e,t){return(uu=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)};var hu,cu,fu=new ee,pu=new Uint16Array([0,1,2,0,2,3]),du=(uu(cu=_u,Ml=hu=zr),cu.prototype=null===Ml?Object.create(Ml):(mu.prototype=Ml.prototype,new mu),_u.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Ot(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Ot(this.scale.y)*this._height/this._texture.orig.height)},_u.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},_u.prototype.calculateVertices=function(){var e=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==e._updateID){this._textureID!==e._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=e._updateID;var t=this.transform.worldTransform,r=t.a,i=t.b,n=t.c,o=t.d,a=t.tx,t=t.ty,s=this.vertexData,l=e.trim,e=e.orig,u=this._anchor,h=0,c=0,f=0,p=0,f=l?(h=(c=l.x-u._x*e.width)+l.width,(p=l.y-u._y*e.height)+l.height):(h=(c=-u._x*e.width)+e.width,(p=-u._y*e.height)+e.height);if(s[0]=r*c+n*p+a,s[1]=o*p+i*c+t,s[2]=r*h+n*p+a,s[3]=o*p+i*h+t,s[4]=r*h+n*f+a,s[5]=o*f+i*h+t,s[6]=r*c+n*f+a,s[7]=o*f+i*c+t,this._roundPixels)for(var d=R.RESOLUTION,m=0;m<s.length;++m)s[m]=Math.round((s[m]*d|0)/d)}},_u.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,e=e.orig,r=this._anchor,i=this.transform.worldTransform,n=i.a,o=i.b,a=i.c,s=i.d,l=i.tx,i=i.ty,u=-r._x*e.width,h=u+e.width,r=-r._y*e.height,e=r+e.height;t[0]=n*u+a*r+l,t[1]=s*r+o*u+i,t[2]=n*h+a*r+l,t[3]=s*r+o*h+i,t[4]=n*h+a*e+l,t[5]=s*e+o*h+i,t[6]=n*u+a*e+l,t[7]=s*e+o*u+i},_u.prototype._render=function(e){this.calculateVertices(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},_u.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))},_u.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._localBounds||(this._localBounds=new kr),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new w),e=this._localBoundsRect),this._localBounds.getRectangle(e)):hu.prototype.getLocalBounds.call(this,e)},_u.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,fu);var e=this._texture.orig.width,t=this._texture.orig.height,r=-e*this.anchor.x;return fu.x>=r&&fu.x<r+e&&(r=-t*this.anchor.y,fu.y>=r&&fu.y<r+t)},_u.prototype.destroy=function(e){hu.prototype.destroy.call(this,e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,("boolean"==typeof e?e:e&&e.texture)&&(e="boolean"==typeof e?e:e&&e.baseTexture,this._texture.destroy(!!e)),this._texture=null},_u.from=function(e,t){return new _u(e instanceof te?e:te.from(e,t))},Object.defineProperty(_u.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){var t=Ot(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){var t=Ot(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"anchor",{get:function(){return this._anchor},set:function(e){this._anchor.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||te.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),_u);function mu(){this.constructor=cu}function _u(e){var t=hu.call(this)||this;return t._anchor=new nr(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=$.BLEND_MODES.NORMAL,t._cachedTint=16777215,t.uvs=null,t.texture=e||te.EMPTY,t.vertexData=new Float32Array(8),t.vertexTrimmedData=null,t._transformID=-1,t._textureID=-1,t._transformTrimmedID=-1,t._textureTrimmedID=-1,t.indices=pu,t.pluginName="batch",t.isSprite=!0,t._roundPixels=R.ROUND_PIXELS,t}var gu=function(e,t){return(gu=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)};$.TEXT_GRADIENT=void 0,(Ll=$.TEXT_GRADIENT||($.TEXT_GRADIENT={}))[Ll.LINEAR_VERTICAL=0]="LINEAR_VERTICAL";var vu={align:"left",breakWords:!(Ll[Ll.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"),dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:$.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},yu=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],bu=(x.prototype.clone=function(){var e={};return wu(e,this,vu),new x(e)},x.prototype.reset=function(){wu(this,vu,vu)},Object.defineProperty(x.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"breakWords",{get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(e){e=Tu(e);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fill",{get:function(){return this._fill},set:function(e){e=Tu(e);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(e){!function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return;if(e.length!==t.length)return;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return;return 1}(this._fillGradientStops,e)&&(this._fillGradientStops=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"leading",{get:function(){return this._leading},set:function(e){this._leading!==e&&(this._leading=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"stroke",{get:function(){return this._stroke},set:function(e){e=Tu(e);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"trim",{get:function(){return this._trim},set:function(e){this._trim!==e&&(this._trim=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)},enumerable:!1,configurable:!0}),x.prototype.toFontString=function(){for(var e="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,t=this.fontFamily,r=(t=Array.isArray(this.fontFamily)?t:this.fontFamily.split(",")).length-1;0<=r;r--){var i=t[r].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&yu.indexOf(i)<0&&(i='"'+i+'"'),t[r]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},x);function x(e){this.styleID=0,this.reset(),wu(this,e,e)}function xu(e){return"number"==typeof e?dt(e):"string"==typeof e&&0===e.indexOf("0x")?e.replace("0x","#"):e}function Tu(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=xu(e[t]);return e}return xu(e)}function wu(e,t,r){for(var i in r)Array.isArray(t[i])?e[i]=t[i].slice():e[i]=t[i]}S.measureText=function(e,t,r,i){void 0===i&&(i=S._canvas),r=null==r?t.wordWrap:r;var n=t.toFontString(),o=S.measureFont(n),a=(0===o.fontSize&&(o.fontSize=t.fontSize,o.ascent=t.fontSize),i.getContext("2d"));a.font=n;for(var s=(r?S.wordWrap(e,t,i):e).split(/(?:\r\n|\r|\n)/),l=new Array(s.length),u=0,h=0;h<s.length;h++){var c=a.measureText(s[h]).width+(s[h].length-1)*t.letterSpacing;l[h]=c,u=Math.max(u,c)}n=u+t.strokeThickness,t.dropShadow&&(n+=t.dropShadowDistance),r=t.lineHeight||o.fontSize+t.strokeThickness,i=Math.max(r,o.fontSize+t.strokeThickness)+(s.length-1)*(r+t.leading);return t.dropShadow&&(i+=t.dropShadowDistance),new S(e,t,n,i,s,l,r+t.leading,u,o)},S.wordWrap=function(e,t,r){for(var i=(r=void 0===r?S._canvas:r).getContext("2d"),n=0,o="",a="",s=Object.create(null),l=t.letterSpacing,r=t.whiteSpace,u=S.collapseSpaces(r),h=S.collapseNewlines(r),c=!u,f=t.wordWrapWidth+l,p=S.tokenize(e),d=0;d<p.length;d++){var m=p[d];if(S.isNewline(m)){if(!h){a+=S.addLine(o),c=!u,o="",n=0;continue}m=" "}if(u){var _=S.isBreakingSpace(m),g=S.isBreakingSpace(o[o.length-1]);if(_&&g)continue}_=S.getFromCache(m,l,s,i);if(f<_)if(""!==o&&(a+=S.addLine(o),o="",n=0),S.canBreakWords(m,t.breakWords))for(var v=S.wordWrapSplit(m),y=0;y<v.length;y++){for(var b=v[y],x=1;v[y+x];){var T=v[y+x],w=b[b.length-1];if(S.canBreakChars(w,T,m,y,t.breakWords))break;b+=T,x++}y+=b.length-1;var E=S.getFromCache(b,l,s,i);f<E+n&&(a+=S.addLine(o),c=!1,o="",n=0),o+=b,n+=E}else{0<o.length&&(a+=S.addLine(o),o="",n=0);g=d===p.length-1;a+=S.addLine(m,!g),c=!1,o="",n=0}else f<_+n&&(c=!1,a+=S.addLine(o),o="",n=0),(0<o.length||!S.isBreakingSpace(m)||c)&&(o+=m,n+=_)}return a+=S.addLine(o,!1)},S.addLine=function(e,t){return void 0===t&&(t=!0),e=S.trimRight(e),e=t?e+"\n":e},S.getFromCache=function(e,t,r,i){var n=r[e];return"number"!=typeof n&&(t=e.length*t,n=i.measureText(e).width+t,r[e]=n),n},S.collapseSpaces=function(e){return"normal"===e||"pre-line"===e},S.collapseNewlines=function(e){return"normal"===e},S.trimRight=function(e){if("string"!=typeof e)return"";for(var t=e.length-1;0<=t;t--){var r=e[t];if(!S.isBreakingSpace(r))break;e=e.slice(0,-1)}return e},S.isNewline=function(e){return"string"==typeof e&&0<=S._newlines.indexOf(e.charCodeAt(0))},S.isBreakingSpace=function(e,t){return"string"==typeof e&&0<=S._breakingSpaces.indexOf(e.charCodeAt(0))},S.tokenize=function(e){var t=[],r="";if("string"==typeof e){for(var i=0;i<e.length;i++){var n=e[i],o=e[i+1];S.isBreakingSpace(n,o)||S.isNewline(n)?(""!==r&&(t.push(r),r=""),t.push(n)):r+=n}""!==r&&t.push(r)}return t},S.canBreakWords=function(e,t){return t},S.canBreakChars=function(e,t,r,i,n){return!0},S.wordWrapSplit=function(e){return e.split("")},S.measureFont=function(e){if(S._fonts[e])return S._fonts[e];for(var t={ascent:0,descent:0,fontSize:0},r=S._canvas,i=S._context,n=(i.font=e,S.METRICS_STRING+S.BASELINE_SYMBOL),o=Math.ceil(i.measureText(n).width),a=Math.ceil(i.measureText(S.BASELINE_SYMBOL).width),s=Math.ceil(S.HEIGHT_MULTIPLIER*a),a=a*S.BASELINE_MULTIPLIER|0,l=(r.width=o,r.height=s,i.fillStyle="#f00",i.fillRect(0,0,o,s),i.font=e,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(n,0,a),i.getImageData(0,0,o,s).data),r=l.length,u=4*o,h=0,c=0,f=!1,h=0;h<a;++h){for(var p=0;p<u;p+=4)if(255!==l[c+p]){f=!0;break}if(f)break;c+=u}for(t.ascent=a-h,c=r-u,f=!1,h=s;a<h;--h){for(p=0;p<u;p+=4)if(255!==l[c+p]){f=!0;break}if(f)break;c-=u}return t.descent=h-a,t.fontSize=t.ascent+t.descent,S._fonts[e]=t},S.clearMetrics=function(e){(e=void 0===e?"":e)?delete S._fonts[e]:S._fonts={}},Object.defineProperty(S,"_canvas",{get:function(){if(!S.__canvas){var t=void 0;try{var e=new OffscreenCanvas(0,0),r=e.getContext("2d");if(r&&r.measureText)return S.__canvas=e;t=R.ADAPTER.createCanvas()}catch(e){t=R.ADAPTER.createCanvas()}t.width=t.height=10,S.__canvas=t}return S.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(S,"_context",{get:function(){return S.__context=S.__context?S.__context:S._canvas.getContext("2d")},enumerable:!1,configurable:!0});var Eu=S;function S(e,t,r,i,n,o,a,s,l){this.text=e,this.style=t,this.width=r,this.height=i,this.lines=n,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=s,this.fontProperties=l}Eu._fonts={},Eu.METRICS_STRING="|ÉqÅ",Eu.BASELINE_SYMBOL="M",Eu.BASELINE_MULTIPLIER=1.4,Eu.HEIGHT_MULTIPLIER=2,Eu._newlines=[10,13];var Su,Au,ku={texture:!0,children:!(Eu._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]),baseTexture:!0},Ou=(gu(Au=Ru,Ml=Su=du),Au.prototype=null===Ml?Object.create(Ml):(Pu.prototype=Ml.prototype,new Pu),Ru.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();for(var r,i,n=this.context,o=Eu.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),e=o.width,a=o.height,s=o.lines,l=o.lineHeight,u=o.lineWidths,h=o.maxLineWidth,c=o.fontProperties,f=(this.canvas.width=Math.ceil(Math.ceil(Math.max(1,e)+2*t.padding)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,a)+2*t.padding)*this._resolution),n.scale(this._resolution,this._resolution),n.clearRect(0,0,this.canvas.width,this.canvas.height),n.font=this._font,n.lineWidth=t.strokeThickness,n.textBaseline=t.textBaseline,n.lineJoin=t.lineJoin,n.miterLimit=t.miterLimit,t.dropShadow?2:1),p=0;p<f;++p){var d,m,_=t.dropShadow&&0===p,g=_?Math.ceil(Math.max(1,a)+2*t.padding):0,v=g*this._resolution,y=(_?(n.fillStyle="black",n.strokeStyle="black",_=pt("number"==typeof(_=t.dropShadowColor)?_:mt(_)),d=t.dropShadowBlur*this._resolution,m=t.dropShadowDistance*this._resolution,n.shadowColor="rgba("+255*_[0]+","+255*_[1]+","+255*_[2]+","+t.dropShadowAlpha+")",n.shadowBlur=d,n.shadowOffsetX=Math.cos(t.dropShadowAngle)*m,n.shadowOffsetY=Math.sin(t.dropShadowAngle)*m+v):(n.fillStyle=this._generateFillStyle(t,s,o),n.strokeStyle=t.stroke,n.shadowColor="black",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0),(l-c.fontSize)/2);(!Ru.nextLineHeightBehavior||l-c.fontSize<0)&&(y=0);for(var b=0;b<s.length;b++)r=t.strokeThickness/2,i=t.strokeThickness/2+b*l+c.ascent+y,"right"===t.align?r+=h-u[b]:"center"===t.align&&(r+=(h-u[b])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(s[b],r+t.padding,i+t.padding-g,!0),t.fill&&this.drawLetterSpacing(s[b],r+t.padding,i+t.padding-g)}this.updateTexture()}},Ru.prototype.drawLetterSpacing=function(e,t,r,i){void 0===i&&(i=!1);var n=this._style.letterSpacing,o=Ru.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(0===n||o)o&&(this.context.letterSpacing=n,this.context.textLetterSpacing=n),i?this.context.strokeText(e,t,r):this.context.fillText(e,t,r);else for(var a=t,s=Array.from?Array.from(e):e.split(""),l=this.context.measureText(e).width,u=0;u<s.length;++u){for(var h=s[u],c=(i?this.context.strokeText(h,a,r):this.context.fillText(h,a,r),""),f=u+1;f<s.length;++f)c+=s[f];a+=l-(h=this.context.measureText(c).width)+n,l=h}},Ru.prototype.updateTexture=function(){var e=this.canvas,t=(!this._style.trim||(t=zt(e)).data&&(e.width=t.width,e.height=t.height,this.context.putImageData(t.data,0,0)),this._texture),r=this._style,r=r.trim?0:r.padding,i=t.baseTexture;t.trim.width=t._frame.width=e.width/this._resolution,t.trim.height=t._frame.height=e.height/this._resolution,t.trim.x=-r,t.trim.y=-r,t.orig.width=t._frame.width-2*r,t.orig.height=t._frame.height-2*r,this._onTextureUpdate(),i.setRealSize(e.width,e.height,this._resolution),t.updateUvs(),this.dirty=!1},Ru.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),Su.prototype._render.call(this,e)},Ru.prototype.updateTransform=function(){this.updateText(!0),Su.prototype.updateTransform.call(this)},Ru.prototype.getBounds=function(e,t){return this.updateText(!0),-1===this._textureID&&(e=!1),Su.prototype.getBounds.call(this,e,t)},Ru.prototype.getLocalBounds=function(e){return this.updateText(!0),Su.prototype.getLocalBounds.call(this,e)},Ru.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)},Ru.prototype._generateFillStyle=function(e,t,r){var i=e.fill;if(!Array.isArray(i))return i;if(1===i.length)return i[0];var n=e.dropShadow?e.dropShadowDistance:0,o=e.padding||0,a=this.canvas.width/this._resolution-n-2*o,s=this.canvas.height/this._resolution-n-2*o,l=i.slice(),u=e.fillGradientStops.slice();if(!u.length)for(var h=l.length+1,c=1;c<h;++c)u.push(c/h);if(l.unshift(i[0]),u.unshift(0),l.push(i[i.length-1]),u.push(1),e.fillGradientType===$.TEXT_GRADIENT.LINEAR_VERTICAL)for(var f=this.context.createLinearGradient(a/2,o,a/2,s+o),p=r.fontProperties.fontSize+e.strokeThickness,c=0;c<t.length;c++)for(var d=r.lineHeight*(c-1)+p,m=r.lineHeight*c,_=m,g=m+p,v=r.lineHeight*(c+1),y=g,b=((y=c+1<t.length&&v<g?(g+v)/2:y)-(_=0<c&&m<d?(m+d)/2:_))/s,x=0;x<l.length;x++){var T=0,T="number"==typeof u[x]?u[x]:x/l.length,T=Math.min(1,Math.max(0,_/s+T*b)),T=Number(T.toFixed(5));f.addColorStop(T,l[x])}else{f=this.context.createLinearGradient(o,s/2,a+o,s/2);for(var w=l.length+1,E=1,c=0;c<l.length;c++){var S=void 0,S="number"==typeof u[c]?u[c]:E/w;f.addColorStop(S,l[c]),E++}}return f},Ru.prototype.destroy=function(e){"boolean"==typeof e&&(e={children:e}),e=Object.assign({},ku,e),Su.prototype.destroy.call(this,e),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(Ru.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){this.updateText(!0);var t=Ot(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){this.updateText(!0);var t=Ot(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"style",{get:function(){return this._style},set:function(e){(e=e||{})instanceof bu?this._style=e:this._style=new bu(e),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"text",{get:function(){return this._text},set:function(e){e=String(null==e?"":e),this._text!==e&&(this._text=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Ru.nextLineHeightBehavior=!1,Ru.experimentalLetterSpacing=!1,Ru);function Pu(){this.constructor=Au}function Ru(e,t,r){var i=this,n=!1,o=(r||(r=R.ADAPTER.createCanvas(),n=!0),r.width=3,r.height=3,te.from(r));return o.orig=new w,o.trim=new w,(i=Su.call(this,o)||this)._ownCanvas=n,i.canvas=r,i.context=r.getContext("2d"),i._resolution=R.RESOLUTION,i._autoResolution=!0,i._text=null,i._style=null,i._styleListener=null,i._font="",i.text=e,i.style=t,i.localStyleID=-1,i}R.UPLOADS_PER_FRAME=4;var Cu=function(e,t){return(Cu=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)};Iu.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},Iu.prototype.allowedToUpload=function(){return 0<this.itemsLeft--};var Mu=Iu;function Iu(e){this.maxItemsPerFrame=e,this.itemsLeft=0}function Du(e,t){var r=!1;if(e&&e._textures&&e._textures.length)for(var i,n=0;n<e._textures.length;n++)e._textures[n]instanceof te&&(i=e._textures[n].baseTexture,-1===t.indexOf(i)&&(t.push(i),r=!0));return r}function Lu(e,t){return e.baseTexture instanceof C&&(e=e.baseTexture,-1===t.indexOf(e)&&t.push(e),!0)}function Fu(e,t){return!!(e._texture&&e._texture instanceof te)&&(e=e._texture.baseTexture,-1===t.indexOf(e)&&t.push(e),!0)}function Nu(e,t){return t instanceof Ou&&(t.updateText(!0),!0)}function zu(e,t){return t instanceof bu&&(t=t.toFontString(),Eu.measureFont(t),!0)}function Bu(e,t){return e instanceof Ou&&(-1===t.indexOf(e.style)&&t.push(e.style),-1===t.indexOf(e)&&t.push(e),e=e._texture.baseTexture,-1===t.indexOf(e)&&t.push(e),!0)}function ju(e,t){return e instanceof bu&&(-1===t.indexOf(e)&&t.push(e),!0)}Uu.prototype.upload=function(r,i){var n=this;return"function"==typeof r&&(i=r,r=null),i&&Mt("6.5.0","BasePrepare.upload callback is deprecated, use the return Promise instead."),new Promise(function(e){r&&n.add(r);function t(){null!=i&&i(),e()}n.queue.length?(n.completes.push(t),n.ticking||(n.ticking=!0,Wr.system.addOnce(n.tick,n,$.UPDATE_PRIORITY.UTILITY))):t()})},Uu.prototype.tick=function(){setTimeout(this.delayedTick,0)},Uu.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)Wr.system.addOnce(this.tick,this,$.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;for(var n=this.completes.slice(0),r=this.completes.length=0,i=n.length;r<i;r++)n[r]()}},Uu.prototype.registerFindHook=function(e){return e&&this.addHooks.push(e),this},Uu.prototype.registerUploadHook=function(e){return e&&this.uploadHooks.push(e),this},Uu.prototype.add=function(e){for(var t=0,r=this.addHooks.length;t<r&&!this.addHooks[t](e,this.queue);t++);if(e instanceof zr)for(t=e.children.length-1;0<=t;t--)this.add(e.children[t]);return this},Uu.prototype.destroy=function(){this.ticking&&Wr.system.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};Ll=Uu;function Uu(e){var t=this;this.limiter=new Mu(R.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(Bu),this.registerFindHook(ju),this.registerFindHook(Du),this.registerFindHook(Lu),this.registerFindHook(Fu),this.registerUploadHook(Nu),this.registerUploadHook(zu)}function Gu(e,t){return t instanceof C&&(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0)}function Xu(e,t){if(!(t instanceof su))return!1;for(var r=t.geometry,i=(t.finishPoly(),r.updateBatches(),r.batches),n=0;n<i.length;n++){var o=i[n].style.texture;o&&Gu(e,o.baseTexture)}return r.batchable||e.geometry.bind(r,t._resolveDirectShader(e)),!0}function Hu(e,t){return e instanceof su&&(t.push(e),!0)}Cu(Wu=Vu,Ml=Yu=Ll),Wu.prototype=null===Ml?Object.create(Ml):(qu.prototype=Ml.prototype,new qu),Vu.extension={name:"prepare",type:$.ExtensionType.RendererPlugin};var Yu,Wu,Ml=Vu;function qu(){this.constructor=Wu}function Vu(e){e=Yu.call(this,e)||this;return e.uploadHookHelper=e.renderer,e.registerFindHook(Hu),e.registerUploadHook(Gu),e.registerUploadHook(Xu),e}Ju.prototype.beginFrame=function(){this.frameStart=Date.now()},Ju.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds};var Ku=Ju;function Ju(e){this.maxMilliseconds=e,this.frameStart=0}Qu.prototype._updateResolution=function(e){var t=this.data.meta.scale,e=Gt(e=void 0===e?null:e,null);return 1!==(e=null===e?void 0!==t?parseFloat(t):1:e)&&this.baseTexture.setResolution(e),e},Qu.prototype.parse=function(r){var e=this;return r&&Mt("6.5.0","Spritesheet.parse callback is deprecated, use the return Promise instead."),new Promise(function(t){e._callback=function(e){null!=r&&r(e),t(e)},e._batchIndex=0,e._frameKeys.length<=Qu.BATCH_SIZE?(e._processFrames(0),e._processAnimations(),e._parseComplete()):e._nextBatch()})},Qu.prototype._processFrames=function(e){for(var t=e,r=Qu.BATCH_SIZE;t-e<r&&t<this._frameKeys.length;){var i,n,o,a=this._frameKeys[t],s=this._frames[a],l=s.frame;l&&(i=o=null,n=!1!==s.trimmed&&s.sourceSize?s.sourceSize:s.frame,n=new w(0,0,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution),o=s.rotated?new w(Math.floor(l.x)/this.resolution,Math.floor(l.y)/this.resolution,Math.floor(l.h)/this.resolution,Math.floor(l.w)/this.resolution):new w(Math.floor(l.x)/this.resolution,Math.floor(l.y)/this.resolution,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution),!1!==s.trimmed&&s.spriteSourceSize&&(i=new w(Math.floor(s.spriteSourceSize.x)/this.resolution,Math.floor(s.spriteSourceSize.y)/this.resolution,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution)),this.textures[a]=new te(this.baseTexture,o,n,i,s.rotated?2:0,s.anchor),te.addToCache(this.textures[a],a)),t++}},Qu.prototype._processAnimations=function(){var e,t=this.data.animations||{};for(e in t){this.animations[e]=[];for(var r=0;r<t[e].length;r++){var i=t[e][r];this.animations[e].push(this.textures[i])}}},Qu.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},Qu.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*Qu.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*Qu.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())},0)},Qu.prototype.destroy=function(e){for(var t in void 0===e&&(e=!1),this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&(null!=(e=this._texture)&&e.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]},Qu.BATCH_SIZE=1e3;var Zu=Qu;function Qu(e,t,r){void 0===r&&(r=null),this.linkedSheets=[],this._texture=e instanceof te?e:null,this.baseTexture=e instanceof C?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;e=this.baseTexture.resource;this.resolution=this._updateResolution(r||(e?e.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}eh.use=function(i,r){var n=this,e=i.name+"_image";if(i.data&&i.type===$.LoaderResource.TYPE.JSON&&i.data.frames&&!n.resources[e]){var t=null==(t=null==(t=i.data)?void 0:t.meta)?void 0:t.related_multi_packs;if(Array.isArray(t))for(var o=0,a=t;o<a.length;o++)!function(e){var t,r;"string"!=typeof e||(t=e.replace(".json",""),r=nt.resolve(i.url.replace(n.baseUrl,""),e),n.resources[t]||Object.values(n.resources).some(function(e){return nt.format(nt.parse(e.url))===r}))||(e={crossOrigin:i.crossOrigin,loadType:$.LoaderResource.LOAD_TYPE.XHR,xhrType:$.LoaderResource.XHR_RESPONSE_TYPE.JSON,parentResource:i,metadata:i.metadata},n.add(t,r,e))}(a[o]);var t={crossOrigin:i.crossOrigin,metadata:i.metadata.imageMetadata,parentResource:i},s=eh.getResourcePath(i,n.baseUrl);n.add(e,s,t,function(e){var t;e.error?r(e.error):(t=new Zu(e.texture,i.data,i.url)).parse().then(function(){i.spritesheet=t,i.textures=t.textures,r()})})}else r()},eh.getResourcePath=function(e,t){return e.isDataUrl?e.data.meta.image:nt.resolve(e.url.replace(t,""),e.data.meta.image)},eh.extension=$.ExtensionType.Loader;var $u=eh;function eh(){}var th=function(e,t){return(th=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 rh(e,t){function r(){this.constructor=e}th(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ih,nh=new ee,oh=(rh(ah,ih=du),Object.defineProperty(ah.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(e){this.uvMatrix.clampMargin=e,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(ah.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(e){this.tileTransform.scale.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(ah.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(e){this.tileTransform.position.copyFrom(e)},enumerable:!1,configurable:!0}),ah.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},ah.prototype._render=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},ah.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)},ah.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),e=this._localBoundsRect),this._bounds.getRectangle(e)):ih.prototype.getLocalBounds.call(this,e)},ah.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,nh);var e=this._width,t=this._height,r=-e*this.anchor._x;if(nh.x>=r&&nh.x<r+e){r=-t*this.anchor._y;if(nh.y>=r&&nh.y<r+t)return!0}return!1},ah.prototype.destroy=function(e){ih.prototype.destroy.call(this,e),this.tileTransform=null,this.uvMatrix=null},ah.from=function(e,t){return new ah(e instanceof te?e:te.from(e,t),t.width,t.height)},Object.defineProperty(ah.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(ah.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),ah);function ah(e,t,r){void 0===t&&(t=100),void 0===r&&(r=100);var i=ih.call(this,e)||this;return i.tileTransform=new Sr,i._width=t,i._height=r,i.uvMatrix=i.texture.uvMatrix||new fo(e),i.pluginName="tilingSprite",i.uvRespectAnchor=!1,i}var sh,lh="#version 100\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\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 = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n",uh=new ar,hh=(rh(ch,sh=yn),ch.prototype.contextChange=function(){var e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=oo.from(lh,"#version 100\n#define SHADER_NAME Tiling-Sprite-Simple-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 texSample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = texSample * uColor;\n}\n",t),this.shader=1<e.context.webGLVersion?oo.from("#version 300 es\n#define SHADER_NAME Tiling-Sprite-300\n\nprecision lowp float;\n\nin vec2 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nout 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","#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n fragmentColor = texSample * uColor;\n}\n",t):oo.from(lh,"#version 100\n#ifdef GL_EXT_shader_texture_lod\n #extension GL_EXT_shader_texture_lod : enable\n#endif\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nvarying 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 = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n #ifdef GL_EXT_shader_texture_lod\n vec4 texSample = unclamped == coord\n ? texture2D(uSampler, coord) \n : texture2DLodEXT(uSampler, coord, 0);\n #else\n vec4 texSample = texture2D(uSampler, coord);\n #endif\n\n gl_FragColor = texSample * uColor;\n}\n",t)},ch.prototype.render=function(e){var t=this.renderer,r=this.quad,i=r.vertices,n=(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?e.anchor.x:0),o=e.uvRespectAnchor?e.anchor.y:0,n=((i=r.uvs)[0]=i[6]=-n,i[1]=i[3]=-o,i[2]=i[4]=1-n,i[5]=i[7]=1-o,r.invalidate(),e._texture),i=n.baseTexture,o=0<i.alphaMode,a=e.tileTransform.localTransform,s=e.uvMatrix,l=i.isPowerOfTwo&&n.frame.width===i.width&&n.frame.height===i.height,i=(l&&(i._glTextures[t.CONTEXT_UID]?l=i.wrapMode!==$.WRAP_MODES.CLAMP:i.wrapMode===$.WRAP_MODES.CLAMP&&(i.wrapMode=$.WRAP_MODES.REPEAT)),l?this.simpleShader:this.shader),u=n.width,h=n.height,c=e._width,f=e._height;uh.set(a.a*u/c,a.b*u/f,a.c*h/c,a.d*h/f,a.tx/c,a.ty/f),uh.invert(),l?uh.prepend(s.mapCoord):(i.uniforms.uMapCoord=s.mapCoord.toArray(!0),i.uniforms.uClampFrame=s.uClampFrame,i.uniforms.uClampOffset=s.uClampOffset),i.uniforms.uTransform=uh.toArray(!0),i.uniforms.uColor=bt(e.tint,e.worldAlpha,i.uniforms.uColor,o),i.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),i.uniforms.uSampler=n,t.shader.bind(i),t.geometry.bind(r),this.state.blendMode=gt(e.blendMode,o),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},ch.extension={name:"tilingSprite",type:$.ExtensionType.RendererPlugin},ch);function ch(e){var t=sh.call(this,e)||this;return e.runners.contextChange.add(t),t.quad=new ln,t.state=so.for2d(),t}var fh=function(e,t){return(fh=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 ph(e,t){function r(){this.constructor=e}fh(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}mh.prototype.update=function(e){!e&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID||(this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID,e=this.uvBuffer.data,this.data&&this.data.length===e.length||(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++)};var dh=mh;function mh(e,t){this.uvBuffer=e,this.uvMatrix=t,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}var _h,gh=new ee,vh=new er,yh=(ph(bh,_h=zr),Object.defineProperty(bh.prototype,"geometry",{get:function(){return this._geometry},set:function(e){this._geometry!==e&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=e,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"material",{get:function(){return this.shader},set:function(e){this.shader=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(e){this.shader.tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(e){this.shader.texture=e},enumerable:!1,configurable:!0}),bh.prototype._render=function(e){var t=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===$.DRAW_MODES.TRIANGLES&&t.length<2*bh.BATCHABLE_SIZE?this._renderToBatch(e):this._renderDefault(e)},bh.prototype._renderDefault=function(e){var t=this.shader;t.alpha=this.worldAlpha,t.update&&t.update(),e.batch.flush(),t.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),e.shader.bind(t),e.state.set(this.state),e.geometry.bind(this.geometry,t),e.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},bh.prototype._renderToBatch=function(e){var t=this.geometry,r=this.shader,t=(r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=t.indexBuffer.data,this._tintRGB=r._tintRGB,this._texture=r.texture,this.material.pluginName);e.batch.setObjectRenderer(e.plugins[t]),e.plugins[t].render(this)},bh.prototype.calculateVertices=function(){var e=this.geometry.buffers[0],t=e.data,e=e._updateID;if(e!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==t.length&&(this.vertexData=new Float32Array(t.length));for(var r=this.transform.worldTransform,i=r.a,n=r.b,o=r.c,a=r.d,s=r.tx,l=r.ty,u=this.vertexData,h=0;h<u.length/2;h++){var c=t[2*h],f=t[2*h+1];u[2*h]=i*c+o*f+s,u[2*h+1]=n*c+a*f+l}if(this._roundPixels)for(var p=R.RESOLUTION,h=0;h<u.length;++h)u[h]=Math.round((u[h]*p|0)/p);this.vertexDirty=e}},bh.prototype.calculateUvs=function(){var e=this.geometry.buffers[1],t=this.shader;t.uvMatrix.isSimple?this.uvs=e.data:(this.batchUvs||(this.batchUvs=new dh(e,t.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)},bh.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)},bh.prototype.containsPoint=function(e){if(this.getBounds().contains(e.x,e.y)){this.worldTransform.applyInverse(e,gh);for(var t=this.geometry.getBuffer("aVertexPosition").data,r=vh.points,i=this.geometry.getIndex().data,n=i.length,o=4===this.drawMode?3:1,a=0;a+2<n;a+=o){var s=2*i[a],l=2*i[a+1],u=2*i[a+2];if(r[0]=t[s],r[1]=t[1+s],r[2]=t[l],r[3]=t[1+l],r[4]=t[u],r[5]=t[1+u],vh.contains(gh.x,gh.y))return!0}}return!1},bh.prototype.destroy=function(e){_h.prototype.destroy.call(this,e),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null},bh.BATCHABLE_SIZE=100,bh);function bh(e,t,r,i){void 0===i&&(i=$.DRAW_MODES.TRIANGLES);var n=_h.call(this)||this;return n.geometry=e,n.shader=t,n.state=r||so.for2d(),n.drawMode=i,n.start=0,n.size=0,n.uvs=null,n.indices=null,n.vertexData=new Float32Array(1),n.vertexDirty=-1,n._transformID=-1,n._roundPixels=R.ROUND_PIXELS,n.batchUvs=null,n}ph(wh,xh=oo),Object.defineProperty(wh.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)},enumerable:!1,configurable:!0}),Object.defineProperty(wh.prototype,"alpha",{get:function(){return this._alpha},set:function(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(wh.prototype,"tint",{get:function(){return this._tint},set:function(e){e!==this._tint&&(this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),wh.prototype.update=function(){var e;this._colorDirty&&(this._colorDirty=!1,e=this.texture.baseTexture,bt(this._tint,this._alpha,this.uniforms.uColor,e.alphaMode)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)};var xh,Th=wh;function wh(e,t){var r=this,i={uSampler:e,alpha:1,uTextureMatrix:ar.IDENTITY,uColor:new Float32Array([1,1,1,1])};return(t=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},t)).uniforms&&Object.assign(i,t.uniforms),(r=xh.call(this,t.program||io.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\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 = (uTextureMatrix * 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)||this)._colorDirty=!1,r.uvMatrix=new fo(e),r.batchable=void 0===t.program,r.pluginName=t.pluginName,r.tint=t.tint,r.alpha=t.alpha,r}ph(Ah,Eh=tn),Object.defineProperty(Ah.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0});var Eh,Sh=Ah;function Ah(e,t,r){var i=Eh.call(this)||this,e=new Ki(e),t=new Ki(t,!0),r=new Ki(r,!0,!0);return i.addAttribute("aVertexPosition",e,2,!1,$.TYPES.FLOAT).addAttribute("aTextureCoord",t,2,!1,$.TYPES.FLOAT).addIndex(r),i._updateId=-1,i}var kh=function(e,t){return(kh=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)};var Oh=function(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]},Ph=(Rh.test=function(e){return"string"==typeof e&&0===e.indexOf("info face=")},Rh.parse=function(e){var t,r=e.match(/^[a-z]+\s+.+$/gm),i={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(t in r){var n,o=r[t].match(/^[a-z]+/gm)[0],a=r[t].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(n in a){var l=a[n].split("="),u=l[0],l=l[1].replace(/"/gm,""),h=parseFloat(l),l=isNaN(h)?l:h;s[u]=l}i[o].push(s)}var c=new Oh;return i.info.forEach(function(e){return c.info.push({face:e.face,size:parseInt(e.size,10)})}),i.common.forEach(function(e){return c.common.push({lineHeight:parseInt(e.lineHeight,10)})}),i.page.forEach(function(e){return c.page.push({id:parseInt(e.id,10),file:e.file})}),i.char.forEach(function(e){return c.char.push({id:parseInt(e.id,10),page:parseInt(e.page,10),x:parseInt(e.x,10),y:parseInt(e.y,10),width:parseInt(e.width,10),height:parseInt(e.height,10),xoffset:parseInt(e.xoffset,10),yoffset:parseInt(e.yoffset,10),xadvance:parseInt(e.xadvance,10)})}),i.kerning.forEach(function(e){return c.kerning.push({first:parseInt(e.first,10),second:parseInt(e.second,10),amount:parseInt(e.amount,10)})}),i.distanceField.forEach(function(e){return c.distanceField.push({distanceRange:parseInt(e.distanceRange,10),fieldType:e.fieldType})}),c},Rh);function Rh(){}Mh.test=function(e){return e instanceof XMLDocument&&e.getElementsByTagName("page").length&&null!==e.getElementsByTagName("info")[0].getAttribute("face")},Mh.parse=function(e){for(var t=new Oh,r=e.getElementsByTagName("info"),i=e.getElementsByTagName("common"),n=e.getElementsByTagName("page"),o=e.getElementsByTagName("char"),a=e.getElementsByTagName("kerning"),s=e.getElementsByTagName("distanceField"),l=0;l<r.length;l++)t.info.push({face:r[l].getAttribute("face"),size:parseInt(r[l].getAttribute("size"),10)});for(l=0;l<i.length;l++)t.common.push({lineHeight:parseInt(i[l].getAttribute("lineHeight"),10)});for(l=0;l<n.length;l++)t.page.push({id:parseInt(n[l].getAttribute("id"),10)||0,file:n[l].getAttribute("file")});for(l=0;l<o.length;l++){var u=o[l];t.char.push({id:parseInt(u.getAttribute("id"),10),page:parseInt(u.getAttribute("page"),10)||0,x:parseInt(u.getAttribute("x"),10),y:parseInt(u.getAttribute("y"),10),width:parseInt(u.getAttribute("width"),10),height:parseInt(u.getAttribute("height"),10),xoffset:parseInt(u.getAttribute("xoffset"),10),yoffset:parseInt(u.getAttribute("yoffset"),10),xadvance:parseInt(u.getAttribute("xadvance"),10)})}for(l=0;l<a.length;l++)t.kerning.push({first:parseInt(a[l].getAttribute("first"),10),second:parseInt(a[l].getAttribute("second"),10),amount:parseInt(a[l].getAttribute("amount"),10)});for(l=0;l<s.length;l++)t.distanceField.push({fieldType:s[l].getAttribute("fieldType"),distanceRange:parseInt(s[l].getAttribute("distanceRange"),10)});return t};var Ch=Mh;function Mh(){}Dh.test=function(e){return"string"==typeof e&&-1<e.indexOf("<font>")&&(e=(new globalThis.DOMParser).parseFromString(e,"text/xml"),Ch.test(e))},Dh.parse=function(e){e=(new globalThis.DOMParser).parseFromString(e,"text/xml");return Ch.parse(e)};var Ih=Dh;function Dh(){}var Lh=[Ph,Ch,Ih];function Fh(e){for(var t=0;t<Lh.length;t++)if(Lh[t].test(e))return Lh[t];return null}function Nh(e,t,r,i,n,o,a){var s,l=r.text,u=r.fontProperties,i=(t.translate(i,n),t.scale(o,o),a.strokeThickness/2),n=-a.strokeThickness/2;t.font=a.toFontString(),t.lineWidth=a.strokeThickness,t.textBaseline=a.textBaseline,t.lineJoin=a.lineJoin,t.miterLimit=a.miterLimit,t.fillStyle=function(e,t,r,i,n,o){var a=r.fill;if(!Array.isArray(a))return a;if(1===a.length)return a[0];var s=r.dropShadow?r.dropShadowDistance:0,l=r.padding||0,u=e.width/i-s-2*l,h=e.height/i-s-2*l,c=a.slice(),f=r.fillGradientStops.slice();if(!f.length)for(var p=c.length+1,d=1;d<p;++d)f.push(d/p);if(c.unshift(a[0]),f.unshift(0),c.push(a[a.length-1]),f.push(1),r.fillGradientType===$.TEXT_GRADIENT.LINEAR_VERTICAL)for(var m=t.createLinearGradient(u/2,l,u/2,h+l),_=0,g=(o.fontProperties.fontSize+r.strokeThickness)/h,d=0;d<n.length;d++)for(var v=o.lineHeight*d,y=0;y<c.length;y++){var b=0,b="number"==typeof f[y]?f[y]:y/c.length,b=Math.max(_,v/h+b*g),b=Math.min(b,1);m.addColorStop(b,c[y]),_=b}else{m=t.createLinearGradient(l,h/2,u+l,h/2);for(var x=c.length+1,T=1,d=0;d<c.length;d++){var w=void 0,w="number"==typeof f[d]?f[d]:T/x;m.addColorStop(w,c[d]),T++}}return m}(e,t,a,o,[l],r),t.strokeStyle=a.stroke,a.dropShadow?(e=pt("number"==typeof(e=a.dropShadowColor)?e:mt(e)),s=a.dropShadowBlur*o,o=a.dropShadowDistance*o,t.shadowColor="rgba("+255*e[0]+","+255*e[1]+","+255*e[2]+","+a.dropShadowAlpha+")",t.shadowBlur=s,t.shadowOffsetX=Math.cos(a.dropShadowAngle)*o,t.shadowOffsetY=Math.sin(a.dropShadowAngle)*o):(t.shadowColor="black",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0),a.stroke&&a.strokeThickness&&t.strokeText(l,i,n+r.lineHeight-u.descent),a.fill&&t.fillText(l,i,n+r.lineHeight-u.descent),t.setTransform(1,0,0,1,0,0),t.fillStyle="rgba(0, 0, 0, 0)"}function zh(e){return Array.from?Array.from(e):e.split("")}function Bh(e){return e.codePointAt?e.codePointAt(0):e.charCodeAt(0)}Uh.prototype.destroy=function(){for(var e in this.chars)this.chars[e].texture.destroy(),this.chars[e].texture=null;for(var e in this.pageTextures)this._ownsTextures&&this.pageTextures[e].destroy(!0),this.pageTextures[e]=null;this.chars=null,this.pageTextures=null},Uh.install=function(e,t,r){var i;if(e instanceof Oh)i=e;else{var n=Fh(e);if(!n)throw new Error("Unrecognized data format for font.");i=n.parse(e)}n=new Uh(i,t=t instanceof te?[t]:t,r);return Uh.available[n.font]=n},Uh.uninstall=function(e){var t=Uh.available[e];if(!t)throw new Error("No font found named '"+e+"'");t.destroy(),delete Uh.available[e]},Uh.from=function(e,t,r){if(!e)throw new Error("[BitmapFont] Property `name` is required.");for(var i,n,o,r=Object.assign({},Uh.defaultOptions,r),a=r.chars,s=r.padding,l=r.resolution,u=r.textureWidth,h=r.textureHeight,c=function(e){for(var t=[],r=0,i=(e="string"==typeof e?[e]:e).length;r<i;r++){var n=e[r];if(Array.isArray(n)){if(2!==n.length)throw new Error("[BitmapFont]: Invalid character range length, expecting 2 got "+n.length+".");var o=n[0].charCodeAt(0),a=n[1].charCodeAt(0);if(a<o)throw new Error("[BitmapFont]: Invalid character range.");for(var s=o,l=a;s<=l;s++)t.push(String.fromCharCode(s))}else t.push.apply(t,zh(n))}if(0===t.length)throw new Error("[BitmapFont]: Empty set when resolving characters.");return t}(a),f=t instanceof bu?t:new bu(t),p=u,d=new Oh,m=(d.info[0]={face:f.fontFamily,size:f.fontSize},d.common[0]={lineHeight:f.fontSize},0),_=0,g=0,v=[],y=0;y<c.length;y++){i||((i=R.ADAPTER.createCanvas()).width=u,i.height=h,n=i.getContext("2d"),o=new C(i,{resolution:l}),v.push(new te(o)),d.page.push({id:v.length-1,file:""}));var b=Eu.measureText(c[y],f,!1,i),x=b.width,T=Math.ceil(b.height),w=Math.ceil(("italic"===f.fontStyle?2:1)*x);if(h-T*l<=_){if(0===_)throw new Error("[BitmapFont] textureHeight "+h+"px is too small for "+f.fontSize+"px fonts");--y,o=n=i=null,g=m=_=0}else{g=Math.max(T+b.fontProperties.descent,g);p<=w*l+m?(--y,_+=g*l,_=Math.ceil(_),g=m=0):(Nh(i,n,b,m,_,l,f),b=Bh(b.text),d.char.push({id:b,page:v.length-1,x:m/l,y:_/l,width:w,height:T,xoffset:0,yoffset:0,xadvance:Math.ceil(x-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),m+=(w+2*s)*l,m=Math.ceil(m))}}for(var y=0,E=c.length;y<E;y++)for(var S=c[y],A=0;A<E;A++){var k=c[A],O=n.measureText(S).width,P=n.measureText(k).width,O=n.measureText(S+k).width-(O+P);O&&d.kerning.push({first:Bh(S),second:Bh(k),amount:O})}r=new Uh(d,v,!0);return void 0!==Uh.available[e]&&Uh.uninstall(e),Uh.available[e]=r},Uh.ALPHA=[["a","z"],["A","Z"]," "],Uh.NUMERIC=[["0","9"]],Uh.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],Uh.ASCII=[[" ","~"]],Uh.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:Uh.ALPHANUMERIC},Uh.available={};var jh=Uh;function Uh(e,t,r){var i=e.info[0],n=e.common[0],o=e.page[0],a=e.distanceField[0],s=Gt(o.file),l={};this._ownsTextures=r,this.font=i.face,this.size=i.size,this.lineHeight=n.lineHeight/s,this.chars={},this.pageTextures=l;for(var u=0;u<e.page.length;u++){var h=e.page[u],c=h.id,h=h.file;l[c]=t instanceof Array?t[u]:t[h],null!=a&&a.fieldType&&"none"!==a.fieldType&&(l[c].baseTexture.alphaMode=$.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA,l[c].baseTexture.mipmap=$.MIPMAP_MODES.OFF)}for(u=0;u<e.char.length;u++){var f=e.char[u],c=f.id,f=f.page,p=e.char[u],d=p.x,m=p.y,_=p.width,g=p.height,v=p.xoffset,y=p.yoffset,p=p.xadvance,d=(m/=s,_/=s,g/=s,v/=s,y/=s,p/=s,new w((d/=s)+l[f].frame.x/s,m+l[f].frame.y/s,_,g));this.chars[c]={xOffset:v,yOffset:y,xAdvance:p,kerning:{},texture:new te(l[f].baseTexture,d),page:f}}for(u=0;u<e.kerning.length;u++){var b=e.kerning[u],x=b.first,T=b.second,b=b.amount;x/=s,T/=s,b/=s,this.chars[T]&&(this.chars[T].kerning[x]=b)}this.distanceFieldRange=null==a?void 0:a.distanceRange,this.distanceFieldType=null!=(r=null==(o=null==a?void 0:a.fieldType)?void 0:o.toLowerCase())?r:"none"}var Gh,Xh,Hh=[],Yh=[],Wh=[],qh=(kh(Xh=Kh,qh=Gh=zr),Xh.prototype=null===qh?Object.create(qh):(Vh.prototype=qh.prototype,new Vh),Kh.prototype.updateText=function(){for(var e=jh.available[this._fontName],t=this._fontSize/e.size,r=new ee,i=[],n=[],o=[],a=zh(this._text.replace(/(?:\r\n|\r)/g,"\n")||" "),F=this._maxWidth*e.size/this._fontSize,N="none"===e.distanceFieldType?Hh:Yh,s=null,l=0,u=0,h=0,c=-1,f=0,z=0,B=0,p=0,d=0;d<a.length;d++){var m,_,j=Bh(S=a[d]);/(?:\s)/.test(S)&&(c=d,f=l,p++),"\r"===S||"\n"===S?(n.push(l),o.push(-1),u=Math.max(u,l),++h,++z,r.x=0,r.y+=e.lineHeight,s=null,p=0):(m=e.chars[j])&&(s&&m.kerning[s]&&(r.x+=m.kerning[s]),(_=Wh.pop()||{texture:te.EMPTY,line:0,charCode:0,prevSpaces:0,position:new ee}).texture=m.texture,_.line=h,_.charCode=j,_.position.x=r.x+m.xOffset+this._letterSpacing/2,_.position.y=r.y+m.yOffset,_.prevSpaces=p,i.push(_),l=_.position.x+Math.max(m.xAdvance-m.xOffset,m.texture.orig.width),r.x+=m.xAdvance+this._letterSpacing,B=Math.max(B,m.yOffset+m.texture.height),s=j,-1!==c&&0<F&&r.x>F&&(kt(i,1+c-++z,1+d-c),d=c,c=-1,n.push(f),o.push(0<i.length?i[i.length-1].prevSpaces:0),u=Math.max(u,f),h++,r.x=0,r.y+=e.lineHeight,s=null,p=0))}for(var U=a[a.length-1],G=("\r"!==U&&"\n"!==U&&(/(?:\s)/.test(U)&&(l=f),n.push(l),u=Math.max(u,l),o.push(-1)),[]),d=0;d<=h;d++){var g=0;"right"===this._align?g=u-n[d]:"center"===this._align?g=(u-n[d])/2:"justify"===this._align&&(g=o[d]<0?0:(u-n[d])/o[d]),G.push(g)}for(var X=i.length,v={},y=[],b=this._activePagesMeshData,d=0;d<b.length;d++)N.push(b[d]);for(d=0;d<X;d++){var H,x,T,w=(A=i[d].texture).baseTexture.uid;v[w]||((I=N.pop())||(x=new Sh,H=T=void 0,H="none"===e.distanceFieldType?(T=new Th(te.EMPTY),$.BLEND_MODES.NORMAL):(T=new Th(te.EMPTY,{program:io.from("// Mesh material default fragment\r\nattribute vec2 aVertexPosition;\r\nattribute vec2 aTextureCoord;\r\n\r\nuniform mat3 projectionMatrix;\r\nuniform mat3 translationMatrix;\r\nuniform mat3 uTextureMatrix;\r\n\r\nvarying vec2 vTextureCoord;\r\n\r\nvoid main(void)\r\n{\r\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r\n\r\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r\n}\r\n","// Pixi texture info\r\nvarying vec2 vTextureCoord;\r\nuniform sampler2D uSampler;\r\n\r\n// Tint\r\nuniform vec4 uColor;\r\n\r\n// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r\nuniform float uFWidth;\r\n\r\nvoid main(void) {\r\n\r\n // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r\n vec4 texColor = texture2D(uSampler, vTextureCoord);\r\n\r\n // MSDF\r\n float median = texColor.r + texColor.g + texColor.b -\r\n min(texColor.r, min(texColor.g, texColor.b)) -\r\n max(texColor.r, max(texColor.g, texColor.b));\r\n // SDF\r\n median = min(median, texColor.a);\r\n\r\n float screenPxDistance = uFWidth * (median - 0.5);\r\n float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r\n\r\n // NPM Textures, NPM outputs\r\n gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r\n\r\n}\r\n"),uniforms:{uFWidth:0}}),$.BLEND_MODES.NORMAL_NPM),(x=new yh(x,T)).blendMode=H,I={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:x,vertices:null,uvs:null,indices:null}),I.index=0,I.indexCount=0,I.vertexCount=0,I.uvsCount=0,I.total=0,(T=this._textureCache)[w]=T[w]||new te(A.baseTexture),I.mesh.texture=T[w],I.mesh.tint=this._tint,y.push(I),v[w]=I),v[w].total++}for(d=0;d<b.length;d++)-1===y.indexOf(b[d])&&this.removeChild(b[d].mesh);for(d=0;d<y.length;d++)y[d].mesh.parent!==this&&this.addChild(y[d].mesh);for(d in this._activePagesMeshData=y,v){var E=(I=v[d]).total;if(!((null==(Y=I.indices)?void 0:Y.length)>6*E)||I.vertices.length<2*yh.BATCHABLE_SIZE)I.vertices=new Float32Array(8*E),I.uvs=new Float32Array(8*E),I.indices=new Uint16Array(6*E);else for(var Y=I.total,W=I.vertices,q=4*Y*2;q<W.length;q++)W[q]=0;I.mesh.size=6*E}for(d=0;d<X;d++){var S,A,k=(S=i[d]).position.x+G[S.line]*("justify"===this._align?S.prevSpaces:1),k=(k=this._roundPixels?Math.round(k):k)*t,O=S.position.y*t,P=v[(A=S.texture).baseTexture.uid],R=A.frame,C=A._uvs,M=P.index++;P.indices[6*M+0]=0+4*M,P.indices[6*M+1]=1+4*M,P.indices[6*M+2]=2+4*M,P.indices[6*M+3]=0+4*M,P.indices[6*M+4]=2+4*M,P.indices[6*M+5]=3+4*M,P.vertices[8*M+0]=k,P.vertices[8*M+1]=O,P.vertices[8*M+2]=k+R.width*t,P.vertices[8*M+3]=O,P.vertices[8*M+4]=k+R.width*t,P.vertices[8*M+5]=O+R.height*t,P.vertices[8*M+6]=k,P.vertices[8*M+7]=O+R.height*t,P.uvs[8*M+0]=C.x0,P.uvs[8*M+1]=C.y0,P.uvs[8*M+2]=C.x1,P.uvs[8*M+3]=C.y1,P.uvs[8*M+4]=C.x2,P.uvs[8*M+5]=C.y2,P.uvs[8*M+6]=C.x3,P.uvs[8*M+7]=C.y3}for(d in this._textWidth=u*t,this._textHeight=(r.y+e.lineHeight)*t,v){var I=v[d];if(0!==this.anchor.x||0!==this.anchor.y)for(var D=0,L=this._textWidth*this.anchor.x,V=this._textHeight*this.anchor.y,K=0;K<I.total;K++)I.vertices[D++]-=L,I.vertices[D++]-=V,I.vertices[D++]-=L,I.vertices[D++]-=V,I.vertices[D++]-=L,I.vertices[D++]-=V,I.vertices[D++]-=L,I.vertices[D++]-=V;this._maxLineHeight=B*t;var J=I.mesh.geometry.getBuffer("aVertexPosition"),Z=I.mesh.geometry.getBuffer("aTextureCoord"),Q=I.mesh.geometry.getIndex();J.data=I.vertices,Z.data=I.uvs,Q.data=I.indices,J.update(),Z.update(),Q.update()}for(d=0;d<i.length;d++)Wh.push(i[d])},Kh.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},Kh.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);var t=jh.available[this._fontName],r=t.distanceFieldRange,i=t.distanceFieldType,t=t.size;if("none"!==i)for(var i=this.worldTransform,n=i.a,o=i.b,a=i.c,i=i.d,n=Math.sqrt(n*n+o*o),o=Math.sqrt(a*a+i*i),s=(Math.abs(n)+Math.abs(o))/2,l=this._fontSize/t,u=0,h=this._activePagesMeshData;u<h.length;u++)h[u].mesh.shader.uniforms.uFWidth=Math.min(s*r*l*this._resolution,1);Gh.prototype._render.call(this,e)},Kh.prototype.getLocalBounds=function(){return this.validate(),Gh.prototype.getLocalBounds.call(this)},Kh.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},Object.defineProperty(Kh.prototype,"tint",{get:function(){return this._tint},set:function(e){if(this._tint!==e){this._tint=e;for(var t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"fontName",{get:function(){return this._fontName},set:function(e){if(!jh.available[e])throw new Error('Missing BitmapFont "'+e+'"');this._fontName!==e&&(this._fontName=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"anchor",{get:function(){return this._anchor},set:function(e){"number"==typeof e?this._anchor.set(e):this._anchor.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"text",{get:function(){return this._text},set:function(e){e=String(null==e?"":e),this._text!==e&&(this._text=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"maxLineHeight",{get:function(){return this.validate(),this._maxLineHeight},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"textWidth",{get:function(){return this.validate(),this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"textHeight",{get:function(){return this.validate(),this._textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Kh.prototype.destroy=function(e){var t,r=this._textureCache;for(t in r)r[t].destroy(),delete r[t];this._textureCache=null,Gh.prototype.destroy.call(this,e)},Kh.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0},Kh);function Vh(){this.constructor=Xh}function Kh(e,t){void 0===t&&(t={});var r=Gh.call(this)||this,t=(r._tint=16777215,Object.assign({},Kh.styleDefaults,t)),i=t.align,n=t.tint,o=t.maxWidth,a=t.letterSpacing,s=t.fontName,t=t.fontSize;if(jh.available[s])return r._activePagesMeshData=[],r._textWidth=0,r._textHeight=0,r._align=i,r._tint=n,r._fontName=s,r._fontSize=t||jh.available[s].size,r.text=e,r._maxWidth=o,r._maxLineHeight=0,r._letterSpacing=a,r._anchor=new nr(function(){r.dirty=!0},r,0,0),r._roundPixels=R.ROUND_PIXELS,r.dirty=!0,r._resolution=R.RESOLUTION,r._autoResolution=!0,r._textureCache={},r;throw new Error('Missing BitmapFont "'+s+'"')}Zh.add=function(){$.LoaderResource.setExtensionXhrType("fnt",$.LoaderResource.XHR_RESPONSE_TYPE.TEXT)},Zh.use=function(t,r){var e=Fh(t.data);if(e)for(var i=Zh.getBaseUrl(this,t),n=e.parse(t.data),o={},a=function(e){o[e.metadata.pageFile]=e.texture,Object.keys(o).length===n.page.length&&(t.bitmapFont=jh.install(n,o,!0),r())},s=0;s<n.page.length;++s){var l,u,h=n.page[s].file,c=i+h,f=!1;for(l in this.resources){var p=this.resources[l];if(p.url===c){p.metadata.pageFile=h,p.texture?a(p):p.onAfterMiddleware.add(a),f=!0;break}}f||(u={crossOrigin:t.crossOrigin,loadType:$.LoaderResource.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:h},t.metadata.imageMetadata),parentResource:t},this.add(c,u,a))}else r()},Zh.getBaseUrl=function(e,t){var r=t.isDataUrl?"":Zh.dirname(t.url);return t.isDataUrl&&("."===r&&(r=""),e.baseUrl&&r&&"/"===e.baseUrl.charAt(e.baseUrl.length-1)&&(r+="/")),(r=r.replace(e.baseUrl,""))&&"/"!==r.charAt(r.length-1)&&(r+="/"),r},Zh.dirname=function(e){var t=e.replace(/\\/g,"/").replace(/\/$/,"").replace(/\/[^\/]*$/,"");return t===e?".":""===t?"/":t},Zh.extension=$.ExtensionType.Loader;var Jh=Zh;function Zh(){}var Qh=function(e,t){return(Qh=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)};Qh(ec=ic,tc=$h=Q),ec.prototype=null===tc?Object.create(tc):(rc.prototype=tc.prototype,new rc),Object.defineProperty(ic.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0});var $h,ec,tc=ic;function rc(){this.constructor=ec}function ic(e){void 0===e&&(e=1);var t=$h.call(this,da,"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n",{uAlpha:1})||this;return t.alpha=e,t}var nc=function(e,t){return(nc=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 oc(e,t){function r(){this.constructor=e}nc(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ac="\n attribute vec2 aVertexPosition;\n\n uniform mat3 projectionMatrix;\n\n uniform float strength;\n\n varying vec2 vBlurTexCoords[%size%];\n\n uniform vec4 inputSize;\n uniform vec4 outputFrame;\n\n vec4 filterVertexPosition( void )\n {\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n }\n\n vec2 filterTextureCoord( void )\n {\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n }\n\n void main(void)\n {\n gl_Position = filterVertexPosition();\n\n vec2 textureCoord = filterTextureCoord();\n %blur%\n }";var sc,lc={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]},uc=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n");(T={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",T[T.SRC_IN=21]="SRC_IN",T[T.SRC_OUT=22]="SRC_OUT",T[T.SRC_ATOP=23]="SRC_ATOP",T[T.DST_OVER=24]="DST_OVER",T[T.DST_IN=25]="DST_IN",T[T.DST_OUT=26]="DST_OUT",T[T.DST_ATOP=27]="DST_ATOP",T[T.ERASE=26]="ERASE",T[T.SUBTRACT=28]="SUBTRACT",T[T.XOR=29]="XOR",(T={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",T[T.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",T[T.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",T[T.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(T=sc=sc||{})[T.NO=0]="NO",T[T.YES=1]="YES",T[T.AUTO=2]="AUTO",T[T.BLEND=0]="BLEND",T[T.CLEAR=1]="CLEAR",T[T.BLIT=2]="BLIT";oc(fc,hc=Q),fc.prototype.apply=function(e,t,r,i){if(r?this.horizontal?this.uniforms.strength=1/r.width*(r.width/t.width):this.uniforms.strength=1/r.height*(r.height/t.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/t.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/t.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,r,i);else{var n=e.getFilterTexture(),o=e.renderer,a=t,s=n;this.state.blend=!1,e.applyFilter(this,a,s,sc.CLEAR);for(var l=1;l<this.passes-1;l++){e.bindAndClear(a,sc.BLIT);var u=this.uniforms.uSampler=s,s=a,a=u;o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,e.applyFilter(this,s,r,i),e.returnFilterTexture(n)}},Object.defineProperty(fc.prototype,"blur",{get:function(){return this.strength},set:function(e){this.padding=1+2*Math.abs(e),this.strength=e},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"quality",{get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e},enumerable:!1,configurable:!0});var hc,cc=fc;function fc(e,t,r,i,n){void 0===t&&(t=8),void 0===r&&(r=4),void 0===i&&(i=R.FILTER_RESOLUTION);var o=this,a=function(e,t){for(var r=Math.ceil(e/2),i=ac,n="",o=t?"vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);",a=0;a<e;a++)n=n+o.replace("%index%",a.toString()).replace("%sampleIndex%",a-(r-1)+".0")+"\n";return i=(i=i.replace("%blur%",n)).replace("%size%",e.toString())}(n=void 0===n?5:n,e),n=function(e){for(var t=lc[e],r=t.length,i=uc,n="",o=0;o<e;o++)var a="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",o.toString()),s=o,n=n+(a=a.replace("%value%",t[s=r<=o?e-o-1:s].toString()))+"\n";return i=(i=i.replace("%blur%",n)).replace("%size%",e.toString())}(n);return(o=hc.call(this,a,n)||this).horizontal=e,o.resolution=i,o._quality=0,o.quality=r,o.blur=t,o}oc(dc,pc=Q),dc.prototype.apply=function(e,t,r,i){var n=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);n&&o?(n=e.getFilterTexture(),this.blurXFilter.apply(e,t,n,sc.CLEAR),this.blurYFilter.apply(e,n,r,i),e.returnFilterTexture(n)):(o?this.blurYFilter:this.blurXFilter).apply(e,t,r,i)},dc.prototype.updatePadding=function(){this._repeatEdgePixels?this.padding=0:this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))},Object.defineProperty(dc.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(dc.prototype,"quality",{get:function(){return this.blurXFilter.quality},set:function(e){this.blurXFilter.quality=this.blurYFilter.quality=e},enumerable:!1,configurable:!0}),Object.defineProperty(dc.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(dc.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(dc.prototype,"blendMode",{get:function(){return this.blurYFilter.blendMode},set:function(e){this.blurYFilter.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(dc.prototype,"repeatEdgePixels",{get:function(){return this._repeatEdgePixels},set:function(e){this._repeatEdgePixels=e,this.updatePadding()},enumerable:!1,configurable:!0});var pc,T=dc;function dc(e,t,r,i){void 0===e&&(e=8),void 0===t&&(t=4),void 0===r&&(r=R.FILTER_RESOLUTION),void 0===i&&(i=5);var n=pc.call(this)||this;return n.blurXFilter=new cc(!0,e,t,r,i),n.blurYFilter=new cc(!1,e,t,r,i),n.resolution=r,n.quality=t,n.blur=e,n.repeatEdgePixels=!1,n}var mc=function(e,t){return(mc=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)};mc(gc=E,vc=_c=Q),gc.prototype=null===vc?Object.create(vc):(yc.prototype=vc.prototype,new yc),E.prototype._loadMatrix=function(e,t){var r=e;(t=void 0===t?!1:t)&&(this._multiply(r,this.uniforms.m,e),r=this._colorMatrix(r)),this.uniforms.m=r},E.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},E.prototype._colorMatrix=function(e){e=new Float32Array(e);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e},E.prototype.brightness=function(e,t){this._loadMatrix([e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0],t)},E.prototype.tint=function(e,t){this._loadMatrix([(e>>16&255)/255,0,0,0,0,0,(e>>8&255)/255,0,0,0,0,0,(255&e)/255,0,0,0,0,0,1,0],t)},E.prototype.greyscale=function(e,t){this._loadMatrix([e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0],t)},E.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)},E.prototype.hue=function(e,t){e=(e||0)/180*Math.PI;var r=Math.cos(e),e=Math.sin(e),i=(0,Math.sqrt)(1/3);this._loadMatrix([r+1/3*(1-r),1/3*(1-r)-i*e,1/3*(1-r)+i*e,0,0,1/3*(1-r)+i*e,r+1/3*(1-r),1/3*(1-r)-i*e,0,0,1/3*(1-r)-i*e,1/3*(1-r)+i*e,r+1/3*(1-r),0,0,0,0,0,1,0],t)},E.prototype.contrast=function(e,t){var e=(e||0)+1,r=-.5*(e-1);this._loadMatrix([e,0,0,0,r,0,e,0,0,r,0,0,e,0,r,0,0,0,1,0],t)},E.prototype.saturate=function(e,t){var e=2*(e=void 0===e?0:e)/3+1,r=-.5*(e-1);this._loadMatrix([e,r,r,0,0,r,e,r,0,0,r,r,e,0,0,0,0,0,1,0],t)},E.prototype.desaturate=function(){this.saturate(-1)},E.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)},E.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)},E.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)},E.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)},E.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)},E.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)},E.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)},E.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)},E.prototype.colorTone=function(e,t,r,i,n){var o=((r=r||16770432)>>16&255)/255,a=(r>>8&255)/255,r=(255&r)/255,s=((i=i||3375104)>>16&255)/255,l=(i>>8&255)/255,i=(255&i)/255;this._loadMatrix([.3,.59,.11,0,0,o,a,r,e=e||.2,0,s,l,i,t=t||.15,0,o-s,a-l,r-i,0,0],n)},E.prototype.night=function(e,t){this._loadMatrix([-2*(e=e||.1),-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0],t)},E.prototype.predator=function(e,t){this._loadMatrix([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],t)},E.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)},E.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)},Object.defineProperty(E.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0});var _c,gc,vc=E;function yc(){this.constructor=gc}function E(){var e=this,t={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return(e=_c.call(this,ma,"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",t)||this).alpha=1,e}vc.prototype.grayscale=vc.prototype.greyscale;var bc=function(e,t){return(bc=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)};bc(Tc=Sc,wc=xc=Q),Tc.prototype=null===wc?Object.create(wc):(Ec.prototype=wc.prototype,new Ec),Sc.prototype.apply=function(e,t,r,i){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var n=this.maskSprite.worldTransform,o=Math.sqrt(n.a*n.a+n.b*n.b),a=Math.sqrt(n.c*n.c+n.d*n.d);0!==o&&0!==a&&(this.uniforms.rotation[0]=n.a/o,this.uniforms.rotation[1]=n.b/o,this.uniforms.rotation[2]=n.c/a,this.uniforms.rotation[3]=n.d/a),e.applyFilter(this,t,r,i)},Object.defineProperty(Sc.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e},enumerable:!1,configurable:!0});var xc,Tc,wc=Sc;function Ec(){this.constructor=Tc}function Sc(e,t){var r=this,i=new ar;return e.renderable=!1,(r=xc.call(this,"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",{mapSampler:e._texture,filterMatrix:i,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this).maskSprite=e,r.maskMatrix=i,r.scale=new ee(t=null==t?20:t,t),r}var Ac=function(e,t){return(Ac=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)};Ac(Oc=Cc,Pc=kc=Q),Oc.prototype=null===Pc?Object.create(Pc):(Rc.prototype=Pc.prototype,new Rc);var kc,Oc,Pc=Cc;function Rc(){this.constructor=Oc}function Cc(){return kc.call(this,"\nattribute vec2 aVertexPosition;\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\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\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 = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\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 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\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 vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n')||this}var Mc=function(e,t){return(Mc=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)};Mc(Dc=Nc,Lc=Ic=Q),Dc.prototype=null===Lc?Object.create(Lc):(Fc.prototype=Lc.prototype,new Fc),Object.defineProperty(Nc.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e},enumerable:!1,configurable:!0}),Object.defineProperty(Nc.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e},enumerable:!1,configurable:!0});var Ic,Dc,Lc=Nc;function Fc(){this.constructor=Dc}function Nc(e,t){void 0===e&&(e=.5),void 0===t&&(t=Math.random());var r=Ic.call(this,ma,"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",{uNoise:0,uSeed:0})||this;return r.noise=e,r.seed=t,r}(A={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",A[A.SRC_IN=21]="SRC_IN",A[A.SRC_OUT=22]="SRC_OUT",A[A.SRC_ATOP=23]="SRC_ATOP",A[A.DST_OVER=24]="DST_OVER",A[A.DST_IN=25]="DST_IN",A[A.DST_OUT=26]="DST_OUT",A[A.DST_ATOP=27]="DST_ATOP",A[A.ERASE=26]="ERASE",A[A.SUBTRACT=28]="SUBTRACT",A[A.XOR=29]="XOR",(A={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",A[A.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",A[A.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",A[A.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(A={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",A[A.CLEAR=1]="CLEAR",A[A.BLIT=2]="BLIT",(A=k=k||{})[A.NONE=0]="NONE",A[A.LOW=2]="LOW",A[A.MEDIUM=4]="MEDIUM",A[A.HIGH=8]="HIGH";var zc,Bc,jc,Uc,Gc,Xc,Hc=new ar,Yc=(r.prototype._cacheAsBitmap=!1,r.prototype._cacheData=null,r.prototype._cacheAsBitmapResolution=null,r.prototype._cacheAsBitmapMultisample=k.NONE,function(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}),A=(Object.defineProperties(r.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){var t;this._cacheAsBitmap!==e&&((this._cacheAsBitmap=e)?(this._cacheData||(this._cacheData=new Yc),(t=this._cacheData).originalRender=this.render,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.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((t=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,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))}}}),r.prototype._renderCached=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._render(e))},r.prototype._initCachedDisplayObject=function(e){var t,r,i,n,o,a,s,l;this._cacheData&&this._cacheData.sprite||(t=this.alpha,this.alpha=1,e.batch.flush(),r=this.getLocalBounds(null,!0).clone(),this.filters&&this.filters.length&&(i=this.filters[0].padding,r.pad(i)),r.ceil(R.RESOLUTION),i=e.renderTexture.current,n=e.renderTexture.sourceFrame.clone(),o=e.renderTexture.destinationFrame.clone(),a=e.projection.transform,s=Gi.create({width:r.width,height:r.height,resolution:this.cacheAsBitmapResolution||e.resolution,multisample:null!=(s=this.cacheAsBitmapMultisample)?s:e.multisample}),l="cacheAsBitmap_"+ ++Pt,this._cacheData.textureCacheId=l,C.addToCache(s.baseTexture,l),te.addToCache(s,l),l=this.transform.localTransform.copyTo(Hc).invert().translate(-r.x,-r.y),this.render=this._cacheData.originalRender,e.render(this,{renderTexture:s,clear:!0,transform:l,skipUpdateTransform:!1}),e.framebuffer.blit(),e.projection.transform=a,e.renderTexture.bind(i,n,o),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=t,(l=new du(s)).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.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=l.containsPoint.bind(l))},r.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))},r.prototype._initCachedDisplayObjectCanvas=function(e){var t,r,i,n,o,a;this._cacheData&&this._cacheData.sprite||(t=this.getLocalBounds(null,!0),r=this.alpha,this.alpha=1,i=e.context,n=e._projTransform,t.ceil(R.RESOLUTION),o=Gi.create({width:t.width,height:t.height}),a="cacheAsBitmap_"+ ++Pt,this._cacheData.textureCacheId=a,C.addToCache(o.baseTexture,a),te.addToCache(o,a),this.transform.localTransform.copyTo(a=Hc),a.invert(),a.tx-=t.x,a.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,{renderTexture:o,clear:!0,transform:a,skipUpdateTransform:!1}),e.context=i,e._projTransform=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r,(a=new du(o)).transform.worldTransform=this.transform.worldTransform,a.anchor.x=-(t.x/t.width),a.anchor.y=-(t.y/t.height),a.alpha=r,a._bounds=this._bounds,this._cacheData.sprite=a,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=a.containsPoint.bind(a))},r.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},r.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},r.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,C.removeFromCache(this._cacheData.textureCacheId),te.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},r.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)},r.prototype.name=null,zr.prototype.getChildByName=function(e,t){for(var r=0,i=this.children.length;r<i;r++)if(this.children[r].name===e)return this.children[r];if(t)for(r=0,i=this.children.length;r<i;r++){var n=this.children[r];if(n.getChildByName){n=n.getChildByName(e,!0);if(n)return n}}return null},r.prototype.getGlobalPosition=function(e,t){return void 0===e&&(e=new ee),void 0===t&&(t=!1),this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e},Wc.init=function(e){var r=this;Object.defineProperty(this,"resizeTo",{set:function(e){globalThis.removeEventListener("resize",this.queueResize),(this._resizeTo=e)&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){r._resizeTo&&(r.cancelResize(),r._resizeId=requestAnimationFrame(function(){return r.resize()}))},this.cancelResize=function(){r._resizeId&&(cancelAnimationFrame(r._resizeId),r._resizeId=null)},this.resize=function(){var e,t;r._resizeTo&&(r.cancelResize(),t=r._resizeTo===globalThis.window?(e=globalThis.innerWidth,globalThis.innerHeight):(e=(t=r._resizeTo).clientWidth,t.clientHeight),r.renderer.resize(e,t))},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},Wc.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},Wc.extension=$.ExtensionType.Application,Wc);function Wc(){}(k={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",k[k.SRC_IN=21]="SRC_IN",k[k.SRC_OUT=22]="SRC_OUT",k[k.SRC_ATOP=23]="SRC_ATOP",k[k.DST_OVER=24]="DST_OVER",k[k.DST_IN=25]="DST_IN",k[k.DST_OUT=26]="DST_OUT",k[k.DST_ATOP=27]="DST_ATOP",k[k.ERASE=26]="ERASE",k[k.SUBTRACT=28]="SUBTRACT",k[k.XOR=29]="XOR",(k=zc=zc||{})[k.NEAREST=0]="NEAREST",k[k.LINEAR=1]="LINEAR",(k=Bc=Bc||{})[k.CLAMP=33071]="CLAMP",k[k.REPEAT=10497]="REPEAT",k[k.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",(k=jc=jc||{})[k.OFF=0]="OFF",k[k.POW2=1]="POW2",k[k.ON=2]="ON",k[k.ON_MANUAL=3]="ON_MANUAL",(k={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",k[k.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",k[k.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",k[k.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(k={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",k[k.CLEAR=1]="CLEAR",k[k.BLIT=2]="BLIT",(k=Uc=Uc||{})[k.AUTO=0]="AUTO",k[k.MANUAL=1]="MANUAL",(k=Gc=Gc||{}).LOW="lowp",k.MEDIUM="mediump",k.HIGH="highp",(k=Xc=Xc||{})[k.NONE=0]="NONE",k[k.LOW=2]="LOW",k[k.MEDIUM=4]="MEDIUM",k[k.HIGH=8]="HIGH";function qc(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&1<e.maxTouchPoints&&"undefined"==typeof MSStream}var k={createCanvas:function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var e;return null!=(e=document.baseURI)?e:window.location.href},fetch:function(e,t){return fetch(e,t)}},Vc=/iPhone/i,Kc=/iPod/i,Jc=/iPad/i,O=/\biOS-universal(?:.+)Mac\b/i,Zc=/\bAndroid(?:.+)Mobile\b/i,Qc=/Android/i,$c=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,e0=/Silk/i,t0=/Windows Phone/i,r0=/\bWindows(?:.+)ARM\b/i,i0=/BlackBerry/i,n0=/BB10/i,o0=/Opera Mini/i,a0=/\b(CriOS|Chrome)(?:.+)Mobile/i,s0=/Mobile(?:.+)Firefox\b/i;P=globalThis.navigator,g0={userAgent:"",platform:"",maxTouchPoints:0},P||"undefined"==typeof navigator?"string"==typeof P?g0.userAgent=P:P&&P.userAgent&&(g0={userAgent:P.userAgent,platform:P.platform,maxTouchPoints:P.maxTouchPoints||0}):g0={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0},void 0!==(M=(P=void 0!==(M=(P=g0.userAgent).split("[FBAN"))[1]?M[0]:P).split("Twitter"))[1]&&(P=M[0]),l0=P,(P={apple:{phone:(M=function(e){return e.test(l0)})(Vc)&&!M(t0),ipod:M(Kc),tablet:!M(Vc)&&(M(Jc)||qc(g0))&&!M(t0),universal:M(O),device:(M(Vc)||M(Kc)||M(Jc)||M(O)||qc(g0))&&!M(t0)},amazon:{phone:M($c),tablet:!M($c)&&M(e0),device:M($c)||M(e0)},android:{phone:!M(t0)&&M($c)||!M(t0)&&M(Zc),tablet:!M(t0)&&!M($c)&&!M(Zc)&&(M(e0)||M(Qc)),device:!M(t0)&&(M($c)||M(e0)||M(Zc)||M(Qc))||M(/\bokhttp\b/i)},windows:{phone:M(t0),tablet:M(r0),device:M(t0)||M(r0)},other:{blackberry:M(i0),blackberry10:M(n0),opera:M(o0),firefox:M(s0),chrome:M(a0),device:M(i0)||M(n0)||M(o0)||M(s0)||M(a0)},any:!1,phone:!1,tablet:!1}).any=P.apple.device||P.android.device||P.windows.device||P.other.device,P.phone=P.apple.phone||P.android.phone||P.windows.phone,P.tablet=P.apple.tablet||P.android.tablet||P.windows.tablet;var P,l0,M,Vc=P;var u0,h0={ADAPTER:k,MIPMAP_TEXTURES:jc.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Xc.NONE,SPRITE_MAX_TEXTURES:(Kc=32,Jc=!0,(Vc.tablet||Vc.phone)&&(Vc.apple.device&&(u0=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(u0[1],10)<11&&(Jc=!1),Vc.android.device&&(u0=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(u0[1],10)<7&&(Jc=!1)),Jc?Kc:4),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:Uc.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:Bc.CLAMP,SCALE_MODE:zc.LINEAR,PRECISION_VERTEX:Gc.HIGH,PRECISION_FRAGMENT:Vc.apple.device?Gc.HIGH:Gc.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!Vc.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},c0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f0(e,t,r){e(r={path:t,exports:{},require:function(e,t){throw null==t&&r.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},r.exports),r.exports}f0(function(e){var i=Object.prototype.hasOwnProperty,d="~";function r(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function n(e,t,r,i,n){if("function"!=typeof r)throw new TypeError("The listener must be a function");r=new o(r,i||e,n),i=d?d+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],r]:e._events[i].push(r):(e._events[i]=r,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function t(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(d=!1)),t.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},t.prototype.listeners=function(e){var e=d?d+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,i=t.length,n=new Array(i);r<i;r++)n[r]=t[r].fn;return n},t.prototype.listenerCount=function(e){e=d?d+e:e,e=this._events[e];return e?e.fn?1:e.length:0},t.prototype.emit=function(e,t,r,i,n,o){var a=arguments,s=d?d+e:e;if(!this._events[s])return!1;var l,u=this._events[s],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,n),!0;case 6:return u.fn.call(u.context,t,r,i,n,o),!0}for(p=1,l=new Array(h-1);p<h;p++)l[p-1]=a[p];u.fn.apply(u.context,l)}else for(var c,f=u.length,p=0;p<f;p++)switch(u[p].once&&this.removeListener(e,u[p].fn,void 0,!0),h){case 1:u[p].fn.call(u[p].context);break;case 2:u[p].fn.call(u[p].context,t);break;case 3:u[p].fn.call(u[p].context,t,r);break;case 4:u[p].fn.call(u[p].context,t,r,i);break;default:if(!l)for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=a[c];u[p].fn.apply(u[p].context,l)}return!0},t.prototype.on=function(e,t,r){return n(this,e,t,r,!1)},t.prototype.once=function(e,t,r){return n(this,e,t,r,!0)},t.prototype.removeListener=function(e,t,r,i){e=d?d+e:e;if(this._events[e])if(t){var n=this._events[e];if(n.fn)n.fn!==t||i&&!n.once||r&&n.context!==r||l(this,e);else{for(var o=0,a=[],s=n.length;o<s;o++)(n[o].fn!==t||i&&!n[o].once||r&&n[o].context!==r)&&a.push(n[o]);a.length?this._events[e]=1===a.length?a[0]:a:l(this,e)}}else l(this,e);return this},t.prototype.removeAllListeners=function(e){return e?(e=d?d+e:e,this._events[e]&&l(this,e)):(this._events=new r,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=d,e.exports=t.EventEmitter=t}),f0(function(e,t){var r=c0,i=t&&!t.nodeType&&t,t=e&&!e.nodeType&&e,n="object"==typeof c0&&c0;n.global!==n&&n.window!==n&&n.self!==n||(r=n);var o,a,_=2147483647,g=36,v=26,s=38,l=700,u=/^xn--/,h=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=g-1,y=Math.floor,b=String.fromCharCode;function x(e){throw RangeError(f[e])}function d(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function m(e,t){var r=e.split("@"),i="",r=(1<r.length&&(i=r[0]+"@",e=r[1]),(e=e.replace(c,".")).split("."));return i+d(r,t).join(".")}function T(e){for(var t,r,i=[],n=0,o=e.length;n<o;)55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<o?56320==(64512&(r=e.charCodeAt(n++)))?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),n--):i.push(t);return i}function w(e){return d(e,function(e){var t="";return 65535<e&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=b(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var i=0;for(e=r?y(e/l):e>>1,e+=y(e/t);p*v>>1<e;i+=g)e=y(e/p);return y(i+(p+1)*e/(e+s))}function A(e){var t,r,i,n,o,a,s,l=[],u=e.length,h=0,c=128,f=72,p=e.lastIndexOf("-");for(p<0&&(p=0),r=0;r<p;++r)128<=e.charCodeAt(r)&&x("not-basic"),l.push(e.charCodeAt(r));for(i=0<p?p+1:0;i<u;){for(n=h,o=1,a=g;u<=i&&x("invalid-input"),s=e.charCodeAt(i++),(g<=(s=s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:g)||s>y((_-h)/o))&&x("overflow"),h+=s*o,!(s<(s=a<=f?1:f+v<=a?v:a-f));a+=g)o>y(_/(s=g-s))&&x("overflow"),o*=s;f=S(h-n,t=l.length+1,0==n),y(h/t)>_-c&&x("overflow"),c+=y(h/t),h%=t,l.splice(h++,0,c)}return w(l)}function k(e){for(var t,r,i,n,o,a,s,l,u,h,c=[],f=(e=T(e)).length,p=128,d=72,m=t=0;m<f;++m)(s=e[m])<128&&c.push(b(s));for(r=i=c.length,i&&c.push("-");r<f;){for(n=_,m=0;m<f;++m)p<=(s=e[m])&&s<n&&(n=s);for(n-p>y((_-t)/(l=r+1))&&x("overflow"),t+=(n-p)*l,p=n,m=0;m<f;++m)if((s=e[m])<p&&++t>_&&x("overflow"),s==p){for(o=t,a=g;!(o<(u=a<=d?1:d+v<=a?v:a-d));a+=g)c.push(b(E(u+(h=o-u)%(u=g-u),0))),o=y(h/u);c.push(b(E(o,0))),d=S(t,l,r==i),t=0,++r}++t,++p}return c.join("")}if(o={version:"1.3.2",ucs2:{decode:T,encode:w},decode:A,encode:k,toASCII:function(e){return m(e,function(e){return h.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return u.test(e)?A(e.slice(4).toLowerCase()):e})}},i&&t)if(e.exports==i)t.exports=o;else for(a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);else r.punycode=o});function p0(e,t,r,i){t=t||"&",r=r||"=";var n={};if("string"==typeof e&&0!==e.length){var o=/\+/g,t=(e=e.split(t),1e3),a=(i&&"number"==typeof i.maxKeys&&(t=i.maxKeys),e.length);0<t&&t<a&&(a=t);for(var s=0;s<a;++s){var l,u=e[s].replace(o,"%20"),h=u.indexOf(r),h=0<=h?(l=u.substr(0,h),u.substr(h+1)):(l=u,""),u=decodeURIComponent(l),h=decodeURIComponent(h);Object.prototype.hasOwnProperty.call(n,u)?Array.isArray(n[u])?n[u].push(h):n[u]=[n[u],h]:n[u]=h}}return n}function d0(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function m0(r,i,n,e){return i=i||"&",n=n||"=","object"==typeof(r=null===r?void 0:r)?Object.keys(r).map(function(e){var t=encodeURIComponent(d0(e))+n;return Array.isArray(r[e])?r[e].map(function(e){return t+encodeURIComponent(d0(e))}).join(i):t+encodeURIComponent(d0(r[e]))}).join(i):e?encodeURIComponent(d0(e))+n+encodeURIComponent(d0(r)):""}var _0,g0;f0(function(e,t){t.decode=t.parse=p0,t.encode=t.stringify=m0}),(O=_0=_0||{})[O.NORMAL=0]="NORMAL",O[O.ADD=1]="ADD",O[O.MULTIPLY=2]="MULTIPLY",O[O.SCREEN=3]="SCREEN",O[O.OVERLAY=4]="OVERLAY",O[O.DARKEN=5]="DARKEN",O[O.LIGHTEN=6]="LIGHTEN",O[O.COLOR_DODGE=7]="COLOR_DODGE",O[O.COLOR_BURN=8]="COLOR_BURN",O[O.HARD_LIGHT=9]="HARD_LIGHT",O[O.SOFT_LIGHT=10]="SOFT_LIGHT",O[O.DIFFERENCE=11]="DIFFERENCE",O[O.EXCLUSION=12]="EXCLUSION",O[O.HUE=13]="HUE",O[O.SATURATION=14]="SATURATION",O[O.COLOR=15]="COLOR",O[O.LUMINOSITY=16]="LUMINOSITY",O[O.NORMAL_NPM=17]="NORMAL_NPM",O[O.ADD_NPM=18]="ADD_NPM",O[O.SCREEN_NPM=19]="SCREEN_NPM",O[O.NONE=20]="NONE",O[O.SRC_OVER=0]="SRC_OVER",O[O.SRC_IN=21]="SRC_IN",O[O.SRC_OUT=22]="SRC_OUT",O[O.SRC_ATOP=23]="SRC_ATOP",O[O.DST_OVER=24]="DST_OVER",O[O.DST_IN=25]="DST_IN",O[O.DST_OUT=26]="DST_OUT",O[O.DST_ATOP=27]="DST_ATOP",O[O.ERASE=26]="ERASE",O[O.SUBTRACT=28]="SUBTRACT",O[O.XOR=29]="XOR",(g0={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",g0[g0.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",g0[g0.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",g0[g0.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",($c={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",$c[$c.CLEAR=1]="CLEAR",$c[$c.BLIT=2]="BLIT",h0.RETINA_PREFIX=/@([0-9\.]+)x/,h0.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;for(var v0=[],y0=[],b0=0;b0<32;b0++)y0[v0[b0]=b0]=b0;v0[_0.NORMAL_NPM]=_0.NORMAL,v0[_0.ADD_NPM]=_0.ADD,v0[_0.SCREEN_NPM]=_0.SCREEN,y0[_0.NORMAL]=_0.NORMAL_NPM,y0[_0.ADD]=_0.ADD_NPM,y0[_0.SCREEN]=_0.SCREEN_NPM;var e0=[],x0=(e0.push(y0),e0.push(v0),{});function T0(e,t,r){this.canvas=h0.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=r||h0.RESOLUTION,this.resize(e,t)}T0.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},T0.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},T0.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(T0.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(T0.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0});w0.registerPlugin=function(e){var t,r,i,n;t="6.5.0",void 0===i&&(i=3),x0[r="Application.registerPlugin() is deprecated, use extensions.add()"]||(void 0===(n=(new Error).stack)?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+t):(n=n.split("\n").splice(i).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+t),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+t),console.warn(n))),x0[r]=!0),Ur.add({type:$.ExtensionType.Application,ref:e})},w0.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(w0.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(w0.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),w0.prototype.destroy=function(e,t){var r=this,i=w0._plugins.slice(0);i.reverse(),i.forEach(function(e){e.destroy.call(r)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null},w0._plugins=[];Zc=w0;function w0(t){var r=this;this.stage=new zr,t=Object.assign({forceCanvas:!1},t),this.renderer=pa(t),w0._plugins.forEach(function(e){e.init.call(r,t)})}Ur.handleByList($.ExtensionType.Application,Zc._plugins),Ur.add(A);var E0=function(e,t){return(E0=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 S0(e,t){function r(){this.constructor=e}E0(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}S0(O0,A0=Sh),O0.prototype.build=function(){for(var e=this.segWidth*this.segHeight,t=[],r=[],i=[],n=this.segWidth-1,o=this.segHeight-1,a=this.width/n,s=this.height/o,l=0;l<e;l++){var u=l%this.segWidth,h=l/this.segWidth|0;t.push(u*a,h*s),r.push(u/n,h/o)}for(var c=n*o,l=0;l<c;l++){var f=l%n,p=l/n|0,d=p*this.segWidth+f,m=p*this.segWidth+f+1,_=(1+p)*this.segWidth+f,p=(1+p)*this.segWidth+f+1;i.push(d,m,_,m,p,_)}this.buffers[0].data=new Float32Array(t),this.buffers[1].data=new Float32Array(r),this.indexBuffer.data=new Uint16Array(i),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()};var A0,k0=O0;function O0(e,t,r,i){void 0===e&&(e=100),void 0===t&&(t=100),void 0===r&&(r=10),void 0===i&&(i=10);var n=A0.call(this)||this;return n.segWidth=r,n.segHeight=i,n.width=e,n.height=t,n.build(),n}S0(C0,P0=Sh),Object.defineProperty(C0.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),C0.prototype.build=function(){var e=this.points;if(e){var t=this.getBuffer("aVertexPosition"),r=this.getBuffer("aTextureCoord"),i=this.getIndex();if(!(e.length<1)){t.data.length/4!==e.length&&(t.data=new Float32Array(4*e.length),r.data=new Float32Array(4*e.length),i.data=new Uint16Array(6*(e.length-1)));for(var n=r.data,o=i.data,a=(n[0]=0,n[1]=0,n[2]=0,n[3]=1,0),s=e[0],l=this._width*this.textureScale,u=e.length,h=0;h<u;h++){var c,f,p=4*h;0<this.textureScale?(f=s.x-e[h].x,c=s.y-e[h].y,f=Math.sqrt(f*f+c*c),s=e[h],a+=f/l):a=h/(u-1),n[p]=a,n[p+1]=0,n[p+2]=a,n[p+3]=1}for(var d=0,h=0;h<u-1;h++){p=2*h;o[d++]=p,o[d++]=p+1,o[d++]=p+2,o[d++]=p+2,o[d++]=p+1,o[d++]=p+3}r.update(),i.update(),this.updateVertices()}}},C0.prototype.updateVertices=function(){var e=this.points;if(!(e.length<1)){for(var t=e[0],r=0,i=0,n=this.buffers[0].data,o=e.length,a=0;a<o;a++){var s=e[a],l=4*a,i=-((u=a<e.length-1?e[a+1]:s).x-t.x),r=u.y-t.y,u=Math.sqrt(r*r+i*i),h=0<this.textureScale?this.textureScale*this._width/2:this._width/2;i=i/u*h,n[l]=s.x+(r=r/u*h),n[1+l]=s.y+i,n[2+l]=s.x-r,n[3+l]=s.y-i,t=s}this.buffers[0].update()}},C0.prototype.update=function(){0<this.textureScale?this.build():this.updateVertices()};var P0,R0=C0;function C0(e,t,r){void 0===e&&(e=200),void 0===r&&(r=0);var i=P0.call(this,new Float32Array(4*t.length),new Float32Array(4*t.length),new Uint16Array(6*(t.length-1)))||this;return i.points=t,i._width=e,i.textureScale=r,i.build(),i}S0(I0,M0=yh),I0.prototype._render=function(e){var t=this.geometry;!this.autoUpdate&&t._width===this.shader.texture.height||(t._width=this.shader.texture.height,t.update()),M0.prototype._render.call(this,e)};var M0,Qc=I0;function I0(e,t,r){var i=this,t=new R0(e.height,t,r=void 0===r?0:r),n=new Th(e);return 0<r&&(e.baseTexture.wrapMode=$.WRAP_MODES.REPEAT),(i=M0.call(this,t,n)||this).autoUpdate=!0,i}S0(L0,D0=yh),L0.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var e=this.geometry,t=this.shader.texture,r=t.width,t=t.height;!this.autoResize||e.width===r&&e.height===t||(e.width=this.shader.texture.width,e.height=this.shader.texture.height,e.build())},Object.defineProperty(L0.prototype,"texture",{get:function(){return this.shader.texture},set:function(e){this.shader.texture!==e&&(this.shader.texture=e,this._textureID=-1,e.baseTexture.valid?this.textureUpdated():e.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),L0.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),D0.prototype._render.call(this,e)},L0.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),D0.prototype.destroy.call(this,e)};var D0,t0=L0;function L0(e,t,r){var i=this,t=new k0(e.width,e.height,t,r),r=new Th(te.WHITE);return(i=D0.call(this,t,r)||this).texture=e,i.autoResize=!0,i}S0(N0,F0=yh),Object.defineProperty(N0.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),N0.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),F0.prototype._render.call(this,e)};var F0,r0=N0;function N0(e,t,r,i,n){void 0===e&&(e=te.EMPTY);var o=this,t=new Sh(t,r,i),r=(t.getBuffer("aVertexPosition").static=!1,new Th(e));return(o=F0.call(this,t,r,null,n)||this).autoUpdate=!0,o}S0(B0,z0=t0),B0.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(B0.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),B0.prototype.updateHorizontalVertices=function(){var e=this.vertices,t=this._getMinScale();e[9]=e[11]=e[13]=e[15]=this._topHeight*t,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*t,e[25]=e[27]=e[29]=e[31]=this._height},B0.prototype.updateVerticalVertices=function(){var e=this.vertices,t=this._getMinScale();e[2]=e[10]=e[18]=e[26]=this._leftWidth*t,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*t,e[6]=e[14]=e[22]=e[30]=this._width},B0.prototype._getMinScale=function(){var e=this._leftWidth+this._rightWidth,e=this._width>e?1:this._width/e,t=this._topHeight+this._bottomHeight,t=this._height>t?1:this._height/t;return Math.min(e,t)},Object.defineProperty(B0.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"topHeight",{get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()},enumerable:!1,configurable:!0}),B0.prototype._refresh=function(){var e=this.texture,t=this.geometry.buffers[1].data,e=(this._origWidth=e.orig.width,this._origHeight=e.orig.height,1/this._origWidth),r=1/this._origHeight;t[0]=t[8]=t[16]=t[24]=0,t[1]=t[3]=t[5]=t[7]=0,t[6]=t[14]=t[22]=t[30]=1,t[25]=t[27]=t[29]=t[31]=1,t[2]=t[10]=t[18]=t[26]=e*this._leftWidth,t[4]=t[12]=t[20]=t[28]=1-e*this._rightWidth,t[9]=t[11]=t[13]=t[15]=r*this._topHeight,t[17]=t[19]=t[21]=t[23]=1-r*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()};var z0,i0=B0;function B0(e,t,r,i,n){void 0===t&&(t=10),void 0===r&&(r=10),void 0===i&&(i=10),void 0===n&&(n=10);var o=z0.call(this,te.WHITE,4,4)||this;return o._origWidth=e.orig.width,o._origHeight=e.orig.height,o._width=o._origWidth,o._height=o._origHeight,o._leftWidth=t,o._rightWidth=i,o._topHeight=r,o._bottomHeight=n,o.texture=e,o}var j0=function(e,t){return(j0=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)};j0(G0=H0,n0=U0=du),G0.prototype=null===n0?Object.create(n0):(X0.prototype=n0.prototype,new X0),H0.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Wr.shared.remove(this.update,this),this._isConnectedToTicker=!1))},H0.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Wr.shared.add(this.update,this,$.UPDATE_PRIORITY.HIGH),this._isConnectedToTicker=!0))},H0.prototype.gotoAndStop=function(e){this.stop();var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()},H0.prototype.gotoAndPlay=function(e){var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture(),this.play()},H0.prototype.update=function(e){if(this._playing){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.animationSpeed<0&&this.currentFrame>r)&&this.onLoop(),this.updateTexture())}},H0.prototype.updateTexture=function(){var e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this._texture=this._textures[e],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},H0.prototype.destroy=function(e){this.stop(),U0.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},H0.fromFrames=function(e){for(var t=[],r=0;r<e.length;++r)t.push(te.from(e[r]));return new H0(t)},H0.fromImages=function(e){for(var t=[],r=0;r<e.length;++r)t.push(te.from(e[r]));return new H0(t)},Object.defineProperty(H0.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"textures",{get:function(){return this._textures},set:function(e){if(e[0]instanceof te)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._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"currentFrame",{get:function(){var e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Wr.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(Wr.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0});var U0,G0,o0=H0;function X0(){this.constructor=G0}function H0(e,t){void 0===t&&(t=!0);var r=U0.call(this,e[0]instanceof te?e[0]:e[0].texture)||this;return r._textures=null,r._durations=null,r._autoUpdate=t,r._isConnectedToTicker=!1,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._previousFrame=null,r.textures=e,r}Ur.add(i,o,n,Tl,Ml,Xe,hh,Jh,a,v,fl,$u,ae,re);s0={AlphaFilter:tc,BlurFilter:T,BlurFilterPass:cc,ColorMatrixFilter:vc,DisplacementFilter:wc,FXAAFilter:Pc,NoiseFilter:Lc};return $.AbstractBatchRenderer=Ea,$.AbstractMultiResource=s,$.AbstractRenderer=oa,$.AccessibilityManager=i,$.AnimatedSprite=o0,$.AppLoaderPlugin=re,$.Application=Zc,$.ArrayResource=le,$.Attribute=Wi,$.BaseImageResource=hi,$.BasePrepare=Ll,$.BaseRenderTexture=Di,$.BaseTexture=C,$.BatchDrawCall=va,$.BatchGeometry=Pa,$.BatchPluginFactory=Ia,$.BatchRenderer=Xe,$.BatchShaderGenerator=Aa,$.BatchSystem=xn,$.BatchTextureArray=ya,$.BitmapFont=jh,$.BitmapFontData=Oh,$.BitmapFontLoader=Jh,$.BitmapText=qh,$.BlobResource=t,$.Bounds=kr,$.BrowserAdapter=e,$.Buffer=Ki,$.BufferResource=ti,$.CanvasResource=p,$.Circle=Jt,$.CompressedTextureLoader=a,$.CompressedTextureResource=Cs,$.Container=zr,$.ContextSystem=En,$.CountLimiter=Mu,$.CubeResource=se,$.DDSLoader=v,$.DEG_TO_RAD=Wt,$.DisplayObject=r,$.Ellipse=Qt,$.Extract=o,$.FORMATS_TO_COMPONENTS=ll,$.FillStyle=Sl,$.Filter=Q,$.FilterState=pn,$.FilterSystem=gn,$.Framebuffer=Ci,$.FramebufferSystem=On,$.GLFramebuffer=An,$.GLProgram=Go,$.GLTexture=$o,$.GRAPHICS_CURVES=El,$.Geometry=tn,$.GeometrySystem=Cn,$.Graphics=su,$.GraphicsData=Jl,$.GraphicsGeometry=eu,$.IGLUniformData=Uo,$.INSTALLED=Vr,$.INTERNAL_FORMAT_TO_BYTES_PER_PIXEL=ws,$.ImageBitmapResource=Si,$.ImageResource=gi,$.InteractionData=Ba,$.InteractionEvent=Ga,$.InteractionManager=n,$.InteractionTrackingData=Ha,$.KTXLoader=fl,$.LineStyle=ru,$.Loader=_s,$.MaskData=In,$.MaskSystem=vo,$.Matrix=ar,$.Mesh=yh,$.MeshBatchUvs=dh,$.MeshGeometry=Sh,$.MeshMaterial=Th,$.NineSlicePlane=i0,$.ObjectRenderer=yn,$.ObservablePoint=nr,$.PI_2=Ht,$.ParticleContainer=gl,$.ParticleRenderer=Tl,$.PlaneGeometry=k0,$.Point=ee,$.Polygon=er,$.Prepare=Ml,$.Program=io,$.ProjectionSystem=Po,$.Quad=on,$.QuadUv=ln,$.RAD_TO_DEG=Yt,$.Rectangle=w,$.RenderTexture=Gi,$.RenderTexturePool=Hi,$.RenderTextureSystem=Io,$.Renderer=ca,$.ResizePlugin=A,$.Resource=Qr,$.RopeGeometry=R0,$.RoundedRectangle=rr,$.Runner=Gr,$.SVGResource=d,$.ScissorSystem=Eo,$.Shader=oo,$.ShaderSystem=qo,$.SimpleMesh=r0,$.SimplePlane=t0,$.SimpleRope=Qc,$.Sprite=du,$.SpriteMaskFilter=_o,$.Spritesheet=Zu,$.SpritesheetLoader=$u,$.State=so,$.StateSystem=Ko,$.StencilSystem=ko,$.System=_a,$.TYPES_TO_BYTES_PER_COMPONENT=sl,$.TYPES_TO_BYTES_PER_PIXEL=ul,$.TemporaryDisplayObject=Dr,$.Text=Ou,$.TextFormat=Ph,$.TextMetrics=Eu,$.TextStyle=bu,$.Texture=te,$.TextureGCSystem=Zo,$.TextureLoader=oe,$.TextureMatrix=fo,$.TextureSystem=ea,$.TextureUvs=Fi,$.Ticker=Wr,$.TickerPlugin=ae,$.TilingSprite=oh,$.TilingSpriteRenderer=hh,$.TimeLimiter=Ku,$.Transform=Sr,$.UniformGroup=cn,$.VERSION="6.5.5",$.VideoResource=Ti,$.ViewableBuffer=xa,$.XMLFormat=Ch,$.XMLStringFormat=Ih,$.accessibleTarget=ie,$.autoDetectFormat=Fh,$.autoDetectRenderer=pa,$.autoDetectResource=Kr,$.checkMaxIfStatementsInShader=eo,$.createUBOElements=zo,$.defaultFilterVertex=ma,$.defaultVertex=da,$.extensions=Ur,$.filters=s0,$.generateProgram=Ho,$.generateUniformBufferSync=jo,$.getTestContext=Gn,$.getUBOData=Bo,$.graphicsUtils=lu,$.groupD8=Er,$.interactiveTarget=ne,$.isMobile=he,$.parseDDS=qs,$.parseKTX=hl,$.resources=La,$.settings=R,$.systems=Na,$.uniformParsers=Kn,$.utils=Xt,Object.defineProperty($,"__esModule",{value:!0}),$}({}),e,e=e||eval("(function() { try { return Module || {} } catch(e) { return {} } })()"),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=r&&!t?r.toString():r},e.readBinary=function(t){return assert((t=(t=e.read(t,!0)).buffer?t:new Uint8Array(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=i.splice?i:Array.prototype.slice.call(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},na=(e.Runtime=n,n.addFunction=n.Xa,n.removeFunction=n.nb,!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(c){}return assert(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(e,t,r){switch(r="*"===(r=r||"i8").charAt(r.length-1)?"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,1<=+xa(oa=t)?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=t||"i8").charAt(t.length-1)?"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 o,a,s,l="number"==typeof e?(o=!0,e):(o=!1,e.length),u="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(l,u?1:t.length)),o){for(assert(0==(3&(i=r))),e=r+(-4&l);i<e;i+=4)C[i>>2]=0;for(e=r+l;i<e;)y[i++>>0]=0}else if("i8"===u)e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r);else{i=0;for(;i<l;){var h=e[i];"function"==typeof h&&(h=n.Id(h)),0===(o=u||t[i])?i++:(wa(r+i,h,o="i64"==o?"i32":o),s!==o&&(a=n.Ka(o),s=o),i+=a)}}return r}function va(t,r){if(0===r||!t)return"";for(var i,n=0,o=0;(n|=i=E[t+o>>0],0!=i||r)&&(o++,!r||o!=r););if(r=r||o,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,o,a,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:(o=63&e[t++],240==(248&r)?(7&r)<<18|i<<12|n<<6|o:(a=63&e[t++],248==(252&r)?(3&r)<<24|i<<18|n<<12|o<<6|a:(1&r)<<30|i<<24|n<<18|o<<12|a<<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 o=0;o<e.length;++o){var a=e.charCodeAt(o);if((a=55296<=a&&a<=57343?65536+((1023&a)<<10)|1023&e.charCodeAt(++o):a)<=127){if(i<=r)break;t[r++]=a}else{if(a<=2047){if(i<=r+1)break;t[r++]=192|a>>6}else{if(a<=65535){if(i<=r+2)break;t[r++]=224|a>>12}else{if(a<=2097151){if(i<=r+3)break;t[r++]=240|a>>18}else{if(a<=67108863){if(i<=r+4)break;t[r++]=248|a>>24}else{if(i<=r+5)break;t[r++]=252|a>>30,t[r++]=128|a>>24&63}t[r++]=128|a>>18&63}t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-n}function La(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);(i=55296<=i&&i<=57343?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(h){var t=!!e.___cxa_demangle;if(t)try{var r=Ea(h.length),i=(ua(h.substr(1),r),Ea(4)),o=e.___cxa_demangle(r,0,0,i);if(0===Da(i,"i32")&&o)return va(o)}catch(e){}finally{r&&Na(r),i&&Na(i),o&&Na(o)}var c=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:"..."},p=[],d=!0,r=h;try{if("Object._main"==h||"_main"==h)return"main()";if("_"!==(h="number"==typeof h?va(h):h)[0]||"_"!==h[1]||"Z"!==h[2])return h;switch(h[3]){case"n":return"operator new()";case"d":return"operator delete()"}r=function e(t,r,i){r=r||1/0;var n,o="",a=[];if("N"===h[c]){for("K"===h[++c]&&c++,n=[];"E"!==h[c];)if("S"===h[c]){c++;var s=h.indexOf("_",c);n.push(p[h.substring(c,s)||0]||"?"),c=s+1}else if("C"===h[c])n.push(n[n.length-1]),c+=2;else{var l=(s=parseInt(h.substr(c))).toString().length;if(!s||!l){c--;break}var u=h.substr(c+l,s);n.push(u),p.push(u),c+=l+s}if(c++,n=n.join("::"),0==--r)return t?[n]:n}else("K"===h[c]||d&&"L"===h[c])&&c++,(s=parseInt(h.substr(c)))&&(l=s.toString().length,n=h.substr(c+l,s),c+=l+s);d=!1,"I"===h[c]?(c++,s=e(!0),o+=(l=e(!0,1,!0))[0]+" "+n+"<"+s.join(", ")+">"):o=n;e:for(;c<h.length&&0<r--;)if(n=h[c++],n in f)a.push(f[n]);else switch(n){case"P":a.push(e(!0,1,!0)[0]+"*");break;case"R":a.push(e(!0,1,!0)[0]+"&");break;case"L":c++,s=h.indexOf("E",c)-c,a.push(h.substr(c,s)),c+=s+2;break;case"A":if(s=parseInt(h.substr(c)),c+=s.toString().length,"_"!==h[c])throw"?";c++,a.push(e(!0,1,!0)[0]+" ["+s+"]");break;case"E":break e;default:o+="?"+n;break e}return i||1!==a.length||"void"!==a[0]||(a=[]),t?(o&&a.push(o+"?"),a):o+("("+a.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},d=(sa=function(e,t,r,i,o){e=qa(e);var a=[],s=0;if(i)for(var l=0;l<i.length;l++){var u=c[r[l]];u?(0===s&&(s=n.ua()),a[l]=u(i[l])):a[l]=i[l]}if(r=e.apply(null,a),"string"===t&&(r=va(r)),0!==s){if(o&&o.async)return void EmterpreterAsync.yd.push(function(){n.ba(s)});n.ba(s)}return r},/^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),q=(b=d.every(function(e){return"number"===e}),"string"!==c);if(q&&b)return g;var v=d.map(function(e,t){return"$"+t}),B=(c="(function("+v.join(",")+") {",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((r=void 0===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((r=void 0===r?2147483647:r)<4)return 0;var i=t;r=i+r-4;for(var n=0;n<e.length;++n){var o=e.charCodeAt(n);if(55296<=o&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),C[t>>2]=o,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;function ma(){var i,n=Math.pow(2,31);if(n<=r)return!1;for(;t<=r;)if(t<n/2)t=Qa(2*t);else{var o=t;if((t=Qa((3*t+n)/4))<=o)return!1}if(n<=(t=Math.max(t,16777216)))return!1;try{buffer=ArrayBuffer.p?ArrayBuffer.p(buffer,t):(i=y,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(i),!0)}try{Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get),Ya(new ArrayBuffer(4))}catch(Za){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536,buffer;F<t||F<2*$a;)F=F<16777216?2*F:F+16777216;function ab(e){for(;0<e.length;){var t,r=e.shift();"function"==typeof r?r():"number"==typeof(t=r.ab)?void 0===r.X?n.L("v",t):n.L("vi",t,[r.X]):t(void 0===r.X?null:r.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(){var t;I--,e.monitorRunDependencies&&e.monitorRunDependencies(I),0==I&&(null!==ib&&(clearInterval(ib),ib=null),jb)&&(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--;)e.unshift("..");return e}function zb(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t?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?e+(t=t&&t.substr(0,t.length-1)):"."}function Bb(e){var t;return"/"===e?"/":-1===(t=e.lastIndexOf("/"))?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,o=0,a=0;a<i;a++){try{n=e.tty.N.La(e.tty)}catch(e){throw new L(J.H)}if(void 0===n&&0===o)throw new L(J.va);if(null==n)break;o++,t[r+a]=n}return o&&(e.g.timestamp=Date.now()),o},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,o=!1;try{n=fs.openSync("/dev/stdin","r"),o=!0}catch(e){}r=fs.readSync(n,i,0,256,null),o&&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){for(var r in Nb(e,t).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 o=e.g.e;if(n>=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-n,i))),8<e&&o.subarray)t.set(o.subarray(n,n+e),r);else for(i=0;i<e;i++)t[r+i]=o[n+i];return e},write:function(e,t,r,i,n,o){if(!i)return 0;if((e=e.g).timestamp=Date.now(),t.subarray&&(!e.e||e.e.subarray)){if(o)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(o=0;o<i;o++)e.e[n+o]=t[r+o];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,o,a){if(32768!=(61440&e.g.mode))throw new L(J.ha);if(r=e.g.e,2&a||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))return(e=Lb(e,t,r)).k=P.k,e.n=P.n,e;throw new L(J.q)},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 new L(J[e.code]);throw e}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 new L(J[e.code]);throw e}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 new L(J[e.code]);throw e}},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 new L(J[e.code]);throw e}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 new L(J[e.code]);throw e}},unlink:function(e,t){e=K(P.B(e),t);try{fs.unlinkSync(e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},rmdir:function(e,t){e=K(P.B(e),t);try{fs.rmdirSync(e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},readdir:function(e){e=P.B(e);try{return fs.readdirSync(e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},symlink:function(e,t,r){e=K(P.B(e),t);try{fs.symlinkSync(r,e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},readlink:function(e){var t=P.B(e);try{return t=fs.readlinkSync(t),Ob.relative(Ob.resolve(e.A.pa.root),t)}catch(e){if(e.code)throw new L(J[e.code]);throw e}}},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 new L(J[e.code]);throw e}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},read:function(e,t,r,i,n){if(0===i)return 0;var o,a=new Buffer(i);try{o=fs.readSync(e.V,a,0,i,n)}catch(e){throw new L(J[e.code])}if(0<o)for(e=0;e<o;e++)t[r+e]=a[e];return o},write:function(e,t,r,i,n){var o;t=new Buffer(t.subarray(r,r+i));try{o=fs.writeSync(e.V,t,0,i,n)}catch(e){throw new L(J[e.code])}return o},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}}},Pb=(D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2),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};for(n in r={Ia:!0,ra:0})void 0===t[n]&&(t[n]=r[n]);if(8<t.ra)throw new L(J.ga);for(var r=yb(e.split("/").filter(function(e){return!!e}),!1),i=Pb,n="/",o=0;o<r.length;o++){var a=o===r.length-1;if(a&&t.parent)break;if(i=Nb(i,r[o]),n=K(n,r[o]),!i.U||a&&!t.Ia||(i=i.U.root),!a||t.la)for(a=0;40960==(61440&i.mode);)if(i=Vb(n),i=S(n=Db(Ab(n),i),{ra:t.ra}).g,40<a++)throw new L(J.ga)}return{path:n,g:i}}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){this.parent=e=e||this,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||(-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:[]},t=e.A(n);(t.A=n).root=t,i?Pb=t: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)return i.k.T(i,e,t,r);throw new L(J.I)}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 t=Bb(t),i=ac(r,t);if(i)throw new L(i);if(r.k.symlink)return r.k.symlink(r,t,e);throw new L(J.I)}function Vb(e){if(!(e=S(e).g))throw new L(J.F);if(e.k.readlink)return Db(T(e.parent),e.k.readlink(e));throw new L(J.q)}function jc(e,t){e="string"==typeof e?S(e,{la:!0}).g:e;if(!e.k.u)throw new L(J.I);e.k.u(e,{mode:4095&t|-4096&e.mode,timestamp:Date.now()})}function kc(t,r){var i,n;if(""===t)throw new L(J.F);if("string"==typeof r){if(void 0===(i=$b[r]))throw Error("Unknown file open mode: "+r)}else i=r;if(o=64&(r=i)?4095&(void 0===o?438:o)|32768:0,"object"==typeof t)n=t;else{t=zb(t);try{n=S(t,{la:!(131072&r)}).g}catch(e){}}if(i=!1,64&r)if(n){if(128&r)throw new L(J.wa)}else n=fc(t,o,0),i=!0;if(!n)throw new L(J.F);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&!N(n.mode))throw new L(J.ya);if(!i&&(o=n?40960==(61440&n.mode)?J.ga:N(n.mode)&&(0!=(2097155&r)||512&r)?J.P:(o=["r","w","rw"][3&r],512&r&&(o+="w"),Yb(n,o)):J.F))throw new L(o);if(512&r){var o,a="string"==typeof(o=n)?S(o,{la:!0}).g:o;if(!a.k.u)throw new L(J.I);if(N(a.mode))throw new L(J.P);if(32768!=(61440&a.mode))throw new L(J.q);if(o=Yb(a,"w"))throw new L(o);a.k.u(a,{size:0,timestamp:Date.now()})}r&=-641,(n=cc({g:n,path:T(n),flags:r,seekable:!0,position:0,n:n.n,tb:[],error:!1})).n.open&&n.n.open(n),!e.logReadFiles||1&r||(t in(lc=lc||{})||(lc[t]=1,e.printErr("read file: "+t)));try{R.onOpenFile&&(a=0,1!=(2097155&r)&&(a|=1),0!=(2097155&r)&&(a|=2),R.onOpenFile(t,a))}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+t+"', flags) threw an exception: "+e.message)}return n}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,o){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 a=!0;if(void 0===n)n=e.position,a=!1;else if(!e.seekable)throw new L(J.ia);t=e.n.write(e,t,r,i,n,o),a||(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,o){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 a=r.length;t<a;++t)e[t]=r.charCodeAt(t);r=e}jc(n,146|i),oc(e=kc(n,"w"),r,0,r.length,0,o),mc(e),jc(n,i)}return n}function W(e,t,s,o){e=K("string"==typeof e?e:T(e),t),t=rc(!!s,!!o),W.Ma||(W.Ma=64);var r=W.Ma++<<8|0;return Gb(r,{open:function(e){e.seekable=!1},close:function(){o&&o.buffer&&o.buffer.length&&o(10)},read:function(e,t,r,i){for(var n,o=0,a=0;a<i;a++){try{n=s()}catch(e){throw new L(J.H)}if(void 0===n&&0===o)throw new L(J.va);if(null==n)break;o++,t[r+a]=n}return o&&(e.g.timestamp=Date.now()),o},write:function(e,t,r,i){for(var n=0;n<i;n++)try{o(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=X();if(e=Rb[e])return e;throw new L(J.ea)}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){var r;return Dc=e,Ec=t,Fc?(0==e?(Y=function(){setTimeout(Gc,t)},Hc="timeout"):1==e?(Y=function(){Ic(Gc)},Hc="rAF"):2==e&&(window.setImmediate||(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"),0):1}function Jc(a,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=a,Kc=s;var l=Lc;if(Gc=function(){var t,r,i,o;na||(0<Mc.length?(t=Date.now(),(r=Mc.shift()).ab(r.X),Nc&&(o=0==(i=Nc)%1?i-1:Math.floor(i),Nc=r.Bd?o:(8*i+(o+.5))/9),console.log('main loop blocker "'+r.name+'" took '+(Date.now()-t)+" ms"),Oc(),setTimeout(Gc,0)):l<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",a,[s]):n.L("v",a)}),l<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(){var t,r,i;e.setStatus&&(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.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,o,t){var a=null;if(Xc)try{(a=new Blob([r],{type:$c(i)})).size!==r.length&&(a=new Blob([new Uint8Array(r).buffer],{type:$c(i)}))}catch(e){n.O("Blob constructor present but fails: "+e+"; falling back to blob builder")}a||((a=new Yc).append(new Uint8Array(r).buffer),a=a.getBlob());var s=Zc.createObjectURL(a),l=new Image;l.onload=function(){assert(l.complete,"Image "+i+" could not be decoded");var t=document.createElement("canvas");t.width=l.width,t.height=l.height,t.getContext("2d").drawImage(l,0,0),e.preloadedImages[i]=t,Zc.revokeObjectURL(s),o&&o(r)},l.onerror=function(){console.log("Image "+s+" could not be decoded"),t&&t()},l.src=s}}),e.preloadPlugins.push({canHandle:function(t){return!e.Pd&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(o,a,r,t){function s(t){l||(l=!0,e.preloadedAudios[a]=t,r&&r(o))}function i(){l||(l=!0,e.preloadedAudios[a]=new Audio,t&&t())}var l=!1;if(!Xc)return i();try{var n=new Blob([o],{type:$c(a)})}catch(e){return i()}var n=Zc.createObjectURL(n),u=new Audio;u.addEventListener("canplaythrough",function(){s(u)},!1),u.onerror=function(){if(!l){console.log("warning: browser could not fully decode audio "+a+", trying slower base64 approach");for(var e="",t=0,r=0,i=0;i<o.length;i++)for(t=t<<8|o[i],r+=8;6<=r;)var n=t>>r-6&63,r=r-6,e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n];2==r?e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t)<<4]+"==":4==r&&(e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t)<<2]+"="),u.src="data:audio/x-"+a.substr(-3)+";base64,"+e,s(u)}},u.src=n,ad(function(){s(u)})}});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 o,a;if(r){if(a={antialias:!1,alpha:!1},n)for(var s in n)a[s]=n[s];(a=GL.createContext(t,a))&&(o=GL.getContext(a).td),t.style.backgroundColor="black"}else o=t.getContext("2d");return o?(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=o,r&&GL.Od(a),e.Td=r,Uc.forEach(function(e){e()}),Vc()),o):null}var cd=!1,dd=void 0,ed=void 0;function fd(t,r,i){function n(){Sc=!1;var t=o.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t?(o.Da=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},o.Da=o.Da.bind(document),dd&&o.sa(),Sc=!0,ed&&gd()):(t.parentNode.insertBefore(o,t),t.parentNode.removeChild(t),ed&&hd()),e.onFullScreen&&e.onFullScreen(Sc),id(o)}void 0===(dd=t)&&(dd=!0),void 0===(ed=r)&&(ed=!1),void 0===(jd=i)&&(jd=null);var o=e.canvas,a=(cd||(cd=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1)),document.createElement("div"));o.parentNode.insertBefore(a,o),a.appendChild(o),a.p=a.requestFullScreen||a.mozRequestFullScreen||a.msRequestFullscreen||(a.webkitRequestFullScreen?function(){a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),i?a.p({Ud:i}):a.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,fs,Ob;function pd(){var t=e.canvas;od.forEach(function(e){e(t.width,t.height)})}function gd(){var e;"undefined"!=typeof SDL&&(e=Sa[SDL.screen+0*n.J>>2],C[SDL.screen+0*n.J>>2]=8388608|e),pd()}function hd(){var e;"undefined"!=typeof SDL&&(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,o=r,a=i;e.forcedAspectRatio&&0<e.forcedAspectRatio&&(o/a<e.forcedAspectRatio?o=Math.round(a*e.forcedAspectRatio):a=Math.round(o/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&&(n=Math.min(screen.width/o,screen.height/a),o=Math.round(o*n),a=Math.round(a*n)),ed?(t.width!=o&&(t.width=o),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&&(o!=r||a!=i?(t.style.setProperty("width",o+"px","important"),t.style.setProperty("height",a+"px","important")):(t.style.removeProperty("width"),t.style.removeProperty("height"))))}pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),!function(){var e,t;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),W("/dev","random",t="undefined"!=typeof crypto?(e=new Uint8Array(1),function(){return crypto.getRandomValues(e),e[0]}):da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0}),W("/dev","urandom",t),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)return(t={parent:null,A:{Oa:"fake"},k:{readlink:function(){return r.path}}}).parent=t;throw new L(J.ea)}},e}},"/proc/self/fd"),cb.unshift(function(){var t;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"),assert(0===(t=kc("/dev/stdin","r")).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,o,t,a,s,l,u,h,c,f){function r(t){function r(e){f&&f(),h||tc(n,o,e,a,s,c),l&&l(),lb()}var i=!1;e.preloadPlugins.forEach(function(e){!i&&e.canHandle(p)&&(e.handle(t,p,r,function(){u&&u(),lb()}),i=!0)}),i||r(t)}Vc();var p=o?Db(K(n,o)):n;kb(),"string"==typeof t?nd(t,function(e){r(e)},u):r(t)},e.FS_createLazyFile=function(e,t,l,r,i){var n,o;function a(){this.oa=!1,this.Y=[]}if(a.prototype.get=function(e){var t;if(!(e>this.length-1||e<0))return t=e%this.chunkSize,this.gb(e/this.chunkSize|0)[t]},a.prototype.pb=function(e){this.gb=e},a.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",l,!1),e.send(null),!(200<=e.status&&e.status<300||304===e.status))throw Error("Couldn't load "+l+". Status: "+e.status);var o=Number(e.getResponseHeader("Content-length")),a=1048576,s=((e=e.getResponseHeader("Accept-Ranges"))&&"bytes"===e||(a=o),this);s.pb(function(e){var t=e*a,r=(e+1)*a-1,r=Math.min(r,o-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(o-1<r)throw Error("only "+o+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",l,!1),o!==a&&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 "+l+". 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=o,this.Va=a,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 a,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}}),o=void 0}else o=l,n=void 0;var s=sc(e,t,r,i),u=(n?s.e=n:o&&(s.e=null,s.url=o),Object.defineProperty(s,"usedBytes",{get:function(){return this.e.length}}),{});return Object.keys(s.n).forEach(function(e){var t=s.n[e];u[e]=function(){if(uc(s))return t.apply(null,arguments);throw new L(J.H)}}),u.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 o=0;o<i;o++)t[r+o]=e[n+o];else for(o=0;o<i;o++)t[r+o]=e.get(n+o);return i},s.n=u,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 e=S(t,{parent:!0}).g,r=Bb(t),i=Nb(e,r);e:{try{o=Nb(e,r)}catch(e){o=e.S;break e}var n=Yb(e,"wx"),o=n||(N(o.mode)?J.P:0)}if(o)throw o===J.P&&(o=J.I),new L(o);if(!e.k.unlink)throw new L(J.I);if(i.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,r),e=Wb(i.parent.id,i.name),Q[e]===i)Q[e]=i.M;else for(e=Q[e];e;){if(e.M===i){e.M=i.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&&(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),Z=(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,o,a){try{e.dynCall_viiiii(t,r,i,n,o,a)}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,o,a,s){try{e.dynCall_viiiiii(t,r,i,n,o,a,s)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_iiiiii:function(t,r,i,n,o,a){try{return e.dynCall_iiiiii(t,r,i,n,o,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiii:function(t,r,i,n,o){try{e.dynCall_viiii(t,r,i,n,o)}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,i=xc(),n=X();switch(n){case 21505:case 21506:return i.tty?0:-J.Q;case 21519:return i.tty?(r=X(),C[r>>2]=0):-J.Q;case 21520:return i.tty?-J.q:-J.Q;case 21531:if(r=X(),i.n.ib)return i.n.ib(i,n,r);throw new L(J.Q);default:x("bad ioctl syscall "+n)}}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){tb.p--,ub.push(e);e:{if(e&&!vb[e])for(var 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(),o=X(),a=X();return assert(0===i),nc(r,n,a),C[o>>2]=r.position,r.na&&0===n&&0===a&&(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 o=X(),a=0,s=0;s<o;s++){var l=oc(i,y,C[n+8*s>>2],C[n+(8*s+4)>>2],void 0);if(l<0){r=-1;break e}a+=l}r=a}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},function(e,t,r){"use asm";var i=e.Int8Array;var n=e.Int16Array;var o=e.Int32Array;var s=e.Uint8Array;var u=e.Uint16Array;var h=e.Uint32Array;var c=e.Float32Array;var f=e.Float64Array;var pe=new i(r);var $=new n(r);var de=new o(r);var me=new s(r);var _e=new u(r);var p=new h(r);var d=new c(r);var ee=new f(r);var y=e.byteLength;var ge=t.STACKTOP|0;var x=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var T=t.ABORT|0;var w=t.cttz_i8|0;var E=0;var S=0;var A=0;var k=0;var O=e.NaN,P=e.Infinity;var R=0,C=0,M=0,I=0,D=0.0,L=0,H=0,Y=0,W=0.0;var re=0;var q=0;var V=0;var K=0;var J=0;var Z=0;var Q=0;var le=0;var ue=0;var he=0;var ce=e.Math.floor;var fe=e.Math.abs;var Te=e.Math.sqrt;var we=e.Math.pow;var Ee=e.Math.cos;var Se=e.Math.sin;var Ae=e.Math.tan;var ke=e.Math.acos;var Oe=e.Math.asin;var Pe=e.Math.atan;var Re=e.Math.atan2;var Ce=e.Math.exp;var Me=e.Math.log;var Ie=e.Math.ceil;var ve=e.Math.imul;var De=e.Math.min;var m=e.Math.clz32;var a=t.abort;var Le=t.assert;var Fe=t.invoke_iiii;var Ne=t.invoke_viiiii;var ze=t.invoke_vi;var Be=t.invoke_ii;var je=t.invoke_viii;var Ue=t.invoke_v;var Ge=t.invoke_viiiiii;var Xe=t.invoke_iiiiii;var He=t.invoke_viiii;var Ye=t._pthread_cleanup_pop;var We=t.___syscall54;var qe=t.___syscall6;var Ve=t._emscripten_set_main_loop_timing;var Ke=t.__ZSt18uncaught_exceptionv;var Je=t.___setErrNo;var z=t._sbrk;var Ze=t.___cxa_begin_catch;var Qe=t._emscripten_memcpy_big;var $e=t._sysconf;var et=t._pthread_getspecific;var tt=t._pthread_self;var rt=t._pthread_once;var it=t._pthread_key_create;var nt=t.___unlock;var ot=t._emscripten_set_main_loop;var at=t._pthread_setspecific;var st=t.___lock;var B=t._abort;var lt=t._pthread_cleanup_push;var ut=t._time;var ht=t.___syscall140;var ct=t.___syscall146;var ft=0.0;function pt(e){if(y(e)&16777215||y(e)<=16777215||y(e)>2147483648)return false;pe=new i(e);$=new n(e);de=new o(e);me=new s(e);_e=new u(e);p=new h(e);d=new c(e);ee=new f(e);r=e;return true}function dt(e){e=e|0;var t=0;t=ge;ge=ge+e|0;ge=ge+15&-16;return t|0}function mt(){return ge|0}function _t(e){e=e|0;ge=e}function gt(e,t){e=e|0;t=t|0;ge=e;x=t}function vt(e,t){e=e|0;t=t|0;if(!E){E=e;S=t}}function yt(e){e=e|0;pe[te>>0]=pe[e>>0];pe[te+1>>0]=pe[e+1>>0];pe[te+2>>0]=pe[e+2>>0];pe[te+3>>0]=pe[e+3>>0]}function bt(e){e=e|0;pe[te>>0]=pe[e>>0];pe[te+1>>0]=pe[e+1>>0];pe[te+2>>0]=pe[e+2>>0];pe[te+3>>0]=pe[e+3>>0];pe[te+4>>0]=pe[e+4>>0];pe[te+5>>0]=pe[e+5>>0];pe[te+6>>0]=pe[e+6>>0];pe[te+7>>0]=pe[e+7>>0]}function xt(e){e=e|0;re=e}function Tt(){return re|0}function F(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0;m=ge;ge=ge+608|0;f=m+88|0;c=m+72|0;l=m+64|0;s=m+48|0;a=m+24|0;o=m;h=m+96|0;p=m+92|0;u=e+4|0;d=e+8|0;if((de[u>>2]|0)>>>0>(de[d>>2]|0)>>>0){de[o>>2]=1154;de[o+4>>2]=2120;de[o+8>>2]=1133;xe(h,1100,o)|0;be(h,m+16|0)|0}if((2147418112/(i>>>0)|0)>>>0<=t>>>0){de[a>>2]=1154;de[a+4>>2]=2121;de[a+8>>2]=1169;xe(h,1100,a)|0;be(h,m+40|0)|0}a=de[d>>2]|0;if(a>>>0>=t>>>0){d=1;ge=m;return d|0}do{if(r){if(t){o=t+-1|0;if(!(o&t)){o=11;break}else t=o}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;o=10}else o=10}while(0);if((o|0)==10)if(!t){t=0;o=12}else o=11;if((o|0)==11)if(t>>>0<=a>>>0)o=12;if((o|0)==12){de[s>>2]=1154;de[s+4>>2]=2130;de[s+8>>2]=1217;xe(h,1100,s)|0;be(h,l)|0}r=ve(t,i)|0;do{if(!n){o=wt(de[e>>2]|0,r,p,1)|0;if(!o){d=0;ge=m;return d|0}else{de[e>>2]=o;break}}else{a=j(r,p)|0;if(!a){d=0;ge=m;return d|0}Ci[n&0](a,de[e>>2]|0,de[u>>2]|0);o=de[e>>2]|0;do{if(o)if(!(o&7)){X[de[104>>2]&1](o,0,0,1,de[27]|0)|0;break}else{de[c>>2]=1154;de[c+4>>2]=2499;de[c+8>>2]=1516;xe(h,1100,c)|0;be(h,f)|0;break}}while(0);de[e>>2]=a}}while(0);o=de[p>>2]|0;if(o>>>0>r>>>0)t=(o>>>0)/(i>>>0)|0;de[d>>2]=t;d=1;ge=m;return d|0}function wt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0,a=0,s=0,l=0,u=0;u=ge;ge=ge+592|0;l=u+48|0;o=u+24|0;n=u;s=u+72|0;a=u+68|0;if(e&7){de[n>>2]=1154;de[n+4>>2]=2499;de[n+8>>2]=1494;xe(s,1100,n)|0;be(s,u+16|0)|0;l=0;ge=u;return l|0}if(t>>>0>2147418112){de[o>>2]=1154;de[o+4>>2]=2499;de[o+8>>2]=1387;xe(s,1100,o)|0;be(s,u+40|0)|0;l=0;ge=u;return l|0}de[a>>2]=t;i=X[de[104>>2]&1](e,t,a,i,de[27]|0)|0;if(r)de[r>>2]=de[a>>2];if(!(i&7)){l=i;ge=u;return l|0}de[l>>2]=1154;de[l+4>>2]=2551;de[l+8>>2]=1440;xe(s,1100,l)|0;be(s,u+64|0)|0;l=i;ge=u;return l|0}function j(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0;l=ge;ge=ge+592|0;a=l+48|0;s=l+24|0;r=l;o=l+72|0;n=l+68|0;i=e+3&-4;i=(i|0)!=0?i:4;if(i>>>0>2147418112){de[r>>2]=1154;de[r+4>>2]=2499;de[r+8>>2]=1387;xe(o,1100,r)|0;be(o,l+16|0)|0;s=0;ge=l;return s|0}de[n>>2]=i;r=X[de[104>>2]&1](0,i,n,1,de[27]|0)|0;e=de[n>>2]|0;if(t)de[t>>2]=e;if((r|0)==0|e>>>0<i>>>0){de[s>>2]=1154;de[s+4>>2]=2499;de[s+8>>2]=1413;xe(o,1100,s)|0;be(o,l+40|0)|0;s=0;ge=l;return s|0}if(!(r&7)){s=r;ge=l;return s|0}de[a>>2]=1154;de[a+4>>2]=2526;de[a+8>>2]=1440;xe(o,1100,a)|0;be(o,l+64|0)|0;s=r;ge=l;return s|0}function Et(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,O=0,P=0,R=0,F=0,C=0,N=0,M=0,z=0,I=0,D=0,L=0;L=ge;ge=ge+960|0;z=L+232|0;M=L+216|0;N=L+208|0;C=L+192|0;F=L+184|0;R=L+168|0;P=L+160|0;O=L+144|0;S=L+136|0;E=L+120|0;w=L+112|0;T=L+96|0;y=L+88|0;v=L+72|0;g=L+64|0;_=L+48|0;c=L+40|0;p=L+24|0;f=L+16|0;h=L;k=L+440|0;I=L+376|0;D=L+304|0;m=L+236|0;if((t|0)==0|i>>>0>11){e=0;ge=L;return e|0}de[e>>2]=t;n=D;o=n+68|0;do{de[n>>2]=0;n=n+4|0}while((n|0)<(o|0));o=0;do{n=pe[r+o>>0]|0;if(n<<24>>24){A=D+((n&255)<<2)|0;de[A>>2]=(de[A>>2]|0)+1}o=o+1|0}while((o|0)!=(t|0));o=0;u=1;a=0;s=-1;l=0;while(1){n=de[D+(u<<2)>>2]|0;if(!n)de[e+28+(u+-1<<2)>>2]=0;else{A=u+-1|0;de[I+(A<<2)>>2]=o;o=n+o|0;x=16-u|0;de[e+28+(A<<2)>>2]=(o+-1<<x|(1<<x)+-1)+1;de[e+96+(A<<2)>>2]=l;de[m+(u<<2)>>2]=l;a=a>>>0>u>>>0?a:u;s=s>>>0<u>>>0?s:u;l=n+l|0}u=u+1|0;if((u|0)==17){A=a;break}else o=o<<1}de[e+4>>2]=l;o=e+172|0;do{if(l>>>0>(de[o>>2]|0)>>>0){de[o>>2]=l;if(l){n=l+-1|0;if(n&l)d=14}else{n=-1;d=14}if((d|0)==14){x=n>>>16|n;x=x>>>8|x;x=x>>>4|x;x=x>>>2|x;x=(x>>>1|x)+1|0;de[o>>2]=x>>>0>t>>>0?t:x}a=e+176|0;n=de[a>>2]|0;do{if(n){x=de[n+-4>>2]|0;n=n+-8|0;if(!((x|0)!=0?(x|0)==(~de[n>>2]|0):0)){de[h>>2]=1154;de[h+4>>2]=644;de[h+8>>2]=1863;xe(k,1100,h)|0;be(k,f)|0}if(!(n&7)){X[de[104>>2]&1](n,0,0,1,de[27]|0)|0;break}else{de[p>>2]=1154;de[p+4>>2]=2499;de[p+8>>2]=1516;xe(k,1100,p)|0;be(k,c)|0;break}}}while(0);o=de[o>>2]|0;o=(o|0)!=0?o:1;n=j((o<<1)+8|0,0)|0;if(!n){de[a>>2]=0;n=0;break}else{de[n+4>>2]=o;de[n>>2]=~o;de[a>>2]=n+8;d=25;break}}else d=25}while(0);e:do{if((d|0)==25){x=e+24|0;pe[x>>0]=s;pe[e+25>>0]=A;o=e+176|0;a=0;do{b=pe[r+a>>0]|0;n=b&255;if(b<<24>>24){if(!(de[D+(n<<2)>>2]|0)){de[_>>2]=1154;de[_+4>>2]=2273;de[_+8>>2]=1261;xe(k,1100,_)|0;be(k,g)|0}b=m+(n<<2)|0;n=de[b>>2]|0;de[b>>2]=n+1;if(n>>>0>=l>>>0){de[v>>2]=1154;de[v+4>>2]=2277;de[v+8>>2]=1274;xe(k,1100,v)|0;be(k,y)|0}$[(de[o>>2]|0)+(n<<1)>>1]=a}a=a+1|0}while((a|0)!=(t|0));n=pe[x>>0]|0;y=(n&255)>>>0<i>>>0?i:0;b=e+8|0;de[b>>2]=y;v=(y|0)!=0;if(v){g=1<<y;n=e+164|0;do{if(g>>>0>(de[n>>2]|0)>>>0){de[n>>2]=g;a=e+168|0;n=de[a>>2]|0;do{if(n){_=de[n+-4>>2]|0;n=n+-8|0;if(!((_|0)!=0?(_|0)==(~de[n>>2]|0):0)){de[T>>2]=1154;de[T+4>>2]=644;de[T+8>>2]=1863;xe(k,1100,T)|0;be(k,w)|0}if(!(n&7)){X[de[104>>2]&1](n,0,0,1,de[27]|0)|0;break}else{de[E>>2]=1154;de[E+4>>2]=2499;de[E+8>>2]=1516;xe(k,1100,E)|0;be(k,S)|0;break}}}while(0);n=g<<2;o=j(n+8|0,0)|0;if(!o){de[a>>2]=0;n=0;break e}else{S=o+8|0;de[o+4>>2]=g;de[o>>2]=~g;de[a>>2]=S;o=S;break}}else{o=e+168|0;n=g<<2;a=o;o=de[o>>2]|0}}while(0);G(o|0,-1,n|0)|0;d=e+176|0;_=1;do{if(de[D+(_<<2)>>2]|0){t=y-_|0;m=1<<t;o=_+-1|0;s=de[I+(o<<2)>>2]|0;if(o>>>0>=16){de[O>>2]=1154;de[O+4>>2]=1953;de[O+8>>2]=1737;xe(k,1100,O)|0;be(k,P)|0}n=de[e+28+(o<<2)>>2]|0;if(!n)p=-1;else p=(n+-1|0)>>>(16-_|0);if(s>>>0<=p>>>0){c=(de[e+96+(o<<2)>>2]|0)-s|0;f=_<<16;do{n=_e[(de[d>>2]|0)+(c+s<<1)>>1]|0;if((me[r+n>>0]|0|0)!=(_|0)){de[R>>2]=1154;de[R+4>>2]=2319;de[R+8>>2]=1303;xe(k,1100,R)|0;be(k,F)|0}h=s<<t;o=n|f;u=0;do{l=u+h|0;if(l>>>0>=g>>>0){de[C>>2]=1154;de[C+4>>2]=2325;de[C+8>>2]=1337;xe(k,1100,C)|0;be(k,N)|0}n=de[a>>2]|0;if((de[n+(l<<2)>>2]|0)!=-1){de[M>>2]=1154;de[M+4>>2]=2327;de[M+8>>2]=1360;xe(k,1100,M)|0;be(k,z)|0;n=de[a>>2]|0}de[n+(l<<2)>>2]=o;u=u+1|0}while(u>>>0<m>>>0);s=s+1|0}while(s>>>0<=p>>>0)}}_=_+1|0}while(y>>>0>=_>>>0);n=pe[x>>0]|0}o=e+96|0;de[o>>2]=(de[o>>2]|0)-(de[I>>2]|0);o=e+100|0;de[o>>2]=(de[o>>2]|0)-(de[I+4>>2]|0);o=e+104|0;de[o>>2]=(de[o>>2]|0)-(de[I+8>>2]|0);o=e+108|0;de[o>>2]=(de[o>>2]|0)-(de[I+12>>2]|0);o=e+112|0;de[o>>2]=(de[o>>2]|0)-(de[I+16>>2]|0);o=e+116|0;de[o>>2]=(de[o>>2]|0)-(de[I+20>>2]|0);o=e+120|0;de[o>>2]=(de[o>>2]|0)-(de[I+24>>2]|0);o=e+124|0;de[o>>2]=(de[o>>2]|0)-(de[I+28>>2]|0);o=e+128|0;de[o>>2]=(de[o>>2]|0)-(de[I+32>>2]|0);o=e+132|0;de[o>>2]=(de[o>>2]|0)-(de[I+36>>2]|0);o=e+136|0;de[o>>2]=(de[o>>2]|0)-(de[I+40>>2]|0);o=e+140|0;de[o>>2]=(de[o>>2]|0)-(de[I+44>>2]|0);o=e+144|0;de[o>>2]=(de[o>>2]|0)-(de[I+48>>2]|0);o=e+148|0;de[o>>2]=(de[o>>2]|0)-(de[I+52>>2]|0);o=e+152|0;de[o>>2]=(de[o>>2]|0)-(de[I+56>>2]|0);o=e+156|0;de[o>>2]=(de[o>>2]|0)-(de[I+60>>2]|0);o=e+16|0;de[o>>2]=0;a=e+20|0;de[a>>2]=n&255;t:do{if(v){while(1){if(!i)break t;n=i+-1|0;if(!(de[D+(i<<2)>>2]|0))i=n;else break}de[o>>2]=de[e+28+(n<<2)>>2];n=y+1|0;de[a>>2]=n;if(n>>>0<=A>>>0){while(1){if(de[D+(n<<2)>>2]|0)break;n=n+1|0;if(n>>>0>A>>>0)break t}de[a>>2]=n}}}while(0);de[e+92>>2]=-1;de[e+160>>2]=1048575;de[e+12>>2]=32-(de[b>>2]|0);n=1}}while(0);e=n;ge=L;return e|0}function St(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0;if(!e){n=Yr(t)|0;if(!r){r=n;return r|0}if(!n)o=0;else o=qr(n)|0;de[r>>2]=o;r=n;return r|0}if(!t){b(e);if(!r){r=0;return r|0}de[r>>2]=0;r=0;return r|0}n=Wr(e,t)|0;o=(n|0)!=0;if(o|i^1)o=o?n:e;else{n=Wr(e,t)|0;o=(n|0)==0?e:n}if(!r){r=n;return r|0}t=qr(o)|0;de[r>>2]=t;r=n;return r|0}function _(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((de[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}de[r+4>>2]=(me[e+12>>0]|0)<<8|(me[e+13>>0]|0);de[r+8>>2]=(me[e+14>>0]|0)<<8|(me[e+15>>0]|0);de[r+12>>2]=me[e+16>>0];de[r+16>>2]=me[e+17>>0];t=e+18|0;i=r+32|0;de[i>>2]=me[t>>0];de[i+4>>2]=0;t=pe[t>>0]|0;de[r+20>>2]=t<<24>>24==0|t<<24>>24==9?8:16;de[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);de[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 At(e){e=e|0;Ze(e|0)|0;$t()}function N(e){e=e|0;var t=0,r=0,i=0,n=0,o=0;o=ge;ge=ge+544|0;n=o;i=o+24|0;t=de[e+20>>2]|0;if(t)kt(t);t=e+4|0;r=de[t>>2]|0;if(!r){n=e+16|0;pe[n>>0]=0;ge=o;return}if(!(r&7))X[de[104>>2]&1](r,0,0,1,de[27]|0)|0;else{de[n>>2]=1154;de[n+4>>2]=2499;de[n+8>>2]=1516;xe(i,1100,n)|0;be(i,o+16|0)|0}de[t>>2]=0;de[e+8>>2]=0;de[e+12>>2]=0;n=e+16|0;pe[n>>0]=0;ge=o}function kt(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0;p=ge;ge=ge+640|0;f=p+112|0;c=p+96|0;h=p+88|0;u=p+72|0;l=p+64|0;s=p+48|0;i=p+40|0;o=p+24|0;n=p+16|0;r=p;a=p+120|0;if(!e){ge=p;return}t=de[e+168>>2]|0;do{if(t){d=de[t+-4>>2]|0;t=t+-8|0;if(!((d|0)!=0?(d|0)==(~de[t>>2]|0):0)){de[r>>2]=1154;de[r+4>>2]=644;de[r+8>>2]=1863;xe(a,1100,r)|0;be(a,n)|0}if(!(t&7)){X[de[104>>2]&1](t,0,0,1,de[27]|0)|0;break}else{de[o>>2]=1154;de[o+4>>2]=2499;de[o+8>>2]=1516;xe(a,1100,o)|0;be(a,i)|0;break}}}while(0);t=de[e+176>>2]|0;do{if(t){d=de[t+-4>>2]|0;t=t+-8|0;if(!((d|0)!=0?(d|0)==(~de[t>>2]|0):0)){de[s>>2]=1154;de[s+4>>2]=644;de[s+8>>2]=1863;xe(a,1100,s)|0;be(a,l)|0}if(!(t&7)){X[de[104>>2]&1](t,0,0,1,de[27]|0)|0;break}else{de[u>>2]=1154;de[u+4>>2]=2499;de[u+8>>2]=1516;xe(a,1100,u)|0;be(a,h)|0;break}}}while(0);if(!(e&7)){X[de[104>>2]&1](e,0,0,1,de[27]|0)|0;ge=p}else{de[c>>2]=1154;de[c+4>>2]=2499;de[c+8>>2]=1516;xe(a,1100,c)|0;be(a,f)|0;ge=p}}function Ot(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0;h=ge;ge=ge+560|0;a=h+40|0;s=h+24|0;t=h;o=h+48|0;n=e+8|0;r=de[n>>2]|0;if((r+-1|0)>>>0>=8192){de[t>>2]=1154;de[t+4>>2]=2997;de[t+8>>2]=1541;xe(o,1100,t)|0;be(o,h+16|0)|0}de[e>>2]=r;i=e+20|0;t=de[i>>2]|0;if(!t){t=j(180,0)|0;if(!t)t=0;else{u=t+164|0;de[u>>2]=0;de[u+4>>2]=0;de[u+8>>2]=0;de[u+12>>2]=0}de[i>>2]=t;u=t;l=de[e>>2]|0}else{u=t;l=r}if(!(de[n>>2]|0)){de[s>>2]=1154;de[s+4>>2]=903;de[s+8>>2]=1781;xe(o,1100,s)|0;be(o,a)|0;o=de[e>>2]|0}else o=l;n=de[e+4>>2]|0;if(o>>>0>16){r=o;t=0}else{e=0;u=Et(u,l,n,e)|0;ge=h;return u|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<o>>>0&1)|0;e=e>>>0<11?e&255:11;u=Et(u,l,n,e)|0;ge=h;return u|0}function U(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,O=0,P=0,R=0,C=0,M=0,I=0,D=0,L=0;L=ge;ge=ge+800|0;R=L+256|0;P=L+240|0;O=L+232|0;k=L+216|0;A=L+208|0;S=L+192|0;E=L+184|0;w=L+168|0;T=L+160|0;x=L+144|0;b=L+136|0;y=L+120|0;v=L+112|0;g=L+96|0;_=L+88|0;m=L+72|0;c=L+64|0;h=L+48|0;s=L+40|0;l=L+24|0;o=L+16|0;n=L;I=L+288|0;D=L+264|0;C=Pt(e,14)|0;if(!C){de[t>>2]=0;r=t+4|0;i=de[r>>2]|0;if(i){if(!(i&7))X[de[104>>2]&1](i,0,0,1,de[27]|0)|0;else{de[n>>2]=1154;de[n+4>>2]=2499;de[n+8>>2]=1516;xe(I,1100,n)|0;be(I,o)|0}de[r>>2]=0;de[t+8>>2]=0;de[t+12>>2]=0}pe[t+16>>0]=0;r=t+20|0;i=de[r>>2]|0;if(!i){t=1;ge=L;return t|0}kt(i);de[r>>2]=0;t=1;ge=L;return t|0}p=t+4|0;d=t+8|0;r=de[d>>2]|0;if((r|0)!=(C|0)){if(r>>>0<=C>>>0){do{if((de[t+12>>2]|0)>>>0<C>>>0){if(F(p,C,(r+1|0)==(C|0),1,0)|0){r=de[d>>2]|0;break}pe[t+16>>0]=1;t=0;ge=L;return t|0}}while(0);G((de[p>>2]|0)+r|0,0,C-r|0)|0}de[d>>2]=C}G(de[p>>2]|0,0,C|0)|0;f=e+20|0;r=de[f>>2]|0;if((r|0)<5){o=e+4|0;a=e+8|0;n=e+16|0;do{i=de[o>>2]|0;if((i|0)==(de[a>>2]|0))i=0;else{de[o>>2]=i+1;i=me[i>>0]|0}r=r+8|0;de[f>>2]=r;if((r|0)>=33){de[l>>2]=1154;de[l+4>>2]=3199;de[l+8>>2]=1650;xe(I,1100,l)|0;be(I,s)|0;r=de[f>>2]|0}i=i<<32-r|de[n>>2];de[n>>2]=i}while((r|0)<5)}else{i=e+16|0;n=i;i=de[i>>2]|0}u=i>>>27;de[n>>2]=i<<5;de[f>>2]=r+-5;if((u+-1|0)>>>0>20){t=0;ge=L;return t|0}de[D+20>>2]=0;de[D>>2]=0;de[D+4>>2]=0;de[D+8>>2]=0;de[D+12>>2]=0;pe[D+16>>0]=0;r=D+4|0;i=D+8|0;e:do{if(F(r,21,0,1,0)|0){s=de[i>>2]|0;l=de[r>>2]|0;G(l+s|0,0,21-s|0)|0;de[i>>2]=21;if(u){n=e+4|0;o=e+8|0;a=e+16|0;s=0;do{r=de[f>>2]|0;if((r|0)<3)do{i=de[n>>2]|0;if((i|0)==(de[o>>2]|0))i=0;else{de[n>>2]=i+1;i=me[i>>0]|0}r=r+8|0;de[f>>2]=r;if((r|0)>=33){de[h>>2]=1154;de[h+4>>2]=3199;de[h+8>>2]=1650;xe(I,1100,h)|0;be(I,c)|0;r=de[f>>2]|0}i=i<<32-r|de[a>>2];de[a>>2]=i}while((r|0)<3);else i=de[a>>2]|0;de[a>>2]=i<<3;de[f>>2]=r+-3;pe[l+(me[1611+s>>0]|0)>>0]=i>>>29;s=s+1|0}while((s|0)!=(u|0))}if(Ot(D)|0){s=e+4|0;l=e+8|0;u=e+16|0;i=0;t:while(1){a=C-i|0;r=ye(e,D)|0;r:do{if(r>>>0<17){if((de[d>>2]|0)>>>0<=i>>>0){de[m>>2]=1154;de[m+4>>2]=903;de[m+8>>2]=1781;xe(I,1100,m)|0;be(I,_)|0}pe[(de[p>>2]|0)+i>>0]=r;r=i+1|0}else switch(r|0){case 17:{r=de[f>>2]|0;if((r|0)<3)do{n=de[s>>2]|0;if((n|0)==(de[l>>2]|0))n=0;else{de[s>>2]=n+1;n=me[n>>0]|0}r=r+8|0;de[f>>2]=r;if((r|0)>=33){de[g>>2]=1154;de[g+4>>2]=3199;de[g+8>>2]=1650;xe(I,1100,g)|0;be(I,v)|0;r=de[f>>2]|0}n=n<<32-r|de[u>>2];de[u>>2]=n}while((r|0)<3);else n=de[u>>2]|0;de[u>>2]=n<<3;de[f>>2]=r+-3;r=(n>>>29)+3|0;if(r>>>0>a>>>0){r=0;break e}r=r+i|0;break r}case 18:{r=de[f>>2]|0;if((r|0)<7)do{n=de[s>>2]|0;if((n|0)==(de[l>>2]|0))n=0;else{de[s>>2]=n+1;n=me[n>>0]|0}r=r+8|0;de[f>>2]=r;if((r|0)>=33){de[y>>2]=1154;de[y+4>>2]=3199;de[y+8>>2]=1650;xe(I,1100,y)|0;be(I,b)|0;r=de[f>>2]|0}n=n<<32-r|de[u>>2];de[u>>2]=n}while((r|0)<7);else n=de[u>>2]|0;de[u>>2]=n<<7;de[f>>2]=r+-7;r=(n>>>25)+11|0;if(r>>>0>a>>>0){r=0;break e}r=r+i|0;break r}default:{if((r+-19|0)>>>0>=2){M=90;break t}o=de[f>>2]|0;if((r|0)==19){if((o|0)<2){n=o;while(1){r=de[s>>2]|0;if((r|0)==(de[l>>2]|0))o=0;else{de[s>>2]=r+1;o=me[r>>0]|0}r=n+8|0;de[f>>2]=r;if((r|0)>=33){de[x>>2]=1154;de[x+4>>2]=3199;de[x+8>>2]=1650;xe(I,1100,x)|0;be(I,T)|0;r=de[f>>2]|0}n=o<<32-r|de[u>>2];de[u>>2]=n;if((r|0)<2)n=r;else break}}else{n=de[u>>2]|0;r=o}de[u>>2]=n<<2;de[f>>2]=r+-2;o=(n>>>30)+3|0}else{if((o|0)<6){n=o;while(1){r=de[s>>2]|0;if((r|0)==(de[l>>2]|0))o=0;else{de[s>>2]=r+1;o=me[r>>0]|0}r=n+8|0;de[f>>2]=r;if((r|0)>=33){de[w>>2]=1154;de[w+4>>2]=3199;de[w+8>>2]=1650;xe(I,1100,w)|0;be(I,E)|0;r=de[f>>2]|0}n=o<<32-r|de[u>>2];de[u>>2]=n;if((r|0)<6)n=r;else break}}else{n=de[u>>2]|0;r=o}de[u>>2]=n<<6;de[f>>2]=r+-6;o=(n>>>26)+7|0}if((i|0)==0|o>>>0>a>>>0){r=0;break e}r=i+-1|0;if((de[d>>2]|0)>>>0<=r>>>0){de[S>>2]=1154;de[S+4>>2]=903;de[S+8>>2]=1781;xe(I,1100,S)|0;be(I,A)|0}n=pe[(de[p>>2]|0)+r>>0]|0;if(!(n<<24>>24)){r=0;break e}r=o+i|0;if(i>>>0>=r>>>0){r=i;break r}do{if((de[d>>2]|0)>>>0<=i>>>0){de[k>>2]=1154;de[k+4>>2]=903;de[k+8>>2]=1781;xe(I,1100,k)|0;be(I,O)|0}pe[(de[p>>2]|0)+i>>0]=n;i=i+1|0}while((i|0)!=(r|0))}}}while(0);if(C>>>0>r>>>0)i=r;else break}if((M|0)==90){de[P>>2]=1154;de[P+4>>2]=3140;de[P+8>>2]=1632;xe(I,1100,P)|0;be(I,R)|0;r=0;break}if((C|0)==(r|0))r=Ot(t)|0;else r=0}else r=0}else{pe[D+16>>0]=1;r=0}}while(0);N(D);t=r;ge=L;return t|0}function Pt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0;h=ge;ge=ge+544|0;s=h+16|0;a=h;o=h+24|0;if(!t){u=0;ge=h;return u|0}if(t>>>0<=16){u=Rt(e,t)|0;ge=h;return u|0}l=Rt(e,t+-16|0)|0;u=e+20|0;t=de[u>>2]|0;if((t|0)<16){i=e+4|0;n=e+8|0;r=e+16|0;do{e=de[i>>2]|0;if((e|0)==(de[n>>2]|0))e=0;else{de[i>>2]=e+1;e=me[e>>0]|0}t=t+8|0;de[u>>2]=t;if((t|0)>=33){de[a>>2]=1154;de[a+4>>2]=3199;de[a+8>>2]=1650;xe(o,1100,a)|0;be(o,s)|0;t=de[u>>2]|0}e=e<<32-t|de[r>>2];de[r>>2]=e}while((t|0)<16)}else{e=e+16|0;r=e;e=de[e>>2]|0}de[r>>2]=e<<16;de[u>>2]=t+-16;u=e>>>16|l<<16;ge=h;return u|0}function ye(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0,y=0;y=ge;ge=ge+608|0;m=y+88|0;d=y+72|0;f=y+64|0;c=y+48|0;h=y+40|0;p=y+24|0;u=y+16|0;l=y;g=y+96|0;_=de[t+20>>2]|0;v=e+20|0;s=de[v>>2]|0;do{if((s|0)<24){a=e+4|0;i=de[a>>2]|0;n=de[e+8>>2]|0;r=i>>>0<n>>>0;if((s|0)>=16){if(r){de[a>>2]=i+1;r=me[i>>0]|0}else r=0;de[v>>2]=s+8;a=e+16|0;o=r<<24-s|de[a>>2];de[a>>2]=o;break}if(r){o=(me[i>>0]|0)<<8;r=i+1|0}else{o=0;r=i}if(r>>>0<n>>>0){i=me[r>>0]|0;r=r+1|0}else i=0;de[a>>2]=r;de[v>>2]=s+16;a=e+16|0;o=(i|o)<<16-s|de[a>>2];de[a>>2]=o}else{o=e+16|0;a=o;o=de[o>>2]|0}}while(0);n=(o>>>16)+1|0;do{if(n>>>0<=(de[_+16>>2]|0)>>>0){i=de[(de[_+168>>2]|0)+(o>>>(32-(de[_+8>>2]|0)|0)<<2)>>2]|0;if((i|0)==-1){de[l>>2]=1154;de[l+4>>2]=3244;de[l+8>>2]=1677;xe(g,1100,l)|0;be(g,u)|0}r=i&65535;i=i>>>16;if((de[t+8>>2]|0)>>>0<=r>>>0){de[p>>2]=1154;de[p+4>>2]=902;de[p+8>>2]=1781;xe(g,1100,p)|0;be(g,h)|0}if((me[(de[t+4>>2]|0)+r>>0]|0|0)!=(i|0)){de[c>>2]=1154;de[c+4>>2]=3248;de[c+8>>2]=1694;xe(g,1100,c)|0;be(g,f)|0}}else{i=de[_+20>>2]|0;while(1){r=i+-1|0;if(n>>>0>(de[_+28+(r<<2)>>2]|0)>>>0)i=i+1|0;else break}r=(o>>>(32-i|0))+(de[_+96+(r<<2)>>2]|0)|0;if(r>>>0<(de[t>>2]|0)>>>0){r=_e[(de[_+176>>2]|0)+(r<<1)>>1]|0;break}de[d>>2]=1154;de[d+4>>2]=3266;de[d+8>>2]=1632;xe(g,1100,d)|0;be(g,m)|0;v=0;ge=y;return v|0}}while(0);de[a>>2]=de[a>>2]<<i;de[v>>2]=(de[v>>2]|0)-i;v=r;ge=y;return v|0}function Rt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0;h=ge;ge=ge+560|0;s=h+40|0;l=h+24|0;r=h;a=h+48|0;if(t>>>0>=33){de[r>>2]=1154;de[r+4>>2]=3190;de[r+8>>2]=1634;xe(a,1100,r)|0;be(a,h+16|0)|0}u=e+20|0;r=de[u>>2]|0;if((r|0)>=(t|0)){o=e+16|0;a=o;o=de[o>>2]|0;s=r;l=32-t|0;l=o>>>l;o=o<<t;de[a>>2]=o;t=s-t|0;de[u>>2]=t;ge=h;return l|0}n=e+4|0;o=e+8|0;i=e+16|0;do{e=de[n>>2]|0;if((e|0)==(de[o>>2]|0))e=0;else{de[n>>2]=e+1;e=me[e>>0]|0}r=r+8|0;de[u>>2]=r;if((r|0)>=33){de[l>>2]=1154;de[l+4>>2]=3199;de[l+8>>2]=1650;xe(a,1100,l)|0;be(a,s)|0;r=de[u>>2]|0}e=e<<32-r|de[i>>2];de[i>>2]=e}while((r|0)<(t|0));l=32-t|0;l=e>>>l;s=e<<t;de[i>>2]=s;t=r-t|0;de[u>>2]=t;ge=h;return l|0}function Ct(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0;d=ge;ge=ge+544|0;f=d+16|0;c=d;h=d+24|0;if((e|0)==0|t>>>0<62){p=0;ge=d;return p|0}u=j(300,0)|0;if(!u){p=0;ge=d;return p|0}de[u>>2]=519686845;r=u+4|0;de[r>>2]=0;i=u+8|0;de[i>>2]=0;l=u+88|0;n=u+136|0;o=u+160|0;a=l;s=a+44|0;do{de[a>>2]=0;a=a+4|0}while((a|0)<(s|0));pe[l+44>>0]=0;m=u+184|0;a=u+208|0;s=u+232|0;_=u+252|0;de[_>>2]=0;de[_+4>>2]=0;de[_+8>>2]=0;pe[_+12>>0]=0;_=u+268|0;de[_>>2]=0;de[_+4>>2]=0;de[_+8>>2]=0;pe[_+12>>0]=0;_=u+284|0;de[_>>2]=0;de[_+4>>2]=0;de[_+8>>2]=0;pe[_+12>>0]=0;de[n>>2]=0;de[n+4>>2]=0;de[n+8>>2]=0;de[n+12>>2]=0;de[n+16>>2]=0;pe[n+20>>0]=0;de[o>>2]=0;de[o+4>>2]=0;de[o+8>>2]=0;de[o+12>>2]=0;de[o+16>>2]=0;pe[o+20>>0]=0;de[m>>2]=0;de[m+4>>2]=0;de[m+8>>2]=0;de[m+12>>2]=0;de[m+16>>2]=0;pe[m+20>>0]=0;de[a>>2]=0;de[a+4>>2]=0;de[a+8>>2]=0;de[a+12>>2]=0;de[a+16>>2]=0;pe[a+20>>0]=0;de[s>>2]=0;de[s+4>>2]=0;de[s+8>>2]=0;de[s+12>>2]=0;pe[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){de[l>>2]=e;de[r>>2]=e;de[i>>2]=t;if(jt(u)|0){r=de[l>>2]|0;if((me[r+39>>0]|0)<<8|(me[r+40>>0]|0)){if(!(Ut(u)|0))break;if(!(Gt(u)|0))break;r=de[l>>2]|0}if(!((me[r+55>>0]|0)<<8|(me[r+56>>0]|0))){_=u;ge=d;return _|0}if(Xt(u)|0?Ht(u)|0:0){_=u;ge=d;return _|0}}}else p=7}while(0);if((p|0)==7)de[l>>2]=0;Kt(u);if(!(u&7)){X[de[104>>2]&1](u,0,0,1,de[27]|0)|0;_=0;ge=d;return _|0}else{de[c>>2]=1154;de[c+4>>2]=2499;de[c+8>>2]=1516;xe(h,1100,c)|0;be(h,f)|0;_=0;ge=d;return _|0}return 0}function Mt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0,s=0,l=0,u=0,h=0;h=ge;ge=ge+544|0;u=h;l=h+24|0;o=de[e+88>>2]|0;s=(me[o+70+(n<<2)+1>>0]|0)<<16|(me[o+70+(n<<2)>>0]|0)<<24|(me[o+70+(n<<2)+2>>0]|0)<<8|(me[o+70+(n<<2)+3>>0]|0);a=n+1|0;if(a>>>0<(me[o+16>>0]|0)>>>0)o=(me[o+70+(a<<2)+1>>0]|0)<<16|(me[o+70+(a<<2)>>0]|0)<<24|(me[o+70+(a<<2)+2>>0]|0)<<8|(me[o+70+(a<<2)+3>>0]|0);else o=de[e+8>>2]|0;if(o>>>0>s>>>0){l=e+4|0;l=de[l>>2]|0;l=l+s|0;u=o-s|0;u=It(e,l,u,t,r,i,n)|0;ge=h;return u|0}de[u>>2]=1154;de[u+4>>2]=3704;de[u+8>>2]=1792;xe(l,1100,u)|0;be(l,h+16|0)|0;l=e+4|0;l=de[l>>2]|0;l=l+s|0;u=o-s|0;u=It(e,l,u,t,r,i,n)|0;ge=h;return u|0}function It(e,t,r,i,n,o,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;a=a|0;var s=0,l=0,u=0,h=0;h=de[e+88>>2]|0;l=((me[h+12>>0]|0)<<8|(me[h+13>>0]|0))>>>a;u=((me[h+14>>0]|0)<<8|(me[h+15>>0]|0))>>>a;l=l>>>0>1?(l+3|0)>>>2:1;u=u>>>0>1?(u+3|0)>>>2:1;h=h+18|0;a=pe[h>>0]|0;a=ve(a<<24>>24==0|a<<24>>24==9?8:16,l)|0;if(o)if((o&3|0)==0&a>>>0<=o>>>0)a=o;else{e=0;return e|0}if((ve(a,u)|0)>>>0>n>>>0){e=0;return e|0}o=(l+1|0)>>>1;s=(u+1|0)>>>1;if(!r){e=0;return e|0}de[e+92>>2]=t;de[e+96>>2]=t;de[e+104>>2]=r;de[e+100>>2]=t+r;de[e+108>>2]=0;de[e+112>>2]=0;switch(me[h>>0]|0|0){case 0:{Yt(e,i,n,a,l,u,o,s)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{Wt(e,i,n,a,l,u,o,s)|0;e=1;return e|0}case 9:{qt(e,i,n,a,l,u,o,s)|0;e=1;return e|0}case 8:case 7:{Vt(e,i,n,a,l,u,o,s)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function Dt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ge;ge=ge+48|0;r=i;de[r>>2]=40;_(e,t,r)|0;ge=i;return de[r+4>>2]|0}function Lt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ge;ge=ge+48|0;r=i;de[r>>2]=40;_(e,t,r)|0;ge=i;return de[r+8>>2]|0}function Ft(e,t){e=e|0;t=t|0;var r=0,i=0;i=ge;ge=ge+48|0;r=i;de[r>>2]=40;_(e,t,r)|0;ge=i;return de[r+12>>2]|0}function Nt(e,t){e=e|0;t=t|0;var r=0,i=0;i=ge;ge=ge+48|0;r=i;de[r>>2]=40;_(e,t,r)|0;ge=i;return de[r+32>>2]|0}function zt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0,a=0,s=0,l=0,u=0;l=ge;ge=ge+576|0;a=l+56|0;o=l+40|0;n=l+64|0;u=l;de[u>>2]=40;_(e,t,u)|0;i=(((de[u+4>>2]|0)>>>r)+3|0)>>>2;t=(((de[u+8>>2]|0)>>>r)+3|0)>>>2;r=u+32|0;e=de[r+4>>2]|0;do{switch(de[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){de[o>>2]=1154;de[o+4>>2]=2663;de[o+8>>2]=1535;xe(n,1100,o)|0;be(n,a)|0;e=0}u=ve(ve(t,i)|0,e)|0;ge=l;return u|0}function Bt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0;d=ge;ge=ge+608|0;f=d+80|0;p=d+64|0;s=d+56|0;a=d+40|0;h=d+88|0;m=d;c=d+84|0;de[m>>2]=40;_(e,t,m)|0;l=(((de[m+4>>2]|0)>>>n)+3|0)>>>2;m=m+32|0;o=de[m+4>>2]|0;do{switch(de[m>>2]|0){case 0:{if(!o)o=8;else u=13;break}case 1:{if(!o)u=12;else u=13;break}case 2:{if(!o)u=12;else u=13;break}case 3:{if(!o)u=12;else u=13;break}case 4:{if(!o)u=12;else u=13;break}case 5:{if(!o)u=12;else u=13;break}case 6:{if(!o)u=12;else u=13;break}case 7:{if(!o)u=12;else u=13;break}case 8:{if(!o)u=12;else u=13;break}case 9:{if(!o)o=8;else u=13;break}default:u=13}}while(0);if((u|0)==12)o=16;else if((u|0)==13){de[a>>2]=1154;de[a+4>>2]=2663;de[a+8>>2]=1535;xe(h,1100,a)|0;be(h,s)|0;o=0}s=ve(o,l)|0;a=Ct(e,t)|0;de[c>>2]=r;o=(a|0)==0;if(!(n>>>0>15|(i>>>0<8|o))?(de[a>>2]|0)==519686845:0)Mt(a,c,i,s,n)|0;if(o){ge=d;return}if((de[a>>2]|0)!=519686845){ge=d;return}Kt(a);if(!(a&7)){X[de[104>>2]&1](a,0,0,1,de[27]|0)|0;ge=d;return}else{de[p>>2]=1154;de[p+4>>2]=2499;de[p+8>>2]=1516;xe(h,1100,p)|0;be(h,f)|0;ge=d;return}}function jt(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0;a=e+92|0;i=de[e+4>>2]|0;o=e+88|0;n=de[o>>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}de[a>>2]=r;de[e+96>>2]=r;de[e+104>>2]=n;de[e+100>>2]=i+(n+t);de[e+108>>2]=0;de[e+112>>2]=0;if(!(U(a,e+116|0)|0)){e=0;return e|0}t=de[o>>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(!(U(a,e+140|0)|0)){e=0;return e|0}if(U(a,e+188|0)|0){t=de[o>>2]|0;break}else{e=0;return e|0}}}while(0);if((me[t+55>>0]|0)<<8|(me[t+56>>0]|0)){if(!(U(a,e+164|0)|0)){e=0;return e|0}if(!(U(a,e+212|0)|0)){e=0;return e|0}}e=1;return e|0}function Ut(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0;d=ge;ge=ge+592|0;l=d+16|0;s=d;a=d+72|0;p=d+24|0;i=e+88|0;t=de[i>>2]|0;f=(me[t+39>>0]|0)<<8|(me[t+40>>0]|0);h=e+236|0;o=e+240|0;r=de[o>>2]|0;if((r|0)!=(f|0)){if(r>>>0<=f>>>0){do{if((de[e+244>>2]|0)>>>0<f>>>0){if(F(h,f,(r+1|0)==(f|0),4,0)|0){t=de[o>>2]|0;break}pe[e+248>>0]=1;p=0;ge=d;return p|0}else t=r}while(0);G((de[h>>2]|0)+(t<<2)|0,0,f-t<<2|0)|0;t=de[i>>2]|0}de[o>>2]=f}u=e+92|0;r=de[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){p=0;ge=d;return p|0}de[u>>2]=n;de[e+96>>2]=n;de[e+104>>2]=t;de[e+100>>2]=r+(t+i);de[e+108>>2]=0;de[e+112>>2]=0;de[p+20>>2]=0;de[p>>2]=0;de[p+4>>2]=0;de[p+8>>2]=0;de[p+12>>2]=0;pe[p+16>>0]=0;e=p+24|0;de[p+44>>2]=0;de[e>>2]=0;de[e+4>>2]=0;de[e+8>>2]=0;de[e+12>>2]=0;pe[e+16>>0]=0;if(U(u,p)|0?(c=p+24|0,U(u,c)|0):0){if(!(de[o>>2]|0)){de[s>>2]=1154;de[s+4>>2]=903;de[s+8>>2]=1781;xe(a,1100,s)|0;be(a,l)|0}if(!f)t=1;else{i=0;n=0;o=0;t=0;a=0;e=0;s=0;r=de[h>>2]|0;while(1){i=(ye(u,p)|0)+i&31;n=(ye(u,c)|0)+n&63;o=(ye(u,p)|0)+o&31;t=(ye(u,p)|0)+t|0;a=(ye(u,c)|0)+a&63;e=(ye(u,p)|0)+e&31;de[r>>2]=n<<5|i<<11|o|t<<27|a<<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;N(p+24|0);N(p);p=t;ge=d;return p|0}function Gt(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0;S=ge;ge=ge+1024|0;s=S+16|0;a=S;o=S+504|0;E=S+480|0;T=S+284|0;w=S+88|0;x=S+24|0;n=de[e+88>>2]|0;b=(me[n+47>>0]|0)<<8|(me[n+48>>0]|0);y=e+92|0;t=de[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){E=0;ge=S;return E|0}de[y>>2]=i;de[e+96>>2]=i;de[e+104>>2]=n;de[e+100>>2]=t+(n+r);de[e+108>>2]=0;de[e+112>>2]=0;de[E+20>>2]=0;de[E>>2]=0;de[E+4>>2]=0;de[E+8>>2]=0;de[E+12>>2]=0;pe[E+16>>0]=0;if(U(y,E)|0){r=0;i=-3;n=-3;while(1){de[T+(r<<2)>>2]=i;de[w+(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=x;r=t+64|0;do{de[t>>2]=0;t=t+4|0}while((t|0)<(r|0));v=e+252|0;r=e+256|0;t=de[r>>2]|0;e:do{if((t|0)==(b|0))l=13;else{if(t>>>0<=b>>>0){do{if((de[e+260>>2]|0)>>>0<b>>>0)if(F(v,b,(t+1|0)==(b|0),4,0)|0){t=de[r>>2]|0;break}else{pe[e+264>>0]=1;t=0;break e}}while(0);G((de[v>>2]|0)+(t<<2)|0,0,b-t<<2|0)|0}de[r>>2]=b;l=13}}while(0);do{if((l|0)==13){if(!b){de[a>>2]=1154;de[a+4>>2]=903;de[a+8>>2]=1781;xe(o,1100,a)|0;be(o,s)|0;t=1;break}i=x+4|0;n=x+8|0;e=x+12|0;o=x+16|0;a=x+20|0;s=x+24|0;l=x+28|0;u=x+32|0;h=x+36|0;c=x+40|0;f=x+44|0;p=x+48|0;d=x+52|0;m=x+56|0;_=x+60|0;g=0;r=de[v>>2]|0;while(1){t=0;do{A=ye(y,E)|0;v=t<<1;k=x+(v<<2)|0;de[k>>2]=(de[k>>2]|0)+(de[T+(A<<2)>>2]|0)&3;v=x+((v|1)<<2)|0;de[v>>2]=(de[v>>2]|0)+(de[w+(A<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);de[r>>2]=(me[1725+(de[i>>2]|0)>>0]|0)<<2|(me[1725+(de[x>>2]|0)>>0]|0)|(me[1725+(de[n>>2]|0)>>0]|0)<<4|(me[1725+(de[e>>2]|0)>>0]|0)<<6|(me[1725+(de[o>>2]|0)>>0]|0)<<8|(me[1725+(de[a>>2]|0)>>0]|0)<<10|(me[1725+(de[s>>2]|0)>>0]|0)<<12|(me[1725+(de[l>>2]|0)>>0]|0)<<14|(me[1725+(de[u>>2]|0)>>0]|0)<<16|(me[1725+(de[h>>2]|0)>>0]|0)<<18|(me[1725+(de[c>>2]|0)>>0]|0)<<20|(me[1725+(de[f>>2]|0)>>0]|0)<<22|(me[1725+(de[p>>2]|0)>>0]|0)<<24|(me[1725+(de[d>>2]|0)>>0]|0)<<26|(me[1725+(de[m>>2]|0)>>0]|0)<<28|(me[1725+(de[_>>2]|0)>>0]|0)<<30;g=g+1|0;if((g|0)==(b|0)){t=1;break}else r=r+4|0}}}while(0)}else t=0;N(E);k=t;ge=S;return k|0}function Xt(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0;f=ge;ge=ge+560|0;l=f+16|0;s=f;a=f+48|0;c=f+24|0;n=de[e+88>>2]|0;h=(me[n+55>>0]|0)<<8|(me[n+56>>0]|0);u=e+92|0;t=de[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){c=0;ge=f;return c|0}de[u>>2]=i;de[e+96>>2]=i;de[e+104>>2]=n;de[e+100>>2]=t+(n+r);de[e+108>>2]=0;de[e+112>>2]=0;de[c+20>>2]=0;de[c>>2]=0;de[c+4>>2]=0;de[c+8>>2]=0;de[c+12>>2]=0;pe[c+16>>0]=0;e:do{if(U(u,c)|0){o=e+268|0;r=e+272|0;t=de[r>>2]|0;if((t|0)!=(h|0)){if(t>>>0<=h>>>0){do{if((de[e+276>>2]|0)>>>0<h>>>0)if(F(o,h,(t+1|0)==(h|0),2,0)|0){t=de[r>>2]|0;break}else{pe[e+280>>0]=1;t=0;break e}}while(0);G((de[o>>2]|0)+(t<<1)|0,0,h-t<<1|0)|0}de[r>>2]=h}if(!h){de[s>>2]=1154;de[s+4>>2]=903;de[s+8>>2]=1781;xe(a,1100,s)|0;be(a,l)|0;t=1;break}r=0;i=0;n=0;t=de[o>>2]|0;while(1){l=ye(u,c)|0;r=l+r&255;i=(ye(u,c)|0)+i&255;$[t>>1]=i<<8|r;n=n+1|0;if((n|0)==(h|0)){t=1;break}else t=t+2|0}}else t=0}while(0);N(c);c=t;ge=f;return c|0}function Ht(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0;S=ge;ge=ge+2432|0;s=S+16|0;a=S;o=S+1912|0;E=S+1888|0;T=S+988|0;w=S+88|0;x=S+24|0;n=de[e+88>>2]|0;b=(me[n+63>>0]|0)<<8|(me[n+64>>0]|0);y=e+92|0;t=de[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){E=0;ge=S;return E|0}de[y>>2]=i;de[e+96>>2]=i;de[e+104>>2]=n;de[e+100>>2]=t+(n+r);de[e+108>>2]=0;de[e+112>>2]=0;de[E+20>>2]=0;de[E>>2]=0;de[E+4>>2]=0;de[E+8>>2]=0;de[E+12>>2]=0;pe[E+16>>0]=0;if(U(y,E)|0){r=0;i=-7;n=-7;while(1){de[T+(r<<2)>>2]=i;de[w+(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=x;r=t+64|0;do{de[t>>2]=0;t=t+4|0}while((t|0)<(r|0));v=e+284|0;r=b*3|0;i=e+288|0;t=de[i>>2]|0;e:do{if((t|0)==(r|0))l=13;else{if(t>>>0<=r>>>0){do{if((de[e+292>>2]|0)>>>0<r>>>0)if(F(v,r,(t+1|0)==(r|0),2,0)|0){t=de[i>>2]|0;break}else{pe[e+296>>0]=1;t=0;break e}}while(0);G((de[v>>2]|0)+(t<<1)|0,0,r-t<<1|0)|0}de[i>>2]=r;l=13}}while(0);do{if((l|0)==13){if(!b){de[a>>2]=1154;de[a+4>>2]=903;de[a+8>>2]=1781;xe(o,1100,a)|0;be(o,s)|0;t=1;break}i=x+4|0;n=x+8|0;e=x+12|0;o=x+16|0;a=x+20|0;s=x+24|0;l=x+28|0;u=x+32|0;h=x+36|0;c=x+40|0;f=x+44|0;p=x+48|0;d=x+52|0;m=x+56|0;_=x+60|0;g=0;r=de[v>>2]|0;while(1){t=0;do{A=ye(y,E)|0;v=t<<1;k=x+(v<<2)|0;de[k>>2]=(de[k>>2]|0)+(de[T+(A<<2)>>2]|0)&7;v=x+((v|1)<<2)|0;de[v>>2]=(de[v>>2]|0)+(de[w+(A<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);A=me[1729+(de[a>>2]|0)>>0]|0;$[r>>1]=(me[1729+(de[i>>2]|0)>>0]|0)<<3|(me[1729+(de[x>>2]|0)>>0]|0)|(me[1729+(de[n>>2]|0)>>0]|0)<<6|(me[1729+(de[e>>2]|0)>>0]|0)<<9|(me[1729+(de[o>>2]|0)>>0]|0)<<12|A<<15;k=me[1729+(de[c>>2]|0)>>0]|0;$[r+2>>1]=(me[1729+(de[s>>2]|0)>>0]|0)<<2|A>>>1|(me[1729+(de[l>>2]|0)>>0]|0)<<5|(me[1729+(de[u>>2]|0)>>0]|0)<<8|(me[1729+(de[h>>2]|0)>>0]|0)<<11|k<<14;$[r+4>>1]=(me[1729+(de[f>>2]|0)>>0]|0)<<1|k>>>2|(me[1729+(de[p>>2]|0)>>0]|0)<<4|(me[1729+(de[d>>2]|0)>>0]|0)<<7|(me[1729+(de[m>>2]|0)>>0]|0)<<10|(me[1729+(de[_>>2]|0)>>0]|0)<<13;g=g+1|0;if((g|0)==(b|0)){t=1;break}else r=r+6|0}}}while(0)}else t=0;N(E);k=t;ge=S;return k|0}function Yt(e,F,t,r,i,n,N,o){e=e|0;F=F|0;t=t|0;r=r|0;i=i|0;n=n|0;N=N|0;o=o|0;var a=0,s=0,l=0,z=0,u=0,h=0,c=0,f=0,B=0,j=0,p=0,U=0,G=0,d=0,m=0,X=0,_=0,g=0,H=0,Y=0,W=0,q=0,v=0,V=0,K=0,J=0,y=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,b=0,x=0,T=0,w=0,E=0,S=0,oe=0,A=0,ae=0,k=0,se=0,O=0,le=0,ue=0,P=0,he=0,R=0,ce=0,C=0,M=0,fe=0,I=0,D=0,L=0;I=ge;ge=ge+720|0;fe=I+184|0;C=I+168|0;ce=I+160|0;R=I+144|0;he=I+136|0;P=I+120|0;ue=I+112|0;O=I+96|0;se=I+88|0;k=I+72|0;ae=I+64|0;A=I+48|0;oe=I+40|0;M=I+24|0;le=I+16|0;S=I;w=I+208|0;E=I+192|0;te=e+240|0;re=de[te>>2]|0;b=e+256|0;x=de[b>>2]|0;t=pe[(de[e+88>>2]|0)+17>>0]|0;T=r>>>2;if(!(t<<24>>24)){ge=I;return 1}ie=(o|0)==0;ne=o+-1|0;K=(n&1|0)!=0;J=r<<1;y=e+92|0;Z=e+116|0;Q=e+140|0;$=e+236|0;ee=N+-1|0;V=(i&1|0)!=0;v=e+188|0;g=e+252|0;H=T+1|0;Y=T+2|0;W=T+3|0;q=ee<<4;X=t&255;t=0;n=0;i=1;_=0;do{if(!ie){d=de[F+(_<<2)>>2]|0;m=0;while(1){p=m&1;a=(p|0)==0;j=(p<<5^32)+-16|0;p=(p<<1^2)+-1|0;G=a?N:-1;s=a?0:ee;e=(m|0)==(ne|0);U=K&e;if((s|0)!=(G|0)){B=K&e^1;f=a?d:d+q|0;while(1){if((i|0)==1)i=ye(y,Z)|0|512;c=i&7;i=i>>>3;a=me[1823+c>>0]|0;e=0;do{u=(ye(y,Q)|0)+n|0;h=u-re|0;n=h>>31;n=n&u|h&~n;if((de[te>>2]|0)>>>0<=n>>>0){de[S>>2]=1154;de[S+4>>2]=903;de[S+8>>2]=1781;xe(w,1100,S)|0;be(w,le)|0}de[E+(e<<2)>>2]=de[(de[$>>2]|0)+(n<<2)>>2];e=e+1|0}while(e>>>0<a>>>0);h=V&(s|0)==(ee|0);if(U|h){u=0;do{l=ve(u,r)|0;e=f+l|0;a=(u|0)==0|B;z=u<<1;L=(ye(y,v)|0)+t|0;D=L-x|0;t=D>>31;t=t&L|D&~t;do{if(h){if(!a){D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;break}de[e>>2]=de[E+((me[1831+(c<<2)+z>>0]|0)<<2)>>2];if((de[b>>2]|0)>>>0<=t>>>0){de[R>>2]=1154;de[R+4>>2]=903;de[R+8>>2]=1781;xe(w,1100,R)|0;be(w,ce)|0}de[f+(l+4)>>2]=de[(de[g>>2]|0)+(t<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t}else{if(!a){D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;break}de[e>>2]=de[E+((me[1831+(c<<2)+z>>0]|0)<<2)>>2];if((de[b>>2]|0)>>>0<=t>>>0){de[P>>2]=1154;de[P+4>>2]=903;de[P+8>>2]=1781;xe(w,1100,P)|0;be(w,he)|0}de[f+(l+4)>>2]=de[(de[g>>2]|0)+(t<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;de[f+(l+8)>>2]=de[E+((me[(z|1)+(1831+(c<<2))>>0]|0)<<2)>>2];if((de[b>>2]|0)>>>0<=t>>>0){de[C>>2]=1154;de[C+4>>2]=903;de[C+8>>2]=1781;xe(w,1100,C)|0;be(w,fe)|0}de[f+(l+12)>>2]=de[(de[g>>2]|0)+(t<<2)>>2]}}while(0);u=u+1|0}while((u|0)!=2)}else{de[f>>2]=de[E+((me[1831+(c<<2)>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((de[b>>2]|0)>>>0<=t>>>0){de[M>>2]=1154;de[M+4>>2]=903;de[M+8>>2]=1781;xe(w,1100,M)|0;be(w,oe)|0}de[f+4>>2]=de[(de[g>>2]|0)+(t<<2)>>2];de[f+8>>2]=de[E+((me[1831+(c<<2)+1>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((de[b>>2]|0)>>>0<=t>>>0){de[A>>2]=1154;de[A+4>>2]=903;de[A+8>>2]=1781;xe(w,1100,A)|0;be(w,ae)|0}de[f+12>>2]=de[(de[g>>2]|0)+(t<<2)>>2];de[f+(T<<2)>>2]=de[E+((me[1831+(c<<2)+2>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((de[b>>2]|0)>>>0<=t>>>0){de[k>>2]=1154;de[k+4>>2]=903;de[k+8>>2]=1781;xe(w,1100,k)|0;be(w,se)|0}de[f+(H<<2)>>2]=de[(de[g>>2]|0)+(t<<2)>>2];de[f+(Y<<2)>>2]=de[E+((me[1831+(c<<2)+3>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((de[b>>2]|0)>>>0<=t>>>0){de[O>>2]=1154;de[O+4>>2]=903;de[O+8>>2]=1781;xe(w,1100,O)|0;be(w,ue)|0}de[f+(W<<2)>>2]=de[(de[g>>2]|0)+(t<<2)>>2]}s=s+p|0;if((s|0)==(G|0))break;else f=f+j|0}}m=m+1|0;if((m|0)==(o|0))break;else d=d+J|0}}_=_+1|0}while((_|0)!=(X|0));ge=I;return 1}function Wt(e,t,r,i,n,o,a,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;a=a|0;s=s|0;var l=0,u=0,h=0,c=0,f=0,p=0,F=0,N=0,d=0,m=0,_=0,g=0,v=0,z=0,B=0,y=0,b=0,x=0,T=0,j=0,w=0,U=0,G=0,X=0,H=0,Y=0,W=0,q=0,V=0,K=0,J=0,E=0,Z=0,Q=0,$=0,S=0,ee=0,te=0,A=0,re=0,k=0,ie=0,ne=0,oe=0,O=0,ae=0,se=0,P=0,le=0,R=0,ue=0,C=0,he=0,M=0,ce=0,fe=0,I=0,D=0,L=0;D=ge;ge=ge+640|0;ce=D+88|0;M=D+72|0;he=D+64|0;C=D+48|0;ue=D+40|0;I=D+24|0;fe=D+16|0;R=D;P=D+128|0;le=D+112|0;se=D+96|0;E=e+240|0;Z=de[E>>2]|0;S=e+256|0;oe=de[S>>2]|0;O=e+272|0;ae=de[O>>2]|0;r=de[e+88>>2]|0;Q=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=pe[r+17>>0]|0;if(!(r<<24>>24)){ge=D;return 1}$=(s|0)==0;ee=s+-1|0;te=i<<1;A=e+92|0;re=e+116|0;k=a+-1|0;ie=e+212|0;ne=e+188|0;J=(n&1|0)==0;K=(o&1|0)==0;X=e+288|0;H=e+284|0;Y=e+252|0;W=e+140|0;q=e+236|0;V=e+164|0;U=e+268|0;G=k<<5;j=r&255;r=0;n=0;o=0;e=0;l=1;w=0;do{if(!$){x=de[t+(w<<2)>>2]|0;T=0;while(1){y=T&1;u=(y|0)==0;B=(y<<6^64)+-32|0;y=(y<<1^2)+-1|0;b=u?a:-1;h=u?0:k;if((h|0)!=(b|0)){z=K|(T|0)!=(ee|0);v=u?x:x+G|0;while(1){if((l|0)==1)l=ye(A,re)|0|512;g=l&7;l=l>>>3;c=me[1823+g>>0]|0;u=0;do{m=(ye(A,V)|0)+n|0;_=m-ae|0;n=_>>31;n=n&m|_&~n;if((de[O>>2]|0)>>>0<=n>>>0){de[R>>2]=1154;de[R+4>>2]=903;de[R+8>>2]=1781;xe(P,1100,R)|0;be(P,fe)|0}de[se+(u<<2)>>2]=_e[(de[U>>2]|0)+(n<<1)>>1];u=u+1|0}while(u>>>0<c>>>0);u=0;do{m=(ye(A,W)|0)+e|0;_=m-Z|0;e=_>>31;e=e&m|_&~e;if((de[E>>2]|0)>>>0<=e>>>0){de[I>>2]=1154;de[I+4>>2]=903;de[I+8>>2]=1781;xe(P,1100,I)|0;be(P,ue)|0}de[le+(u<<2)>>2]=de[(de[q>>2]|0)+(e<<2)>>2];u=u+1|0}while(u>>>0<c>>>0);_=J|(h|0)!=(k|0);d=0;m=v;while(1){N=z|(d|0)==0;F=d<<1;f=0;p=m;while(1){c=(ye(A,ie)|0)+r|0;u=c-Q|0;r=u>>31;r=r&c|u&~r;u=(ye(A,ne)|0)+o|0;c=u-oe|0;o=c>>31;o=o&u|c&~o;if((_|(f|0)==0)&N){u=me[f+F+(1831+(g<<2))>>0]|0;c=r*3|0;if((de[X>>2]|0)>>>0<=c>>>0){de[C>>2]=1154;de[C+4>>2]=903;de[C+8>>2]=1781;xe(P,1100,C)|0;be(P,he)|0}L=de[H>>2]|0;de[p>>2]=(_e[L+(c<<1)>>1]|0)<<16|de[se+(u<<2)>>2];de[p+4>>2]=(_e[L+(c+2<<1)>>1]|0)<<16|(_e[L+(c+1<<1)>>1]|0);de[p+8>>2]=de[le+(u<<2)>>2];if((de[S>>2]|0)>>>0<=o>>>0){de[M>>2]=1154;de[M+4>>2]=903;de[M+8>>2]=1781;xe(P,1100,M)|0;be(P,ce)|0}de[p+12>>2]=de[(de[Y>>2]|0)+(o<<2)>>2]}f=f+1|0;if((f|0)==2)break;else p=p+16|0}d=d+1|0;if((d|0)==2)break;else m=m+i|0}h=h+y|0;if((h|0)==(b|0))break;else v=v+B|0}}T=T+1|0;if((T|0)==(s|0))break;else x=x+te|0}}w=w+1|0}while((w|0)!=(j|0));ge=D;return 1}function qt(e,t,r,i,n,o,a,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;a=a|0;s=s|0;var l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,F=0,N=0,v=0,y=0,b=0,x=0,T=0,z=0,B=0,j=0,U=0,w=0,E=0,G=0,X=0,S=0,H=0,A=0,Y=0,W=0,q=0,k=0,V=0,O=0,P=0,R=0,C=0,M=0,K=0,I=0,J=0,Z=0,D=0,L=0;L=ge;ge=ge+608|0;J=L+64|0;I=L+48|0;K=L+40|0;D=L+24|0;Z=L+16|0;M=L;C=L+88|0;R=L+72|0;S=e+272|0;H=de[S>>2]|0;r=de[e+88>>2]|0;A=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=pe[r+17>>0]|0;if(!(r<<24>>24)){ge=L;return 1}Y=(s|0)==0;W=s+-1|0;q=i<<1;k=e+92|0;V=e+116|0;O=a+-1|0;P=e+212|0;X=(o&1|0)==0;w=e+288|0;E=e+284|0;G=e+164|0;j=e+268|0;U=O<<4;B=r&255;z=(n&1|0)!=0;r=0;o=0;e=1;T=0;do{if(!Y){b=de[t+(T<<2)>>2]|0;x=0;while(1){v=x&1;n=(v|0)==0;N=(v<<5^32)+-16|0;v=(v<<1^2)+-1|0;y=n?a:-1;l=n?0:O;if((l|0)!=(y|0)){F=X|(x|0)!=(W|0);g=n?b:b+U|0;while(1){if((e|0)==1)e=ye(k,V)|0|512;_=e&7;e=e>>>3;u=me[1823+_>>0]|0;n=0;do{d=(ye(k,G)|0)+o|0;m=d-H|0;o=m>>31;o=o&d|m&~o;if((de[S>>2]|0)>>>0<=o>>>0){de[M>>2]=1154;de[M+4>>2]=903;de[M+8>>2]=1781;xe(C,1100,M)|0;be(C,Z)|0}de[R+(n<<2)>>2]=_e[(de[j>>2]|0)+(o<<1)>>1];n=n+1|0}while(n>>>0<u>>>0);m=(l|0)==(O|0)&z;p=0;d=g;while(1){f=F|(p|0)==0;c=p<<1;n=(ye(k,P)|0)+r|0;h=n-A|0;u=h>>31;u=u&n|h&~u;if(f){r=me[1831+(_<<2)+c>>0]|0;n=u*3|0;if((de[w>>2]|0)>>>0<=n>>>0){de[D>>2]=1154;de[D+4>>2]=903;de[D+8>>2]=1781;xe(C,1100,D)|0;be(C,K)|0}h=de[E>>2]|0;de[d>>2]=(_e[h+(n<<1)>>1]|0)<<16|de[R+(r<<2)>>2];de[d+4>>2]=(_e[h+(n+2<<1)>>1]|0)<<16|(_e[h+(n+1<<1)>>1]|0)}h=d+8|0;n=(ye(k,P)|0)+u|0;u=n-A|0;r=u>>31;r=r&n|u&~r;if(!(m|f^1)){n=me[(c|1)+(1831+(_<<2))>>0]|0;u=r*3|0;if((de[w>>2]|0)>>>0<=u>>>0){de[I>>2]=1154;de[I+4>>2]=903;de[I+8>>2]=1781;xe(C,1100,I)|0;be(C,J)|0}f=de[E>>2]|0;de[h>>2]=(_e[f+(u<<1)>>1]|0)<<16|de[R+(n<<2)>>2];de[d+12>>2]=(_e[f+(u+2<<1)>>1]|0)<<16|(_e[f+(u+1<<1)>>1]|0)}p=p+1|0;if((p|0)==2)break;else d=d+i|0}l=l+v|0;if((l|0)==(y|0))break;else g=g+N|0}}x=x+1|0;if((x|0)==(s|0))break;else b=b+q|0}}T=T+1|0}while((T|0)!=(B|0));ge=L;return 1}function Vt(e,t,r,i,n,o,a,s){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;a=a|0;s=s|0;var l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,F=0,N=0,g=0,v=0,y=0,b=0,x=0,z=0,B=0,T=0,w=0,E=0,S=0,j=0,A=0,U=0,G=0,X=0,H=0,Y=0,W=0,q=0,k=0,V=0,K=0,J=0,Z=0,Q=0,O=0,$=0,P=0,ee=0,te=0,re=0,R=0,C=0,ie=0,M=0,ne=0,I=0,oe=0,ae=0,D=0,L=0;L=ge;ge=ge+640|0;oe=L+88|0;I=L+72|0;ne=L+64|0;M=L+48|0;ie=L+40|0;D=L+24|0;ae=L+16|0;C=L;R=L+128|0;te=L+112|0;re=L+96|0;k=e+272|0;V=de[k>>2]|0;r=de[e+88>>2]|0;K=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=pe[r+17>>0]|0;if(!(r<<24>>24)){ge=L;return 1}J=(s|0)==0;Z=s+-1|0;Q=i<<1;O=e+92|0;$=e+116|0;P=a+-1|0;ee=e+212|0;q=(n&1|0)==0;W=(o&1|0)==0;X=e+288|0;H=e+284|0;Y=e+164|0;U=e+268|0;G=P<<5;j=r&255;r=0;n=0;o=0;e=0;l=1;A=0;do{if(!J){E=de[t+(A<<2)>>2]|0;S=0;while(1){T=S&1;u=(T|0)==0;B=(T<<6^64)+-32|0;T=(T<<1^2)+-1|0;w=u?a:-1;h=u?0:P;if((h|0)!=(w|0)){z=W|(S|0)!=(Z|0);x=u?E:E+G|0;while(1){if((l|0)==1)l=ye(O,$)|0|512;b=l&7;l=l>>>3;c=me[1823+b>>0]|0;u=0;do{v=(ye(O,Y)|0)+e|0;y=v-V|0;e=y>>31;e=e&v|y&~e;if((de[k>>2]|0)>>>0<=e>>>0){de[C>>2]=1154;de[C+4>>2]=903;de[C+8>>2]=1781;xe(R,1100,C)|0;be(R,ae)|0}de[te+(u<<2)>>2]=_e[(de[U>>2]|0)+(e<<1)>>1];u=u+1|0}while(u>>>0<c>>>0);u=0;do{v=(ye(O,Y)|0)+n|0;y=v-V|0;n=y>>31;n=n&v|y&~n;if((de[k>>2]|0)>>>0<=n>>>0){de[D>>2]=1154;de[D+4>>2]=903;de[D+8>>2]=1781;xe(R,1100,D)|0;be(R,ie)|0}de[re+(u<<2)>>2]=_e[(de[U>>2]|0)+(n<<1)>>1];u=u+1|0}while(u>>>0<c>>>0);y=q|(h|0)!=(P|0);g=0;v=x;while(1){N=z|(g|0)==0;F=g<<1;m=0;_=v;while(1){d=(ye(O,ee)|0)+o|0;p=d-K|0;o=p>>31;o=o&d|p&~o;p=(ye(O,ee)|0)+r|0;d=p-K|0;r=d>>31;r=r&p|d&~r;if((y|(m|0)==0)&N){p=me[m+F+(1831+(b<<2))>>0]|0;d=o*3|0;u=de[X>>2]|0;if(u>>>0<=d>>>0){de[M>>2]=1154;de[M+4>>2]=903;de[M+8>>2]=1781;xe(R,1100,M)|0;be(R,ne)|0;u=de[X>>2]|0}c=de[H>>2]|0;f=r*3|0;if(u>>>0>f>>>0)u=c;else{de[I>>2]=1154;de[I+4>>2]=903;de[I+8>>2]=1781;xe(R,1100,I)|0;be(R,oe)|0;u=de[H>>2]|0}de[_>>2]=(_e[c+(d<<1)>>1]|0)<<16|de[te+(p<<2)>>2];de[_+4>>2]=(_e[c+(d+2<<1)>>1]|0)<<16|(_e[c+(d+1<<1)>>1]|0);de[_+8>>2]=(_e[u+(f<<1)>>1]|0)<<16|de[re+(p<<2)>>2];de[_+12>>2]=(_e[u+(f+2<<1)>>1]|0)<<16|(_e[u+(f+1<<1)>>1]|0)}m=m+1|0;if((m|0)==2)break;else _=_+16|0}g=g+1|0;if((g|0)==2)break;else v=v+i|0}h=h+T|0;if((h|0)==(w|0))break;else x=x+B|0}}S=S+1|0;if((S|0)==(s|0))break;else E=E+Q|0}}A=A+1|0}while((A|0)!=(j|0));ge=L;return 1}function Kt(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0;f=ge;ge=ge+608|0;c=f+88|0;h=f+72|0;l=f+64|0;s=f+48|0;o=f+40|0;a=f+24|0;n=f+16|0;i=f;u=f+96|0;de[e>>2]=0;t=e+284|0;r=de[t>>2]|0;if(r){if(!(r&7))X[de[104>>2]&1](r,0,0,1,de[27]|0)|0;else{de[i>>2]=1154;de[i+4>>2]=2499;de[i+8>>2]=1516;xe(u,1100,i)|0;be(u,n)|0}de[t>>2]=0;de[e+288>>2]=0;de[e+292>>2]=0}pe[e+296>>0]=0;t=e+268|0;r=de[t>>2]|0;if(r){if(!(r&7))X[de[104>>2]&1](r,0,0,1,de[27]|0)|0;else{de[a>>2]=1154;de[a+4>>2]=2499;de[a+8>>2]=1516;xe(u,1100,a)|0;be(u,o)|0}de[t>>2]=0;de[e+272>>2]=0;de[e+276>>2]=0}pe[e+280>>0]=0;t=e+252|0;r=de[t>>2]|0;if(r){if(!(r&7))X[de[104>>2]&1](r,0,0,1,de[27]|0)|0;else{de[s>>2]=1154;de[s+4>>2]=2499;de[s+8>>2]=1516;xe(u,1100,s)|0;be(u,l)|0}de[t>>2]=0;de[e+256>>2]=0;de[e+260>>2]=0}pe[e+264>>0]=0;t=e+236|0;r=de[t>>2]|0;if(!r){c=e+248|0;pe[c>>0]=0;c=e+212|0;N(c);c=e+188|0;N(c);c=e+164|0;N(c);c=e+140|0;N(c);c=e+116|0;N(c);ge=f;return}if(!(r&7))X[de[104>>2]&1](r,0,0,1,de[27]|0)|0;else{de[h>>2]=1154;de[h+4>>2]=2499;de[h+8>>2]=1516;xe(u,1100,h)|0;be(u,c)|0}de[t>>2]=0;de[e+240>>2]=0;de[e+244>>2]=0;c=e+248|0;pe[c>>0]=0;c=e+212|0;N(c);c=e+188|0;N(c);c=e+164|0;N(c);c=e+140|0;N(c);c=e+116|0;N(c);ge=f}function l(e,t){e=e|0;t=t|0;var r=0;r=ge;ge=ge+16|0;de[r>>2]=t;t=de[63]|0;Pr(t,e,r)|0;Or(10,t)|0;B()}function Jt(){var e=0,t=0;e=ge;ge=ge+16|0;if(!(rt(200,2)|0)){t=et(de[49]|0)|0;ge=e;return t|0}else l(2090,e);return 0}function Zt(e){e=e|0;b(e)}function Qt(e){e=e|0;var t=0;t=ge;ge=ge+16|0;Mi[e&3]();l(2139,t)}function $t(){var e=0,t=0;e=Jt()|0;if(((e|0)!=0?(t=de[e>>2]|0,(t|0)!=0):0)?(e=t+48|0,(de[e>>2]&-256|0)==1126902528?(de[e+4>>2]|0)==1129074247:0):0)Qt(de[t+12>>2]|0);t=de[28]|0;de[28]=t+0;Qt(t)}function er(e){e=e|0}function tr(e){e=e|0;return}function rr(e){e=e|0;return}function ir(e){e=e|0;return}function nr(e){e=e|0;Zt(e);return}function or(e){e=e|0;Zt(e);return}function ar(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0,a=0;a=ge;ge=ge+64|0;o=a;if((e|0)!=(t|0))if((t|0)!=0?(n=hr(t,24,40,0)|0,(n|0)!=0):0){t=o;i=t+56|0;do{de[t>>2]=0;t=t+4|0}while((t|0)<(i|0));de[o>>2]=n;de[o+8>>2]=e;de[o+12>>2]=-1;de[o+48>>2]=1;Di[de[(de[n>>2]|0)+28>>2]&3](n,o,de[r>>2]|0,1);if((de[o+24>>2]|0)==1){de[r>>2]=de[o+16>>2];t=1}else t=0}else t=0;else t=1;ge=a;return t|0}function sr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0;e=t+16|0;n=de[e>>2]|0;do{if(n){if((n|0)!=(r|0)){i=t+36|0;de[i>>2]=(de[i>>2]|0)+1;de[t+24>>2]=2;pe[t+54>>0]=1;break}e=t+24|0;if((de[e>>2]|0)==2)de[e>>2]=i}else{de[e>>2]=r;de[t+24>>2]=i;de[t+36>>2]=1}}while(0)}function lr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(de[t+8>>2]|0))sr(0,t,r,i);return}function ur(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(de[t+8>>2]|0))sr(0,t,r,i);else{e=de[e+8>>2]|0;Di[de[(de[e>>2]|0)+28>>2]&3](e,t,r,i)}return}function hr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0;p=ge;ge=ge+64|0;f=p;c=de[e>>2]|0;h=e+(de[c+-8>>2]|0)|0;c=de[c+-4>>2]|0;de[f>>2]=r;de[f+4>>2]=e;de[f+8>>2]=t;de[f+12>>2]=i;i=f+16|0;e=f+20|0;t=f+24|0;n=f+28|0;o=f+32|0;a=f+40|0;s=(c|0)==(r|0);l=i;u=l+36|0;do{de[l>>2]=0;l=l+4|0}while((l|0)<(u|0));$[i+36>>1]=0;pe[i+38>>0]=0;e:do{if(s){de[f+48>>2]=1;Ii[de[(de[r>>2]|0)+20>>2]&3](r,f,h,h,1,0);i=(de[t>>2]|0)==1?h:0}else{Oi[de[(de[c>>2]|0)+24>>2]&3](c,f,h,1,0);switch(de[f+36>>2]|0){case 0:{i=(de[a>>2]|0)==1&(de[n>>2]|0)==1&(de[o>>2]|0)==1?de[e>>2]|0:0;break e}case 1:break;default:{i=0;break e}}if((de[t>>2]|0)!=1?!((de[a>>2]|0)==0&(de[n>>2]|0)==1&(de[o>>2]|0)==1):0){i=0;break}i=de[i>>2]|0}}while(0);ge=p;return i|0}function cr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;pe[t+53>>0]=1;do{if((de[t+4>>2]|0)==(i|0)){pe[t+52>>0]=1;i=t+16|0;e=de[i>>2]|0;if(!e){de[i>>2]=r;de[t+24>>2]=n;de[t+36>>2]=1;if(!((n|0)==1?(de[t+48>>2]|0)==1:0))break;pe[t+54>>0]=1;break}if((e|0)!=(r|0)){n=t+36|0;de[n>>2]=(de[n>>2]|0)+1;pe[t+54>>0]=1;break}e=t+24|0;i=de[e>>2]|0;if((i|0)==2){de[e>>2]=n;i=n}if((i|0)==1?(de[t+48>>2]|0)==1:0)pe[t+54>>0]=1}}while(0)}function fr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0,s=0,l=0;e:do{if((e|0)==(de[t+8>>2]|0)){if((de[t+4>>2]|0)==(r|0)?(o=t+28|0,(de[o>>2]|0)!=1):0)de[o>>2]=i}else{if((e|0)!=(de[t>>2]|0)){s=de[e+8>>2]|0;Oi[de[(de[s>>2]|0)+24>>2]&3](s,t,r,i,n);break}if((de[t+16>>2]|0)!=(r|0)?(a=t+20|0,(de[a>>2]|0)!=(r|0)):0){de[t+32>>2]=i;i=t+44|0;if((de[i>>2]|0)==4)break;o=t+52|0;pe[o>>0]=0;l=t+53|0;pe[l>>0]=0;e=de[e+8>>2]|0;Ii[de[(de[e>>2]|0)+20>>2]&3](e,t,r,r,1,n);if(pe[l>>0]|0){if(!(pe[o>>0]|0)){o=1;s=13}}else{o=0;s=13}do{if((s|0)==13){de[a>>2]=r;l=t+40|0;de[l>>2]=(de[l>>2]|0)+1;if((de[t+36>>2]|0)==1?(de[t+24>>2]|0)==2:0){pe[t+54>>0]=1;if(o)break}else s=16;if((s|0)==16?o:0)break;de[i>>2]=4;break e}}while(0);de[i>>2]=3;break}if((i|0)==1)de[t+32>>2]=1}}while(0);return}function pr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0;do{if((e|0)==(de[t+8>>2]|0)){if((de[t+4>>2]|0)==(r|0)?(a=t+28|0,(de[a>>2]|0)!=1):0)de[a>>2]=i}else if((e|0)==(de[t>>2]|0)){if((de[t+16>>2]|0)!=(r|0)?(o=t+20|0,(de[o>>2]|0)!=(r|0)):0){de[t+32>>2]=i;de[o>>2]=r;n=t+40|0;de[n>>2]=(de[n>>2]|0)+1;if((de[t+36>>2]|0)==1?(de[t+24>>2]|0)==2:0)pe[t+54>>0]=1;de[t+44>>2]=4;break}if((i|0)==1)de[t+32>>2]=1}}while(0);return}function dr(e,t,r,i,n,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;if((e|0)==(de[t+8>>2]|0))cr(0,t,r,i,n);else{e=de[e+8>>2]|0;Ii[de[(de[e>>2]|0)+20>>2]&3](e,t,r,i,n,o)}return}function mr(e,t,r,i,n,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;if((e|0)==(de[t+8>>2]|0))cr(0,t,r,i,n);return}function _r(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=ge;ge=ge+16|0;i=n;de[i>>2]=de[r>>2];e=v[de[(de[e>>2]|0)+16>>2]&7](e,t,i)|0;if(e)de[r>>2]=de[i>>2];ge=n;return e&1|0}function gr(e){e=e|0;if(!e)e=0;else e=(hr(e,24,72,0)|0)!=0;return e&1|0}function vr(){var e=0,t=0,r=0,i=0,n=0,o=0,a=0,s=0;n=ge;ge=ge+48|0;a=n+32|0;r=n+24|0;s=n+16|0;o=n;n=n+36|0;e=Jt()|0;if((e|0)!=0?(i=de[e>>2]|0,(i|0)!=0):0){e=i+48|0;t=de[e>>2]|0;e=de[e+4>>2]|0;if(!((t&-256|0)==1126902528&(e|0)==1129074247)){de[r>>2]=de[51];l(2368,r)}if((t|0)==1126902529&(e|0)==1129074247)e=de[i+44>>2]|0;else e=i+80|0;de[n>>2]=e;i=de[i>>2]|0;e=de[i+4>>2]|0;if(v[de[(de[8>>2]|0)+16>>2]&7](8,i,n)|0){s=de[n>>2]|0;n=de[51]|0;s=Ri[de[(de[s>>2]|0)+8>>2]&1](s)|0;de[o>>2]=n;de[o+4>>2]=e;de[o+8>>2]=s;l(2282,o)}else{de[s>>2]=de[51];de[s+4>>2]=e;l(2327,s)}}l(2406,a)}function yr(){var e=0;e=ge;ge=ge+16|0;if(!(it(196,6)|0)){ge=e;return}else l(2179,e)}function br(e){e=e|0;var t=0;t=ge;ge=ge+16|0;b(e);if(!(at(de[49]|0,0)|0)){ge=t;return}else l(2229,t)}function xr(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(!(pe[r>>0]|0))break;else r=e}t=t+-1|0;if(!t)break;else r=5}return e|0}function ie(){var e=0;if(!(de[52]|0))e=264;else{e=(tt()|0)+60|0;e=de[e>>2]|0}return e|0}function Tr(e){e=e|0;var t=0;if(e>>>0>4294963200){t=ie()|0;de[t>>2]=0-e;e=-1}return e|0}function wr(e,t){e=+e;t=t|0;var r=0,i=0,n=0;ee[te>>3]=e;r=de[te>>2]|0;i=de[te+4>>2]|0;n=Zr(r|0,i|0,52)|0;n=n&2047;switch(n|0){case 0:{if(e!=0.0){e=+wr(e*18446744073709552.0e3,t);r=(de[t>>2]|0)+-64|0}else r=0;de[t>>2]=r;break}case 2047:break;default:{de[t>>2]=n+-1022;de[te>>2]=r;de[te+4>>2]=i&-2146435073|1071644672;e=+ee[te>>3]}}return+e}function Er(e,t){e=+e;t=t|0;return+ +wr(e,t)}function Sr(e,t,r){e=e|0;t=t|0;r=r|0;do{if(e){if(t>>>0<128){pe[e>>0]=t;e=1;break}if(t>>>0<2048){pe[e>>0]=t>>>6|192;pe[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){pe[e>>0]=t>>>12|224;pe[e+1>>0]=t>>>6&63|128;pe[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){pe[e>>0]=t>>>18|240;pe[e+1>>0]=t>>>12&63|128;pe[e+2>>0]=t>>>6&63|128;pe[e+3>>0]=t&63|128;e=4;break}else{e=ie()|0;de[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function Ar(e,t){e=e|0;t=t|0;if(!e)e=0;else e=Sr(e,t,0)|0;return e|0}function kr(e){e=e|0;var t=0,r=0;do{if(e){if((de[e+76>>2]|0)<=-1){t=jr(e)|0;break}r=(Mr(e)|0)==0;t=jr(e)|0;if(!r)g(e)}else{if(!(de[65]|0))t=0;else t=kr(de[65]|0)|0;st(236);e=de[58]|0;if(e)do{if((de[e+76>>2]|0)>-1)r=Mr(e)|0;else r=0;if((de[e+20>>2]|0)>>>0>(de[e+28>>2]|0)>>>0)t=jr(e)|0|t;if(r)g(e);e=de[e+56>>2]|0}while((e|0)!=0);nt(236)}}while(0);return t|0}function Or(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0;if((de[t+76>>2]|0)>=0?(Mr(t)|0)!=0:0){if((pe[t+75>>0]|0)!=(e|0)?(i=t+20|0,n=de[i>>2]|0,n>>>0<(de[t+16>>2]|0)>>>0):0){de[i>>2]=n+1;pe[n>>0]=e;r=e&255}else r=Ir(t,e)|0;g(t)}else a=3;do{if((a|0)==3){if((pe[t+75>>0]|0)!=(e|0)?(o=t+20|0,r=de[o>>2]|0,r>>>0<(de[t+16>>2]|0)>>>0):0){de[o>>2]=r+1;pe[r>>0]=e;r=e&255;break}r=Ir(t,e)|0}}while(0);return r|0}function ne(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0,a=0;i=r+16|0;n=de[i>>2]|0;if(!n)if(!(zr(r)|0)){n=de[i>>2]|0;o=4}else i=0;else o=4;e:do{if((o|0)==4){a=r+20|0;o=de[a>>2]|0;if((n-o|0)>>>0<t>>>0){i=v[de[r+36>>2]&7](r,e,t)|0;break}t:do{if((pe[r+75>>0]|0)>-1){i=t;while(1){if(!i){n=o;i=0;break t}n=i+-1|0;if((pe[e+n>>0]|0)==10)break;else i=n}if((v[de[r+36>>2]&7](r,e,i)|0)>>>0<i>>>0)break e;t=t-i|0;e=e+i|0;n=de[a>>2]|0}else{n=o;i=0}}while(0);ei(n|0,e|0,t|0)|0;de[a>>2]=(de[a>>2]|0)+t;i=i+t|0}}while(0);return i|0}function be(e,t){e=e|0;t=t|0;var r=0,i=0;r=ge;ge=ge+16|0;i=r;de[i>>2]=t;t=Pr(de[64]|0,e,i)|0;ge=r;return t|0}function xe(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=ge;ge=ge+16|0;n=i;de[n>>2]=r;r=Cr(e,t,n)|0;ge=i;return r|0}function Pr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0;m=ge;ge=ge+224|0;c=m+120|0;d=m+80|0;p=m;f=m+136|0;i=d;n=i+40|0;do{de[i>>2]=0;i=i+4|0}while((i|0)<(n|0));de[c>>2]=de[r>>2];if((Ur(0,t,c,p,d)|0)<0)r=-1;else{if((de[e+76>>2]|0)>-1)u=Mr(e)|0;else u=0;r=de[e>>2]|0;h=r&32;if((pe[e+74>>0]|0)<1)de[e>>2]=r&-33;r=e+48|0;if(!(de[r>>2]|0)){n=e+44|0;o=de[n>>2]|0;de[n>>2]=f;a=e+28|0;de[a>>2]=f;s=e+20|0;de[s>>2]=f;de[r>>2]=80;l=e+16|0;de[l>>2]=f+80;i=Ur(e,t,c,p,d)|0;if(o){v[de[e+36>>2]&7](e,0,0)|0;i=(de[s>>2]|0)==0?-1:i;de[n>>2]=o;de[r>>2]=0;de[l>>2]=0;de[a>>2]=0;de[s>>2]=0}}else i=Ur(e,t,c,p,d)|0;r=de[e>>2]|0;de[e>>2]=r|h;if(u)g(e);r=(r&32|0)==0?i:-1}ge=m;return r|0}function Rr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0,a=0,s=0,l=0,u=0,h=0;h=ge;ge=ge+128|0;n=h+112|0;u=h;o=u;a=268;s=o+112|0;do{de[o>>2]=de[a>>2];o=o+4|0;a=a+4|0}while((o|0)<(s|0));if((t+-1|0)>>>0>2147483646)if(!t){t=1;l=4}else{t=ie()|0;de[t>>2]=75;t=-1}else{n=e;l=4}if((l|0)==4){l=-2-n|0;l=t>>>0>l>>>0?l:t;de[u+48>>2]=l;e=u+20|0;de[e>>2]=n;de[u+44>>2]=n;t=n+l|0;n=u+16|0;de[n>>2]=t;de[u+28>>2]=t;t=Pr(u,r,i)|0;if(l){r=de[e>>2]|0;pe[r+(((r|0)==(de[n>>2]|0))<<31>>31)>>0]=0}}ge=h;return t|0}function Cr(e,t,r){e=e|0;t=t|0;r=r|0;return Rr(e,2147483647,t,r)|0}function Mr(e){e=e|0;return 0}function g(e){e=e|0}function Ir(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0;l=ge;ge=ge+16|0;s=l;a=t&255;pe[s>>0]=a;i=e+16|0;n=de[i>>2]|0;if(!n)if(!(zr(e)|0)){n=de[i>>2]|0;o=4}else r=-1;else o=4;do{if((o|0)==4){i=e+20|0;o=de[i>>2]|0;if(o>>>0<n>>>0?(r=t&255,(r|0)!=(pe[e+75>>0]|0)):0){de[i>>2]=o+1;pe[o>>0]=a;break}if((v[de[e+36>>2]&7](e,s,1)|0)==1)r=me[s>>0]|0;else r=-1}}while(0);ge=l;return r|0}function Dr(e){e=e|0;var t=0,r=0;t=ge;ge=ge+16|0;r=t;de[r>>2]=de[e+60>>2];e=Tr(qe(6,r|0)|0)|0;ge=t;return e|0}function Lr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0;n=ge;ge=ge+32|0;o=n;i=n+20|0;de[o>>2]=de[e+60>>2];de[o+4>>2]=0;de[o+8>>2]=t;de[o+12>>2]=i;de[o+16>>2]=r;if((Tr(ht(140,o|0)|0)|0)<0){de[i>>2]=-1;e=-1}else e=de[i>>2]|0;ge=n;return e|0}function Fr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0;d=ge;ge=ge+48|0;c=d+16|0;h=d;i=d+32|0;f=e+28|0;n=de[f>>2]|0;de[i>>2]=n;p=e+20|0;n=(de[p>>2]|0)-n|0;de[i+4>>2]=n;de[i+8>>2]=t;de[i+12>>2]=r;l=e+60|0;u=e+44|0;t=2;n=n+r|0;while(1){if(!(de[52]|0)){de[c>>2]=de[l>>2];de[c+4>>2]=i;de[c+8>>2]=t;a=Tr(ct(146,c|0)|0)|0}else{lt(7,e|0);de[h>>2]=de[l>>2];de[h+4>>2]=i;de[h+8>>2]=t;a=Tr(ct(146,h|0)|0)|0;Ye(0)}if((n|0)==(a|0)){n=6;break}if((a|0)<0){n=8;break}n=n-a|0;o=de[i+4>>2]|0;if(a>>>0<=o>>>0)if((t|0)==2){de[f>>2]=(de[f>>2]|0)+a;s=o;t=2}else s=o;else{s=de[u>>2]|0;de[f>>2]=s;de[p>>2]=s;s=de[i+12>>2]|0;a=a-o|0;i=i+8|0;t=t+-1|0}de[i>>2]=(de[i>>2]|0)+a;de[i+4>>2]=s-a}if((n|0)==6){c=de[u>>2]|0;de[e+16>>2]=c+(de[e+48>>2]|0);e=c;de[f>>2]=e;de[p>>2]=e}else if((n|0)==8){de[e+16>>2]=0;de[f>>2]=0;de[p>>2]=0;de[e>>2]=de[e>>2]|32;if((t|0)==2)r=0;else r=r-(de[i+4>>2]|0)|0}ge=d;return r|0}function Nr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=ge;ge=ge+80|0;i=n;de[e+36>>2]=3;if((de[e>>2]&64|0)==0?(de[i>>2]=de[e+60>>2],de[i+4>>2]=21505,de[i+8>>2]=n+12,(We(54,i|0)|0)!=0):0)pe[e+75>>0]=-1;i=Fr(e,t,r)|0;ge=n;return i|0}function zr(e){e=e|0;var t=0,r=0;t=e+74|0;r=pe[t>>0]|0;pe[t>>0]=r+255|r;t=de[e>>2]|0;if(!(t&8)){de[e+8>>2]=0;de[e+4>>2]=0;t=de[e+44>>2]|0;de[e+28>>2]=t;de[e+20>>2]=t;de[e+16>>2]=t+(de[e+48>>2]|0);t=0}else{de[e>>2]=t|32;t=-1}return t|0}function Br(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0,a=0;o=t&255;i=(r|0)!=0;e:do{if(i&(e&3|0)!=0){n=t&255;while(1){if((pe[e>>0]|0)==n<<24>>24){a=6;break e}e=e+1|0;r=r+-1|0;i=(r|0)!=0;if(!(i&(e&3|0)!=0)){a=5;break}}}else a=5}while(0);if((a|0)==5)if(i)a=6;else r=0;e:do{if((a|0)==6){n=t&255;if((pe[e>>0]|0)!=n<<24>>24){i=ve(o,16843009)|0;t:do{if(r>>>0>3)while(1){o=de[e>>2]^i;if((o&-2139062144^-2139062144)&o+-16843009)break;e=e+4|0;r=r+-4|0;if(r>>>0<=3){a=11;break t}}else a=11}while(0);if((a|0)==11)if(!r){r=0;break}while(1){if((pe[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 jr(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0;t=e+20|0;o=e+28|0;if((de[t>>2]|0)>>>0>(de[o>>2]|0)>>>0?(v[de[e+36>>2]&7](e,0,0)|0,(de[t>>2]|0)==0):0)t=-1;else{a=e+4|0;r=de[a>>2]|0;i=e+8|0;n=de[i>>2]|0;if(r>>>0<n>>>0)v[de[e+40>>2]&7](e,r-n|0,1)|0;de[e+16>>2]=0;de[o>>2]=0;de[t>>2]=0;de[i>>2]=0;de[a>>2]=0;t=0}return t|0}function Ur(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0,s=0,l=0,u=0.0,h=0,c=0,f=0,p=0,d=0.0,m=0,_=0,g=0,v=0,F=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,O=0,N=0,P=0,z=0,B=0,j=0,R=0,U=0,G=0,X=0,H=0,Y=0,W=0,q=0,V=0,C=0,K=0,M=0,J=0,I=0,D=0,Z=0,Q=0,L=0;L=ge;ge=ge+624|0;J=L+24|0;D=L+16|0;I=L+588|0;q=L+576|0;M=L;H=L+536|0;Q=L+8|0;Z=L+528|0;N=(e|0)!=0;P=H+40|0;X=P;H=H+39|0;Y=Q+4|0;W=q+12|0;q=q+11|0;V=I;C=W;K=C-V|0;z=-2-V|0;B=C+2|0;j=J+288|0;R=I+9|0;U=R;G=I+8|0;o=0;m=t;a=0;t=0;e:while(1){do{if((o|0)>-1)if((a|0)>(2147483647-o|0)){o=ie()|0;de[o>>2]=75;o=-1;break}else{o=a+o|0;break}}while(0);a=pe[m>>0]|0;if(!(a<<24>>24)){O=245;break}else s=m;t:while(1){switch(a<<24>>24){case 37:{a=s;O=9;break t}case 0:{a=s;break t}default:{}}k=s+1|0;a=pe[k>>0]|0;s=k}t:do{if((O|0)==9)while(1){O=0;if((pe[a+1>>0]|0)!=37)break t;s=s+1|0;a=a+2|0;if((pe[a>>0]|0)==37)O=9;else break}}while(0);g=s-m|0;if(N?(de[e>>2]&32|0)==0:0)ne(m,g,e)|0;if((s|0)!=(m|0)){m=a;a=g;continue}h=a+1|0;s=pe[h>>0]|0;l=(s<<24>>24)+-48|0;if(l>>>0<10){k=(pe[a+2>>0]|0)==36;h=k?a+3|0:h;s=pe[h>>0]|0;p=k?l:-1;t=k?1:t}else p=-1;a=s<<24>>24;t:do{if((a&-32|0)==32){l=0;while(1){if(!(1<<a+-32&75913)){c=l;a=h;break t}l=1<<(s<<24>>24)+-32|l;h=h+1|0;s=pe[h>>0]|0;a=s<<24>>24;if((a&-32|0)!=32){c=l;a=h;break}}}else{c=0;a=h}}while(0);do{if(s<<24>>24==42){l=a+1|0;s=(pe[l>>0]|0)+-48|0;if(s>>>0<10?(pe[a+2>>0]|0)==36:0){de[n+(s<<2)>>2]=10;t=1;a=a+3|0;s=de[i+((pe[l>>0]|0)+-48<<3)>>2]|0}else{if(t){o=-1;break e}if(!N){_=c;a=l;t=0;k=0;break}t=(de[r>>2]|0)+(4-1)&~(4-1);s=de[t>>2]|0;de[r>>2]=t+4;t=0;a=l}if((s|0)<0){_=c|8192;k=0-s|0}else{_=c;k=s}}else{l=(s<<24>>24)+-48|0;if(l>>>0<10){s=0;do{s=(s*10|0)+l|0;a=a+1|0;l=(pe[a>>0]|0)+-48|0}while(l>>>0<10);if((s|0)<0){o=-1;break e}else{_=c;k=s}}else{_=c;k=0}}}while(0);t:do{if((pe[a>>0]|0)==46){l=a+1|0;s=pe[l>>0]|0;if(s<<24>>24!=42){h=(s<<24>>24)+-48|0;if(h>>>0<10){a=l;s=0}else{a=l;h=0;break}while(1){s=(s*10|0)+h|0;a=a+1|0;h=(pe[a>>0]|0)+-48|0;if(h>>>0>=10){h=s;break t}}}l=a+2|0;s=(pe[l>>0]|0)+-48|0;if(s>>>0<10?(pe[a+3>>0]|0)==36:0){de[n+(s<<2)>>2]=10;a=a+4|0;h=de[i+((pe[l>>0]|0)+-48<<3)>>2]|0;break}if(t){o=-1;break e}if(N){a=(de[r>>2]|0)+(4-1)&~(4-1);h=de[a>>2]|0;de[r>>2]=a+4;a=l}else{a=l;h=0}}else h=-1}while(0);f=0;while(1){s=(pe[a>>0]|0)+-65|0;if(s>>>0>57){o=-1;break e}l=a+1|0;s=pe[5359+(f*58|0)+s>>0]|0;c=s&255;if((c+-1|0)>>>0<8){a=l;f=c}else{A=l;break}}if(!(s<<24>>24)){o=-1;break}l=(p|0)>-1;do{if(s<<24>>24==19)if(l){o=-1;break e}else O=52;else{if(l){de[n+(p<<2)>>2]=c;E=i+(p<<3)|0;S=de[E+4>>2]|0;O=M;de[O>>2]=de[E>>2];de[O+4>>2]=S;O=52;break}if(!N){o=0;break e}Hr(M,c,r)}}while(0);if((O|0)==52?(O=0,!N):0){m=A;a=g;continue}p=pe[a>>0]|0;p=(f|0)!=0&(p&15|0)==3?p&-33:p;l=_&-65537;S=(_&8192|0)==0?_:l;t:do{switch(p|0){case 110:switch(f|0){case 0:{de[de[M>>2]>>2]=o;m=A;a=g;continue e}case 1:{de[de[M>>2]>>2]=o;m=A;a=g;continue e}case 2:{m=de[M>>2]|0;de[m>>2]=o;de[m+4>>2]=((o|0)<0)<<31>>31;m=A;a=g;continue e}case 3:{$[de[M>>2]>>1]=o;m=A;a=g;continue e}case 4:{pe[de[M>>2]>>0]=o;m=A;a=g;continue e}case 6:{de[de[M>>2]>>2]=o;m=A;a=g;continue e}case 7:{m=de[M>>2]|0;de[m>>2]=o;de[m+4>>2]=((o|0)<0)<<31>>31;m=A;a=g;continue e}default:{m=A;a=g;continue e}}case 112:{f=S|8;h=h>>>0>8?h:8;p=120;O=64;break}case 88:case 120:{f=S;O=64;break}case 111:{l=M;s=de[l>>2]|0;l=de[l+4>>2]|0;if((s|0)==0&(l|0)==0)a=P;else{a=P;do{a=a+-1|0;pe[a>>0]=s&7|48;s=Zr(s|0,l|0,3)|0;l=re}while(!((s|0)==0&(l|0)==0))}if(!(S&8)){s=S;f=0;c=5839;O=77}else{f=X-a+1|0;s=S;h=(h|0)<(f|0)?f:h;f=0;c=5839;O=77}break}case 105:case 100:{s=M;a=de[s>>2]|0;s=de[s+4>>2]|0;if((s|0)<0){a=se(0,0,a|0,s|0)|0;s=re;l=M;de[l>>2]=a;de[l+4>>2]=s;l=1;c=5839;O=76;break t}if(!(S&2048)){c=S&1;l=c;c=(c|0)==0?5839:5841;O=76}else{l=1;c=5840;O=76}break}case 117:{s=M;a=de[s>>2]|0;s=de[s+4>>2]|0;l=0;c=5839;O=76;break}case 99:{pe[H>>0]=de[M>>2];m=H;s=1;f=0;p=5839;a=P;break}case 109:{a=ie()|0;a=xr(de[a>>2]|0)|0;O=82;break}case 115:{a=de[M>>2]|0;a=(a|0)!=0?a:5849;O=82;break}case 67:{de[Q>>2]=de[M>>2];de[Y>>2]=0;de[M>>2]=Q;h=-1;O=86;break}case 83:{if(!h){ae(e,32,k,0,S);a=0;O=98}else O=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{u=+ee[M>>3];de[D>>2]=0;ee[te>>3]=u;if((de[te+4>>2]|0)>=0)if(!(S&2048)){E=S&1;w=E;E=(E|0)==0?5857:5862}else{w=1;E=5859}else{u=-u;w=1;E=5856}ee[te>>3]=u;T=de[te+4>>2]&2146435072;do{if(T>>>0<2146435072|(T|0)==2146435072&0<0){d=+Er(u,D)*2.0;s=d!=0.0;if(s)de[D>>2]=(de[D>>2]|0)+-1;b=p|32;if((b|0)==97){m=p&32;g=(m|0)==0?E:E+9|0;_=w|2;a=12-h|0;do{if(!(h>>>0>11|(a|0)==0)){u=8.0;do{a=a+-1|0;u=u*16.0}while((a|0)!=0);if((pe[g>>0]|0)==45){u=-(u+(-d-u));break}else{u=d+u-u;break}}else u=d}while(0);s=de[D>>2]|0;a=(s|0)<0?0-s|0:s;a=oe(a,((a|0)<0)<<31>>31,W)|0;if((a|0)==(W|0)){pe[q>>0]=48;a=q}pe[a+-1>>0]=(s>>31&2)+43;f=a+-2|0;pe[f>>0]=p+15;c=(h|0)<1;l=(S&8|0)==0;s=I;while(1){E=~~u;a=s+1|0;pe[s>>0]=me[5823+E>>0]|m;u=(u-+(E|0))*16.0;do{if((a-V|0)==1){if(l&(c&u==0.0))break;pe[a>>0]=46;a=s+2|0}}while(0);if(!(u!=0.0))break;else s=a}h=(h|0)!=0&(z+a|0)<(h|0)?B+h-f|0:K-f+a|0;l=h+_|0;ae(e,32,k,l,S);if(!(de[e>>2]&32))ne(g,_,e)|0;ae(e,48,k,l,S^65536);a=a-V|0;if(!(de[e>>2]&32))ne(I,a,e)|0;s=C-f|0;ae(e,48,h-(a+s)|0,0,0);if(!(de[e>>2]&32))ne(f,s,e)|0;ae(e,32,k,l,S^8192);a=(l|0)<(k|0)?k:l;break}a=(h|0)<0?6:h;if(s){s=(de[D>>2]|0)+-28|0;de[D>>2]=s;u=d*268435456.0}else{u=d;s=de[D>>2]|0}T=(s|0)<0?J:j;x=T;s=T;do{y=~~u>>>0;de[s>>2]=y;s=s+4|0;u=(u-+(y>>>0))*1.0e9}while(u!=0.0);l=s;s=de[D>>2]|0;if((s|0)>0){c=T;while(1){f=(s|0)>29?29:s;h=l+-4|0;do{if(h>>>0<c>>>0)h=c;else{s=0;do{y=Qr(de[h>>2]|0,0,f|0)|0;y=$r(y|0,re|0,s|0,0)|0;s=re;F=li(y|0,s|0,1e9,0)|0;de[h>>2]=F;s=si(y|0,s|0,1e9,0)|0;h=h+-4|0}while(h>>>0>=c>>>0);if(!s){h=c;break}h=c+-4|0;de[h>>2]=s}}while(0);while(1){if(l>>>0<=h>>>0)break;s=l+-4|0;if(!(de[s>>2]|0))l=s;else break}s=(de[D>>2]|0)-f|0;de[D>>2]=s;if((s|0)>0)c=h;else break}}else h=T;if((s|0)<0){g=((a+25|0)/9|0)+1|0;v=(b|0)==102;m=h;while(1){_=0-s|0;_=(_|0)>9?9:_;do{if(m>>>0<l>>>0){s=(1<<_)+-1|0;c=1e9>>>_;h=0;f=m;do{y=de[f>>2]|0;de[f>>2]=(y>>>_)+h;h=ve(y&s,c)|0;f=f+4|0}while(f>>>0<l>>>0);s=(de[m>>2]|0)==0?m+4|0:m;if(!h){h=s;break}de[l>>2]=h;h=s;l=l+4|0}else h=(de[m>>2]|0)==0?m+4|0:m}while(0);s=v?T:h;l=(l-s>>2|0)>(g|0)?s+(g<<2)|0:l;s=(de[D>>2]|0)+_|0;de[D>>2]=s;if((s|0)>=0){m=h;break}else m=h}}else m=h;do{if(m>>>0<l>>>0){s=(x-m>>2)*9|0;c=de[m>>2]|0;if(c>>>0<10)break;else h=10;do{h=h*10|0;s=s+1|0}while(c>>>0>=h>>>0)}else s=0}while(0);F=(b|0)==103;y=(a|0)!=0;h=a-((b|0)!=102?s:0)+((y&F)<<31>>31)|0;if((h|0)<(((l-x>>2)*9|0)+-9|0)){f=h+9216|0;v=(f|0)/9|0;h=T+(v+-1023<<2)|0;f=((f|0)%9|0)+1|0;if((f|0)<9){c=10;do{c=c*10|0;f=f+1|0}while((f|0)!=9)}else c=10;_=de[h>>2]|0;g=(_>>>0)%(c>>>0)|0;if((g|0)==0?(T+(v+-1022<<2)|0)==(l|0):0)c=m;else O=163;do{if((O|0)==163){O=0;d=(((_>>>0)/(c>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;f=(c|0)/2|0;do{if(g>>>0<f>>>0)u=.5;else{if((g|0)==(f|0)?(T+(v+-1022<<2)|0)==(l|0):0){u=1.0;break}u=1.5}}while(0);do{if(w){if((pe[E>>0]|0)!=45)break;d=-d;u=-u}}while(0);f=_-g|0;de[h>>2]=f;if(!(d+u!=d)){c=m;break}b=f+c|0;de[h>>2]=b;if(b>>>0>999999999){s=m;while(1){c=h+-4|0;de[h>>2]=0;if(c>>>0<s>>>0){s=s+-4|0;de[s>>2]=0}b=(de[c>>2]|0)+1|0;de[c>>2]=b;if(b>>>0>999999999)h=c;else{m=s;h=c;break}}}s=(x-m>>2)*9|0;f=de[m>>2]|0;if(f>>>0<10){c=m;break}else c=10;do{c=c*10|0;s=s+1|0}while(f>>>0>=c>>>0);c=m}}while(0);b=h+4|0;m=c;l=l>>>0>b>>>0?b:l}g=0-s|0;while(1){if(l>>>0<=m>>>0){v=0;b=l;break}h=l+-4|0;if(!(de[h>>2]|0))l=h;else{v=1;b=l;break}}do{if(F){a=(y&1^1)+a|0;if((a|0)>(s|0)&(s|0)>-5){p=p+-1|0;a=a+-1-s|0}else{p=p+-2|0;a=a+-1|0}l=S&8;if(l)break;do{if(v){l=de[b+-4>>2]|0;if(!l){h=9;break}if(!((l>>>0)%10|0)){c=10;h=0}else{h=0;break}do{c=c*10|0;h=h+1|0}while(((l>>>0)%(c>>>0)|0|0)==0)}else h=9}while(0);l=((b-x>>2)*9|0)+-9|0;if((p|32|0)==102){l=l-h|0;l=(l|0)<0?0:l;a=(a|0)<(l|0)?a:l;l=0;break}else{l=l+s-h|0;l=(l|0)<0?0:l;a=(a|0)<(l|0)?a:l;l=0;break}}else l=S&8}while(0);_=a|l;c=(_|0)!=0&1;f=(p|32|0)==102;if(f){s=(s|0)>0?s:0;p=0}else{h=(s|0)<0?g:s;h=oe(h,((h|0)<0)<<31>>31,W)|0;if((C-h|0)<2)do{h=h+-1|0;pe[h>>0]=48}while((C-h|0)<2);pe[h+-1>>0]=(s>>31&2)+43;x=h+-2|0;pe[x>>0]=p;s=C-x|0;p=x}g=w+1+a+c+s|0;ae(e,32,k,g,S);if(!(de[e>>2]&32))ne(E,w,e)|0;ae(e,48,k,g,S^65536);do{if(f){h=m>>>0>T>>>0?T:m;s=h;do{l=oe(de[s>>2]|0,0,R)|0;do{if((s|0)==(h|0)){if((l|0)!=(R|0))break;pe[G>>0]=48;l=G}else{if(l>>>0<=I>>>0)break;do{l=l+-1|0;pe[l>>0]=48}while(l>>>0>I>>>0)}}while(0);if(!(de[e>>2]&32))ne(l,U-l|0,e)|0;s=s+4|0}while(s>>>0<=T>>>0);do{if(_){if(de[e>>2]&32)break;ne(5891,1,e)|0}}while(0);if((a|0)>0&s>>>0<b>>>0){l=s;while(1){s=oe(de[l>>2]|0,0,R)|0;if(s>>>0>I>>>0)do{s=s+-1|0;pe[s>>0]=48}while(s>>>0>I>>>0);if(!(de[e>>2]&32))ne(s,(a|0)>9?9:a,e)|0;l=l+4|0;s=a+-9|0;if(!((a|0)>9&l>>>0<b>>>0)){a=s;break}else a=s}}ae(e,48,a+9|0,9,0)}else{f=v?b:m+4|0;if((a|0)>-1){c=(l|0)==0;h=m;do{s=oe(de[h>>2]|0,0,R)|0;if((s|0)==(R|0)){pe[G>>0]=48;s=G}do{if((h|0)==(m|0)){l=s+1|0;if(!(de[e>>2]&32))ne(s,1,e)|0;if(c&(a|0)<1){s=l;break}if(de[e>>2]&32){s=l;break}ne(5891,1,e)|0;s=l}else{if(s>>>0<=I>>>0)break;do{s=s+-1|0;pe[s>>0]=48}while(s>>>0>I>>>0)}}while(0);l=U-s|0;if(!(de[e>>2]&32))ne(s,(a|0)>(l|0)?l:a,e)|0;a=a-l|0;h=h+4|0}while(h>>>0<f>>>0&(a|0)>-1)}ae(e,48,a+18|0,18,0);if(de[e>>2]&32)break;ne(p,C-p|0,e)|0}}while(0);ae(e,32,k,g,S^8192);a=(g|0)<(k|0)?k:g}else{f=(p&32|0)!=0;c=u!=u|0.0!=0.0;s=c?0:w;h=s+3|0;ae(e,32,k,h,l);a=de[e>>2]|0;if(!(a&32)){ne(E,s,e)|0;a=de[e>>2]|0}if(!(a&32))ne(c?f?5883:5887:f?5875:5879,3,e)|0;ae(e,32,k,h,S^8192);a=(h|0)<(k|0)?k:h}}while(0);m=A;continue e}default:{l=S;s=h;f=0;p=5839;a=P}}}while(0);t:do{if((O|0)==64){l=M;s=de[l>>2]|0;l=de[l+4>>2]|0;c=p&32;if(!((s|0)==0&(l|0)==0)){a=P;do{a=a+-1|0;pe[a>>0]=me[5823+(s&15)>>0]|c;s=Zr(s|0,l|0,4)|0;l=re}while(!((s|0)==0&(l|0)==0));O=M;if((f&8|0)==0|(de[O>>2]|0)==0&(de[O+4>>2]|0)==0){s=f;f=0;c=5839;O=77}else{s=f;f=2;c=5839+(p>>4)|0;O=77}}else{a=P;s=f;f=0;c=5839;O=77}}else if((O|0)==76){a=oe(a,s,P)|0;s=S;f=l;O=77}else if((O|0)==82){O=0;S=Br(a,0,h)|0;E=(S|0)==0;m=a;s=E?h:S-a|0;f=0;p=5839;a=E?a+h|0:S}else if((O|0)==86){O=0;s=0;a=0;c=de[M>>2]|0;while(1){l=de[c>>2]|0;if(!l)break;a=Ar(Z,l)|0;if((a|0)<0|a>>>0>(h-s|0)>>>0)break;s=a+s|0;if(h>>>0>s>>>0)c=c+4|0;else break}if((a|0)<0){o=-1;break e}ae(e,32,k,s,S);if(!s){a=0;O=98}else{l=0;h=de[M>>2]|0;while(1){a=de[h>>2]|0;if(!a){a=s;O=98;break t}a=Ar(Z,a)|0;l=a+l|0;if((l|0)>(s|0)){a=s;O=98;break t}if(!(de[e>>2]&32))ne(Z,a,e)|0;if(l>>>0>=s>>>0){a=s;O=98;break}else h=h+4|0}}}}while(0);if((O|0)==98){O=0;ae(e,32,k,a,S^8192);m=A;a=(k|0)>(a|0)?k:a;continue}if((O|0)==77){O=0;l=(h|0)>-1?s&-65537:s;s=M;s=(de[s>>2]|0)!=0|(de[s+4>>2]|0)!=0;if((h|0)!=0|s){s=(s&1^1)+(X-a)|0;m=a;s=(h|0)>(s|0)?h:s;p=c;a=P}else{m=P;s=0;p=c;a=P}}c=a-m|0;s=(s|0)<(c|0)?c:s;h=f+s|0;a=(k|0)<(h|0)?h:k;ae(e,32,a,h,l);if(!(de[e>>2]&32))ne(p,f,e)|0;ae(e,48,a,h,l^65536);ae(e,48,s,c,0);if(!(de[e>>2]&32))ne(m,c,e)|0;ae(e,32,a,h,l^8192);m=A}e:do{if((O|0)==245)if(!e)if(t){o=1;while(1){t=de[n+(o<<2)>>2]|0;if(!t)break;Hr(i+(o<<3)|0,t,r);o=o+1|0;if((o|0)>=10){o=1;break e}}if((o|0)<10)while(1){if(de[n+(o<<2)>>2]|0){o=-1;break e}o=o+1|0;if((o|0)>=10){o=1;break}}else o=1}else o=0}while(0);ge=L;return o|0}function Gr(e){e=e|0;if(!(de[e+68>>2]|0))g(e);return}function Xr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=e+20|0;n=de[i>>2]|0;e=(de[e+16>>2]|0)-n|0;e=e>>>0>r>>>0?r:e;ei(n|0,t|0,e|0)|0;de[i>>2]=(de[i>>2]|0)+e;return r|0}function Hr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0.0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{i=(de[r>>2]|0)+(4-1)&~(4-1);t=de[i>>2]|0;de[r>>2]=i+4;de[e>>2]=t;break e}case 10:{i=(de[r>>2]|0)+(4-1)&~(4-1);t=de[i>>2]|0;de[r>>2]=i+4;i=e;de[i>>2]=t;de[i+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{i=(de[r>>2]|0)+(4-1)&~(4-1);t=de[i>>2]|0;de[r>>2]=i+4;i=e;de[i>>2]=t;de[i+4>>2]=0;break e}case 12:{i=(de[r>>2]|0)+(8-1)&~(8-1);t=i;n=de[t>>2]|0;t=de[t+4>>2]|0;de[r>>2]=i+8;i=e;de[i>>2]=n;de[i+4>>2]=t;break e}case 13:{n=(de[r>>2]|0)+(4-1)&~(4-1);i=de[n>>2]|0;de[r>>2]=n+4;i=(i&65535)<<16>>16;n=e;de[n>>2]=i;de[n+4>>2]=((i|0)<0)<<31>>31;break e}case 14:{n=(de[r>>2]|0)+(4-1)&~(4-1);i=de[n>>2]|0;de[r>>2]=n+4;n=e;de[n>>2]=i&65535;de[n+4>>2]=0;break e}case 15:{n=(de[r>>2]|0)+(4-1)&~(4-1);i=de[n>>2]|0;de[r>>2]=n+4;i=(i&255)<<24>>24;n=e;de[n>>2]=i;de[n+4>>2]=((i|0)<0)<<31>>31;break e}case 16:{n=(de[r>>2]|0)+(4-1)&~(4-1);i=de[n>>2]|0;de[r>>2]=n+4;n=e;de[n>>2]=i&255;de[n+4>>2]=0;break e}case 17:{n=(de[r>>2]|0)+(8-1)&~(8-1);o=+ee[n>>3];de[r>>2]=n+8;ee[e>>3]=o;break e}case 18:{n=(de[r>>2]|0)+(8-1)&~(8-1);o=+ee[n>>3];de[r>>2]=n+8;ee[e>>3]=o;break e}default:break e}}while(0)}while(0)}function oe(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=li(e|0,t|0,10,0)|0;r=r+-1|0;pe[r>>0]=i|48;i=si(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;pe[r>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}return r|0}function ae(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0,s=0;s=ge;ge=ge+256|0;a=s;do{if((r|0)>(i|0)&(n&73728|0)==0){n=r-i|0;G(a|0,t|0,(n>>>0>256?256:n)|0)|0;t=de[e>>2]|0;o=(t&32|0)==0;if(n>>>0>255){i=r-i|0;do{if(o){ne(a,256,e)|0;t=de[e>>2]|0}n=n+-256|0;o=(t&32|0)==0}while(n>>>0>255);if(o)n=i&255;else break}else if(!o)break;ne(a,n,e)|0}}while(0);ge=s}function Yr(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,F=0,N=0,O=0,P=0,R=0,C=0,M=0,I=0,D=0,L=0;do{if(e>>>0<245){p=e>>>0<11?16:e+11&-8;e=p>>>3;s=de[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=de[i>>2]|0;o=n+8|0;a=de[o>>2]|0;do{if((r|0)!=(a|0)){if(a>>>0<(de[155]|0)>>>0)B();t=a+12|0;if((de[t>>2]|0)==(n|0)){de[t>>2]=r;de[i>>2]=a;break}else B()}else de[151]=s&~(1<<e)}while(0);L=e<<3;de[n+4>>2]=L|3;L=n+(L|4)|0;de[L>>2]=de[L>>2]|1;L=o;return L|0}a=de[153]|0;if(p>>>0>a>>>0){if(r){i=2<<e;i=r<<e&(i|0-i);i=(i&0-i)+-1|0;l=i>>>12&16;i=i>>>l;n=i>>>5&8;i=i>>>n;o=i>>>2&4;i=i>>>o;r=i>>>1&2;i=i>>>r;e=i>>>1&1;e=(n|l|o|r|e)+(i>>>e)|0;i=e<<1;r=644+(i<<2)|0;i=644+(i+2<<2)|0;o=de[i>>2]|0;l=o+8|0;n=de[l>>2]|0;do{if((r|0)!=(n|0)){if(n>>>0<(de[155]|0)>>>0)B();t=n+12|0;if((de[t>>2]|0)==(o|0)){de[t>>2]=r;de[i>>2]=n;u=de[153]|0;break}else B()}else{de[151]=s&~(1<<e);u=a}}while(0);L=e<<3;a=L-p|0;de[o+4>>2]=p|3;s=o+p|0;de[o+(p|4)>>2]=a|1;de[o+L>>2]=a;if(u){n=de[156]|0;r=u>>>3;t=r<<1;i=644+(t<<2)|0;e=de[151]|0;r=1<<r;if(e&r){e=644+(t+2<<2)|0;t=de[e>>2]|0;if(t>>>0<(de[155]|0)>>>0)B();else{h=e;c=t}}else{de[151]=e|r;h=644+(t+2<<2)|0;c=i}de[h>>2]=n;de[c+12>>2]=n;de[n+8>>2]=c;de[n+12>>2]=i}de[153]=a;de[156]=s;L=l;return L|0}e=de[152]|0;if(e){r=(e&0-e)+-1|0;D=r>>>12&16;r=r>>>D;I=r>>>5&8;r=r>>>I;L=r>>>2&4;r=r>>>L;e=r>>>1&2;r=r>>>e;i=r>>>1&1;i=de[908+((I|D|L|e|i)+(r>>>i)<<2)>>2]|0;r=(de[i+4>>2]&-8)-p|0;e=i;while(1){t=de[e+16>>2]|0;if(!t){t=de[e+20>>2]|0;if(!t){l=r;break}}e=(de[t+4>>2]&-8)-p|0;L=e>>>0<r>>>0;r=L?e:r;e=t;i=L?t:i}o=de[155]|0;if(i>>>0<o>>>0)B();s=i+p|0;if(i>>>0>=s>>>0)B();a=de[i+24>>2]|0;r=de[i+12>>2]|0;do{if((r|0)==(i|0)){e=i+20|0;t=de[e>>2]|0;if(!t){e=i+16|0;t=de[e>>2]|0;if(!t){f=0;break}}while(1){r=t+20|0;n=de[r>>2]|0;if(n){t=n;e=r;continue}r=t+16|0;n=de[r>>2]|0;if(!n)break;else{t=n;e=r}}if(e>>>0<o>>>0)B();else{de[e>>2]=0;f=t;break}}else{n=de[i+8>>2]|0;if(n>>>0<o>>>0)B();t=n+12|0;if((de[t>>2]|0)!=(i|0))B();e=r+8|0;if((de[e>>2]|0)==(i|0)){de[t>>2]=r;de[e>>2]=n;f=r;break}else B()}}while(0);do{if(a){t=de[i+28>>2]|0;e=908+(t<<2)|0;if((i|0)==(de[e>>2]|0)){de[e>>2]=f;if(!f){de[152]=de[152]&~(1<<t);break}}else{if(a>>>0<(de[155]|0)>>>0)B();t=a+16|0;if((de[t>>2]|0)==(i|0))de[t>>2]=f;else de[a+20>>2]=f;if(!f)break}e=de[155]|0;if(f>>>0<e>>>0)B();de[f+24>>2]=a;t=de[i+16>>2]|0;do{if(t)if(t>>>0<e>>>0)B();else{de[f+16>>2]=t;de[t+24>>2]=f;break}}while(0);t=de[i+20>>2]|0;if(t)if(t>>>0<(de[155]|0)>>>0)B();else{de[f+20>>2]=t;de[t+24>>2]=f;break}}}while(0);if(l>>>0<16){L=l+p|0;de[i+4>>2]=L|3;L=i+(L+4)|0;de[L>>2]=de[L>>2]|1}else{de[i+4>>2]=p|3;de[i+(p|4)>>2]=l|1;de[i+(l+p)>>2]=l;t=de[153]|0;if(t){o=de[156]|0;r=t>>>3;t=r<<1;n=644+(t<<2)|0;e=de[151]|0;r=1<<r;if(e&r){t=644+(t+2<<2)|0;e=de[t>>2]|0;if(e>>>0<(de[155]|0)>>>0)B();else{d=t;m=e}}else{de[151]=e|r;d=644+(t+2<<2)|0;m=n}de[d>>2]=o;de[m+12>>2]=o;de[o+8>>2]=m;de[o+12>>2]=n}de[153]=l;de[156]=s}L=i+8|0;return L|0}else m=p}else m=p}else if(e>>>0<=4294967231){e=e+11|0;c=e&-8;h=de[152]|0;if(h){r=0-c|0;e=e>>>8;if(e)if(c>>>0>16777215)u=31;else{m=(e+1048320|0)>>>16&8;b=e<<m;d=(b+520192|0)>>>16&4;b=b<<d;u=(b+245760|0)>>>16&2;u=14-(d|m|u)+(b<<u>>>15)|0;u=c>>>(u+7|0)&1|u<<1}else u=0;e=de[908+(u<<2)>>2]|0;e:do{if(!e){n=0;e=0;b=86}else{a=r;n=0;s=c<<((u|0)==31?0:25-(u>>>1)|0);l=e;e=0;while(1){o=de[l+4>>2]&-8;r=o-c|0;if(r>>>0<a>>>0)if((o|0)==(c|0)){o=l;e=l;b=90;break e}else e=l;else r=a;b=de[l+20>>2]|0;l=de[l+16+(s>>>31<<2)>>2]|0;n=(b|0)==0|(b|0)==(l|0)?n:b;if(!l){b=86;break}else{a=r;s=s<<1}}}}while(0);if((b|0)==86){if((n|0)==0&(e|0)==0){e=2<<u;e=h&(e|0-e);if(!e){m=c;break}e=(e&0-e)+-1|0;f=e>>>12&16;e=e>>>f;h=e>>>5&8;e=e>>>h;d=e>>>2&4;e=e>>>d;m=e>>>1&2;e=e>>>m;n=e>>>1&1;n=de[908+((h|f|d|m|n)+(e>>>n)<<2)>>2]|0;e=0}if(!n){s=r;l=e}else{o=n;b=90}}if((b|0)==90)while(1){b=0;m=(de[o+4>>2]&-8)-c|0;n=m>>>0<r>>>0;r=n?m:r;e=n?o:e;n=de[o+16>>2]|0;if(n){o=n;b=90;continue}o=de[o+20>>2]|0;if(!o){s=r;l=e;break}else b=90}if((l|0)!=0?s>>>0<((de[153]|0)-c|0)>>>0:0){n=de[155]|0;if(l>>>0<n>>>0)B();a=l+c|0;if(l>>>0>=a>>>0)B();o=de[l+24>>2]|0;r=de[l+12>>2]|0;do{if((r|0)==(l|0)){e=l+20|0;t=de[e>>2]|0;if(!t){e=l+16|0;t=de[e>>2]|0;if(!t){p=0;break}}while(1){r=t+20|0;i=de[r>>2]|0;if(i){t=i;e=r;continue}r=t+16|0;i=de[r>>2]|0;if(!i)break;else{t=i;e=r}}if(e>>>0<n>>>0)B();else{de[e>>2]=0;p=t;break}}else{i=de[l+8>>2]|0;if(i>>>0<n>>>0)B();t=i+12|0;if((de[t>>2]|0)!=(l|0))B();e=r+8|0;if((de[e>>2]|0)==(l|0)){de[t>>2]=r;de[e>>2]=i;p=r;break}else B()}}while(0);do{if(o){t=de[l+28>>2]|0;e=908+(t<<2)|0;if((l|0)==(de[e>>2]|0)){de[e>>2]=p;if(!p){de[152]=de[152]&~(1<<t);break}}else{if(o>>>0<(de[155]|0)>>>0)B();t=o+16|0;if((de[t>>2]|0)==(l|0))de[t>>2]=p;else de[o+20>>2]=p;if(!p)break}e=de[155]|0;if(p>>>0<e>>>0)B();de[p+24>>2]=o;t=de[l+16>>2]|0;do{if(t)if(t>>>0<e>>>0)B();else{de[p+16>>2]=t;de[t+24>>2]=p;break}}while(0);t=de[l+20>>2]|0;if(t)if(t>>>0<(de[155]|0)>>>0)B();else{de[p+20>>2]=t;de[t+24>>2]=p;break}}}while(0);e:do{if(s>>>0>=16){de[l+4>>2]=c|3;de[l+(c|4)>>2]=s|1;de[l+(s+c)>>2]=s;t=s>>>3;if(s>>>0<256){e=t<<1;i=644+(e<<2)|0;r=de[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=de[t>>2]|0;if(e>>>0<(de[155]|0)>>>0)B();else{g=t;v=e}}else{de[151]=r|t;g=644+(e+2<<2)|0;v=i}de[g>>2]=a;de[v+12>>2]=a;de[l+(c+8)>>2]=v;de[l+(c+12)>>2]=i;break}t=s>>>8;if(t)if(s>>>0>16777215)i=31;else{D=(t+1048320|0)>>>16&8;L=t<<D;I=(L+520192|0)>>>16&4;L=L<<I;i=(L+245760|0)>>>16&2;i=14-(I|D|i)+(L<<i>>>15)|0;i=s>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;de[l+(c+28)>>2]=i;de[l+(c+20)>>2]=0;de[l+(c+16)>>2]=0;e=de[152]|0;r=1<<i;if(!(e&r)){de[152]=e|r;de[t>>2]=a;de[l+(c+24)>>2]=t;de[l+(c+12)>>2]=a;de[l+(c+8)>>2]=a;break}t=de[t>>2]|0;t:do{if((de[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=de[e>>2]|0;if(!r)break;if((de[r+4>>2]&-8|0)==(s|0)){w=r;break t}else{i=i<<1;t=r}}if(e>>>0<(de[155]|0)>>>0)B();else{de[e>>2]=a;de[l+(c+24)>>2]=t;de[l+(c+12)>>2]=a;de[l+(c+8)>>2]=a;break e}}else w=t}while(0);t=w+8|0;e=de[t>>2]|0;L=de[155]|0;if(e>>>0>=L>>>0&w>>>0>=L>>>0){de[e+12>>2]=a;de[t>>2]=a;de[l+(c+8)>>2]=e;de[l+(c+12)>>2]=w;de[l+(c+24)>>2]=0;break}else B()}else{L=s+c|0;de[l+4>>2]=L|3;L=l+(L+4)|0;de[L>>2]=de[L>>2]|1}}while(0);L=l+8|0;return L|0}else m=c}else m=c}else m=-1}while(0);r=de[153]|0;if(r>>>0>=m>>>0){t=r-m|0;e=de[156]|0;if(t>>>0>15){de[156]=e+m;de[153]=t;de[e+(m+4)>>2]=t|1;de[e+r>>2]=t;de[e+4>>2]=m|3}else{de[153]=0;de[156]=0;de[e+4>>2]=r|3;L=e+(r+4)|0;de[L>>2]=de[L>>2]|1}L=e+8|0;return L|0}e=de[154]|0;if(e>>>0>m>>>0){D=e-m|0;de[154]=D;L=de[157]|0;de[157]=L+m;de[L+(m+4)>>2]=D|1;de[L+4>>2]=m|3;L=L+8|0;return L|0}do{if(!(de[269]|0)){e=$e(30)|0;if(!(e+-1&e)){de[271]=e;de[270]=e;de[272]=-1;de[273]=-1;de[274]=0;de[262]=0;w=(ut(0)|0)&-16^1431655768;de[269]=w;break}else B()}}while(0);l=m+48|0;s=de[271]|0;u=m+47|0;a=s+u|0;s=0-s|0;h=a&s;if(h>>>0<=m>>>0){L=0;return L|0}e=de[261]|0;if((e|0)!=0?(v=de[259]|0,w=v+h|0,w>>>0<=v>>>0|w>>>0>e>>>0):0){L=0;return L|0}e:do{if(!(de[262]&4)){e=de[157]|0;t:do{if(e){n=1052;while(1){r=de[n>>2]|0;if(r>>>0<=e>>>0?(_=n+4|0,(r+(de[_>>2]|0)|0)>>>0>e>>>0):0){o=n;e=_;break}n=de[n+8>>2]|0;if(!n){b=174;break t}}r=a-(de[154]|0)&s;if(r>>>0<2147483647){n=z(r|0)|0;w=(n|0)==((de[o>>2]|0)+(de[e>>2]|0)|0);e=w?r:0;if(w){if((n|0)!=(-1|0)){x=n;d=e;b=194;break e}}else b=184}else e=0}else b=174}while(0);do{if((b|0)==174){o=z(0)|0;if((o|0)!=(-1|0)){e=o;r=de[270]|0;n=r+-1|0;if(!(n&e))r=h;else r=h-e+(n+e&0-r)|0;e=de[259]|0;n=e+r|0;if(r>>>0>m>>>0&r>>>0<2147483647){w=de[261]|0;if((w|0)!=0?n>>>0<=e>>>0|n>>>0>w>>>0:0){e=0;break}n=z(r|0)|0;w=(n|0)==(o|0);e=w?r:0;if(w){x=o;d=e;b=194;break e}else b=184}else e=0}else e=0}}while(0);t:do{if((b|0)==184){o=0-r|0;do{if(l>>>0>r>>>0&(r>>>0<2147483647&(n|0)!=(-1|0))?(y=de[271]|0,y=u-r+y&0-y,y>>>0<2147483647):0)if((z(y|0)|0)==(-1|0)){z(o|0)|0;break t}else{r=y+r|0;break}}while(0);if((n|0)!=(-1|0)){x=n;d=r;b=194;break e}}}while(0);de[262]=de[262]|4;b=191}else{e=0;b=191}}while(0);if((((b|0)==191?h>>>0<2147483647:0)?(x=z(h|0)|0,T=z(0)|0,x>>>0<T>>>0&((x|0)!=(-1|0)&(T|0)!=(-1|0))):0)?(E=T-x|0,S=E>>>0>(m+40|0)>>>0,S):0){d=S?E:e;b=194}if((b|0)==194){e=(de[259]|0)+d|0;de[259]=e;if(e>>>0>(de[260]|0)>>>0)de[260]=e;a=de[157]|0;e:do{if(a){o=1052;do{e=de[o>>2]|0;r=o+4|0;n=de[r>>2]|0;if((x|0)==(e+n|0)){A=e;k=r;F=n;N=o;b=204;break}o=de[o+8>>2]|0}while((o|0)!=0);if(((b|0)==204?(de[N+12>>2]&8|0)==0:0)?a>>>0<x>>>0&a>>>0>=A>>>0:0){de[k>>2]=F+d;L=(de[154]|0)+d|0;D=a+8|0;D=(D&7|0)==0?0:0-D&7;I=L-D|0;de[157]=a+D;de[154]=I;de[a+(D+4)>>2]=I|1;de[a+(L+4)>>2]=40;de[158]=de[273];break}e=de[155]|0;if(x>>>0<e>>>0){de[155]=x;e=x}r=x+d|0;o=1052;while(1){if((de[o>>2]|0)==(r|0)){n=o;r=o;b=212;break}o=de[o+8>>2]|0;if(!o){r=1052;break}}if((b|0)==212)if(!(de[r+12>>2]&8)){de[n>>2]=x;f=r+4|0;de[f>>2]=(de[f>>2]|0)+d;f=x+8|0;f=(f&7|0)==0?0:0-f&7;u=x+(d+8)|0;u=(u&7|0)==0?0:0-u&7;t=x+(u+d)|0;c=f+m|0;p=x+c|0;h=t-(x+f)-m|0;de[x+(f+4)>>2]=m|3;t:do{if((t|0)!=(a|0)){if((t|0)==(de[156]|0)){L=(de[153]|0)+h|0;de[153]=L;de[156]=p;de[x+(c+4)>>2]=L|1;de[x+(L+c)>>2]=L;break}s=d+4|0;r=de[x+(s+u)>>2]|0;if((r&3|0)==1){l=r&-8;o=r>>>3;r:do{if(r>>>0>=256){a=de[x+((u|24)+d)>>2]|0;i=de[x+(d+12+u)>>2]|0;do{if((i|0)==(t|0)){n=u|16;i=x+(s+n)|0;r=de[i>>2]|0;if(!r){i=x+(n+d)|0;r=de[i>>2]|0;if(!r){M=0;break}}while(1){n=r+20|0;o=de[n>>2]|0;if(o){r=o;i=n;continue}n=r+16|0;o=de[n>>2]|0;if(!o)break;else{r=o;i=n}}if(i>>>0<e>>>0)B();else{de[i>>2]=0;M=r;break}}else{n=de[x+((u|8)+d)>>2]|0;if(n>>>0<e>>>0)B();e=n+12|0;if((de[e>>2]|0)!=(t|0))B();r=i+8|0;if((de[r>>2]|0)==(t|0)){de[e>>2]=i;de[r>>2]=n;M=i;break}else B()}}while(0);if(!a)break;e=de[x+(d+28+u)>>2]|0;r=908+(e<<2)|0;do{if((t|0)!=(de[r>>2]|0)){if(a>>>0<(de[155]|0)>>>0)B();e=a+16|0;if((de[e>>2]|0)==(t|0))de[e>>2]=M;else de[a+20>>2]=M;if(!M)break r}else{de[r>>2]=M;if(M)break;de[152]=de[152]&~(1<<e);break r}}while(0);r=de[155]|0;if(M>>>0<r>>>0)B();de[M+24>>2]=a;t=u|16;e=de[x+(t+d)>>2]|0;do{if(e)if(e>>>0<r>>>0)B();else{de[M+16>>2]=e;de[e+24>>2]=M;break}}while(0);t=de[x+(s+t)>>2]|0;if(!t)break;if(t>>>0<(de[155]|0)>>>0)B();else{de[M+20>>2]=t;de[t+24>>2]=M;break}}else{i=de[x+((u|8)+d)>>2]|0;n=de[x+(d+12+u)>>2]|0;r=644+(o<<1<<2)|0;do{if((i|0)!=(r|0)){if(i>>>0<e>>>0)B();if((de[i+12>>2]|0)==(t|0))break;B()}}while(0);if((n|0)==(i|0)){de[151]=de[151]&~(1<<o);break}do{if((n|0)==(r|0))O=n+8|0;else{if(n>>>0<e>>>0)B();e=n+8|0;if((de[e>>2]|0)==(t|0)){O=e;break}B()}}while(0);de[i+12>>2]=n;de[O>>2]=i}}while(0);t=x+((l|u)+d)|0;n=l+h|0}else n=h;t=t+4|0;de[t>>2]=de[t>>2]&-2;de[x+(c+4)>>2]=n|1;de[x+(n+c)>>2]=n;t=n>>>3;if(n>>>0<256){e=t<<1;i=644+(e<<2)|0;r=de[151]|0;t=1<<t;do{if(!(r&t)){de[151]=r|t;I=644+(e+2<<2)|0;D=i}else{t=644+(e+2<<2)|0;e=de[t>>2]|0;if(e>>>0>=(de[155]|0)>>>0){I=t;D=e;break}B()}}while(0);de[I>>2]=p;de[D+12>>2]=p;de[x+(c+8)>>2]=D;de[x+(c+12)>>2]=i;break}t=n>>>8;do{if(!t)i=0;else{if(n>>>0>16777215){i=31;break}I=(t+1048320|0)>>>16&8;D=t<<I;M=(D+520192|0)>>>16&4;D=D<<M;i=(D+245760|0)>>>16&2;i=14-(M|I|i)+(D<<i>>>15)|0;i=n>>>(i+7|0)&1|i<<1}}while(0);t=908+(i<<2)|0;de[x+(c+28)>>2]=i;de[x+(c+20)>>2]=0;de[x+(c+16)>>2]=0;e=de[152]|0;r=1<<i;if(!(e&r)){de[152]=e|r;de[t>>2]=p;de[x+(c+24)>>2]=t;de[x+(c+12)>>2]=p;de[x+(c+8)>>2]=p;break}t=de[t>>2]|0;r:do{if((de[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=de[e>>2]|0;if(!r)break;if((de[r+4>>2]&-8|0)==(n|0)){L=r;break r}else{i=i<<1;t=r}}if(e>>>0<(de[155]|0)>>>0)B();else{de[e>>2]=p;de[x+(c+24)>>2]=t;de[x+(c+12)>>2]=p;de[x+(c+8)>>2]=p;break t}}else L=t}while(0);t=L+8|0;e=de[t>>2]|0;D=de[155]|0;if(e>>>0>=D>>>0&L>>>0>=D>>>0){de[e+12>>2]=p;de[t>>2]=p;de[x+(c+8)>>2]=e;de[x+(c+12)>>2]=L;de[x+(c+24)>>2]=0;break}else B()}else{L=(de[154]|0)+h|0;de[154]=L;de[157]=p;de[x+(c+4)>>2]=L|1}}while(0);L=x+(f|8)|0;return L|0}else r=1052;while(1){e=de[r>>2]|0;if(e>>>0<=a>>>0?(t=de[r+4>>2]|0,i=e+t|0,i>>>0>a>>>0):0)break;r=de[r+8>>2]|0}n=e+(t+-39)|0;e=e+(t+-47+((n&7|0)==0?0:0-n&7))|0;n=a+16|0;e=e>>>0<n>>>0?a:e;t=e+8|0;r=x+8|0;r=(r&7|0)==0?0:0-r&7;L=d+-40-r|0;de[157]=x+r;de[154]=L;de[x+(r+4)>>2]=L|1;de[x+(d+-36)>>2]=40;de[158]=de[273];r=e+4|0;de[r>>2]=27;de[t>>2]=de[263];de[t+4>>2]=de[264];de[t+8>>2]=de[265];de[t+12>>2]=de[266];de[263]=x;de[264]=d;de[266]=0;de[265]=t;t=e+28|0;de[t>>2]=7;if((e+32|0)>>>0<i>>>0)do{L=t;t=t+4|0;de[t>>2]=7}while((L+8|0)>>>0<i>>>0);if((e|0)!=(a|0)){o=e-a|0;de[r>>2]=de[r>>2]&-2;de[a+4>>2]=o|1;de[e>>2]=o;t=o>>>3;if(o>>>0<256){e=t<<1;i=644+(e<<2)|0;r=de[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=de[t>>2]|0;if(e>>>0<(de[155]|0)>>>0)B();else{P=t;R=e}}else{de[151]=r|t;P=644+(e+2<<2)|0;R=i}de[P>>2]=a;de[R+12>>2]=a;de[a+8>>2]=R;de[a+12>>2]=i;break}t=o>>>8;if(t)if(o>>>0>16777215)i=31;else{D=(t+1048320|0)>>>16&8;L=t<<D;I=(L+520192|0)>>>16&4;L=L<<I;i=(L+245760|0)>>>16&2;i=14-(I|D|i)+(L<<i>>>15)|0;i=o>>>(i+7|0)&1|i<<1}else i=0;r=908+(i<<2)|0;de[a+28>>2]=i;de[a+20>>2]=0;de[n>>2]=0;t=de[152]|0;e=1<<i;if(!(t&e)){de[152]=t|e;de[r>>2]=a;de[a+24>>2]=r;de[a+12>>2]=a;de[a+8>>2]=a;break}t=de[r>>2]|0;t:do{if((de[t+4>>2]&-8|0)!=(o|0)){i=o<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=de[e>>2]|0;if(!r)break;if((de[r+4>>2]&-8|0)==(o|0)){C=r;break t}else{i=i<<1;t=r}}if(e>>>0<(de[155]|0)>>>0)B();else{de[e>>2]=a;de[a+24>>2]=t;de[a+12>>2]=a;de[a+8>>2]=a;break e}}else C=t}while(0);t=C+8|0;e=de[t>>2]|0;L=de[155]|0;if(e>>>0>=L>>>0&C>>>0>=L>>>0){de[e+12>>2]=a;de[t>>2]=a;de[a+8>>2]=e;de[a+12>>2]=C;de[a+24>>2]=0;break}else B()}}else{L=de[155]|0;if((L|0)==0|x>>>0<L>>>0)de[155]=x;de[263]=x;de[264]=d;de[266]=0;de[160]=de[269];de[159]=-1;t=0;do{L=t<<1;D=644+(L<<2)|0;de[644+(L+3<<2)>>2]=D;de[644+(L+2<<2)>>2]=D;t=t+1|0}while((t|0)!=32);L=x+8|0;L=(L&7|0)==0?0:0-L&7;D=d+-40-L|0;de[157]=x+L;de[154]=D;de[x+(L+4)>>2]=D|1;de[x+(d+-36)>>2]=40;de[158]=de[273]}}while(0);t=de[154]|0;if(t>>>0>m>>>0){D=t-m|0;de[154]=D;L=de[157]|0;de[157]=L+m;de[L+(m+4)>>2]=D|1;de[L+4>>2]=m|3;L=L+8|0;return L|0}}L=ie()|0;de[L>>2]=12;L=0;return L|0}function b(e){e=e|0;var t=0,r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0,y=0;if(!e)return;t=e+-8|0;s=de[155]|0;if(t>>>0<s>>>0)B();r=de[e+-4>>2]|0;i=r&3;if((i|0)==1)B();p=r&-8;m=e+(p+-8)|0;do{if(!(r&1)){t=de[t>>2]|0;if(!i)return;l=-8-t|0;h=e+l|0;c=t+p|0;if(h>>>0<s>>>0)B();if((h|0)==(de[156]|0)){t=e+(p+-4)|0;r=de[t>>2]|0;if((r&3|0)!=3){y=h;o=c;break}de[153]=c;de[t>>2]=r&-2;de[e+(l+4)>>2]=c|1;de[m>>2]=c;return}n=t>>>3;if(t>>>0<256){i=de[e+(l+8)>>2]|0;r=de[e+(l+12)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<s>>>0)B();if((de[i+12>>2]|0)!=(h|0))B()}if((r|0)==(i|0)){de[151]=de[151]&~(1<<n);y=h;o=c;break}if((r|0)!=(t|0)){if(r>>>0<s>>>0)B();t=r+8|0;if((de[t>>2]|0)==(h|0))a=t;else B()}else a=r+8|0;de[i+12>>2]=r;de[a>>2]=i;y=h;o=c;break}a=de[e+(l+24)>>2]|0;i=de[e+(l+12)>>2]|0;do{if((i|0)==(h|0)){r=e+(l+20)|0;t=de[r>>2]|0;if(!t){r=e+(l+16)|0;t=de[r>>2]|0;if(!t){u=0;break}}while(1){i=t+20|0;n=de[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=de[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0<s>>>0)B();else{de[r>>2]=0;u=t;break}}else{n=de[e+(l+8)>>2]|0;if(n>>>0<s>>>0)B();t=n+12|0;if((de[t>>2]|0)!=(h|0))B();r=i+8|0;if((de[r>>2]|0)==(h|0)){de[t>>2]=i;de[r>>2]=n;u=i;break}else B()}}while(0);if(a){t=de[e+(l+28)>>2]|0;r=908+(t<<2)|0;if((h|0)==(de[r>>2]|0)){de[r>>2]=u;if(!u){de[152]=de[152]&~(1<<t);y=h;o=c;break}}else{if(a>>>0<(de[155]|0)>>>0)B();t=a+16|0;if((de[t>>2]|0)==(h|0))de[t>>2]=u;else de[a+20>>2]=u;if(!u){y=h;o=c;break}}r=de[155]|0;if(u>>>0<r>>>0)B();de[u+24>>2]=a;t=de[e+(l+16)>>2]|0;do{if(t)if(t>>>0<r>>>0)B();else{de[u+16>>2]=t;de[t+24>>2]=u;break}}while(0);t=de[e+(l+20)>>2]|0;if(t)if(t>>>0<(de[155]|0)>>>0)B();else{de[u+20>>2]=t;de[t+24>>2]=u;y=h;o=c;break}else{y=h;o=c}}else{y=h;o=c}}else{y=t;o=p}}while(0);if(y>>>0>=m>>>0)B();t=e+(p+-4)|0;r=de[t>>2]|0;if(!(r&1))B();if(!(r&2)){if((m|0)==(de[157]|0)){v=(de[154]|0)+o|0;de[154]=v;de[157]=y;de[y+4>>2]=v|1;if((y|0)!=(de[156]|0))return;de[156]=0;de[153]=0;return}if((m|0)==(de[156]|0)){v=(de[153]|0)+o|0;de[153]=v;de[156]=y;de[y+4>>2]=v|1;de[y+v>>2]=v;return}o=(r&-8)+o|0;n=r>>>3;do{if(r>>>0>=256){a=de[e+(p+16)>>2]|0;t=de[e+(p|4)>>2]|0;do{if((t|0)==(m|0)){r=e+(p+12)|0;t=de[r>>2]|0;if(!t){r=e+(p+8)|0;t=de[r>>2]|0;if(!t){d=0;break}}while(1){i=t+20|0;n=de[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=de[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0<(de[155]|0)>>>0)B();else{de[r>>2]=0;d=t;break}}else{r=de[e+p>>2]|0;if(r>>>0<(de[155]|0)>>>0)B();i=r+12|0;if((de[i>>2]|0)!=(m|0))B();n=t+8|0;if((de[n>>2]|0)==(m|0)){de[i>>2]=t;de[n>>2]=r;d=t;break}else B()}}while(0);if(a){t=de[e+(p+20)>>2]|0;r=908+(t<<2)|0;if((m|0)==(de[r>>2]|0)){de[r>>2]=d;if(!d){de[152]=de[152]&~(1<<t);break}}else{if(a>>>0<(de[155]|0)>>>0)B();t=a+16|0;if((de[t>>2]|0)==(m|0))de[t>>2]=d;else de[a+20>>2]=d;if(!d)break}r=de[155]|0;if(d>>>0<r>>>0)B();de[d+24>>2]=a;t=de[e+(p+8)>>2]|0;do{if(t)if(t>>>0<r>>>0)B();else{de[d+16>>2]=t;de[t+24>>2]=d;break}}while(0);t=de[e+(p+12)>>2]|0;if(t)if(t>>>0<(de[155]|0)>>>0)B();else{de[d+20>>2]=t;de[t+24>>2]=d;break}}}else{i=de[e+p>>2]|0;r=de[e+(p|4)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<(de[155]|0)>>>0)B();if((de[i+12>>2]|0)!=(m|0))B()}if((r|0)==(i|0)){de[151]=de[151]&~(1<<n);break}if((r|0)!=(t|0)){if(r>>>0<(de[155]|0)>>>0)B();t=r+8|0;if((de[t>>2]|0)==(m|0))f=t;else B()}else f=r+8|0;de[i+12>>2]=r;de[f>>2]=i}}while(0);de[y+4>>2]=o|1;de[y+o>>2]=o;if((y|0)==(de[156]|0)){de[153]=o;return}}else{de[t>>2]=r&-2;de[y+4>>2]=o|1;de[y+o>>2]=o}t=o>>>3;if(o>>>0<256){r=t<<1;n=644+(r<<2)|0;i=de[151]|0;t=1<<t;if(i&t){t=644+(r+2<<2)|0;r=de[t>>2]|0;if(r>>>0<(de[155]|0)>>>0)B();else{_=t;g=r}}else{de[151]=i|t;_=644+(r+2<<2)|0;g=n}de[_>>2]=y;de[g+12>>2]=y;de[y+8>>2]=g;de[y+12>>2]=n;return}t=o>>>8;if(t)if(o>>>0>16777215)n=31;else{_=(t+1048320|0)>>>16&8;g=t<<_;m=(g+520192|0)>>>16&4;g=g<<m;n=(g+245760|0)>>>16&2;n=14-(m|_|n)+(g<<n>>>15)|0;n=o>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;de[y+28>>2]=n;de[y+20>>2]=0;de[y+16>>2]=0;r=de[152]|0;i=1<<n;e:do{if(r&i){t=de[t>>2]|0;t:do{if((de[t+4>>2]&-8|0)!=(o|0)){n=o<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;i=de[r>>2]|0;if(!i)break;if((de[i+4>>2]&-8|0)==(o|0)){v=i;break t}else{n=n<<1;t=i}}if(r>>>0<(de[155]|0)>>>0)B();else{de[r>>2]=y;de[y+24>>2]=t;de[y+12>>2]=y;de[y+8>>2]=y;break e}}else v=t}while(0);t=v+8|0;r=de[t>>2]|0;g=de[155]|0;if(r>>>0>=g>>>0&v>>>0>=g>>>0){de[r+12>>2]=y;de[t>>2]=y;de[y+8>>2]=r;de[y+12>>2]=v;de[y+24>>2]=0;break}else B()}else{de[152]=r|i;de[t>>2]=y;de[y+24>>2]=t;de[y+12>>2]=y;de[y+8>>2]=y}}while(0);y=(de[159]|0)+-1|0;de[159]=y;if(!y)t=1060;else return;while(1){t=de[t>>2]|0;if(!t)break;else t=t+8|0}de[159]=-1;return}function Wr(e,t){e=e|0;t=t|0;var r=0,i=0;if(!e){e=Yr(t)|0;return e|0}if(t>>>0>4294967231){e=ie()|0;de[e>>2]=12;e=0;return e|0}r=Vr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=Yr(t)|0;if(!r){e=0;return e|0}i=de[e+-4>>2]|0;i=(i&-8)-((i&3|0)==0?8:4)|0;ei(r|0,e|0,(i>>>0<t>>>0?i:t)|0)|0;b(e);e=r;return e|0}function qr(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=de[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 Vr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0;p=e+4|0;d=de[p>>2]|0;l=d&-8;h=e+l|0;s=de[155]|0;r=d&3;if(!((r|0)!=1&e>>>0>=s>>>0&e>>>0<h>>>0))B();i=e+(l|4)|0;n=de[i>>2]|0;if(!(n&1))B();if(!r){if(t>>>0<256){e=0;return e|0}if(l>>>0>=(t+4|0)>>>0?(l-t|0)>>>0<=de[271]<<1>>>0:0)return e|0;e=0;return e|0}if(l>>>0>=t>>>0){r=l-t|0;if(r>>>0<=15)return e|0;de[p>>2]=d&1|t|2;de[e+(t+4)>>2]=r|3;de[i>>2]=de[i>>2]|1;Kr(e+t|0,r);return e|0}if((h|0)==(de[157]|0)){r=(de[154]|0)+l|0;if(r>>>0<=t>>>0){e=0;return e|0}f=r-t|0;de[p>>2]=d&1|t|2;de[e+(t+4)>>2]=f|1;de[157]=e+t;de[154]=f;return e|0}if((h|0)==(de[156]|0)){i=(de[153]|0)+l|0;if(i>>>0<t>>>0){e=0;return e|0}r=i-t|0;if(r>>>0>15){de[p>>2]=d&1|t|2;de[e+(t+4)>>2]=r|1;de[e+i>>2]=r;i=e+(i+4)|0;de[i>>2]=de[i>>2]&-2;i=e+t|0}else{de[p>>2]=d&1|i|2;i=e+(i+4)|0;de[i>>2]=de[i>>2]|1;i=0;r=0}de[153]=r;de[156]=i;return e|0}if(n&2){e=0;return e|0}c=(n&-8)+l|0;if(c>>>0<t>>>0){e=0;return e|0}f=c-t|0;o=n>>>3;do{if(n>>>0>=256){a=de[e+(l+24)>>2]|0;o=de[e+(l+12)>>2]|0;do{if((o|0)==(h|0)){i=e+(l+20)|0;r=de[i>>2]|0;if(!r){i=e+(l+16)|0;r=de[i>>2]|0;if(!r){u=0;break}}while(1){n=r+20|0;o=de[n>>2]|0;if(o){r=o;i=n;continue}n=r+16|0;o=de[n>>2]|0;if(!o)break;else{r=o;i=n}}if(i>>>0<s>>>0)B();else{de[i>>2]=0;u=r;break}}else{n=de[e+(l+8)>>2]|0;if(n>>>0<s>>>0)B();r=n+12|0;if((de[r>>2]|0)!=(h|0))B();i=o+8|0;if((de[i>>2]|0)==(h|0)){de[r>>2]=o;de[i>>2]=n;u=o;break}else B()}}while(0);if(a){r=de[e+(l+28)>>2]|0;i=908+(r<<2)|0;if((h|0)==(de[i>>2]|0)){de[i>>2]=u;if(!u){de[152]=de[152]&~(1<<r);break}}else{if(a>>>0<(de[155]|0)>>>0)B();r=a+16|0;if((de[r>>2]|0)==(h|0))de[r>>2]=u;else de[a+20>>2]=u;if(!u)break}i=de[155]|0;if(u>>>0<i>>>0)B();de[u+24>>2]=a;r=de[e+(l+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)B();else{de[u+16>>2]=r;de[r+24>>2]=u;break}}while(0);r=de[e+(l+20)>>2]|0;if(r)if(r>>>0<(de[155]|0)>>>0)B();else{de[u+20>>2]=r;de[r+24>>2]=u;break}}}else{n=de[e+(l+8)>>2]|0;i=de[e+(l+12)>>2]|0;r=644+(o<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<s>>>0)B();if((de[n+12>>2]|0)!=(h|0))B()}if((i|0)==(n|0)){de[151]=de[151]&~(1<<o);break}if((i|0)!=(r|0)){if(i>>>0<s>>>0)B();r=i+8|0;if((de[r>>2]|0)==(h|0))a=r;else B()}else a=i+8|0;de[n+12>>2]=i;de[a>>2]=n}}while(0);if(f>>>0<16){de[p>>2]=c|d&1|2;t=e+(c|4)|0;de[t>>2]=de[t>>2]|1;return e|0}else{de[p>>2]=d&1|t|2;de[e+(t+4)>>2]=f|3;d=e+(c|4)|0;de[d>>2]=de[d>>2]|1;Kr(e+t|0,f);return e|0}return 0}function Kr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0,m=0,_=0,g=0,v=0;m=e+t|0;r=de[e+4>>2]|0;do{if(!(r&1)){u=de[e>>2]|0;if(!(r&3))return;f=e+(0-u)|0;c=u+t|0;l=de[155]|0;if(f>>>0<l>>>0)B();if((f|0)==(de[156]|0)){i=e+(t+4)|0;r=de[i>>2]|0;if((r&3|0)!=3){v=f;a=c;break}de[153]=c;de[i>>2]=r&-2;de[e+(4-u)>>2]=c|1;de[m>>2]=c;return}o=u>>>3;if(u>>>0<256){n=de[e+(8-u)>>2]|0;i=de[e+(12-u)>>2]|0;r=644+(o<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<l>>>0)B();if((de[n+12>>2]|0)!=(f|0))B()}if((i|0)==(n|0)){de[151]=de[151]&~(1<<o);v=f;a=c;break}if((i|0)!=(r|0)){if(i>>>0<l>>>0)B();r=i+8|0;if((de[r>>2]|0)==(f|0))s=r;else B()}else s=i+8|0;de[n+12>>2]=i;de[s>>2]=n;v=f;a=c;break}s=de[e+(24-u)>>2]|0;n=de[e+(12-u)>>2]|0;do{if((n|0)==(f|0)){n=16-u|0;i=e+(n+4)|0;r=de[i>>2]|0;if(!r){i=e+n|0;r=de[i>>2]|0;if(!r){h=0;break}}while(1){n=r+20|0;o=de[n>>2]|0;if(o){r=o;i=n;continue}n=r+16|0;o=de[n>>2]|0;if(!o)break;else{r=o;i=n}}if(i>>>0<l>>>0)B();else{de[i>>2]=0;h=r;break}}else{o=de[e+(8-u)>>2]|0;if(o>>>0<l>>>0)B();r=o+12|0;if((de[r>>2]|0)!=(f|0))B();i=n+8|0;if((de[i>>2]|0)==(f|0)){de[r>>2]=n;de[i>>2]=o;h=n;break}else B()}}while(0);if(s){r=de[e+(28-u)>>2]|0;i=908+(r<<2)|0;if((f|0)==(de[i>>2]|0)){de[i>>2]=h;if(!h){de[152]=de[152]&~(1<<r);v=f;a=c;break}}else{if(s>>>0<(de[155]|0)>>>0)B();r=s+16|0;if((de[r>>2]|0)==(f|0))de[r>>2]=h;else de[s+20>>2]=h;if(!h){v=f;a=c;break}}n=de[155]|0;if(h>>>0<n>>>0)B();de[h+24>>2]=s;r=16-u|0;i=de[e+r>>2]|0;do{if(i)if(i>>>0<n>>>0)B();else{de[h+16>>2]=i;de[i+24>>2]=h;break}}while(0);r=de[e+(r+4)>>2]|0;if(r)if(r>>>0<(de[155]|0)>>>0)B();else{de[h+20>>2]=r;de[r+24>>2]=h;v=f;a=c;break}else{v=f;a=c}}else{v=f;a=c}}else{v=e;a=t}}while(0);l=de[155]|0;if(m>>>0<l>>>0)B();r=e+(t+4)|0;i=de[r>>2]|0;if(!(i&2)){if((m|0)==(de[157]|0)){g=(de[154]|0)+a|0;de[154]=g;de[157]=v;de[v+4>>2]=g|1;if((v|0)!=(de[156]|0))return;de[156]=0;de[153]=0;return}if((m|0)==(de[156]|0)){g=(de[153]|0)+a|0;de[153]=g;de[156]=v;de[v+4>>2]=g|1;de[v+g>>2]=g;return}a=(i&-8)+a|0;o=i>>>3;do{if(i>>>0>=256){s=de[e+(t+24)>>2]|0;n=de[e+(t+12)>>2]|0;do{if((n|0)==(m|0)){i=e+(t+20)|0;r=de[i>>2]|0;if(!r){i=e+(t+16)|0;r=de[i>>2]|0;if(!r){d=0;break}}while(1){n=r+20|0;o=de[n>>2]|0;if(o){r=o;i=n;continue}n=r+16|0;o=de[n>>2]|0;if(!o)break;else{r=o;i=n}}if(i>>>0<l>>>0)B();else{de[i>>2]=0;d=r;break}}else{o=de[e+(t+8)>>2]|0;if(o>>>0<l>>>0)B();r=o+12|0;if((de[r>>2]|0)!=(m|0))B();i=n+8|0;if((de[i>>2]|0)==(m|0)){de[r>>2]=n;de[i>>2]=o;d=n;break}else B()}}while(0);if(s){r=de[e+(t+28)>>2]|0;i=908+(r<<2)|0;if((m|0)==(de[i>>2]|0)){de[i>>2]=d;if(!d){de[152]=de[152]&~(1<<r);break}}else{if(s>>>0<(de[155]|0)>>>0)B();r=s+16|0;if((de[r>>2]|0)==(m|0))de[r>>2]=d;else de[s+20>>2]=d;if(!d)break}i=de[155]|0;if(d>>>0<i>>>0)B();de[d+24>>2]=s;r=de[e+(t+16)>>2]|0;do{if(r)if(r>>>0<i>>>0)B();else{de[d+16>>2]=r;de[r+24>>2]=d;break}}while(0);r=de[e+(t+20)>>2]|0;if(r)if(r>>>0<(de[155]|0)>>>0)B();else{de[d+20>>2]=r;de[r+24>>2]=d;break}}}else{n=de[e+(t+8)>>2]|0;i=de[e+(t+12)>>2]|0;r=644+(o<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0<l>>>0)B();if((de[n+12>>2]|0)!=(m|0))B()}if((i|0)==(n|0)){de[151]=de[151]&~(1<<o);break}if((i|0)!=(r|0)){if(i>>>0<l>>>0)B();r=i+8|0;if((de[r>>2]|0)==(m|0))p=r;else B()}else p=i+8|0;de[n+12>>2]=i;de[p>>2]=n}}while(0);de[v+4>>2]=a|1;de[v+a>>2]=a;if((v|0)==(de[156]|0)){de[153]=a;return}}else{de[r>>2]=i&-2;de[v+4>>2]=a|1;de[v+a>>2]=a}r=a>>>3;if(a>>>0<256){i=r<<1;o=644+(i<<2)|0;n=de[151]|0;r=1<<r;if(n&r){r=644+(i+2<<2)|0;i=de[r>>2]|0;if(i>>>0<(de[155]|0)>>>0)B();else{_=r;g=i}}else{de[151]=n|r;_=644+(i+2<<2)|0;g=o}de[_>>2]=v;de[g+12>>2]=v;de[v+8>>2]=g;de[v+12>>2]=o;return}r=a>>>8;if(r)if(a>>>0>16777215)o=31;else{_=(r+1048320|0)>>>16&8;g=r<<_;m=(g+520192|0)>>>16&4;g=g<<m;o=(g+245760|0)>>>16&2;o=14-(m|_|o)+(g<<o>>>15)|0;o=a>>>(o+7|0)&1|o<<1}else o=0;r=908+(o<<2)|0;de[v+28>>2]=o;de[v+20>>2]=0;de[v+16>>2]=0;i=de[152]|0;n=1<<o;if(!(i&n)){de[152]=i|n;de[r>>2]=v;de[v+24>>2]=r;de[v+12>>2]=v;de[v+8>>2]=v;return}r=de[r>>2]|0;e:do{if((de[r+4>>2]&-8|0)!=(a|0)){o=a<<((o|0)==31?0:25-(o>>>1)|0);while(1){i=r+16+(o>>>31<<2)|0;n=de[i>>2]|0;if(!n)break;if((de[n+4>>2]&-8|0)==(a|0)){r=n;break e}else{o=o<<1;r=n}}if(i>>>0<(de[155]|0)>>>0)B();de[i>>2]=v;de[v+24>>2]=r;de[v+12>>2]=v;de[v+8>>2]=v;return}}while(0);i=r+8|0;n=de[i>>2]|0;g=de[155]|0;if(!(n>>>0>=g>>>0&r>>>0>=g>>>0))B();de[n+12>>2]=v;de[i>>2]=v;de[v+8>>2]=n;de[v+12>>2]=r;de[v+24>>2]=0}function Jr(){}function se(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 G(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,o=0,a=0;i=e+r|0;if((r|0)>=20){t=t&255;o=e&3;a=t|t<<8|t<<16|t<<24;n=i&~3;if(o){o=e+4-o|0;while((e|0)<(o|0)){pe[e>>0]=t;e=e+1|0}}while((e|0)<(n|0)){de[e>>2]=a;e=e+4|0}}while((e|0)<(i|0)){pe[e>>0]=t;e=e+1|0}return e-r|0}function Zr(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 Qr(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 $r(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 ei(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if((r|0)>=4096)return Qe(e|0,t|0,r|0)|0;i=e|0;if((e&3)==(t&3)){while(e&3){if(!r)return i|0;pe[e>>0]=pe[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}while((r|0)>=4){de[e>>2]=de[t>>2];e=e+4|0;t=t+4|0;r=r-4|0}}while((r|0)>0){pe[e>>0]=pe[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}return i|0}function ti(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>r;return}re=(t|0)<0?-1:0}function ri(e){e=e|0;var t=0;t=pe[w+(e&255)>>0]|0;if((t|0)<8)return t|0;t=pe[w+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=pe[w+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(pe[w+(e>>>24)>>0]|0)+24|0}function ii(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,o=0;o=e&65535;n=t&65535;r=ve(n,o)|0;i=e>>>16;e=(r>>>16)+(ve(n,i)|0)|0;n=t>>>16;t=ve(n,o)|0;return(re=(e>>>16)+(ve(n,i)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|r&65535|0)|0}function ni(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0,a=0,s=0,l=0,u=0;u=t>>31|((t|0)<0?-1:0)<<1;l=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;o=i>>31|((i|0)<0?-1:0)<<1;n=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;s=se(u^e,l^t,u,l)|0;a=re;e=o^u;t=n^l;se((ui(s,a,se(o^r,n^i,o,n)|0,re,0)|0)^e,re^t,e,t)}function oi(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0,a=0,s=0,l=0,u=0;n=ge;ge=ge+16|0;s=n|0;a=t>>31|((t|0)<0?-1:0)<<1;o=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;u=i>>31|((i|0)<0?-1:0)<<1;l=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;e=se(a^e,o^t,a,o)|0;t=re;ui(e,t,se(u^r,l^i,u,l)|0,re,s)|0;i=se(de[s>>2]^a,de[s+4>>2]^o,a,o)|0;r=re;ge=n;re=r}function ai(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0;n=e;o=r;r=ii(n,o)|0;e=re;re=(ve(t,o)|0)+(ve(i,n)|0)+e|e&0}function si(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return ui(e,t,r,i,0)|0}function li(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,o=0;o=ge;ge=ge+16|0;n=o|0;ui(e,t,r,i,n)|0;ge=o;return(re=de[n+4>>2]|0,de[n>>2]|0)|0}function ui(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var o=0,a=0,s=0,l=0,u=0,h=0,c=0,f=0,p=0,d=0;h=e;l=t;u=l;a=r;f=i;s=f;if(!u){o=(n|0)!=0;if(!s){if(o){de[n>>2]=(h>>>0)%(a>>>0);de[n+4>>2]=0}f=0;n=(h>>>0)/(a>>>0)>>>0;return(re=f,n)|0}else{if(!o){f=0;n=0;return(re=f,n)|0}de[n>>2]=e|0;de[n+4>>2]=t&0;f=0;n=0;return(re=f,n)|0}}o=(s|0)==0;do{if(a){if(!o){o=(m(s|0)|0)-(m(u|0)|0)|0;if(o>>>0<=31){c=o+1|0;s=31-o|0;t=o-31>>31;a=c;e=h>>>(c>>>0)&t|u<<s;t=u>>>(c>>>0)&t;o=0;s=h<<s;break}if(!n){f=0;n=0;return(re=f,n)|0}de[n>>2]=e|0;de[n+4>>2]=l|t&0;f=0;n=0;return(re=f,n)|0}o=a-1|0;if(o&a){s=(m(a|0)|0)+33-(m(u|0)|0)|0;d=64-s|0;c=32-s|0;l=c>>31;p=s-32|0;t=p>>31;a=s;e=c-1>>31&u>>>(p>>>0)|(u<<c|h>>>(s>>>0))&t;t=t&u>>>(s>>>0);o=h<<d&l;s=(u<<d|h>>>(p>>>0))&l|h<<c&s-33>>31;break}if(n){de[n>>2]=o&h;de[n+4>>2]=0}if((a|0)==1){p=l|t&0;d=e|0|0;return(re=p,d)|0}else{d=ri(a|0)|0;p=u>>>(d>>>0)|0;d=u<<32-d|h>>>(d>>>0)|0;return(re=p,d)|0}}else{if(o){if(n){de[n>>2]=(u>>>0)%(a>>>0);de[n+4>>2]=0}p=0;d=(u>>>0)/(a>>>0)>>>0;return(re=p,d)|0}if(!h){if(n){de[n>>2]=0;de[n+4>>2]=(u>>>0)%(s>>>0)}p=0;d=(u>>>0)/(s>>>0)>>>0;return(re=p,d)|0}o=s-1|0;if(!(o&s)){if(n){de[n>>2]=e|0;de[n+4>>2]=o&u|t&0}p=0;d=u>>>((ri(s|0)|0)>>>0);return(re=p,d)|0}o=(m(s|0)|0)-(m(u|0)|0)|0;if(o>>>0<=30){t=o+1|0;s=31-o|0;a=t;e=u<<s|h>>>(t>>>0);t=u>>>(t>>>0);o=0;s=h<<s;break}if(!n){p=0;d=0;return(re=p,d)|0}de[n>>2]=e|0;de[n+4>>2]=l|t&0;p=0;d=0;return(re=p,d)|0}}while(0);if(!a){u=s;l=0;s=0}else{c=r|0|0;h=f|i&0;u=$r(c|0,h|0,-1,-1)|0;r=re;l=s;s=0;do{i=l;l=o>>>31|l<<1;o=s|o<<1;i=e<<1|i>>>31|0;f=e>>>31|t<<1|0;se(u,r,i,f)|0;d=re;p=d>>31|((d|0)<0?-1:0)<<1;s=p&1;e=se(i,f,p&c,(((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1)&h)|0;t=re;a=a-1|0}while((a|0)!=0);u=l;l=0}a=0;if(n){de[n>>2]=e;de[n+4>>2]=t}p=(o|0)>>>31|(u|a)<<1|(a<<1|o>>>31)&0|l;d=(o<<1|0>>>31)&-2|s;return(re=p,d)|0}function hi(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return v[e&7](t|0,r|0,i|0)|0}function ci(e,t,r,i,n,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;Oi[e&3](t|0,r|0,i|0,n|0,o|0)}function fi(e,t){e=e|0;t=t|0;Pi[e&7](t|0)}function pi(e,t){e=e|0;t=t|0;return Ri[e&1](t|0)|0}function di(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;Ci[e&0](t|0,r|0,i|0)}function mi(e){e=e|0;Mi[e&3]()}function _i(e,t,r,i,n,o,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;a=a|0;Ii[e&3](t|0,r|0,i|0,n|0,o|0,a|0)}function gi(e,t,r,i,n,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;return X[e&1](t|0,r|0,i|0,n|0,o|0)|0}function vi(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 yi(e,t,r){e=e|0;t=t|0;r=r|0;a(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;a(1)}function xi(e){e=e|0;a(2)}function Ti(e){e=e|0;a(3);return 0}function wi(e,t,r){e=e|0;t=t|0;r=r|0;a(4)}function Ei(){a(5)}function Si(e,t,r,i,n,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;o=o|0;a(6)}function Ai(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a(7);return 0}function ki(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;a(8)}var v=[yi,ar,Xr,Fr,Lr,Nr,yi,yi];var Oi=[bi,pr,fr,bi];var Pi=[xi,tr,nr,rr,ir,or,br,Gr];var Ri=[Ti,Dr];var Ci=[wi];var Mi=[Ei,vr,yr,Ei];var Ii=[Si,mr,dr,Si];var X=[Ai,St];var Di=[ki,lr,ur,ki];return{___cxa_can_catch:_r,_crn_get_levels:Ft,_crn_get_uncompressed_size:zt,_crn_decompress:Bt,_i64Add:$r,_crn_get_width:Dt,___cxa_is_pointer_type:gr,_i64Subtract:se,_memset:G,_malloc:Yr,_free:b,_memcpy:ei,_bitshift64Lshr:Zr,_fflush:kr,_bitshift64Shl:Qr,_crn_get_height:Lt,___errno_location:ie,_crn_get_dxt_format:Nt,runPostSets:Jr,_emscripten_replace_memory:pt,stackAlloc:dt,stackSave:mt,stackRestore:_t,establishStackSpace:gt,setThrew:vt,setTempRet0:xt,getTempRet0:Tt,dynCall_iiii:hi,dynCall_viiiii:ci,dynCall_vi:fi,dynCall_ii:pi,dynCall_viii:di,dynCall_v:mi,dynCall_viiiiii:_i,dynCall_iiiiii:gi,dynCall_viiii:vi}}(e.Ya,e.Za,buffer)),zc=(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,e._i64Add=Z._i64Add),nb=(e._crn_get_height=Z._crn_get_height,e.___cxa_is_pointer_type=Z.___cxa_is_pointer_type,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,rb=(e._crn_get_dxt_format=Z._crn_get_dxt_format,e._bitshift64Lshr=Z._bitshift64Lshr),Na=e._free=Z._free,sb=(e._fflush=Z._fflush,e._crn_get_width=Z._crn_get_width,e.___errno_location=Z.___errno_location,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 o=0;o<i-1;o+=1)n.push(D(hb(t[o]),"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,__extends=(e.noInitialRun&&(vd=!1),td(),window.Module=e,this&&this.__extends||function(){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)};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_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures;function fourCCToInt32(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}function int32ToFourCC(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}!function(s){s.loadFromArrayBuffer=function(e,t,r){return new i(t).loadFromArrayBuffer(e,r)};l=PIXI.resources.Resource,__extends(e,l),e.prototype.init=function(e,t,r,i,n,o,a){void 0===i&&(i=-1),void 0===n&&(n=-1),this.src=e,this.resize(i,n),this._width=i,this._height=n,this.data=t,this.type=r,this.levels=o,this.internalFormat=a;e=this.complete;return this.complete=!!t,!e&&this.complete&&this.onload&&this.onload({target:this}),this.update(),this},e.prototype.dispose=function(){this.data=null},e.prototype.bind=function(e){void 0!==e.alphaMode?e.alphaMode=PIXI.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA:e.premultiplyAlpha=!1,l.prototype.bind.call(this,e)},e.prototype.upload=function(e,t,r){var i=e.state.gl;if(r.compressed=!1,e.texture.initCompressed(),null===this.data)throw"Trying to create a second (or more) webgl texture from the same CompressedImage : "+this.src;for(var n=this.levels,o=this.width,a=this.height,s=0,l=0;l<n;++l){var u=this._internalLoader.levelBufferSize(o,a,l),h=new Uint8Array(this.data.buffer,this.data.byteOffset+s,u);i.compressedTexImage2D(i.TEXTURE_2D,l,this.internalFormat,o,a,0,h),(o>>=1)<1&&(o=1),(a>>=1)<1&&(a=1),s+=u}return this._internalLoader.free(),this.preserveSource||(this.data=null),!0},e.prototype.style=function(e,t,r){var e=e.state.gl,i=this.levels;return t.scaleMode===PIXI.SCALE_MODES.LINEAR?1<i&&r.mipmap?(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)):1<i&&r.mipmap?e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST_MIPMAP_NEAREST):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST)),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,r.wrapMode),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,r.wrapMode),!0},e.prototype.loadFromArrayBuffer=function(e,t){var r=s.Loaders;if(!r||!r.length)throw"Registered compressed loaders is missing. Call `TextureSystem.initCompressed` before loading!";for(var i=void 0,n=0,o=r;n<o.length;n++){var a=o[n];if(t){if("CRN"===a.type){i=a;break}}else if(a.test(e)){i=a;break}}if(i)return this._internalLoader=new i(this),this._internalLoader.load(e);throw new Error("Compressed texture format is not recognized: "+this.src)};var l,i=e;function e(e,t,r,i,n,o,a){var s=l.call(this)||this;return s.complete=!1,s.isCompressedImage=!0,s.preserveSource=!0,s.onload=null,s.baseTexture=null,s.init(e,t,r,i,n,o,a),s}s.CompressedImage=i}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(t){function e(e){void 0===e&&(e=new t.CompressedImage("unknown")),this._image=e,this._format=0,e._internalLoader=this}e.prototype.free=function(){},e.test=function(e){return!1},e.type="ABSTRACT",t.AbstractInternalLoader=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){(t={})[16]=0,t[20]=1,t[25]=2,t[30]=3,t[36]=4,t[40]=5,t[48]=6,t[64]=7,t[50]=8,t[60]=9,t[80]=10,t[100]=11,t[120]=12,t[144]=13;var r,a=t,t=(r=e.AbstractInternalLoader,__extends(s,r),s.prototype.load=function(e){var t,r,i,n,o;if(s.test(e))return o=(i=new Uint8Array(e,0,16))[4],t=i[5],r=i[7]+(i[8]<<8)+(i[9]<<16),i=i[10]+(i[11]<<8)+(i[12]<<16),n=a[o*t]+(this.useSRGB?37840:37808),e=new Uint8Array(e,16),this._format=n,this._blockSize.x=o,this._blockSize.y=t,(o=this._image).init(o.src,e,"ASTC",r,i,1,n),o;throw"Invalid magic number in ASTC header"},s.test=function(e){return 1554098963===new Int32Array(e,0,1)[0]},s.prototype.levelBufferSize=function(e,t,r){void 0===r&&(r=0);var r=Math.floor,i=this._blockSize.x,n=this._blockSize.y;return r((e+i-1)/i)*r((t+n-1)/n)<<4},s.type="ASTC",s);function s(e,t){void 0===t&&(t=!1);e=r.call(this,e)||this;return e.useSRGB=t,e._blockSize={x:0,y:0},e}e.ASTCLoader=t}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){var t,r,i=fourCCToInt32("DXT1"),n=fourCCToInt32("DXT3"),o=fourCCToInt32("DXT5"),a=fourCCToInt32("ATC "),s=fourCCToInt32("ATCA"),l=fourCCToInt32("ATCI"),u=((t={})[i]=33776,t[n]=33778,t[o]=33779,t[a]=35986,t[s]=35987,t[l]=34798,t),i=(r=e.AbstractInternalLoader,__extends(h,r),h.prototype.load=function(e){if(!h.test(e))throw"Invalid magic number in DDS header";var t=new Int32Array(e,0,31);if(!(4&t[20]))throw"Unsupported format, must contain a FourCC code";var r=t[21],i=u[r]||-1;if(i<0)throw"Unsupported FourCC code: "+int32ToFourCC(r);var r=1,n=(131072&t[2]&&(r=Math.max(1,t[7])),t[4]),o=t[3],t=t[1]+4,e=new Uint8Array(e,t),t=this._image;return this._format=i,t.init(t.src,e,"DDS",n,o,r,i),t},h.test=function(e){return 542327876===new Int32Array(e,0,1)[0]},h.prototype.levelBufferSize=function(e,t,r){switch(void 0===r&&(r=0),this._format){case 33776:case 35986:return(e+3>>2)*(t+3>>2)*8;case 33778:case 33779:case 35987:case 34798:return(e+3>>2)*(t+3>>2)*16;default:return 0}},h.type="DDS",h);function h(e){return r.call(this,e)||this}e.DDSLoader=i}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){(r={})[0]=35841,r[1]=35843,r[2]=35840,r[3]=35842,r[6]=36196,r[7]=33776,r[9]=33778,r[5]=33779;var t,a=r,r=(t=e.AbstractInternalLoader,__extends(s,t),s.prototype.load=function(e){var t,r,i,n,o;if(s.test(e))return t=(o=new Int32Array(e,0,13))[2],t=a[t]||-1,r=o[7],i=o[6],n=o[11],o=o[12]+52,e=new Uint8Array(e,o),o=this._image,this._format=t,o.init(o.src,e,"PVR",r,i,n,t),o;throw"Invalid magic number in PVR header"},s.test=function(e){return 55727696===new Int32Array(e,0,1)[0]},s.prototype.levelBufferSize=function(e,t,r){switch(void 0===r&&(r=0),this._format){case 33776:case 36196:return(e+3>>2)*(t+3>>2)*8;case 33778:case 33779:return(e+3>>2)*(t+3>>2)*16;case 35840:case 35842:return Math.floor((Math.max(e,8)*Math.max(t,8)*4+7)/8);case 35841:case 35843:return Math.floor((Math.max(e,16)*Math.max(t,8)*2+7)/8);default:return 0}},s.type="PVR",s);function s(e){return t.call(this,e)||this}e.PVRTCLoader=r}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(l){var e,t,r=0,i=2,n=3,o=8,a=9,s=10,u=11,h=((e={})[3]=!0,e[9]=!0,e[10]=!0,e[11]=!0,e),c=((e={})[u]=-1,e[r]=36196,e[i]=33776,e[n]=33779,e[o]=35840,e[a]=35842,e[s]=37808,e),f=Object.keys(c).reduce(function(e,t){return e[c[+t]]=+t,e},{}),u=(t=l.AbstractInternalLoader,__extends(p,t),p.test=function(e){var e=1262195===new Uint32Array(e,0,1)[0]&&!!p.BASIS_BINDING,t=p.RGB_FORMAT&&p.RGBA_FORMAT;return!e&&t&&console.warn("[BASIS LOADER] Is Supported, but transcoder not binded or file is not BASIS file!"),t&&e},p.bindTranscoder=function(e,r){if(!e||!r)throw"Invalid state! undef fileCtr or ext invalid!";var t,i=Object.keys(r).reduce(function(e,t){t=r[t];return t?Object.assign(e,t.__proto__):e},{}),n=void 0,o=void 0;for(t in i){var a,s=i[t];void 0!==f[s]&&(a=f[s],h[a]?o={native:s,name:t,basis:a}:n={native:s,name:t,basis:a})}p.RGB_FORMAT=n||o,p.RGBA_FORMAT=o||n,p.BASIS_BINDING=e,console.log("[BASISLoader] Supported formats:","\nRGB:"+p.RGB_FORMAT.name+"\nRGBA:"+p.RGBA_FORMAT.name),l.RegisterCompressedLoader(p),l.RegisterCompressedExtensions("basis")},p.prototype.load=function(e){if(p.test(e))return this._loadAsync(e),this._image;throw"BASIS Transcoder not binded or transcoding not supported =(!"},p.prototype._loadAsync=function(e){var t=performance.now(),e=new p.BASIS_BINDING(new Uint8Array(e)),r=e.getImageWidth(0,0),i=e.getImageHeight(0,0),n=e.getHasAlpha(),o=this._image;if(!e.startTranscoding())throw"Transcoding error!";var n=n?p.RGBA_FORMAT:p.RGB_FORMAT,a=(console.log("Grats! BASIS will be transcoded to:",n),new Uint8Array(e.getImageTranscodedSizeInBytes(0,0,n.basis)));if(!e.transcodeImage(a,0,0,n.basis,!1,!1))throw"Transcoding error!";console.log("[BASISLoader] Totla transcoding time:",performance.now()-t),this._format=n.native,this._file=e;t=n.name.replace("COMPRESSED_","");return Promise.resolve(o.init(o.src,a,"BASIS|"+t,r,i,1,n.native))},p.prototype.levelBufferSize=function(e,t,r){return this._file?this._file.getImageTranscodedSizeInBytes(0,r,f[this._format]):void 0},p.BASIS_BINDING=void 0,p);function p(e){e=t.call(this,e)||this;return e.type="BASIS",e._file=void 0,e}l.BASISLoader=u}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(i){var g=window.CRN_Module;var t,v=[33776,33778,33779],e=(t=i.AbstractInternalLoader,__extends(r,t),r.prototype.load=function(e){for(var t=e.byteLength,e=new Uint8Array(e),r=g._malloc(t),i=e,n=g.HEAPU8,o=r,a=t,s=o/4,e=a%4,l=new Uint32Array(i.buffer,0,(a-e)/4),u=new Uint32Array(n.buffer),h=0;h<l.length;h++)u[s+h]=l[h];for(var c=a-e;c<a;c++)n[o+c]=i[c];var e=g._crn_get_width(r,t),f=g._crn_get_height(r,t),p=g._crn_get_levels(r,t),d=g._crn_get_dxt_format(r,t),m=g._crn_get_uncompressed_size(r,t,0),_=g._malloc(m),t=(g._crn_decompress(r,t,_,m,0),new Uint8Array(g.HEAPU8.buffer,_,m)),m=v[d],d=this._image;return this._format=m,this._caches=[r,_],d.init(d.src,t,"CRN",e,f,p,m)},r.prototype.levelBufferSize=function(e,t,r){return i.DDSLoader.prototype.levelBufferSize.call(this,e,t,r=void 0===r?0:r)},r.prototype.free=function(){g._free(this._caches[0]),g._free(this._caches[1])},r.test=function(e){return!!g},r.type="CRN",r);function r(e){return t.call(this,e)||this}i.CRNLoader=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(h){h.Loaders=[h.DDSLoader,h.PVRTCLoader,h.ASTCLoader,h.CRNLoader],PIXI.systems.TextureSystem.prototype.initCompressed=function(){var e=this.gl;this.compressedExtensions||(this.compressedExtensions={dxt:e.getExtension("WEBGL_compressed_texture_s3tc"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1")},this.compressedExtensions.crn=this.compressedExtensions.dxt)},h.RegisterCompressedLoader=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(e in h.Loaders=h.Loaders||[],t)h.Loaders.indexOf(t[e])<0&&h.Loaders.push(t[e])},h.defaultDetectedExtensions=[".png",".jpg",".json",".atlas"],h.detectExtensions=function(e,t,r){void 0===r&&(r=1);var i,n=[],o=(e instanceof PIXI.Renderer&&(e.texture.initCompressed(),(i=e.texture.compressedExtensions).dxt&&n.push(".dds"),i.pvrtc&&n.push(".pvr"),i.atc&&n.push(".atc"),i.astc&&n.push(".astc"),i.etc1&&n.push(".etc1")),n.slice(0)),a=[t||e.resolution];r&&a.push(r);for(var s=0;s<a.length;s++){for(var l="@"+a[s]+"x",u=0;u<o.length;u++)n.push(l+o[u]);for(u=0;u<h.defaultDetectedExtensions.length;u++)n.push(l+h.defaultDetectedExtensions[u])}return n}}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(o){var i=PIXI.LoaderResource;function e(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(e in t)o.TEXTURE_EXTENSIONS.indexOf(t[e])<0&&(o.TEXTURE_EXTENSIONS.push(t[e]),i.setExtensionXhrType(t[e],i.XHR_RESPONSE_TYPE.BUFFER))}o.TEXTURE_EXTENSIONS=[],o.RegisterCompressedExtensions=e;r.use=function(e,t){var r=e.url,i=r.lastIndexOf("."),n=r.lastIndexOf("?"),i=r.substring(i+1,0<n?n:r.length);if(!(o.TEXTURE_EXTENSIONS.indexOf(i)<0)){if(!e.data)throw new Error("compressedImageParser middleware for PixiJS v5 must be specified in loader.use() and must have resource.data when completed");e.compressedImage||(e.compressedImage=new o.CompressedImage(e.url),e.compressedImage.loadFromArrayBuffer(e.data,"crn"===i),e.isCompressedImage=!0,e.texture=function(e,t,r){e=new PIXI.BaseTexture(e,{scaleMode:PIXI.settings.SCALE_MODE,resolution:PIXI.utils.getResolutionOfUrl(t)}),e=new PIXI.Texture(e);r=r||t;PIXI.BaseTexture.addToCache(e.baseTexture,r),PIXI.Texture.addToCache(e,r),r!==t&&(PIXI.BaseTexture.addToCache(e.baseTexture,t),PIXI.Texture.addToCache(e,t));return e}(e.compressedImage,e.url,e.name))}t()};var t=r;function r(){}o.ImageParser=t,e("dds","crn","pvr","etc1","astc"),PIXI.Loader.registerPlugin(t)}(pixi_compressed_textures=pixi_compressed_textures||{}),(pixi_compressed_textures||(pixi_compressed_textures={})).extensionChooser=function(l){return void 0===l&&(l=[]),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 o=r.length-1;0<=o;o--)for(var a,i=e._baseUrl+r[o],s=0;s<l.length;s++)if(r[o]===l[s])return e.url=i,0<=(n=(a=-1<(a=r[o]).indexOf("@")?a.replace(/@[0-9.]*x/,""):a).indexOf("."))&&(a=a.substring(n+1)),e.extension=a,e.loadType=e._determineLoadType(),void t();t()}},!function(e){function t(){}t.use=function(e,t){var r,i,n,o,a;e.texture&&e._defaultUrlChoice&&e._defaultUrl!==e.url&&(i=(r=e.texture).baseTexture,n=e.url,o=e._defaultUrlChoice,0<=(a=i.textureCacheIds.indexOf(n))&&(i.textureCacheIds[a]=o,delete PIXI.utils.BaseTextureCache[e.url],PIXI.utils.BaseTextureCache[o]=i),0<=(a=r.textureCacheIds.indexOf(n))&&(r.textureCacheIds[a]=o,delete PIXI.utils.TextureCache[e.url],PIXI.utils.TextureCache[o]=i)),t()},e.ExtensionFixer=t}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){PIXI.compressedTextures=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(u){i=u.BASISLoader,__extends(n,i),n.prototype._loadAsync=function(e){var s=this,l=performance.now(),t=u.BASISLoader.BASIS_BINDING,r={genMip:!0,rgbaFormat:u.BASISLoader.RGBA_FORMAT.basis,rgbFormat:u.BASISLoader.RGB_FORMAT.basis,transfer:!0};return t.transcode(e,r).then(function(e){var t=e.width,r=e.height,i=new Uint8Array(e.buffer),n=e.hasAlpha?u.BASISLoader.RGBA_FORMAT:u.BASISLoader.RGB_FORMAT,o=n.name.replace("COMPRESSED_",""),a=s._image;return s._mips=e.mipmaps,console.log("[WorkedBASISLoader] Total transcoding time:",performance.now()-l),a.init(a.src,i,"BASIS|"+o,t,r,1,n.native)})},n.loadAndRunTranscoder=function(r){return Promise.all([fetch(r.path+"/basis_transcoder.js").then(function(e){return e.text()}),fetch(r.path+"/basis_transcoder.wasm").then(function(e){return e.arrayBuffer()})]).then(function(e){var t=e[0],e=e[1];n.runTranscoder(Object.assign(r,{jsSource:t,wasmSource:e}))})},n.runTranscoder=function(e){var t=new u.WorkedBASIS.TranscoderWorkerPool(e.threads||2),r=(i.bindTranscoder.call(this,t,e.ext),u.Loaders.indexOf(u.BASISLoader));return u.Loaders[r]=n,t.init(e.jsSource,e.wasmSource)},n.prototype.levelBufferSize=function(e,t,r){return this._mips[r].size};var i,e=n;function n(e){e=i.call(this,e)||this;return e._mips=[],e}u.WorkedBASISLoader=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){var n,a;function t(){this.worker=void 0,this.id=t.ID++,this.free=!1,this.initDone=!1,this.binary=void 0,this._rej=void 0,this._res=void 0}function r(e){void 0===e&&(e=0),this.workers=[],this.count=1,this.count=e||1}n=e.WorkedBASIS||(e.WorkedBASIS={}),t.prototype.init=function(e,r){var i=this;if(void 0===e&&(e=void 0),void 0===r&&(r=void 0),this.worker||(this.worker=n.generateWorker(e)),!this.worker)throw"Can't create worker";if(this.initDone)return Promise.resolve(!0);console.log("[BASIS Worker "+this.id+"] init start!"),this.worker.addEventListener("message",this._onMessage.bind(this)),this.worker.addEventListener("error",this._onError.bind(this)),this.binary=r;var t=performance.now();return new Promise(function(e,t){i._rej=t,i._res=e,i._init(r)}).then(function(e){return console.log("[BASIS Worker "+i.id+"] init done!",performance.now()-t),i.initDone=!0,i.free=!0,i.binary=e.buffer,!0})},t.prototype.transcode=function(r,i){var n,o=this;if(!this.free)throw"[BASIS Worker "+this.id+"] Is busy! Check '.free' status!";if(r&&void 0!==i.rgbaFormat&&void 0!==i.rgbFormat)return n={rgbaFormat:i.rgbaFormat,rgbFormat:i.rgbFormat,genMip:i.genMip||!1},this.free=!1,new Promise(function(e,t){o._rej=t,o._res=e,i.transfer?o.worker.postMessage({type:"transcode",buffer:r,config:n},[r]):o.worker.postMessage({type:"transcode",buffer:r,config:n})}).then(function(e){return o.free=!0,e});throw"Buffer and formats requred!"},t.prototype._init=function(e){this.worker.postMessage({type:"init",id:0,wasmBinary:e},[e])},t.prototype._onMessage=function(e){"error"===e.data.type&&this._onError(e.data.error),this._res&&this._res(e.data)},t.prototype._onError=function(e){this._rej&&this._rej(e)},t.prototype.destroy=function(){this.worker.terminate()},t.ID=0,a=t,n.BasisWorker=a,r.prototype.init=function(t,r){function i(){var e;if(!(++o>n.count))return e=new a,n.workers.push(e),e.init(t,r).then(function(){r=e.binary,i()})}var n=this,o=0;return i().then(function(){return n})},r.prototype.transcode=function(t,r){var n,o,a,s;if(this.workers&&this.workers.length)return n=this.workers,o=void 0,a=0,s=function(e){for(var t=0,r=n;t<r.length;t++){var i=r[t];if(i.free){o=i;break}}if(100<a)throw"[TranscoderWorkerPool] Can't found free worker after 100 interation!";o?e(o):setTimeout(function(){return s(e)},10*a),a++},new Promise(s).then(function(e){return console.log("[TranscoderWorkerPool] run transcoding on "+e.id+" worker"),e.transcode(t,r)});throw"[TranscoderWorkerPool] Pool empty, populate before!"},r.prototype.destroy=function(){this.workers.forEach(function(e){e.destroy()}),this.workers=void 0},n.TranscoderWorkerPool=r}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){var n;(n=e.WorkedBASIS||(e.WorkedBASIS={})).basisWorkerSource=function(){onmessage=function(e){var e=e.data,t=self[e.type];t&&t(e)}},n.generateWorker=function(e){var t=(i=n.basisWorkerSource.toString()).indexOf("{"),r=i.lastIndexOf("}"),i=e+"\n"+i.substring(t+1,r);return new Worker(URL.createObjectURL(new Blob([i])))}}(pixi_compressed_textures=pixi_compressed_textures||{});var __filters=function(e,s,l,u,h,c,F,N){"use strict";var z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function t(e,t){function r(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var B,j,U,G,X,H,Y,W,q,V,K,J,Z,Q,$,ee,te,re,ie,ne,oe,ae,se,le,ue,he,ce,fe,pe,de,me,_e,ge,ve,ye,be,xe=function(){return(xe=Object.assign||function(e){for(var t,r=arguments,i=1,n=arguments.length;i<n;i++)for(var o in t=r[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},f=(Object.create,Object.create,"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}"),Te=(t(ct,be=s.Filter),ct.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)},ct),we=(t(ht,ye=s.Filter),Object.defineProperty(ht.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(e){this.uniforms.threshold=e},enumerable:!1,configurable:!0}),ht),p=(t(L,ve=s.Filter),L.prototype.apply=function(e,t,r,i){var n,o=this._pixelSize.x/t._frame.width,a=this._pixelSize.y/t._frame.height;if(1===this._quality||0===this._blur)n=this._kernels[0]+.5,this.uniforms.uOffset[0]=n*o,this.uniforms.uOffset[1]=n*a,e.applyFilter(this,t,r,i);else{for(var s,l=e.getFilterTexture(),u=t,h=l,c=this._quality-1,f=0;f<c;f++)n=this._kernels[f]+.5,this.uniforms.uOffset[0]=n*o,this.uniforms.uOffset[1]=n*a,e.applyFilter(this,u,h,1),s=u,u=h,h=s;n=this._kernels[c]+.5,this.uniforms.uOffset[0]=n*o,this.uniforms.uOffset[1]=n*a,e.applyFilter(this,u,r,i),e.returnFilterTexture(l)}},L.prototype._updatePadding=function(){this.padding=Math.ceil(this._kernels.reduce(function(e,t){return e+t+.5},0))},L.prototype._generateKernels=function(){var e=this._blur,t=this._quality,r=[e];if(0<e)for(var i=e,n=e/t,o=1;o<t;o++)r.push(i-=n);this._kernels=r,this._updatePadding()},Object.defineProperty(L.prototype,"kernels",{get:function(){return this._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)},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"pixelSize",{get:function(){return this._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 l.Point?(this._pixelSize.x=e.x,this._pixelSize.y=e.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"quality",{get:function(){return this._quality},set:function(e){this._quality=Math.max(1,Math.round(e)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"blur",{get:function(){return this._blur},set:function(e){this._blur=e,this._generateKernels()},enumerable:!1,configurable:!0}),L),Ee=(t(D,ge=s.Filter),D.prototype.apply=function(e,t,r,i,n){var o=e.getFilterTexture(),n=(this._extractFilter.apply(e,t,o,1,n),e.getFilterTexture());this._blurFilter.apply(e,o,n,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=n,e.applyFilter(this,t,r,i),e.returnFilterTexture(n),e.returnFilterTexture(o)},Object.defineProperty(D.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e,this._extractFilter&&(this._extractFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(e){this._extractFilter.threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(e){this._blurFilter.kernels=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(e){this._blurFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(e){this._blurFilter.quality=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(e){this._blurFilter.pixelSize=e},enumerable:!1,configurable:!0}),D.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:u.settings.FILTER_RESOLUTION},D),Se=(t(ut,_e=s.Filter),Object.defineProperty(ut.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(e){this.uniforms.pixelSize=e},enumerable:!1,configurable:!0}),ut),Ae=(t(I,me=s.Filter),I.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(I.prototype,"rotation",{get:function(){return this._angle/l.DEG_TO_RAD},set:function(e){this._angle=e*l.DEG_TO_RAD,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"thickness",{get:function(){return this._thickness},set:function(e){this._thickness=e,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"lightColor",{get:function(){return h.rgb2hex(this.uniforms.lightColor)},set:function(e){h.hex2rgb(e,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(e){this.uniforms.lightAlpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"shadowColor",{get:function(){return h.rgb2hex(this.uniforms.shadowColor)},set:function(e){h.hex2rgb(e,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(e){this.uniforms.shadowAlpha=e},enumerable:!1,configurable:!0}),I),ke=(t(M,de=s.Filter),M.prototype.apply=function(e,t,r,i){var n=e.getFilterTexture();this.defaultFilter.apply(e,t,r,i),this.blurXFilter.apply(e,t,n,1),this.blurYFilter.apply(e,n,r,0),e.returnFilterTexture(n)},Object.defineProperty(M.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e},enumerable:!1,configurable:!0}),M),Oe=(t(C,pe=s.Filter),C.prototype.apply=function(e,t,r,i){var n=t.filterFrame,o=n.width,n=n.height;this.uniforms.dimensions[0]=o,this.uniforms.dimensions[1]=n,e.applyFilter(this,t,r,i)},Object.defineProperty(C.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(e){this.uniforms.radius=e},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(e){this.uniforms.strength=e},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"center",{get:function(){return this.uniforms.center},set:function(e){this.uniforms.center=e},enumerable:!1,configurable:!0}),C.defaults={center:[.5,.5],radius:100,strength:1},C),Pe=(t(R,fe=s.Filter),R.prototype.apply=function(e,t,r,i){this.uniforms._mix=this.mix,e.applyFilter(this,t,r,i)},Object.defineProperty(R.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"colorMap",{get:function(){return this._colorMap},set:function(e){var t;e&&(null!=(t=e=e instanceof s.Texture?e:s.Texture.from(e))&&t.baseTexture&&(e.baseTexture.scaleMode=this._scaleMode,e.baseTexture.mipmap=c.MIPMAP_MODES.OFF,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)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"nearest",{get:function(){return this._nearest},set:function(e){this._nearest=e,this._scaleMode=e?c.SCALE_MODES.NEAREST:c.SCALE_MODES.LINEAR;e=this._colorMap;e&&e.baseTexture&&(e.baseTexture._glTextures={},e.baseTexture.scaleMode=this._scaleMode,e.baseTexture.mipmap=c.MIPMAP_MODES.OFF,e._updateID++,e.baseTexture.emit("update",e.baseTexture))},enumerable:!1,configurable:!0}),R.prototype.updateColorMap=function(){var e=this._colorMap;e&&e.baseTexture&&(e._updateID++,e.baseTexture.emit("update",e.baseTexture),this.colorMap=e)},R.prototype.destroy=function(e){void 0===e&&(e=!1),this._colorMap&&this._colorMap.destroy(e),fe.prototype.destroy.call(this)},R),Re=(t(lt,ce=s.Filter),Object.defineProperty(lt.prototype,"color",{get:function(){return this._color},set:function(e){var t=this.uniforms.color;"number"==typeof e?(h.hex2rgb(e,t),this._color=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._color=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"alpha",{get:function(){return this._alpha},set:function(e){this.uniforms.alpha=e,this._alpha=e},enumerable:!1,configurable:!0}),lt),Ce=(t(P,he=s.Filter),Object.defineProperty(P.prototype,"originalColor",{get:function(){return this._originalColor},set:function(e){var t=this.uniforms.originalColor;"number"==typeof e?(h.hex2rgb(e,t),this._originalColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._originalColor=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"newColor",{get:function(){return this._newColor},set:function(e){var t=this.uniforms.newColor;"number"==typeof e?(h.hex2rgb(e,t),this._newColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._newColor=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(e){this.uniforms.epsilon=e},enumerable:!1,configurable:!0}),P),Me=(t(O,ue=s.Filter),Object.defineProperty(O.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(e){var r=this;e.forEach(function(e,t){r.uniforms.matrix[t]=e})},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(e){this.uniforms.texelSize[0]=1/e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(e){this.uniforms.texelSize[1]=1/e},enumerable:!1,configurable:!0}),O),Ie=(t(st,le=s.Filter),st),De=(t(k,se=s.Filter),k.prototype.apply=function(e,t,r,i){var n=t.filterFrame,o=n.width,n=n.height;this.uniforms.dimensions[0]=o,this.uniforms.dimensions[1]=n,this.uniforms.seed=this.seed,this.uniforms.time=this.time,e.applyFilter(this,t,r,i)},Object.defineProperty(k.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(e){this.uniforms.curvature=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(e){this.uniforms.lineWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(e){this.uniforms.lineContrast=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(e){this.uniforms.verticalLine=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(e){this.uniforms.noise=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(e){this.uniforms.noiseSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(e){this.uniforms.vignetting=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(e){this.uniforms.vignettingAlpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(e){this.uniforms.vignettingBlur=e},enumerable:!1,configurable:!0}),k.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},k),Le=(t(A,ae=s.Filter),Object.defineProperty(A.prototype,"scale",{get:function(){return this.uniforms.scale},set:function(e){this.uniforms.scale=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"angle",{get:function(){return this.uniforms.angle},set:function(e){this.uniforms.angle=e},enumerable:!1,configurable:!0}),A),Fe=(t(S,oe=s.Filter),S.prototype.apply=function(e,t,r,i){var n=e.getFilterTexture();this._tintFilter.apply(e,t,n,1),this._blurFilter.apply(e,n,r,i),!0!==this.shadowOnly&&e.applyFilter(this,t,r,0),e.returnFilterTexture(n)},S.prototype._updatePadding=function(){this.padding=this.distance+2*this.blur},S.prototype._updateShift=function(){this._tintFilter.uniforms.shift.set(this.distance*Math.cos(this.angle),this.distance*Math.sin(this.angle))},Object.defineProperty(S.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e,this._tintFilter&&(this._tintFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"distance",{get:function(){return this._distance},set:function(e){this._distance=e,this._updatePadding(),this._updateShift()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rotation",{get:function(){return this.angle/l.DEG_TO_RAD},set:function(e){this.angle=e*l.DEG_TO_RAD,this._updateShift()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"alpha",{get:function(){return this._tintFilter.uniforms.alpha},set:function(e){this._tintFilter.uniforms.alpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"color",{get:function(){return h.rgb2hex(this._tintFilter.uniforms.color)},set:function(e){h.hex2rgb(e,this._tintFilter.uniforms.color)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(e){this._blurFilter.kernels=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(e){this._blurFilter.blur=e,this._updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(e){this._blurFilter.quality=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(e){this._blurFilter.pixelSize=e},enumerable:!1,configurable:!0}),S.defaults={rotation:45,distance:5,color:0,alpha:.5,shadowOnly:!1,kernels:null,blur:2,quality:3,pixelSize:1,resolution:u.settings.FILTER_RESOLUTION},S),Ne=(t(at,ne=s.Filter),Object.defineProperty(at.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(e){this.uniforms.strength=e},enumerable:!1,configurable:!0}),at),ze=(t(E,ie=s.Filter),E.prototype.apply=function(e,t,r,i){var n=t.filterFrame,o=n.width,n=n.height;this.uniforms.dimensions[0]=o,this.uniforms.dimensions[1]=n,this.uniforms.aspect=n/o,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,o=1,a=0;a<t;a++){var s=Math.max(o/(n-a)*(1-.6*Math.random()),i);o-=e[a]=s}else for(var o=1,l=Math.sqrt(1/this._slices),a=0;a<t;a++)s=Math.max(l*o*Math.random(),i),o-=e[a]=s;e[t]=o,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=this.sampleSize,t=this.texture,r=this._canvas.getContext("2d");r.clearRect(0,0,8,e);for(var i=0,n=0;n<this._slices;n++){var o=Math.floor(256*this._offsets[n]),a=this._sizes[n]*e;r.fillStyle="rgba("+(0<o?o:0)+", "+(o<0?-o:0)+", 0, 1)",r.fillRect(0,i>>0,e,1+a>>0),i+=a}t.baseTexture.update(),this.uniforms.displacementMap=t},Object.defineProperty(E.prototype,"sizes",{get:function(){return this._sizes},set:function(e){for(var t=Math.min(this._slices,e.length),r=0;r<t;r++)this._sizes[r]=e[r]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"offsets",{get:function(){return this._offsets},set:function(e){for(var t=Math.min(this._slices,e.length),r=0;r<t;r++)this._offsets[r]=e[r]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"slices",{get:function(){return this._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())},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction!==e&&(e=(this._direction=e)*l.DEG_TO_RAD,this.uniforms.sinDir=Math.sin(e),this.uniforms.cosDir=Math.cos(e))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"red",{get:function(){return this.uniforms.red},set:function(e){this.uniforms.red=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"green",{get:function(){return this.uniforms.green},set:function(e){this.uniforms.green=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"blue",{get:function(){return this.uniforms.blue},set:function(e){this.uniforms.blue=e},enumerable:!1,configurable:!0}),E.prototype.destroy=function(){var e;null!=(e=this.texture)&&e.destroy(!0),this.texture=this._canvas=this.red=this.green=this.blue=this._sizes=this._offsets=null},E.defaults={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.TRANSPARENT=0,E.ORIGINAL=1,E.LOOP=2,E.CLAMP=3,E.MIRROR=4,E),Be=(t(w,re=s.Filter),Object.defineProperty(w.prototype,"color",{get:function(){return h.rgb2hex(this.uniforms.glowColor)},set:function(e){h.hex2rgb(e,this.uniforms.glowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"outerStrength",{get:function(){return this.uniforms.outerStrength},set:function(e){this.uniforms.outerStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"innerStrength",{get:function(){return this.uniforms.innerStrength},set:function(e){this.uniforms.innerStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"knockout",{get:function(){return this.uniforms.knockout},set:function(e){this.uniforms.knockout=e},enumerable:!1,configurable:!0}),w.defaults={distance:10,outerStrength:4,innerStrength:0,color:16777215,quality:.1,knockout:!1},w),je=(t(T,te=s.Filter),T.prototype.apply=function(e,t,r,i){var n=t.filterFrame,o=n.width,n=n.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=o,this.uniforms.dimensions[1]=n,this.uniforms.aspect=n/o,this.uniforms.time=this.time,this.uniforms.alpha=this.alpha,e.applyFilter(this,t,r,i)},Object.defineProperty(T.prototype,"angle",{get:function(){return this._angle},set:function(e){e=(this._angle=e)*l.DEG_TO_RAD;this._angleLight.x=Math.cos(e),this._angleLight.y=Math.sin(e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"gain",{get:function(){return this.uniforms.gain},set:function(e){this.uniforms.gain=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"lacunarity",{get:function(){return this.uniforms.lacunarity},set:function(e){this.uniforms.lacunarity=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(e){this.uniforms.alpha=e},enumerable:!1,configurable:!0}),T.defaults={angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0],alpha:1},T),Ue=(t(x,ee=s.Filter),x.prototype.apply=function(e,t,r,i){var n=this.velocity,o=n.x,n=n.y;this.uniforms.uKernelSize=0!==o||0!==n?this.kernelSize:0,e.applyFilter(this,t,r,i)},Object.defineProperty(x.prototype,"velocity",{get:function(){return this._velocity},set:function(e){this.setVelocity(e)},enumerable:!1,configurable:!0}),x.prototype.setVelocity=function(e){var t,r;Array.isArray(e)?(t=e[0],r=e[1],this._velocity.set(t,r)):this._velocity.copyFrom(e)},x.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y,this.padding=1+(Math.max(Math.abs(this._velocity.x),Math.abs(this._velocity.y))>>0)},Object.defineProperty(x.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(e){this.uniforms.uOffset=e},enumerable:!1,configurable:!0}),x),Ge=(t(b,$=s.Filter),Object.defineProperty(b.prototype,"replacements",{get:function(){return this._replacements},set:function(e){var t=this.uniforms.originalColors,r=this.uniforms.targetColors,i=e.length;if(i>this._maxColors)throw new Error("Length of replacements ("+i+") exceeds the maximum colors length ("+this._maxColors+")");t[3*i]=-1;for(var n=0;n<i;n++){var o=e[n],a=o[0],a=("number"==typeof a?a=h.hex2rgb(a):o[0]=h.rgb2hex(a),t[3*n]=a[0],t[3*n+1]=a[1],t[3*n+2]=a[2],o[1]);"number"==typeof a?a=h.hex2rgb(a):o[1]=h.rgb2hex(a),r[3*n]=a[0],r[3*n+1]=a[1],r[3*n+2]=a[2]}this._replacements=e},enumerable:!1,configurable:!0}),b.prototype.refresh=function(){this.replacements=this._replacements},Object.defineProperty(b.prototype,"maxColors",{get:function(){return this._maxColors},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(e){this.uniforms.epsilon=e},enumerable:!1,configurable:!0}),b),Xe=(t(y,Q=s.Filter),y.prototype.apply=function(e,t,r,i){var n;this.uniforms.dimensions[0]=null==(n=t.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=t.filterFrame)?void 0:n.height,this.uniforms.seed=this.seed,e.applyFilter(this,t,r,i)},Object.defineProperty(y.prototype,"sepia",{get:function(){return this.uniforms.sepia},set:function(e){this.uniforms.sepia=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(e){this.uniforms.noise=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(e){this.uniforms.noiseSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratch",{get:function(){return this.uniforms.scratch},set:function(e){this.uniforms.scratch=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratchDensity",{get:function(){return this.uniforms.scratchDensity},set:function(e){this.uniforms.scratchDensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratchWidth",{get:function(){return this.uniforms.scratchWidth},set:function(e){this.uniforms.scratchWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(e){this.uniforms.vignetting=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(e){this.uniforms.vignettingAlpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(e){this.uniforms.vignettingBlur=e},enumerable:!1,configurable:!0}),y.defaults={sepia:.3,noise:.3,noiseSize:1,scratch:.5,scratchDensity:.3,scratchWidth:1,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3},y),He=(t(v,Z=s.Filter),v.getAngleStep=function(e){e=Math.max(e*v.MAX_SAMPLES,v.MIN_SAMPLES);return(2*Math.PI/e).toFixed(7)},v.prototype.apply=function(e,t,r,i){this.uniforms.thickness[0]=this._thickness/t._frame.width,this.uniforms.thickness[1]=this._thickness/t._frame.height,e.applyFilter(this,t,r,i)},Object.defineProperty(v.prototype,"color",{get:function(){return h.rgb2hex(this.uniforms.outlineColor)},set:function(e){h.hex2rgb(e,this.uniforms.outlineColor)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"thickness",{get:function(){return this._thickness},set:function(e){this._thickness=e,this.padding=e},enumerable:!1,configurable:!0}),v.MIN_SAMPLES=1,v.MAX_SAMPLES=100,v),Ye=(t(ot,J=s.Filter),Object.defineProperty(ot.prototype,"size",{get:function(){return this.uniforms.size},set:function(e){this.uniforms.size=e="number"==typeof e?[e,e]:e},enumerable:!1,configurable:!0}),ot),We=(t(g,K=s.Filter),g.prototype.apply=function(e,t,r,i){this.uniforms.uKernelSize=0!==this._angle?this.kernelSize:0,e.applyFilter(this,t,r,i)},Object.defineProperty(g.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this.uniforms.uRadian=e*Math.PI/180},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"center",{get:function(){return this.uniforms.uCenter},set:function(e){this.uniforms.uCenter=e},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"radius",{get:function(){return this.uniforms.uRadius},set:function(e){this.uniforms.uRadius=e=e<0||e===1/0?-1:e},enumerable:!1,configurable:!0}),g),qe=(t(_,V=s.Filter),_.prototype.apply=function(e,t,r,i){var n;this.uniforms.dimensions[0]=null==(n=t.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=t.filterFrame)?void 0:n.height,this.uniforms.time=this.time,e.applyFilter(this,t,r,i)},Object.defineProperty(_.prototype,"mirror",{get:function(){return this.uniforms.mirror},set:function(e){this.uniforms.mirror=e},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"boundary",{get:function(){return this.uniforms.boundary},set:function(e){this.uniforms.boundary=e},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"amplitude",{get:function(){return this.uniforms.amplitude},set:function(e){this.uniforms.amplitude[0]=e[0],this.uniforms.amplitude[1]=e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"waveLength",{get:function(){return this.uniforms.waveLength},set:function(e){this.uniforms.waveLength[0]=e[0],this.uniforms.waveLength[1]=e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(e){this.uniforms.alpha[0]=e[0],this.uniforms.alpha[1]=e[1]},enumerable:!1,configurable:!0}),_.defaults={mirror:!0,boundary:.5,amplitude:[0,20],waveLength:[30,100],alpha:[1,1],time:0},_),Ve=(t(m,q=s.Filter),Object.defineProperty(m.prototype,"red",{get:function(){return this.uniforms.red},set:function(e){this.uniforms.red=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"green",{get:function(){return this.uniforms.green},set:function(e){this.uniforms.green=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"blue",{get:function(){return this.uniforms.blue},set:function(e){this.uniforms.blue=e},enumerable:!1,configurable:!0}),m),Ke=(t(d,W=s.Filter),d.prototype.apply=function(e,t,r,i){this.uniforms.time=this.time,e.applyFilter(this,t,r,i)},Object.defineProperty(d.prototype,"center",{get:function(){return this.uniforms.center},set:function(e){this.uniforms.center=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"amplitude",{get:function(){return this.uniforms.amplitude},set:function(e){this.uniforms.amplitude=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"wavelength",{get:function(){return this.uniforms.wavelength},set:function(e){this.uniforms.wavelength=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"brightness",{get:function(){return this.uniforms.brightness},set:function(e){this.uniforms.brightness=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"speed",{get:function(){return this.uniforms.speed},set:function(e){this.uniforms.speed=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(e){this.uniforms.radius=e},enumerable:!1,configurable:!0}),d.defaults={amplitude:30,wavelength:160,brightness:1,speed:500,radius:-1},d),Je=(t(a,Y=s.Filter),a.prototype.apply=function(e,t,r,i){var n;this.uniforms.dimensions[0]=null==(n=t.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=t.filterFrame)?void 0:n.height,e.applyFilter(this,t,r,i)},Object.defineProperty(a.prototype,"texture",{get:function(){return this.uniforms.uLightmap},set:function(e){this.uniforms.uLightmap=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"color",{get:function(){return this._color},set:function(e){var t=this.uniforms.ambientColor;"number"==typeof e?(h.hex2rgb(e,t),this._color=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],this._color=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"alpha",{get:function(){return this.uniforms.ambientColor[3]},set:function(e){this.uniforms.ambientColor[3]=e},enumerable:!1,configurable:!0}),a),Ze=(t(o,H=s.Filter),o.prototype.updateDelta=function(){this.uniforms.delta.x=0,this.uniforms.delta.y=0},Object.defineProperty(o.prototype,"blur",{get:function(){return this.uniforms.blur},set:function(e){this.uniforms.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"gradientBlur",{get:function(){return this.uniforms.gradientBlur},set:function(e){this.uniforms.gradientBlur=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"start",{get:function(){return this.uniforms.start},set:function(e){this.uniforms.start=e,this.updateDelta()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"end",{get:function(){return this.uniforms.end},set:function(e){this.uniforms.end=e,this.updateDelta()},enumerable:!1,configurable:!0}),o),Qe=(t(nt,X=Ze),nt.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},nt),$e=(t(it,G=Ze),it.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},it),et=(t(n,U=s.Filter),n.prototype.apply=function(e,t,r,i){var n=e.getFilterTexture();this.tiltShiftXFilter.apply(e,t,n,1),this.tiltShiftYFilter.apply(e,n,r,i),e.returnFilterTexture(n)},Object.defineProperty(n.prototype,"blur",{get:function(){return this.tiltShiftXFilter.blur},set:function(e){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gradientBlur",{get:function(){return this.tiltShiftXFilter.gradientBlur},set:function(e){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"start",{get:function(){return this.tiltShiftXFilter.start},set:function(e){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"end",{get:function(){return this.tiltShiftXFilter.end},set:function(e){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=e},enumerable:!1,configurable:!0}),n),tt=(t(i,j=s.Filter),Object.defineProperty(i.prototype,"offset",{get:function(){return this.uniforms.offset},set:function(e){this.uniforms.offset=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(e){this.uniforms.radius=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.uniforms.angle},set:function(e){this.uniforms.angle=e},enumerable:!1,configurable:!0}),i.defaults={radius:200,angle:4,padding:20,offset:new l.Point},i),rt=(t(r,B=s.Filter),Object.defineProperty(r.prototype,"center",{get:function(){return this.uniforms.uCenter},set:function(e){this.uniforms.uCenter=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"strength",{get:function(){return this.uniforms.uStrength},set:function(e){this.uniforms.uStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.uniforms.uInnerRadius},set:function(e){this.uniforms.uInnerRadius=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.uniforms.uRadius},set:function(e){this.uniforms.uRadius=e=e<0||e===1/0?-1:e},enumerable:!1,configurable:!0}),r.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32},r);function r(e){var e=Object.assign(r.defaults,e),t=e.maxKernelSize,e=function(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["maxKernelSize"]),t=B.call(this,f,"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 = ${maxKernelSize};\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".replace("${maxKernelSize}",t.toFixed(1)))||this;return Object.assign(t,e),t}function i(e){var t=j.call(this,f,"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;return Object.assign(t,i.defaults,e),t}function n(e,t,r,i){void 0===e&&(e=100),void 0===t&&(t=600);var n=U.call(this)||this;return n.tiltShiftXFilter=new Qe(e,t,r,i),n.tiltShiftYFilter=new $e(e,t,r,i),n}function it(){return null!==G&&G.apply(this,arguments)||this}function nt(){return null!==X&&X.apply(this,arguments)||this}function o(e,t,r,i){void 0===e&&(e=100),void 0===t&&(t=600);var n=H.call(this,f,"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;return n.uniforms.blur=e,n.uniforms.gradientBlur=t,n.uniforms.start=r||new l.Point(0,window.innerHeight/2),n.uniforms.end=i||new l.Point(600,window.innerHeight/2),n.uniforms.delta=new l.Point(30,30),n.uniforms.texSize=new l.Point(window.innerWidth,window.innerHeight),n.updateDelta(),n}function a(e,t,r){void 0===t&&(t=0),void 0===r&&(r=1);var i=Y.call(this,f,"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;return i._color=0,i.uniforms.dimensions=new Float32Array(2),i.uniforms.ambientColor=new Float32Array([0,0,0,r]),i.texture=e,i.color=t,i}function d(e,t,r){void 0===e&&(e=[0,0]),void 0===r&&(r=0);var i=W.call(this,f,"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;return i.center=e,Object.assign(i,d.defaults,t),i.time=r,i}function m(e,t,r){void 0===e&&(e=[-10,0]),void 0===t&&(t=[0,10]),void 0===r&&(r=[0,0]);var i=q.call(this,f,"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;return i.red=e,i.green=t,i.blue=r,i}function _(e){var t=V.call(this,f,"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;return t.time=0,t.uniforms.amplitude=new Float32Array(2),t.uniforms.waveLength=new Float32Array(2),t.uniforms.alpha=new Float32Array(2),t.uniforms.dimensions=new Float32Array(2),Object.assign(t,_.defaults,e),t}function g(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);var n=K.call(this,f,"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;return n._angle=0,n.angle=e,n.center=t,n.kernelSize=r,n.radius=i,n}function ot(e){void 0===e&&(e=10);var t=J.call(this,f,"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;return t.size=e,t}function v(e,t,r){void 0===e&&(e=1),void 0===t&&(t=0);var i=Z.call(this,f,"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\}/,v.getAngleStep(r=void 0===r?.1:r)))||this;return i._thickness=1,i.uniforms.thickness=new Float32Array([0,0]),i.uniforms.outlineColor=new Float32Array([0,0,0,1]),Object.assign(i,{thickness:e,color:t,quality:r}),i}function y(e,t){void 0===t&&(t=0);var r=Q.call(this,f,"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;return r.seed=0,r.uniforms.dimensions=new Float32Array(2),"number"==typeof e?(r.seed=e,e=void 0):r.seed=t,Object.assign(r,y.defaults,e),r}function b(e,t,r){void 0===t&&(t=.05),void 0===r&&(r=e.length);var i=$.call(this,f,"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.toFixed(0)))||this;return i._replacements=[],i._maxColors=0,i.epsilon=t,i._maxColors=r,i.uniforms.originalColors=new Float32Array(3*r),i.uniforms.targetColors=new Float32Array(3*r),i.replacements=e,i}function x(e,t,r){void 0===e&&(e=[0,0]),void 0===t&&(t=5),void 0===r&&(r=0);var i=ee.call(this,f,"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;return i.kernelSize=5,i.uniforms.uVelocity=new Float32Array(2),i._velocity=new l.ObservablePoint(i.velocityChanged,i),i.setVelocity(e),i.kernelSize=t,i.offset=r,i}function T(e){var t=te.call(this,f,"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;\nuniform float alpha;\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 // apply user alpha\n mist *= alpha;\n\n gl_FragColor = texture2D(uSampler, vTextureCoord) + mist;\n\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,e=(t.parallel=!0,t.time=0,t._angle=0,t.uniforms.dimensions=new Float32Array(2),Object.assign(T.defaults,e));return t._angleLight=new l.Point,t.angle=e.angle,t.gain=e.gain,t.lacunarity=e.lacunarity,t.alpha=e.alpha,t.parallel=e.parallel,t.center=e.center,t.time=e.time,t}function w(e){var t=this,e=Object.assign({},w.defaults,e),r=e.outerStrength,i=e.innerStrength,n=e.color,o=e.knockout,a=e.quality,e=Math.round(e.distance);return(t=re.call(this,f,"varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nuniform float outerStrength;\nuniform float innerStrength;\n\nuniform vec4 glowColor;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform bool knockout;\n\nconst float PI = 3.14159265358979323846264;\n\nconst float DIST = __DIST__;\nconst float ANGLE_STEP_SIZE = min(__ANGLE_STEP_SIZE__, PI * 2.0);\nconst float ANGLE_STEP_NUM = ceil(PI * 2.0 / ANGLE_STEP_SIZE);\n\nconst float MAX_TOTAL_ALPHA = ANGLE_STEP_NUM * DIST * (DIST + 1.0) / 2.0;\n\nvoid main(void) {\n vec2 px = vec2(1.0 / filterArea.x, 1.0 / filterArea.y);\n\n float totalAlpha = 0.0;\n\n vec2 direction;\n vec2 displaced;\n vec4 curColor;\n\n for (float angle = 0.0; angle < PI * 2.0; angle += ANGLE_STEP_SIZE) {\n direction = vec2(cos(angle), sin(angle)) * px;\n\n for (float curDistance = 0.0; curDistance < DIST; curDistance++) {\n displaced = clamp(vTextureCoord + direction * \n (curDistance + 1.0), filterClamp.xy, filterClamp.zw);\n\n curColor = texture2D(uSampler, displaced);\n\n totalAlpha += (DIST - curDistance) * curColor.a;\n }\n }\n \n curColor = texture2D(uSampler, vTextureCoord);\n\n float alphaRatio = (totalAlpha / MAX_TOTAL_ALPHA);\n\n float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * curColor.a;\n float innerGlowStrength = min(1.0, innerGlowAlpha);\n \n vec4 innerColor = mix(curColor, glowColor, innerGlowStrength);\n\n float outerGlowAlpha = alphaRatio * outerStrength * (1. - curColor.a);\n float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);\n\n vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;\n \n if (knockout) {\n float resultAlpha = outerGlowAlpha + innerGlowAlpha;\n gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);\n }\n else {\n gl_FragColor = innerColor + outerGlowColor;\n }\n}\n".replace(/__ANGLE_STEP_SIZE__/gi,""+(1/a/e).toFixed(7)).replace(/__DIST__/gi,e.toFixed(0)+".0"))||this).uniforms.glowColor=new Float32Array([0,0,0,1]),Object.assign(t,{color:n,outerStrength:r,innerStrength:i,padding:e,knockout:o}),t}function E(e){var t=ie.call(this,f,"// 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 == TRANSPARENT) {\n discard;\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 }\n } else if( coord.x < filterClamp.x ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.x += filterClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x *= -filterClamp.z;\n }\n }\n\n if( coord.y > filterClamp.w ) {\n if (fillMode == TRANSPARENT) {\n discard;\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 }\n } else if( coord.y < filterClamp.y ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.y += filterClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y *= -filterClamp.w;\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;return t.offset=100,t.fillMode=E.TRANSPARENT,t.average=!1,t.seed=0,t.minSize=8,t.sampleSize=512,t._slices=0,t._offsets=new Float32Array(1),t._sizes=new Float32Array(1),t._direction=-1,t.uniforms.dimensions=new Float32Array(2),t._canvas=document.createElement("canvas"),t._canvas.width=4,t._canvas.height=t.sampleSize,t.texture=s.Texture.from(t._canvas,{scaleMode:c.SCALE_MODES.NEAREST}),Object.assign(t,E.defaults,e),t}function at(e){void 0===e&&(e=5);var t=ne.call(this,f,"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;return t.strength=e,t}function S(e){var t=oe.call(this)||this,e=(t.angle=45,t._distance=5,t._resolution=u.settings.FILTER_RESOLUTION,e?xe(xe({},S.defaults),e):S.defaults),r=e.kernels,i=e.blur,n=e.quality,o=e.pixelSize,a=e.resolution,r=(t._tintFilter=new s.Filter(f,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform vec3 color;\n\nuniform vec2 shift;\nuniform vec4 inputSize;\n\nvoid main(void){\n vec4 sample = texture2D(uSampler, vTextureCoord - shift * inputSize.zw);\n\n // Premultiply alpha\n sample.rgb = color.rgb * sample.a;\n\n // alpha user alpha\n sample *= alpha;\n\n gl_FragColor = sample;\n}"),t._tintFilter.uniforms.color=new Float32Array(4),t._tintFilter.uniforms.shift=new l.Point,t._tintFilter.resolution=a,t._blurFilter=r?new p(r):new p(i,n),t.pixelSize=o,t.resolution=a,e.shadowOnly),i=e.rotation,n=e.distance,o=e.alpha,a=e.color;return t.shadowOnly=r,t.rotation=i,t.distance=n,t.alpha=o,t.color=a,t._updatePadding(),t}function A(e,t){void 0===e&&(e=1),void 0===t&&(t=5);var r=ae.call(this,f,"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;return r.scale=e,r.angle=t,r}function k(e){var t=se.call(this,f,"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 dir = vec2(vTextureCoord.xy * filterArea.xy / dimensions - vec2(0.5, 0.5));\n \n gl_FragColor = texture2D(uSampler, vTextureCoord);\n vec3 rgb = gl_FragColor.rgb;\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 {\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 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;return t.time=0,t.seed=0,t.uniforms.dimensions=new Float32Array(2),Object.assign(t,k.defaults,e),t}function st(){return le.call(this,f,"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")||this}function O(e,t,r){void 0===t&&(t=200),void 0===r&&(r=200);var i=ue.call(this,f,"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;return i.uniforms.texelSize=new Float32Array(2),i.uniforms.matrix=new Float32Array(9),void 0!==e&&(i.matrix=e),i.width=t,i.height=r,i}function P(e,t,r){void 0===e&&(e=16711680),void 0===t&&(t=0),void 0===r&&(r=.4);var i=he.call(this,f,"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;return i._originalColor=16711680,i._newColor=0,i.uniforms.originalColor=new Float32Array(3),i.uniforms.newColor=new Float32Array(3),i.originalColor=e,i.newColor=t,i.epsilon=r,i}function lt(e,t){void 0===e&&(e=0),void 0===t&&(t=1);var r=ce.call(this,f,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec3 color;\nuniform float alpha;\n\nvoid main(void) {\n vec4 currentColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(mix(currentColor.rgb, color.rgb, currentColor.a * alpha), currentColor.a);\n}\n")||this;return r._color=0,r._alpha=1,r.uniforms.color=new Float32Array(3),r.color=e,r.alpha=t,r}function R(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=1);var i=fe.call(this,f,"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;return i.mix=1,i._size=0,i._sliceSize=0,i._slicePixelSize=0,i._sliceInnerSize=0,i._nearest=!1,i._scaleMode=null,i._colorMap=null,i._scaleMode=null,i.nearest=t,i.mix=r,i.colorMap=e,i}function C(e){var t=pe.call(this,f,"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;return t.uniforms.dimensions=new Float32Array(2),Object.assign(t,C.defaults,e),t}function M(e,t,r,i){void 0===e&&(e=2),void 0===t&&(t=4),void 0===r&&(r=u.settings.FILTER_RESOLUTION),void 0===i&&(i=5);var n,o,a=de.call(this)||this;return"number"==typeof e?o=n=e:e instanceof l.Point?(n=e.x,o=e.y):Array.isArray(e)&&(n=e[0],o=e[1]),a.blurXFilter=new N.BlurFilterPass(!0,n,t,r,i),a.blurYFilter=new N.BlurFilterPass(!1,o,t,r,i),a.blurYFilter.blendMode=c.BLEND_MODES.SCREEN,a.defaultFilter=new F.AlphaFilter,a}function I(e){var t=me.call(this,f,"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;return t._thickness=2,t._angle=0,t.uniforms.lightColor=new Float32Array(3),t.uniforms.shadowColor=new Float32Array(3),Object.assign(t,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},e),t.padding=1,t}function ut(e){void 0===e&&(e=8);var t=_e.call(this,f,"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;return t.size=e,t}function D(e){var t=ge.call(this,f,"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")||this,e=(t.bloomScale=1,t.brightness=1,t._resolution=u.settings.FILTER_RESOLUTION,"number"==typeof e&&(e={threshold:e}),Object.assign(D.defaults,e)),r=(t.bloomScale=e.bloomScale,t.brightness=e.brightness,e.kernels),i=e.blur,n=e.quality,o=e.pixelSize,a=e.resolution;return t._extractFilter=new we(e.threshold),t._extractFilter.resolution=a,t._blurFilter=r?new p(r):new p(i,n),t.pixelSize=o,t.resolution=a,t}function L(e,t,r){void 0===e&&(e=4),void 0===t&&(t=3);var i=ve.call(this,f,(r=void 0===r?!1: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;return i._kernels=[],i._blur=4,i._quality=3,i.uniforms.uOffset=new Float32Array(2),i._pixelSize=new l.Point,i.pixelSize=1,i._clamp=r,Array.isArray(e)?i.kernels=e:(i._blur=e,i.quality=t),i}function ht(e){void 0===e&&(e=.5);var t=ye.call(this,f,"\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;return t.threshold=e,t}function ct(e){var t=be.call(this,f,"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")||this;return t.gamma=1,t.saturation=1,t.contrast=1,t.brightness=1,t.red=1,t.green=1,t.blue=1,t.alpha=1,Object.assign(t,e),t}return e.AdjustmentFilter=Te,e.AdvancedBloomFilter=Ee,e.AsciiFilter=Se,e.BevelFilter=Ae,e.BloomFilter=ke,e.BulgePinchFilter=Oe,e.CRTFilter=De,e.ColorMapFilter=Pe,e.ColorOverlayFilter=Re,e.ColorReplaceFilter=Ce,e.ConvolutionFilter=Me,e.CrossHatchFilter=Ie,e.DotFilter=Le,e.DropShadowFilter=Fe,e.EmbossFilter=Ne,e.GlitchFilter=ze,e.GlowFilter=Be,e.GodrayFilter=je,e.KawaseBlurFilter=p,e.MotionBlurFilter=Ue,e.MultiColorReplaceFilter=Ge,e.OldFilmFilter=Xe,e.OutlineFilter=He,e.PixelateFilter=Ye,e.RGBSplitFilter=Ve,e.RadialBlurFilter=We,e.ReflectionFilter=qe,e.ShockwaveFilter=Ke,e.SimpleLightmapFilter=Je,e.TiltShiftAxisFilter=Ze,e.TiltShiftFilter=et,e.TiltShiftXFilter=Qe,e.TiltShiftYFilter=$e,e.TwistFilter=tt,e.ZoomBlurFilter=rt,Object.defineProperty(e,"__esModule",{value:!0}),e}({},PIXI,PIXI,PIXI,PIXI.utils,PIXI,PIXI.filters,PIXI.filters),_gsScope=(Object.assign(PIXI.filters,__filters),this.PIXI=this.PIXI||{},!function(l,m){"use strict";u.createList=function(e){if("list"in e){var t=e.list,r=void 0,i=t[0],n=i.value,i=i.time,i=r=new u("string"==typeof n?l.ParticleUtils.hexToRGB(n):n,i,e.ease);if(2<t.length||2===t.length&&t[1].value!==n)for(var o=1;o<t.length;++o){var a=t[o],s=a.value,a=a.time;r.next=new u("string"==typeof s?l.ParticleUtils.hexToRGB(s):s,a),r=r.next}return i.isStepped=!!e.isStepped,i}n=new u("string"==typeof e.start?l.ParticleUtils.hexToRGB(e.start):e.start,0);return e.end!==e.start&&(n.next=new u("string"==typeof e.end?l.ParticleUtils.hexToRGB(e.end):e.end,1)),n};var t,c=u;function u(e,t,r){this.value=e,this.time=t,this.next=null,this.isStepped=!1,this.ease=r?"function"==typeof r?r:l.ParticleUtils.generateEase(r):null}var f,e=m;function h(e){return t(e)}t=parseInt(/^(\d+)\./.exec(m.VERSION)[1],10)<5?e.Texture.fromImage:e.Texture.from,(f=l.ParticleUtils||(l.ParticleUtils={})).verbose=!1,f.DEG_TO_RADS=Math.PI/180,f.rotatePoint=function(e,t){var r,i;e&&(e*=f.DEG_TO_RADS,i=Math.sin(e),e=Math.cos(e),r=t.x*e-t.y*i,i=t.x*i+t.y*e,t.x=r,t.y=i)},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(r){var i=r.length,n=1/i;return function(e){var t=i*e|0,e=(e-t*n)*i,t=r[t]||r[i-1];return t.s+e*(2*(1-e)*(t.cp-t.s)+e*(t.e-t.s))}},f.getBlendMode=function(e){if(!e)return m.BLEND_MODES.NORMAL;for(e=e.toUpperCase();0<=e.indexOf(" ");)e=e.replace(" ","_");return m.BLEND_MODES[e]||m.BLEND_MODES.NORMAL},f.createSteppedGradient=function(e,t){("number"!=typeof(t=void 0===t?10:t)||t<=0)&&(t=10);for(var r=new c(f.hexToRGB(e[0].value),e[0].time),i=(r.isStepped=!0,r),n=e[0],o=1,a=e[o],s=1;s<t;++s){for(var l=s/t;l>a.time;)n=a,a=e[++o];var l=(l-n.time)/(a.time-n.time),u=f.hexToRGB(n.value),h=f.hexToRGB(a.value),h={r:(h.r-u.r)*l+u.r,g:(h.g-u.g)*l+u.g,b:(h.b-u.b)*l+u.b};i.next=new c(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 r(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function n(e){return this.ease&&(e=this.ease(e)),(this.next.value-this.current.value)*e+this.current.value}function o(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,r=(r.b-t.b)*e+t.b;return l.ParticleUtils.combineRGBComponents(i,n,r)}function a(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,r=(r.b-t.b)*e+t.b;return l.ParticleUtils.combineRGBComponents(i,n,r)}function p(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 d(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 l.ParticleUtils.combineRGBComponents(t.r,t.g,t.b)}g.prototype.reset=function(e){this.current=e,this.next=e.next,this.next&&1<=this.next.time?this.interpolate=this.isColor?o:n:e.isStepped?this.interpolate=this.isColor?d:p:this.interpolate=this.isColor?s:a,this.ease=this.current.ease};var _=g;function g(e){void 0===e&&(e=!1),this.current=null,this.next=null,this.isColor=!!e,this.interpolate=null,this.ease=null}r(b,v=m.Sprite),b.prototype.init=function(){this.age=0,this.velocity.x=this.speedList.current.value*this.speedMultiplier,this.velocity.y=0,l.ParticleUtils.rotatePoint(this.rotation,this.velocity),this.noRotation?this.rotation=0:this.rotation*=l.ParticleUtils.DEG_TO_RADS,this.rotationSpeed*=l.ParticleUtils.DEG_TO_RADS,this.rotationAcceleration*=l.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=l.ParticleUtils.combineRGBComponents(e.r,e.g,e.b),this.visible=!0},b.prototype.applyArt=function(e){this.texture=e||m.Texture.EMPTY},b.prototype.update=function(e){var t,r,i,n,o,a;return this.age+=e,this.age>=this.maxLife||this.age<0?(this.kill(),-1):(t=this.age*this._oneOverLife,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&&(r=this.scaleList.interpolate(t)*this.scaleMultiplier,this.scale.x=this.scale.y=r),this._doNormalMovement&&(o=r=void 0,o=this._doSpeed?(i=this.speedList.interpolate(t)*this.speedMultiplier,l.ParticleUtils.normalize(this.velocity),l.ParticleUtils.scaleBy(this.velocity,i),r=this.velocity.x*e,this.velocity.y*e):this._doAcceleration?(i=this.velocity.x,n=this.velocity.y,this.velocity.x+=this.acceleration.x*e,this.velocity.y+=this.acceleration.y*e,this.maxSpeed&&(a=l.ParticleUtils.length(this.velocity))>this.maxSpeed&&l.ParticleUtils.scaleBy(this.velocity,this.maxSpeed/a),r=(i+this.velocity.x)/2*e,(n+this.velocity.y)/2*e):(r=this.velocity.x*e,this.velocity.y*e),this.position.x+=r,this.position.y+=o),this._doColor&&(this.tint=this.colorList.interpolate(t)),0!==this.rotationAcceleration?(a=this.rotationSpeed+this.rotationAcceleration*e,this.rotation+=(this.rotationSpeed+a)/2*e,this.rotationSpeed=a):0!==this.rotationSpeed?this.rotation+=this.rotationSpeed*e:this.acceleration&&!this.noRotation&&(this.rotation=Math.atan2(this.velocity.y,this.velocity.x)),t)},b.prototype.kill=function(){this.emitter.recycle(this)},b.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},b.parseArt=function(e){for(var t=e.length;0<=t;--t)"string"==typeof e[t]&&(e[t]=h(e[t]));if(l.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},b.parseData=function(e){return e};var v,y=b;function b(e){var t=v.call(this)||this;return t.prevChild=t.nextChild=null,t.emitter=e,t.anchor.x=t.anchor.y=.5,t.velocity=new m.Point,t.rotationSpeed=0,t.rotationAcceleration=0,t.maxLife=0,t.age=0,t.ease=null,t.extraData=null,t.alphaList=new _,t.speedList=new _,t.speedMultiplier=1,t.acceleration=new m.Point,t.maxSpeed=NaN,t.scaleList=new _,t.scaleMultiplier=1,t.colorList=new _(!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=b.prototype.init,t.update=t.update,t.Particle_update=b.prototype.update,t.Sprite_destroy=v.prototype.destroy,t.Particle_destroy=b.prototype.destroy,t.applyArt=t.applyArt,t.kill=t.kill,t}T.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 o=r[n];this.segments.push({p1:i,p2:o,l:0}),i=o}else for(i=e[0],t=1;t<e.length;++t){o=e[t];this.segments.push({p1:i,p2:o,l:0}),i=o}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 a=this.segments[t],s=a.p1,a=a.p2,a=Math.sqrt((a.x-s.x)*(a.x-s.x)+(a.y-s.y)*(a.y-s.y));this.segments[t].l=a,this.totalLength+=a,this.countingLengths.push(this.totalLength)}},T.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 o=t.p1,a=t.p2;e.x=o.x+r*(a.x-o.x),e.y=o.y+r*(a.y-o.y)};var x=T;function T(e){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(e)}var e=m,w=(parseInt(/^(\d+)\./.exec(m.VERSION)[1],10)<5?e.ticker:e.Ticker).shared,E=new m.Point,e=(Object.defineProperty(S.prototype,"orderedArt",{get:function(){return-1!==this._currentImageIndex},set:function(e){this._currentImageIndex=e?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(S.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(S.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(S.prototype,"parent",{get:function(){return this._parent},set:function(e){this.cleanup(),this._parent=e},enumerable:!0,configurable:!0}),S.prototype.init=function(e,t){var r,i;e&&t&&(this.cleanup(),this._origConfig=t,this._origArt=e,e=Array.isArray(e)?e.slice():[e],r=this._particleConstructor,this.particleImages=r.parseArt?r.parseArt(e):e,t.alpha?this.startAlpha=c.createList(t.alpha):this.startAlpha=new c(1,0),t.speed?(this.startSpeed=c.createList(t.speed),this.minimumSpeedMultiplier=("minimumSpeedMultiplier"in t?t:t.speed).minimumSpeedMultiplier||1):(this.minimumSpeedMultiplier=1,this.startSpeed=new c(0,0)),(i=t.acceleration)&&(i.x||i.y)?(this.startSpeed.next=null,this.acceleration=new m.Point(i.x,i.y),this.maxSpeed=t.maxSpeed||NaN):this.acceleration=new m.Point,t.scale?(this.startScale=c.createList(t.scale),this.minimumScaleMultiplier=("minimumScaleMultiplier"in t?t:t.scale).minimumScaleMultiplier||1):(this.startScale=new c(1,0),this.minimumScaleMultiplier=1),t.color?this.startColor=c.createList(t.color):this.startColor=new c({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=l.ParticleUtils.getBlendMode(t.blendMode),t.ease?this.customEase="function"==typeof t.ease?t.ease:l.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 m.Point,this.spawnPos=new m.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,this.orderedArt=!!t.orderedArt)},S.prototype.initAdditional=function(e,t){},S.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 m.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 m.Circle(t.x,t.y,t.r);break;case"ring":this.spawnType="ring",this._spawnFunc=this._spawnRing,t=e.spawnCircle,this.spawnCircle=new m.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||0;break;case"point":this.spawnType="point",this._spawnFunc=this._spawnPoint;break;case"polygonalChain":this.spawnType="polygonalChain",this._spawnFunc=this._spawnPolygonalChain,this.spawnPolygonalChain=new x(e.spawnPolygon);break;default:this.spawnType="point",this._spawnFunc=this._spawnPoint}},S.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},S.prototype.rotate=function(e){var t;this.rotation!==e&&(t=e-this.rotation,this.rotation=e,l.ParticleUtils.rotatePoint(t,this.spawnPos),this._posChanged=!0)},S.prototype.updateSpawnPos=function(e,t){this._posChanged=!0,this.spawnPos.x=e,this.spawnPos.y=t},S.prototype.updateOwnerPos=function(e,t){this._posChanged=!0,this.ownerPos.x=e,this.ownerPos.y=t},S.prototype.resetPositionTracking=function(){this._prevPosIsValid=!1},Object.defineProperty(S.prototype,"emit",{get:function(){return this._emit},set:function(e){this._emit=!!e,this._emitterLife=this.emitterLifetime},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){this._autoUpdate&&!e?w.remove(this.update,this):!this._autoUpdate&&e&&w.add(this.update,this),this._autoUpdate=!!e},enumerable:!0,configurable:!0}),S.prototype.playOnceAndDestroy=function(e){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=e},S.prototype.playOnce=function(e){this.emit=!0,this._completeCallback=e},S.prototype.update=function(e){if(this._autoUpdate&&(e=e/m.settings.TARGET_FPMS/1e3),this._parent){for(var t,r,i,n=this._activeParticlesFirst;n;n=t)t=n.next,n.update(e);this._prevPosIsValid&&(r=this._prevEmitterPos.x,i=this._prevEmitterPos.y);var o,a=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);else{var l=void 0,l=this.minLifetime===this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime;if(-this._spawnTimer<l){var u,h=void 0,c=void 0;c=this._prevPosIsValid&&this._posChanged?(h=(a-r)*(u=1+this._spawnTimer/e)+r,(s-i)*u+i):(h=a,s);for(var f,p=0,d=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount);p<d;++p)this.spawnChance<1&&Math.random()>=this.spawnChance||(f=void 0,this._poolFirst?(f=this._poolFirst,this._poolFirst=this._poolFirst.next,f.next=null):f=new this.particleConstructor(this),1<this.particleImages.length?-1!==this._currentImageIndex?(f.applyArt(this.particleImages[this._currentImageIndex++]),(this._currentImageIndex<0||this._currentImageIndex>=this.particleImages.length)&&(this._currentImageIndex=0)):f.applyArt(this.particleImages[Math.floor(Math.random()*this.particleImages.length)]):f.applyArt(this.particleImages[0]),f.alphaList.reset(this.startAlpha),1!==this.minimumSpeedMultiplier&&(f.speedMultiplier=Math.random()*(1-this.minimumSpeedMultiplier)+this.minimumSpeedMultiplier),f.speedList.reset(this.startSpeed),f.acceleration.x=this.acceleration.x,f.acceleration.y=this.acceleration.y,f.maxSpeed=this.maxSpeed,1!==this.minimumScaleMultiplier&&(f.scaleMultiplier=Math.random()*(1-this.minimumScaleMultiplier)+this.minimumScaleMultiplier),f.scaleList.reset(this.startScale),f.colorList.reset(this.startColor),this.minRotationSpeed===this.maxRotationSpeed?f.rotationSpeed=this.minRotationSpeed:f.rotationSpeed=Math.random()*(this.maxRotationSpeed-this.minRotationSpeed)+this.minRotationSpeed,f.rotationAcceleration=this.rotationAcceleration,f.noRotation=this.noRotation,f.maxLife=l,f.blendMode=this.particleBlendMode,f.ease=this.customEase,f.extraData=this.extraData,this.applyAdditionalProperties(f),this._spawnFunc(f,h,c,p),f.init(),this.addAtBack?this._parent.addChildAt(f,0):this._parent.addChild(f),this._activeParticlesLast?((this._activeParticlesLast.next=f).prev=this._activeParticlesLast,this._activeParticlesLast=f):this._activeParticlesLast=this._activeParticlesFirst=f,++this.particleCount,f.update(-this._spawnTimer))}}this._spawnTimer+=this._frequency}this._posChanged&&(this._prevEmitterPos.x=a,this._prevEmitterPos.y=s,this._prevPosIsValid=!0,this._posChanged=!1),this._emit||this._activeParticlesFirst||(this._completeCallback&&(o=this._completeCallback,this._completeCallback=null,o()),this._destroyWhenComplete&&this.destroy())}},S.prototype.applyAdditionalProperties=function(e){},S.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},S.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,E.x=Math.random()*this.spawnRect.width+this.spawnRect.x,E.y=Math.random()*this.spawnRect.height+this.spawnRect.y,0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=r+E.y},S.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,E.x=Math.random()*this.spawnCircle.radius,E.y=0,l.ParticleUtils.rotatePoint(360*Math.random(),E),E.x+=this.spawnCircle.x,E.y+=this.spawnCircle.y,0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=r+E.y},S.prototype._spawnRing=function(e,t,r){var i=this.spawnCircle,i=(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?E.x=Math.random()*(i.radius-i.minRadius)+i.minRadius:E.x=i.radius,E.y=0,360*Math.random());e.rotation+=i,l.ParticleUtils.rotatePoint(i,E),E.x+=this.spawnCircle.x,E.y+=this.spawnCircle.y,0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=r+E.y},S.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(E),0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=r+E.y},S.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},S.prototype.cleanup=function(){for(var e,t=this._activeParticlesFirst;t;t=e)e=t.next,this.recycle(t),t.parent&&t.parent.removeChild(t);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0},S.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},S);function S(e,t,r){this._currentImageIndex=-1,this._particleConstructor=y,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._currentImageIndex=-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}var A=new m.Point,k=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],O=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(k).join("|"),"g");r(C,P=y),C.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},C.prototype.update=function(e){var t,r=this.Particle_update(e);return 0<=r&&this.path&&(t=this._doSpeed?this.speedList.interpolate(r)*this.speedMultiplier:this.speedList.current.value*this.speedMultiplier,this.movement+=t*e,A.x=this.movement,A.y=this.path(this.movement),l.ParticleUtils.rotatePoint(this.initialRotation,A),this.position.x=this.initialPosition.x+A.x,this.position.y=this.initialPosition.y+A.y),r},C.prototype.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},C.parseArt=function(e){return y.parseArt(e)},C.parseData=function(e){var t={};if(e&&e.path)try{t.path=function(e){for(var t=e.match(O),r=t.length-1;0<=r;--r)0<=k.indexOf(t[r])&&(t[r]="Math."+t[r]);return e=t.join(""),new Function("x","return "+e+";")}(e.path)}catch(e){l.ParticleUtils.verbose&&console.error("PathParticle: error in parsing path expression"),t.path=null}else l.ParticleUtils.verbose&&console.error("PathParticle requires a path string in extraData!"),t.path=null;return t};var P,R=C;function C(e){e=P.call(this,e)||this;return e.path=null,e.initialRotation=0,e.initialPosition=new m.Point,e.movement=0,e}r(I,M=y),I.prototype.init=function(){this.Particle_init(),this.elapsed=0,this.framerate<0&&(this.duration=this.maxLife,this.framerate=this.textures.length/this.duration)},I.prototype.applyArt=function(e){this.textures=e.textures,this.framerate=e.framerate,this.duration=e.duration,this.loop=e.loop},I.prototype.update=function(e){var t=this.Particle_update(e);return 0<=t&&(this.elapsed+=e,this.elapsed>=this.duration&&(this.loop?this.elapsed=this.elapsed%this.duration:this.elapsed=this.duration-1e-6),e=this.elapsed*this.framerate+1e-7|0,this.texture=this.textures[e]||this.textures[this.textures.length-1]||m.Texture.EMPTY),t},I.prototype.destroy=function(){this.Particle_destroy(),this.textures=null},I.parseArt=function(e){for(var t=[],r=0;r<e.length;++r){for(var i=e[r],n=t[r]={},o=n.textures=[],a=i.textures,s=0;s<a.length;++s)if("string"==typeof(u=a[s]))o.push(h(u));else if(u instanceof m.Texture)o.push(u);else for(var l=u.count||1,u="string"==typeof u.texture?h(u.texture):u.texture;0<l;--l)o.push(u);"matchLife"===i.framerate?(n.framerate=-1,n.duration=0,n.loop=!1):(n.loop=!!i.loop,n.framerate=0<i.framerate?i.framerate:60,n.duration=o.length/n.framerate)}return t};var M,F=I;function I(e){e=M.call(this,e)||this;return e.textures=null,e.duration=0,e.framerate=0,e.elapsed=0,e.loop=!1,e}r(L,D=m.Container),Object.defineProperty(L.prototype,"firstChild",{get:function(){return this._firstChild},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"lastChild",{get:function(){return this._lastChild},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"childCount",{get:function(){return this._childCount},enumerable:!0,configurable:!0}),L.prototype.addChild=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1<e.length)for(var r=0;r<e.length;r++)this.addChild(e[r]);else{var i=e[0];i.parent&&i.parent.removeChild(i),(i.parent=this).sortDirty=!0,i.transform._parentID=-1,this._lastChild?((this._lastChild.nextChild=i).prevChild=this._lastChild,this._lastChild=i):this._firstChild=this._lastChild=i,++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",i,this,this._childCount),i.emit("added",this)}return e[0]},L.prototype.addChildAt=function(e,t){if(t<0||t>this._childCount)throw new Error("addChildAt: The index "+t+" supplied is out of bounds "+this._childCount);e.parent&&e.parent.removeChild(e),(e.parent=this).sortDirty=!0,e.transform._parentID=-1;var r=e;if(this._firstChild)if(0===t)(this._firstChild.prevChild=r).nextChild=this._firstChild,this._firstChild=r;else if(t===this._childCount)(this._lastChild.nextChild=r).prevChild=this._lastChild,this._lastChild=r;else{for(var i=0,n=this._firstChild;i<t;)n=n.nextChild,++i;(n.prevChild.nextChild=r).prevChild=n.prevChild,(r.nextChild=n).prevChild=r}else this._firstChild=this._lastChild=r;return++this._childCount,this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e},L.prototype.addChildBelow=function(e,t){if(t.parent!==this)throw new Error("addChildBelow: The relative target must be a child of this parent");return e.parent&&e.parent.removeChild(e),(e.parent=this).sortDirty=!0,e.transform._parentID=-1,(t.prevChild.nextChild=e).prevChild=t.prevChild,(e.nextChild=t).prevChild=e,this._firstChild===t&&(this._firstChild=e),++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",e,this,this._childCount),e.emit("added",this),e},L.prototype.addChildAbove=function(e,t){if(t.parent!==this)throw new Error("addChildBelow: The relative target must be a child of this parent");return e.parent&&e.parent.removeChild(e),(e.parent=this).sortDirty=!0,e.transform._parentID=-1,(t.nextChild.prevChild=e).nextChild=t.nextChild,(e.prevChild=t).nextChild=e,this._lastChild===t&&(this._lastChild=e),++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",e,this,this._childCount),e.emit("added",this),e},L.prototype.swapChildren=function(e,t){var r,i;e!==t&&e.parent===this&&t.parent===this&&(r=e.prevChild,i=e.nextChild,e.prevChild=t.prevChild,e.nextChild=t.nextChild,t.prevChild=r,t.nextChild=i,this._firstChild===e?this._firstChild=t:this._firstChild===t&&(this._firstChild=e),this._lastChild===e?this._lastChild=t:this._lastChild===t&&(this._lastChild=e),this.onChildrenChange())},L.prototype.getChildIndex=function(e){for(var t=0,r=this._firstChild;r&&r!==e;)r=r.nextChild,++t;if(r)return t;throw new Error("The supplied DisplayObject must be a child of the caller")},L.prototype.setChildIndex=function(e,t){if(t<0||t>=this._childCount)throw new Error("The index "+t+" supplied is out of bounds "+this._childCount);if(e.parent!==this)throw new Error("The supplied DisplayObject must be a child of the caller");if(e.nextChild&&(e.nextChild.prevChild=e.prevChild),e.prevChild&&(e.prevChild.nextChild=e.nextChild),this._firstChild===e&&(this._firstChild=e.nextChild),this._lastChild===e&&(this._lastChild=e.prevChild),e.nextChild=null,e.prevChild=null,this._firstChild)if(0===t)(this._firstChild.prevChild=e).nextChild=this._firstChild,this._firstChild=e;else if(t===this._childCount)(this._lastChild.nextChild=e).prevChild=this._lastChild,this._lastChild=e;else{for(var r=0,i=this._firstChild;r<t;)i=i.nextChild,++r;(i.prevChild.nextChild=e).prevChild=i.prevChild,(e.nextChild=i).prevChild=e}else this._firstChild=this._lastChild=e;this.onChildrenChange(t)},L.prototype.removeChild=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1<e.length)for(var r=0;r<e.length;r++)this.removeChild(e[r]);else{var i=e[0];if(i.parent!==this)return null;i.parent=null,i.transform._parentID=-1,i.nextChild&&(i.nextChild.prevChild=i.prevChild),i.prevChild&&(i.prevChild.nextChild=i.nextChild),this._firstChild===i&&(this._firstChild=i.nextChild),this._lastChild===i&&(this._lastChild=i.prevChild),i.nextChild=null,i.prevChild=null,--this._childCount,this._boundsID++,this.onChildrenChange(),i.emit("removed",this),this.emit("childRemoved",i,this)}return e[0]},L.prototype.getChildAt=function(e){if(e<0||e>=this._childCount)throw new Error("getChildAt: Index ("+e+") does not exist.");if(0===e)return this._firstChild;if(e===this._childCount)return this._lastChild;for(var t=0,r=this._firstChild;t<e;)r=r.nextChild,++t;return r},L.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,t.nextChild&&(t.nextChild.prevChild=t.prevChild),t.prevChild&&(t.prevChild.nextChild=t.nextChild),this._firstChild===t&&(this._firstChild=t.nextChild),this._lastChild===t&&(this._lastChild=t.prevChild),t.nextChild=null,t.prevChild=null,--this._childCount,this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t},L.prototype.removeChildren=function(e,t){var r=e=void 0===e?0:e,i=t=void 0===t?this._childCount:t,t=i-r;if(0<t&&t<=i){for(var n=[],o=this._firstChild,a=0;a<=i&&o;++a,o=o.nextChild)r<=a&&n.push(o);var s=n[0].prevChild,l=n[n.length-1].nextChild;l?l.prevChild=s:this._lastChild=s,s?s.nextChild=l:this._firstChild=l;for(a=0;a<n.length;++a)n[a].parent=null,n[a].transform&&(n[a].transform._parentID=-1),n[a].nextChild=null,n[a].prevChild=null;this._boundsID++,this.onChildrenChange(e);for(a=0;a<n.length;++a)n[a].emit("removed",this),this.emit("childRemoved",n[a],this,a);return n}if(0==t&&0===this._childCount)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},L.prototype.updateTransform=function(){var e,t;for(this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,e=this._firstChild;e;e=t)t=e.nextChild,e.visible&&e.updateTransform()},L.prototype.calculateBounds=function(){var e;for(this._bounds.clear(),this._calculateBounds(),e=this._firstChild;e;e=r){var t,r=e.nextChild;e.visible&&e.renderable&&(e.calculateBounds(),e._mask?((t=e._mask.maskObject||e._mask).calculateBounds(),this._bounds.addBoundsMask(e._bounds,t._bounds)):e.filterArea?this._bounds.addBoundsArea(e._bounds,e.filterArea):this._bounds.addBounds(e._bounds))}this._bounds.updateID=this._boundsID},L.prototype.getLocalBounds=function(e,t){void 0===t&&(t=!1);e=m.DisplayObject.prototype.getLocalBounds.call(this,e);if(!t)for(var r,i=void 0,i=this._firstChild;i;i=r)r=i.nextChild,i.visible&&i.updateTransform();return e},L.prototype.render=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(e);else{this._render(e);for(var t,r=void 0,r=this._firstChild;r;r=t)t=r.nextChild,r.render(e)}},L.prototype.renderAdvanced=function(e){e.batch.flush();var t,r,i=this.filters,n=this._mask;if(i){this._enabledFilters||(this._enabledFilters=[]);for(var o=this._enabledFilters.length=0;o<i.length;o++)i[o].enabled&&this._enabledFilters.push(i[o]);this._enabledFilters.length&&e.filter.push(this,this._enabledFilters)}for(n&&e.mask.push(this,this._mask),this._render(e),t=this._firstChild;t;t=r)r=t.nextChild,t.render(e);e.batch.flush(),n&&e.mask.pop(this),i&&this._enabledFilters&&this._enabledFilters.length&&e.filter.pop()},L.prototype.renderWebGL=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvancedWebGL(e);else{this._renderWebGL(e);for(var t,r=void 0,r=this._firstChild;r;r=t)t=r.nextChild,r.renderWebGL(e)}},L.prototype.renderAdvancedWebGL=function(e){e.flush();var t,r,i=this._filters,n=this._mask;if(i){this._enabledFilters||(this._enabledFilters=[]);for(var o=this._enabledFilters.length=0;o<i.length;o++)i[o].enabled&&this._enabledFilters.push(i[o]);this._enabledFilters.length&&e.filterManager.pushFilter(this,this._enabledFilters)}for(n&&e.maskManager.pushMask(this,this._mask),this._renderWebGL(e),t=this._firstChild;t;t=r)r=t.nextChild,t.renderWebGL(e);e.flush(),n&&e.maskManager.popMask(this,this._mask),i&&this._enabledFilters&&this._enabledFilters.length&&e.filterManager.popFilter()},L.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){var t,r;for(this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e),t=this._firstChild;t;t=r)r=t.nextChild,t.renderCanvas(e);this._mask&&e.maskManager.popMask(e)}};var D,N=L;function L(){var e=null!==D&&D.apply(this,arguments)||this;return e._firstChild=null,e._lastChild=null,e._childCount=0,e}l.AnimatedParticle=F,l.Emitter=e,l.GetTextureFromString=h,l.LinkedListContainer=N,l.Particle=y,l.PathParticle=R,l.PolygonalChain=x,l.PropertyList=_,l.PropertyNode=c}(this.PIXI.particles=this.PIXI.particles||{},PIXI),this.PIXI=this.PIXI||{},this.PIXI.projection=this.PIXI.projection||{},!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@pixi/core"),require("@pixi/constants"),require("@pixi/utils"),require("@pixi/math"),require("@pixi/display"),require("@pixi/sprite-tiling"),require("@pixi/mesh"),require("@pixi/mesh-extras"),require("@pixi/sprite"),require("@pixi/text"),require("@pixi/graphics")):"function"==typeof define&&define.amd?define(["exports","@pixi/core","@pixi/constants","@pixi/utils","@pixi/math","@pixi/display","@pixi/sprite-tiling","@pixi/mesh","@pixi/mesh-extras","@pixi/sprite","@pixi/text","@pixi/graphics"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).pixi_projection={},e.PIXI,e.PIXI,e.PIXI.utils,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI)}(this,function(s,_,h,g,p,e,F,o,N,t,z,B){"use strict";class j extends _.Geometry{constructor(e=!1){super(),this._buffer=new _.Buffer(null,e,!1),this._indexBuffer=new _.Buffer(null,e,!0),this.addAttribute("aVertexPosition",this._buffer,3,!1,h.TYPES.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,h.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,h.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,h.TYPES.FLOAT).addIndex(this._indexBuffer)}}class U{static create(e){const{vertex:t,fragment:r,vertexSize:i,geometryClass:n}=Object.assign({vertex:`precision highp float;
|
||
attribute vec3 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
attribute vec4 aColor;
|
||
attribute float aTextureId;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
|
||
varying vec2 vTextureCoord;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
|
||
void main(void){
|
||
gl_Position.xyw = projectionMatrix * aVertexPosition;
|
||
gl_Position.z = 0.0;
|
||
|
||
vTextureCoord = aTextureCoord;
|
||
vTextureId = aTextureId;
|
||
vColor = aColor;
|
||
}
|
||
`,fragment:`
|
||
varying vec2 vTextureCoord;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
uniform sampler2D uSamplers[%count%];
|
||
|
||
void main(void){
|
||
vec4 color;
|
||
%forloop%
|
||
gl_FragColor = color * vColor;
|
||
}`,geometryClass:j,vertexSize:7},e);return class extends _.AbstractBatchRenderer{constructor(e){super(e),this.shaderGenerator=new _.BatchShaderGenerator(t,r),this.geometryClass=n,this.vertexSize=i}packInterleavedGeometry(e,t,r,i,n){var{uint32View:o,float32View:a}=t,s=i/this.vertexSize,l=e.uvs,u=e.indices,h=e.vertexData,c=e.vertexData2d,f=e._texture.baseTexture._batchLocation,t=Math.min(e.worldAlpha,1),p=t<1&&e._texture.baseTexture.alphaMode?g.premultiplyTint(e._tintRGB,t):e._tintRGB+(255*t<<24);if(c){let t=0;for(let e=0;e<c.length;e+=3,t+=2)a[i++]=c[e],a[i++]=c[e+1],a[i++]=c[e+2],a[i++]=l[t],a[i++]=l[t+1],o[i++]=p,a[i++]=f}else for(let e=0;e<h.length;e+=2)a[i++]=h[e],a[i++]=h[e+1],a[i++]=1,a[i++]=l[e],a[i++]=l[e+1],o[i++]=p,a[i++]=f;for(let e=0;e<u.length;e++)r[n++]=s+u[e]}}}}class G{constructor(e,t=!0){G.prototype.__init.call(this),this.legacy=e,t&&(this.enabled=!0),this.legacy.proj=this}__init(){this._enabled=!1}get enabled(){return this._enabled}set enabled(e){this._enabled=e}clear(){}}s.TRANSFORM_STEP=void 0;var X,r=s.TRANSFORM_STEP||(s.TRANSFORM_STEP={}),r=(r[r.NONE=0]="NONE",r[r.BEFORE_PROJ=4]="BEFORE_PROJ",r[r.PROJ=5]="PROJ",r[r.ALL=9]="ALL",s.AFFINE=void 0,s.AFFINE||(s.AFFINE={}));function H(e){var t=this.proj,r=this,i=e._worldID,n=r.localTransform,o=t.scaleAfterAffine&&2<=t.affine,a=(r._localID!==r._currentLocalID&&(o?(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),t._projID);t._currentProjID!==a&&(t._currentProjID=a,t.updateLocalTransform(n),r._parentID=-1),r._parentID!==i&&((a=e.proj)&&!a._affine?t.world.setToMult(a.world,t.local):t.world.setToMultLegacy(e.worldTransform,t.local),n=r.worldTransform,t.world.copyTo(n,t._affine,t.affinePreserveOrientation),o&&(n.a*=r.scale._x,n.b*=r.scale._x,n.c*=r.scale._y,n.d*=r.scale._y,n.tx-=r.pivot._x*n.a+r.pivot._y*n.c,n.ty-=r.pivot._x*n.b+r.pivot._y*n.d),r._parentID=i,r._worldID++)}r[r.NONE=0]="NONE",r[r.FREE=1]="FREE",r[r.AXIS_X=2]="AXIS_X",r[r.AXIS_Y=3]="AXIS_Y",r[r.POINT=4]="POINT",r[r.AXIS_XR=5]="AXIS_XR";class i extends G{constructor(...e){super(...e),i.prototype.__init.call(this),i.prototype.__init2.call(this),i.prototype.__init3.call(this),i.prototype.__init4.call(this),i.prototype.__init5.call(this)}updateLocalTransform(e){}__init(){this._projID=0}__init2(){this._currentProjID=-1}__init3(){this._affine=s.AFFINE.NONE}__init4(){this.affinePreserveOrientation=!1}__init5(){this.scaleAfterAffine=!0}set affine(e){this._affine!==e&&(this._affine=e,this._currentProjID=-1,this.legacy._currentLocalID=-1)}get affine(){return this._affine}set enabled(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?H:p.Transform.prototype.updateTransform,this.legacy._parentID=-1)}clear(){this._currentProjID=-1,this._projID=0}}class Y extends _.AbstractBatchRenderer{constructor(...e){super(...e),Y.prototype.__init.call(this),Y.prototype.__init2.call(this)}__init(){this.forceMaxTextures=0}getUniforms(e){return this.defUniforms}syncUniforms(e){if(e){var t=this._shader;for(const r in e)t.uniforms[r]=e[r]}}__init2(){this.defUniforms={}}buildDrawCalls(t,r,i){var{_bufferedElements:n,_attributeBuffer:o,_indexBuffer:a,vertexSize:s}=this,l=_.AbstractBatchRenderer._drawCallPool;let u=this._dcIndex,h=this._aIndex,c=this._iIndex,f=l[u];f.start=this._iIndex,f.texArray=t;for(let e=r;e<i;++e){var p=n[e],d=p._texture.baseTexture,d=g.premultiplyBlendMode[d.alphaMode?1:0][p.blendMode],m=this.getUniforms(p);n[e]=null,r<e&&(f.blend!==d||f.uniforms!==m)&&(f.size=c-f.start,r=e,(f=l[++u]).texArray=t,f.start=c),this.packInterleavedGeometry(p,o,a,h,c),h+=p.vertexData.length/2*s,c+=p.indices.length,f.blend=d,f.uniforms=m}r<i&&(f.size=c-f.start,++u),this._dcIndex=u,this._aIndex=h,this._iIndex=c}drawBatches(){var t=this._dcIndex,{gl:r,state:i,shader:n}=this.renderer,o=_.AbstractBatchRenderer._drawCallPool;let a=null,s=null;for(let e=0;e<t;e++){var{texArray:l,type:u,size:h,start:c,blend:f,uniforms:p}=o[e];s!==l&&(s=l,this.bindAndClearTexArray(l)),a!==p&&(a=p,this.syncUniforms(p),n.syncUniformGroup(this._shader.uniformGroup)),this.state.blendMode=f,i.set(this.state),r.drawElements(u,h,r.UNSIGNED_SHORT,2*c)}}contextChange(){if(this.forceMaxTextures){this.MAX_TEXTURES=this.forceMaxTextures,this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES),this.syncUniforms(this.defUniforms);for(let e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()}else super.contextChange(),this.syncUniforms(this.defUniforms)}}function W(e,t,r,i,n){var o=t.x-e.x,a=r.x-i.x,s=r.x-e.x,l=t.y-e.y,i=r.y-i.y,r=r.y-e.y,u=o*i-l*a;return Math.abs(u)<1e-7?(n.x=o,n.y=l,0):(i=(s*i-r*a)/u,(a=(o*r-l*s)/u)<1e-6||-1e-6<a-1?-1:(n.x=e.x+i*(t.x-e.x),n.y=e.y+i*(t.y-e.y),1))}_.Renderer.registerPlugin("batch2d",U.create({}));const q=[1,0,0,0,1,0,0,0,1];class n{static __initStatic(){this.IDENTITY=new n}static __initStatic2(){this.TEMP_MATRIX=new n}__init(){this.floatArray=null}constructor(e){n.prototype.__init.call(this),this.mat3=new Float64Array(e||q)}get a(){return this.mat3[0]/this.mat3[8]}set a(e){this.mat3[0]=e*this.mat3[8]}get b(){return this.mat3[1]/this.mat3[8]}set b(e){this.mat3[1]=e*this.mat3[8]}get c(){return this.mat3[3]/this.mat3[8]}set c(e){this.mat3[3]=e*this.mat3[8]}get d(){return this.mat3[4]/this.mat3[8]}set d(e){this.mat3[4]=e*this.mat3[8]}get tx(){return this.mat3[6]/this.mat3[8]}set tx(e){this.mat3[6]=e*this.mat3[8]}get ty(){return this.mat3[7]/this.mat3[8]}set ty(e){this.mat3[7]=e*this.mat3[8]}set(e,t,r,i,n,o){var a=this.mat3;return a[0]=e,a[1]=t,a[2]=0,a[3]=r,a[4]=i,a[5]=0,a[6]=n,a[7]=o,a[8]=1,this}toArray(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var t=t||this.floatArray,r=this.mat3;return e?(t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7]):(t[0]=r[0],t[1]=r[3],t[2]=r[6],t[3]=r[1],t[4]=r[4],t[5]=r[7],t[6]=r[2],t[7]=r[5]),t[8]=r[8],t}apply(e,t){t=t||new p.Point;var r=this.mat3,i=e.x,e=e.y,n=1/(r[2]*i+r[5]*e+r[8]);return t.x=n*(r[0]*i+r[3]*e+r[6]),t.y=n*(r[1]*i+r[4]*e+r[7]),t}translate(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}scale(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}scaleAndTranslate(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]}applyInverse(e,t){t=t||new p.Point;var r=this.mat3,i=e.x,e=e.y,n=r[0],o=r[3],a=r[6],s=r[1],l=r[4],u=r[7],h=r[2],c=r[5],r=r[8],f=(-r*s+u*h)*i+(r*n-a*h)*e+(-u*n+a*s),h=(c*s-l*h)*i+(-c*n+o*h)*e+(l*n-o*s);return t.x=((r*l-u*c)*i+(-r*o+a*c)*e+(u*o-a*l))/h,t.y=f/h,t}invert(){var e=this.mat3,t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=u*o-a*l,c=-u*n+a*s,f=l*n-o*s,p=t*h+r*c+i*f;return p&&(e[0]=h*(p=1/p),e[1]=(-u*r+i*l)*p,e[2]=(a*r-i*o)*p,e[3]=c*p,e[4]=(u*t-i*s)*p,e[5]=(-a*t+i*n)*p,e[6]=f*p,e[7]=(-l*t+r*s)*p,e[8]=(o*t-r*n)*p),this}identity(){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}clone(){return new n(this.mat3)}copyTo2dOr3d(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}copyTo(t,r,i){var e=this.mat3,n=1/e[8],o=e[6]*n,a=e[7]*n;if(t.a=(e[0]-e[2]*o)*n,t.b=(e[1]-e[2]*a)*n,t.c=(e[3]-e[5]*o)*n,t.d=(e[4]-e[5]*a)*n,t.tx=o,t.ty=a,2<=r){let e=t.a*t.d-t.b*t.c;i||(e=Math.abs(e)),r===s.AFFINE.POINT?(e=0<e?1:-1,t.a=e,t.b=0,t.c=0,t.d=e):r===s.AFFINE.AXIS_X?(e/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=e):r===s.AFFINE.AXIS_Y?(e/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=e,t.c=0):r===s.AFFINE.AXIS_XR&&(t.a=t.d*e,t.c=-t.b*e)}return t}copyFrom(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}setToMultLegacy(e,t){var r=this.mat3,t=t.mat3,i=e.a,n=e.b,o=e.c,a=e.d,s=e.tx,e=e.ty,l=t[0],u=t[1],h=t[2],c=t[3],f=t[4],p=t[5],d=t[6],m=t[7],t=t[8];return r[0]=l*i+u*o+h*s,r[1]=l*n+u*a+h*e,r[2]=h,r[3]=c*i+f*o+p*s,r[4]=c*n+f*a+p*e,r[5]=p,r[6]=d*i+m*o+t*s,r[7]=d*n+m*a+t*e,r[8]=t,this}setToMultLegacy2(e,t){var r=this.mat3,e=e.mat3,i=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],e=e[8],c=t.a,f=t.b,p=t.c,d=t.d,m=t.tx,t=t.ty;return r[0]=c*i+f*a,r[1]=c*n+f*s,r[2]=c*o+f*l,r[3]=p*i+d*a,r[4]=p*n+d*s,r[5]=p*o+d*l,r[6]=m*i+t*a+u,r[7]=m*n+t*s+h,r[8]=m*o+t*l+e,this}setToMult(e,t){var r=this.mat3,e=e.mat3,t=t.mat3,i=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],e=e[8],c=t[0],f=t[1],p=t[2],d=t[3],m=t[4],_=t[5],g=t[6],v=t[7],t=t[8];return r[0]=c*i+f*a+p*u,r[1]=c*n+f*s+p*h,r[2]=c*o+f*l+p*e,r[3]=d*i+m*a+_*u,r[4]=d*n+m*s+_*h,r[5]=d*o+m*l+_*e,r[6]=g*i+v*a+t*u,r[7]=g*n+v*s+t*h,r[8]=g*o+v*l+t*e,this}prepend(e){return e.mat3?this.setToMult(e,this):this.setToMultLegacy(e,this)}}n.__initStatic(),n.__initStatic2();const V=`attribute vec2 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 translationMatrix;
|
||
uniform mat3 uTransform;
|
||
|
||
varying vec3 vTextureCoord;
|
||
|
||
void main(void)
|
||
{
|
||
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
|
||
vTextureCoord = uTransform * vec3(aTextureCoord, 1.0);
|
||
}
|
||
`,c=new n;class K extends _.ObjectRenderer{constructor(e){super(e),K.prototype.__init.call(this);e={globals:this.renderer.globalUniforms};this.shader=_.Shader.from(V,`
|
||
varying vec3 vTextureCoord;
|
||
|
||
uniform sampler2D uSampler;
|
||
uniform vec4 uColor;
|
||
uniform mat3 uMapCoord;
|
||
uniform vec4 uClampFrame;
|
||
uniform vec2 uClampOffset;
|
||
|
||
void main(void)
|
||
{
|
||
vec2 coord = mod(vTextureCoord.xy / vTextureCoord.z - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;
|
||
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
||
vec4 sample = texture2D(uSampler, coord);
|
||
gl_FragColor = sample * uColor;
|
||
}
|
||
`,e),this.simpleShader=_.Shader.from(V,`
|
||
varying vec3 vTextureCoord;
|
||
|
||
uniform sampler2D uSampler;
|
||
uniform vec4 uColor;
|
||
|
||
void main(void)
|
||
{
|
||
vec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);
|
||
gl_FragColor = sample * uColor;
|
||
}
|
||
`,e)}__init(){this.quad=new _.QuadUv}render(e){var t=this.renderer,r=this.quad;let 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.invalidate();var n=e._texture,o=n.baseTexture,a=e.tileProj.world,s=e.uvMatrix;let l=o.isPowerOfTwo&&n.frame.width===o.width&&n.frame.height===o.height;l&&(o._glTextures[t.CONTEXT_UID]?l=o.wrapMode!==h.WRAP_MODES.CLAMP:o.wrapMode===h.WRAP_MODES.CLAMP&&(o.wrapMode=h.WRAP_MODES.REPEAT));var u=l?this.simpleShader:this.shader;c.identity(),c.scale(n.width,n.height),c.prepend(a),c.scale(1/e._width,1/e._height),c.invert(),l?c.prepend(s.mapCoord):(u.uniforms.uMapCoord=s.mapCoord.toArray(!0),u.uniforms.uClampFrame=s.uClampFrame,u.uniforms.uClampOffset=s.uClampOffset),u.uniforms.uTransform=c.toArray(!0),u.uniforms.uColor=g.premultiplyTintToRgba(e.tint,e.worldAlpha,u.uniforms.uColor,o.premultiplyAlpha),u.uniforms.translationMatrix=e.worldTransform.toArray(!0),u.uniforms.uSampler=n,t.shader.bind(u,!1),t.geometry.bind(r,void 0),t.state.setBlendMode(g.correctBlendMode(e.blendMode,o.premultiplyAlpha)),t.geometry.draw(h.DRAW_MODES.TRIANGLES,6,0)}}const u=new p.Point,f=[new p.Point,new p.Point,new p.Point,new p.Point],a=new p.Rectangle,J=new n;class l extends i{constructor(e,t){super(e,t),l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),this.local=new n,this.world=new n}__init(){this.matrix=new n}__init2(){this.pivot=new p.ObservablePoint(this.onChange,this,0,0)}__init3(){this.reverseLocalOrder=!1}onChange(){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++}setAxisX(e,t=1){var r=e.x,e=e.y,i=Math.sqrt(r*r+e*e),n=this.matrix.mat3;n[0]=r/i,n[1]=e/i,n[2]=t/i,this.onChange()}setAxisY(e,t=1){var r=e.x,e=e.y,i=Math.sqrt(r*r+e*e),n=this.matrix.mat3;n[3]=r/i,n[4]=e/i,n[5]=t/i,this.onChange()}mapSprite(e,t){var r=e.texture;a.x=-e.anchor.x*r.orig.width,a.y=-e.anchor.y*r.orig.height,a.width=r.orig.width,a.height=r.orig.height,this.mapQuad(a,t)}mapQuad(t,r){f[0].set(t.x,t.y),f[1].set(t.x+t.width,t.y),f[2].set(t.x+t.width,t.y+t.height),f[3].set(t.x,t.y+t.height);let i=1,n=2,o=3;t=W(r[0],r[2],r[1],r[3],u);if(0!==t){i=1,n=3,o=2;var t=Math.sqrt((r[0].x-u.x)*(r[0].x-u.x)+(r[0].y-u.y)*(r[0].y-u.y)),a=Math.sqrt((r[i].x-u.x)*(r[i].x-u.x)+(r[i].y-u.y)*(r[i].y-u.y)),s=Math.sqrt((r[n].x-u.x)*(r[n].x-u.x)+(r[n].y-u.y)*(r[n].y-u.y)),l=Math.sqrt((r[o].x-u.x)*(r[o].x-u.x)+(r[o].y-u.y)*(r[o].y-u.y)),t=(t+l)/l,l=(a+s)/s,s=(a+s)/a;let e=this.matrix.mat3;e[0]=f[0].x*t,e[1]=f[0].y*t,e[2]=t,e[3]=f[i].x*l,e[4]=f[i].y*l,e[5]=l,e[6]=f[n].x*s,e[7]=f[n].y*s,e[8]=s,this.matrix.invert(),(e=J.mat3)[0]=r[0].x,e[1]=r[0].y,e[2]=1,e[3]=r[i].x,e[4]=r[i].y,e[5]=1,e[6]=r[n].x,e[7]=r[n].y,e[8]=1,this.matrix.setToMult(J,this.matrix),this._projID++}}updateLocalTransform(e){0!==this._projID?this.reverseLocalOrder?this.local.setToMultLegacy2(this.matrix,e):this.local.setToMultLegacy(e,this.matrix):this.local.copyFrom(e)}clear(){super.clear(),this.matrix.identity(),this.pivot.set(0,0)}}function Z(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class Q extends e.Container{constructor(){super(),this.proj=new l(this.transform)}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return t&&(e=t.toGlobal(e,r,i)),i||this._recursivePostUpdateTransform(),n>=s.TRANSFORM_STEP.PROJ?(i||this.displayObjectUpdateTransform(),(this.proj.affine?this.transform.worldTransform:this.proj.world).applyInverse(e,r)):(this.parent?r=this.parent.worldTransform.applyInverse(e,r):(r.x=e.x,r.y=e.y),n===s.TRANSFORM_STEP.NONE?r:this.transform.localTransform.applyInverse(r,r))}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const $=Q.prototype.toLocal;class d extends o.Mesh{static __initStatic(){this.defaultVertexShader=`precision highp float;
|
||
attribute vec2 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 translationMatrix;
|
||
uniform mat3 uTextureMatrix;
|
||
|
||
varying vec2 vTextureCoord;
|
||
|
||
void main(void)
|
||
{
|
||
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
gl_Position.z = 0.0;
|
||
|
||
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
|
||
}
|
||
`}static __initStatic2(){this.defaultFragmentShader=`
|
||
varying vec2 vTextureCoord;
|
||
uniform vec4 uColor;
|
||
|
||
uniform sampler2D uSampler;
|
||
|
||
void main(void)
|
||
{
|
||
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
|
||
}`}constructor(e,t,r,i){super(e,t,r,i),d.prototype.__init.call(this),this.proj=new l(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{var e=this.geometry,t=e.buffers[0].data;if(e.vertexDirtyId!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==t.length&&(this.vertexData=new Float32Array(t.length)),this.vertexData2d&&this.vertexData2d.length===3*t.length/2||(this.vertexData2d=new Float32Array(3*t.length));var r=this.proj.world.mat3,i=this.vertexData2d,n=this.vertexData;for(let e=0;e<n.length/2;e++){var o=t[2*e],a=t[2*e+1],s=r[0]*o+r[3]*a+r[6],l=r[1]*o+r[4]*a+r[7],o=r[2]*o+r[5]*a+r[8];i[3*e]=s,i[3*e+1]=l,i[3*e+2]=o,n[2*e]=s/o,n[2*e+1]=l/o}this.vertexDirty=e.vertexDirtyId}}}_renderDefault(e){var t=this.shader;t.alpha=this.worldAlpha,t.update&&t.update(),e.batch.flush(),function(e){let t=void 0,r=e[0],i=1;for(;i<e.length;){var n=e[i],o=e[i+1];if(i+=2,("optionalAccess"===n||"optionalCall"===n)&&null==r)return;"access"===n||"optionalAccess"===n?r=o(t=r):"call"!==n&&"optionalCall"!==n||(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}([t,"access",e=>e.program,"access",e=>e.uniformData,"optionalAccess",e=>e.translationMatrix])&&(t.uniforms.translationMatrix=this.worldTransform.toArray(!0)),e.shader.bind(t,!1),e.state.set(this.state),e.geometry.bind(this.geometry,t),e.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return $.call(this,e,t,r,i,n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}d.__initStatic(),d.__initStatic2();class ee extends d{constructor(e,t,r,i,n){super(new o.MeshGeometry(t,r,i),new o.MeshMaterial(e,{program:_.Program.from(d.defaultVertexShader,d.defaultFragmentShader),pluginName:"batch2d"}),null,n),ee.prototype.__init2.call(this),this.geometry.getBuffer("aVertexPosition").static=!1}__init2(){this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class m extends t.Sprite{constructor(e){super(e),m.prototype.__init.call(this),this.proj=new l(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){var n=this._texture;if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{this.vertexData2d||(this.vertexData2d=new Float32Array(12));var o=this.transform._worldID,a=n._updateID;if(this._transformID!==o||this._textureID!==a){this._textureID!==a&&(this.uvs=n._uvs.uvsFloat32),this._transformID=o,this._textureID=a;var o=this.proj.world.mat3,a=this.vertexData2d,s=this.vertexData,l=n.trim,n=n.orig,u=this._anchor;let e,t,r,i;r=l?(t=l.x-u._x*n.width,e=t+l.width,(i=l.y-u._y*n.height)+l.height):(t=-u._x*n.width,e=t+n.width,(i=-u._y*n.height)+n.height),a[0]=o[0]*t+o[3]*i+o[6],a[1]=o[1]*t+o[4]*i+o[7],a[2]=o[2]*t+o[5]*i+o[8],a[3]=o[0]*e+o[3]*i+o[6],a[4]=o[1]*e+o[4]*i+o[7],a[5]=o[2]*e+o[5]*i+o[8],a[6]=o[0]*e+o[3]*r+o[6],a[7]=o[1]*e+o[4]*r+o[7],a[8]=o[2]*e+o[5]*r+o[8],a[9]=o[0]*t+o[3]*r+o[6],a[10]=o[1]*t+o[4]*r+o[7],a[11]=o[2]*t+o[5]*r+o[8],s[0]=a[0]/a[2],s[1]=a[1]/a[2],s[2]=a[3]/a[5],s[3]=a[4]/a[5],s[4]=a[6]/a[8],s[5]=a[7]/a[8],s[6]=a[9]/a[11],s[7]=a[10]/a[11]}}}calculateTrimmedVertices(){if(this.proj._affine)super.calculateTrimmedVertices();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 e=this._texture,t=this.vertexTrimmedData,e=e.orig,r=this.tileProj?this._width:e.width,e=this.tileProj?this._height:e.height,i=this._anchor,n=this.proj.world.mat3,o=-i._x*r,r=o+r,i=-i._y*e,e=i+e,a=1/(n[2]*o+n[5]*i+n[8]);t[0]=a*(n[0]*o+n[3]*i+n[6]),t[1]=a*(n[1]*o+n[4]*i+n[7]),a=1/(n[2]*r+n[5]*i+n[8]),t[2]=a*(n[0]*r+n[3]*i+n[6]),t[3]=a*(n[1]*r+n[4]*i+n[7]),a=1/(n[2]*r+n[5]*e+n[8]),t[4]=a*(n[0]*r+n[3]*e+n[6]),t[5]=a*(n[1]*r+n[4]*e+n[7]),a=1/(n[2]*o+n[5]*e+n[8]),t[6]=a*(n[0]*o+n[3]*e+n[6]),t[7]=a*(n[1]*o+n[4]*e+n[7])}}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return $.call(this,e,t,r,i,n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const te=new p.Transform;class re extends F.TilingSprite{constructor(e,t,r){super(e,t,r),this.tileProj=new l(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.proj=new l(this.transform),this.pluginName="tilingSprite2d",this.uvRespectAnchor=!0}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return $.call(this,e,t,r,i,n)}_render(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateTransform(te),this.uvMatrix.update(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))}}function ie(){this.proj||(this.proj=new l(this.transform),this.toLocal=Q.prototype.toLocal,Object.defineProperty(this,"worldTransform",{get:Z,enumerable:!0,configurable:!0}))}e.Container.prototype.convertTo2d=ie,t.Sprite.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=m.prototype.calculateVertices,this.calculateTrimmedVertices=m.prototype.calculateTrimmedVertices,this._calculateBounds=m.prototype._calculateBounds,this.pluginName="batch2d",ie.call(this))},e.Container.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(let e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2d()},N.SimpleMesh.prototype.convertTo2d=N.SimpleRope.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=d.prototype.calculateVertices,this._renderDefault=d.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new o.MeshMaterial(this.material.texture,{program:_.Program.from(d.defaultVertexShader,d.defaultFragmentShader),pluginName:"batch2d"})),ie.call(this))},F.TilingSprite.prototype.convertTo2d=function(){this.proj||(this.tileProj=new l(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.uvRespectAnchor=!0,this.calculateTrimmedVertices=m.prototype.calculateTrimmedVertices,this._calculateBounds=m.prototype._calculateBounds,this._render=re.prototype._render,this.pluginName="tilingSprite2d",ie.call(this))};class v extends z.Text{constructor(e,t,r){super(e,t,r),v.prototype.__init.call(this),this.proj=new l(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}v.prototype.calculateVertices=m.prototype.calculateVertices,v.prototype.calculateTrimmedVertices=m.prototype.calculateTrimmedVertices,v.prototype._calculateBounds=m.prototype._calculateBounds;const ne=new n;class oe extends _.Filter{constructor(e){super(`
|
||
attribute vec2 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 otherMatrix;
|
||
|
||
varying vec3 vMaskCoord;
|
||
varying vec2 vTextureCoord;
|
||
|
||
void main(void)
|
||
{
|
||
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
||
vTextureCoord = aTextureCoord;
|
||
vMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);
|
||
}
|
||
`,`
|
||
varying vec3 vMaskCoord;
|
||
varying vec2 vTextureCoord;
|
||
|
||
uniform sampler2D uSampler;
|
||
uniform sampler2D mask;
|
||
uniform float alpha;
|
||
uniform vec4 maskClamp;
|
||
|
||
void main(void)
|
||
{
|
||
vec2 uv = vMaskCoord.xy / vMaskCoord.z;
|
||
|
||
float clip = step(3.5,
|
||
step(maskClamp.x, uv.x) +
|
||
step(maskClamp.y, uv.y) +
|
||
step(uv.x, maskClamp.z) +
|
||
step(uv.y, maskClamp.w));
|
||
|
||
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
vec4 masky = texture2D(mask, uv);
|
||
|
||
original *= (masky.r * masky.a * alpha * clip);
|
||
|
||
gl_FragColor = original;
|
||
}
|
||
`),oe.prototype.__init.call(this),e.renderable=!1,this.maskSprite=e}__init(){this.maskMatrix=new n}apply(e,t,r,i){var n=this.maskSprite,o=this.maskSprite.texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new _.TextureMatrix(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=n.texture,this.uniforms.otherMatrix=oe.calculateSpriteMatrix(t,this.maskMatrix,n).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,r,i))}static calculateSpriteMatrix(e,t,r){var i=r.proj,n=e.filterFrame,i=i&&!i._affine?i.world.copyTo2dOr3d(ne):ne.copyFrom(r.transform.worldTransform),o=r.texture.orig;return t.set(e.width,0,0,e.height,n.x,n.y),i.invert(),t.setToMult(i,t),t.scaleAndTranslate(1/o.width,1/o.height,r.anchor.x,r.anchor.y),t}}_.MaskSystem.prototype.pushSpriteMask=function(e){var t=e["maskObject"],e=e._target;let r=this.alphaMaskPool[this.alphaMaskIndex];(r=r||(this.alphaMaskPool[this.alphaMaskIndex]=[new oe(t)]))[0].resolution=this.renderer.resolution,r[0].maskSprite=t;var i=e.filterArea;e.filterArea=t.getBounds(!0),this.renderer.filter.push(e,r),e.filterArea=i,this.alphaMaskIndex++},_.Renderer.registerPlugin("tilingSprite2d",K);class ae extends p.Point{constructor(e,t,r){super(e,t),this.z=r}set(e,t,r){return this.x=e||0,this.y=void 0===t?this.x:t||0,this.z=void 0===t?this.x:r||0,this}copyFrom(e){return this.set(e.x,e.y,e.z||0),this}copyTo(e){return e.set(this.x,this.y,this.z),e}}class y extends p.ObservablePoint{constructor(...e){super(...e),y.prototype.__init.call(this)}__init(){this._z=0}get z(){return this._z}set z(e){this._z!==e&&(this._z=e,this.cb.call(this.scope))}set(e,t,r){var e=e||0,i=void 0===t?e:t||0,t=void 0===t?e:r||0;return this._x===e&&this._y===i&&this._z===t||(this._x=e,this._y=i,this._z=t,this.cb.call(this.scope)),this}copyFrom(e){return this.set(e.x,e.y,e.z||0),this}copyTo(e){return e.set(this._x,this._y,this._z),e}}class b{constructor(e,t,r){b.prototype.__init.call(this),b.prototype.__init2.call(this),b.prototype.__init3.call(this),this._x=e||0,this._y=t||0,this._z=r||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._quatDirtyId++)}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._quatDirtyId++)}get z(){return this._z}set z(e){this._z!==e&&(this._z=e,this._quatDirtyId++)}get pitch(){return this._x}set pitch(e){this._x!==e&&(this._x=e,this._quatDirtyId++)}get yaw(){return this._y}set yaw(e){this._y!==e&&(this._y=e,this._quatDirtyId++)}get roll(){return this._z}set roll(e){this._z!==e&&(this._z=e,this._quatDirtyId++)}set(e,t,r){e=e||0,t=t||0,r=r||0;this._x===e&&this._y===t&&this._z===r||(this._x=e,this._y=t,this._z=r,this._quatDirtyId++)}copyFrom(e){var t=e.x,r=e.y,e=e.z;return this._x===t&&this._y===r&&this._z===e||(this._x=t,this._y=r,this._z=e,this._quatDirtyId++),this}copyTo(e){return e.set(this._x,this._y,this._z),e}equals(e){return this._x===e.x&&this._y===e.y&&this._z===e.z}clone(){return new b(this._x,this._y,this._z)}update(){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),o=i*Math.sin(this._y/2),i=i*Math.sin(this._z/2),a=this.quaternion;return a[0]=n*t*r+e*o*i,a[1]=e*o*r-n*t*i,a[2]=e*t*i+n*o*r,a[3]=e*t*r-n*o*i,!0}}class x{constructor(e,t,r,i,n){this.cb=e,this.scope=t,x.prototype.__init.call(this),x.prototype.__init2.call(this),x.prototype.__init3.call(this),this._x=r||0,this._y=i||0,this._z=n||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))}get z(){return this._z}set z(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))}get pitch(){return this._x}set pitch(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))}get yaw(){return this._y}set yaw(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))}get roll(){return this._z}set roll(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))}set(e,t,r){e=e||0,t=t||0,r=r||0;return this._x===e&&this._y===t&&this._z===r||(this._x=e,this._y=t,this._z=r,this._quatDirtyId++,this.cb.call(this.scope)),this}copyFrom(e){var t=e.x,r=e.y,e=e.z;return this._x===t&&this._y===r&&this._z===e||(this._x=t,this._y=r,this._z=e,this._quatDirtyId++,this.cb.call(this.scope)),this}copyTo(e){return e.set(this._x,this._y,this._z),e}equals(e){return this._x===e.x&&this._y===e.y&&this._z===e.z}clone(){return new b(this._x,this._y,this._z)}update(){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),o=i*Math.sin(this._y/2),i=i*Math.sin(this._z/2),a=this.quaternion;return a[0]=n*t*r+e*o*i,a[1]=e*o*r-n*t*i,a[2]=e*t*i+n*o*r,a[3]=e*t*r-n*o*i,!0}}const se=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class T{static __initStatic(){this.IDENTITY=new T}static __initStatic2(){this.TEMP_MATRIX=new T}__init(){this.floatArray=null}__init2(){this._dirtyId=0}__init3(){this._updateId=-1}__init4(){this._mat4inv=null}__init5(){this.cacheInverse=!1}constructor(e){T.prototype.__init.call(this),T.prototype.__init2.call(this),T.prototype.__init3.call(this),T.prototype.__init4.call(this),T.prototype.__init5.call(this),this.mat4=new Float64Array(e||se)}get a(){return this.mat4[0]/this.mat4[15]}set a(e){this.mat4[0]=e*this.mat4[15]}get b(){return this.mat4[1]/this.mat4[15]}set b(e){this.mat4[1]=e*this.mat4[15]}get c(){return this.mat4[4]/this.mat4[15]}set c(e){this.mat4[4]=e*this.mat4[15]}get d(){return this.mat4[5]/this.mat4[15]}set d(e){this.mat4[5]=e*this.mat4[15]}get tx(){return this.mat4[12]/this.mat4[15]}set tx(e){this.mat4[12]=e*this.mat4[15]}get ty(){return this.mat4[13]/this.mat4[15]}set ty(e){this.mat4[13]=e*this.mat4[15]}set(e,t,r,i,n,o){var a=this.mat4;return a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=r,a[5]=i,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n,a[13]=o,a[14]=0,a[15]=1,this}toArray(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var t=t||this.floatArray,r=this.mat4;return e?(t[0]=r[0],t[1]=r[1],t[2]=r[3],t[3]=r[4],t[4]=r[5],t[5]=r[7],t[6]=r[12],t[7]=r[13]):(t[0]=r[0],t[1]=r[4],t[2]=r[12],t[3]=r[2],t[4]=r[6],t[5]=r[13],t[6]=r[3],t[7]=r[7]),t[8]=r[15],t}setToTranslation(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}setToRotationTranslationScale(e,t,r,i,n,o,a){var s=this.mat4,l=e[0],u=e[1],h=e[2],e=e[3],c=l+l,f=u+u,p=h+h,d=l*c,m=l*f,l=l*p,_=u*f,u=u*p,h=h*p,c=e*c,f=e*f,e=e*p;return s[0]=(1-(_+h))*n,s[1]=(m+e)*n,s[2]=(l-f)*n,s[3]=0,s[4]=(m-e)*o,s[5]=(1-(d+h))*o,s[6]=(u+c)*o,s[7]=0,s[8]=(l+f)*a,s[9]=(u-c)*a,s[10]=(1-(d+_))*a,s[11]=0,s[12]=t,s[13]=r,s[14]=i,s[15]=1,s}apply(e,t){t=t||new ae;var r=this.mat4,i=e.x,n=e.y,e=e.z||0,o=1/(r[3]*i+r[7]*n+r[11]*e+r[15]);return t.x=o*(r[0]*i+r[4]*n+r[8]*e+r[12]),t.y=o*(r[1]*i+r[5]*n+r[9]*e+r[13]),t.z=o*(r[2]*i+r[6]*n+r[10]*e+r[14]),t}translate(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}scale(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}scaleAndTranslate(e,t,r,i,n,o){var a=this.mat4;a[0]=e*a[0]+i*a[3],a[1]=t*a[1]+n*a[3],a[2]=r*a[2]+o*a[3],a[4]=e*a[4]+i*a[7],a[5]=t*a[5]+n*a[7],a[6]=r*a[6]+o*a[7],a[8]=e*a[8]+i*a[11],a[9]=t*a[9]+n*a[11],a[10]=r*a[10]+o*a[11],a[12]=e*a[12]+i*a[15],a[13]=t*a[13]+n*a[15],a[14]=r*a[14]+o*a[15]}applyInverse(e,t){t=t||new ae,this._mat4inv||(this._mat4inv=new Float64Array(16));var r=this._mat4inv,i=this.mat4,n=e.x,o=e.y,e=e.z||0,i=(this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,T.glMatrixMat4Invert(r,i)),1/(r[3]*n+r[7]*o+r[11]*e+r[15])),a=i*(r[0]*n+r[4]*o+r[8]*e+r[12]),s=i*(r[1]*n+r[5]*o+r[9]*e+r[13]),i=i*(r[2]*n+r[6]*o+r[10]*e+r[14]),l=1/(r[3]*n+r[7]*o+r[11]*(e+=1)+r[15]),u=l*(r[0]*n+r[4]*o+r[8]*e+r[12]),h=l*(r[1]*n+r[5]*o+r[9]*e+r[13]),l=l*(r[2]*n+r[6]*o+r[10]*e+r[14]),n=(Math.abs(i-l)<1e-10&&t.set(NaN,NaN,0),(0-i)/(l-i));return t.set((u-a)*n+a,(h-s)*n+s,0),t}invert(){return T.glMatrixMat4Invert(this.mat4,this.mat4),this}invertCopyTo(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,T.glMatrixMat4Invert(t,r)),e.mat4.set(t)}identity(){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}clone(){return new T(this.mat4)}copyTo3d(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}copyTo2d(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}copyTo2dOr3d(e){return e instanceof n?this.copyTo2d(e):this.copyTo3d(e)}copyTo(t,r,i){var e=this.mat4,n=1/e[15],o=e[12]*n,a=e[13]*n;if(t.a=(e[0]-e[3]*o)*n,t.b=(e[1]-e[3]*a)*n,t.c=(e[4]-e[7]*o)*n,t.d=(e[5]-e[7]*a)*n,t.tx=o,t.ty=a,2<=r){let e=t.a*t.d-t.b*t.c;i||(e=Math.abs(e)),r===s.AFFINE.POINT?(e=0<e?1:-1,t.a=e,t.b=0,t.c=0,t.d=e):r===s.AFFINE.AXIS_X?(e/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=e):r===s.AFFINE.AXIS_Y&&(e/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=e,t.c=0)}return t}copyFrom(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}setToMultLegacy(e,t){var r=this.mat4,t=t.mat4,i=e.a,n=e.b,o=e.c,a=e.d,s=e.tx,e=e.ty,l=t[0],u=t[1],h=t[2],c=t[3];return r[0]=l*i+u*o+c*s,r[1]=l*n+u*a+c*e,r[2]=h,r[3]=c,l=t[4],u=t[5],h=t[6],c=t[7],r[4]=l*i+u*o+c*s,r[5]=l*n+u*a+c*e,r[6]=h,r[7]=c,l=t[8],u=t[9],h=t[10],c=t[11],r[8]=l*i+u*o+c*s,r[9]=l*n+u*a+c*e,r[10]=h,r[11]=c,l=t[12],u=t[13],h=t[14],c=t[15],r[12]=l*i+u*o+c*s,r[13]=l*n+u*a+c*e,r[14]=h,r[15]=c,this._dirtyId++,this}setToMultLegacy2(e,t){var r=this.mat4,e=e.mat4,i=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],c=t.a,f=t.b,p=t.c,d=t.d,m=t.tx,t=t.ty;return r[0]=c*i+f*s,r[1]=c*n+f*l,r[2]=c*o+f*u,r[3]=c*a+f*h,r[4]=p*i+d*s,r[5]=p*n+d*l,r[6]=p*o+d*u,r[7]=p*a+d*h,r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=m*i+t*s+e[12],r[13]=m*n+t*l+e[13],r[14]=m*o+t*u+e[14],r[15]=m*a+t*h+e[15],this._dirtyId++,this}setToMult(e,t){return T.glMatrixMat4Multiply(this.mat4,e.mat4,t.mat4),this._dirtyId++,this}prepend(e){e.mat4?this.setToMult(e,this):this.setToMultLegacy(e,this)}static glMatrixMat4Invert(e,t){var r=t[0],i=t[1],n=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],h=t[8],c=t[9],f=t[10],p=t[11],d=t[12],m=t[13],_=t[14],t=t[15],g=r*s-i*a,v=r*l-n*a,y=r*u-o*a,b=i*l-n*s,x=i*u-o*s,T=n*u-o*l,w=h*m-c*d,E=h*_-f*d,S=h*t-p*d,A=c*_-f*m,k=c*t-p*m,O=f*t-p*_,P=g*O-v*k+y*A+b*S-x*E+T*w;return P?(e[0]=(s*O-l*k+u*A)*(P=1/P),e[1]=(n*k-i*O-o*A)*P,e[2]=(m*T-_*x+t*b)*P,e[3]=(f*x-c*T-p*b)*P,e[4]=(l*S-a*O-u*E)*P,e[5]=(r*O-n*S+o*E)*P,e[6]=(_*y-d*T-t*v)*P,e[7]=(h*T-f*y+p*v)*P,e[8]=(a*k-s*S+u*w)*P,e[9]=(i*S-r*k-o*w)*P,e[10]=(d*x-m*y+t*g)*P,e[11]=(c*y-h*x-p*g)*P,e[12]=(s*E-a*A-l*w)*P,e[13]=(r*A-i*E+n*w)*P,e[14]=(m*v-d*b-_*g)*P,e[15]=(h*b-c*v+f*g)*P,e):null}static glMatrixMat4Multiply(e,t,r){var i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8],f=t[9],p=t[10],d=t[11],m=t[12],_=t[13],g=t[14],t=t[15],v=r[0],y=r[1],b=r[2],x=r[3];return e[0]=v*i+y*s+b*c+x*m,e[1]=v*n+y*l+b*f+x*_,e[2]=v*o+y*u+b*p+x*g,e[3]=v*a+y*h+b*d+x*t,v=r[4],y=r[5],b=r[6],x=r[7],e[4]=v*i+y*s+b*c+x*m,e[5]=v*n+y*l+b*f+x*_,e[6]=v*o+y*u+b*p+x*g,e[7]=v*a+y*h+b*d+x*t,v=r[8],y=r[9],b=r[10],x=r[11],e[8]=v*i+y*s+b*c+x*m,e[9]=v*n+y*l+b*f+x*_,e[10]=v*o+y*u+b*p+x*g,e[11]=v*a+y*h+b*d+x*t,v=r[12],y=r[13],b=r[14],x=r[15],e[12]=v*i+y*s+b*c+x*m,e[13]=v*n+y*l+b*f+x*_,e[14]=v*o+y*u+b*p+x*g,e[15]=v*a+y*h+b*d+x*t,e}}T.__initStatic(),T.__initStatic2();const le=new T;class w extends i{constructor(e,t){super(e,t),w.prototype.__init.call(this),w.prototype.__init2.call(this),w.prototype.__init3.call(this),w.prototype.__init4.call(this),w.prototype.__init5.call(this),w.prototype.__init6.call(this),this.local=new T,this.world=new T,this.local.cacheInverse=!0,this.world.cacheInverse=!0,this.position._z=0,this.scale._z=1,this.pivot._z=0}__init(){this.cameraMatrix=null}__init2(){this._cameraMode=!1}get cameraMode(){return this._cameraMode}set cameraMode(e){this._cameraMode!==e&&(this._cameraMode=e,this.euler._sign=this._cameraMode?-1:1,this.euler._quatDirtyId++,e&&(this.cameraMatrix=new T))}__init3(){this.position=new y(this.onChange,this,0,0)}__init4(){this.scale=new y(this.onChange,this,1,1)}__init5(){this.euler=new x(this.onChange,this,0,0,0)}__init6(){this.pivot=new y(this.onChange,this,0,0)}onChange(){this._projID++}clear(){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),super.clear()}updateLocalTransform(e){var t,r,i,n,o;0===this._projID?this.local.copyFrom(e):(t=this.local,r=this.euler,i=this.position,n=this.scale,o=this.pivot,r.update(),this.cameraMode?(t.setToMultLegacy(e,this.cameraMatrix),t.translate(o._x,o._y,o._z),t.scale(1/n._x,1/n._y,1/n._z),le.setToRotationTranslationScale(r.quaternion,0,0,0,1,1,1),t.setToMult(t,le),t.translate(-i._x,-i._y,-i._z),this.local._dirtyId++):(t.setToRotationTranslationScale(r.quaternion,i._x,i._y,i._z,n._x,n._y,n._z),t.translate(-o._x,-o._y,-o._z),t.setToMultLegacy(e,t)))}}function ue(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class E extends e.Container{constructor(){super(),this.proj=new w(this.transform)}isFrontFace(e=!1){e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());var e=this.proj.world.mat4,t=e[0]*e[15]-e[3]*e[12],r=e[1]*e[15]-e[3]*e[13],i=e[4]*e[15]-e[7]*e[12];return 0<t*(e[5]*e[15]-e[7]*e[13])-i*r}getDepth(e=!1){e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());e=this.proj.world.mat4;return e[14]/e[15]}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return t&&(e=t.toGlobal(e,r,i)),i||this._recursivePostUpdateTransform(),n===s.TRANSFORM_STEP.ALL?(i||this.displayObjectUpdateTransform(),(this.proj.affine?this.transform.worldTransform:this.proj.world).applyInverse(e,r)):(this.parent?r=this.parent.worldTransform.applyInverse(e,r):(r.x=e.x,r.y=e.y,r.z=e.z),n!==s.TRANSFORM_STEP.NONE&&(r=this.transform.localTransform.applyInverse(r,r),n===s.TRANSFORM_STEP.PROJ&&this.proj.cameraMode&&(r=this.proj.cameraMatrix.applyInverse(r,r))),r)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}const he=E.prototype.toLocal,ce=E.prototype.getDepth,fe=E.prototype.isFrontFace;class S extends E{constructor(){super(),S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),this.proj.cameraMode=!0,this.setPlanes(400,10,1e4,!1)}__init(){this._far=0}__init2(){this._near=0}__init3(){this._focus=0}__init4(){this._orthographic=!1}get far(){return this._far}get near(){return this._near}get focus(){return this._focus}get ortographic(){return this._orthographic}setPlanes(e,t=10,r=1e4,i=!1){this._focus=e,this._near=t,this._far=r,this._orthographic=i;var i=this.proj,n=i.cameraMatrix.mat4;i._projID++,n[10]=1/(r-t),n[14]=(e-t)/(r-t),this._orthographic?n[11]=0:n[11]=1/e}}class A extends o.Mesh{constructor(e,t,r,i){super(e,t,r,i),A.prototype.__init.call(this),this.proj=new w(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{var e=this.geometry,t=e.buffers[0].data;if(e.vertexDirtyId!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==t.length&&(this.vertexData=new Float32Array(t.length)),this.vertexData2d&&this.vertexData2d.length===3*t.length/2||(this.vertexData2d=new Float32Array(3*t.length));var r=this.proj.world.mat4,i=this.vertexData2d,n=this.vertexData;for(let e=0;e<n.length/2;e++){var o=t[2*e],a=t[2*e+1],s=r[0]*o+r[4]*a+r[12],l=r[1]*o+r[5]*a+r[13],o=r[3]*o+r[7]*a+r[15];i[3*e]=s,i[3*e+1]=l,i[3*e+2]=o,n[2*e]=s/o,n[2*e+1]=l/o}this.vertexDirty=e.vertexDirtyId}}}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return he.call(this,e,t,r,i,n)}isFrontFace(e){return fe.call(this,e)}getDepth(e){return ce.call(this,e)}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}A.prototype._renderDefault=d.prototype._renderDefault;class pe extends A{constructor(e,t,r,i,n){super(new o.MeshGeometry(t,r,i),new o.MeshMaterial(e,{program:_.Program.from(d.defaultVertexShader,d.defaultFragmentShader),pluginName:"batch2d"}),null,n),pe.prototype.__init2.call(this),this.geometry.getBuffer("aVertexPosition").static=!1}__init2(){this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class k extends t.Sprite{constructor(e){super(e),k.prototype.__init.call(this),k.prototype.__init2.call(this),k.prototype.__init3.call(this),this.proj=new w(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}__init2(){this.culledByFrustrum=!1}__init3(){this.trimmedCulledByFrustrum=!1}calculateVertices(){var n=this._texture;if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{this.vertexData2d||(this.vertexData2d=new Float32Array(12));var o=this.transform._worldID,a=n._updateID;if(this._transformID!==o||this._textureID!==a){this._textureID!==a&&(this.uvs=n._uvs.uvsFloat32),this._transformID=o,this._textureID=a;var o=this.proj.world.mat4,a=this.vertexData2d,s=this.vertexData,l=n.trim,n=n.orig,u=this._anchor;let e,t,r,i;r=l?(t=l.x-u._x*n.width,e=t+l.width,(i=l.y-u._y*n.height)+l.height):(t=-u._x*n.width,e=t+n.width,(i=-u._y*n.height)+n.height);a[0]=o[0]*t+o[4]*i+o[12],a[1]=o[1]*t+o[5]*i+o[13],l=o[2]*t+o[6]*i+o[14],a[2]=o[3]*t+o[7]*i+o[15],u=l<0,a[3]=o[0]*e+o[4]*i+o[12],a[4]=o[1]*e+o[5]*i+o[13],l=o[2]*e+o[6]*i+o[14],a[5]=o[3]*e+o[7]*i+o[15],u=u||l<0,a[6]=o[0]*e+o[4]*r+o[12],a[7]=o[1]*e+o[5]*r+o[13],l=o[2]*e+o[6]*r+o[14],a[8]=o[3]*e+o[7]*r+o[15],u=u||l<0,a[9]=o[0]*t+o[4]*r+o[12],a[10]=o[1]*t+o[5]*r+o[13],l=o[2]*t+o[6]*r+o[14],a[11]=o[3]*t+o[7]*r+o[15],this.culledByFrustrum=u||l<0,s[0]=a[0]/a[2],s[1]=a[1]/a[2],s[2]=a[3]/a[5],s[3]=a[4]/a[5],s[4]=a[6]/a[8],s[5]=a[7]/a[8],s[6]=a[9]/a[11],s[7]=a[10]/a[11]}}}calculateTrimmedVertices(){if(this.proj._affine)super.calculateTrimmedVertices();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,e=this._texture,t=this.vertexTrimmedData,e=e.orig,i=this._anchor,n=this.proj.world.mat4,o=-i._x*e.width,a=o+e.width,i=-i._y*e.height,e=i+e.height,s=1/(n[3]*o+n[7]*i+n[15]);t[0]=s*(n[0]*o+n[4]*i+n[12]),t[1]=s*(n[1]*o+n[5]*i+n[13]),r=n[2]*o+n[6]*i+n[14]<0,s=1/(n[3]*a+n[7]*i+n[15]),t[2]=s*(n[0]*a+n[4]*i+n[12]),t[3]=s*(n[1]*a+n[5]*i+n[13]),i=n[2]*a+n[6]*i+n[14],r=r||i<0,s=1/(n[3]*a+n[7]*e+n[15]),t[4]=s*(n[0]*a+n[4]*e+n[12]),t[5]=s*(n[1]*a+n[5]*e+n[13]),i=n[2]*a+n[6]*e+n[14],r=r||i<0,s=1/(n[3]*o+n[7]*e+n[15]),t[6]=s*(n[0]*o+n[4]*e+n[12]),t[7]=s*(n[1]*o+n[5]*e+n[13]),i=n[2]*o+n[6]*e+n[14],this.culledByFrustrum=r||i<0}}_calculateBounds(){var e,t;this.calculateVertices(),this.culledByFrustrum||(e=this._texture.trim,t=this._texture.orig,!e||e.width===t.width&&e.height===t.height?this._bounds.addQuad(this.vertexData):(this.calculateTrimmedVertices(),this.trimmedCulledByFrustrum||this._bounds.addQuad(this.vertexTrimmedData)))}_render(e){this.calculateVertices(),this.culledByFrustrum||(e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))}containsPoint(e){return!this.culledByFrustrum&&super.containsPoint(e)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return he.call(this,e,t,r,i,n)}isFrontFace(e){return fe.call(this,e)}getDepth(e){return ce.call(this,e)}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}const de={worldTransform:{get:ue,enumerable:!0,configurable:!0},position3d:{get(){return this.proj.position},set(e){this.proj.position.copy(e)}},scale3d:{get(){return this.proj.scale},set(e){this.proj.scale.copy(e)}},pivot3d:{get(){return this.proj.pivot},set(e){this.proj.pivot.copy(e)}},euler:{get(){return this.proj.euler},set(e){this.proj.euler.copy(e)}}};function me(){this.proj||(this.proj=new w(this.transform),this.toLocal=E.prototype.toLocal,this.isFrontFace=E.prototype.isFrontFace,this.getDepth=E.prototype.getDepth,Object.defineProperties(this,de))}e.Container.prototype.convertTo3d=me,t.Sprite.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=k.prototype.calculateVertices,this.calculateTrimmedVertices=k.prototype.calculateTrimmedVertices,this._calculateBounds=k.prototype._calculateBounds,this.containsPoint=k.prototype.containsPoint,this.pluginName="batch2d",me.call(this))},e.Container.prototype.convertSubtreeTo3d=function(){this.convertTo3d();for(let e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo3d()},N.SimpleMesh.prototype.convertTo3d=N.SimpleRope.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=A.prototype.calculateVertices,this._renderDefault=A.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new o.MeshMaterial(this.material.texture,{program:_.Program.from(d.defaultVertexShader,d.defaultFragmentShader),pluginName:"batch2d"})),me.call(this))};class O extends z.Text{constructor(e,t,r){super(e,t,r),O.prototype.__init.call(this),this.proj=new w(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,r,i,n=s.TRANSFORM_STEP.ALL){return he.call(this,e,t,r,i,n)}isFrontFace(e){return fe.call(this,e)}getDepth(e){return ce.call(this,e)}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}O.prototype.calculateVertices=k.prototype.calculateVertices,O.prototype.calculateTrimmedVertices=k.prototype.calculateTrimmedVertices,O.prototype._calculateBounds=k.prototype._calculateBounds,O.prototype.containsPoint=k.prototype.containsPoint,O.prototype._render=k.prototype._render;class _e extends _.Geometry{constructor(e=!1){super(),this._buffer=new _.Buffer(null,e,!1),this._indexBuffer=new _.Buffer(null,e,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,h.TYPES.FLOAT).addAttribute("aTrans1",this._buffer,3,!1,h.TYPES.FLOAT).addAttribute("aTrans2",this._buffer,3,!1,h.TYPES.FLOAT).addAttribute("aSamplerSize",this._buffer,2,!1,h.TYPES.FLOAT).addAttribute("aFrame",this._buffer,4,!1,h.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,h.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,h.TYPES.FLOAT).addIndex(this._indexBuffer)}}class ge{static create(e){const{vertex:t,fragment:r,vertexSize:i,geometryClass:n}=Object.assign({vertex:`precision highp float;
|
||
attribute vec2 aVertexPosition;
|
||
attribute vec3 aTrans1;
|
||
attribute vec3 aTrans2;
|
||
attribute vec2 aSamplerSize;
|
||
attribute vec4 aFrame;
|
||
attribute vec4 aColor;
|
||
attribute float aTextureId;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 translationMatrix;
|
||
|
||
varying vec2 vertexPosition;
|
||
varying vec3 vTrans1;
|
||
varying vec3 vTrans2;
|
||
varying vec2 vSamplerSize;
|
||
varying vec4 vFrame;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
|
||
void main(void){
|
||
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
gl_Position.z = 0.0;
|
||
|
||
vertexPosition = aVertexPosition;
|
||
vTrans1 = aTrans1;
|
||
vTrans2 = aTrans2;
|
||
vTextureId = aTextureId;
|
||
vColor = aColor;
|
||
vSamplerSize = aSamplerSize;
|
||
vFrame = aFrame;
|
||
}
|
||
`,fragment:`precision highp float;
|
||
varying vec2 vertexPosition;
|
||
varying vec3 vTrans1;
|
||
varying vec3 vTrans2;
|
||
varying vec2 vSamplerSize;
|
||
varying vec4 vFrame;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
|
||
uniform sampler2D uSamplers[%count%];
|
||
uniform vec4 distortion;
|
||
|
||
void main(void){
|
||
vec2 surface;
|
||
vec2 surface2;
|
||
|
||
float vx = vertexPosition.x;
|
||
float vy = vertexPosition.y;
|
||
float dx = distortion.x;
|
||
float dy = distortion.y;
|
||
float revx = distortion.z;
|
||
float revy = distortion.w;
|
||
|
||
if (distortion.x == 0.0) {
|
||
surface.x = vx;
|
||
surface.y = vy / (1.0 + dy * vx);
|
||
surface2 = surface;
|
||
} else
|
||
if (distortion.y == 0.0) {
|
||
surface.y = vy;
|
||
surface.x = vx / (1.0 + dx * vy);
|
||
surface2 = surface;
|
||
} else {
|
||
float c = vy * dx - vx * dy;
|
||
float b = (c + 1.0) * 0.5;
|
||
float b2 = (-c + 1.0) * 0.5;
|
||
float d = b * b + vx * dy;
|
||
if (d < -0.00001) {
|
||
discard;
|
||
}
|
||
d = sqrt(max(d, 0.0));
|
||
surface.x = (- b + d) * revy;
|
||
surface2.x = (- b - d) * revy;
|
||
surface.y = (- b2 + d) * revx;
|
||
surface2.y = (- b2 - d) * revx;
|
||
}
|
||
|
||
vec2 uv;
|
||
uv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;
|
||
uv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;
|
||
|
||
vec2 pixels = uv * vSamplerSize;
|
||
|
||
if (pixels.x < vFrame.x || pixels.x > vFrame.z ||
|
||
pixels.y < vFrame.y || pixels.y > vFrame.w) {
|
||
uv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;
|
||
uv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;
|
||
pixels = uv * vSamplerSize;
|
||
|
||
if (pixels.x < vFrame.x || pixels.x > vFrame.z ||
|
||
pixels.y < vFrame.y || pixels.y > vFrame.w) {
|
||
discard;
|
||
}
|
||
}
|
||
|
||
vec4 edge;
|
||
edge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));
|
||
edge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));
|
||
|
||
float alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;
|
||
vec4 rColor = vColor * alpha;
|
||
|
||
float textureId = floor(vTextureId+0.5);
|
||
vec2 vTextureCoord = uv;
|
||
vec4 color;
|
||
%forloop%
|
||
gl_FragColor = color * rColor;
|
||
}`,geometryClass:_e,vertexSize:16},e);return X=class extends Y{constructor(e){super(e),X.prototype.__init.call(this),X.prototype.__init2.call(this),X.prototype.__init3.call(this),this.shaderGenerator=new _.BatchShaderGenerator(t,r),this.geometryClass=n,this.vertexSize=i}__init(){this.defUniforms={translationMatrix:new p.Matrix,distortion:new Float32Array([0,0,1/0,1/0])}}__init2(){this.size=1e3}__init3(){this.forceMaxTextures=1}getUniforms(e){e=e.proj;return null!==e.surface?e.uniforms:null!==e._activeProjection?e._activeProjection.uniforms:this.defUniforms}packInterleavedGeometry(e,t,r,i,n){var{uint32View:o,float32View:a}=t,s=i/this.vertexSize,l=e.indices,u=e.vertexData,h=e._texture._frame,c=e.aTrans,{_batchLocation:f,realWidth:p,realHeight:d,resolution:m}=e._texture.baseTexture,t=Math.min(e.worldAlpha,1),_=t<1&&e._texture.baseTexture.alphaMode?g.premultiplyTint(e._tintRGB,t):e._tintRGB+(255*t<<24);for(let e=0;e<u.length;e+=2)a[i]=u[e],a[i+1]=u[e+1],a[i+2]=c.a,a[i+3]=c.c,a[i+4]=c.tx,a[i+5]=c.b,a[i+6]=c.d,a[i+7]=c.ty,a[i+8]=p,a[i+9]=d,a[i+10]=h.x*m,a[i+11]=h.y*m,a[i+12]=(h.x+h.width)*m,a[i+13]=(h.y+h.height)*m,o[i+14]=_,a[i+15]=f,i+=16;for(let e=0;e<l.length;e++)r[n++]=s+l[e]}}}}const P=[new p.Point,new p.Point,new p.Point,new p.Point],R=[0,0,0,0];class C{constructor(){C.prototype.__init.call(this),C.prototype.__init2.call(this),C.prototype.__init3.call(this),C.prototype.__init4.call(this)}__init(){this.surfaceID="default"}__init2(){this._updateID=0}__init3(){this.vertexSrc=""}__init4(){this.fragmentSrc=""}fillUniforms(e){}clear(){}boundsQuad(e,t,r){let i=t[0],n=t[1],o=t[0],a=t[1];for(let e=2;e<8;e+=2)i>t[e]&&(i=t[e]),o<t[e]&&(o=t[e]),n>t[e+1]&&(n=t[e+1]),a<t[e+1]&&(a=t[e+1]);if(P[0].set(i,n),this.apply(P[0],P[0]),P[1].set(o,n),this.apply(P[1],P[1]),P[2].set(o,a),this.apply(P[2],P[2]),P[3].set(i,a),this.apply(P[3],P[3]),r)r.apply(P[0],P[0]),r.apply(P[1],P[1]),r.apply(P[2],P[2]),r.apply(P[3],P[3]),t[0]=P[0].x,t[1]=P[0].y,t[2]=P[1].x,t[3]=P[1].y,t[4]=P[2].x,t[5]=P[2].y,t[6]=P[3].x,t[7]=P[3].y;else{for(let e=1;e<=3;e++){var s;(P[e].y<P[0].y||P[e].y===P[0].y&&P[e].x<P[0].x)&&(s=P[0],P[0]=P[e],P[e]=s)}for(let e=1;e<=3;e++)R[e]=Math.atan2(P[e].y-P[0].y,P[e].x-P[0].x);for(let t=1;t<=3;t++)for(let e=t+1;e<=3;e++){var l;R[t]>R[e]&&(l=P[t],P[t]=P[e],P[e]=l,l=R[t],R[t]=R[e],R[e]=l)}t[0]=P[0].x,t[1]=P[0].y,t[2]=P[1].x,t[3]=P[1].y,t[4]=P[2].x,t[5]=P[2].y,t[6]=P[3].x,t[7]=P[3].y,(P[3].x-P[2].x)*(P[1].y-P[2].y)-(P[1].x-P[2].x)*(P[3].y-P[2].y)<0&&(t[4]=P[3].x,t[5]=P[3].y)}}}const ve=new p.Matrix,M=new p.Rectangle,I=new p.Point;class ye extends C{constructor(...e){super(...e),ye.prototype.__init.call(this)}__init(){this.distortion=new p.Point}clear(){this.distortion.set(0,0)}apply(e,t){t=t||new p.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}applyInverse(e,t){t=t||new p.Point;var r=e.x,e=e.y,i=this.distortion.x,n=this.distortion.y;if(0===i)t.x=r,t.y=e/(1+n*r);else if(0===n)t.y=e,t.x=r/(1+i*e);else{var e=.5*(e*i-r*n+1)/n,o=e*e+r/n;if(o<=1e-5)return t.set(NaN,NaN),t;t.x=0<n?-e+Math.sqrt(o):-e-Math.sqrt(o),t.y=(r/t.x-1)/i}return t}mapSprite(e,t,r){var i=e.texture;return M.x=-e.anchor.x*i.orig.width,M.y=-e.anchor.y*i.orig.height,M.width=i.orig.width,M.height=i.orig.height,this.mapQuad(M,t,r||e.transform)}mapQuad(e,t,r){var i=-e.x/e.width,n=-e.y/e.height,o=(1-e.x)/e.width,e=(1-e.y)/e.height,a=t[0].x*(1-i)+t[1].x*i,s=t[0].y*(1-i)+t[1].y*i,l=t[0].x*(1-o)+t[1].x*o,u=t[0].y*(1-o)+t[1].y*o,h=t[3].x*(1-i)+t[2].x*i,i=t[3].y*(1-i)+t[2].y*i,c=t[3].x*(1-o)+t[2].x*o,t=t[3].y*(1-o)+t[2].y*o,o=a*(1-n)+h*n,f=s*(1-n)+i*n,p=l*(1-n)+c*n,n=u*(1-n)+t*n,a=a*(1-e)+h*e,h=s*(1-e)+i*e,s=l*(1-e)+c*e,i=u*(1-e)+t*e,l=ve;return l.tx=o,l.ty=f,l.a=p-o,l.b=n-f,l.c=a-o,l.d=h-f,I.set(s,i),l.applyInverse(I,I),this.distortion.set(I.x-1,I.y-1),r.setFromMatrix(l),this}fillUniforms(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]}}const be=p.Transform.prototype.updateTransform;function xe(e){var t=this.proj,r=e.proj;r?r._surface?(t._activeProjection=r,this.updateLocalTransform(),this.localTransform.copyTo(this.worldTransform),this._parentID<0&&++this._worldID):(be.call(this,e),t._activeProjection=r._activeProjection):(be.call(this,e),t._activeProjection=null)}class D extends G{constructor(...e){super(...e),D.prototype.__init.call(this),D.prototype.__init2.call(this),D.prototype.__init3.call(this),D.prototype.__init4.call(this),D.prototype.__init5.call(this)}__init(){this._surface=null}__init2(){this._activeProjection=null}set enabled(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?xe:p.Transform.prototype.updateTransform,this.legacy._parentID=-1)}get surface(){return this._surface}set surface(e){this._surface!==e&&(this._surface=e||null,this.legacy._parentID=-1)}applyPartial(e,t){return null!==this._activeProjection?(t=this.legacy.worldTransform.apply(e,t),this._activeProjection.surface.apply(t,t)):(null!==this._surface?this.surface:this.legacy.worldTransform).apply(e,t)}apply(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)}applyInverse(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)}mapBilinearSprite(e,t){this._surface instanceof ye||(this.surface=new ye),this.surface.mapSprite(e,t,this.legacy)}__init3(){this._currentSurfaceID=-1}__init4(){this._currentLegacyID=-1}__init5(){this._lastUniforms=null}clear(){this.surface&&this.surface.clear()}get uniforms(){return this._currentLegacyID===this.legacy._worldID&&this._currentSurfaceID===this.surface._updateID||(this._lastUniforms=this._lastUniforms||{},this._lastUniforms.translationMatrix=this.legacy.worldTransform,this._surface.fillUniforms(this._lastUniforms)),this._lastUniforms}}class L extends t.Sprite{constructor(e){super(e),L.prototype.__init.call(this),this.proj=new D(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new p.Matrix}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){var n=this.transform._worldID,o=this._texture._updateID;if(this._transformID!==n||this._textureID!==o){this._transformID=n,this._textureID=o;var a,s,l,u,n=this._texture,o=this.vertexData,h=n.trim,c=n.orig,f=this._anchor;let e,t,r,i;r=h?(t=h.x-f._x*c.width,e=t+h.width,(i=h.y-f._y*c.height)+h.height):(t=-f._x*c.width,e=t+c.width,(i=-f._y*c.height)+c.height),this.proj._surface?(o[0]=t,o[1]=i,o[2]=e,o[3]=i,o[4]=e,o[5]=r,o[6]=t,o[7]=r,this.proj._surface.boundsQuad(o,o)):(f=(h=this.transform.worldTransform).a,a=h.b,s=h.c,l=h.d,u=h.tx,h=h.ty,o[0]=f*t+s*i+u,o[1]=l*i+a*t+h,o[2]=f*e+s*i+u,o[3]=l*i+a*e+h,o[4]=f*e+s*r+u,o[5]=l*r+a*e+h,o[6]=f*t+s*r+u,o[7]=l*r+a*t+h,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(o,o)),n.uvMatrix||(n.uvMatrix=new _.TextureMatrix(n)),n.uvMatrix.update();f=this.aTrans;f.set(c.width,0,0,c.height,t,i),null===this.proj._surface&&f.prepend(this.transform.worldTransform),f.invert(),f.prepend(n.uvMatrix.mapCoord)}}calculateTrimmedVertices(){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,i,n,o,a,s,e=this._texture,t=this.vertexTrimmedData,e=e.orig,l=this._anchor,u=-l._x*e.width,h=u+e.width,l=-l._y*e.height,e=l+e.height;this.proj._surface?(t[0]=u,t[1]=l,t[2]=h,t[3]=l,t[4]=h,t[5]=e,t[6]=u,t[7]=e,this.proj._surface.boundsQuad(t,t,this.transform.worldTransform)):(r=(s=this.transform.worldTransform).a,i=s.b,n=s.c,o=s.d,a=s.tx,s=s.ty,t[0]=r*u+n*l+a,t[1]=o*l+i*u+s,t[2]=r*h+n*l+a,t[3]=o*l+i*h+s,t[4]=r*h+n*e+a,t[5]=o*e+i*h+s,t[6]=r*u+n*e+a,t[7]=o*e+i*u+s,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(t,t,this.proj._activeProjection.legacy.worldTransform))}get worldTransform(){return this.proj}}t.Sprite.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new p.Matrix,this.calculateVertices=L.prototype.calculateVertices,this.calculateTrimmedVertices=L.prototype.calculateTrimmedVertices,this._calculateBounds=L.prototype._calculateBounds,e.Container.prototype.convertTo2s.call(this))},e.Container.prototype.convertTo2s=function(){this.proj||(this.proj=new D(this.transform),Object.defineProperty(this,"worldTransform",{get(){return this.proj},enumerable:!0,configurable:!0}))},e.Container.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(let e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2s()};class Te extends z.Text{constructor(e,t,r){super(e,t,r),Te.prototype.__init.call(this),this.proj=new D(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new p.Matrix}get worldTransform(){return this.proj}}Te.prototype.calculateVertices=L.prototype.calculateVertices,Te.prototype.calculateTrimmedVertices=L.prototype.calculateTrimmedVertices,Te.prototype._calculateBounds=L.prototype._calculateBounds,_.Renderer.registerPlugin("batch_bilinear",ge.create({})),s.AbstractProjection=G,s.Batch2dPluginFactory=U,s.Batch3dGeometry=j,s.BatchBilinearPluginFactory=ge,s.BatchBilineardGeometry=_e,s.BilinearSurface=ye,s.Camera3d=S,s.Container2d=Q,s.Container3d=E,s.Euler=b,s.LinearProjection=i,s.Matrix2d=n,s.Matrix3d=T,s.Mesh2d=d,s.Mesh3d2d=A,s.ObservableEuler=x,s.ObservablePoint3d=y,s.Point3d=ae,s.Projection2d=l,s.Projection3d=w,s.ProjectionSurface=D,s.SimpleMesh2d=ee,s.SimpleMesh3d2d=pe,s.Sprite2d=m,s.Sprite2s=L,s.Sprite3d=k,s.SpriteMaskFilter2d=oe,s.Surface=C,s.Text2d=v,s.Text2s=Te,s.Text3d=O,s.TilingSprite2d=re,s.TilingSprite2dRenderer=K,s.UniformBatchRenderer=Y,s.applySpine2dMixin=function(e){e.newMesh=function(e,t,r,i,n){return new ee(e,t,r,i,n)},e.newContainer=function(){return this.proj||this.convertTo2d(),new Q},e.newSprite=function(e){return new m(e)},e.newGraphics=function(){var e=new B.Graphics;return e.convertTo2d(),e},e.transformHack=function(){return 2}},s.applySpine3dMixin=function(e){e.newMesh=function(e,t,r,i,n){return new pe(e,t,r,i,n)},e.newContainer=function(){return this.proj||this.convertTo3d(),new E},e.newSprite=function(e){return new k(e)},e.newGraphics=function(){var e=new B.Graphics;return e.convertTo3d(),e},e.transformHack=function(){return 2}},s.container2dToLocal=$,s.container2dWorldTransform=Z,s.container3dGetDepth=ce,s.container3dIsFrontFace=fe,s.container3dToLocal=he,s.container3dWorldTransform=ue,s.getIntersectionFactor=W,s.getPositionFromQuad=function(e,t,r){r=r||new p.Point;var i=1-t.x,n=1-i,o=1-(t=1-t.y);return r.x=(e[0].x*i+e[1].x*n)*t+(e[3].x*i+e[2].x*n)*o,r.y=(e[0].y*i+e[1].y*n)*t+(e[3].y*i+e[2].y*n)*o,r},s.transformHack=H,Object.defineProperty(s,"__esModule",{value:!0})}),"undefined"!=typeof pixi_projection&&Object.assign(this.PIXI.projection,pixi_projection),"undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window),_gsScope=((_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function f(e,t,r,i,n,o){var a,s,l,u,h,c,f,p,d={},m=[],_=o||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(p=e[e.length-1],f=!0,a=m.length;-1<--a;)if(s=m[a],.05<Math.abs(_[s]-p[s])){f=!1;break}f&&(e=e.concat(),o&&e.unshift(o),e.push(e[1]),o=e[e.length-3])}for(L.length=F.length=N.length=0,a=m.length;-1<--a;)z[s=m[a]]=-1!==n.indexOf(","+s+","),d[s]=function(e,t,r,i){var n,o,a,s,l,u,h=[];if(i)for(o=(e=[i].concat(e)).length;-1<--o;)"string"==typeof(u=e[o][t])&&"="===u.charAt(1)&&(e[o][t]=i[t]+Number(u.charAt(0)+u.substr(2)));if((n=e.length-2)<0)h[0]=new B(e[0][t],0,0,e[0][t]);else{for(o=0;o<n;o++)a=e[o][t],s=e[o+1][t],h[o]=new B(a,0,0,s),r&&(l=e[o+2][t],L[o]=(L[o]||0)+(s-a)*(s-a),F[o]=(F[o]||0)+(l-s)*(l-s));h[o]=new B(e[o][t],0,0,e[o+1][t])}return h}(e,s,z[s],o);for(a=L.length;-1<--a;)L[a]=Math.sqrt(L[a]),F[a]=Math.sqrt(F[a]);if(!i){for(a=m.length;-1<--a;)if(z[s])for(c=(l=d[m[a]]).length-1,u=0;u<c;u++)h=l[u+1].da/F[u]+l[u].da/L[u]||0,N[u]=(N[u]||0)+h*h;for(a=N.length;-1<--a;)N[a]=Math.sqrt(N[a])}for(a=m.length,u=r?4:1;-1<--a;){l=d[s=m[a]],S=E=w=T=E=w=S=x=b=y=v=g=D=I=M=C=void 0;for(var g,v,y,b,x,T,w,E,S,A=l,k=t,O=r,P=i,R=z[s],C=A.length-1,M=0,I=A[0].a,D=0;D<C;D++)g=(b=A[M]).a,v=b.d,y=A[M+1].d,w=R?(w=L[D],S=((E=F[D])+w)*k*.25/(!P&&N[D]||.5),v-((x=v-(v-g)*(P?.5*k:0!==w?S/w:0))+(((S=v+(y-v)*(P?.5*k:0!==E?S/E:0))-x)*(3*w/(w+E)+.5)/4||0))):v-((x=v-(v-g)*k*.5)+(S=v+(y-v)*k*.5))/2,S+=w,b.c=E=x+=w,b.b=0!==D?I:I=b.a+.6*(b.c-b.a),b.da=v-g,b.ca=E-g,b.ba=I-g,O?(T=j(g,I,E,v),A.splice(M,1,T[0],T[1],T[2],T[3]),M+=4):M++,I=S;(b=A[M]).b=I,b.c=I+.4*(b.d-I),b.da=b.d-b.a,b.ca=b.c-b.a,b.ba=I-b.a,O&&(T=j(b.a,I,b.c,b.d),A.splice(M,1,T[0],T[1],T[2],T[3])),f&&(l.splice(0,u),l.splice(l.length-u,u))}return d}var E,L,F,N,z,t,B,j,_,e;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(i,h,g){function m(e){for(var t=[],r=e.length,i=0;i!==r;t.push(e[i++]));return t}function _(e,t,r){var i,n,o=e.cycle;for(i in o)n=o[i],e[i]="function"==typeof n?n(r,t[r],t):n[r%n.length];delete e.cycle}function v(e){var p,d,m,_,g,v,y,b;return"function"==typeof e?e:(d=(p="object"==typeof e?e:{each:e}).ease,m=p.from||0,_=p.base||0,g={},v=isNaN(m),y=p.axis,b={center:.5,end:1}[m]||0,function(e,t,r){var i,n,o,a,s,l,u,h,c=(r||p).length,f=g[c];if(!f){if(!(h="auto"===p.grid?0:(p.grid||[1/0])[0])){for(l=-1/0;l<(l=r[h++].getBoundingClientRect().left)&&h<c;);h--}for(f=g[c]=[],i=v?Math.min(h,c)*b-.5:m%h,n=v?c*b/h-.5:m/h|0,u=1/(l=0),s=0;s<c;s++)a=s%h-i,o=n-(s/h|0),f[s]=a=y?Math.abs("y"===y?o:a):Math.sqrt(a*a+o*o),l<a&&(l=a),a<u&&(u=a);f.max=l-u,f.min=u,f.v=c=p.amount||p.each*(c<h?c-1:y?"y"===y?c/h:h:Math.max(h,c/h))||0,f.b=c<0?_-c:_}return c=(f[e]-f.min)/f.max,f.b+(d?d.getRatio(c):c)*f.v})}function y(e,t,r){g.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=y.prototype.render}function o(e,t){for(var r=[],i=0,n=e._first;n;)n instanceof g?r[i++]=n:(t&&(r[i++]=n),i=(r=r.concat(o(n,t))).length),n=n._next;return r}function n(e,t,r,i){t=!1!==t,r=!1!==r;for(var n,o,a=c(i=!1!==i),s=t&&r&&i,l=a.length;-1<--l;)o=a[l],(s||o instanceof h||(n=o.target===o.vars.onComplete)&&r||t&&!n)&&o.paused(e)}var b=1e-8,x=g._internals,T=x.isSelector,w=x.isArray,e=y.prototype=g.to({},.1,{}),E=[],c=(y.version="2.1.3",e.constructor=y,e.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=g.killTweensOf,y.getTweensOf=g.getTweensOf,y.lagSmoothing=g.lagSmoothing,y.ticker=g.ticker,y.render=g.render,y.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),g.prototype.invalidate.call(this)},e.updateTo=function(e,t){var r,i=this,n=i.ratio,o=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||o)if(t)i._initted=!1,o&&i.render(0,!0,!0);else if(i._gc&&i._enabled(!0,!1),i._notifyPluginsOfEnabled&&i._firstPT&&g._onPluginEvent("_onDisable",i),.998<i._time/i._duration){t=i._totalTime;i.render(0,!0,!1),i._initted=!1,i.render(t,!0,!1)}else if(i._initted=!1,i._init(),0<i._time||o)for(var a,s=1/(1-n),l=i._firstPT;l;)a=l.s+l.c,l.c*=s,l.s=a-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,o,a,s,l,u,h=this,c=h._dirty?h.totalDuration():h._totalDuration,f=h._time,p=h._totalTime,d=h._cycle,m=h._duration,_=h._rawPrevTime;if(c-b<=e&&0<=e?(h._totalTime=c,h._cycle=h._repeat,h._yoyo&&0!=(1&h._cycle)?(h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0):(h._time=m,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1),h._reversed||(i=!0,n="onComplete",r=r||h._timeline.autoRemoveChildren),0!==m||!h._initted&&h.vars.lazy&&!r||(h._startTime===h._timeline._duration&&(e=0),(_<0||e<=0&&-b<=e||_===b&&"isPause"!==h.data)&&_!==e&&(r=!0,b<_&&(n="onReverseComplete")),h._rawPrevTime=l=!t||e||_===e?e:b)):e<b?(h._totalTime=h._time=h._cycle=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==p||0===m&&0<_)&&(n="onReverseComplete",i=h._reversed),-b<e?e=0:e<0&&(h._active=!1,0!==m||!h._initted&&h.vars.lazy&&!r||(0<=_&&(r=!0),h._rawPrevTime=l=!t||e||_===e?e:b)),h._initted||(r=!0)):(h._totalTime=h._time=e,0!==h._repeat&&(c=m+h._repeatDelay,h._cycle=h._totalTime/c>>0,0!==h._cycle&&h._cycle===h._totalTime/c&&p<=e&&h._cycle--,h._time=h._totalTime-h._cycle*c,h._yoyo&&0!=(1&h._cycle)&&(h._time=m-h._time,(u=h._yoyoEase||h.vars.yoyoEase)&&(h._yoyoEase||(!0!==u||h._initted?h._yoyoEase=u=!0===u?h._ease:u instanceof Ease?u:Ease.map[u]:(u=h.vars.ease,h._yoyoEase=u=u?u instanceof Ease?u:"function"==typeof u?new Ease(u,h.vars.easeParams):Ease.map[u]||g.defaultEase:g.defaultEase)),h.ratio=u?1-u.getRatio((m-h._time)/m):0)),h._time>m?h._time=m:h._time<0&&(h._time=0)),h._easeType&&!u?(c=h._time/m,(1===(a=h._easeType)||3===a&&.5<=c)&&(c=1-c),3===a&&(c*=2),1===(s=h._easePower)?c*=c:2===s?c*=c*c:3===s?c*=c*c*c:4===s&&(c*=c*c*c*c),h.ratio=1===a?1-c:2===a?c:h._time/m<.5?c/2:1-c/2):u||(h.ratio=h._ease.getRatio(h._time/m))),f!==h._time||r||d!==h._cycle){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!r&&h._firstPT&&(!1!==h.vars.lazy&&h._duration||h.vars.lazy&&!h._duration))return h._time=f,h._totalTime=p,h._rawPrevTime=_,h._cycle=d,x.lazyTweens.push(h),void(h._lazy=[e,t]);!h._time||i||u?i&&this._ease._calcEnd&&!u&&(h.ratio=h._ease.getRatio(0===h._time?0:1)):h.ratio=h._ease.getRatio(h._time/m)}for(!1!==h._lazy&&(h._lazy=!1),h._active||!h._paused&&h._time!==f&&0<=e&&(h._active=!0),0===p&&(2===h._initted&&0<e&&h._init(),h._startAt&&(0<=e?h._startAt.render(e,!0,r):n=n||"_dummyGS"),!h.vars.onStart||0===h._totalTime&&0!==m||t||h._callback("onStart")),o=h._firstPT;o;)o.f?o.t[o.p](o.c*h.ratio+o.s):o.t[o.p]=o.c*h.ratio+o.s,o=o._next;h._onUpdate&&(e<0&&h._startAt&&h._startTime&&h._startAt.render(e,!0,r),t||h._totalTime===p&&!n||h._callback("onUpdate")),h._cycle===d||t||h._gc||h.vars.onRepeat&&h._callback("onRepeat"),!n||h._gc&&!r||(e<0&&h._startAt&&!h._onUpdate&&h._startTime&&h._startAt.render(e,!0,r),i&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[n]&&h._callback(n),0===m&&h._rawPrevTime===b&&l!==b&&(h._rawPrevTime=0))}else p!==h._totalTime&&h._onUpdate&&!t&&h._callback("onUpdate")},y.to=function(e,t,r){return new y(e,t,r)},y.from=function(e,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new y(e,t,r)},y.fromTo=function(e,t,r,i){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,new y(e,t,i)},y.staggerTo=y.allTo=function(e,t,r,i,n,o,a){var s,l,u,h,c=[],f=v(r.stagger||i),p=r.cycle,d=(r.startAt||E).cycle;for(w(e)||("string"==typeof e&&(e=g.selector(e)||e),T(e)&&(e=m(e))),s=(e=e||[]).length-1,u=0;u<=s;u++){for(h in l={},r)l[h]=r[h];if(p&&(_(l,e,u),null!=l.duration&&(t=l.duration,delete l.duration)),d){for(h in d=l.startAt={},r.startAt)d[h]=r.startAt[h];_(l.startAt,e,u)}l.delay=f(u,e[u],e)+(l.delay||0),u===s&&n&&(l.onComplete=function(){r.onComplete&&r.onComplete.apply(r.onCompleteScope||this,arguments),n.apply(a||r.callbackScope||this,o||E)}),c[u]=new y(e[u],t,l)}return c},y.staggerFrom=y.allFrom=function(e,t,r,i,n,o,a){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,y.staggerTo(e,t,r,i,n,o,a)},y.staggerFromTo=y.allFromTo=function(e,t,r,i,n,o,a,s){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,y.staggerTo(e,t,i,n,o,a,s)},y.delayedCall=function(e,t,r,i,n){return new y(t,0,{delay:e,onComplete:t,onCompleteParams:r,callbackScope:i,onReverseComplete:t,onReverseCompleteParams:r,immediateRender:!1,useFrames:n,overwrite:0})},y.set=function(e,t){return new y(e,0,t)},y.isTweening=function(e){return 0<g.getTweensOf(e,!0).length},y.getAllTweens=function(e){return o(i._rootTimeline,e).concat(o(i._rootFramesTimeline,e))});y.killAll=function(e,t,r,i){null==t&&(t=!0),null==r&&(r=!0);for(var n,o,a=c(0!=i),s=a.length,l=t&&r&&i,u=0;u<s;u++)o=a[u],(l||o instanceof h||(n=o.target===o.vars.onComplete)&&r||t&&!n)&&(e?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},y.killChildTweensOf=function(e,t){if(null!=e){var r,i,n,o,a,s=x.tweenLookup;if("string"==typeof e&&(e=g.selector(e)||e),T(e)&&(e=m(e)),w(e))for(o=e.length;-1<--o;)y.killChildTweensOf(e[o],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(a=r.length,o=0;o<a;o++)t&&r[o].totalTime(r[o].totalDuration()),r[o]._enabled(!1,!1)}}};return y.pauseAll=function(e,t,r){n(!0,e,t,r)},y.resumeAll=function(e,t,r){n(!1,e,t,r)},y.globalTimeScale=function(e){var t=i._rootTimeline,r=g.ticker.time;return arguments.length?(t._startTime=r-(r-t._startTime)*t._timeScale/(e=e||b),t=i._rootFramesTimeline,r=g.ticker.frame,t._startTime=r-(r-t._startTime)*t._timeScale/e,t._timeScale=i._rootTimeline._timeScale=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},y},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(c,f,d){function m(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],p(t)&&-1!==t.join("").indexOf("{self}")&&(i[r]=this._swapSelfInParams(t));p(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)}function _(e){var t,r={};for(t in e)r[t]=e[t];return r}function g(e,t,r){var i,n,o=e.cycle;for(i in o)n=o[i],e[i]="function"==typeof n?n(r,t[r],t):n[r%n.length];delete e.cycle}function u(e,t,r,i){var n="immediateRender";return n in t||(t[n]=!(r&&!1===r[n]||i)),t}function v(e){var p,d,m,_,g,v,y,b;return"function"==typeof e?e:(d=(p="object"==typeof e?e:{each:e}).ease,m=p.from||0,_=p.base||0,g={},v=isNaN(m),y=p.axis,b={center:.5,end:1}[m]||0,function(e,t,r){var i,n,o,a,s,l,u,h,c=(r||p).length,f=g[c];if(!f){if(!(h="auto"===p.grid?0:(p.grid||[1/0])[0])){for(l=-1/0;l<(l=r[h++].getBoundingClientRect().left)&&h<c;);h--}for(f=g[c]=[],i=v?Math.min(h,c)*b-.5:m%h,n=v?c*b/h-.5:m/h|0,u=1/(l=0),s=0;s<c;s++)a=s%h-i,o=n-(s/h|0),f[s]=a=y?Math.abs("y"===y?o:a):Math.sqrt(a*a+o*o),l<a&&(l=a),a<u&&(u=a);f.max=l-u,f.min=u,f.v=c=p.amount||p.each*(c<h?c-1:y?"y"===y?c/h:h:Math.max(h,c/h))||0,f.b=c<0?_-c:_}return c=(f[e]-f.min)/f.max,f.b+(d?d.getRatio(c):c)*f.v})}var e=d._internals,t=m._internals={},y=e.isSelector,p=e.isArray,b=e.lazyTweens,x=e.lazyRender,a=_gsScope._gsDefine.globals,n=t.pauseCallback=function(){},e=m.prototype=new f;return m.version="2.1.3",m.distribute=v,e.constructor=m,e.kill()._gc=e._forcingPlayhead=e._hasPause=!1,e.to=function(e,t,r,i){var n=r.repeat&&a.TweenMax||d;return t?this.add(new n(e,t,r),i):this.set(e,r,i)},e.from=function(e,t,r,i){return this.add((r.repeat&&a.TweenMax||d).from(e,t,u(0,r)),i)},e.fromTo=function(e,t,r,i,n){var o=i.repeat&&a.TweenMax||d;return i=u(0,i,r),t?this.add(o.fromTo(e,t,r,i),n):this.set(e,i,n)},e.staggerTo=function(e,t,r,i,n,o,a,s){var l,u,h=new m({onComplete:o,onCompleteParams:a,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),c=v(r.stagger||i),f=r.startAt,p=r.cycle;for("string"==typeof e&&(e=d.selector(e)||e),y(e=e||[])&&(e=function(e){for(var t=[],r=e.length,i=0;i!==r;t.push(e[i++]));return t}(e)),u=0;u<e.length;u++)l=_(r),f&&(l.startAt=_(f),f.cycle&&g(l.startAt,e,u)),p&&(g(l,e,u),null!=l.duration&&(t=l.duration,delete l.duration)),h.to(e[u],t,l,c(u,e[u],e));return this.add(h,n)},e.staggerFrom=function(e,t,r,i,n,o,a,s){return r.runBackwards=!0,this.staggerTo(e,t,u(0,r),i,n,o,a,s)},e.staggerFromTo=function(e,t,r,i,n,o,a,s,l){return i.startAt=r,this.staggerTo(e,t,u(0,i,r),n,o,a,s,l)},e.call=function(e,t,r,i){return this.add(d.delayedCall(0,e,t,r),i)},e.set=function(e,t,r){return this.add(new d(e,0,u(0,t,null,!0)),r)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,i,n,o,a=new m(e),e=a._timeline;for(null==t&&(t=!0),e._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=e._time,n=e._first;n;)o=n._next,t&&n instanceof d&&n.target===n.vars.onComplete||((i=n._startTime-n._delay)<0&&(r=1),a.add(n,i)),n=o;return e.add(a,0),r&&a.totalDuration(),a},e.add=function(e,t,r,i){var n,o,a,s,l,u,h=this;if("number"!=typeof t&&(t=h._parseTimeOrLabel(t,0,!0,e)),!(e instanceof c)){if(e instanceof Array||e&&e.push&&p(e)){for(r=r||"normal",i=i||0,n=t,o=e.length,a=0;a<o;a++)p(s=e[a])&&(s=new m({tweens:s})),h.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 h._uncache(!0)}if("string"==typeof e)return h.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=d.delayedCall(0,e)}if(f.prototype.add.call(h,e,t),(e._time||!e._duration&&e._initted)&&(n=(h.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)),(h._gc||h._time===h._duration)&&!h._paused&&h._duration<h.duration())for(u=(l=h).rawTime()>e._startTime;l._timeline;)u&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return h},e.remove=function(e){var t;if(e instanceof c)return this._remove(e,!1),t=e._timeline=e.vars.useFrames?c._rootFramesTimeline:c._rootTimeline,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&&p(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)},e._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},e.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},e.insert=e.insertMultiple=function(e,t,r,i){return this.add(e,t||0,r,i)},e.appendMultiple=function(e,t,r,i){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),r,i)},e.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},e.addPause=function(e,t,r,i){r=d.delayedCall(0,n,r,i||this);return r.vars.onComplete=r.vars.onReverseComplete=t,r.data="isPause",this._hasPause=!0,this.add(r,e)},e.removeLabel=function(e){return delete this._labels[e],this},e.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},e._parseTimeOrLabel=function(e,t,r,i){var n,o;if(i instanceof c&&i.timeline===this)this.remove(i);else if(i&&(i instanceof Array||i.push&&p(i)))for(o=i.length;-1<--o;)i[o]instanceof c&&i[o].timeline===this&&this.remove(i[o]);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===(o=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=n+t:t:this._labels[e]+t;t=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=1<o?this._parseTimeOrLabel(e.substr(0,o-1),0,r):n}return Number(e)+t},e.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},e.stop=function(){return this.paused(!0)},e.gotoAndPlay=function(e,t){return this.play(e,t)},e.gotoAndStop=function(e,t){return this.pause(e,t)},e.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,o,a,s,l,u,h,c=this,f=c._time,p=c._dirty?c.totalDuration():c._totalDuration,d=c._startTime,m=c._timeScale,_=c._paused;if(f!==c._time&&(e+=c._time-f),c._hasPause&&!c._forcingPlayhead&&!t){if(f<e)for(i=c._first;i&&i._startTime<=e&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===c._rawPrevTime||(l=i),i=i._next;else for(i=c._last;i&&i._startTime>=e&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(c._time=c._totalTime=e=l._startTime,h=c._startTime+(c._reversed?c._duration-e:e)/c._timeScale)}if(p-1e-8<=e&&0<=e)c._totalTime=c._time=p,c._reversed||c._hasPausedChild()||(n=!0,a="onComplete",s=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-1e-8<=e||c._rawPrevTime<0||1e-8===c._rawPrevTime)&&c._rawPrevTime!==e&&c._first&&(s=!0,1e-8<c._rawPrevTime&&(a="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,e=p+1e-4;else if(e<1e-8)if(-1e-8<e&&(e=0),((c._totalTime=c._time=0)!==f||0===c._duration&&1e-8!==c._rawPrevTime&&(0<c._rawPrevTime||e<0&&0<=c._rawPrevTime))&&(a="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(s=n=!0,a="onReverseComplete"):0<=c._rawPrevTime&&c._first&&(s=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,0===e&&n)for(i=c._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,c._initted||(s=!0)}else c._totalTime=c._time=c._rawPrevTime=e;if(c._time!==f&&c._first||r||s||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._time!==f&&0<e&&(c._active=!0),0!==f||!c.vars.onStart||0===c._time&&c._duration||t||c._callback("onStart"),f<=(u=c._time))for(i=c._first;i&&(o=i._next,u===c._time&&(!c._paused||_));)(i._active||i._startTime<=u&&!i._paused&&!i._gc)&&(l===i&&(c.pause(),c._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=o;else for(i=c._last;i&&(o=i._prev,u===c._time&&(!c._paused||_));){if(i._active||i._startTime<=f&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=null,c.pause(),c._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=o}!c._onUpdate||t||(b.length&&x(),c._callback("onUpdate")),!a||c._gc||d!==c._startTime&&m===c._timeScale||(0===c._time||p>=c.totalDuration())&&(n&&(b.length&&x(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[a]&&c._callback(a))}},e._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},e.getChildren=function(e,t,r,i){i=i||-9999999999;for(var n=[],o=this._first,a=0;o;)o._startTime<i||(o instanceof d?!1!==t&&(n[a++]=o):(!1!==r&&(n[a++]=o),!1!==e&&(a=(n=n.concat(o.getChildren(!0,t,r))).length))),o=o._next;return n},e.getTweensOf=function(e,t){var r,i,n=this._gc,o=[],a=0;for(n&&this._enabled(!0,!0),i=(r=d.getTweensOf(e)).length;-1<--i;)(r[i].timeline===this||t&&this._contains(r[i]))&&(o[a++]=r[i]);return n&&this._enabled(!1,!0),o},e.recent=function(){return this._recent},e._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},e.shiftChildren=function(e,t,r){r=r||0;for(var i,n=this._first,o=this._labels;n;)n._startTime>=r&&(n._startTime+=e),n=n._next;if(t)for(i in o)o[i]>=r&&(o[i]+=e);return this._uncache(!0)},e._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},e.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)},e.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return c.prototype.invalidate.call(this)},e._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)},e.totalTime=function(e,t,r){this._forcingPlayhead=!0;var i=c.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},e.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},e.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,o=n._last,a=999999999999;o;)t=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&n._sortChildren&&!o._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(o,o._startTime-o._delay),n._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(i-=o._startTime,n._timeline.smoothChildTiming&&(n._startTime+=o._startTime/n._timeScale,n._time-=o._startTime,n._totalTime-=o._startTime,n._rawPrevTime-=o._startTime),n.shiftChildren(-o._startTime,!1,-9999999999),a=0),i<(r=o._startTime+o._totalDuration/o._timeScale)&&(i=r),o=t;n._duration=n._totalDuration=i,n._dirty=!1}return this._totalDuration},e.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 c.prototype.paused.apply(this,arguments)},e.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===c._rootFramesTimeline},e.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){function r(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}var k=1e-8,i=s._internals,O=i.lazyTweens,P=i.lazyRender,l=_gsScope._gsDefine.globals,u=new e(null,null,1,0),i=r.prototype=new t;return i.constructor=r,i.kill()._gc=!1,r.version="2.1.3",i.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)},i.addCallback=function(e,t,r,i){return this.add(s.delayedCall(0,e,r,i),t)},i.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},i.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},i.tweenTo=function(e,t){t=t||{};var r,i,n,o={ease:u,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},a=t.repeat&&l.TweenMax||s;for(i in t)o[i]=t[i];return o.time=this._parseTimeOrLabel(e),r=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,n=new a(this,r,o),o.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},i.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;t=this.tweenTo(t,r);return t.isFromTo=1,t.duration(Math.abs(t.vars.time-e)/this._timeScale||.001)},i.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,o,a,s,l,u,h,c=this,f=c._time,p=c._dirty?c.totalDuration():c._totalDuration,d=c._duration,m=c._totalTime,_=c._startTime,g=c._timeScale,v=c._rawPrevTime,y=c._paused,b=c._cycle;if(f!==c._time&&(e+=c._time-f),p-k<=e&&0<=e)c._locked||(c._totalTime=p,c._cycle=c._repeat),c._reversed||c._hasPausedChild()||(n=!0,a="onComplete",s=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-k<=e||v<0||v===k)&&v!==e&&c._first&&(s=!0,k<v&&(a="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:k,c._yoyo&&1&c._cycle?c._time=e=0:e=(c._time=d)+1e-4;else if(e<k)if(c._locked||(c._totalTime=c._cycle=0),c._time=0,-k<e&&(e=0),(0!==f||0===d&&v!==k&&(0<v||e<0&&0<=v)&&!c._locked)&&(a="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(s=n=!0,a="onReverseComplete"):0<=v&&c._first&&(s=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=d||!t||e||c._rawPrevTime===e?e:k,0===e&&n)for(i=c._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,c._initted||(s=!0)}else 0===d&&v<0&&(s=!0),c._time=c._rawPrevTime=e,c._locked||(c._totalTime=e,0!==c._repeat&&(x=d+c._repeatDelay,c._cycle=c._totalTime/x>>0,c._cycle&&c._cycle===c._totalTime/x&&m<=e&&c._cycle--,c._time=c._totalTime-c._cycle*x,c._yoyo&&1&c._cycle&&(c._time=d-c._time),c._time>d?e=(c._time=d)+1e-4:c._time<0?c._time=e=0:e=c._time));if(c._hasPause&&!c._forcingPlayhead&&!t){if(f<(e=c._time)||c._repeat&&b!==c._cycle)for(i=c._first;i&&i._startTime<=e&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===c._rawPrevTime||(l=i),i=i._next;else for(i=c._last;i&&i._startTime>=e&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(h=c._startTime+(c._reversed?c._duration-l._startTime:l._startTime)/c._timeScale,l._startTime<d&&(c._time=c._rawPrevTime=e=l._startTime,c._totalTime=e+c._cycle*(c._totalDuration+c._repeatDelay)))}if(c._cycle!==b&&!c._locked){var x=c._yoyo&&0!=(1&b),T=x===(c._yoyo&&0!=(1&c._cycle)),w=c._totalTime,E=c._cycle,S=c._rawPrevTime,A=c._time;if(c._totalTime=b*d,c._cycle<b?x=!x:c._totalTime+=d,c._time=f,c._rawPrevTime=0===d?v-1e-4:v,c._cycle=b,c._locked=!0,c.render(f=x?0:d,t,0===d),t||c._gc||c.vars.onRepeat&&(c._cycle=E,c._locked=!1,c._callback("onRepeat")),f!==c._time)return;if(T&&(c._cycle=b,c._locked=!0,c.render(f=x?d+1e-4:-1e-4,!0,!1)),c._locked=!1,c._paused&&!y)return;c._time=A,c._totalTime=w,c._cycle=E,c._rawPrevTime=S}if(c._time!==f&&c._first||r||s||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._totalTime!==m&&0<e&&(c._active=!0),0!==m||!c.vars.onStart||0===c._totalTime&&c._totalDuration||t||c._callback("onStart"),f<=(u=c._time))for(i=c._first;i&&(o=i._next,u===c._time&&(!c._paused||y));)(i._active||i._startTime<=c._time&&!i._paused&&!i._gc)&&(l===i&&(c.pause(),c._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=o;else for(i=c._last;i&&(o=i._prev,u===c._time&&(!c._paused||y));){if(i._active||i._startTime<=f&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=null,c.pause(),c._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=o}!c._onUpdate||t||(O.length&&P(),c._callback("onUpdate")),!a||c._locked||c._gc||_!==c._startTime&&g===c._timeScale||(0===c._time||p>=c.totalDuration())&&(n&&(O.length&&P(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[a]&&c._callback(a))}else m!==c._totalTime&&c._onUpdate&&!t&&c._callback("onUpdate")},i.getActive=function(e,t,r){for(var i,n=[],o=this.getChildren(e||null==e,t||null==e,!!r),a=0,s=o.length,l=0;l<s;l++)(i=o[l]).isActive()&&(n[a++]=i);return n},i.getLabelAfter=function(e){e||0!==e&&(e=this._time);for(var t=this.getLabelsArray(),r=t.length,i=0;i<r;i++)if(t[i].time>e)return t[i].name;return null},i.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},i.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},i.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},i.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},i.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},i.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)},i.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)},i.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},i.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},i.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+k)},r},!0),E=180/Math.PI,L=[],F=[],N=[],z={},t=_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},j=function(e,t,r,i){var n={a:e},o={},a={},s={c:i},l=(e+t)/2,t=(t+r)/2,r=(r+i)/2,u=(l+t)/2,t=(t+r)/2,h=(t-u)/8;return n.b=l+(e-l)/4,o.b=u+h,n.c=o.a=(n.b+o.b)/2,o.c=a.a=(u+t)/2,a.b=t-h,s.b=r+(i-r)/4,a.c=s.a=(a.b+s.b)/2,[n,o,a,s]},_=_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,o,a,s,l=t.values||[],u={},h=l[0],c=t.autoRotate||r.vars.orientToBezier;for(i in this._autoRotate=c?c instanceof Array?c:[["x","y","rotation",!0!==c&&Number(c)||0]]:null,h)this._props.push(i);for(o=this._props.length;-1<--o;)i=this._props[o],this._overwriteProps.push(i),n=this._func[i]="function"==typeof e[i],u[i]=n?e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(e[i]),s||u[i]!==l[0][i]&&(s=u);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?f(l,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,s):function(e,t,r){var i,n,o,a,s,l,u,h,c,f,p,d={},m="cubic"===(t=t||"soft")?3:2,_="soft"===t,g=[];if(null==(e=_&&r?[r].concat(e):e)||e.length<1+m)throw"invalid Bezier data";for(c in e[0])g.push(c);for(l=g.length;-1<--l;){for(d[c=g[l]]=s=[],h=e.length,u=f=0;u<h;u++)i=null==r?e[u][c]:"string"==typeof(p=e[u][c])&&"="===p.charAt(1)?r[c]+Number(p.charAt(0)+p.substr(2)):Number(p),_&&1<u&&u<h-1&&(s[f++]=(i+s[f-2])/2),s[f++]=i;for(h=f-m+1,u=f=0;u<h;u+=m)i=s[u],n=s[u+1],o=s[u+2],a=2==m?0:s[u+3],s[f++]=p=3==m?new B(i,n,o,a):new B(i,(2*n+i)/3,(2*n+o)/3,o);s.length=f}return d}(l,t.type,u),this._segCount=this._beziers[i].length,this._timeRes&&(h=function(e,t){var r,i,n,o,a=[],s=[],l=0,u=0,h=(t=t>>0||6)-1,c=[],f=[];for(r in e){x=b=y=v=x=g=_=m=d=p=y=A=S=void 0;for(var p,d,m,_,g,v,y,b,x,T=e[r],w=a,E=t,S=1/E,A=T.length;-1<--A;)for(d=(b=T[A]).a,m=b.d-d,_=b.c-d,g=b.b-d,p=0,v=1;v<=E;v++)y=p-(p=((x=S*v)*x*m+3*(y=1-x)*(x*_+y*g))*x),w[x=A*E+v-1]=(w[x]||0)+y*y}for(n=a.length,i=0;i<n;i++)l+=Math.sqrt(a[i]),f[o=i%t]=l,o==h&&(u+=l,c[o=i/t>>0]=f,s[o]=u,l=0,f=[]);return{length:u,lengths:s,segments:c}}(this._beziers,this._timeRes),this._length=h.length,this._lengths=h.lengths,this._segments=h.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),c=this._autoRotate)for(this._initialRotations=[],c[0]instanceof Array||(this._autoRotate=c=[c]),o=c.length;-1<--o;){for(a=0;a<3;a++)i=c[o][a],this._func[i]="function"==typeof e[i]&&e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)];i=c[o][2],this._initialRotations[o]=(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,o,a,s,l,u,h,c=this._segCount,f=this._func,p=this._target,d=e!==this._startRatio;if(this._timeRes){if(l=this._lengths,u=this._curSeg,h=e*this._length,w=this._li,h>this._l2&&w<c-1){for(s=c-1;w<s&&(this._l2=l[++w])<=h;);this._l1=l[w-1],this._li=w,this._curSeg=u=this._segments[w],this._s2=u[this._s1=this._si=0]}else if(h<this._l1&&0<w){for(;0<w&&(this._l1=l[--w])>=h;);0===w&&h<this._l1?this._l1=0:w++,this._l2=l[w],this._li=w,this._curSeg=u=this._segments[w],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(t=w,h-=this._l1,w=this._si,h>this._s2&&w<u.length-1){for(s=u.length-1;w<s&&(this._s2=u[++w])<=h;);this._s1=u[w-1],this._si=w}else if(h<this._s1&&0<w){for(;0<w&&(this._s1=u[--w])>=h;);0===w&&h<this._s1?this._s1=0:w++,this._s2=u[w],this._si=w}o=1===e?1:(w+(h-this._s1)/(this._s2-this._s1))*this._prec||0}else o=(e-(t=e<0?0:1<=e?c-1:c*e>>0)*(1/c))*c;for(r=1-o,w=this._props.length;-1<--w;)i=this._props[w],a=(o*o*(n=this._beziers[i][t]).da+3*r*(o*n.ca+r*n.ba))*o+n.a,this._mod[i]&&(a=this._mod[i](a,p)),f[i]?p[i](a):p[i]=a;if(this._autoRotate)for(var m,_,g,v,y,b,x,T=this._autoRotate,w=T.length;-1<--w;)i=T[w][2],b=T[w][3]||0,x=!0===T[w][4]?1:E,n=this._beziers[T[w][0]],m=this._beziers[T[w][1]],n&&m&&(n=n[t],m=m[t],_=n.a+(n.b-n.a)*o,_+=((v=n.b+(n.c-n.b)*o)-_)*o,v+=(n.c+(n.d-n.c)*o-v)*o,g=m.a+(m.b-m.a)*o,g+=((y=m.b+(m.c-m.b)*o)-g)*o,y+=(m.c+(m.d-m.c)*o-y)*o,a=d?Math.atan2(y-g,v-_)*x+b:this._initialRotations[w],this._mod[i]&&(a=this._mod[i](a,p)),f[i]?p[i](a):p[i]=a)}}),e=_.prototype,_.bezierThrough=f,_.cubicToQuadratic=j,_._autoCSS=!0,_.quadraticToCubic=function(e,t,r){return new B(e,(2*t+e)/3,(2*t+r)/3,r)},_._cssRegister=function(){var p,d,m,e=t.CSSPlugin;e&&(e=e._internals,p=e._parseToProxy,d=e._setPluginRatio,m=e.CSSPropTween,e._registerComplexSpecialProp("bezier",{parser:function(e,t,r,i,n,o){t instanceof Array&&(t={values:t}),o=new _;var a,s,l,u=t.values,h=u.length-1,c=[],f={};if(!(h<0)){for(a=0;a<=h;a++)l=p(e,u[a],i,n,o,h!==a),c[a]=l.end;for(s in t)f[s]=t[s];f.values=c,(n=new m(e,"bezier",0,0,l.pt,2)).data=l,n.plugin=o,n.setRatio=d,0===f.autoRotate&&(f.autoRotate=!0),!f.autoRotate||f.autoRotate instanceof Array||(a=!0===f.autoRotate?0:Number(f.autoRotate),f.autoRotate=null!=l.end.left?[["left","top","rotation",a,!1]]:null!=l.end.x&&[["x","y","rotation",a,!1]]),f.autoRotate&&(i._transform||i._enableTransforms(!1),l.autoRotate=i._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,i._overwriteProps.push("rotation")),o._onInitTween(l.proxy,f,i._tween)}return 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,R){function C(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=C.prototype.setRatio}function s(e,t){return t.toUpperCase()}function l(e,t){return(t=L.createElementNS?L.createElementNS(t||"http://www.w3.org/1999/xhtml",e):L.createElement(e)).style?t:L.createElement(e)}function u(e){return ne.test("string"==typeof e?e:(e.currentStyle||e.style).filter||"")?parseFloat(RegExp.$1)/100:1}function _(e){_gsScope.console&&console.log(e)}function T(e,t){var r,i,n=(t=t||F).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?(ve="-"+(ye=3===i?"ms":r[i]).toLowerCase()+"-",ye+e):null}function d(e){return be.getComputedStyle(e)}function f(e,t){var r,i,n={};if(t=t||d(e))if(r=t.length)for(;-1<--r;)-1!==(i=t[r]).indexOf("-transform")&&Ge!==i||(n[i.replace(ue,s)]=t.getPropertyValue(i));else for(r in t)-1!==r.indexOf("Transform")&&H!==r||(n[r]=t[r]);else if(t=e.currentStyle||e.style)for(r in t)"string"==typeof r&&void 0===n[r]&&(n[r.replace(ue,s)]=t[r]);return N||(n.opacity=u(e)),e=Je(e,t,!1),n.rotation=e.rotation,n.skewX=e.skewX,n.scaleX=e.scaleX,n.scaleY=e.scaleY,n.x=e.x,n.y=e.y,Y&&(n.z=e.z,n.rotationX=e.rotationX,n.rotationY=e.rotationY,n.scaleZ=e.scaleZ),n.filters&&delete n.filters,n}function g(e,t,r,i,n){var o,a,s,l={},u=e.style;for(a in r)"cssText"===a||"length"!==a&&isNaN(a)&&(t[a]!==(o=r[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"==typeof o||"string"==typeof o)&&(l[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof t[a]||""===t[a].replace(re,"")?o:0:xe(e,a),void 0!==u[a]&&(s=new Oe(u,a,u[a],s)));if(i)for(a in i)"className"!==a&&(l[a]=i[a]);return{difs:l,firstMPT:s}}function A(e,t){return"string"==typeof(e="function"==typeof e?e(P,O):e)&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0}function E(e,t){var r="string"==typeof(e="function"==typeof e?e(P,O):e)&&"="===e.charAt(1);return null==(e="string"==typeof e&&"v"===e.charAt(e.length-2)?(r?e.substr(0,2):0)+window["inner"+("vh"===e.substr(-2)?"Height":"Width")]*(parseFloat(r?e.substr(2):e)/100):e)?t:r?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0}function S(e,t,r,i){var n,o;return n=(n=null==(e="function"==typeof e?e(P,O):e)?t:"number"==typeof e?e:(n=e.split("_"),o=((o="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===e.indexOf("rad")?1:D)-(o?0:t),n.length&&(i&&(i[r]=t+o),-1!==e.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==e.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==e.indexOf("ccw")&&0<o&&(o=(o-3599999999640)%360-360*(o/360|0))),t+o))<1e-6&&-1e-6<n?0:n}function h(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}function v(e,t){var r,i,n,o=e.match(j)||[],a=0,s="";if(!o.length)return e;for(r=0;r<o.length;r++)i=o[r],a+=(n=e.substr(a,e.indexOf(i,a)-a)).length+i.length,3===(i=Se(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(a)}var p,W,k,y,q,b,V,K,J,x,O,P,Z=_gsScope._gsDefine.globals,m={},e=C.prototype=new a("css"),Q=((e.constructor=C).version="2.1.3",C.API=2,C.defaultTransformPerspective=0,C.defaultSkewType="compensated",C.defaultSmoothOrigin=!0,C.suffixMap={top:e="px",right:e,bottom:e,left:e,width:e,height:e,fontSize:e,padding:e,margin:e,perspective:e,lineHeight:""},/(?:\-|\.|\b)(\d|\.|e\-)+/g),$=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,ee=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,te=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,re=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,ie=/(?:\d|\-|\+|=|#|\.)*/g,ne=/opacity *= *([^)]*)/i,oe=/opacity:([^;]*)/i,ae=/alpha\(opacity *=.+?\)/i,se=/^(rgb|hsl)/,le=/([A-Z])/g,ue=/-([a-z])/gi,he=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,ce=/(?:Left|Right|Width)/i,fe=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,pe=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,M=/,(?=[^\)]*(?:\(|$))/gi,de=/[\s,\(]/i,I=Math.PI/180,D=180/Math.PI,me={},_e={style:{}},L=_gsScope.document||{createElement:function(){return _e}},F=l("div"),ge=l("img"),t=C._internals={_specialProps:m},r=(_gsScope.navigator||{}).userAgent||"",N=(n=r.indexOf("Android"),i=l("a"),V=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome")&&(-1===n||3<parseFloat(r.substr(n+8,2))),J=V&&parseFloat(r.substr(r.indexOf("Version/")+8,2))<6,K=-1!==r.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(r)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(r))&&(x=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))),ve="",ye="",be="undefined"!=typeof window?window:L.defaultView||{getComputedStyle:function(){}},z=C.getStyle=function(e,t,r,i,n){var o;return N||"opacity"!==t?(!i&&e.style[t]?o=e.style[t]:(r=r||d(e))?o=r[t]||r.getPropertyValue(t)||r.getPropertyValue(t.replace(le,"-$1").toLowerCase()):e.currentStyle&&(o=e.currentStyle[t]),null==n||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:n):u(e)},w=t.convertToPixels=function(e,t,r,i,n){if("px"===i||!i&&"lineHeight"!==t)return r;if("auto"===i||!r)return 0;var o,a,s,l=ce.test(t),u=e,h=F.style,c=r<0,f=1===r;if(c&&(r=-r),f&&(r*=100),"lineHeight"!==t||i)if("%"===i&&-1!==t.indexOf("border"))o=r/100*(l?e.clientWidth:e.clientHeight);else{if(h.cssText="border:0 solid red;position:"+z(e,"position")+";line-height:0;","%"!==i&&u.appendChild&&"v"!==i.charAt(0)&&"rem"!==i)h[l?"borderLeftWidth":"borderTopWidth"]=r+i;else{if(u=e.parentNode||L.body,-1!==z(u,"display").indexOf("flex")&&(h.position="absolute"),a=u._gsCache,s=R.ticker.frame,a&&l&&a.time===s)return a.width*r/100;h[l?"width":"height"]=r+i}u.appendChild(F),o=parseFloat(F[l?"offsetWidth":"offsetHeight"]),u.removeChild(F),l&&"%"===i&&!1!==C.cacheWidths&&((a=u._gsCache=u._gsCache||{}).time=s,a.width=o/r*100),0!==o||n||(o=w(e,t,r,i,!0))}else a=d(e).lineHeight,e.style.lineHeight=r,o=parseFloat(d(e).lineHeight),e.style.lineHeight=a;return f&&(o/=100),c?-o:o},xe=t.calculateOffset=function(e,t,r){var i;return"absolute"!==z(e,"position",r)?0:(r=z(e,"margin"+(i="left"===t?"Left":"Top"),r),e["offset"+i]-(w(e,t,parseFloat(r),r.replace(ie,""))||0))},Te={width:["Left","Right"],height:["Top","Bottom"]},we=["marginLeft","marginRight","marginTop","marginBottom"],B=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";var r,i=(e=null!=e&&""!==e?e:"0 0").split(" "),n=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":i[0],o=-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(B(i[r]));return e.join(",")}return null==o?o="center"===n?"50%":"0":"center"===o&&(o="50%"),e=(n="center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("=")?"50%":n)+" "+o+(2<i.length?" "+i[2]:""),t&&(t.oxp=-1!==n.indexOf("%"),t.oyp=-1!==o.indexOf("%"),t.oxr="="===n.charAt(1),t.oyr="="===o.charAt(1),t.ox=parseFloat(n.replace(re,"")),t.oy=parseFloat(o.replace(re,"")),t.v=e),t||e},Ee={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]},Se=C.parseColor=function(e,t){var r,i,n,o,a,s,l,u;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)),Ee[e])r=Ee[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(i=e.charAt(1))+i+(n=e.charAt(2))+n+(o=e.charAt(3))+o),r=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(r=u=e.match(Q),t){if(-1!==e.indexOf("="))return e.match($)}else a=Number(r[0])%360/360,s=Number(r[1])/100,i=2*(l=Number(r[2])/100)-(n=l<=.5?l*(s+1):l+s-l*s),3<r.length&&(r[3]=Number(r[3])),r[0]=h(a+1/3,i,n),r[1]=h(a,i,n),r[2]=h(a-1/3,i,n);else r=e.match(Q)||Ee.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=Ee.black;return t&&!u&&(i=r[0]/255,n=r[1]/255,o=r[2]/255,l=((e=Math.max(i,n,o))+(t=Math.min(i,n,o)))/2,e===t?a=s=0:(u=e-t,s=.5<l?u/(2-e-t):u/(e+t),a=e===i?(n-o)/u+(n<o?6:0):e===n?(o-i)/u+2:(i-n)/u+4,a*=60),r[0]=a+.5|0,r[1]=100*s+.5|0,r[2]=100*l+.5|0),r},j="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(e in Ee)j+="|"+e+"\\b";j=new RegExp(j+")","gi"),C.colorStringFilter=function(e){var t=e[0]+" "+e[1];j.test(t)&&(t=-1!==t.indexOf("hsl(")||-1!==t.indexOf("hsla("),e[0]=v(e[0],t),e[1]=v(e[1],t)),j.lastIndex=0},R.defaultStringFilter||(R.defaultStringFilter=C.colorStringFilter);function Ae(e,t,o,a){var s,l,u,h,c,f,p,d;return null==e?function(e){return e}:(s=t?(e.match(j)||[""])[0]:"",l=e.split(s).join("").match(ee)||[],u=e.substr(0,e.indexOf(l[0])),h=")"===e.charAt(e.length-1)?")":"",c=-1!==e.indexOf(" ")?" ":",",f=l.length,p=0<f?l[0].replace(Q,""):"",f?d=t?function(e){var t,r,i,n;if("number"==typeof e)e+=p;else if(a&&M.test(e)){for(n=e.replace(M,"|").split("|"),i=0;i<n.length;i++)n[i]=d(n[i]);return n.join(",")}if(t=(e.match(j)||[s])[0],i=(r=e.split(t).join("").match(ee)||[]).length,f>i--)for(;++i<f;)r[i]=o?r[(i-1)/2|0]:l[i];return u+r.join(c)+c+t+h+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,r,i;if("number"==typeof e)e+=p;else if(a&&M.test(e)){for(r=e.replace(M,"|").split("|"),i=0;i<r.length;i++)r[i]=d(r[i]);return r.join(",")}if(i=(t=e.match(","==c?ee:te)||[]).length,f>i--)for(;++i<f;)t[i]=o?t[(i-1)/2|0]:l[i];return(u&&"none"!==e&&e.substr(0,e.indexOf(t[0]))||u)+t.join(c)+h}:function(e){return e})}function ke(u){return u=u.split(","),function(e,t,r,i,n,o,a){var s,l=(t+"").split(" ");for(a={},s=0;s<4;s++)a[u[s]]=l[s]=l[s]||l[(s-1)/2>>0];return i.parse(e,a,n,o)}}function Oe(e,t,r,i,n){this.t=e,this.p=t,this.v=r,this.r=n,i&&((i._prev=this)._next=i)}t._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,r,i,n,o,a=this.data,s=a.proxy,l=a.firstMPT;l;)t=s[l.v],l.r?t=l.r(t):t<1e-6&&-1e-6<t&&(t=0),l.t[l.p]=t,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===e||0===e)for(l=a.firstMPT,o=1===e?"e":"b";l;){if((r=l.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[o]=n}}else r[o]=r.s+r.xs0;l=l._next}},t._parseToProxy=function(e,t,r,i,n,o){var a,s,l,u,h=i,c={},f={},p=r._transform,d=me;for(r._transform=null,me=t,i=e=r.parse(e,t,i,n),me=d,o&&(r._transform=p,h&&(h._prev=null,h._prev&&(h._prev._next=null)));i&&i!==h;){if(i.type<=1&&(f[s=i.p]=i.s+i.c,c[s]=i.s,o||(u=new Oe(i,"s",s,u,i.r),i.c=0),1===i.type))for(a=i.l;0<--a;)f[s=i.p+"_"+(l="xn"+a)]=i.data[l],c[s]=i[l],o||(u=new Oe(i,l,s,u,i.rxp[l]));i=i._next}return{proxy:c,end:f,firstMPT:u,pt:e}};function Pe(e,t,r,i,n,o){return(e=new U(e,t,r,i-r,n,-1,o)).b=r,e.e=e.xs0=i,e}var U=t.CSSPropTween=function(e,t,r,i,n,o,a,s,l,u,h){this.t=e,this.p=t,this.s=r,this.c=i,this.n=a||t,e instanceof U||y.push(this.n),this.r=s&&("function"==typeof s?s:Math.round),this.type=o||0,l&&(this.pr=l,p=!0),this.b=void 0===u?r:u,this.e=void 0===h?r+i:h,n&&((this._next=n)._prev=this)},Re=C.parseComplex=function(e,t,r,i,n,o,a,s,l,u){r=r||o||"","function"==typeof i&&(i=i(P,O)),a=new U(e,t,0,0,a,u?2:1,null,!1,s,r,i),i+="",n&&j.test(i+r)&&(C.colorStringFilter(i=[r,i]),r=i[0],i=i[1]);var h,c,f,p,d,m,_,g,v,y,b,x,T=r.split(", ").join(",").split(" "),w=i.split(", ").join(",").split(" "),E=T.length,S=!1!==q;for(-1===i.indexOf(",")&&-1===r.indexOf(",")||(w=(-1!==(i+r).indexOf("rgb")||-1!==(i+r).indexOf("hsl")?(T=T.join(" ").replace(M,", ").split(" "),w.join(" ").replace(M,", ")):(T=T.join(" ").split(",").join(", ").split(" "),w.join(" ").split(",").join(", "))).split(" "),E=T.length),E!==w.length&&(E=(T=(o||"").split(" ")).length),a.plugin=l,a.setRatio=u,h=j.lastIndex=0;h<E;h++)if(p=T[h],d=w[h]+"",(x=parseFloat(p))||0===x)a.appendXtra("",x,A(d,x),d.replace($,""),S&&-1!==d.indexOf("px")&&Math.round,!0);else if(n&&j.test(p))b=")"+((b=d.indexOf(")")+1)?d.substr(b):""),x=-1!==d.indexOf("hsl")&&N,v=d,p=Se(p,x),d=Se(d,x),(g=6<p.length+d.length)&&!N&&0===d[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(w[h]).join("transparent")):(N||(g=!1),x?a.appendXtra(v.substr(0,v.indexOf("hsl"))+(g?"hsla(":"hsl("),p[0],A(d[0],p[0]),",",!1,!0).appendXtra("",p[1],A(d[1],p[1]),"%,",!1).appendXtra("",p[2],A(d[2],p[2]),g?"%,":"%"+b,!1):a.appendXtra(v.substr(0,v.indexOf("rgb"))+(g?"rgba(":"rgb("),p[0],d[0]-p[0],",",Math.round,!0).appendXtra("",p[1],d[1]-p[1],",",Math.round).appendXtra("",p[2],d[2]-p[2],g?",":b,Math.round),g&&(p=p.length<4?1:p[3],a.appendXtra("",p,(d.length<4?1:d[3])-p,b,!1))),j.lastIndex=0;else if(m=p.match(Q)){if(!(_=d.match($))||_.length!==m.length)return a;for(c=f=0;c<m.length;c++)y=m[c],v=p.indexOf(y,f),a.appendXtra(p.substr(f,v-f),Number(y),A(_[c],y),"",S&&"px"===p.substr(v+y.length,2)&&Math.round,0===c),f=v+y.length;a["xs"+a.l]+=p.substr(f)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+d:d;if(-1!==i.indexOf("=")&&a.data){for(b=a.xs0+a.data.s,h=1;h<a.l;h++)b+=a["xs"+h]+a.data["xn"+h];a.e=b+a["xs"+h]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},G=9;for((e=U.prototype).l=e.pr=0;0<--G;)e["xn"+G]=0,e["xs"+G]="";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,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+e:e||"",r||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=i||"",0<s?(a.data["xn"+s]=t+r,a.rxp["xn"+s]=n,a["xn"+s]=t,a.plugin||(a.xfirst=new U(a,"xn"+s,t,r,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0)):(a.data={s:t+r},a.rxp={},a.s=t,a.c=r,a.r=n)):a["xs"+s]+=t+(i||""),a};function Ce(e,t){this.p=(t=t||{}).prefix&&T(e)||e,(m[e]=m[this.p]=this).format=t.formatter||Ae(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}function Me(e,t,r){var i,n=L.createElementNS("http://www.w3.org/2000/svg",e),o=/([a-z])([A-Z])/g;for(i in r)n.setAttributeNS(null,i.replace(o,"$1-$2").toLowerCase(),r[i]);return t.appendChild(n),n}function Ie(e,t,r,i,n,o){var a,s,l,u,h,c,f,p,d,m,_,g,v=e._gsTransform,y=De(e,!0);v&&(_=v.xOrigin,g=v.yOrigin),(!i||(a=i.split(" ")).length<2)&&(0===(h=e.getBBox()).x&&0===h.y&&h.width+h.height===0&&(h={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}),a=[(-1!==(t=B(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*h.width:parseFloat(t[0]))+h.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*h.height:parseFloat(t[1]))+h.y]),r.xOrigin=t=parseFloat(a[0]),r.yOrigin=u=parseFloat(a[1]),i&&y!==Ke&&(i=y[0],h=y[1],c=y[2],f=y[3],p=y[4],d=y[5],(m=i*f-h*c)&&(l=t*(-h/m)+u*(i/m)-(i*d-h*p)/m,t=r.xOrigin=a[0]=s=t*(f/m)+u*(-c/m)+(c*d-f*p)/m,u=r.yOrigin=a[1]=l)),v&&(o&&(r.xOffset=v.xOffset,r.yOffset=v.yOffset,v=r),n||!1!==n&&!1!==C.defaultSmoothOrigin?(v.xOffset+=(s=t-_)*y[0]+(l=u-g)*y[2]-s,v.yOffset+=s*y[1]+l*y[3]-l):v.xOffset=v.yOffset=0),o||e.setAttribute("data-svg-origin",a.join(" "))}function De(e,t){var r,i,n,o,a,s,l,u=e._gsTransform||new He,h=e.style;if(H?i=z(e,Ge,null,!0):e.currentStyle&&(i=(i=e.currentStyle.filter.match(fe))&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),u.x||0,u.y||0].join(","):""),r=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,H&&r&&!e.offsetParent&&e!==c&&(o=h.display,h.display="block",(l=e.parentNode)&&e.offsetParent||(a=1,s=e.nextSibling,c.appendChild(e)),r=!(i=z(e,Ge,null,!0))||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,o?h.display=o:Qe(h,"display"),a&&(s?l.insertBefore(e,s):l?l.appendChild(e):c.removeChild(e))),(u.svg||e.getCTM&&Ve(e))&&(r&&-1!==(h[H]+"").indexOf("matrix")&&(i=h[H],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 Ke;for(n=(i||"").match(Q)||[],G=n.length;-1<--G;)o=Number(n[G]),n[G]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return t&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n}function Le(e){var t,r,i=this.data,n=(a=-i.rotation*I)+i.skewX*I,o=(Math.cos(a)*i.scaleX*1e5|0)/1e5,a=(Math.sin(a)*i.scaleX*1e5|0)/1e5,s=(Math.sin(n)*-i.scaleY*1e5|0)/1e5,n=(Math.cos(n)*i.scaleY*1e5|0)/1e5,l=this.t.style,u=this.t.currentStyle;if(u){r=a,a=-s,s=-r,t=u.filter,l.filter="";var h=this.t.offsetWidth,c=this.t.offsetHeight,f="absolute"!==u.position,p="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+a+", M21="+s+", M22="+n,d=i.x+h*i.xPercent/100,m=i.y+c*i.yPercent/100;if(null!=i.ox&&(d+=(y=(i.oxp?h*i.ox*.01:i.ox)-h/2)-(y*o+(b=(i.oyp?c*i.oy*.01:i.oy)-c/2)*a),m+=b-(y*s+b*n)),p+=f?", Dx="+((y=h/2)-(y*o+(b=c/2)*a)+d)+", Dy="+(b-(y*s+b*n)+m)+")":", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=t.replace(pe,p):l.filter=p+" "+t,0!==e&&1!==e||1!=o||0!=a||0!=s||1!=n||f&&-1===p.indexOf("Dx=0, Dy=0")||ne.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&l.removeAttribute("filter"),!f){var _,g,v=x<8?1:-1,y=i.ieOffsetX||0,b=i.ieOffsetY||0;for(i.ieOffsetX=Math.round((h-((o<0?-o:o)*h+(a<0?-a:a)*c))/2+d),i.ieOffsetY=Math.round((c-((n<0?-n:n)*c+(s<0?-s:s)*h))/2+m),G=0;G<4;G++)g=(r=-1!==(g=u[_=we[G]]).indexOf("px")?parseFloat(g):w(this.t,_,parseFloat(g),g.replace(ie,""))||0)!==i[_]?G<2?-i.ieOffsetX:-i.ieOffsetY:G<2?y-i.ieOffsetX:b-i.ieOffsetY,l[_]=(i[_]=Math.round(r-g*(0===G||2===G?1:v)))+"px"}}}function Fe(e){var t,r=this.t,i=r.filter||z(this.data,"filter")||"",e=this.s+this.c*e|0;(t=100==e?-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(r.removeAttribute("filter"),!z(this.data,"filter")):(r.filter=i.replace(ae,""),!0):t)||(this.xn1&&(r.filter=i=i||"alpha(opacity="+e+")"),-1===i.indexOf("pacity")?0==e&&this.xn1||(r.filter=i+" alpha(opacity="+e+")"):r.filter=i.replace(ne,"opacity="+e))}function Ne(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:Qe(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)}function ze(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,r,i,n,o=this.t.style,a=m.transform.parse;if("all"===this.e)n=!(o.cssText="");else for(i=(t=this.e.split(" ").join("").split(",")).length;-1<--i;)r=t[i],m[r]&&(m[r].parse===a?n=!0:r="transformOrigin"===r?Xe:m[r].p),Qe(o,r);n&&(Qe(o,H),(e=this.t._gsTransform)&&(e.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}var X,i,Be,n,o=t._registerComplexSpecialProp=function(e,t,r){"object"!=typeof t&&(t={parser:r});var i,n=e.split(","),o=t.defaultValue;for(r=r||[o],i=0;i<n.length;i++)t.prefix=0===i&&t.prefix,t.defaultValue=r[i]||o,new Ce(n[i],t)},je=t._registerPluginProp=function(e){var l;m[e]||(l=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin",o(e,{parser:function(e,t,r,i,n,o,a){var s=Z.com.greensock.plugins[l];return s?(s._cssRegister(),m[r].parse(e,t,r,i,n,o,a)):(_("Error: "+l+" js file not loaded."),n)}}))},Ue=((e=Ce.prototype).parseComplex=function(e,t,r,i,n,o){var a,s,l,u,h,c,f=this.keyword;if(this.multi&&(M.test(r)||M.test(t)?(s=t.replace(M,"|").split("|"),l=r.replace(M,"|").split("|")):f&&(s=[t],l=[r])),l){for(u=(l.length>s.length?l:s).length,a=0;a<u;a++)t=s[a]=s[a]||this.dflt,r=l[a]=l[a]||this.dflt,f&&(h=t.indexOf(f))!==(c=r.indexOf(f))&&(-1===c?s[a]=s[a].split(f).join(""):-1===h&&(s[a]+=" "+f));t=s.join(", "),r=l.join(", ")}return Re(e,this.p,t,r,this.clrs,this.dflt,i,this.pr,n,o)},e.parse=function(e,t,r,i,n,o,a){return this.parseComplex(e.style,this.format(z(e,this.p,k,!1,this.dflt)),this.format(t),n,o)},C.registerSpecialProp=function(e,s,l){o(e,{parser:function(e,t,r,i,n,o,a){n=new U(e,r,0,0,n,2,r,!1,l);return n.plugin=o,n.setRatio=s(e,t,i._tween,r),n},priority:l})},C.useSVGTransformAttr=!0,"scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(",")),H=T("transform"),Ge=ve+"transform",Xe=T("transformOrigin"),Y=null!==T("perspective"),He=t.Transform=function(){this.perspective=parseFloat(C.defaultTransformPerspective)||0,this.force3D=!1!==C.defaultForce3D&&Y&&(C.defaultForce3D||"auto")},Ye=_gsScope.SVGElement,c=L.documentElement||{},We=(n=x||/Android/i.test(r)&&!_gsScope.chrome,L.createElementNS&&c.appendChild&&!n&&(i=Me("svg",c),Be=(r=Me("rect",i,{width:100,height:50,x:100})).getBoundingClientRect().width,r.style[Xe]="50% 50%",r.style[H]="scaleX(0.5)",n=Be===r.getBoundingClientRect().width&&!(K&&Y),c.removeChild(i)),n),qe=function(e){var t,r=l("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,o=this.style.cssText;if(c.appendChild(r),r.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=qe}catch(e){}else this._originalGetBBox&&(t=this._originalGetBBox());return n?i.insertBefore(this,n):i.appendChild(this),c.removeChild(r),this.style.cssText=o,t},Ve=function(e){return!(!Ye||!e.getCTM||e.parentNode&&!e.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return qe.call(t,!0)}}(e))},Ke=[1,0,0,1,0,0],Je=t.getTransform=function(e,t,r,i){if(e._gsTransform&&r&&!i)return e._gsTransform;var n,o,a,s,l,u,h,c,f,p,d,m,_,g,v,y,b,x,T,w,E,S,A=r&&e._gsTransform||new He,k=A.scaleX<0,O=Y&&(parseFloat(z(e,Xe,t,!1,"0 0 0").split(" ")[2])||A.zOrigin)||0,P=parseFloat(C.defaultTransformPerspective)||0;if(A.svg=!(!e.getCTM||!Ve(e)),A.svg&&(Ie(e,z(e,Xe,t,!1,"50% 50%")+"",A,e.getAttribute("data-svg-origin")),X=C.useSVGTransformAttr||We),(t=De(e))!==Ke)for(n in 16===t.length?(o=t[0],a=t[1],s=t[2],T=t[3],l=t[4],u=t[5],h=t[6],x=t[7],c=t[8],f=t[9],p=t[10],d=t[12],m=t[13],_=t[14],g=t[11],v=Math.atan2(h,p),A.zOrigin&&(d=c*(_=-A.zOrigin)-t[12],m=f*_-t[13],_=p*_+A.zOrigin-t[14]),A.rotationX=v*D,v&&(S=l*(w=Math.cos(-v))+c*(E=Math.sin(-v)),y=u*w+f*E,b=h*w+p*E,c=l*-E+c*w,f=u*-E+f*w,p=h*-E+p*w,g=x*-E+g*w,l=S,u=y,h=b),v=Math.atan2(-s,p),A.rotationY=v*D,v&&(y=a*(w=Math.cos(-v))-f*(E=Math.sin(-v)),b=s*w-p*E,f=a*E+f*w,p=s*E+p*w,g=T*E+g*w,o=S=o*w-c*E,a=y,s=b),v=Math.atan2(a,o),A.rotation=v*D,v&&(S=o*(w=Math.cos(v))+a*(E=Math.sin(v)),y=l*w+u*E,b=c*w+f*E,a=a*w-o*E,u=u*w-l*E,f=f*w-c*E,o=S,l=y,c=b),A.rotationX&&359.9<Math.abs(A.rotationX)+Math.abs(A.rotation)&&(A.rotationX=A.rotation=0,A.rotationY=180-A.rotationY),v=Math.atan2(l,u),A.scaleX=(1e5*Math.sqrt(o*o+a*a+s*s)+.5|0)/1e5,A.scaleY=(1e5*Math.sqrt(u*u+h*h)+.5|0)/1e5,A.scaleZ=(1e5*Math.sqrt(c*c+f*f+p*p)+.5|0)/1e5,o/=A.scaleX,l/=A.scaleY,a/=A.scaleX,u/=A.scaleY,2e-5<Math.abs(v)?(A.skewX=v*D,l=0,"simple"!==A.skewType&&(A.scaleY*=1/Math.cos(v))):A.skewX=0,A.perspective=g?1/(g<0?-g:g):0,A.x=d,A.y=m,A.z=_,A.svg&&(A.x-=A.xOrigin-(A.xOrigin*o-A.yOrigin*l),A.y-=A.yOrigin-(A.yOrigin*a-A.xOrigin*u))):Y&&!i&&t.length&&A.x===t[4]&&A.y===t[5]&&(A.rotationX||A.rotationY)||(T=(x=6<=t.length)?t[0]:1,w=t[1]||0,E=t[2]||0,S=x?t[3]:1,A.x=t[4]||0,A.y=t[5]||0,y=Math.sqrt(T*T+w*w),b=Math.sqrt(S*S+E*E),s=T||w?Math.atan2(w,T)*D:A.rotation||0,h=E||S?Math.atan2(E,S)*D+s:A.skewX||0,A.scaleX=y,A.scaleY=b,A.rotation=s,A.skewX=h,Y&&(A.rotationX=A.rotationY=A.z=0,A.perspective=P,A.scaleZ=1),A.svg&&(A.x-=A.xOrigin-(A.xOrigin*T+A.yOrigin*E),A.y-=A.yOrigin-(A.xOrigin*w+A.yOrigin*S))),90<Math.abs(A.skewX)&&Math.abs(A.skewX)<270&&(k?(A.scaleX*=-1,A.skewX+=A.rotation<=0?180:-180,A.rotation+=A.rotation<=0?180:-180):(A.scaleY*=-1,A.skewX+=A.skewX<=0?180:-180)),A.zOrigin=O,A)A[n]<2e-5&&-2e-5<A[n]&&(A[n]=0);return r&&(e._gsTransform=A).svg&&(X&&e.style[H]?R.delayedCall(.001,function(){Qe(e.style,H)}):!X&&e.getAttribute("transform")&&R.delayedCall(.001,function(){e.removeAttribute("transform")})),A},Ze=t.set3DTransformRatio=t.setTransformRatio=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,p,d,m,_,g=this.data,v=this.t.style,y=g.rotation,b=g.rotationX,x=g.rotationY,T=g.scaleX,w=g.scaleY,E=g.scaleZ,S=g.x,A=g.y,k=g.z,O=g.svg,P=g.perspective,R=g.force3D,C=g.skewY,M=g.skewX;if(C&&(M+=C,y+=C),((1!==e&&0!==e||"auto"!==R||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&R||k||P||x||b||1!==E)&&(!X||!O)&&Y){if(K&&(T<(p=1e-4)&&-p<T&&(T=E=2e-5),w<p&&-p<w&&(w=E=2e-5),!P||g.z||g.rotationX||g.rotationY||(P=0)),y||M)y*=I,_=r=Math.cos(y),m=o=Math.sin(y),M&&(y-=M*I,_=Math.cos(y),m=Math.sin(y),"simple"===g.skewType&&(t=Math.tan((M-C)*I),_*=t=Math.sqrt(1+t*t),m*=t,g.skewY&&(t=Math.tan(C*I),r*=t=Math.sqrt(1+t*t),o*=t))),i=-m,a=_;else{if(!(x||b||1!==E||P||O))return void(v[H]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) translate3d(":"translate3d(")+S+"px,"+A+"px,"+k+"px)"+(1!==T||1!==w?" scale("+T+","+w+")":""));r=a=1,i=o=0}e=1,n=s=l=u=h=R=0,c=P?-1/P:0,f=g.zOrigin,p=1e-6,(y=x*I)&&(_=Math.cos(y),h=c*(l=-(m=Math.sin(y))),n=r*m,s=o*m,c*=e=_,r*=_,o*=_),(y=b*I)&&(t=i*(_=Math.cos(y))+n*(m=Math.sin(y)),d=a*_+s*m,u=e*m,R=c*m,n=i*-m+n*_,s=a*-m+s*_,e*=_,c*=_,i=t,a=d),1!==E&&(n*=E,s*=E,e*=E,c*=E),1!==w&&(i*=w,a*=w,u*=w,R*=w),1!==T&&(r*=T,o*=T,l*=T,h*=T),(f||O)&&(f&&(S+=n*-f,A+=s*-f,k+=e*-f+f),O&&(S+=g.xOrigin-(g.xOrigin*r+g.yOrigin*i)+g.xOffset,A+=g.yOrigin-(g.xOrigin*o+g.yOrigin*a)+g.yOffset),S<p&&-p<S&&(S="0"),A<p&&-p<A&&(A="0"),k<p&&-p<k&&(k=0)),m=(m=g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix3d(":"matrix3d(")+((r<p&&-p<r?"0":r)+","+(o<p&&-p<o?"0":o)+","+(l<p&&-p<l?"0":l))+(","+(h<p&&-p<h?"0":h)+","+(i<p&&-p<i?"0":i)+","+(a<p&&-p<a?"0":a)),b||x||1!==E?m=m+","+(u<p&&-p<u?"0":u)+","+(R<p&&-p<R?"0":R)+","+(n<p&&-p<n?"0":n)+","+(s<p&&-p<s?"0":s)+","+(e<p&&-p<e?"0":e)+","+(c<p&&-p<c?"0":c)+",":m+=",0,0,0,0,1,0,",v[H]=m+=S+","+A+","+k+","+(P?1+-k/P:1)+")"}else y||M||O?(y*=I,_=M*I,r=Math.cos(y)*T,o=Math.sin(y)*T,i=Math.sin(y-_)*-w,a=Math.cos(y-_)*w,_&&"simple"===g.skewType&&(t=Math.tan(_-C*I),i*=t=Math.sqrt(1+t*t),a*=t,C&&(t=Math.tan(C*I),r*=t=Math.sqrt(1+t*t),o*=t)),O&&(S+=g.xOrigin-(g.xOrigin*r+g.yOrigin*i)+g.xOffset,A+=g.yOrigin-(g.xOrigin*o+g.yOrigin*a)+g.yOffset,X&&(g.xPercent||g.yPercent)&&(p=this.t.getBBox(),S+=.01*g.xPercent*p.width,A+=.01*g.yPercent*p.height),S<(p=1e-6)&&-p<S&&(S=0),A<p&&-p<A&&(A=0)),m=(1e5*r|0)/1e5+","+(1e5*o|0)/1e5+","+(1e5*i|0)/1e5+","+(1e5*a|0)/1e5+","+S+","+A+")",O&&X?this.t.setAttribute("transform","matrix("+m):v[H]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix(":"matrix(")+m):v[H]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix(":"matrix(")+T+",0,0,"+w+","+S+","+A+")"},Qe=((e=He.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,o("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,o,a){if(i._lastParsedTransform!==a){var s,l,u,h,c,f,p,d,m=(i._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0,_=(m&&(a.scale=m(P,e)),e._gsTransform),g=e.style,v=Ue.length,y=a,b={},x="transformOrigin",T=Je(e,k,!0,y.parseTransform),w=y.transform&&("function"==typeof y.transform?y.transform(P,O):y.transform);if(T.skewType=y.skewType||T.skewType||C.defaultSkewType,i._transform=T,"rotationZ"in y&&(y.rotation=y.rotationZ),w&&"string"==typeof w&&H)(l=F.style)[H]=w,l.display="block",l.position="absolute",-1!==w.indexOf("%")&&(l.width=z(e,"width"),l.height=z(e,"height")),L.body.appendChild(F),s=Je(F,null,!1),"simple"===T.skewType&&(s.scaleY*=Math.cos(s.skewX*I)),T.svg&&(c=T.xOrigin,f=T.yOrigin,s.x-=T.xOffset,s.y-=T.yOffset,(y.transformOrigin||y.svgOrigin)&&(w={},Ie(e,B(y.transformOrigin),w,y.svgOrigin,y.smoothOrigin,!0),c=w.xOrigin,f=w.yOrigin,s.x-=w.xOffset-T.xOffset,s.y-=w.yOffset-T.yOffset),(c||f)&&(p=De(F,!0),s.x-=c-(c*p[0]+f*p[2]),s.y-=f-(c*p[1]+f*p[3]))),L.body.removeChild(F),s.perspective||(s.perspective=T.perspective),null!=y.xPercent&&(s.xPercent=E(y.xPercent,T.xPercent)),null!=y.yPercent&&(s.yPercent=E(y.yPercent,T.yPercent));else if("object"==typeof y){if(s={scaleX:E(null!=y.scaleX?y.scaleX:y.scale,T.scaleX),scaleY:E(null!=y.scaleY?y.scaleY:y.scale,T.scaleY),scaleZ:E(y.scaleZ,T.scaleZ),x:E(y.x,T.x),y:E(y.y,T.y),z:E(y.z,T.z),xPercent:E(y.xPercent,T.xPercent),yPercent:E(y.yPercent,T.yPercent),perspective:E(y.transformPerspective,T.perspective)},null!=(h=y.directionalRotation))if("object"==typeof h)for(l in h)y[l]=h[l];else y.rotation=h;"string"==typeof y.x&&-1!==y.x.indexOf("%")&&(s.x=0,s.xPercent=E(y.x,T.xPercent)),"string"==typeof y.y&&-1!==y.y.indexOf("%")&&(s.y=0,s.yPercent=E(y.y,T.yPercent)),s.rotation=S("rotation"in y?y.rotation:"shortRotation"in y?y.shortRotation+"_short":T.rotation,T.rotation,"rotation",b),Y&&(s.rotationX=S("rotationX"in y?y.rotationX:"shortRotationX"in y?y.shortRotationX+"_short":T.rotationX||0,T.rotationX,"rotationX",b),s.rotationY=S("rotationY"in y?y.rotationY:"shortRotationY"in y?y.shortRotationY+"_short":T.rotationY||0,T.rotationY,"rotationY",b)),s.skewX=S(y.skewX,T.skewX),s.skewY=S(y.skewY,T.skewY)}for(Y&&null!=y.force3D&&(T.force3D=y.force3D,u=!0),(p=T.force3D||T.z||T.rotationX||T.rotationY||s.z||s.rotationX||s.rotationY||s.perspective)||null==y.scale||(s.scaleZ=1);-1<--v;)(1e-6<(w=s[d=Ue[v]]-T[d])||w<-1e-6||null!=y[d]||null!=me[d])&&(u=!0,n=new U(T,d,T[d],w,n),d in b&&(n.e=b[d]),n.xs0=0,n.plugin=o,i._overwriteProps.push(n.n));w="function"==typeof y.transformOrigin?y.transformOrigin(P,O):y.transformOrigin,T.svg&&(w||y.svgOrigin)&&(c=T.xOffset,f=T.yOffset,Ie(e,B(w),s,y.svgOrigin,y.smoothOrigin),n=Pe(T,"xOrigin",(_?T:s).xOrigin,s.xOrigin,n,x),n=Pe(T,"yOrigin",(_?T:s).yOrigin,s.yOrigin,n,x),c===T.xOffset&&f===T.yOffset||(n=Pe(T,"xOffset",_?c:T.xOffset,T.xOffset,n,x),n=Pe(T,"yOffset",_?f:T.yOffset,T.yOffset,n,x)),w="0px 0px"),(w||Y&&p&&T.zOrigin)&&(H?(u=!0,d=Xe,w=w||(w=(z(e,d,k,!1,"50% 50%")+"").split(" "))[0]+" "+w[1]+" "+T.zOrigin+"px",w+="",(n=new U(g,d,0,0,n,-1,x)).b=g[d],n.plugin=o,Y?(l=T.zOrigin,w=w.split(" "),T.zOrigin=(2<w.length?parseFloat(w[2]):l)||0,n.xs0=n.e=w[0]+" "+(w[1]||"50%")+" 0px",(n=new U(T,"zOrigin",0,0,n,-1,n.n)).b=l,n.xs0=n.e=T.zOrigin):n.xs0=n.e=w):B(w+"",T)),u&&(i._transformType=T.svg&&X||!p&&3!==this._transformType?2:3),m&&(a.scale=m)}return n},allowFunc:!0,prefix:!0}),o("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),o("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:Ae("inset(0% 0% 0% 0%)",!1,!0)}),o("borderRadius",{defaultValue:"0px",parser:function(e,t,r,i,n,o){t=this.format(t);for(var a,s,l,u,h,c,f,p,d,m,_=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],g=e.style,v=parseFloat(e.offsetWidth),y=parseFloat(e.offsetHeight),b=t.split(" "),x=0;x<_.length;x++)this.p.indexOf("border")&&(_[x]=T(_[x])),-1!==(l=s=z(e,_[x],k,!1,"0px")).indexOf(" ")&&(l=(s=l.split(" "))[0],s=s[1]),u=a=b[x],d=parseFloat(l),m=l.substr((d+"").length),(c=""===(c=(f="="===u.charAt(1))?(h=parseInt(u.charAt(0)+"1",10),u=u.substr(2),h*=parseFloat(u),u.substr((h+"").length-(h<0?1:0))||""):(h=parseFloat(u),u.substr((h+"").length)))?W[r]||m:c)!==m&&(p=w(e,"borderLeft",d,m),d=w(e,"borderTop",d,m),s="%"===c?(l=p/v*100+"%",d/y*100+"%"):"em"===c?(l=p/(m=w(e,"borderLeft",1,"em"))+"em",d/m+"em"):(l=p+"px",d+"px"),f&&(u=parseFloat(l)+h+c,a=parseFloat(s)+h+c)),n=Re(g,_[x],l+" "+s,u+" "+a,!1,"0px",n);return n},prefix:!0,formatter:Ae("0px 0px 0px 0px",!1,!0)}),o("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,r,i,n,o){return Re(e.style,r,this.format(z(e,r,k,!1,"0px 0px")),this.format(t),!1,"0px",n)},prefix:!0,formatter:Ae("0px 0px",!1,!0)}),o("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,r,i,n,o){var a,s,l,u,h,c="background-position",f=k||d(e),p=this.format((f?x?f.getPropertyValue(c+"-x")+" "+f.getPropertyValue(c+"-y"):f.getPropertyValue(c):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),f=this.format(t);if(-1!==p.indexOf("%")!=(-1!==f.indexOf("%"))&&f.split(",").length<2&&(c=z(e,"backgroundImage").replace(he,""))&&"none"!==c){for(a=p.split(" "),s=f.split(" "),ge.setAttribute("src",c),l=2;-1<--l;)(u=-1!==(p=a[l]).indexOf("%"))!=(-1!==s[l].indexOf("%"))&&(h=0===l?e.offsetWidth-ge.width:e.offsetHeight-ge.height,a[l]=u?parseFloat(p)/100*h+"px":parseFloat(p)/h*100+"%");p=a.join(" ")}return this.parseComplex(e.style,p,f,n,o)},formatter:B}),o("backgroundSize",{defaultValue:"0 0",formatter:function(e){return"co"===(e+="").substr(0,2)?e:B(-1===e.indexOf(" ")?e+" "+e:e)}}),o("perspective",{defaultValue:"0px",prefix:!0}),o("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),o("transformStyle",{prefix:!0}),o("backfaceVisibility",{prefix:!0}),o("userSelect",{prefix:!0}),o("margin",{parser:ke("marginTop,marginRight,marginBottom,marginLeft")}),o("padding",{parser:ke("paddingTop,paddingRight,paddingBottom,paddingLeft")}),o("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,r,i,n,o){var a,s;return t=x<9?(a=e.currentStyle,s=x<8?" ":",",a="rect("+a.clipTop+s+a.clipRight+s+a.clipBottom+s+a.clipLeft+")",this.format(t).split(",").join(s)):(a=this.format(z(e,this.p,k,!1,this.dflt)),this.format(t)),this.parseComplex(e.style,a,t,n,o)}}),o("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),o("autoRound,strictUnits",{parser:function(e,t,r,i,n){return n}}),o("border",{defaultValue:"0px solid #000",parser:function(e,t,r,i,n,o){var a=z(e,"borderTopWidth",k,!1,"0px"),t=this.format(t).split(" "),s=t[0].replace(ie,"");return"px"!==s&&(a=parseFloat(a)/w(e,"borderTopWidth",1,s)+s),this.parseComplex(e.style,this.format(a+" "+z(e,"borderTopStyle",k,!1,"solid")+" "+z(e,"borderTopColor",k,!1,"#000")),t.join(" "),n,o)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(j)||["#000"])[0]}}),o("borderWidth",{parser:ke("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),o("float,cssFloat,styleFloat",{parser:function(e,t,r,i,n,o){var e=e.style,a="cssFloat"in e?"cssFloat":"styleFloat";return new U(e,a,0,0,n,-1,r,!1,0,e[a],t)}}),o("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,r,i,n,o){var a=parseFloat(z(e,"opacity",k,!1,"1")),s=e.style,l="autoAlpha"===r;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+a),l&&1===a&&"hidden"===z(e,"visibility",k)&&0!==t&&(a=0),N?n=new U(s,"opacity",a,t-a,n):((n=new U(s,"opacity",100*a,100*(t-a),n)).xn1=l?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=o,n.setRatio=Fe),l&&((n=new U(s,"visibility",0,0,n,-1,null,!1,0,0!==a?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",i._overwriteProps.push(n.n),i._overwriteProps.push(r)),n}}),function(e,t){t&&(e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(le,"-$1").toLowerCase())):e.removeAttribute(t))});o("className",{parser:function(e,t,r,i,n,o,a){var s,l,u,h=e.getAttribute("class")||"",c=e.style.cssText;if((n=i._classNamePT=new U(e,r,0,0,n,2)).setRatio=Ne,n.pr=-11,p=!0,n.b=h,r=f(e,k),s=e._gsClassPT){for(l={},u=s.data;u;)l[u.p]=1,u=u._next;s.setRatio(1)}return(e._gsClassPT=n).e="="!==t.charAt(1)?t:h.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",n.e),s=g(e,r,f(e),a,l),e.setAttribute("class",h),n.data=s.firstMPT,e.style.cssText!==c&&(e.style.cssText=c),n=n.xfirst=i.parse(e,s.difs,n,o)}});for(o("clearProps",{parser:function(e,t,r,i,n){return(n=new U(e,r,0,0,n,2)).setRatio=ze,n.e=t,n.pr=-10,n.data=i._tween,p=!0,n}}),e="bezier,throwProps,physicsProps,physics2D".split(","),G=e.length;G--;)je(e[G]);(e=C.prototype)._firstPT=e._lastParsedTransform=e._transform=null,e._onInitTween=function(e,t,r,i){if(!e.nodeType)return!1;this._target=O=e,this._tween=r,this._vars=t,P=i,q=t.autoRound,p=!1,W=t.suffixMap||C.suffixMap,k=d(e),y=this._overwriteProps;var n,o,a,s,l,u,i=e.style;if(!b||""!==i.zIndex||"auto"!==(u=z(e,"zIndex",k))&&""!==u||this._addLazySet(i,"zIndex",0),"string"==typeof t&&(a=i.cssText,u=f(e,k),i.cssText=a+";"+t,u=g(e,u,f(e)).difs,!N&&oe.test(t)&&(u.opacity=parseFloat(RegExp.$1)),t=u,i.cssText=a),t.className?this._firstPT=n=m.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=n=this.parse(e,t,null),this._transformType){for(u=3===this._transformType,H?V&&(b=!0,""!==i.zIndex||"auto"!==(t=z(e,"zIndex",k))&&""!==t||this._addLazySet(i,"zIndex",0),J&&this._addLazySet(i,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(u?"visible":"hidden"))):i.zoom=1,o=n;o&&o._next;)o=o._next;t=new U(e,"transform",0,0,null,2),this._linkCSSP(t,null,o),t.setRatio=H?Ze:Le,t.data=this._transform||Je(e,k,!0),t.tween=r,t.pr=-1,y.pop()}if(p){for(;n;){for(l=n._next,o=a;o&&o.pr>n.pr;)o=o._next;(n._prev=o?o._prev:s)?n._prev._next=n:a=n,(n._next=o)?o._prev=n:s=n,n=l}this._firstPT=a}return!0},e.parse=function(e,t,r,i){var n,o,a,s,l,u,h,c,f=e.style;for(n in t){if(l=t[n],s=m[n],"function"!=typeof l||s&&s.allowFunc||(l=l(P,O)),s)r=s.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",d(e).getPropertyValue(n)+"",l+"",n,!1,n);continue}s=z(e,n,k)+"",h="string"==typeof l,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||h&&se.test(l)?(h||(l=(3<(l=Se(l)).length?"rgba(":"rgb(")+l.join(",")+")"),r=Re(f,n,s,l,!0,"transparent",r,0,i)):h&&de.test(l)?r=Re(f,n,s,l,!0,null,r,0,i):(u=(o=parseFloat(s))||0===o?s.substr((o+"").length):"",""!==s&&"auto"!==s||(u="width"===n||"height"===n?(o=function(e,t,r){if("svg"===(e.nodeName+"").toLowerCase())return(r||d(e))[t]||0;if(e.getCTM&&Ve(e))return e.getBBox()[t]||0;var i=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),n=Te[t],o=n.length;for(r=r||d(e);-1<--o;)i=(i-=parseFloat(z(e,"padding"+n[o],r,!0))||0)-(parseFloat(z(e,"border"+n[o]+"Width",r,!0))||0);return i}(e,n,k),"px"):"left"===n||"top"===n?(o=xe(e,n,k),"px"):(o="opacity"!==n?0:1,"")),""===(h=(c=h&&"="===l.charAt(1))?(a=parseInt(l.charAt(0)+"1",10),l=l.substr(2),a*=parseFloat(l),l.replace(ie,"")):(a=parseFloat(l),h?l.replace(ie,""):""))&&(h=n in W?W[n]:u),l=a||0===a?(c?a+o:a)+h:t[n],u===h||""===h&&"lineHeight"!==n||(a||0===a)&&o&&(o=w(e,n,o,u),"%"===h?(o/=w(e,n,100,"%")/100,!0!==t.strictUnits&&(s=o+"%")):"em"===h||"rem"===h||"vw"===h||"vh"===h?o/=w(e,n,1,h):"px"!==h&&(a=w(e,n,a,h),h="px"),c&&(a||0===a)&&(l=a+o+h)),c&&(a+=o),!o&&0!==o||!a&&0!==a?void 0!==f[n]&&(l||l+""!="NaN"&&null!=l)?(r=new U(f,n,a||o||0,0,r,-1,n,!1,0,s,l)).xs0="none"!==l||"display"!==n&&-1===n.indexOf("Style")?l:s:_("invalid "+n+" tween value: "+t[n]):(r=new U(f,n,o,a-o,r,0,n,!1!==q&&("px"===h||"zIndex"===n),0,s,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||Je(this._target,k,!0),this._transformType=this._transform.svg&&X||!e&&3!==this._transformType?2:3};function $e(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}function et(e,t,r){var i,n,o,a;if(e.slice)for(n=e.length;-1<--n;)et(e[n],t,r);else for(n=(i=e.childNodes).length;-1<--n;)a=(o=i[n]).type,o.style&&(t.push(f(o)),r&&r.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||et(o,t,r)}e._addLazySet=function(e,t,r){e=this._firstPT=new U(e,t,0,0,this._firstPT,2);e.e=r,e.setRatio=$e,e.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)};return C.cascadeTo=function(e,t,r){var i,n,o,a,s=R.to(e,t,r),l=[s],u=[],h=[],c=[],f=R._internals.reservedProps;for(e=s._targets||s.target,et(e,u,c),s.render(t,!0,!0),et(e,h),s.render(0,!0,!0),s._enabled(!0),i=c.length;-1<--i;)if((n=g(c[i],u[i],h[i])).firstMPT){for(o in n=n.difs,r)f[o]&&(n[o]=r[o]);for(o in a={},n)a[o]=u[i][o];l.push(R.fromTo(c[i],t,a,n))}return l},a.activate([C]),C},!0),(e=(e=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(e,t,r){return this._tween=r,!0}})).prototype)._onInitAllProps=function(){var e,t,r,i,n=this._tween,o=n.vars.roundProps,a={},s=n._propLookup.roundProps;if("object"!=typeof o||o.push)for(r=(o="string"==typeof o?o.split(","):o).length;-1<--r;)a[o[r]]=Math.round;else for(i in o)a[i]=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}}(o[i]);for(i in a)for(e=n._firstPT;e;){if(t=e._next,e.pg)e.t._mod(a);else if(e.n===i)if(2===e.f&&e.t)for(var l=e.t._firstPT,u=a[i];l;)l.f||l.blob||(l.m=u||Math.round),l=l._next;else this._add(e.t,i,e.s,e.c,a[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},e._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,o;if("function"!=typeof e.setAttribute)return!1;for(n in t)"function"==typeof(o=t[n])&&(o=o(i,e)),this._addTween(e,"setAttribute",e.getAttribute(n)+"",o+"",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,o,a,s,l,u=!0===t.useRadians?2*Math.PI:360;for(n in t)"useRadians"!==n&&(o=(l=((s="function"==typeof(s=t[n])?s(i,e):s)+"").split("_"))[0],a=parseFloat("function"!=typeof e[n]?e[n]:e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]()),s=(s=this.finals[n]="string"==typeof o&&"="===o.charAt(1)?a+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-a,l.length&&(-1!==(o=l.join("_")).indexOf("short")&&(s%=u)!==s%(u/2)&&(s=s<0?s+u:s-u),-1!==o.indexOf("_cw")&&s<0?s=(s+9999999999*u)%u-(s/u|0)*u:-1!==o.indexOf("ccw")&&0<s&&(s=(s-9999999999*u)%u-(s/u|0)*u)),(1e-6<s||s<-1e-6)&&(this._addTween(e,n,a,a+s,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(_){function e(e,t){var r=(e=h("easing."+e,function(){},!0)).prototype=new _;return r.constructor=e,r.getRatio=t,e}function t(e,t,r,i,n){return t=h("easing."+e,{easeOut:new t,easeIn:new r,easeInOut:new i},!0),c(t,e),t}function g(e,t,r){this.t=e,this.v=t,r&&(((this.next=r).prev=this).c=r.v-t,this.gap=r.t-e)}function r(e,t){var r=h("easing."+e,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0);return(e=r.prototype=new _).constructor=r,e.getRatio=t,e.config=function(e){return new r(e)},r}var i,n,o,a=_gsScope.GreenSockGlobals||_gsScope,s=a.com.greensock,l=2*Math.PI,u=Math.PI/2,h=s._class,c=_.register||function(){},s=t("Back",r("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),r("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),r("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)})),f=h("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),p=f.prototype=new _;return p.constructor=f,p.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},f.ease=new f(.7,.7),p.config=f.config=function(e,t,r){return new f(e,t,r)},(p=(i=h("easing.SteppedEase",function(e,t){this._p1=1/(e=e||1),this._p2=e+(t?0:1),this._p3=t?1:0},!0)).prototype=new _).constructor=i,p.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),((this._p2*e|0)+this._p3)*this._p1},p.config=i.config=function(e,t){return new i(e,t)},(p=(n=h("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 _).constructor=n,p.getRatio=function(e){return this._ease&&(e=this._ease.getRatio(e)),(this._p3*Math.exp(this._p1*e)-this._p3)/this._p2},p.config=n.config=function(e,t,r){return new n(e,t,r)},(p=(o=h("easing.RoughEase",function(e){for(var t,r,i,n,o,a,s=(e=e||{}).taper||"none",l=[],u=0,h=0|(e.points||20),c=h,f=!1!==e.randomize,p=!0===e.clamp,d=e.template instanceof _?e.template:null,m="number"==typeof e.strength?.4*e.strength:.4;-1<--c;)t=f?Math.random():1/h*c,r=d?d.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:c%2?r+=.5*i:r-=.5*i,p&&(1<r?r=1:r<0&&(r=0)),l[u++]={x:t,y:r};for(l.sort(function(e,t){return e.x-t.x}),a=new g(1,1,null),c=h;-1<--c;)a=new g((o=l[c]).x,o.y,a);this._prev=new g(0,0,0!==a.t?a:a.next)},!0)).prototype=new _).constructor=o,p.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},p.config=function(e){return new o(e)},o.ease=new o,t("Bounce",e("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}),e("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)}),e("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})),t("Circ",e("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),e("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),e("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),t("Elastic",(p=function(e,t,r){var i=h("easing."+e,function(e,t){this._p1=1<=e?e:1,this._p2=(t||r)/(e<1?e:1),this._p3=this._p2/l*(Math.asin(1/this._p1)||0),this._p2=l/this._p2},!0),e=i.prototype=new _;return e.constructor=i,e.getRatio=t,e.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),p("ElasticIn",function(e){return-(this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2))},.3),p("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--e)*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),t("Expo",e("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),e("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),e("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),t("Sine",e("SineOut",function(e){return Math.sin(e*u)}),e("SineIn",function(e){return 1-Math.cos(e*u)}),e("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),h("easing.EaseLookup",{find:function(e){return _.map[e]}},!0),c(a.SlowMo,"SlowMo","ease,"),c(o,"RoughEase","ease,"),c(i,"SteppedEase","ease,"),s},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),!function(m,f){"use strict";var p={},d=m.document,_=m.GreenSockGlobals=m.GreenSockGlobals||m,e=_[f];if(e)"undefined"!=typeof module&&module.exports&&(module.exports=e);else{var g,t,F,N=function(e){for(var t=e.split("."),r=_,i=0;i<t.length;i++)r[t[i]]=r=r[t[i]]||{};return r},c=N("com.greensock"),v=1e-8,z=function(e){for(var t=[],r=e.length,i=0;i!==r;t.push(e[i++]));return t},B=function(){},y=(t=Object.prototype.toString,F=t.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&t.call(e)===F)}),b={},j=function(s,l,u,h){this.sc=b[s]?b[s].sc:[],(b[s]=this).gsClass=null,this.func=u;var c=[];this.check=function(e){for(var t,r,i,n,o=l.length,a=o;-1<--o;)(t=b[l[o]]||new j(l[o],[])).gsClass?(c[o]=t.gsClass,a--):e&&t.sc.push(this);if(0===a&&u){if(i=(r=("com.greensock."+s).split(".")).pop(),n=N(r.join("."))[i]=this.gsClass=u.apply(u,c),h)if(_[i]=p[i]=n,"undefined"!=typeof module&&module.exports)if(s===f)for(o in module.exports=p[f]=n,p)n[o]=p[o];else p[f]&&(p[f][i]=n);else"function"==typeof define&&define.amd&&define((m.GreenSockAMDPath?m.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return n});for(o=0;o<this.sc.length;o++)this.sc[o].check()}},this.check(!0)},i=m._gsDefine=function(e,t,r,i){return new j(e,t,r,i)},x=c._class=function(e,t,r){return t=t||function(){},i(e,[],function(){return t},r),t},U=(i.globals=_,[0,0,1,1]),T=x("easing.Ease",function(e,t,r,i){this._func=e,this._type=r||0,this._power=i||0,this._params=t?U.concat(t):U},!0),w=T.map={},r=T.register=function(e,t,r,i){for(var n,o,a,s,l=t.split(","),u=l.length,h=(r||"easeIn,easeOut,easeInOut").split(",");-1<--u;)for(o=l[u],n=i?x("easing."+o,null,!0):c.easing[o]||{},a=h.length;-1<--a;)s=h[a],w[o+"."+s]=w[s+o]=n[s]=e.getRatio?e:e[s]||new e},n=T.prototype;for(n._calcEnd=!1,n.getRatio=function(e){var t,r,i;return this._func?(this._params[0]=e,this._func.apply(null,this._params)):(i=1===(t=this._type)?1-e:2===t?e:e<.5?2*e:2*(1-e),1===(r=this._power)?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)},a=(o=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--a;)n=o[a]+",Power"+a,r(new T(null,null,1,a),n,"easeOut",!0),r(new T(null,null,2,a),n,"easeIn"+(0===a?",easeNone":"")),r(new T(null,null,3,a),n,"easeInOut");w.linear=c.easing.Linear.easeIn,w.swing=c.easing.Quad.easeInOut;for(var o,G=x("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this}),E=((n=G.prototype).addEventListener=function(e,t,r,i,n){n=n||0;var o,a,s=this._listeners[e],l=0;for(this!==O||g||O.wake(),null==s&&(this._listeners[e]=s=[]),a=s.length;-1<--a;)(o=s[a]).c===t&&o.s===r?s.splice(a,1):0===l&&o.pr<n&&(l=a+1);s.splice(l,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))},m.requestAnimationFrame),S=m.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},k=A(),a=(o=["ms","moz","webkit","o"]).length;-1<--a&&!E;)E=m[o[a]+"RequestAnimationFrame"],S=m[o[a]+"CancelAnimationFrame"]||m[o[a]+"CancelRequestAnimationFrame"];x("Ticker",function(e,t){var i,n,o,a,s,l=this,u=A(),r=!(!1===t||!E)&&"auto",h=500,c=33,f="tick",p=function(e){var t,r=A()-k;h<r&&(u+=r-c),k+=r,l.time=(k-u)/1e3,r=l.time-s,(!i||0<r||!0===e)&&(l.frame++,s+=r+(a<=r?.004:a-r),t=!0),!0!==e&&(o=n(p)),t&&l.dispatchEvent(f)};G.call(l),l.time=l.frame=0,l.tick=function(){p(!0)},l.lagSmoothing=function(e,t){if(!arguments.length)return h<1e8;h=e||1e8,c=Math.min(t,h,0)},l.sleep=function(){null!=o&&((r&&S?S:clearTimeout)(o),n=B,o=null,l===O&&(g=!1))},l.wake=function(e){null!==o?l.sleep():e?u+=-k+(k=A()):10<l.frame&&(k=A()-h+5),n=0===i?B:r&&E?E:function(e){return setTimeout(e,1e3*(s-l.time)+1|0)},l===O&&(g=!0),p(2)},l.fps=function(e){if(!arguments.length)return i;a=1/((i=e)||60),s=this.time+a,l.wake()},l.useRAF=function(e){if(!arguments.length)return r;l.sleep(),r=e,l.fps(i)},l.fps(e),setTimeout(function(){"auto"===r&&l.frame<5&&"hidden"!==(d||{}).visibilityState&&l.useRAF(!1)},1500)}),(n=c.Ticker.prototype=new c.events.EventDispatcher).constructor=c.Ticker;var s=x("core.Animation",function(e,t){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,h&&(g||O.wake(),(e=this.vars.useFrames?u:h).add(this,e._time),this.vars.paused&&this.paused(!0))}),O=s.ticker=new c.Ticker,X=((n=s.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,function(){g&&2e3<A()-k&&("hidden"!==(d||{}).visibilityState||!O.lagSmoothing())&&O.wake();var e=setTimeout(X,2e3);e.unref&&e.unref()}),e=(X(),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=this._timeline,t=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(e=e.rawTime(!0))>=t&&e<t+this.totalDuration()/this._timeScale-v},n._enabled=function(e,t){return g||O.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"]=y(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(g||O.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||(C.length&&I(),this.render(e,t,!1),C.length&&I())}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||v,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){var t,r,i;return arguments.length?(t=this._timeline,e!=this._paused&&t&&(g||e||O.wake(),i=(r=t.rawTime())-this._pauseTime,!e&&t.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=e?r:null,this._paused=e,this._active=this.isActive(),!e&&0!=i&&this._initted&&this.duration()&&(r=t.smoothChildTiming?this._totalTime:(r-this._startTime)/this._timeScale,this.render(r,r===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this):this._paused},x("core.SimpleTimeline",function(e){s.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0})),P=((n=e.prototype=new s).constructor=e,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,o;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(o=e._startTime;n&&n._startTime>o;)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 g||O.wake(),this._totalTime},x("TweenLite",function(e,t,r){if(s.call(this,t,r),this.render=P.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"==typeof e&&P.selector(e)||e;var i,n,o,r=e.jquery||e.length&&e!==m&&e[0]&&(e[0]===m||e[0].nodeType&&e[0].style&&!e.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?ee[P.defaultOverwrite]:"number"==typeof a?a>>0:ee[a],(r||e instanceof Array||e.push&&y(e))&&"number"!=typeof e[0])for(this._targets=o=z(e),this._propLookup=[],this._siblings=[],i=0;i<o.length;i++)(n=o[i])?"string"==typeof n?"string"==typeof(n=o[i--]=P.selector(n))&&o.splice(i+1,1):n.length&&n!==m&&n[0]&&(n[0]===m||n[0].nodeType&&n[0].style&&!n.nodeType)?(o.splice(i--,1),this._targets=o=o.concat(z(n))):(this._siblings[i]=D(n,this,!1),1===a&&1<this._siblings[i].length&&ie(n,this,null,1,this._siblings[i])):o.splice(i--,1);else this._propLookup={},this._siblings=D(e,this,!1),1===a&&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=-v,this.render(Math.min(0,-this._delay)))},!0)),R=function(e){return e&&e.length&&e!==m&&e[0]&&(e[0]===m||e[0].nodeType&&e[0].style&&!e.nodeType)},C=((n=P.prototype=new s).constructor=P,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,P.version="2.1.3",P.defaultEase=n._ease=new T(null,null,1,1),P.defaultOverwrite="auto",P.ticker=O,P.autoSleep=120,P.lagSmoothing=function(e,t){O.lagSmoothing(e,t)},P.selector=m.$||m.jQuery||function(e){var t=m.$||m.jQuery;return t?(P.selector=t)(e):(d=d||m.document)?d.querySelectorAll?d.querySelectorAll(e):d.getElementById("#"===e.charAt(0)?e.substr(1):e):e},[]),H={},Y=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,W=/[\+-]=-?[\.\d]/,q=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},V=function(e){return(1e3*e|0)/1e3+""},K=function(e,t,r,i){var n,o,a,s,l,u,h=[],c=0,f="",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(Y)||[],o=t.match(Y)||[],i&&(i._next=null,i.blob=1,h._firstPT=h._applyPT=i),s=o.length,a=0;a<s;a++)u=o[a],f+=(l=t.substr(c,t.indexOf(u,c)-c))||!a?l:",",c+=l.length,p?p=(p+1)%5:"rgba("===l.substr(-5)&&(p=1),u===n[a]||n.length<=a?f+=u:(f&&(h.push(f),f=""),l=parseFloat(n[a]),h.push(l),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:l,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-l)||0,f:0,m:p&&p<4?Math.round:V}),c+=u.length;return(f+=t.substr(c))&&h.push(f),h.setRatio=q,W.test(t)&&(h.end=null),h},J=function(e,t,r,i,n,o,a,s,l){"function"==typeof i&&(i=i(l||0,e));var l=typeof e[t],u="function"!=l?"":t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),r="get"!==r?r:u?a?e[u](a):e[u]():e[t],u="string"==typeof i&&"="===i.charAt(1),e={t:e,p:t,s:r,f:"function"==l,pg:0,n:n||t,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:u?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-r||0};if("number"==typeof r&&("number"==typeof i||u)||(a||isNaN(r)||!u&&isNaN(i)||"boolean"==typeof r||"boolean"==typeof i?(e.fp=a,e={t:K(r,u?parseFloat(e.s)+e.c+(e.s+"").replace(/[0-9\-\.]/g,""):i,s||P.defaultStringFilter,e),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||t,pr:0,m:0}):(e.s=parseFloat(r),u||(e.c=parseFloat(i)-e.s||0))),e.c)return(e._next=this._firstPT)&&(e._next._prev=e),this._firstPT=e},Z=P._internals={isArray:y,isSelector:R,lazyTweens:C,blobDif:K},M=P._plugins={},l=Z.tweenLookup={},Q=0,$=Z.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},ee={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},u=s._rootFramesTimeline=new e,h=s._rootTimeline=new e,te=30,I=Z.lazyRender=function(){var e,t,r=C.length;for(H={},e=0;e<r;e++)(t=C[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);C.length=0},D=(h._startTime=O.time,u._startTime=O.frame,h._active=u._active=!0,setTimeout(I,1),s._updateRoot=P.render=function(){var e,t,r;if(C.length&&I(),h.render((O.time-h._startTime)*h._timeScale,!1,!1),u.render((O.frame-u._startTime)*u._timeScale,!1,!1),C.length&&I(),O.frame>=te){for(r in te=O.frame+(parseInt(P.autoSleep,10)||120),l){for(e=(t=l[r].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete l[r]}if((!(r=h._first)||r._paused)&&P.autoSleep&&!u._first&&1===O._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||O.sleep()}}},O.addEventListener("tick",s._updateRoot),function(e,t,r){var i,n,o=e._gsTweenID;if(l[o||(e._gsTweenID=o="t"+Q++)]||(l[o]={target:e,tweens:[]}),t&&((i=l[o].tweens)[n=i.length]=t,r))for(;-1<--n;)i[n]===t&&i.splice(n,1);return l[o].tweens}),re=function(e,t,r,i){var n,o,a=e.vars.onOverwrite;return a&&(n=a(e,t,r,i)),(a=P.onOverwrite)&&(o=a(e,t,r,i)),!1!==n&&!1!==o},ie=function(e,t,r,i,n){var o,a,s;if(1===i||4<=i){for(s=n.length,p=0;p<s;p++)if((a=n[p])!==t)a._gc||a._kill(null,e,t)&&(o=!0);else if(5===i)break}else{for(var l,u=t._startTime+v,h=[],c=0,f=0===t._duration,p=n.length;-1<--p;)(a=n[p])===t||a._gc||a._paused||(a._timeline!==t._timeline?(l=l||ne(t,0,f),0===ne(a,l,f)&&(h[c++]=a)):a._startTime<=u&&a._startTime+a.totalDuration()/a._timeScale>u&&((f||!a._initted)&&u-a._startTime<=2e-8||(h[c++]=a)));for(p=c;-1<--p;)s=(a=h[p])._firstPT,2===i&&a._kill(r,e,t)&&(o=!0),(2!==i||!a._firstPT&&a._initted&&s)&&(2===i||re(a,t))&&a._enabled(!1,!1)&&(o=!0)}return o},ne=function(e,t,r){for(var i=e._timeline,n=i._timeScale,o=e._startTime;i._timeline;){if(o+=i._startTime,n*=i._timeScale,i._paused)return-100;i=i._timeline}return t<(o/=n)?o-t:r&&o===t||!e._initted&&o-t<2e-8?v:(o+=e.totalDuration()/e._timeScale/n)>t+v?0:o-t-v},L=(n._init=function(){var e,t,r,i,n,o,a=this.vars,s=this._overwrittenProps,l=this._duration,u=!!a.immediateRender,h=a.ease,c=this._startAt;if(a.startAt){for(i in c&&(c.render(-1,!0),c.kill()),n={},a.startAt)n[i]=a.startAt[i];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=u&&!1!==a.lazy,n.startAt=n.delay=null,n.onUpdate=a.onUpdate,n.onUpdateParams=a.onUpdateParams,n.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=P.to(this.target||{},0,n),u)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(c)c.render(-1,!0),c.kill(),this._startAt=null;else{for(i in 0!==this._time&&(u=!1),r={},a)$[i]&&"autoCSS"!==i||(r[i]=a[i]);if(r.overwrite=0,r.data="isFromStart",r.lazy=u&&!1!==a.lazy,r.immediateRender=u,this._startAt=P.to(this.target,0,r),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof T?h:"function"==typeof h?new T(h,a.easeParams):w[h]||P.defaultEase:P.defaultEase,a.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,e=0;e<o;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&&P._onPluginEvent("_onInitAllProps",this),!s||this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1),a.runBackwards)for(r=this._firstPT;r;)r.s+=r.c,r.c=-r.c,r=r._next;this._onUpdate=a.onUpdate,this._initted=!0},n._initProps=function(e,t,r,i,n){var o,a,s,l,u,h;if(null==e)return!1;if(H[e._gsTweenID]&&I(),!this.vars.css&&e.style&&e!==m&&e.nodeType&&M.css&&!1!==this.vars.autoCSS){var c,f=this.vars,p=e,d={};for(c in f)$[c]||c in p&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!M[c]||M[c]&&M[c]._autoCSS)||(d[c]=f[c],delete f[c]);f.css=d}for(o in this.vars)if(h=this.vars[o],$[o])h&&(h instanceof Array||h.push&&y(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[o]=h=this._swapSelfInParams(h,this));else if(M[o]&&(l=new M[o])._onInitTween(e,this.vars[o],this,n)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)t[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(s=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else t[o]=J.call(this,e,o,"get",h,o,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)&&(H[e._gsTweenID]=!0),s)},n.render=function(e,t,r){var i,n,o,a,s,l,u,h=this,c=h._time,f=h._duration,p=h._rawPrevTime;if(f-v<=e&&0<=e?(h._totalTime=h._time=f,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1,h._reversed||(i=!0,n="onComplete",r=r||h._timeline.autoRemoveChildren),0!==f||!h._initted&&h.vars.lazy&&!r||(h._startTime===h._timeline._duration&&(e=0),(p<0||e<=0&&-v<=e||p===v&&"isPause"!==h.data)&&p!==e&&(r=!0,v<p&&(n="onReverseComplete")),h._rawPrevTime=a=!t||e||p===e?e:v)):e<v?(h._totalTime=h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==c||0===f&&0<p)&&(n="onReverseComplete",i=h._reversed),-v<e?e=0:e<0&&(h._active=!1,0!==f||!h._initted&&h.vars.lazy&&!r||(0<=p&&(p!==v||"isPause"!==h.data)&&(r=!0),h._rawPrevTime=a=!t||e||p===e?e:v)),(!h._initted||h._startAt&&h._startAt.progress())&&(r=!0)):(h._totalTime=h._time=e,h._easeType?(s=e/f,(1===(l=h._easeType)||3===l&&.5<=s)&&(s=1-s),3===l&&(s*=2),1===(u=h._easePower)?s*=s:2===u?s*=s*s:3===u?s*=s*s*s:4===u&&(s*=s*s*s*s),h.ratio=1===l?1-s:2===l?s:e/f<.5?s/2:1-s/2):h.ratio=h._ease.getRatio(e/f)),h._time!==c||r){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!r&&h._firstPT&&(!1!==h.vars.lazy&&h._duration||h.vars.lazy&&!h._duration))return h._time=h._totalTime=c,h._rawPrevTime=p,C.push(h),void(h._lazy=[e,t]);h._time&&!i?h.ratio=h._ease.getRatio(h._time/f):i&&h._ease._calcEnd&&(h.ratio=h._ease.getRatio(0===h._time?0:1))}for(!1!==h._lazy&&(h._lazy=!1),h._active||!h._paused&&h._time!==c&&0<=e&&(h._active=!0),0===c&&(h._startAt&&(0<=e?h._startAt.render(e,!0,r):n=n||"_dummyGS"),!h.vars.onStart||0===h._time&&0!==f||t||h._callback("onStart")),o=h._firstPT;o;)o.f?o.t[o.p](o.c*h.ratio+o.s):o.t[o.p]=o.c*h.ratio+o.s,o=o._next;h._onUpdate&&(e<0&&h._startAt&&-1e-4!==e&&h._startAt.render(e,!0,r),t||(h._time!==c||i||r)&&h._callback("onUpdate")),!n||h._gc&&!r||(e<0&&h._startAt&&!h._onUpdate&&-1e-4!==e&&h._startAt.render(e,!0,r),i&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[n]&&h._callback(n),0===f&&h._rawPrevTime===v&&a!==v&&(h._rawPrevTime=0))}},n._kill=function(e,t,r){if(null==(e="all"===e?null:e)&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:P.selector(t)||t;var i,n,o,a,s,l,u,h,c,f=r&&this._time&&r._startTime===this._startTime&&this._timeline===r._timeline,p=this._firstPT;if((y(t)||R(t))&&"number"!=typeof t[0])for(i=t.length;-1<--i;)this._kill(e,t[i],r)&&(l=!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(u=e||s,h=e!==n&&"all"!==n&&e!==s&&("object"!=typeof e||!e._tempKill),r&&(P.onOverwrite||this.vars.onOverwrite)){for(o in u)s[o]&&(c=c||[]).push(o);if((c||!e)&&!re(this,r,t,c))return!1}for(o in u)(a=s[o])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(u)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),h&&(n[o]=1);!this._firstPT&&this._initted&&p&&this._enabled(!1,!1)}}return l},n.invalidate=function(){this._notifyPluginsOfEnabled&&P._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?{}:[],s.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-v,this.render(e,!1,!1!==this.vars.lazy)),this},n._enabled=function(e,t){if(g||O.wake(),e&&this._gc){var r,i=this._targets;if(i)for(r=i.length;-1<--r;)this._siblings[r]=D(i[r],this,!0);else this._siblings=D(this.target,this,!0)}return s.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&P._onPluginEvent(e?"_onEnable":"_onDisable",this)},P.to=function(e,t,r){return new P(e,t,r)},P.from=function(e,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new P(e,t,r)},P.fromTo=function(e,t,r,i){return i.startAt=r,i.immediateRender=0!=i.immediateRender&&0!=r.immediateRender,new P(e,t,i)},P.delayedCall=function(e,t,r,i,n){return new P(t,0,{delay:e,onComplete:t,onCompleteParams:r,callbackScope:i,onReverseComplete:t,onReverseCompleteParams:r,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},P.set=function(e,t){return new P(e,0,t)},P.getTweensOf=function(e,t){if(null==e)return[];var r,i,n,o;if(e="string"==typeof e&&P.selector(e)||e,(y(e)||R(e))&&"number"!=typeof e[0]){for(r=e.length,i=[];-1<--r;)i=i.concat(P.getTweensOf(e[r],t));for(r=i.length;-1<--r;)for(o=i[r],n=r;-1<--n;)o===i[n]&&i.splice(r,1)}else if(e._gsTweenID)for(r=(i=D(e).concat()).length;-1<--r;)(i[r]._gc||t&&!i[r].isActive())&&i.splice(r,1);return i||[]},P.killTweensOf=P.killDelayedCallsTo=function(e,t,r){"object"==typeof t&&(r=t,t=!1);for(var i=P.getTweensOf(e,t),n=i.length;-1<--n;)i[n]._kill(r,e)},x("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=L.prototype},!0));if(n=L.prototype,L.version="1.19.0",L.API=2,n._firstPT=null,n._addTween=J,n.setRatio=q,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},P._onPluginEvent=function(e,t){var r,i,n,o,a,s=t._firstPT;if("_onInitAllProps"===e){for(;s;){for(a=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:o=s,s=a}s=t._firstPT=n}for(;s;)s.pg&&"function"==typeof s.t[e]&&s.t[e]()&&(r=!0),s=s._next;return r},L.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===L.API&&(M[(new e[t])._propName]=e[t]);return!0},i.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,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=x("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){L.call(this,r,i),this._overwriteProps=n||[]},!0===e.global),s=a.prototype=new L(r);for(t in(s.constructor=a).API=e.API,o)"function"==typeof e[t]&&(s[o[t]]=e[t]);return a.version=e.version,L.activate([a]),a},o=m._gsQueue){for(a=0;a<o.length;a++)o[a]();for(n in b)b[n].func||m.console.log("GSAP encountered missing dependency: "+n)}g=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),"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){function r(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}var k=1e-8,i=s._internals,O=i.lazyTweens,P=i.lazyRender,l=_gsScope._gsDefine.globals,u=new e(null,null,1,0),i=r.prototype=new t;return i.constructor=r,i.kill()._gc=!1,r.version="2.1.3",i.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)},i.addCallback=function(e,t,r,i){return this.add(s.delayedCall(0,e,r,i),t)},i.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},i.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},i.tweenTo=function(e,t){t=t||{};var r,i,n,o={ease:u,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},a=t.repeat&&l.TweenMax||s;for(i in t)o[i]=t[i];return o.time=this._parseTimeOrLabel(e),r=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,n=new a(this,r,o),o.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},i.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;t=this.tweenTo(t,r);return t.isFromTo=1,t.duration(Math.abs(t.vars.time-e)/this._timeScale||.001)},i.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,o,a,s,l,u,h,c=this,f=c._time,p=c._dirty?c.totalDuration():c._totalDuration,d=c._duration,m=c._totalTime,_=c._startTime,g=c._timeScale,v=c._rawPrevTime,y=c._paused,b=c._cycle;if(f!==c._time&&(e+=c._time-f),p-k<=e&&0<=e)c._locked||(c._totalTime=p,c._cycle=c._repeat),c._reversed||c._hasPausedChild()||(n=!0,a="onComplete",s=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-k<=e||v<0||v===k)&&v!==e&&c._first&&(s=!0,k<v&&(a="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:k,c._yoyo&&1&c._cycle?c._time=e=0:e=(c._time=d)+1e-4;else if(e<k)if(c._locked||(c._totalTime=c._cycle=0),c._time=0,-k<e&&(e=0),(0!==f||0===d&&v!==k&&(0<v||e<0&&0<=v)&&!c._locked)&&(a="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(s=n=!0,a="onReverseComplete"):0<=v&&c._first&&(s=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=d||!t||e||c._rawPrevTime===e?e:k,0===e&&n)for(i=c._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,c._initted||(s=!0)}else 0===d&&v<0&&(s=!0),c._time=c._rawPrevTime=e,c._locked||(c._totalTime=e,0!==c._repeat&&(x=d+c._repeatDelay,c._cycle=c._totalTime/x>>0,c._cycle&&c._cycle===c._totalTime/x&&m<=e&&c._cycle--,c._time=c._totalTime-c._cycle*x,c._yoyo&&1&c._cycle&&(c._time=d-c._time),c._time>d?e=(c._time=d)+1e-4:c._time<0?c._time=e=0:e=c._time));if(c._hasPause&&!c._forcingPlayhead&&!t){if(f<(e=c._time)||c._repeat&&b!==c._cycle)for(i=c._first;i&&i._startTime<=e&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===c._rawPrevTime||(l=i),i=i._next;else for(i=c._last;i&&i._startTime>=e&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(h=c._startTime+(c._reversed?c._duration-l._startTime:l._startTime)/c._timeScale,l._startTime<d&&(c._time=c._rawPrevTime=e=l._startTime,c._totalTime=e+c._cycle*(c._totalDuration+c._repeatDelay)))}if(c._cycle!==b&&!c._locked){var x=c._yoyo&&0!=(1&b),T=x===(c._yoyo&&0!=(1&c._cycle)),w=c._totalTime,E=c._cycle,S=c._rawPrevTime,A=c._time;if(c._totalTime=b*d,c._cycle<b?x=!x:c._totalTime+=d,c._time=f,c._rawPrevTime=0===d?v-1e-4:v,c._cycle=b,c._locked=!0,c.render(f=x?0:d,t,0===d),t||c._gc||c.vars.onRepeat&&(c._cycle=E,c._locked=!1,c._callback("onRepeat")),f!==c._time)return;if(T&&(c._cycle=b,c._locked=!0,c.render(f=x?d+1e-4:-1e-4,!0,!1)),c._locked=!1,c._paused&&!y)return;c._time=A,c._totalTime=w,c._cycle=E,c._rawPrevTime=S}if(c._time!==f&&c._first||r||s||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._totalTime!==m&&0<e&&(c._active=!0),0!==m||!c.vars.onStart||0===c._totalTime&&c._totalDuration||t||c._callback("onStart"),f<=(u=c._time))for(i=c._first;i&&(o=i._next,u===c._time&&(!c._paused||y));)(i._active||i._startTime<=c._time&&!i._paused&&!i._gc)&&(l===i&&(c.pause(),c._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=o;else for(i=c._last;i&&(o=i._prev,u===c._time&&(!c._paused||y));){if(i._active||i._startTime<=f&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=null,c.pause(),c._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=o}!c._onUpdate||t||(O.length&&P(),c._callback("onUpdate")),!a||c._locked||c._gc||_!==c._startTime&&g===c._timeScale||(0===c._time||p>=c.totalDuration())&&(n&&(O.length&&P(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[a]&&c._callback(a))}else m!==c._totalTime&&c._onUpdate&&!t&&c._callback("onUpdate")},i.getActive=function(e,t,r){for(var i,n=[],o=this.getChildren(e||null==e,t||null==e,!!r),a=0,s=o.length,l=0;l<s;l++)(i=o[l]).isActive()&&(n[a++]=i);return n},i.getLabelAfter=function(e){e||0!==e&&(e=this._time);for(var t=this.getLabelsArray(),r=t.length,i=0;i<r;i++)if(t[i].time>e)return t[i].name;return null},i.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},i.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},i.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},i.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},i.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},i.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)},i.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)},i.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},i.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},i.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+k)},r},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(c,f,d){function m(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],p(t)&&-1!==t.join("").indexOf("{self}")&&(i[r]=this._swapSelfInParams(t));p(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)}function _(e){var t,r={};for(t in e)r[t]=e[t];return r}function g(e,t,r){var i,n,o=e.cycle;for(i in o)n=o[i],e[i]="function"==typeof n?n(r,t[r],t):n[r%n.length];delete e.cycle}function u(e,t,r,i){var n="immediateRender";return n in t||(t[n]=!(r&&!1===r[n]||i)),t}function v(e){var p,d,m,_,g,v,y,b;return"function"==typeof e?e:(d=(p="object"==typeof e?e:{each:e}).ease,m=p.from||0,_=p.base||0,g={},v=isNaN(m),y=p.axis,b={center:.5,end:1}[m]||0,function(e,t,r){var i,n,o,a,s,l,u,h,c=(r||p).length,f=g[c];if(!f){if(!(h="auto"===p.grid?0:(p.grid||[1/0])[0])){for(l=-1/0;l<(l=r[h++].getBoundingClientRect().left)&&h<c;);h--}for(f=g[c]=[],i=v?Math.min(h,c)*b-.5:m%h,n=v?c*b/h-.5:m/h|0,u=1/(l=0),s=0;s<c;s++)a=s%h-i,o=n-(s/h|0),f[s]=a=y?Math.abs("y"===y?o:a):Math.sqrt(a*a+o*o),l<a&&(l=a),a<u&&(u=a);f.max=l-u,f.min=u,f.v=c=p.amount||p.each*(c<h?c-1:y?"y"===y?c/h:h:Math.max(h,c/h))||0,f.b=c<0?_-c:_}return c=(f[e]-f.min)/f.max,f.b+(d?d.getRatio(c):c)*f.v})}var e=d._internals,t=m._internals={},y=e.isSelector,p=e.isArray,b=e.lazyTweens,x=e.lazyRender,a=_gsScope._gsDefine.globals,n=t.pauseCallback=function(){},e=m.prototype=new f;return m.version="2.1.3",m.distribute=v,e.constructor=m,e.kill()._gc=e._forcingPlayhead=e._hasPause=!1,e.to=function(e,t,r,i){var n=r.repeat&&a.TweenMax||d;return t?this.add(new n(e,t,r),i):this.set(e,r,i)},e.from=function(e,t,r,i){return this.add((r.repeat&&a.TweenMax||d).from(e,t,u(0,r)),i)},e.fromTo=function(e,t,r,i,n){var o=i.repeat&&a.TweenMax||d;return i=u(0,i,r),t?this.add(o.fromTo(e,t,r,i),n):this.set(e,i,n)},e.staggerTo=function(e,t,r,i,n,o,a,s){var l,u,h=new m({onComplete:o,onCompleteParams:a,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),c=v(r.stagger||i),f=r.startAt,p=r.cycle;for("string"==typeof e&&(e=d.selector(e)||e),y(e=e||[])&&(e=function(e){for(var t=[],r=e.length,i=0;i!==r;t.push(e[i++]));return t}(e)),u=0;u<e.length;u++)l=_(r),f&&(l.startAt=_(f),f.cycle&&g(l.startAt,e,u)),p&&(g(l,e,u),null!=l.duration&&(t=l.duration,delete l.duration)),h.to(e[u],t,l,c(u,e[u],e));return this.add(h,n)},e.staggerFrom=function(e,t,r,i,n,o,a,s){return r.runBackwards=!0,this.staggerTo(e,t,u(0,r),i,n,o,a,s)},e.staggerFromTo=function(e,t,r,i,n,o,a,s,l){return i.startAt=r,this.staggerTo(e,t,u(0,i,r),n,o,a,s,l)},e.call=function(e,t,r,i){return this.add(d.delayedCall(0,e,t,r),i)},e.set=function(e,t,r){return this.add(new d(e,0,u(0,t,null,!0)),r)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,i,n,o,a=new m(e),e=a._timeline;for(null==t&&(t=!0),e._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=e._time,n=e._first;n;)o=n._next,t&&n instanceof d&&n.target===n.vars.onComplete||((i=n._startTime-n._delay)<0&&(r=1),a.add(n,i)),n=o;return e.add(a,0),r&&a.totalDuration(),a},e.add=function(e,t,r,i){var n,o,a,s,l,u,h=this;if("number"!=typeof t&&(t=h._parseTimeOrLabel(t,0,!0,e)),!(e instanceof c)){if(e instanceof Array||e&&e.push&&p(e)){for(r=r||"normal",i=i||0,n=t,o=e.length,a=0;a<o;a++)p(s=e[a])&&(s=new m({tweens:s})),h.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 h._uncache(!0)}if("string"==typeof e)return h.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=d.delayedCall(0,e)}if(f.prototype.add.call(h,e,t),(e._time||!e._duration&&e._initted)&&(n=(h.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)),(h._gc||h._time===h._duration)&&!h._paused&&h._duration<h.duration())for(u=(l=h).rawTime()>e._startTime;l._timeline;)u&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return h},e.remove=function(e){var t;if(e instanceof c)return this._remove(e,!1),t=e._timeline=e.vars.useFrames?c._rootFramesTimeline:c._rootTimeline,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&&p(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)},e._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},e.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},e.insert=e.insertMultiple=function(e,t,r,i){return this.add(e,t||0,r,i)},e.appendMultiple=function(e,t,r,i){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),r,i)},e.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},e.addPause=function(e,t,r,i){r=d.delayedCall(0,n,r,i||this);return r.vars.onComplete=r.vars.onReverseComplete=t,r.data="isPause",this._hasPause=!0,this.add(r,e)},e.removeLabel=function(e){return delete this._labels[e],this},e.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},e._parseTimeOrLabel=function(e,t,r,i){var n,o;if(i instanceof c&&i.timeline===this)this.remove(i);else if(i&&(i instanceof Array||i.push&&p(i)))for(o=i.length;-1<--o;)i[o]instanceof c&&i[o].timeline===this&&this.remove(i[o]);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===(o=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=n+t:t:this._labels[e]+t;t=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=1<o?this._parseTimeOrLabel(e.substr(0,o-1),0,r):n}return Number(e)+t},e.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},e.stop=function(){return this.paused(!0)},e.gotoAndPlay=function(e,t){return this.play(e,t)},e.gotoAndStop=function(e,t){return this.pause(e,t)},e.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var i,n,o,a,s,l,u,h,c=this,f=c._time,p=c._dirty?c.totalDuration():c._totalDuration,d=c._startTime,m=c._timeScale,_=c._paused;if(f!==c._time&&(e+=c._time-f),c._hasPause&&!c._forcingPlayhead&&!t){if(f<e)for(i=c._first;i&&i._startTime<=e&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===c._rawPrevTime||(l=i),i=i._next;else for(i=c._last;i&&i._startTime>=e&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(c._time=c._totalTime=e=l._startTime,h=c._startTime+(c._reversed?c._duration-e:e)/c._timeScale)}if(p-1e-8<=e&&0<=e)c._totalTime=c._time=p,c._reversed||c._hasPausedChild()||(n=!0,a="onComplete",s=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-1e-8<=e||c._rawPrevTime<0||1e-8===c._rawPrevTime)&&c._rawPrevTime!==e&&c._first&&(s=!0,1e-8<c._rawPrevTime&&(a="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,e=p+1e-4;else if(e<1e-8)if(-1e-8<e&&(e=0),((c._totalTime=c._time=0)!==f||0===c._duration&&1e-8!==c._rawPrevTime&&(0<c._rawPrevTime||e<0&&0<=c._rawPrevTime))&&(a="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(s=n=!0,a="onReverseComplete"):0<=c._rawPrevTime&&c._first&&(s=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,0===e&&n)for(i=c._first;i&&0===i._startTime;)i._duration||(n=!1),i=i._next;e=0,c._initted||(s=!0)}else c._totalTime=c._time=c._rawPrevTime=e;if(c._time!==f&&c._first||r||s||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._time!==f&&0<e&&(c._active=!0),0!==f||!c.vars.onStart||0===c._time&&c._duration||t||c._callback("onStart"),f<=(u=c._time))for(i=c._first;i&&(o=i._next,u===c._time&&(!c._paused||_));)(i._active||i._startTime<=u&&!i._paused&&!i._gc)&&(l===i&&(c.pause(),c._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=o;else for(i=c._last;i&&(o=i._prev,u===c._time&&(!c._paused||_));){if(i._active||i._startTime<=f&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=null,c.pause(),c._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=o}!c._onUpdate||t||(b.length&&x(),c._callback("onUpdate")),!a||c._gc||d!==c._startTime&&m===c._timeScale||(0===c._time||p>=c.totalDuration())&&(n&&(b.length&&x(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[a]&&c._callback(a))}},e._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},e.getChildren=function(e,t,r,i){i=i||-9999999999;for(var n=[],o=this._first,a=0;o;)o._startTime<i||(o instanceof d?!1!==t&&(n[a++]=o):(!1!==r&&(n[a++]=o),!1!==e&&(a=(n=n.concat(o.getChildren(!0,t,r))).length))),o=o._next;return n},e.getTweensOf=function(e,t){var r,i,n=this._gc,o=[],a=0;for(n&&this._enabled(!0,!0),i=(r=d.getTweensOf(e)).length;-1<--i;)(r[i].timeline===this||t&&this._contains(r[i]))&&(o[a++]=r[i]);return n&&this._enabled(!1,!0),o},e.recent=function(){return this._recent},e._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},e.shiftChildren=function(e,t,r){r=r||0;for(var i,n=this._first,o=this._labels;n;)n._startTime>=r&&(n._startTime+=e),n=n._next;if(t)for(i in o)o[i]>=r&&(o[i]+=e);return this._uncache(!0)},e._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},e.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)},e.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return c.prototype.invalidate.call(this)},e._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)},e.totalTime=function(e,t,r){this._forcingPlayhead=!0;var i=c.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},e.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},e.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,o=n._last,a=999999999999;o;)t=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&n._sortChildren&&!o._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(o,o._startTime-o._delay),n._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(i-=o._startTime,n._timeline.smoothChildTiming&&(n._startTime+=o._startTime/n._timeScale,n._time-=o._startTime,n._totalTime-=o._startTime,n._rawPrevTime-=o._startTime),n.shiftChildren(-o._startTime,!1,-9999999999),a=0),i<(r=o._startTime+o._totalDuration/o._timeScale)&&(i=r),o=t;n._duration=n._totalDuration=i,n._dirty=!1}return this._totalDuration},e.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 c.prototype.paused.apply(this,arguments)},e.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===c._rootFramesTimeline},e.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(){"use strict";function e(){return(_gsScope.GreenSockGlobals||_gsScope).TimelineMax}"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}(),!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(x,F){"use strict";function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType}function m(e){return null!=e&&e===e.window}var e=[],T=x.document,N=Object.getPrototypeOf,s=e.slice,z=e.concat,B=e.push,j=e.indexOf,U={},G=U.toString,X=U.hasOwnProperty,H=X.toString,Y=H.call(Object),_={},W={type:!0,src:!0,noModule:!0};function q(e,t,r){var i,n=(t=t||T).createElement("script");if(n.text=e,r)for(i in W)r[i]&&(n[i]=r[i]);t.head.appendChild(n).parentNode.removeChild(n)}function d(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?U[G.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)},V=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function K(e){var t=!!e&&"length"in e&&e.length,r=d(e);return!v(e)&&!m(e)&&("array"===r||0===t||"number"==typeof t&&0<t&&t-1 in e)}w.fn=w.prototype={jquery:"3.3.1",constructor:w,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){e=w.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return w.each(this,e)},map:function(r){return this.pushStack(w.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,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:B,sort:e.sort,splice:e.splice},w.extend=w.fn.extend=function(){var e,t,r,i,n,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)n=o[t],o!==(r=e[t])&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(n=i?(i=!1,n&&Array.isArray(n)?n:[]):n&&w.isPlainObject(n)?n:{},o[t]=w.extend(l,n,r)):void 0!==r&&(o[t]=r));return o},w.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){return!(!e||"[object Object]"!==G.call(e))&&(!(e=N(e))||"function"==typeof(e=X.call(e,"constructor")&&e.constructor)&&H.call(e)===Y)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e){q(e)},each:function(e,t){var r,i=0;if(K(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(V,"")},makeArray:function(e,t){t=t||[];return null!=e&&(K(Object(e))?w.merge(t,"string"==typeof e?[e]:e):B.call(t,e)),t},inArray:function(e,t,r){return null==t?-1:j.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,o=e.length,a=!r;n<o;n++)!t(e[n],n)!=a&&i.push(e[n]);return i},map:function(e,t,r){var i,n,o=0,a=[];if(K(e))for(i=e.length;o<i;o++)null!=(n=t(e[o],o,r))&&a.push(n);else for(o in e)null!=(n=t(e[o],o,r))&&a.push(n);return z.apply([],a)},guid:1,support:_}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=e[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){U["[object "+t+"]"]=t.toLowerCase()});function i(e,t,r){for(var i=[],n=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&w(e).is(r))break;i.push(e)}return i}function J(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r}var e=function(F){function c(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)}function N(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function z(){T()}var e,p,b,o,B,d,j,U,x,l,u,T,w,r,E,m,i,n,_,S="sizzle"+ +new Date,g=F.document,A=0,G=0,X=ce(),H=ce(),v=ce(),Y=function(e,t){return e===t&&(u=!0),0},W={}.hasOwnProperty,t=[],q=t.pop,V=t.push,k=t.push,K=t.slice,y=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",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",Z="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",Q=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Z+")*)|.*)\\)|)",$=new RegExp(a+"+","g"),O=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),ee=new RegExp("^"+a+"*,"+a+"*"),te=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),re=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),ie=new RegExp(Q),ne=new RegExp("^"+s+"$"),f={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+Z),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},oe=/^(?:input|select|textarea|button)$/i,ae=/^h\d$/i,h=/^[^{]+\{\s*\[native \w/,se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,le=/[+~]/,P=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),ue=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,he=L(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{k.apply(t=K.call(g.childNodes),g.childNodes),t[g.childNodes.length].nodeType}catch(e){k={apply:t.length?function(e,t){V.apply(e,K.call(t))}:function(e,t){for(var r=e.length,i=0;e[r++]=t[i++];);e.length=r-1}}}function R(e,t,r,i){var n,o,a,s,l,u,h,c=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:g)!==w&&T(t),t=t||w,E)){if(11!==f&&(l=se.exec(e)))if(n=l[1]){if(9===f){if(!(a=t.getElementById(n)))return r;if(a.id===n)return r.push(a),r}else if(c&&(a=c.getElementById(n))&&_(t,a)&&a.id===n)return r.push(a),r}else{if(l[2])return k.apply(r,t.getElementsByTagName(e)),r;if((n=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(n)),r}if(p.qsa&&!v[e+" "]&&(!m||!m.test(e))){if(1!==f)c=t,h=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(ue,N):t.setAttribute("id",s=S),o=(u=d(e)).length;o--;)u[o]="#"+s+" "+D(u[o]);h=u.join(","),c=le.test(e)&&me(t.parentNode)||t}if(h)try{return k.apply(r,c.querySelectorAll(h)),r}catch(e){}finally{s===S&&t.removeAttribute("id")}}}return U(e.replace(O,"$1"),t,r,i)}function ce(){var r=[];function i(e,t){return r.push(e+" ")>b.cacheLength&&delete i[r.shift()],i[e+" "]=t}return i}function C(e){return e[S]=!0,e}function M(e){var t=w.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function fe(e,t){for(var r=e.split("|"),i=r.length;i--;)b.attrHandle[r[i]]=t}function pe(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 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&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function I(a){return C(function(o){return o=+o,C(function(e,t){for(var r,i=a([],e.length,o),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 p=R.support={},B=R.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},T=R.setDocument=function(e){var e=e?e.ownerDocument||e:g;return e!==w&&9===e.nodeType&&e.documentElement&&(r=(w=e).documentElement,E=!B(w),g!==w&&(e=w.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",z,!1):e.attachEvent&&e.attachEvent("onunload",z)),p.attributes=M(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=M(function(e){return e.appendChild(w.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=h.test(w.getElementsByClassName),p.getById=M(function(e){return r.appendChild(e).id=S,!w.getElementsByName||!w.getElementsByName(S).length}),p.getById?(b.filter.ID=function(e){var t=e.replace(P,c);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E)return(t=t.getElementById(e))?[t]:[]}):(b.filter.ID=function(e){var t=e.replace(P,c);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var r,i,n,o=t.getElementById(e);if(o){if((r=o.getAttributeNode("id"))&&r.value===e)return[o];for(n=t.getElementsByName(e),i=0;o=n[i++];)if((r=o.getAttributeNode("id"))&&r.value===e)return[o]}return[]}}),b.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var r,i=[],n=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;r=o[n++];)1===r.nodeType&&i.push(r);return i},b.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},i=[],m=[],(p.qsa=h.test(w.querySelectorAll))&&(M(function(e){r.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+J+")"),e.querySelectorAll("[id~="+S+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||m.push(".#.+[+~]")}),M(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=w.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(p.matchesSelector=h.test(n=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&M(function(e){p.disconnectedMatch=n.call(e,"*"),n.call(e,"[s!='']:x"),i.push("!=",Q)}),m=m.length&&new RegExp(m.join("|")),i=i.length&&new RegExp(i.join("|")),e=h.test(r.compareDocumentPosition),_=e||h.test(r.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(r.contains?r.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=e?function(e,t){var r;return e===t?(u=!0,0):(r=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===r?e===w||e.ownerDocument===g&&_(g,e)?-1:t===w||t.ownerDocument===g&&_(g,t)?1:l?y(l,e)-y(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return u=!0,0;var r,i=0,n=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!n||!o)return e===w?-1:t===w?1:n?-1:o?1:l?y(l,e)-y(l,t):0;if(n===o)return pe(e,t);for(r=e;r=r.parentNode;)a.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;a[i]===s[i];)i++;return i?pe(a[i],s[i]):a[i]===g?-1:s[i]===g?1:0}),w},R.matches=function(e,t){return R(e,null,null,t)},R.matchesSelector=function(e,t){if((e.ownerDocument||e)!==w&&T(e),t=t.replace(re,"='$1']"),p.matchesSelector&&E&&!v[t+" "]&&(!i||!i.test(t))&&(!m||!m.test(t)))try{var r=n.call(e,t);if(r||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return 0<R(t,w,null,[e]).length},R.contains=function(e,t){return(e.ownerDocument||e)!==w&&T(e),_(e,t)},R.attr=function(e,t){(e.ownerDocument||e)!==w&&T(e);var r=b.attrHandle[t.toLowerCase()],r=r&&W.call(b.attrHandle,t.toLowerCase())?r(e,t,!E):void 0;return void 0!==r?r:p.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},R.escape=function(e){return(e+"").replace(ue,N)},R.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},R.uniqueSort=function(e){var t,r=[],i=0,n=0;if(u=!p.detectDuplicates,l=!p.sortStable&&e.slice(0),e.sort(Y),u){for(;t=e[n++];)t===e[n]&&(i=r.push(n));for(;i--;)e.splice(r[i],1)}return l=null,e},o=R.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+=o(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[i++];)r+=o(t);return r},(b=R.selectors={cacheLength:50,createPseudo:C,match:f,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(P,c),e[3]=(e[3]||e[4]||e[5]||"").replace(P,c),"~="===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]||R.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]&&R.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2];return f.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&ie.test(r)&&(t=d(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(P,c).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=X[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&X(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,r,i){return function(e){e=R.attr(e,t);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1<e.indexOf(i):"$="===r?i&&e.slice(-i.length)===i:"~="===r?-1<(" "+e.replace($," ")+" ").indexOf(i):"|="===r&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,m,_){var g="nth"!==d.slice(0,3),v="last"!==d.slice(-4),y="of-type"===e;return 1===m&&0===_?function(e){return!!e.parentNode}:function(e,t,r){var i,n,o,a,s,l,u=g!=v?"nextSibling":"previousSibling",h=e.parentNode,c=y&&e.nodeName.toLowerCase(),f=!r&&!y,p=!1;if(h){if(g){for(;u;){for(a=e;a=a[u];)if(y?a.nodeName.toLowerCase()===c:1===a.nodeType)return!1;l=u="only"===d&&!l&&"nextSibling"}return!0}if(l=[v?h.firstChild:h.lastChild],v&&f){for(p=(s=(i=(n=(o=(a=h)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[d]||[])[0]===A&&i[1])&&i[2],a=s&&h.childNodes[s];a=++s&&a&&a[u]||(p=s=0)||l.pop();)if(1===a.nodeType&&++p&&a===e){n[d]=[A,s,p];break}}else if(!1===(p=f?s=(i=(n=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[d]||[])[0]===A&&i[1]:p))for(;(a=++s&&a&&a[u]||(p=s=0)||l.pop())&&((y?a.nodeName.toLowerCase()!==c:1!==a.nodeType)||!++p||(f&&((n=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[d]=[A,p]),a!==e)););return(p-=_)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||R.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?C(function(e,t){for(var r,i=a(e,o),n=i.length;n--;)e[r=y(e,i[n])]=!(t[r]=i[n])}):function(e){return a(e,0,t)}):a}},pseudos:{not:C(function(e){var i=[],n=[],s=j(e.replace(O,"$1"));return s[S]?C(function(e,t,r,i){for(var n,o=s(e,null,i,[]),a=e.length;a--;)(n=o[a])&&(e[a]=!(t[a]=n))}):function(e,t,r){return i[0]=e,s(i,null,r,n),i[0]=null,!n.pop()}}),has:C(function(t){return function(e){return 0<R(t,e).length}}),contains:C(function(t){return t=t.replace(P,c),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:C(function(r){return ne.test(r||"")||R.error("unsupported lang: "+r),r=r.replace(P,c).toLowerCase(),function(e){var t;do{if(t=E?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=F.location&&F.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===w.activeElement&&(!w.hasFocus||w.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!b.pseudos.empty(e)},header:function(e){return ae.test(e.nodeName)},input:function(e){return oe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:I(function(){return[0]}),last:I(function(e,t){return[t-1]}),eq:I(function(e,t,r){return[r<0?r+t:r]}),even:I(function(e,t){for(var r=0;r<t;r+=2)e.push(r);return e}),odd:I(function(e,t){for(var r=1;r<t;r+=2)e.push(r);return e}),lt:I(function(e,t,r){for(var i=r<0?r+t:r;0<=--i;)e.push(i);return e}),gt:I(function(e,t,r){for(var i=r<0?r+t:r;++i<t;)e.push(i);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(r){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===r}}(e);function _e(){}function D(e){for(var t=0,r=e.length,i="";t<r;t++)i+=e[t].value;return i}function L(a,e,t){var s=e.dir,l=e.next,u=l||s,h=t&&"parentNode"===u,c=G++;return e.first?function(e,t,r){for(;e=e[s];)if(1===e.nodeType||h)return a(e,t,r);return!1}:function(e,t,r){var i,n,o=[A,c];if(r){for(;e=e[s];)if((1===e.nodeType||h)&&a(e,t,r))return!0}else for(;e=e[s];)if(1===e.nodeType||h)if(n=(n=e[S]||(e[S]={}))[e.uniqueID]||(n[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=n[u])&&i[0]===A&&i[1]===c)return o[2]=i[2];if((n[u]=o)[2]=a(e,t,r))return!0}return!1}}function ge(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 ve(e,t,r,i,n){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)!(o=e[s])||r&&!r(o,i,n)||(a.push(o),u&&t.push(s));return a}function ye(p,d,m,_,g,e){return _&&!_[S]&&(_=ye(_)),g&&!g[S]&&(g=ye(g,e)),C(function(e,t,r,i){var n,o,a,s=[],l=[],u=t.length,h=e||function(e,t,r){for(var i=0,n=t.length;i<n;i++)R(e,t[i],r);return r}(d||"*",r.nodeType?[r]:r,[]),c=!p||!e&&d?h:ve(h,s,p,r,i),f=m?g||(e?p:u||_)?[]:t:c;if(m&&m(c,f,r,i),_)for(n=ve(f,l),_(n,[],r,i),o=n.length;o--;)(a=n[o])&&(f[l[o]]=!(c[l[o]]=a));if(e){if(g||p){if(g){for(n=[],o=f.length;o--;)(a=f[o])&&n.push(c[o]=a);g(null,f=[],n,i)}for(o=f.length;o--;)(a=f[o])&&-1<(n=g?y(e,a):s[o])&&(e[n]=!(t[n]=a))}}else f=ve(f===t?f.splice(u,f.length):f),g?g(null,t,f,i):k.apply(t,f)})}function be(_,g){function e(e,t,r,i,n){var o,a,s,l=0,u="0",h=e&&[],c=[],f=x,p=e||y&&b.find.TAG("*",n),d=A+=null==f?1:Math.random()||.1,m=p.length;for(n&&(x=t===w||t||n);u!==m&&null!=(o=p[u]);u++){if(y&&o){for(a=0,t||o.ownerDocument===w||(T(o),r=!E);s=_[a++];)if(s(o,t||w,r)){i.push(o);break}n&&(A=d)}v&&((o=!s&&o)&&l--,e&&h.push(o))}if(l+=u,v&&u!==l){for(a=0;s=g[a++];)s(h,c,t,r);if(e){if(0<l)for(;u--;)h[u]||c[u]||(c[u]=q.call(i));c=ve(c)}k.apply(i,c),n&&!e&&0<c.length&&1<l+g.length&&R.uniqueSort(i)}return n&&(A=d,x=f),h}var v=0<g.length,y=0<_.length;return v?C(e):e}return _e.prototype=b.filters=b.pseudos,b.setFilters=new _e,d=R.tokenize=function(e,t){var r,i,n,o,a,s,l,u=H[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=b.preFilter;a;){for(o in r&&!(i=ee.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(n=[])),r=!1,(i=te.exec(a))&&(r=i.shift(),n.push({value:r,type:i[0].replace(O," ")}),a=a.slice(r.length)),b.filter)!(i=f[o].exec(a))||l[o]&&!(i=l[o](i))||(r=i.shift(),n.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return t?a.length:a?R.error(e):H(e,s).slice(0)},j=R.compile=function(e,t){var r,i=[],n=[],o=v[e+" "];if(!o){for(r=(t=t||d(e)).length;r--;)((o=function e(t){for(var i,r,n,o=t.length,a=b.relative[t[0].type],s=a||b.relative[" "],l=a?1:0,u=L(function(e){return e===i},s,!0),h=L(function(e){return-1<y(i,e)},s,!0),c=[function(e,t,r){return e=!a&&(r||t!==x)||((i=t).nodeType?u:h)(e,t,r),i=null,e}];l<o;l++)if(r=b.relative[t[l].type])c=[L(ge(c),r)];else{if((r=b.filter[t[l].type].apply(null,t[l].matches))[S]){for(n=++l;n<o&&!b.relative[t[n].type];n++);return ye(1<l&&ge(c),1<l&&D(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(O,"$1"),r,l<n&&e(t.slice(l,n)),n<o&&e(t=t.slice(n)),n<o&&D(t))}c.push(r)}return ge(c)}(t[r]))[S]?i:n).push(o);(o=v(e,be(n,i))).selector=e}return o},U=R.select=function(e,t,r,i){var n,o,a,s,l,u="function"==typeof e&&e,h=!i&&d(e=u.selector||e);if(r=r||[],1===h.length){if(2<(o=h[0]=h[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(P,c),t)||[])[0]))return r;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(n=f.needsContext.test(e)?0:o.length;n--&&(a=o[n],!b.relative[s=a.type]);)if((l=b.find[s])&&(i=l(a.matches[0].replace(P,c),le.test(o[0].type)&&me(t.parentNode)||t))){if(o.splice(n,1),e=i.length&&D(o))break;return k.apply(r,i),r}}return(u||j(e,h))(i,t,!E,r,!t||le.test(e)&&me(t.parentNode)||t),r},p.sortStable=S.split("").sort(Y).join("")===S,p.detectDuplicates=!!u,T(),p.sortDetached=M(function(e){return 1&e.compareDocumentPosition(w.createElement("fieldset"))}),M(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&M(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),M(function(e){return null==e.getAttribute("disabled")})||fe(J,function(e,t,r){if(!r)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),R}(x),Z=(w.find=e,w.expr=e.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=e.uniqueSort,w.text=e.getText,w.isXMLDoc=e.isXML,w.contains=e.contains,w.escapeSelector=e.escape,w.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(e,r,i){return v(r)?w.grep(e,function(e,t){return!!r.call(e,t,e)!==i}):r.nodeType?w.grep(e,function(e){return e===r!==i}):"string"!=typeof r?w.grep(e,function(e){return-1<j.call(r,e)!==i}):w.filter(r,e,i)}w.filter=function(e,t,r){var i=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,r,i=this.length,n=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<i;t++)if(w.contains(n[t],this))return!0}));for(r=this.pushStack([]),t=0;t<i;t++)w.find(e,n[t],r);return 1<i?w.uniqueSort(r):r},filter:function(e){return this.pushStack($(this,e||[],!1))},not:function(e){return this.pushStack($(this,e||[],!0))},is:function(e){return!!$(this,"string"==typeof e&&Z.test(e)?w(e):e||[],!1).length}});var ee,te=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,re=((w.fn.init=function(e,t,r){if(e){if(r=r||ee,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==r.ready?r.ready(e):e(w):w.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:te.exec(e))||!i[1]&&t)return(!t||t.jquery?t||r:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),Q.test(i[1])&&w.isPlainObject(t))for(var i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i])}else(r=T.getElementById(i[2]))&&(this[0]=r,this.length=1)}return this}).prototype=w.fn,ee=w(T),/^(?:parents|prev(?:Until|All))/),ie={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),r=t.length;return this.filter(function(){for(var e=0;e<r;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var r,i=0,n=this.length,o=[],a="string"!=typeof e&&w(e);if(!Z.test(e))for(;i<n;i++)for(r=this[i];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(a?-1<a.index(r):1===r.nodeType&&w.find.matchesSelector(r,e))){o.push(r);break}return this.pushStack(1<o.length?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?j.call(w(e),this[0]):j.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return i(e,"parentNode")},parentsUntil:function(e,t,r){return i(e,"parentNode",r)},next:function(e){return ne(e,"nextSibling")},prev:function(e){return ne(e,"previousSibling")},nextAll:function(e){return i(e,"nextSibling")},prevAll:function(e){return i(e,"previousSibling")},nextUntil:function(e,t,r){return i(e,"nextSibling",r)},prevUntil:function(e,t,r){return i(e,"previousSibling",r)},siblings:function(e){return J((e.parentNode||{}).firstChild,e)},children:function(e){return J(e.firstChild)},contents:function(e){return l(e,"iframe")?e.contentDocument:(l(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(i,n){w.fn[i]=function(e,t){var r=w.map(this,n,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(r=w.filter(t,r)),1<this.length&&(ie[i]||w.uniqueSort(r),re.test(i)&&r.reverse()),this.pushStack(r)}});var E=/[^\x20\t\r\n\f]+/g;function h(e){return e}function oe(e){throw e}function ae(e,t,r,i){var n;try{e&&v(n=e.promise)?n.call(e).done(t).fail(r):e&&v(n=e.then)?n.call(e,t,r):t.apply(void 0,[e].slice(i))}catch(e){r.apply(void 0,[e])}}w.Callbacks=function(i){var e,r;i="string"==typeof i?(e=i,r={},w.each(e.match(E)||[],function(e,t){r[t]=!0}),r):w.extend({},i);function n(){for(s=s||i.once,a=o=!0;u.length;h=-1)for(t=u.shift();++h<l.length;)!1===l[h].apply(t[0],t[1])&&i.stopOnFalse&&(h=l.length,t=!1);i.memory||(t=!1),o=!1,s&&(l=t?[]:"")}var o,t,a,s,l=[],u=[],h=-1,c={add:function(){return l&&(t&&!o&&(h=l.length-1,u.push(t)),function r(e){w.each(e,function(e,t){v(t)?i.unique&&c.has(t)||l.push(t):t&&t.length&&"string"!==d(t)&&r(t)})}(arguments),t&&!o&&n()),this},remove:function(){return w.each(arguments,function(e,t){for(var r;-1<(r=w.inArray(t,l,r));)l.splice(r,1),r<=h&&h--}),this},has:function(e){return e?-1<w.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=u=[],t||o||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),o||n()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!a}};return c},w.extend({Deferred:function(e){var o=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var n=arguments;return w.Deferred(function(i){w.each(o,function(e,t){var r=v(n[t[4]])&&n[t[4]];s[t[1]](function(){var e=r&&r.apply(this,arguments);e&&v(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 l=0;function u(n,o,a,s){return function(){function e(){var e,t;if(!(n<l)){if((e=a.apply(r,i))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,u(l,o,h,s),u(l,o,oe,s)):(l++,t.call(e,u(l,o,h,s),u(l,o,oe,s),u(l,o,h,o.notifyWith))):(a!==h&&(r=void 0,i=[e]),(s||o.resolveWith)(r,i))}}var r=this,i=arguments,t=s?e:function(){try{e()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,t.stackTrace),l<=n+1&&(a!==oe&&(r=void 0,i=[e]),o.rejectWith(r,i))}};n?t():(w.Deferred.getStackHook&&(t.stackTrace=w.Deferred.getStackHook()),x.setTimeout(t))}}return w.Deferred(function(e){o[0][3].add(u(0,e,v(i)?i:h,e.notifyWith)),o[1][3].add(u(0,e,v(t)?t:h)),o[2][3].add(u(0,e,v(r)?r:oe))}).promise()},promise:function(e){return null!=e?w.extend(e,a):a}},s={};return w.each(o,function(e,t){var r=t[2],i=t[5];a[t[1]]=r.add,i&&r.add(function(){n=i},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[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}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){n[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--r||a.resolveWith(n,o)}}var r=arguments.length,i=r,n=Array(i),o=s.call(arguments),a=w.Deferred();if(r<=1&&(ae(e,a.done(t(i)).resolve,a.reject,!r),"pending"===a.state()||v(o[i]&&o[i].then)))return a.then();for(;i--;)ae(o[i],t(i),a.reject);return a.promise()}});var se=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,le=(w.Deferred.exceptionHook=function(e,t){x.console&&x.console.warn&&e&&se.test(e.name)&&x.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){x.setTimeout(function(){throw e})},w.Deferred());function ue(){T.removeEventListener("DOMContentLoaded",ue),x.removeEventListener("load",ue),w.ready()}w.fn.ready=function(e){return le.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||le.resolveWith(T,[w])}}),w.ready.then=le.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?x.setTimeout(w.ready):(T.addEventListener("DOMContentLoaded",ue),x.addEventListener("load",ue));function c(e,t,r,i,n,o,a){var s=0,l=e.length,u=null==r;if("object"===d(r))for(s in n=!0,r)c(e,t,s,r[s],!0,o,a);else if(void 0!==i&&(n=!0,v(i)||(a=!0),t=u?a?(t.call(e,i),null):(u=t,function(e,t,r){return u.call(w(e),r)}):t))for(;s<l;s++)t(e[s],r,a?i:i.call(e[s],s,t(e[s],r)));return n?e:u?t.call(e):l?t(e[0],r):o}var he=/^-ms-/,ce=/-([a-z])/g;function fe(e,t){return t.toUpperCase()}function y(e){return e.replace(he,"ms-").replace(ce,fe)}function pe(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function t(){this.expando=w.expando+t.uid++}t.uid=1,t.prototype={cache:function(e){var t=e[this.expando];return t||(t={},pe(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[y(t)]=r;else for(i in t)n[y(i)]=t[i];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][y(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(y):(t=y(t))in i?[t]:t.match(E)||[]).length;for(;r--;)delete i[t[r]]}void 0!==t&&!w.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var g=new t,u=new t,de=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,me=/[A-Z]/g;function _e(e,t,r){var i,n;if(void 0===r&&1===e.nodeType)if(i="data-"+t.replace(me,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(i))){try{r="true"===(n=r)||"false"!==n&&("null"===n?null:n===+n+""?+n:de.test(n)?JSON.parse(n):n)}catch(e){}u.set(e,t,r)}else r=void 0;return r}w.extend({hasData:function(e){return u.hasData(e)||g.hasData(e)},data:function(e,t,r){return u.access(e,t,r)},removeData:function(e,t){u.remove(e,t)},_data:function(e,t,r){return g.access(e,t,r)},_removeData:function(e,t){g.remove(e,t)}}),w.fn.extend({data:function(r,e){var t,i,n,o=this[0],a=o&&o.attributes;if(void 0!==r)return"object"==typeof r?this.each(function(){u.set(this,r)}):c(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=u.get(o,r))||void 0!==(t=_e(o,r))?t:void 0;this.each(function(){u.set(this,r,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(n=u.get(o),1===o.nodeType&&!g.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(i=a[t].name).indexOf("data-")&&(i=y(i.slice(5)),_e(o,i,n[i]));g.set(o,"hasDataAttrs",!0)}return n},removeData:function(e){return this.each(function(){u.remove(this,e)})}}),w.extend({queue:function(e,t,r){var i;if(e)return i=g.get(e,t=(t||"fx")+"queue"),r&&(!i||Array.isArray(r)?i=g.access(e,t,w.makeArray(r)):i.push(r)),i||[]},dequeue:function(e,t){t=t||"fx";var r=w.queue(e,t),i=r.length,n=r.shift(),o=w._queueHooks(e,t);"inprogress"===n&&(n=r.shift(),i--),n&&("fx"===t&&r.unshift("inprogress"),delete o.stop,n.call(e,function(){w.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return g.get(e,r)||g.access(e,r,{empty:w.Callbacks("once memory").add(function(){g.remove(e,[t+"queue",r])})})}}),w.fn.extend({queue:function(t,r){var e=2;return"string"!=typeof t&&(r=t,t="fx",e--),arguments.length<e?w.queue(this[0],t):void 0===r?this:this.each(function(){var e=w.queue(this,t,r);w._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&w.dequeue(this,t)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function r(){--n||o.resolveWith(a,[a])}var i,n=1,o=w.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=g.get(a[s],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(r));return r(),o.promise(t)}});function ge(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&w.contains(e.ownerDocument,e)&&"none"===w.css(e,"display")}function ve(e,t,r,i){var n,o={};for(n in t)o[n]=e.style[n],e.style[n]=t[n];for(n in r=r.apply(e,i||[]),t)e.style[n]=o[n];return r}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,f=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),p=["Top","Right","Bottom","Left"];function ye(e,t,r,i){var n,o,a=20,s=i?function(){return i.cur()}:function(){return w.css(e,t,"")},l=s(),u=r&&r[3]||(w.cssNumber[t]?"":"px"),h=(w.cssNumber[t]||"px"!==u&&+l)&&f.exec(w.css(e,t));if(h&&h[3]!==u){for(u=u||h[3],h=+(l/=2)||1;a--;)w.style(e,t,h+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),h/=o;w.style(e,t,(h*=2)+u),r=r||[]}return r&&(h=+h||+l||0,n=r[1]?h+(r[1]+1)*r[2]:+r[2],i&&(i.unit=u,i.start=h,i.end=n)),n}var be={};function b(e,t){for(var r,i,n,o,a,s=[],l=0,u=e.length;l<u;l++)(i=e[l]).style&&(r=i.style.display,t?("none"===r&&(s[l]=g.get(i,"display")||null,s[l]||(i.style.display="")),""===i.style.display&&ge(i)&&(s[l]=(a=o=void 0,o=(n=i).ownerDocument,n=n.nodeName,(a=be[n])||(o=o.body.appendChild(o.createElement(n)),a=w.css(o,"display"),o.parentNode.removeChild(o),be[n]=a="none"===a?"block":a),a))):"none"!==r&&(s[l]="none",g.set(i,"display",r)));for(l=0;l<u;l++)null!=s[l]&&(e[l].style.display=s[l]);return e}w.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?w(this).show():w(this).hide()})}});var xe=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,we=/^$|^module$|\/(?:java|ecma)script/i,S={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 A(e,t){var r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?w.merge([e],r):r}function Ee(e,t){for(var r=0,i=e.length;r<i;r++)g.set(e[r],"globalEval",!t||g.get(t[r],"globalEval"))}S.optgroup=S.option,S.tbody=S.tfoot=S.colgroup=S.caption=S.thead,S.th=S.td;var Se=/<|&#?\w+;/;function Ae(e,t,r,i,n){for(var o,a,s,l,u,h=t.createDocumentFragment(),c=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===d(o))w.merge(c,o.nodeType?[o]:o);else if(Se.test(o)){for(a=a||h.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),s=S[s]||S._default,a.innerHTML=s[1]+w.htmlPrefilter(o)+s[2],u=s[0];u--;)a=a.lastChild;w.merge(c,a.childNodes),(a=h.firstChild).textContent=""}else c.push(t.createTextNode(o));for(h.textContent="",f=0;o=c[f++];)if(i&&-1<w.inArray(o,i))n&&n.push(o);else if(l=w.contains(o.ownerDocument,o),a=A(h.appendChild(o),"script"),l&&Ee(a),r)for(u=0;o=a[u++];)we.test(o.type||"")&&r.push(o);return h}C=T.createDocumentFragment().appendChild(T.createElement("div")),(a=T.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),C.appendChild(a),_.checkClone=C.cloneNode(!0).cloneNode(!0).lastChild.checked,C.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!C.cloneNode(!0).lastChild.defaultValue;var ke=T.documentElement,Oe=/^key/,Pe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Re=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function k(){return!1}function Me(){try{return T.activeElement}catch(e){}}function Ie(e,t,r,i,n,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof r&&(i=i||r,r=void 0),t)Ie(e,s,r,i,t[s],o);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=k;else if(!n)return e;return 1===o&&(a=n,(n=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,n,i,r)})}w.event={global:{},add:function(t,e,r,i,n){var o,a,s,l,u,h,c,f,p,d=g.get(t);if(d)for(r.handler&&(r=(o=r).handler,n=o.selector),n&&w.find.matchesSelector(ke,n),r.guid||(r.guid=w.guid++),(s=d.events)||(s=d.events={}),(a=d.handle)||(a=d.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(E)||[""]).length;l--;)c=p=(f=Re.exec(e[l])||[])[1],f=(f[2]||"").split(".").sort(),c&&(u=w.event.special[c]||{},c=(n?u.delegateType:u.bindType)||c,u=w.event.special[c]||{},p=w.extend({type:c,origType:p,data:i,handler:r,guid:r.guid,selector:n,needsContext:n&&w.expr.match.needsContext.test(n),namespace:f.join(".")},o),(h=s[c])||((h=s[c]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(c,a)),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=r.guid)),n?h.splice(h.delegateCount++,0,p):h.push(p),w.event.global[c]=!0)},remove:function(e,t,r,i,n){var o,a,s,l,u,h,c,f,p,d,m,_=g.hasData(e)&&g.get(e);if(_&&(l=_.events)){for(u=(t=(t||"").match(E)||[""]).length;u--;)if(p=m=(s=Re.exec(t[u])||[])[1],d=(s[2]||"").split(".").sort(),p){for(c=w.event.special[p]||{},f=l[p=(i?c.delegateType:c.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)h=f[o],!n&&m!==h.origType||r&&r.guid!==h.guid||s&&!s.test(h.namespace)||i&&i!==h.selector&&("**"!==i||!h.selector)||(f.splice(o,1),h.selector&&f.delegateCount--,c.remove&&c.remove.call(e,h));a&&!f.length&&(c.teardown&&!1!==c.teardown.call(e,d,_.handle)||w.removeEvent(e,p,_.handle),delete l[p])}else for(p in l)w.event.remove(e,p+t[u],r,i,!0);w.isEmptyObject(l)&&g.remove(e,"handle events")}},dispatch:function(e){var t,r,i,n,o,a=w.event.fix(e),s=new Array(arguments.length),e=(g.get(this,"events")||{})[a.type]||[],l=w.event.special[a.type]||{};for(s[0]=a,t=1;t<arguments.length;t++)s[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(o=w.event.handlers.call(this,a,e),t=0;(i=o[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,r=0;(n=i.handlers[r++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(n.namespace)||(a.handleObj=n,a.data=n.data,void 0!==(n=((w.event.special[n.origType]||{}).handle||n.handler).apply(i.elem,s))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var r,i,n,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},r=0;r<l;r++)void 0===a[n=(i=t[r]).selector+" "]&&(a[n]=i.needsContext?-1<w(n,this).index(u):w.find(n,this,null,[u]).length),a[n]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(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[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Me()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Me()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&l(this,"input"))return this.click(),!1},_default:function(e){return l(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:k,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&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.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&&Oe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Pe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,n){w.event.special[e]={delegateType:n,bindType:n,handle:function(e){var t,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||w.contains(this,r))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=n),t}}}),w.fn.extend({on:function(e,t,r,i){return Ie(this,e,t,r,i)},one:function(e,t,r,i){return Ie(this,e,t,r,i,1)},off:function(e,t,r){var i,n;if(e&&e.preventDefault&&e.handleObj)i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=k),this.each(function(){w.event.remove(this,e,r,t)});for(n in e)this.off(n,t,e[n])}return this}});var De=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ze(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var r,i,n,o,a,s;if(1===t.nodeType){if(g.hasData(e)&&(o=g.access(e),a=g.set(t,o),s=o.events))for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r<i;r++)w.event.add(t,n,s[n][r]);u.hasData(e)&&(o=u.access(e),a=w.extend({},o),u.set(t,a))}}function O(r,i,n,o){i=z.apply([],i);var e,t,a,s,l,u,h=0,c=r.length,f=c-1,p=i[0],d=v(p);if(d||1<c&&"string"==typeof p&&!_.checkClone&&Fe.test(p))return r.each(function(e){var t=r.eq(e);d&&(i[0]=p.call(this,e,t.html())),O(t,i,n,o)});if(c&&(t=(e=Ae(i,r[0].ownerDocument,!1,r,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=w.map(A(e,"script"),Be)).length;h<c;h++)l=e,h!==f&&(l=w.clone(l,!0,!0),s&&w.merge(a,A(l,"script"))),n.call(r[h],l,h);if(s)for(u=a[a.length-1].ownerDocument,w.map(a,je),h=0;h<s;h++)l=a[h],we.test(l.type||"")&&!g.access(l,"globalEval")&&w.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&w._evalUrl(l.src):q(l.textContent.replace(Ne,""),u,l))}return r}function Ge(e,t,r){for(var i,n=t?w.filter(t,e):e,o=0;null!=(i=n[o]);o++)r||1!==i.nodeType||w.cleanData(A(i)),i.parentNode&&(r&&w.contains(i.ownerDocument,i)&&Ee(A(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e.replace(De,"<$1></$2>")},clone:function(e,t,r){var i,n,o,a,s,l,u,h=e.cloneNode(!0),c=w.contains(e.ownerDocument,e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=A(h),i=0,n=(o=A(e)).length;i<n;i++)s=o[i],l=a[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&xe.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(r)for(o=o||A(e),a=a||A(h),i=0,n=o.length;i<n;i++)Ue(o[i],a[i]);else Ue(e,h);return 0<(a=A(h,"script")).length&&Ee(a,!c&&A(e,"script")),h},cleanData:function(e){for(var t,r,i,n=w.event.special,o=0;void 0!==(r=e[o]);o++)if(pe(r)){if(t=r[g.expando]){if(t.events)for(i in t.events)n[i]?w.event.remove(r,i):w.removeEvent(r,i,t.handle);r[g.expando]=void 0}r[u.expando]&&(r[u.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return c(this,function(e){return void 0===e?w.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 O(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)})},prepend:function(){return O(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=ze(this,e)).insertBefore(e,t.firstChild)})},before:function(){return O(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return O(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&&(w.cleanData(A(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return c(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&&!Le.test(e)&&!S[(Te.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;r<i;r++)1===(t=this[r]||{}).nodeType&&(w.cleanData(A(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var r=[];return O(this,arguments,function(e){var t=this.parentNode;w.inArray(this,r)<0&&(w.cleanData(A(this)),t&&t.replaceChild(e,this))},r)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){w.fn[e]=function(e){for(var t,r=[],i=w(e),n=i.length-1,o=0;o<=n;o++)t=o===n?this:this.clone(!0),w(i[o])[a](t),B.apply(r,t.get());return this.pushStack(r)}});function Xe(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:x).getComputedStyle(e)}var He,Ye,We,qe,Ve,Ke,r,Je=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Ze=new RegExp(p.join("|"),"i");function n(){var e;r&&(Ke.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",r.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ke.appendChild(Ke).appendChild(r),e=x.getComputedStyle(r),He="1%"!==e.top,Ve=12===Qe(e.marginLeft),r.style.right="60%",qe=36===Qe(e.right),Ye=36===Qe(e.width),r.style.position="absolute",We=36===r.offsetWidth||"absolute",ke.removeChild(Ke),r=null)}function Qe(e){return Math.round(parseFloat(e))}function P(e,t,r){var i,n,o=e.style;return(r=r||Xe(e))&&(""!==(n=r.getPropertyValue(t)||r[t])||w.contains(e.ownerDocument,e)||(n=w.style(e,t)),!_.pixelBoxStyles()&&Je.test(n)&&Ze.test(t)&&(e=o.width,t=o.minWidth,i=o.maxWidth,o.minWidth=o.maxWidth=o.width=n,n=r.width,o.width=e,o.minWidth=t,o.maxWidth=i)),void 0!==n?n+"":n}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Ke=T.createElement("div"),(r=T.createElement("div")).style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===r.style.backgroundClip,w.extend(_,{boxSizingReliable:function(){return n(),Ye},pixelBoxStyles:function(){return n(),qe},pixelPosition:function(){return n(),He},reliableMarginLeft:function(){return n(),Ve},scrollboxSize:function(){return n(),We}}));var et=/^(none|table(?!-c[ea]).+)/,tt=/^--/,rt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"},nt=["Webkit","Moz","ms"],ot=T.createElement("div").style;function at(e){return w.cssProps[e]||(w.cssProps[e]=function(e){if(e in ot)return e;for(var t=e[0].toUpperCase()+e.slice(1),r=nt.length;r--;)if((e=nt[r]+t)in ot)return e}(e)||e)}function st(e,t,r){var i=f.exec(t);return i?Math.max(0,i[2]-(r||0))+(i[3]||"px"):t}function lt(e,t,r,i,n,o){var a="width"===t?1:0,s=0,l=0;if(r===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===r&&(l+=w.css(e,r+p[a],!0,n)),i?("content"===r&&(l-=w.css(e,"padding"+p[a],!0,n)),"margin"!==r&&(l-=w.css(e,"border"+p[a]+"Width",!0,n))):(l+=w.css(e,"padding"+p[a],!0,n),"padding"!==r?l+=w.css(e,"border"+p[a]+"Width",!0,n):s+=w.css(e,"border"+p[a]+"Width",!0,n));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))),l}function ut(e,t,r){var i=Xe(e),n=P(e,t,i),o="border-box"===w.css(e,"boxSizing",!1,i),a=o;if(Je.test(n)){if(!r)return n;n="auto"}return a=a&&(_.boxSizingReliable()||n===e.style[t]),"auto"!==n&&(parseFloat(n)||"inline"!==w.css(e,"display",!1,i))||(n=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(n=parseFloat(n)||0)+lt(e,t,r||(o?"border":"content"),a,i,n)+"px"}function o(e,t,r,i,n){return new o.prototype.init(e,t,r,i,n)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=P(e,"opacity"))?"1":t}}},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,o,a,s=y(t),l=tt.test(t),u=e.style;if(l||(t=at(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===r)return a&&"get"in a&&void 0!==(n=a.get(e,!1,i))?n:u[t];"string"===(o=typeof r)&&(n=f.exec(r))&&n[1]&&(r=ye(e,t,n),o="number"),null!=r&&r==r&&("number"===o&&(r+=n&&n[3]||(w.cssNumber[s]?"":"px")),_.clearCloneStyle||""!==r||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(r=a.set(e,r,i))||(l?u.setProperty(t,r):u[t]=r))}},css:function(e,t,r,i){var n,o=y(t);return tt.test(t)||(t=at(o)),"normal"===(n=void 0===(n=(o=w.cssHooks[t]||w.cssHooks[o])&&"get"in o?o.get(e,!0,r):n)?P(e,t,i):n)&&t in it&&(n=it[t]),(""===r||r)&&(o=parseFloat(n),!0===r||isFinite(o))?o||0:n}}),w.each(["height","width"],function(e,o){w.cssHooks[o]={get:function(e,t,r){if(t)return!et.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,o,r):ve(e,rt,function(){return ut(e,o,r)})},set:function(e,t,r){var i=Xe(e),n="border-box"===w.css(e,"boxSizing",!1,i),r=r&<(e,o,r,n,i);return n&&_.scrollboxSize()===i.position&&(r-=Math.ceil(e["offset"+o[0].toUpperCase()+o.slice(1)]-parseFloat(i[o])-lt(e,o,"border",!1,i)-.5)),r&&(n=f.exec(t))&&"px"!==(n[3]||"px")&&(e.style[o]=t,t=w.css(e,o)),st(0,t,r)}}}),w.cssHooks.marginLeft=$e(_.reliableMarginLeft,function(e,t){if(t)return(parseFloat(P(e,"marginLeft"))||e.getBoundingClientRect().left-ve(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(n,o){w.cssHooks[n+o]={expand:function(e){for(var t=0,r={},i="string"==typeof e?e.split(" "):[e];t<4;t++)r[n+p[t]+o]=i[t]||i[t-2]||i[0];return r}},"margin"!==n&&(w.cssHooks[n+o].set=st)}),w.fn.extend({css:function(e,t){return c(this,function(e,t,r){var i,n,o={},a=0;if(Array.isArray(t)){for(i=Xe(e),n=t.length;a<n;a++)o[t[a]]=w.css(e,t[a],!1,i);return o}return void 0!==r?w.style(e,t,r):w.css(e,t)},e,t,1<arguments.length)}}),((w.Tween=o).prototype={constructor:o,init:function(e,t,r,i,n,o){this.elem=e,this.prop=r,this.easing=n||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[r]?"":"px")},cur:function(){var e=o.propHooks[this.prop];return(e&&e.get?e:o.propHooks._default).get(this)},run:function(e){var t,r=o.propHooks[this.prop];return this.options.duration?this.pos=t=w.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:o.propHooks._default).set(this),this}}).init.prototype=o.prototype,(o.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=w.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[w.cssProps[e.prop]]&&!w.cssHooks[e.prop]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=o.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=o.prototype.init,w.fx.step={};var R,ht,a,C,ct=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function pt(){ht&&(!1===T.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(pt):x.setTimeout(pt,w.fx.interval),w.fx.tick())}function dt(){return x.setTimeout(function(){R=void 0}),R=Date.now()}function mt(e,t){var r,i=0,n={height:e};for(t=t?1:0;i<4;i+=2-t)n["margin"+(r=p[i])]=n["padding"+r]=e;return t&&(n.opacity=n.width=e),n}function _t(e,t,r){for(var i,n=(M.tweeners[t]||[]).concat(M.tweeners["*"]),o=0,a=n.length;o<a;o++)if(i=n[o].call(r,t,e))return i}function M(n,e,t){var r,o,i,a,s,l,u,h=0,c=M.prefilters.length,f=w.Deferred().always(function(){delete p.elem}),p=function(){if(!o){for(var e=R||dt(),e=Math.max(0,d.startTime+d.duration-e),t=1-(e/d.duration||0),r=0,i=d.tweens.length;r<i;r++)d.tweens[r].run(t);if(f.notifyWith(n,[d,t,e]),t<1&&i)return e;i||f.notifyWith(n,[d,1,0]),f.resolveWith(n,[d])}return!1},d=f.promise({elem:n,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},t),originalProperties:e,originalOptions:t,startTime:R||dt(),duration:t.duration,tweens:[],createTween:function(e,t){t=w.Tween(n,d.opts,e,t,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(t),t},stop:function(e){var t=0,r=e?d.tweens.length:0;if(!o){for(o=!0;t<r;t++)d.tweens[t].run(1);e?(f.notifyWith(n,[d,1,0]),f.resolveWith(n,[d,e])):f.rejectWith(n,[d,e])}return this}}),m=d.props,_=m,g=d.opts.specialEasing;for(i in _)if(s=g[a=y(i)],l=_[i],Array.isArray(l)&&(s=l[1],l=_[i]=l[0]),i!==a&&(_[a]=l,delete _[i]),(u=w.cssHooks[a])&&"expand"in u)for(i in l=u.expand(l),delete _[a],l)i in _||(_[i]=l[i],g[i]=s);else g[a]=s;for(;h<c;h++)if(r=M.prefilters[h].call(d,n,m,d.opts))return v(r.stop)&&(w._queueHooks(d.elem,d.opts.queue).stop=r.stop.bind(r)),r;return w.map(m,_t,d),v(d.opts.start)&&d.opts.start.call(n,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),w.fx.timer(w.extend(p,{elem:n,anim:d,queue:d.opts.queue})),d}w.Animation=w.extend(M,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);return ye(r.elem,e,f.exec(t),r),r}]},tweener:function(e,t){for(var r,i=0,n=(e=v(e)?(t=e,["*"]):e.match(E)).length;i<n;i++)r=e[i],M.tweeners[r]=M.tweeners[r]||[],M.tweeners[r].unshift(t)},prefilters:[function(e,t,r){var i,n,o,a,s,l,u,h="width"in t||"height"in t,c=this,f={},p=e.style,d=e.nodeType&&ge(e),m=g.get(e,"fxshow");for(i in r.queue||(null==(a=w._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,w.queue(e,"fx").length||a.empty.fire()})})),t)if(n=t[i],ct.test(n)){if(delete t[i],o=o||"toggle"===n,n===(d?"hide":"show")){if("show"!==n||!m||void 0===m[i])continue;d=!0}f[i]=m&&m[i]||w.style(e,i)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(f))for(i in h&&1===e.nodeType&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=g.get(e,"display")),"none"===(h=w.css(e,"display"))&&(u?h=u:(b([e],!0),u=e.style.display||u,h=w.css(e,"display"),b([e]))),("inline"===h||"inline-block"===h&&null!=u)&&"none"===w.css(e,"float")&&(l||(c.done(function(){p.display=u}),null==u&&(h=p.display,u="none"===h?"":h)),p.display="inline-block")),r.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(d=m.hidden):m=g.access(e,"fxshow",{display:u}),o&&(m.hidden=!d),d&&b([e],!0),c.done(function(){for(i in d||b([e]),g.remove(e,"fxshow"),f)w.style(e,i,f[i])})),l=_t(d?m[i]:0,i,c),i in m||(m[i]=l.start,d&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?M.prefilters.unshift(e):M.prefilters.push(e)}}),w.speed=function(e,t,r){var i=e&&"object"==typeof e?w.extend({},e):{complete:r||!r&&t||v(e)&&e,duration:e,easing:r&&t||t&&!v(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,r,i){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,r,i)},animate:function(t,e,r,i){function n(){var e=M(this,w.extend({},t),a);(o||g.get(this,"finish"))&&e.stop(!0)}var o=w.isEmptyObject(t),a=w.speed(e,r,i);return n.finish=n,o||!1===a.queue?this.each(n):this.queue(a.queue,n)},stop:function(n,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof n&&(o=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=w.timers,i=g.get(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&ft.test(t)&&a(i[t]);for(t=r.length;t--;)r[t].elem!==this||null!=n&&r[t].queue!==n||(r[t].anim.stop(o),e=!1,r.splice(t,1));!e&&o||w.dequeue(this,n)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=g.get(this),r=t[a+"queue"],i=t[a+"queueHooks"],n=w.timers,o=r?r.length:0;for(t.finish=!0,w.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=n.length;e--;)n[e].elem===this&&n[e].queue===a&&(n[e].anim.stop(!0),n.splice(e,1));for(e=0;e<o;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete t.finish})}}),w.each(["toggle","show","hide"],function(e,i){var n=w.fn[i];w.fn[i]=function(e,t,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(i,!0),e,t,r)}}),w.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){w.fn[e]=function(e,t,r){return this.animate(i,e,t,r)}}),w.timers=[],w.fx.tick=function(){var e,t=0,r=w.timers;for(R=Date.now();t<r.length;t++)(e=r[t])()||r[t]!==e||r.splice(t--,1);r.length||w.fx.stop(),R=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ht||(ht=!0,pt())},w.fx.stop=function(){ht=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(i,e){return i=w.fx&&w.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var r=x.setTimeout(e,i);t.stop=function(){x.clearTimeout(r)}})},a=T.createElement("input"),C=T.createElement("select").appendChild(T.createElement("option")),a.type="checkbox",_.checkOn=""!==a.value,_.optSelected=C.selected,(a=T.createElement("input")).value="t",a.type="radio",_.radioValue="t"===a.value;var gt,I=w.expr.attrHandle,vt=(w.fn.extend({attr:function(e,t){return c(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,r){var i,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,r):(1===o&&w.isXMLDoc(e)||(n=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?gt:void 0)),void 0!==r?null===r?void w.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)))&&null==(i=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){var r;if(!_.radioValue&&"radio"===t&&l(e,"input"))return r=e.value,e.setAttribute("type",t),r&&(e.value=r),t}}},removeAttr:function(e,t){var r,i=0,n=t&&t.match(E);if(n&&1===e.nodeType)for(;r=n[i++];)e.removeAttribute(r)}}),gt={set:function(e,t,r){return!1===t?w.removeAttr(e,r):e.setAttribute(r,r),r}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var a=I[t]||w.find.attr;I[t]=function(e,t,r){var i,n,o=t.toLowerCase();return r||(n=I[o],I[o]=i,i=null!=a(e,t,r)?o:null,I[o]=n),i}}),/^(?:input|select|textarea|button)$/i),yt=/^(?:a|area)$/i;function D(e){return(e.match(E)||[]).join(" ")}function L(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(E)||[]}w.fn.extend({prop:function(e,t){return c(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,r){var i,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,n=w.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=w.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(t){var e,r,i,n,o,a,s=0;if(v(t))return this.each(function(e){w(this).addClass(t.call(this,e,L(this)))});if((e=bt(t)).length)for(;r=this[s++];)if(a=L(r),i=1===r.nodeType&&" "+D(a)+" "){for(o=0;n=e[o++];)i.indexOf(" "+n+" ")<0&&(i+=n+" ");a!==(a=D(i))&&r.setAttribute("class",a)}return this},removeClass:function(t){var e,r,i,n,o,a,s=0;if(v(t))return this.each(function(e){w(this).removeClass(t.call(this,e,L(this)))});if(!arguments.length)return this.attr("class","");if((e=bt(t)).length)for(;r=this[s++];)if(a=L(r),i=1===r.nodeType&&" "+D(a)+" "){for(o=0;n=e[o++];)for(;-1<i.indexOf(" "+n+" ");)i=i.replace(" "+n+" "," ");a!==(a=D(i))&&r.setAttribute("class",a)}return this},toggleClass:function(n,t){var o=typeof n,a="string"==o||Array.isArray(n);return"boolean"==typeof t&&a?t?this.addClass(n):this.removeClass(n):v(n)?this.each(function(e){w(this).toggleClass(n.call(this,e,L(this),t),t)}):this.each(function(){var e,t,r,i;if(a)for(t=0,r=w(this),i=bt(n);e=i[t++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==n&&"boolean"!=o||((e=L(this))&&g.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==n&&g.get(this,"__className__")||""))})},hasClass:function(e){for(var t,r=0,i=" "+e+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+D(L(t))+" ").indexOf(i))return!0;return!1}});function xt(e){e.stopPropagation()}var Tt=/\r/g,wt=(w.fn.extend({val:function(t){var r,e,i,n=this[0];return arguments.length?(i=v(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,w(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=w.map(e,function(e){return null==e?"":e+""})),(r=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,e,"value")||(this.value=e))})):n?(r=w.valHooks[n.type]||w.valHooks[n.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(n,"value"))?e:"string"==typeof(e=n.value)?e.replace(Tt,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:D(w.text(e))}},select:{get:function(e){for(var t,r=e.options,i=e.selectedIndex,n="select-one"===e.type,o=n?null:[],a=n?i+1:r.length,s=i<0?a:n?i:0;s<a;s++)if(((t=r[s]).selected||s===i)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=w(t).val(),n)return t;o.push(t)}return o},set:function(e,t){for(var r,i,n=e.options,o=w.makeArray(t),a=n.length;a--;)((i=n[a]).selected=-1<w.inArray(w.valHooks.option.get(i),o))&&(r=!0);return r||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},_.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),_.focusin="onfocusin"in x,/^(?:focusinfocus|focusoutblur)$/),Et=(w.extend(w.event,{trigger:function(e,t,r,i){var n,o,a,s,l,u,h,c=[r||T],f=X.call(e,"type")?e.type:e,p=X.call(e,"namespace")?e.namespace.split("."):[],d=h=o=r=r||T;if(3!==r.nodeType&&8!==r.nodeType&&!wt.test(f+w.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),s=f.indexOf(":")<0&&"on"+f,(e=e[w.expando]?e:new w.Event(f,"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]:w.makeArray(t,[e]),u=w.event.special[f]||{},i||!u.trigger||!1!==u.trigger.apply(r,t))){if(!i&&!u.noBubble&&!m(r)){for(a=u.delegateType||f,wt.test(a+f)||(d=d.parentNode);d;d=d.parentNode)c.push(d),o=d;o===(r.ownerDocument||T)&&c.push(o.defaultView||o.parentWindow||x)}for(n=0;(d=c[n++])&&!e.isPropagationStopped();)h=d,e.type=1<n?a:u.bindType||f,(l=(g.get(d,"events")||{})[e.type]&&g.get(d,"handle"))&&l.apply(d,t),(l=s&&d[s])&&l.apply&&pe(d)&&(e.result=l.apply(d,t),!1===e.result&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(c.pop(),t)||!pe(r)||s&&v(r[f])&&!m(r)&&((o=r[s])&&(r[s]=null),w.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,xt),r[f](),e.isPropagationStopped()&&h.removeEventListener(f,xt),w.event.triggered=void 0,o&&(r[s]=o)),e.result}},simulate:function(e,t,r){r=w.extend(new w.Event,r,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var r=this[0];if(r)return w.event.trigger(e,t,r,!0)}}),_.focusin||w.each({focus:"focusin",blur:"focusout"},function(r,i){function n(e){w.event.simulate(i,e.target,w.event.fix(e))}w.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=g.access(e,i);t||e.addEventListener(r,n,!0),g.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=g.access(e,i)-1;t?g.access(e,i,t):(e.removeEventListener(r,n,!0),g.remove(e,i))}}}),x.location),St=Date.now(),At=/\?/,kt=(w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new x.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t},/\[\]$/),Ot=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;w.param=function(e,t){function r(e,t){t=v(t)?t():t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var i,n=[];if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){r(this.name,this.value)});else for(i in e)!function r(i,e,n,o){if(Array.isArray(e))w.each(e,function(e,t){n||kt.test(i)?o(i,t):r(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,n,o)});else if(n||"object"!==d(e))o(i,e);else for(var t in e)r(i+"["+t+"]",e[t],n,o)}(i,e[i],t,r);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Rt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!xe.test(e))}).map(function(e,t){var r=w(this).val();return null==r?null:Array.isArray(r)?w.map(r,function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}}):{name:t.name,value:r.replace(Ot,"\r\n")}}).get()}});var Ct=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Nt={},zt={},Bt="*/".concat("*"),jt=T.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var r,i=0,n=e.toLowerCase().match(E)||[];if(v(t))for(;r=n[i++];)"+"===r[0]?(r=r.slice(1)||"*",(o[r]=o[r]||[]).unshift(t)):(o[r]=o[r]||[]).push(t)}}function Gt(t,i,n,o){var a={},s=t===zt;function l(e){var r;return a[e]=!0,w.each(t[e]||[],function(e,t){t=t(i,n,o);return"string"!=typeof t||s||a[t]?s?!(r=t):void 0:(i.dataTypes.unshift(t),l(t),!1)}),r}return l(i.dataTypes[0])||!a["*"]&&l("*")}function Xt(e,t){var r,i,n=w.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((n[r]?e:i=i||{})[r]=t[r]);return i&&w.extend(!0,e,i),e}jt.href=Et.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,w.ajaxSettings),t):Xt(w.ajaxSettings,e)},ajaxPrefilter:Ut(Nt),ajaxTransport:Ut(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,u,h,r,c,f,p,i,d=w.ajaxSetup({},t=t||{}),m=d.context||d,_=d.context&&(m.nodeType||m.jquery)?w(m):w.event,g=w.Deferred(),v=w.Callbacks("once memory"),y=d.statusCode||{},n={},o={},a="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(f){if(!r)for(r={};t=Dt.exec(h);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return f?h:null},setRequestHeader:function(e,t){return null==f&&(e=o[e.toLowerCase()]=o[e.toLowerCase()]||e,n[e]=t),this},overrideMimeType:function(e){return null==f&&(d.mimeType=e),this},statusCode:function(e){if(e)if(f)b.always(e[b.status]);else for(var t in e)y[t]=[y[t],e[t]];return this},abort:function(e){e=e||a;return l&&l.abort(e),s(0,e),this}};if(g.promise(b),d.url=((e||d.url||Et.href)+"").replace(Ft,Et.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(E)||[""],null==d.crossDomain){e=T.createElement("a");try{e.href=d.url,e.href=e.href,d.crossDomain=jt.protocol+"//"+jt.host!=e.protocol+"//"+e.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=w.param(d.data,d.traditional)),Gt(Nt,d,t,b),!f){for(i in(p=w.event&&d.global)&&0==w.active++&&w.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Lt.test(d.type),u=d.url.replace(Mt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Ct,"+")):(e=d.url.slice(u.length),d.data&&(d.processData||"string"==typeof d.data)&&(u+=(At.test(u)?"&":"?")+d.data,delete d.data),!1===d.cache&&(u=u.replace(It,"$1"),e=(At.test(u)?"&":"?")+"_="+St+++e),d.url=u+e),d.ifModified&&(w.lastModified[u]&&b.setRequestHeader("If-Modified-Since",w.lastModified[u]),w.etag[u]&&b.setRequestHeader("If-None-Match",w.etag[u])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&b.setRequestHeader("Content-Type",d.contentType),b.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Bt+"; q=0.01":""):d.accepts["*"]),d.headers)b.setRequestHeader(i,d.headers[i]);if(d.beforeSend&&(!1===d.beforeSend.call(m,b,d)||f))return b.abort();if(a="abort",v.add(d.complete),b.done(d.success),b.fail(d.error),l=Gt(zt,d,t,b)){if(b.readyState=1,p&&_.trigger("ajaxSend",[b,d]),f)return b;d.async&&0<d.timeout&&(c=x.setTimeout(function(){b.abort("timeout")},d.timeout));try{f=!1,l.send(n,s)}catch(e){if(f)throw e;s(-1,e)}}else s(-1,"No Transport")}return b;function s(e,t,r,i){var n,o,a,s=t;f||(f=!0,c&&x.clearTimeout(c),l=void 0,h=i||"",b.readyState=0<e?4:0,i=200<=e&&e<300||304===e,r&&(a=function(e,t,r){for(var i,n,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(n in s)if(s[n]&&s[n].test(i)){l.unshift(n);break}if(l[0]in r)o=l[0];else{for(n in r){if(!l[0]||e.converters[n+" "+l[0]]){o=n;break}a=a||n}o=o||a}if(o)return o!==l[0]&&l.unshift(o),r[o]}(d,b,r)),a=function(e,t,r,i){var n,o,a,s,l,u={},h=e.dataTypes.slice();if(h[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=h.shift();o;)if(e.responseFields[o]&&(r[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(n in u)if((s=n.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[n]:!0!==u[n]&&(o=s[0],h.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(d,a,b,i),i?(d.ifModified&&((r=b.getResponseHeader("Last-Modified"))&&(w.lastModified[u]=r),(r=b.getResponseHeader("etag"))&&(w.etag[u]=r)),204===e||"HEAD"===d.type?s="nocontent":304===e?s="notmodified":(s=a.state,n=a.data,i=!(o=a.error))):(o=s,!e&&s||(s="error",e<0&&(e=0))),b.status=e,b.statusText=(t||s)+"",i?g.resolveWith(m,[n,s,b]):g.rejectWith(m,[b,s,o]),b.statusCode(y),y=void 0,p&&_.trigger(i?"ajaxSuccess":"ajaxError",[b,d,i?n:o]),v.fireWith(m,[b,s]),p&&(_.trigger("ajaxComplete",[b,d]),--w.active||w.event.trigger("ajaxStop")))}},getJSON:function(e,t,r){return w.get(e,t,r,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,n){w[n]=function(e,t,r,i){return v(t)&&(i=i||r,r=t,t=void 0),w.ajax(w.extend({url:e,type:n,dataType:i,data:t,success:r},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(e){return this[0]&&(v(e)&&(e=e.call(this[0])),e=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(r){return v(r)?this.each(function(e){w(this).wrapInner(r.call(this,e))}):this.each(function(){var e=w(this),t=e.contents();t.length?t.wrapAll(r):e.append(r)})},wrap:function(t){var r=v(t);return this.each(function(e){w(this).wrapAll(r?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(e){}};var Ht={0:200,1223:204},Yt=w.ajaxSettings.xhr(),Wt=(_.cors=!!Yt&&"withCredentials"in Yt,_.ajax=Yt=!!Yt,w.ajaxTransport(function(n){var o,a;if(_.cors||Yt&&!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]);o=function(e){return function(){o&&(o=a=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(Ht[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(n.hasContent&&n.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(r){var i,n;if(r.crossDomain)return{send:function(e,t){i=w("<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()}}}),[]),qt=/(=)\?(?=&|$)|\?\?/,Vt=(w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||w.expando+"_"+St++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,r){var i,n,o,a=!1!==e.jsonp&&(qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(qt,"$1"+i):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||w.error(i+" was not called"),o[0]},e.dataTypes[0]="json",n=x[i],x[i]=function(){o=arguments},r.always(function(){void 0===n?w(x).removeProp(i):x[i]=n,e[i]&&(e.jsonpCallback=t.jsonpCallback,Wt.push(i)),o&&v(n)&&n(o[0]),o=n=void 0}),"script"}),_.createHTMLDocument=((e=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),w.parseHTML=function(e,t,r){var i;return"string"!=typeof e?[]:("boolean"==typeof t&&(r=t,t=!1),t||(_.createHTMLDocument?((i=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(i)):t=T),i=!r&&[],(r=Q.exec(e))?[t.createElement(r[1])]:(r=Ae([e],t,i),i&&i.length&&w(i).remove(),w.merge([],r.childNodes)))},w.fn.load=function(e,t,r){var i,n,o,a=this,s=e.indexOf(" ");return-1<s&&(i=D(e.slice(s)),e=e.slice(0,s)),v(t)?(r=t,t=void 0):t&&"object"==typeof t&&(n="POST"),0<a.length&&w.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).always(r&&function(e,t){a.each(function(){r.apply(this,o||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(e,t,r){var i,n,o,a,s=w.css(e,"position"),l=w(e),u={};"static"===s&&(e.style.position="relative"),o=l.offset(),i=w.css(e,"top"),a=w.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(i+a).indexOf("auto")?(n=(s=l.position()).top,s.left):(n=parseFloat(i)||0,parseFloat(a)||0),null!=(t=v(t)?t.call(e,r,w.extend({},o)):t).top&&(u.top=t.top-o.top+n),null!=t.left&&(u.left=t.left-o.left+s),"using"in t?t.using.call(e,u):l.css(u)}},w.fn.extend({offset:function(t){var e,r;return arguments.length?void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)}):(r=this[0])?r.getClientRects().length?(e=r.getBoundingClientRect(),r=r.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"===w.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"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((n=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),n.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-n.top-w.css(i,"marginTop",!0),left:t.left-n.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ke})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var o="pageYOffset"===n;w.fn[t]=function(e){return c(this,function(e,t,r){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===r)return i?i[n]:e[t];i?i.scrollTo(o?i.pageXOffset:r,o?r:i.pageYOffset):e[t]=r},t,e,arguments.length)}}),w.each(["top","left"],function(e,r){w.cssHooks[r]=$e(_.pixelPosition,function(e,t){if(t)return t=P(e,r),Je.test(t)?w(e).position()[r]+"px":t})}),w.each({Height:"height",Width:"width"},function(a,s){w.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){w.fn[o]=function(e,t){var r=arguments.length&&(i||"boolean"!=typeof e),n=i||(!0===e||!0===t?"margin":"border");return c(this,function(e,t,r){var i;return m(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===r?w.css(e,t,n):w.style(e,t,r,n)},s,r?e:void 0,r)}})}),w.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){w.fn[r]=function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.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)}}),w.proxy=function(e,t){var r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),v(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=l,w.isFunction=v,w.isWindow=m,w.camelCase=y,w.type=d,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}),x.jQuery),Kt=x.$;return w.noConflict=function(e){return x.$===w&&(x.$=Kt),e&&x.jQuery===w&&(x.jQuery=Vt),w},F||(x.jQuery=x.$=w),w}),!function i(n,o,a){function s(r,e){if(!o[r]){if(!n[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);e=new Error("Cannot find module '"+r+"'");throw e.code="MODULE_NOT_FOUND",e}t=o[r]={exports:{}};n[r][0].call(t.exports,function(e){var t=n[r][1][e];return s(t||e)},t,t.exports,i,n,o,a)}return o[r].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function a(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?a(i,t,r):void 0}var s=e("./wait"),e=function(){var e=o,t=s;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function o(e,t,r,i,n){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");n=n||{};e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,n));return e.type="Angle",n.load?e.load(n.load):(e.angle=t,e.speed=r,e.duration=i||0),e}return 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,[{key:"save",value:function(){var e;return(e=a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"save",this).call(this)).angle=this.angle,e.speed=this.speed,e}},{key:"load",value:function(e){a(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=e},{"./wait":11}],2:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function o(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,r):void 0}var a=e("yy-angle"),s=e("./wait"),e=function(){var e=n,t=s;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function n(e,t,r,i){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");i=i||{};e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,i));return e.type="Face",e.target=t,i.load?e.load(i.load):e.speed=r,e}return 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(n,[{key:"save",value:function(){var e;return this.options.cancel?null:((e=o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"save",this).call(this)).speed=this.speed,e.keepAlive=this.options.keepAlive,e)}},{key:"load",value:function(e){o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"load",this).call(this,e),this.speed=e.speed,this.options.keepAlive=e.keepAlive}},{key:"calculate",value:function(e){var t=a.angleTwoPoints(this.object.position,this.target),r=a.differenceAngles(t,this.object.rotation);if(0===r){if(this.emit("done",this.object),!this.options.keepAlive)return!0}else{t=a.differenceAnglesSign(t,this.object.rotation),e=this.speed*e;this.object.rotation+=(r<e?r:e)*t}}}]),n}();t.exports=e},{"./wait":11,"yy-angle":22}],3:[function(e,t,r){"use strict";e={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=e,t.exports=e},{"./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(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};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)}}var o=e("eventemitter3"),a=e("./angle"),s=e("./face"),l=e("./load"),u=e("./movie"),h=e("./shake"),c=e("./target"),f=e("./tint"),p=e("./to"),d=e("./wait"),e=function(){var e=i,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");e=e||{};var t,r=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.noTicker||(t=e.ticker||PIXI.ticker.shared).add(function(){return r.update(t.elapsedMS)}),r.list=[],r.empty=!0,r.removeWaiting=[],r.removeAllWaiting=!1,r}return 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,[{key:"add",value:function(){var e=void 0,t=!0,r=!1,i=void 0;try{for(var n,o=arguments[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(Array.isArray(a)){var s=!0,l=!1,u=void 0;try{for(var h,c=a[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value,e=e||f;this.list.push(f)}}catch(e){l=!0,u=e}finally{try{!s&&c.return&&c.return()}finally{if(l)throw u}}}else e=a,this.list.push(a)}}catch(e){r=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw i}}return this.empty=!1,e}},{key:"remove",value:function(e){this.inUpdate?this.removeWaiting.push(e):-1!==(e=this.list.indexOf(e))&&this.list.splice(e,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(p,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"angle",value:function(){return this.add(new(Function.prototype.bind.apply(a,[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(l,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"movie",value:function(){return this.add(new(Function.prototype.bind.apply(u,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"shake",value:function(){return this.add(new(Function.prototype.bind.apply(h,[null].concat(Array.prototype.slice.call(arguments)))))}},{key:"target",value:function(){return this.add(new(Function.prototype.bind.apply(c,[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(d,[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,o=this.list[Symbol.iterator]();!(t=(n=o.next()).done);t=!0)n.value.pause||e++}catch(e){r=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw i}}return e}}]),i}();t.exports=e},{"./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"),o=e("./tint"),a=e("./shake"),s=e("./angle"),l=e("./face"),u=e("./target"),h=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 o(e,null,null,r);case"Shake":return new a(e,null,null,r);case"Angle":return new s(e,null,null,null,r);case"Face":return new l(e[0],e[1],null,r);case"Target":return new u(e[0],e[1],null,r);case"Movie":return new h(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(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function a(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?a(i,t,r):void 0}var s=e("./wait"),e=function(){var e=o,t=s;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function o(e,t,r,i){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");i=i||{};var n=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(o.__proto__||Object.getPrototypeOf(o)).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 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,[{key:"save",value:function(){var e;return(e=a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"save",this).call(this)).goto=this.goto,e.current=this.current,e.length=this.length,e.interval=this.interval,e}},{key:"load",value:function(e){a(o.prototype.__proto__||Object.getPrototypeOf(o.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]}}]),o}();t.exports=e},{"./wait":11}],7:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function o(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,r):void 0}var a=e("./wait"),e=function(){var e=s,t=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function s(e,t,r,i){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");i=i||{};var n=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(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 o=0;o<e.length;o++){var a=e[o];n.start[o]={x:a.x,y:a.y}}}else n.start={x:e.x,y:e.y};n.amount=t,n.duration=r}return n}return 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(s,[{key:"save",value:function(){var e;return(e=o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"save",this).call(this)).start=this.start,e.amount=this.amount,e}},{key:"load",value:function(e){o(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 o=i[n],a=t[n];o.x=a.x+Math.floor(Math.random()*r*2)-r,o.y=a.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],o=t[i];n.x=o.x,n.y=o.y}else e.x=t.x,e.y=t.y}}]),s}();t.exports=e},{"./wait":11}],8:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function o(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,r):void 0}var a=e("./wait"),e=function(){var e=n,t=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function n(e,t,r,i){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");i=i||{};e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,i));return e.type="Target",e.target=t,i.load?e.load(i.load):e.speed=r,e}return 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(n,[{key:"save",value:function(){var e;return(e=o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"save",this).call(this)).speed=this.speed,e.keepAlive=this.options.keepAlive,e}},{key:"load",value:function(e){o(n.prototype.__proto__||Object.getPrototypeOf(n.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)}}}]),n}();t.exports=e},{"./wait":11}],9:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function a(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?a(i,t,r):void 0}var _=e("yy-color"),s=e("./wait"),e=function(){var e=o,t=s;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function o(e,t,r,i){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");i=i||{};var n=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(o.__proto__||Object.getPrototypeOf(o)).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 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,[{key:"save",value:function(){var e;return(e=a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"save",this).call(this)).start=this.start,e.to=this.to,e}},{key:"load",value:function(e){a(o.prototype.__proto__||Object.getPrototypeOf(o.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=_.blend(1-(r-e)/t,this.tints[i-1],this.tints[i]);if(this.list){var o=!0,a=!1,s=void 0;try{for(var l,u=this.list[Symbol.iterator]();!(o=(l=u.next()).done);o=!0)l.value.tint=n}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}}else this.object.tint=n;break}r+=t}else{var h=_.blend(e,this.start,this.to);if(this.list){var c=!0,f=!1,p=void 0;try{for(var d,m=this.list[Symbol.iterator]();!(c=(d=m.next()).done);c=!0)d.value.tint=h}catch(e){f=!0,p=e}finally{try{!c&&m.return&&m.return()}finally{if(f)throw p}}}else this.object.tint=h}}},{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}}}]),o}();t.exports=e},{"./wait":11,"yy-color":23}],10:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function a(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?a(i,t,r):void 0}var s=e("./wait"),e=function(){var e=o,t=s;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function o(e,t,r,i){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");i=i||{};var n=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(o.__proto__||Object.getPrototypeOf(o)).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 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,[{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;return(e=a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"save",this).call(this)).goto=this.goto,e.start=this.start,e.delta=this.delta,e.keys=this.keys,e}},{key:"load",value:function(e){a(o.prototype.__proto__||Object.getPrototypeOf(o.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,t=0,r=this.start=[],i=this.delta=[],n=this.keys=[],o=this.goto,a=this.object;for(e in o){if(isNaN(o[e])){n[t]={key:e,children:[]},r[t]=[],i[t]=[];var s,l=0;for(s in o[e])n[t].children[l]=s,r[t][l]=parseFloat(a[e][s]),r[t][l]=this._correctDOM(s,r[t][l]),r[t][l]=isNaN(this.start[t][l])?0:r[t][l],i[t][l]=o[e][s]-r[t][l],l++}else r[t]=parseFloat(a[e]),r[t]=this._correctDOM(e,r[t]),r[t]=isNaN(this.start[t])?0:r[t],i[t]=o[e]-r[t],n[t]=e;t++}this.time=0}},{key:"reverse",value:function(){for(var e=this.object,t=this.keys,r=this.goto,i=this.delta,n=this.start,o=0,a=t.length;o<a;o++){var s=t[o];if(isNaN(r[s]))for(var l=0,u=s.children.length;l<u;l++)i[o][l]=-i[o][l],n[o][l]=parseFloat(e[s.key][s.children[l]]),n[o][l]=isNaN(n[o][l])?0:n[o][l];else i[o]=-i[o],n[o]=parseFloat(e[s]),n[o]=isNaN(n[o])?0:n[o]}}},{key:"calculate",value:function(){for(var e=this.object,t=this.list,r=this.keys,i=this.goto,n=this.time,o=this.start,a=this.delta,s=this.duration,l=this.options.ease,u=0,h=this.keys.length;u<h;u++){var c=r[u];if(isNaN(i[c]))for(var f=c.key,p=0,d=c.children.length;p<d;p++){var m=c.children[p],_=e[f][m]=s<=n?o[u][p]+a[u][p]:l(n,o[u][p],a[u][p],s);if(t)for(var g=1,v=t.length;g<v;g++)t[g][f][m]=_}else{var y=r[u],b=e[y]=s<=n?o[u]+a[u]:l(n,o[u],a[u],s);if(t)for(var x=1,T=this.list.length;x<T;x++)t[x][y]=b}}}}]),o}();t.exports=e},{"./wait":11}],11:[function(e,t,r){"use strict";var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};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)}}var o=e("penner"),a=e("eventemitter3"),e=function(){var e=i,t=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function i(e,t){var r;if(this instanceof i)return(r=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this))).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=o[r.options.ease]),r.options.ease||(r.options.ease=o.linear),r;throw new TypeError("Cannot call a class as a function")}return 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,[{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=o[this.options.ease]),this.options.ease||(this.options.ease=o.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--;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 t=0,r=this.duration,i=this.time,n=(0!==r&&r<i&&(t=i-r,this.time=i=r),this.calculate(e));return this.emit("each",e,this.list||this.object,this),"Wait"===this.type||0!==r&&i===r?this.end(t):n||i===r}}},{key:"_correctDOM",value:function(e,t){return"opacity"===e&&isNaN(t)?1: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=e},{eventemitter3:12,penner:13}],12:[function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty,p="~";function n(){}function o(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");r=new o(r,i||e,n),i=p?p+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],r]:e._events[i].push(r):(e._events[i]=r,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(p=!1)),s.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(p?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e){var e=p?p+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,i=t.length,n=new Array(i);r<i;r++)n[r]=t[r].fn;return n},s.prototype.listenerCount=function(e){e=p?p+e:e,e=this._events[e];return e?e.fn?1:e.length:0},s.prototype.emit=function(e,t,r,i,n,o){var a=p?p+e:e;if(!this._events[a])return!1;var s,l=this._events[a],u=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),u){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,o),!0}for(f=1,s=new Array(u-1);f<u;f++)s[f-1]=arguments[f];l.fn.apply(l.context,s)}else for(var h,c=l.length,f=0;f<c;f++)switch(l[f].once&&this.removeListener(e,l[f].fn,void 0,!0),u){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,t);break;case 3:l[f].fn.call(l[f].context,t,r);break;case 4:l[f].fn.call(l[f].context,t,r,i);break;default:if(!s)for(h=1,s=new Array(u-1);h<u;h++)s[h-1]=arguments[h];l[f].fn.apply(l[f].context,s)}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,r,i){e=p?p+e:e;if(this._events[e])if(t){var n=this._events[e];if(n.fn)n.fn!==t||i&&!n.once||r&&n.context!==r||l(this,e);else{for(var o=0,a=[],s=n.length;o<s;o++)(n[o].fn!==t||i&&!n[o].once||r&&n[o].context!==r)&&a.push(n[o]);a.length?this._events[e]=1===a.length?a[0]:a:l(this,e)}}else l(this,e);return this},s.prototype.removeAllListeners=function(e){return e?(e=p?p+e:e,this._events[e]&&l(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=p,s.EventEmitter=s,void 0!==t&&(t.exports=s)},{}],13:[function(e,t,r){!function(){var 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=1.70158,o=0,a=r;return 0!==e&&(e/=i),o=o||.3*i,n=a<Math.abs(r)?(a=r,o/4):o/(2*Math.PI)*Math.asin(r/a),-(a*Math.pow(2,10*--e)*Math.sin((e*i-n)*(2*Math.PI)/o))+t},easeOutElastic:function(e,t,r,i){var n=1.70158,o=0,a=r;return 0!==e&&(e/=i),o=o||.3*i,n=a<Math.abs(r)?(a=r,o/4):o/(2*Math.PI)*Math.asin(r/a),a*Math.pow(2,-10*e)*Math.sin((e*i-n)*(2*Math.PI)/o)+r+t},easeInOutElastic:function(e,t,r,i){var n=1.70158,o=0,a=r;return 0!==e&&(e/=i/2),o=o||i*(.3*1.5),n=a<Math.abs(r)?(a=r,o/4):o/(2*Math.PI)*Math.asin(r/a),e<1?a*Math.pow(2,10*--e)*Math.sin((e*i-n)*(2*Math.PI)/o)*-.5+t:a*Math.pow(2,-10*--e)*Math.sin((e*i-n)*(2*Math.PI)/o)*.5+r+t},easeInBack:function(e,t,r,i,n){return r*(e/=i)*e*(((n=void 0===n?1.70158:n)+1)*e-n)+t},easeOutBack:function(e,t,r,i,n){return r*((e=e/i-1)*e*(((n=void 0===n?1.70158: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}};(function(e){"object"==typeof r?t.exports=e:"function"==typeof define&&define.amd?define([],e):this.penner=e})(n)}.call(this)},{}],14:[function(e,t,r){var i=e("./lib/alea"),n=e("./lib/xor128"),o=e("./lib/xorwow"),a=e("./lib/xorshift7"),s=e("./lib/xor4096"),l=e("./lib/tychei"),e=e("./seedrandom");e.alea=i,e.xor128=n,e.xorwow=o,e.xorshift7=a,e.xor4096=s,e.tychei=l,t.exports=e},{"./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){function n(e){var i,t=this,r=(i=4022871197,function(e){e=e.toString();for(var t=0;t<e.length;t++){var r=.02519603282416938*(i+=e.charCodeAt(t));i=(r=(r-(i=r>>>0))*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)}function o(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function r(e,t){var r=new n(e),e=t&&t.state,i=r.next;return i.int32=function(){return 4294967296*r.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,e&&("object"==typeof e&&o(e,r),i.state=function(){return o(r,{})}),i}e&&e.exports?e.exports=r:t&&t.amd?t(function(){return r}):this.alea=r}("object"==typeof t&&t,"function"==typeof define&&define)},{}],16:[function(e,t,r){!function(e,t){function n(e){var n=this,t="";n.next=function(){var e=(e=n.b)<<25^e>>>7^(t=n.c),t=t-(r=n.d)|0,r=r<<24^r>>>8^(i=n.a),i=i-e|0;return 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 r(e,t){function r(){return(i.next()>>>0)/4294967296}var i=new n(e),e=t&&t.state;return r.double=function(){do{var e=((i.next()>>>11)+(i.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=i.next,r.quick=r,e&&("object"==typeof e&&o(e,i),r.state=function(){return o(i,{})}),r}e&&e.exports?e.exports=r:t&&t.amd?t(function(){return r}):this.tychei=r}("object"==typeof t&&t,"function"==typeof define&&define)},{}],17:[function(e,t,r){!function(e,t){function n(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 r(e,t){function r(){return(i.next()>>>0)/4294967296}var i=new n(e),e=t&&t.state;return r.double=function(){do{var e=((i.next()>>>11)+(i.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=i.next,r.quick=r,e&&("object"==typeof e&&o(e,i),r.state=function(){return o(i,{})}),r}e&&e.exports?e.exports=r:t&&t.amd?t(function(){return r}):this.xor128=r}("object"==typeof t&&t,"function"==typeof define&&define)},{}],18:[function(e,t,r){!function(e,t){function n(e){var o=this;o.next=function(){var e,t,r=o.w,i=o.X,n=o.i;return o.w=r=r+1640531527|0,t=i[n+34&127],e=i[n=n+1&127],t=i[n]=(t^=t<<13)^t>>>15^((e^=e<<17)^e>>>12),o.i=n,t+(r^r>>>16)|0};var t,r,i,n,a,s=o,l=e,u=[],h=128;for(l===(0|l)?(r=l,l=null):(l+="\0",r=0,h=Math.max(h,l.length)),i=0,n=-32;n<h;++n)l&&(r^=l.charCodeAt((n+32)%l.length)),0===n&&(a=r),r=(r=(r=(r^=r<<10)^r>>>15)^r<<4)^r>>>13,0<=n&&(i=0==(t=u[127&n]^=r+(a=a+1640531527|0))?i+1:0);for(128<=i&&(u[127&(l&&l.length||0)]=-1),i=127,n=512;0<n;--n)r=u[i+34&127],t=u[i=i+1&127],u[i]=(r=(r^=r<<13)^r>>>15)^(t=(t^=t<<17)^t>>>12);s.w=a,s.X=u,s.i=i}function o(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function r(e,t){function r(){return(i.next()>>>0)/4294967296}var i=new n(e=null==e?+new Date:e),e=t&&t.state;return r.double=function(){do{var e=((i.next()>>>11)+(i.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=i.next,r.quick=r,e&&(e.X&&o(e,i),r.state=function(){return o(i,{})}),r}e&&e.exports?e.exports=r:t&&t.amd?t(function(){return r}):this.xor4096=r}("object"==typeof t&&t,"function"==typeof define&&define)},{}],19:[function(e,t,r){!function(e,t){function n(e){var n=this;n.next=function(){var e=n.x,t=n.i,r=e[t],i=(r^=r>>>7)^r<<24;return i=(i^=(r=e[t+1&7])^r>>>10)^((r=e[t+3&7])^r>>>3)^((r=e[t+4&7])^r<<7),r=e[t+7&7],e[t]=i^=(r^=r<<13)^r<<9,n.i=t+1&7,i};var t,r=n,i=e,o=[];if(i===(0|i))o[0]=i;else for(i=""+i,t=0;t<i.length;++t)o[7&t]=o[7&t]<<15^i.charCodeAt(t)+o[t+1&7]<<13;for(;o.length<8;)o.push(0);for(t=0;t<8&&0===o[t];++t);for(8==t?o[7]=-1:o[t],r.x=o,r.i=0,t=256;0<t;--t)r.next()}function o(e,t){return t.x=e.x.slice(),t.i=e.i,t}function r(e,t){function r(){return(i.next()>>>0)/4294967296}var i=new n(e=null==e?+new Date:e),e=t&&t.state;return r.double=function(){do{var e=((i.next()>>>11)+(i.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=i.next,r.quick=r,e&&(e.x&&o(e,i),r.state=function(){return o(i,{})}),r}e&&e.exports?e.exports=r:t&&t.amd?t(function(){return r}):this.xorshift7=r}("object"==typeof t&&t,"function"==typeof define&&define)},{}],20:[function(e,t,r){!function(e,t){function n(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 r(e,t){function r(){return(i.next()>>>0)/4294967296}var i=new n(e),e=t&&t.state;return r.double=function(){do{var e=((i.next()>>>11)+(i.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=i.next,r.quick=r,e&&("object"==typeof e&&o(e,i),r.state=function(){return o(i,{})}),r}e&&e.exports?e.exports=r:t&&t.amd?t(function(){return r}):this.xorwow=r}("object"==typeof t&&t,"function"==typeof define&&define)},{}],21:[function(t,r,e){!function(a,s){var l,u=this,h=256,c=6,f="random",p=s.pow(h,c),d=s.pow(2,52),m=2*d,_=h-1;function e(e,t,r){function i(){for(var e=o.g(c),t=p,r=0;e<d;)e=(e+r)*h,t*=h,r=o.g(1);for(;m<=e;)e/=2,t/=2,r>>>=1;return(e+r)/t}var n=[],e=y(function e(t,r){var i,n=[],o=typeof t;if(r&&"object"==o)for(i in t)try{n.push(e(t[i],r-1))}catch(e){}return n.length?n:"string"==o?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,b(a)]:null==e?function(){try{return l&&(t=l.randomBytes)?t=t(h):(t=new Uint8Array(h),(u.crypto||u.msCrypto).getRandomValues(t)),b(t)}catch(e){var t=u.navigator,t=t&&t.plugins;return[+new Date,u,t,u.screen,b(a)]}}():e,3),n),o=new g(n);return i.int32=function(){return 0|o.g(4)},i.quick=function(){return o.g(4)/4294967296},i.double=i,y(b(o.S),a),(t.pass||r||function(e,t,r,i){return i&&(i.S&&v(i,o),e.state=function(){return v(o,{})}),r?(s[f]=e,t):e})(i,e,"global"in t?t.global:this==s,t.state)}function g(e){var t,r=e.length,a=this,i=0,n=a.i=a.j=0,o=a.S=[];for(r||(e=[r++]);i<h;)o[i]=i++;for(i=0;i<h;i++)o[i]=o[n=_&n+e[i%r]+(t=o[i])],o[n]=t;(a.g=function(e){for(var t,r=0,i=a.i,n=a.j,o=a.S;e--;)t=o[i=_&i+1],r=r*h+o[_&(o[i]=o[n=_&n+t])+(o[n]=t)];return a.i=i,a.j=n,r})(h)}function v(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function y(e,t){for(var r,i=e+"",n=0;n<i.length;)t[_&n]=_&(r^=19*t[_&n])+i.charCodeAt(n++);return b(t)}function b(e){return String.fromCharCode.apply(0,e)}if(s["seed"+f]=e,y(s.random(),a),"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,o=Math.PI/2,a=3*Math.PI/2,s=Math.PI,l=2*Math.PI,u=Math.PI/4,h=Math.PI/2;function c(e,t){return 0<((e-t+Math.PI)%l+l)%l-Math.PI?1:-1}function f(e,t){e=Math.abs(e-t)%l;return e>Math.PI?l-e:e}function p(e){return e-l*Math.floor(e/l)}t.exports={UP:o,DOWN:a,LEFT:s,RIGHT:0,NORTH:o,SOUTH:a,WEST:s,EAST:0,PI_2:l,PI_QUARTER:u,PI_HALF:h,toDegrees:function(e){return e*i},toRadians:function(e){return e*n},isAngleBetween:function(e,t,r){var i;return((r-t)%l+l)%l>=Math.PI&&(i=t,t=r,r=i),t<=r?t<=e&&e<=r:t<=e||e<=r},differenceAnglesSign:c,differenceAngles:f,shortestAngle:function(e,t){return f(t,e)*c(t,e)+e},normalize:p,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=f(e,s),r=f(e,0),i=f(e,o),e=f(e,a);return t<=r&&t<=i&&t<=e?s:r<=i&&r<=e?0:i<=e?o:a},equals:function(e,t,r){return r?f(e,t)<r:p(e)===p(t)},explain:function(e){switch(e){case o:return"UP";case a:return"DOWN";case s:return"LEFT";case 0:return"RIGHT";default:return"NOT CARDINAL"}}}},{}],23:[function(e,t,r){var a=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=(e=this.hexToRgb(e)).r,i=e.g,n=e.b,e=Math.max(r,i,n),o=Math.min(r,i,n),a=(e+o)/2;if(e===o)t=l=0;else{var s=e-o,l=.5<a?s/(2-e-o):s/(e+o);switch(e){case r:t=(i-n)/s+(i<n?6:0);break;case i:t=(n-r)/s+2;break;case n:t=(r-i)/s+4}t/=6}return{h:t,s:l,l:a}},hslToHex:function(e){var t,r,i,n,o,a;function s(e,t,r){return r<0&&(r+=1),1<r&&--r,r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}return r=1===arguments.length?(t=e.h,i=e.s,e.l):(t=e,i=arguments[1],arguments[2]),0===i?n=o=a=r:(n=s(i=2*r-(r=r<.5?r*(1+i):r+i-r*i),r,t+1/3),o=s(i,r,t),a=s(i,r,t-1/3)),this.rgbToHex(255*n,255*o,255*a)},hexToRgb:function(e){0===e?e="0x000000":"string"!=typeof e&&(e="0x"+(t="000000"+e.toString(16)).substr(t.length-6));var t=/^0x?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgbToHex:function(e,t,r){var i;return 1===arguments.length&&(r=(Array.isArray(arguments[0])?(e=(i=arguments[0])[0],t=i[1],i):(e=(i=e.replace(/( *rgb *\( *)|( )|(\) *;?)/,"").split(","))[0],t=i[1],i))[2]),"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){return t=0===t?0:t||10,(e=this.hexToHsl(e)).s+=t/100,e.s=Math.min(1,Math.max(0,e.s)),this.hslToHex(e)},desaturate:function(e,t){return t=0===t?0:t||10,(e=this.hexToHsl(e)).s-=t/100,e.s=Math.min(1,Math.max(0,e.s)),this.hslToHex(e)},blend:function(e,t,r){var i;return 0===e?t:1===e?r:(i=1-e)*(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 a.range(e,t)}var i=a.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,o){return e={h:a.range(e,t),s:a.range(r,i,!0),l:a.range(n,o,!0)},this.hslToHex(e)},randomGoldenRatioHSL:function(e,t,r){for(var i=a.get(1,!0),n=[],o=0;o<e;o++)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(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("seedrandom"),e=(i(a,[{key:"seed",value:function(e,t){this.generator=o[(t=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=o[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 a;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){t/=2;return this.range(e-t,e+t,r)}},{key:"range",value:function(e,t,r){return t===e?t:r?this.get(t-e,!0)+e:(r=void 0,e<0&&0<t?r=-e+t+1:0===e&&0<t?r=t+1:e<0&&0===t?(r=e-1,e=1):r=e<0&&t<0?t-e-1:t-e+1,Math.floor(this.generator()*r)+e)}},{key:"rangeMultiple",value:function(e,t,r,i){for(var n=[],o=0;o<r;o++)n.push(this.range(e,t,i));return n}},{key:"middleMultiple",value:function(e,t,r,i){for(var n=[],o=0;o<r;o++)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(0!==(e=t?e.slice():e).length)for(var r,i,n=e.length;0!==n;)i=this.get(n),r=e[--n],e[n]=e[i],e[i]=r;return e}},{key:"pick",value:function(e,t){var r;return t?(r=e[t=this.get(e.length)],e.splice(t,1),r):e[this.get(e.length)]}},{key:"property",value:function(e){var t,r,i=0;for(r in e)this.chance(1/++i)&&(t=r);return t}},{key:"set",value:function(e,t,r){for(var i=[],n=[],o=e;o<t;o++)n.push(o);for(o=0;o<r;o++){var a=this.get(n.length);i.push(n[a]),n.splice(a,1)}return i}},{key:"distribution",value:function(e,t,r,i,n,o){var a=Math.floor((t-e)/r),s=a/2,l=a/4,u=[];i&&u.push(e);for(var h=0;h<r;h++)u.push(e+h*a+s+this.range(-l,l,o));return n&&u.push(t),u}},{key:"weightedProbabilityInt",value:function(e,t,r,i){if(i=i||1,!(Math.random()<.81546))return this.range(e,t);for(;;){var n=function(){for(var e,t=void 0,r=void 0;1<=(r=(t=2*this.get(1,!0)-1)*t+(e=2*this.get(1,!0)-1)*e)||0===r;);return t*Math.sqrt(-2*Math.log(r)/r)}()*i+r;if(e<=n&&n<=t)return n}}},{key:"color",value:function(){return this.get(16777215)}}]),a);function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.generator=Math.random}t.exports=new e},{seedrandom:14}],25:[function(e,t,r){},{}]},{},[3]),!function i(n,o,a){function s(r,e){if(!o[r]){if(!n[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);e=new Error("Cannot find module '"+r+"'");throw e.code="MODULE_NOT_FOUND",e}t=o[r]={exports:{}};n[r][0].call(t.exports,function(e){var t=n[r][1][e];return s(t||e)},t,t.exports,i,n,o,a)}return o[r].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./utils"),a=e("./plugin");t.exports=function(){var e=r,t=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(this instanceof r)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))).time=(t=t||{}).time||150,e.ease=o.ease(t.ease,"easeInOutSine"),e.friction=t.friction||.5,t.sides=t.sides||"all",t.sides&&("all"===t.sides?e.top=e.bottom=e.left=e.right=!0:"horizontal"===t.sides?e.right=e.left=!0:"vertical"===t.sides?e.top=e.bottom=!0:(e.top=-1!==t.sides.indexOf("top"),e.bottom=-1!==t.sides.indexOf("bottom"),e.left=-1!==t.sides.indexOf("left"),e.right=-1!==t.sides.indexOf("right"))),e.parseUnderflow(t.underflow||"center"),e.last={},e;throw new TypeError("Cannot call a class as a function")}return 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,[{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){var t;this.paused||(this.bounce(),this.toX&&((t=this.toX).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),this.toY&&((t=this.toY).time+=e,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),t.time>=this.time?(this.parent.y=t.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(t.time,t.start,t.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(){var e,t,r,i;this.paused||(e=void 0,(i=this.parent.plugins.decelerate)&&(i.x||i.y)&&(i.x&&i.percentChangeX===i.friction||i.y&&i.percentChangeY===i.friction)&&(((e=this.parent.OOB()).left&&this.left||e.right&&this.right)&&(i.percentChangeX=this.friction),(e.top&&this.top||e.bottom&&this.bottom)&&(i.percentChangeY=this.friction)),t=this.parent.plugins.drag||{},r=this.parent.plugins.pinch||{},i=i||{},t.active||r.active||this.toX&&this.toY||i.x&&i.y||(t=(e=e||this.parent.OOB()).cornerPoint,this.toX||i.x||(r=null,e.left&&this.left?r=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():0:e.right&&this.right&&(r=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-t.x),null!==r&&this.parent.x!==r&&(this.toX={time:0,start:this.parent.x,delta:r-this.parent.x,end:r},this.parent.emit("bounce-x-start",this.parent))),this.toY||i.y||(r=null,e.top&&this.top?r=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():0:e.bottom&&this.bottom&&(r=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-t.y),null!==r&&this.parent.y!==r&&(this.toY={time:0,start:this.parent.y,delta:r-this.parent.y,end:r},this.parent.emit("bounce-y-start",this.parent)))))}},{key:"reset",value:function(){this.toX=this.toY=null}}]),r}()},{"./plugin":9,"./utils":12}],2:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./plugin");t.exports=function(){var e=r,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(this instanceof r)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))).minWidth=t.minWidth,e.minHeight=t.minHeight,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,e;throw new TypeError("Cannot call a class as a function")}return 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,[{key:"resize",value:function(){this.clamp()}},{key:"clamp",value:function(){var e,t;this.paused||(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"})))}}]),r}()},{"./plugin":9}],3:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./plugin"),a=e("./utils");t.exports=function(){var e=r,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");t=t||{};e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return void 0===t.direction?(e.left=a.defaults(t.left,null),e.right=a.defaults(t.right,null),e.top=a.defaults(t.top,null),e.bottom=a.defaults(t.bottom,null)):(e.left="x"===t.direction||"all"===t.direction,e.right="x"===t.direction||"all"===t.direction,e.top="y"===t.direction||"all"===t.direction,e.bottom="y"===t.direction||"all"===t.direction),e.parseUnderflow(t.underflow||"center"),e.move(),e}return 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,[{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"})}}}}]),r}()},{"./plugin":9,"./utils":12}],4:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}e("./utils");var o=e("./plugin");t.exports=function(){var e=r,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(this instanceof r)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))).friction=(t=t||{}).friction||.95,e.bounce=t.bounce||.5,e.minSpeed=void 0!==t.minSpeed?t.minSpeed:.01,e.saved=[],e;throw new TypeError("Cannot call a class as a function")}return 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,[{key:"down",value:function(){this.saved=[],this.x=this.y=!1}},{key:"move",value:function(){var e;this.paused||(1===(e=this.parent.countDownPointers())||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,o=this.saved[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.time>=e-100){var s=e-a.time;this.x=(this.parent.x-a.x)/s,this.y=(this.parent.y-a.y)/s,this.percentChangeX=this.percentChangeY=this.friction;break}}}catch(e){r=!0,i=e}finally{try{!t&&o.return&&o.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){var t;this.paused||(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}}]),r}()},{"./plugin":9,"./utils":12}],5:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./utils"),a=e("./plugin");t.exports=function(){var e=r,t=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");t=t||{};e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return e.moved=!1,e.wheelActive=o.defaults(t.wheel,!0),e.wheelScroll=t.wheelScroll||1,e.reverse=t.reverse?1:-1,e.clampWheel=t.clampWheel,e.xDirection=!t.direction||"all"===t.direction||"x"===t.direction,e.yDirection=!t.direction||"all"===t.direction||"y"===t.direction,e.parseUnderflow(t.underflow||"center"),e}return 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,[{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){var t;this.paused||((1===(t=this.parent.countDownPointers())||1<t&&!this.parent.plugins.pinch)&&this.parent.parent?(t=this.parent.parent.toLocal(e.data.global),this.last={x:e.data.global.x,y:e.data.global.y,parent:t},this.current=e.data.pointerId):this.last=null)}},{key:"move",value:function(e){var t,r,i,n;this.paused||this.last&&this.current===e.data.pointerId&&(t=e.data.global.x,r=e.data.global.y,1===(n=this.parent.countDownPointers())||1<n&&!this.parent.plugins.pinch?(n=t-this.last.x,i=r-this.last.y,(this.moved||this.xDirection&&this.parent.checkThreshold(n)||this.yDirection&&this.parent.checkThreshold(i))&&(n=this.parent.parent.toLocal(e.data.global),this.xDirection&&(this.parent.x+=n.x-this.last.parent.x),this.yDirection&&(this.parent.y+=n.y-this.last.parent.y),this.last={x:t,y:r,parent:n},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"}))):this.moved=!1)}},{key:"up",value:function(){var e,t=this.parent.getTouchPointers();1===t.length?((t=t[0]).last&&(e=this.parent.parent.toLocal(t.last),this.last={x:t.last.x,y:t.last.y,parent:e},this.current=t.last.data.pointerId),this.moved=!1):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&&!this.parent.plugins.wheel))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}}]),r}()},{"./plugin":9,"./utils":12}],6:[function(e,t,r){"use strict";var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};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)}}var o=e("./plugin");t.exports=function(){var e=i,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function i(e,t,r){if(this instanceof i)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e))).speed=(r=r||{}).speed||0,e.target=t,e.radius=r.radius,e;throw new TypeError("Cannot call a class as a function")}return 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,[{key:"update",value:function(){if(!this.paused){var e,t,r,i=this.parent.center,n=this.target.x,o=this.target.y;if(this.radius){if(!(Math.sqrt(Math.pow(this.target.y-i.y,2)+Math.pow(this.target.x-i.x,2))>this.radius))return;var a=Math.atan2(this.target.y-i.y,this.target.x-i.x),n=this.target.x-Math.cos(a)*this.radius,o=this.target.y-Math.sin(a)*this.radius}this.speed?(a=n-i.x,e=o-i.y,(a||e)&&(t=Math.atan2(o-i.y,n-i.x),r=Math.cos(t)*this.speed,t=Math.sin(t)*this.speed,a=Math.abs(r)>Math.abs(a)?n:i.x+r,r=Math.abs(t)>Math.abs(e)?o:i.y+t,this.parent.moveCenter(a,r),this.parent.emit("moved",{viewport:this.parent,type:"follow"}))):(this.parent.moveCenter(n,o),this.parent.emit("moved",{viewport:this.parent,type:"follow"}))}}}]),i}()},{"./plugin":9}],7:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./utils"),a=e("./plugin");t.exports=function(){var e=r,t=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(this instanceof r)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))).options=t=t||{},e.reverse=t.reverse?1:-1,e.noDecelerate=t.noDecelerate,e.linear=t.linear,e.radiusSquared=Math.pow(t.radius,2),e.resize(),e.speed=t.speed||8,e;throw new TypeError("Cannot call a class as a function")}return 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,[{key:"resize",value:function(){var e=this.options,t=e.distance;o.exists(t)?(this.left=t,this.top=t,this.right=window.innerWidth-t,this.bottom=window.innerHeight-t):this.radius||(this.left=o.exists(e.left)?e.left:null,this.top=o.exists(e.top)?e.top:null,this.right=o.exists(e.right)?window.innerWidth-e.right:null,this.bottom=o.exists(e.bottom)?window.innerHeight-e.bottom:null)}},{key:"down",value:function(){this.horizontal=this.vertical=null}},{key:"move",value:function(e){var t,r;"MOUSE"===e.data.identifier&&0===e.data.buttons&&(t=e.data.global.x,e=e.data.global.y,this.radiusSquared?(r=this.parent.toScreen(this.parent.center),Math.pow(r.x-t,2)+Math.pow(r.y-e,2)>=this.radiusSquared?(r=Math.atan2(r.y-e,r.x-t),this.linear?(this.horizontal=Math.round(Math.cos(r))*this.speed*this.reverse*.06,this.vertical=Math.round(Math.sin(r))*this.speed*this.reverse*.06):(this.horizontal=Math.cos(r)*this.speed*this.reverse*.06,this.vertical=Math.sin(r)*this.speed*this.reverse*.06)):(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0)):(o.exists(this.left)&&t<this.left?this.horizontal=+this.reverse*this.speed*.06:o.exists(this.right)&&t>this.right?this.horizontal=-1*this.reverse*this.speed*.06:(this.decelerateHorizontal(),this.horizontal=0),o.exists(this.top)&&e<this.top?this.vertical=+this.reverse*this.speed*.06:o.exists(this.bottom)&&e>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(){var e;this.paused||(this.horizontal||this.vertical)&&(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"}))}}]),r}()},{"./plugin":9,"./utils":12}],8:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./plugin");t.exports=function(){var e=r,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(this instanceof r)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))).percent=(t=t||{}).percent||1,e.noDrag=t.noDrag,e.center=t.center,e;throw new TypeError("Cannot call a class as a function")}return 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,[{key:"down",value:function(){2<=this.parent.countDownPointers()&&(this.active=!0)}},{key:"move",value:function(e){var t,r,i,n,o;!this.paused&&this.active&&(r=e.data.global.x,i=e.data.global.y,2<=(n=this.parent.getTouchPointers()).length&&(o=n[0],n=n[1],t=o.last&&n.last?Math.sqrt(Math.pow(n.last.x-o.last.x,2)+Math.pow(n.last.y-o.last.y,2)):null,o.pointerId===e.data.pointerId?o.last={x:r,y:i,data:e.data}:n.pointerId===e.data.pointerId&&(n.last={x:r,y:i,data:e.data}),t?(r=void 0,i={x:o.last.x+(n.last.x-o.last.x)/2,y:o.last.y+(n.last.y-o.last.y)/2},this.center||(r=this.parent.toLocal(i)),e=(Math.sqrt(Math.pow(n.last.x-o.last.x,2)+Math.pow(n.last.y-o.last.y,2))-t)/this.parent.screenWidth*this.parent.scale.x*this.percent,this.parent.scale.x+=e,this.parent.scale.y+=e,this.parent.emit("zoomed",{viewport:this.parent,type:"pinch"}),(n=this.parent.plugins["clamp-zoom"])&&n.clamp(),this.center?this.parent.moveCenter(this.center):(o=this.parent.toGlobal(r),this.parent.x+=i.x-o.x,this.parent.y+=i.y-o.y,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),!this.noDrag&&this.lastCenter&&(this.parent.x+=i.x-this.lastCenter.x,this.parent.y+=i.y-this.lastCenter.y,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=i,this.moved=!0):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))}}]),r}()},{"./plugin":9}],9:[function(e,t,r){"use strict";var i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.parent=e,this.paused=!1}t.exports=(i(o,[{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}}]),o)},{}],10:[function(e,t,r){"use strict";var n=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e};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)}}function o(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,r):void 0}var a=e("./plugin"),s=e("./utils");t.exports=function(){var e=i,t=a;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function i(e,t){var r;if(this instanceof i)return(r=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e))).width=(t=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=s.exists(r.x_scale),r.yIndependent=s.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=s.defaults(t.time,1e3),r.ease=s.ease(t.ease,"easeInOutSine"),r.center=t.center,r.noMove=t.noMove,r.stopOnResize=t.stopOnResize,r.removeOnInterrupt=t.removeOnInterrupt,r.removeOnComplete=s.defaults(t.removeOnComplete,!0),r.interrupt=s.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;throw new TypeError("Cannot call a class as a function")}return 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,[{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){var t,r;this.paused||this.interrupt&&0!==this.parent.countDownPointers()||(t=void 0,this.center||this.noMove||(t=this.parent.center),this.snapping?this.snapping&&((r=this.snapping).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):(e=this.snapping,this.parent.scale.x=this.ease(e.time,e.startX,e.deltaX,this.time),this.parent.scale.y=this.ease(e.time,e.startY,e.deltaY,this.time)),(r=this.parent.plugins["clamp-zoom"])&&r.clamp(),this.noMove||(this.center?this.parent.moveCenter(this.center):this.parent.moveCenter(t))):this.parent.scale.x===this.x_scale&&this.parent.scale.y===this.y_scale||this.createSnapping())}},{key:"resume",value:function(){this.snapping=null,o(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(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./plugin"),a=e("./utils");t.exports=function(){var e=n,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function n(e,t,r,i){if(this instanceof n)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).friction=(i=i||{}).friction||.8,e.time=i.time||1e3,e.ease=a.ease(i.ease,"easeInOutSine"),e.x=t,e.y=r,e.topLeft=i.topLeft,e.interrupt=a.defaults(i.interrupt,!0),e.removeOnComplete=i.removeOnComplete,e.removeOnInterrupt=i.removeOnInterrupt,i.forceStart&&e.startEase(),e;throw new TypeError("Cannot call a class as a function")}return 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(n,[{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(){var e;0===this.parent.countDownPointers()&&(e=this.parent.plugins.decelerate)&&(e.x||e.y)&&(e.percentChangeX=e.percentChangeY=this.friction)}},{key:"update",value:function(e){var t,r,i;this.paused||this.interrupt&&0!==this.parent.countDownPointers()||(this.snapping?(e=void((i=this.snapping).time+=e),r=t=void 0,r=i.time>this.time?(e=!0,t=this.startX+this.deltaX,this.startY+this.deltaY):(i=this.ease(i.time,0,1,this.time),t=this.startX+this.deltaX*i,this.startY+this.deltaY*i),this.topLeft?this.parent.moveCorner(t,r):this.parent.moveCenter(t,r),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),e&&(this.removeOnComplete&&this.parent.removePlugin("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)):(i=this.topLeft?this.parent.corner:this.parent.center).x===this.x&&i.y===this.y||this.snapStart())}}]),n}()},{"./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(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}function o(e,t,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(r):void 0:null!==(i=Object.getPrototypeOf(e))?o(i,t,r):void 0}var a=e("./utils"),s=e("./drag"),l=e("./pinch"),u=e("./clamp"),h=e("./clamp-zoom"),c=e("./decelerate"),f=e("./bounce"),p=e("./snap"),d=e("./snap-zoom"),m=e("./follow"),_=e("./wheel"),g=e("./mouse-edges"),v=["drag","pinch","wheel","follow","mouse-edges","decelerate","bounce","snap-zoom","clamp-zoom","snap","clamp"],e=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");e=e||{};var t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(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=a.defaults(e.hitAreaFullScreen,!0),t.forceHitArea=e.forceHitArea,t.threshold=a.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 t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i(r,[{key:"removeListeners",value:function(){this.ticker.remove(this.tickerFunction),this.div.removeEventListener("wheel",this.wheelFunction)}},{key:"destroy",value:function(e){o(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){"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},r=this.plugins.decelerate,i=this.plugins.bounce,r&&(r.x||r.y)||i&&(i.toX||i.toY)||(this.clickedAvailable=!0)):this.clickedAvailable=!1;var t=!0,r=!1,i=void 0;try{for(var n,o=this.pluginsList[Symbol.iterator]();!(t=(n=o.next()).done);t=!0)n.value.down(e)}catch(e){r=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw i}}}}},{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,o=this.pluginsList[Symbol.iterator]();!(t=(n=o.next()).done);t=!0)n.value.move(e)}catch(e){r=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw i}}this.clickedAvailable&&(r=e.data.global.x-this.last.x,i=e.data.global.y-this.last.y,(this.checkThreshold(r)||this.checkThreshold(i))&&(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 o,a=this.pluginsList[Symbol.iterator]();!(r=(o=a.next()).done);r=!0)o.value.up(e)}catch(e){i=!0,n=e}finally{try{!r&&a.return&&a.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,t=!1,n=void 0;try{for(var o,a=this.pluginsList[Symbol.iterator]();!(i=(o=a.next()).done);i=!0)o.value.wheel(e)&&(r=!0)}catch(e){t=!0,n=e}finally{try{!i&&a.return&&a.return()}finally{if(t)throw n}}return r}}}},{key:"toWorld",value:function(){return 2===arguments.length?this.toLocal({x:arguments[0],y:arguments[1]}):this.toLocal(arguments[0])}},{key:"toScreen",value:function(){return 2===arguments.length?this.toGlobal({x:arguments[0],y:arguments[1]}):this.toGlobal(arguments[0])}},{key:"moveCenter",value:function(){var e=void 0,t=void 0,t=isNaN(arguments[0])?(e=arguments[0].x,arguments[0].y):(e=arguments[0],arguments[1]);return 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,e=(t&&(r=this.center),this.scale.x+this.scale.x*e);return this.scale.set(e),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 d(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=[],r=this.trackedPointers;for(e in r){var i=r[e];-1!==this.touches.indexOf(i.pointerId)&&t.push(i)}return t}},{key:"getPointers",value:function(){var e,t=[],r=this.trackedPointers;for(e in r)t.push(r[e]);return t}},{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=v[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;this.plugins[o]&&this.pluginsList.push(this.plugins[o])}}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 s(this,e),this.pluginsSort(),this}},{key:"clamp",value:function(e){return this.plugins.clamp=new u(this,e),this.pluginsSort(),this}},{key:"decelerate",value:function(e){return this.plugins.decelerate=new c(this,e),this.pluginsSort(),this}},{key:"bounce",value:function(e){return this.plugins.bounce=new f(this,e),this.pluginsSort(),this}},{key:"pinch",value:function(e){return this.plugins.pinch=new l(this,e),this.pluginsSort(),this}},{key:"snap",value:function(e,t,r){return this.plugins.snap=new p(this,e,t,r),this.pluginsSort(),this}},{key:"follow",value:function(e,t){return this.plugins.follow=new m(this,e,t),this.pluginsSort(),this}},{key:"wheel",value:function(e){return this.plugins.wheel=new _(this,e),this.pluginsSort(),this}},{key:"clampZoom",value:function(e){return this.plugins["clamp-zoom"]=new h(this,e),this.pluginsSort(),this}},{key:"mouseEdges",value:function(e){return this.plugins["mouse-edges"]=new g(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.width},set:function(e){this._worldWidth=e,this.resizePlugins()}},{key:"worldHeight",get:function(){return 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.Container);PIXI.extras.Viewport=e,t.exports=e},{"./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 i=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e};function n(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)}}var o=e("./plugin");t.exports=function(){var e=r,t=o;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(e,t){if(this instanceof r)return(e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))).percent=(t=t||{}).percent||.1,e.center=t.center,e.reverse=t.reverse,e;throw new TypeError("Cannot call a class as a function")}return 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,[{key:"wheel",value:function(e){var t,r,i;this.paused||(i=void 0,i=this.reverse?0<e.deltaY?1+this.percent:1-this.percent:0<e.deltaY?1-this.percent:1+this.percent,t=this.parent.getPointerPosition(e),r=void 0,this.center||(r=this.parent.toLocal(t)),this.parent.scale.x*=i,this.parent.scale.y*=i,this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"}),(i=this.parent.plugins["clamp-zoom"])&&i.clamp(),this.center?this.parent.moveCenter(this.center):(i=this.parent.toGlobal(r),this.parent.x+=t.x-i.x,this.parent.y+=t.y-i.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())}}]),r}()},{"./plugin":9}],15:[function(e,t,r){!function(){var 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=1.70158,o=0,a=r;return 0!==e&&(e/=i),o=o||.3*i,n=a<Math.abs(r)?(a=r,o/4):o/(2*Math.PI)*Math.asin(r/a),-(a*Math.pow(2,10*--e)*Math.sin((e*i-n)*(2*Math.PI)/o))+t},easeOutElastic:function(e,t,r,i){var n=1.70158,o=0,a=r;return 0!==e&&(e/=i),o=o||.3*i,n=a<Math.abs(r)?(a=r,o/4):o/(2*Math.PI)*Math.asin(r/a),a*Math.pow(2,-10*e)*Math.sin((e*i-n)*(2*Math.PI)/o)+r+t},easeInOutElastic:function(e,t,r,i){var n=1.70158,o=0,a=r;return 0!==e&&(e/=i/2),o=o||i*(.3*1.5),n=a<Math.abs(r)?(a=r,o/4):o/(2*Math.PI)*Math.asin(r/a),e<1?a*Math.pow(2,10*--e)*Math.sin((e*i-n)*(2*Math.PI)/o)*-.5+t:a*Math.pow(2,-10*--e)*Math.sin((e*i-n)*(2*Math.PI)/o)*.5+r+t},easeInBack:function(e,t,r,i,n){return r*(e/=i)*e*(((n=void 0===n?1.70158:n)+1)*e-n)+t},easeOutBack:function(e,t,r,i,n){return r*((e=e/i-1)*e*(((n=void 0===n?1.70158: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}};(function(e){"object"==typeof r?t.exports=e:"function"==typeof define&&define.amd?define([],e):this.penner=e})(n)}.call(this)},{}]},{},[13]),!function(){"use strict";var h=new("undefined"==typeof WebKitCSSMatrix?DOMMatrix:WebKitCSSMatrix);function c(e,t,r){this.x=e,this.y=t,this.z=r}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:function(t){try{return new("undefined"==typeof WebKitCSSMatrix?DOMMatrix:WebKitCSSMatrix)(t)}catch(e){return console.warn(t),console.warn(e.toString()),h}}(i)).multiply(t),r=r.parentNode;for(var n=e.offsetWidth,o=e.offsetHeight,a=4,s=1/0,l=1/0;0<=--a;){var u=new c(0===a||1===a?0:n,0===a||3===a?0:o,0).transformBy(t);u.x<s&&(s=u.x),u.y<l&&(l=u.y)}e=e.getBoundingClientRect();return t=h.translate(window.pageXOffset+e.left-s,window.pageYOffset+e.top-l,0).multiply(t)}c.prototype.transformBy=function(e){e=e.multiply(h.translate(this.x,this.y,this.z));return new c(e.m41,e.m42,e.m43)},window.convertPointFromPageToNode=function(e,t,r){return new c(t,r,0).transformBy(i(e).inverse())},window.convertPointFromNodeToPage=function(e,t,r){return new c(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,i,n=0,o=0,a=0,s=0,l=null,u=null,h={_points:[]};for(n in e)if(e.hasOwnProperty(n))for(i=e[n].match(new RegExp(".{1,"+ +n+"}","g")),o=0;o<i.length;o+=1){for(l=i[o].replace(/[0-9]/g,"").split(""),t=i[o].split(/\D/),u=h,a=0;a<l.length;a+=1)u[r=l[a].charCodeAt(0)]||(u[r]={}),u=u[r];for(u._points=[],s=0;s<t.length;s+=1)u._points[s]=t[s]||0}return h},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,o,a,s,l,u,h=[],c=[],f=e.toLowerCase(),p=Math.max,d=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]=t[i].charCodeAt(c[i]=0);for(i=0;i<s;i+=1)for(a=d,n=i;n<s&&(a=a[h[n]]);n+=1)if(l=a._points)for(o=0,u=l.length;o<u;o+=1)c[i+o]=p(c[i+o],l[o]);for(i=1;i<s-1;i+=1)i>this.leftMin&&i<s-this.rightMin&&c[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}(); |