253 lines
1.1 MiB
253 lines
1.1 MiB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OptimalSelect=e():t.OptimalSelect=e()}(this,function(){return i=[function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertNodeList=function(t){for(var e=t.length,i=new Array(e),r=0;r<e;r++)i[r]=t[r];return i},e.escapeValue=function(t){return t&&t.replace(/['"`\\/:\?&!#$%^()[\]{|}*+;,.<=>@~]/g,"\\$&").replace(/\n/g,"A")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCommonAncestor=function(t){for(var e=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).root,r=void 0===e?document:e,n=[],i=(t.forEach(function(t,e){for(var i=[];t!==r;)t=t.parentNode,i.unshift(t);n[e]=i}),n.sort(function(t,e){return t.length-e.length}),n.shift()),s=null,o=0,a=i.length;o<a;o++)if("break"===function(){var e=i[o];if(n.some(function(t){return!t.some(function(t){return t===e})}))return"break";s=e}())break;return s},e.getCommonProperties=function(t){var l={classes:[],attributes:{},tag:null};return t.forEach(function(t){var i,r,n,e,s=l.classes,o=l.attributes,a=l.tag;void 0!==s&&((i=t.getAttribute("class"))?(i=i.trim().split(" "),s.length?(s=s.filter(function(e){return i.some(function(t){return t===e})})).length?l.classes=s:delete l.classes:l.classes=i):delete l.classes),void 0!==o&&(r=t.attributes,n=Object.keys(r).reduce(function(t,e){var e=r[e],i=e.name;return e&&"class"!==i&&(t[i]=e.value),t},{}),s=Object.keys(n),e=Object.keys(o),s.length?e.length?(o=e.reduce(function(t,e){var i=o[e];return i===n[e]&&(t[e]=i),t},{}),Object.keys(o).length?l.attributes=o:delete l.attributes):l.attributes=n:delete l.attributes),void 0!==a&&(s=t.tagName.toLowerCase(),a?s!==a&&delete l.tag:l.tag=s)}),l}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)||(e=e.length?(0,u.convertNodeList)(e):[e]);if(!e.length||e.some(function(t){return 1!==t.nodeType}))throw new Error('Invalid input - to compare HTMLElements its necessary to provide a reference of the selected node(s)! (missing "elements")');(0,h.default)(e[0],i);var r=t.replace(/> /g,">").split(/\s+(?=(?:(?:[^"]*"){2})*[^"]*$)/);if(r.length<2)return c("",t,"",e);var n=[r.pop()];for(;1<r.length;){var s=r.pop(),o=r.join(" "),a=n.join(" "),l=o+" "+a;document.querySelectorAll(l).length!==e.length&&n.unshift(c(o,s,a,e))}n.unshift(r[0]),(r=n)[0]=c("",r[0],r.slice(1).join(" "),e),r[r.length-1]=c(r.slice(0,-1).join(" "),r[r.length-1],"",e);return r.join(" ").replace(/>/g,"> ").trim()};var r=i(3),h=(r=r)&&r.__esModule?r:{default:r},u=i(0);function c(i,r,n,s){if(i.length&&(i+=" "),n.length&&(n=" "+n),/\[*\]/.test(r)){var t=r.replace(/=.*$/,"]"),o=""+i+t+n;if(p(document.querySelectorAll(o),s))r=t;else for(var a=document.querySelectorAll(""+i+t),l=0,e=a.length;l<e;l++)if("break"===function(){var t,e=a[l];if(s.some(function(t){return e.contains(t)}))return t=e.tagName.toLowerCase(),o=""+i+t+n,p(document.querySelectorAll(o),s)&&(r=t),"break"}())break}if(/>/.test(r)&&(t=r.replace(/>/,""),o=""+i+t+n,p(document.querySelectorAll(o),s)&&(r=t)),/:nth-child/.test(r)&&(t=r.replace(/nth-child/g,"nth-of-type"),o=""+i+t+n,p(document.querySelectorAll(o),s)&&(r=t)),/\.\S+\.\S+/.test(r)){for(var h=r.trim().split(".").slice(1).map(function(t){return"."+t}).sort(function(t,e){return t.length-e.length});h.length;){var u=r.replace(h.shift(),"").trim();if(!(o=(""+i+u+n).trim()).length||">"===o.charAt(0)||">"===o.charAt(o.length-1))break;p(document.querySelectorAll(o),s)&&(r=u)}if((h=r&&r.match(/\./g))&&2<h.length)for(var c=document.querySelectorAll(""+i+r),l=0,e=c.length;l<e;l++)if("break"===function(){var t,e=c[l];if(s.some(function(t){return e.contains(t)}))return t=e.tagName.toLowerCase(),o=""+i+t+n,p(document.querySelectorAll(o),s)&&(r=t),"break"}())break}return r}function p(i,t){var r=i.length;return r===t.length&&t.every(function(t){for(var e=0;e<r;e++)if(i[e]===t)return!0;return!1})}t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var i=e,r=[],n=!0,e=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!i||r.length!==i);n=!0);}catch(t){e=!0,s=t}finally{try{!n&&a.return&&a.return()}finally{if(e)throw s}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function _(t,i){t.forEach(function(t){var e=!0;i(t,function(){return e=!1}),t.childTags&&e&&_(t.childTags,i)})}function g(t,e,i){for(;t.parent;){if(i(t=t.parent))return t;if(t===e)break}return null}e.default=function(t,e){return!1;var i=Object.getPrototypeOf(!0);Object.getOwnPropertyDescriptor(i,"childTags")||Object.defineProperty(i,"childTags",{enumerable:!0,get:function(){return this.children.filter(function(t){return"tag"===t.type||"script"===t.type||"style"===t.type})}});Object.getOwnPropertyDescriptor(i,"attributes")||Object.defineProperty(i,"attributes",{enumerable:!0,get:function(){var r=this.attribs,t=Object.keys(r),e=t.reduce(function(t,e,i){return t[i]={name:e,value:r[e]},t},{});return Object.defineProperty(e,"length",{enumerable:!1,configurable:!1,value:t.length}),e}});i.getAttribute||(i.getAttribute=function(t){return this.attribs[t]||null});i.getElementsByTagName||(i.getElementsByTagName=function(e){var i=[];return _(this.childTags,function(t){t.name!==e&&"*"!==e||i.push(t)}),i});i.getElementsByClassName||(i.getElementsByClassName=function(t){var i=t.trim().replace(/\s+/g," ").split(" "),r=[];return _([this],function(t){var e=t.attribs.class;e&&i.every(function(t){return-1<e.indexOf(t)})&&r.push(t)}),r});i.querySelectorAll||(i.querySelectorAll=function(t){var i=this,r=(t=t.replace(/(>)(\S)/g,"$1 $2").trim()).split(" ").reverse().map(function(t,e){var i,r,n,s=0===e,e=t.split(":"),t=m(e,2),o=t[0],e=t[1],a=null,l=null;switch(!0){case/>/.test(o):l=function(e){return function(t){return t(e.parent)&&e.parent}};break;case/^\./.test(o):var h=o.substr(1).split(".");a=function(t){var e=t.attribs.class;return e&&h.every(function(t){return-1<e.indexOf(t)})},l=function(t,e){return s?t.getElementsByClassName(h.join(" ")):"function"==typeof t?t(a):g(t,e,a)};break;case/^\[/.test(o):var u=o.replace(/\[|\]|"/g,"").split("="),u=m(u,2),c=u[0],p=u[1];a=function(t){return-1<Object.keys(t.attribs).indexOf(c)&&(!p||t.attribs[c]===p)},l=function(t,e){if(s){r=[],_([t],function(t){a(t)&&r.push(t)});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof t?t(a):g(t,e,a)};break;case/^#/.test(o):var d=o.substr(1);a=function(t){return t.attribs.id===d},l=function(t,e){if(s){r=[],_([t],function(t,e){a(t)&&(r.push(t),e())});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof t?t(a):g(t,e,a)};break;case/\*/.test(o):a=function(t){return!0},l=function(t,e){if(s){r=[],_([t],function(t){return r.push(t)});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof t?t(a):g(t,e,a)};break;default:a=function(t){return t.name===o},l=function(t,e){if(s){r=[],_([t],function(t){a(t)&&r.push(t)});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof t?t(a):g(t,e,a)}}return e?(t=e.match(/-(child|type)\((\d+)\)$/),i=t[1],r=parseInt(t[2],10)-1,n=function(e){if(e){var t=e.parent.childTags;if((t="type"===i?t.filter(a):t).findIndex(function(t){return t===e})===r)return!0}return!1},function(t){t=l(t);return s?t.reduce(function(t,e){return n(e)&&t.push(e),t},[]):n(t)&&t}):l}),t=r.shift(),n=r.length;return t(this).filter(function(t){for(var e=0;e<n;){if(!(t=r[e](t,i)))return!1;e+=1}return!0})});i.contains||(i.contains=function(i){var r=!1;return _([this],function(t,e){t===i&&(r=!0,e())}),r});return!0},t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.getSingleSelector=u,e.getMultiSelector=c,e.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(!t.length||t.name?u:c)(t,e)};var s=h(i(3)),n=h(i(5)),o=h(i(2)),a=i(0),l=i(1);function h(t){return t&&t.__esModule?t:{default:t}}function u(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(1!==(t=3===t.nodeType?t.parentNode:t).nodeType)throw new Error('Invalid input - only HTMLElements or representations of them are supported! (not "'+(void 0===t?"undefined":r(t))+'")');(0,s.default)(t,e);var i=(0,n.default)(t,e);return(0,o.default)(i,t,e)}function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if((t=Array.isArray(t)?t:(0,a.convertNodeList)(t)).some(function(t){return 1!==t.nodeType}))throw new Error("Invalid input - only an Array of HTMLElements or representations of them is supported!");(0,s.default)(t[0],e);var i=u((0,l.getCommonAncestor)(t,e),e),r=function(t){var t=(0,l.getCommonProperties)(t),e=t.classes,i=t.attributes,t=t.tag,r=[];t&&r.push(t);e&&(t=e.map(function(t){return"."+t}).join(""),r.push(t));i&&(e=Object.keys(i).reduce(function(t,e){return t.push("["+e+'="'+i[e]+'"]'),t},[]).join(""),r.push(e));return[r.join("")]}(t)[0],i=(0,o.default)(i+" "+r,t,e),n=(0,a.convertNodeList)(document.querySelectorAll(i));return t.every(function(e){return n.some(function(t){return t===e})})?i:console.warn("\n The selected elements can't be efficiently mapped.\n Its probably best to use multiple single selectors instead!\n ",t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=e.root,r=void 0===i?document:i,i=e.skip,n=void 0===i?null:i,i=e.priority,s=void 0===i?["id","class","href","src"]:i,i=e.ignore,o=void 0===i?{}:i,a=[],l=t,h=a.length,u=!1,c=n&&(Array.isArray(n)?n:[n]).map(function(e){return"function"!=typeof e?function(t){return t===e}:e});Object.keys(o).forEach(function(t){"class"===t&&(u=!0);var i=o[t];"function"!=typeof i&&("boolean"==typeof(i="string"==typeof(i="number"==typeof i?i.toString():i)?new RegExp((0,p.escapeValue)(i).replace(/\\/g,"\\\\")):i)&&(i=i?/(?:)/:/.^/),o[t]=function(t,e){return i.test(e)})}),u&&function(){var r=o.attribute;o.attribute=function(t,e,i){return o.class(e)||r&&r(t,e,i)}}();for(;l!==r;){if(!0!==function(e){return n&&c.some(function(t){return t(e)})}(l)){if(d(s,l,o,a,r))break;if(f(l,o,a,r))break;d(s,l,o,a),a.length===h&&f(l,o,a),a.length===h&&!function(t,e,i,r){for(var n=e.parentNode,s=n.childTags||n.children,o=0,a=s.length;o<a;o++){var l,h,u=s[o];if(u===e)return(l=m(t,u,i))?(h="> "+l+":nth-child("+(o+1)+")",r.unshift(h)):console.warn("\n Element couldn't be matched through strict ignore pattern!\n ",u,i,l)}}(s,l,o,a)}l=l.parentNode,h=a.length}l===r&&(e=m(s,l,o),a.unshift(e));return a.join(" ")};var p=i(0),c={attribute:function(t){return-1<["style","data-reactid","data-react-checksum"].indexOf(t)}};function d(t,e,i,r,n){n=4<arguments.length&&void 0!==n?n:e.parentNode,t=s(t,e,i);if(t&&1===n.querySelectorAll(t).length)return r.unshift(t),1}function s(i,t,e){for(var r=t.attributes,n=Object.keys(r).sort(function(t,e){t=i.indexOf(r[t].name),e=i.indexOf(r[e].name);return-1===e?-1===t?0:-1:t-e}),s=0,o=n.length;s<o;s++){var a=n[s],a=r[a],l=a.name,a=(0,p.escapeValue)(a.value),h=e[l]||e.attribute,u=c[l]||c.attribute;if(!_(h,l,a,u))return h="["+l+'="'+a+'"]',!1===/\b\d/.test(a)&&("id"===l&&(h="#"+a),"class"===l&&(h="."+a.trim().replace(/\s+/g,"."))),h}return null}function f(t,e,i,r){r=3<arguments.length&&void 0!==r?r:t.parentNode,t=n(t,e);if(t&&1===r.getElementsByTagName(t).length)return i.unshift(t),1}function n(t,e){t=t.tagName.toLowerCase();return _(e.tag,null,t)?null:t}function m(t,e,i){return s(t,e,i)||n(e,i)}function _(t,e,i,r){return!i||(t=t||r)&&t(e,i,r)}t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.common=e.optimize=e.getMultiSelector=e.getSingleSelector=e.select=void 0;var r=i(4),n=(Object.defineProperty(e,"getSingleSelector",{enumerable:!0,get:function(){return r.getSingleSelector}}),Object.defineProperty(e,"getMultiSelector",{enumerable:!0,get:function(){return r.getMultiSelector}}),o(r)),s=o(i(2)),i=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(i(1));function o(t){return t&&t.__esModule?t:{default:t}}e.select=n.default,e.optimize=s.default,e.common=i,e.default=n.default}],n={},r.m=i,r.c=n,r.i=function(t){return t},r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=6);function r(t){var e;return(n[t]||(e=n[t]={i:t,l:!1,exports:{}},i[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}var i,n}),function(n,L,u){"use strict";var N=["","webkit","Moz","MS","ms","o"],z=L.createElement("div"),B="function",s=Math.round,c=Math.abs,U=Date.now;function j(t,e,i){return setTimeout(Y(t,i),e)}function i(t,e,i){return Array.isArray(t)&&(o(t,i[e],i),1)}function o(t,e,i){if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==u)for(r=0;r<t.length;)e.call(i,t[r],r,t),r++;else for(var r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function G(i,t,e){var r="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),t=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",e=n.console&&(n.console.warn||n.console.log);return e&&e.call(n.console,r,t),i.apply(this,arguments)}}var a="function"!=typeof Object.assign?function(t){if(t===u||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(r!==u&&null!==r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}:Object.assign,X=G(function(t,e,i){for(var r=Object.keys(e),n=0;n<r.length;)i&&t[r[n]]!==u||(t[r[n]]=e[r[n]]),n++;return t},"extend","Use `assign`."),H=G(function(t,e){return X(t,e,!0)},"merge","Use `assign`.");function t(t,e,i){var e=e.prototype,r=t.prototype=Object.create(e);r.constructor=t,r._super=e,i&&a(r,i)}function Y(t,e){return function(){return t.apply(e,arguments)}}function W(t,e){return typeof t==B?t.apply(e&&e[0]||u,e):t}function V(t,e){return t===u?e:t}function e(e,t,i){o(h(t),function(t){e.addEventListener(t,i,!1)})}function r(e,t,i){o(h(t),function(t){e.removeEventListener(t,i,!1)})}function q(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function l(t,e){return-1<t.indexOf(e)}function h(t){return t.trim().split(/\s+/g)}function p(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var r=0;r<t.length;){if(i&&t[r][i]==e||!i&&t[r]===e)return r;r++}return-1}function d(t){return Array.prototype.slice.call(t,0)}function K(t,i,e){for(var r=[],n=[],s=0;s<t.length;){var o=i?t[s][i]:t[s];p(n,o)<0&&r.push(t[s]),n[s]=o,s++}return r=e?i?r.sort(function(t,e){return t[i]>e[i]}):r.sort():r}function f(t,e){for(var i,r=e[0].toUpperCase()+e.slice(1),n=0;n<N.length;){if((i=(i=N[n])?i+r:e)in t)return i;n++}return u}var Z=1;function Q(t){t=t.ownerDocument||t;return t.defaultView||t.parentWindow||n}var $="ontouchstart"in n,J=f(n,"PointerEvent")!==u,tt=$&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),m="touch",et="mouse",it=25,_=1,g=4,v=8,y=1,b=2,x=4,T=8,w=16,E=b|x,S=T|w,rt=E|S,nt=["x","y"],A=["clientX","clientY"];function O(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){W(e.options.enable,[e])&&i.handler(t)},this.init()}function st(t,e,i){var r=i.pointers.length,n=i.changedPointers.length,s=e&_&&r-n==0,r=e&(g|v)&&r-n==0,n=(i.isFirst=!!s,i.isFinal=!!r,s&&(t.session={}),i.eventType=e,t),r=i,s=n.session,e=r.pointers,o=e.length,o=(s.firstInput||(s.firstInput=ot(r)),1<o&&!s.firstMultiple?s.firstMultiple=ot(r):1===o&&(s.firstMultiple=!1),s.firstInput),a=s.firstMultiple,l=(a||o).center,h=r.center=at(e),o=(r.timeStamp=U(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=ut(l,h),r.distance=P(l,h),function(t,e){var i=e.center,r=t.offsetDelta||{},n=t.prevDelta||{},s=t.prevInput||{};e.eventType!==_&&s.eventType!==g||(n=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=t.offsetDelta={x:i.x,y:i.y});e.deltaX=n.x+(i.x-r.x),e.deltaY=n.y+(i.y-r.y)}(s,r),r.offsetDirection=ht(r.deltaX,r.deltaY),lt(r.deltaTime,r.deltaX,r.deltaY)),l=(r.overallVelocityX=o.x,r.overallVelocityY=o.y,r.overallVelocity=c(o.x)>c(o.y)?o.x:o.y,r.scale=a?function(t,e){return P(e[0],e[1],A)/P(t[0],t[1],A)}(a.pointers,e):1,r.rotation=a?function(t,e){return ut(e[1],e[0],A)+ut(t[1],t[0],A)}(a.pointers,e):0,r.maxPointers=!s.prevInput||r.pointers.length>s.prevInput.maxPointers?r.pointers.length:s.prevInput.maxPointers,function(t,e){var i,r,n,s=t.lastInterval||e,o=e.timeStamp-s.timeStamp;{var a,l;e.eventType!=v&&(it<o||s.velocity===u)?(a=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,o=lt(o,a,l),r=o.x,n=o.y,i=c(o.x)>c(o.y)?o.x:o.y,a=ht(a,l),t.lastInterval=e):(i=s.velocity,r=s.velocityX,n=s.velocityY,a=s.direction)}e.velocity=i,e.velocityX=r,e.velocityY=n,e.direction=a}(s,r),n.element);q(r.srcEvent.target,l)&&(l=r.srcEvent.target),r.target=l,t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function ot(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:s(t.pointers[i].clientX),clientY:s(t.pointers[i].clientY)},i++;return{timeStamp:U(),pointers:e,center:at(e),deltaX:t.deltaX,deltaY:t.deltaY}}function at(t){var e=t.length;if(1===e)return{x:s(t[0].clientX),y:s(t[0].clientY)};for(var i=0,r=0,n=0;n<e;)i+=t[n].clientX,r+=t[n].clientY,n++;return{x:s(i/e),y:s(r/e)}}function lt(t,e,i){return{x:e/t||0,y:i/t||0}}function ht(t,e){return t===e?y:c(t)>=c(e)?t<0?b:x:e<0?T:w}function P(t,e,i){var r=e[(i=i||nt)[0]]-t[i[0]],e=e[i[1]]-t[i[1]];return Math.sqrt(r*r+e*e)}function ut(t,e,i){var r=e[(i=i||nt)[0]]-t[i[0]],e=e[i[1]]-t[i[1]];return 180*Math.atan2(e,r)/Math.PI}O.prototype={handler:function(){},init:function(){this.evEl&&e(this.element,this.evEl,this.domHandler),this.evTarget&&e(this.target,this.evTarget,this.domHandler),this.evWin&&e(Q(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&r(this.element,this.evEl,this.domHandler),this.evTarget&&r(this.target,this.evTarget,this.domHandler),this.evWin&&r(Q(this.element),this.evWin,this.domHandler)}};var ct={mousedown:_,mousemove:2,mouseup:g};function R(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,O.apply(this,arguments)}t(R,O,{handler:function(t){var e=ct[t.type];e&_&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=g),this.pressed&&(e&g&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:et,srcEvent:t}))}});var pt={pointerdown:_,pointermove:2,pointerup:g,pointercancel:v,pointerout:v},dt={2:m,3:"pen",4:et,5:"kinect"},ft="pointerdown",mt="pointermove pointerup pointercancel";function _t(){this.evEl=ft,this.evWin=mt,O.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}n.MSPointerEvent&&!n.PointerEvent&&(ft="MSPointerDown",mt="MSPointerMove MSPointerUp MSPointerCancel"),t(_t,O,{handler:function(t){var e=this.store,i=!1,r=t.type.toLowerCase().replace("ms",""),r=pt[r],n=dt[t.pointerType]||t.pointerType,s=n==m,o=p(e,t.pointerId,"pointerId");r&_&&(0===t.button||s)?o<0&&(e.push(t),o=e.length-1):r&(g|v)&&(i=!0),o<0||(e[o]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:n,srcEvent:t}),i&&e.splice(o,1))}});var gt={touchstart:_,touchmove:2,touchend:g,touchcancel:v};function vt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,O.apply(this,arguments)}t(vt,O,{handler:function(t){var e,i=gt[t.type];i===_&&(this.started=!0),this.started&&(e=function(t,e){var i=d(t.touches),t=d(t.changedTouches);e&(g|v)&&(i=K(i.concat(t),"identifier",!0));return[i,t]}.call(this,t,i),i&(g|v)&&e[0].length-e[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:e[0],changedPointers:e[1],pointerType:m,srcEvent:t}))}});var yt={touchstart:_,touchmove:2,touchend:g,touchcancel:v};function bt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},O.apply(this,arguments)}t(bt,O,{handler:function(t){var e=yt[t.type],i=function(t,e){var i=d(t.touches),r=this.targetIds;if(e&(2|_)&&1===i.length)return r[i[0].identifier]=!0,[i,i];var n,s,o=d(t.changedTouches),a=[],l=this.target;if(s=i.filter(function(t){return q(t.target,l)}),e===_)for(n=0;n<s.length;)r[s[n].identifier]=!0,n++;n=0;for(;n<o.length;)r[o[n].identifier]&&a.push(o[n]),e&(g|v)&&delete r[o[n].identifier],n++;if(a.length)return[K(s.concat(a),"identifier",!0),a]}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:m,srcEvent:t})}});var xt=2500;function Tt(){O.apply(this,arguments);var t=Y(this.handler,this);this.touch=new bt(this.manager,t),this.mouse=new R(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function wt(t){var e,i,t=t.changedPointers[0];t.identifier===this.primaryTouch&&(e={x:t.clientX,y:t.clientY},this.lastTouches.push(e),i=this.lastTouches,setTimeout(function(){var t=i.indexOf(e);-1<t&&i.splice(t,1)},xt))}t(Tt,O,{handler:function(t,e,i){var r=i.pointerType==m,n=i.pointerType==et;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(r)!function(t,e){t&_?(this.primaryTouch=e.changedPointers[0].identifier,wt.call(this,e)):t&(g|v)&&wt.call(this,e)}.call(this,e,i);else if(n&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var n=this.lastTouches[r],s=Math.abs(e-n.x),n=Math.abs(i-n.y);if(s<=25&&n<=25)return!0}return!1}.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Et,St,At=f(z.style,"touchAction"),Ot=At!==u,Pt="compute",Rt="manipulation",C="none",M="pan-x",k="pan-y",Ct=Ot&&(Et={},St=n.CSS&&n.CSS.supports,["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){Et[t]=!St||n.CSS.supports("touch-action",t)}),Et);function Mt(t,e){this.manager=t,this.set(e)}Mt.prototype={set:function(t){t==Pt&&(t=this.compute()),Ot&&this.manager.element.style&&Ct[t]&&(this.manager.element.style[At]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t,e,i=[],r=(o(this.manager.recognizers,function(t){W(t.options.enable,[t])&&(i=i.concat(t.getTouchAction()))}),i.join(" "));return l(r,C)||(t=l(r,M),e=l(r,k),t&&e)?C:t||e?t?M:k:l(r,Rt)?Rt:"auto"},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var r=this.actions,n=l(r,C)&&!Ct[C],s=l(r,k)&&!Ct[k],r=l(r,M)&&!Ct[M];if(n){var o=1===t.pointers.length,a=t.distance<2,t=t.deltaTime<250;if(o&&a&&t)return}return r&&s?void 0:n||s&&i&E||r&&i&S?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};function I(t){this.options=a({},this.defaults,t||{}),this.id=Z++,this.manager=null,this.options.enable=V(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function kt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function It(t){return t==w?"down":t==T?"up":t==b?"left":t==x?"right":""}function Dt(t,e){e=e.manager;return e?e.get(t):t}function D(){I.apply(this,arguments)}function Ft(){D.apply(this,arguments),this.pX=null,this.pY=null}function Lt(){D.apply(this,arguments)}function Nt(){I.apply(this,arguments),this._timer=null,this._input=null}function zt(){D.apply(this,arguments)}function Bt(){D.apply(this,arguments)}function Ut(){I.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function F(t,e){return(e=e||{}).recognizers=V(e.recognizers,F.defaults.preset),new jt(t,e)}I.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){var e;return i(t,"recognizeWith",this)||((e=this.simultaneous)[(t=Dt(t,this)).id]||(e[t.id]=t).recognizeWith(this)),this},dropRecognizeWith:function(t){return i(t,"dropRecognizeWith",this)||(t=Dt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){var e;return i(t,"requireFailure",this)||-1===p(e=this.requireFail,t=Dt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){return i(t,"dropRequireFailure",this)||(t=Dt(t,this),-1<(t=p(this.requireFail,t))&&this.requireFail.splice(t,1)),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){var i=this,t=this.state;function r(t){i.manager.emit(t,e)}t<8&&r(i.options.event+kt(t)),r(i.options.event),e.additionalEvent&&r(e.additionalEvent),8<=t&&r(i.options.event+kt(t))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){t=a({},t);W(this.options.enable,[this,t])?(56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)):(this.reset(),this.state=32)},process:function(t){},getTouchAction:function(){},reset:function(){}},t(D,I,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,r=6&e,t=this.attrTest(t);return r&&(i&v||!t)?16|e:r||t?i&g?8|e:2&e?4|e:2:32}}),t(Ft,D,{defaults:{event:"pan",threshold:10,pointers:1,direction:rt},getTouchAction:function(){var t=this.options.direction,e=[];return t&E&&e.push(k),t&S&&e.push(M),e},directionTest:function(t){var e=this.options,i=!0,r=t.distance,n=t.direction,s=t.deltaX,o=t.deltaY;return n&e.direction||(r=e.direction&E?(n=0===s?y:s<0?b:x,i=s!=this.pX,Math.abs(t.deltaX)):(n=0===o?y:o<0?T:w,i=o!=this.pY,Math.abs(t.deltaY))),t.direction=n,i&&r>e.threshold&&n&e.direction},attrTest:function(t){return D.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=It(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),t(Lt,D,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[C]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){var e;1!==t.scale&&(e=t.scale<1?"in":"out",t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),t(Nt,I,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,r=t.distance<e.threshold,n=t.deltaTime>e.time;if(this._input=t,!r||!i||t.eventType&(g|v)&&!n)this.reset();else if(t.eventType&_)this.reset(),this._timer=j(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&g)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&g?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=U(),this.manager.emit(this.options.event,this._input)))}}),t(zt,D,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[C]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),t(Bt,D,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:E|S,pointers:1},getTouchAction:function(){return Ft.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(E|S)?e=t.overallVelocity:i&E?e=t.overallVelocityX:i&S&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(e)>this.options.velocity&&t.eventType&g},emit:function(t){var e=It(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),t(Ut,I,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Rt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,r=t.distance<e.threshold,n=t.deltaTime<e.time;if(this.reset(),t.eventType&_&&0===this.count)return this.failTimeout();if(r&&n&&i){if(t.eventType!=g)return this.failTimeout();r=!this.pTime||t.timeStamp-this.pTime<e.interval,n=!this.pCenter||P(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,n&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=j(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=j(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))}}),F.VERSION="2.0.7",F.defaults={domEvents:!1,touchAction:Pt,enable:!0,inputTarget:null,inputClass:null,preset:[[zt,{enable:!1}],[Lt,{enable:!1},["rotate"]],[Bt,{direction:E}],[Ft,{direction:E},["swipe"]],[Ut],[Ut,{event:"doubletap",taps:2},["tap"]],[Nt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function jt(t,e){this.options=a({},F.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((e=this).options.inputClass||(J?_t:tt?bt:$?Tt:R))(e,st),this.touchAction=new Mt(this,this.options.touchAction),Gt(this,!0),o(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Gt(i,r){var n,s=i.element;s.style&&(o(i.options.cssProps,function(t,e){n=f(s.style,e),r?(i.oldCssProps[n]=s.style[n],s.style[n]=t):s.style[n]=i.oldCssProps[n]||""}),r||(i.oldCssProps={}))}jt.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);for(var i,r=this.recognizers,n=e.curRecognizer,s=((!n||8&n.state)&&(n=e.curRecognizer=null),0);s<r.length;)i=r[s],2===e.stopped||n&&i!=n&&!i.canRecognizeWith(n)?i.reset():i.recognize(t),!n&&14&i.state&&(n=e.curRecognizer=i),s++}},get:function(t){if(t instanceof I)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){var e;return i(t,"add",this)?this:((e=this.get(t.options.event))&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t)},remove:function(t){var e;return!i(t,"remove",this)&&(t=this.get(t))&&-1!==(t=p(e=this.recognizers,t))&&(e.splice(t,1),this.touchAction.update()),this},on:function(t,e){var i;if(t!==u&&e!==u)return i=this.handlers,o(h(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this},off:function(t,e){var i;if(t!==u)return i=this.handlers,o(h(t),function(t){e?i[t]&&i[t].splice(p(i[t],e),1):delete i[t]}),this},emit:function(t,e){this.options.domEvents&&(i=t,r=e,(n=L.createEvent("Event")).initEvent(i,!0,!0),(n.gesture=r).target.dispatchEvent(n));var i,r,n,s=this.handlers[t]&&this.handlers[t].slice();if(s&&s.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var o=0;o<s.length;)s[o](e),o++}},destroy:function(){this.element&&Gt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(F,{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:rt,Manager:jt,Input:O,TouchAction:Mt,TouchInput:bt,MouseInput:R,PointerEventInput:_t,TouchMouseInput:Tt,SingleTouchInput:vt,Recognizer:I,AttrRecognizer:D,Tap:Ut,Pan:Ft,Swipe:Bt,Pinch:Lt,Rotate:zt,Press:Nt,on:e,off:r,each:o,merge:H,extend:X,assign:a,inherit:t,bindFn:Y,prefixed:f}),(void 0!==n?n:"undefined"!=typeof self?self:{}).Hammer=F,"function"==typeof define&&define.amd?define(function(){return F}):"undefined"!=typeof module&&module.exports?module.exports=F:n.Hammer=F}(window,document),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).propagating=e()}(this,function(){"use strict";var h=null;return function r(n,t){var s,o,a=t||{preventDefault:!1};return n.Manager?((s=n).assign(t=function(t,e){var i=Object.create(a);return e&&s.assign(i,e),r(new s(t,i),i)},s),t.Manager=function(t,e){var i=Object.create(a);return e&&s.assign(i,e),r(new s.Manager(t,i),i)},t):(o=Object.create(n),(t=n.element).hammer||(t.hammer=[]),t.hammer.push(o),n.on("hammer.input",function(t){!0!==a.preventDefault&&a.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(h=t.target)}),o._handlers={},o.on=function(t,i){return e(t).forEach(function(t){var e=o._handlers[t];e||(o._handlers[t]=e=[],n.on(t,l)),e.push(i)}),o},o.off=function(t,i){return e(t).forEach(function(t){var e=o._handlers[t];e&&(0<(e=i?e.filter(function(t){return t!==i}):[]).length?o._handlers[t]=e:(n.off(t,l),delete o._handlers[t]))}),o},o.emit=function(t,e){h=e.target,n.emit(t,e)},o.destroy=function(){var t=n.element.hammer,e=t.indexOf(o);-1!==e&&t.splice(e,1),t.length||delete n.element.hammer,o._handlers={},n.destroy()},o);function e(t){return t.match(/[^ ]+/g)}function l(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}for(var e=!1,i=(t.stopPropagation=function(){e=!0},t.srcEvent.stopPropagation.bind(t.srcEvent)),r=("function"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()}),t.firstTarget=h);r&&!e;){var n=r.hammer;if(n)for(var s,o=0;o<n.length;o++)if(s=n[o]._handlers[t.type])for(var a=0;a<s.length&&!e;a++)s[a](t);r=r.parentNode}}}});var PIXI=function(J){"use strict";var I=setTimeout;function D(t){return Boolean(t&&void 0!==t.length)}function F(){}function L(t){if(!(this instanceof L))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],G(t,this)}function N(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,L._immediateFn(function(){var t,e=1===i._state?r.onFulfilled:r.onRejected;if(null===e)(1===i._state?z:B)(r.promise,i._value);else{try{t=e(i._value)}catch(t){return void B(r.promise,t)}z(r.promise,t)}}))}function z(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if(t instanceof L)return e._state=3,e._value=t,void U(e);if("function"==typeof i)return void G((r=i,n=t,function(){r.apply(n,arguments)}),e)}e._state=1,e._value=t,U(e)}catch(t){B(e,t)}var r,n}function B(t,e){t._state=2,t._value=e,U(t)}function U(t){2===t._state&&0===t._deferreds.length&&L._immediateFn(function(){t._handled||L._unhandledRejectionFn(t._value)});for(var e=0,i=t._deferreds.length;e<i;e++)N(t,t._deferreds[e]);t._deferreds=null}function j(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function G(t,e){var i=!1;try{t(function(t){i||(i=!0,z(e,t))},function(t){i||(i=!0,B(e,t))})}catch(t){i||(i=!0,B(e,t))}}L.prototype.catch=function(t){return this.then(null,t)},L.prototype.then=function(t,e){var i=new this.constructor(F);return N(this,new j(t,e,i)),i},L.prototype.finally=function(e){var i=this.constructor;return this.then(function(t){return i.resolve(e()).then(function(){return t})},function(t){return i.resolve(e()).then(function(){return i.reject(t)})})},L.all=function(e){return new L(function(n,s){if(!D(e))return s(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(e);if(0===o.length)return n([]);var a=o.length;for(var t=0;t<o.length;t++)!function e(i,t){try{if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if("function"==typeof r)return void r.call(t,function(t){e(i,t)},s)}o[i]=t,0==--a&&n(o)}catch(t){s(t)}}(t,o[t])})},L.allSettled=function(i){return new this(function(n,t){if(!i||void 0===i.length)return t(new TypeError(typeof i+" "+i+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var s=Array.prototype.slice.call(i);if(0===s.length)return n([]);var o=s.length;for(var e=0;e<s.length;e++)!function e(i,t){if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if("function"==typeof r)return void r.call(t,function(t){e(i,t)},function(t){s[i]={status:"rejected",reason:t},0==--o&&n(s)})}s[i]={status:"fulfilled",value:t},0==--o&&n(s)}(e,s[e])})},L.resolve=function(e){return e&&"object"==typeof e&&e.constructor===L?e:new L(function(t){t(e)})},L.reject=function(i){return new L(function(t,e){e(i)})},L.race=function(n){return new L(function(t,e){if(!D(n))return e(new TypeError("Promise.race accepts an array"));for(var i=0,r=n.length;i<r;i++)L.resolve(n[i]).then(t,e)})},L._immediateFn="function"==typeof setImmediate?function(t){setImmediate(t)}:function(t){I(t,0)},L._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var X=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;for(var W,t=function(){try{if(Object.assign){var t=new String("abc");if(t[5]="de","5"!==Object.getOwnPropertyNames(t)[0]){for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;var r,n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"===n.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0}}}catch(t){}}()?Object.assign:function(t,e){for(var i,r=arguments,n=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var o in i=Object(r[s]))H.call(i,o)&&(n[o]=i[o]);if(X)for(var a=X(i),l=0;l<a.length;l++)Y.call(i,a[l])&&(n[a[l]]=i[a[l]])}return n},V=("undefined"==typeof globalThis&&("undefined"!=typeof self?self.globalThis=self:"undefined"!=typeof global&&(global.globalThis=global)),globalThis.Promise||(globalThis.Promise=L),Object.assign||(Object.assign=t),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()),q=["ms","moz","webkit","o"],K=0;K<q.length&&!globalThis.requestAnimationFrame;++K){var Z=q[K];globalThis.requestAnimationFrame=globalThis[Z+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[Z+"CancelAnimationFrame"]||globalThis[Z+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(t){if("function"!=typeof t)throw new TypeError(t+"is not a function");var e=Date.now(),i=16+V-e;return i<0&&(i=0),V=e,globalThis.self.setTimeout(function(){V=Date.now(),t(performance.now())},i)}),globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(t){return clearTimeout(t)}),Math.sign||(Math.sign=function(t){return 0===(t=Number(t))||isNaN(t)?t:0<t?1:-1}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),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),(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=Io=Io||{})[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR",(t=_o=_o||{})[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",(t=Tr=Tr||{})[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL",(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={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT",(t=no=no||{})[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",(t=Xe=Xe||{}).LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp",(t=Sr=Sr||{})[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH";function Q(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&1<t.maxTouchPoints&&"undefined"==typeof MSStream}var t={createCanvas:function(t,e){var i=document.createElement("canvas");return i.width=t,i.height=e,i},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var t;return null!=(t=document.baseURI)?t:window.location.href},fetch:function(t,e){return fetch(t,e)}},e=/iPhone/i,$=/iPod/i,it=/iPad/i,rt=/\biOS-universal(?:.+)Mac\b/i,nt=/\bAndroid(?:.+)Mobile\b/i,st=/Android/i,i=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,r=/Silk/i,n=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,o=/BlackBerry/i,ot=/BB10/i,a=/Opera Mini/i,at=/\b(CriOS|Chrome)(?:.+)Mobile/i,lt=/Mobile(?:.+)Firefox\b/i;f=globalThis.navigator,Xt={userAgent:"",platform:"",maxTouchPoints:0},f||"undefined"==typeof navigator?"string"==typeof f?Xt.userAgent=f:f&&f.userAgent&&(Xt={userAgent:f.userAgent,platform:f.platform,maxTouchPoints:f.maxTouchPoints||0}):Xt={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0},void 0!==(d=(f=void 0!==(d=(f=Xt.userAgent).split("[FBAN"))[1]?d[0]:f).split("Twitter"))[1]&&(f=d[0]),ht=f,(f={apple:{phone:(d=function(t){return t.test(ht)})(e)&&!d(n),ipod:d($),tablet:!d(e)&&(d(it)||Q(Xt))&&!d(n),universal:d(rt),device:(d(e)||d($)||d(it)||d(rt)||Q(Xt))&&!d(n)},amazon:{phone:d(i),tablet:!d(i)&&d(r),device:d(i)||d(r)},android:{phone:!d(n)&&d(i)||!d(n)&&d(nt),tablet:!d(n)&&!d(i)&&!d(nt)&&(d(r)||d(st)),device:!d(n)&&(d(i)||d(r)||d(nt)||d(st))||d(/\bokhttp\b/i)},windows:{phone:d(n),tablet:d(s),device:d(n)||d(s)},other:{blackberry:d(o),blackberry10:d(ot),opera:d(a),firefox:d(lt),chrome:d(at),device:d(o)||d(ot)||d(a)||d(lt)||d(at)},any:!1,phone:!1,tablet:!1}).any=f.apple.device||f.android.device||f.windows.device||f.other.device,f.phone=f.apple.phone||f.android.phone||f.windows.phone,f.tablet=f.apple.tablet||f.android.tablet||f.windows.tablet;var ht,ut=f;var C={ADAPTER:t,MIPMAP_TEXTURES:Tr.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Sr.NONE,SPRITE_MAX_TEXTURES:(e=32,$=!0,(ut.tablet||ut.phone)&&(ut.apple.device&&(re=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(re[1],10)<11&&($=!1),ut.android.device&&(re=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(re[1],10)<7&&($=!1)),$?e: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:no.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:_o.CLAMP,SCALE_MODE:Io.LINEAR,PRECISION_VERTEX:Xe.HIGH,PRECISION_FRAGMENT:ut.apple.device?Xe.HIGH:Xe.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!ut.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pt(t,e,i){return t(i={path:e,exports:{},require:function(t,e){throw null==e&&i.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},i.exports),i.exports}var it=pt(function(t){var r=Object.prototype.hasOwnProperty,f="~";function i(){}function s(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new s(i,r||t,n),r=f?f+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],i]:t._events[r].push(i):(t._events[r]=i,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function e(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(f=!1)),e.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)r.call(t,e)&&i.push(f?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},e.prototype.listeners=function(t){var t=f?f+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,r=e.length,n=new Array(r);i<r;i++)n[i]=e[i].fn;return n},e.prototype.listenerCount=function(t){t=f?f+t:t,t=this._events[t];return t?t.fn?1:t.length:0},e.prototype.emit=function(t,e,i,r,n,s){var o=arguments,a=f?f+t:t;if(!this._events[a])return!1;var l,h=this._events[a],u=arguments.length;if(h.fn){switch(h.once&&this.removeListener(t,h.fn,void 0,!0),u){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,e),!0;case 3:return h.fn.call(h.context,e,i),!0;case 4:return h.fn.call(h.context,e,i,r),!0;case 5:return h.fn.call(h.context,e,i,r,n),!0;case 6:return h.fn.call(h.context,e,i,r,n,s),!0}for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=o[d];h.fn.apply(h.context,l)}else for(var c,p=h.length,d=0;d<p;d++)switch(h[d].once&&this.removeListener(t,h[d].fn,void 0,!0),u){case 1:h[d].fn.call(h[d].context);break;case 2:h[d].fn.call(h[d].context,e);break;case 3:h[d].fn.call(h[d].context,e,i);break;case 4:h[d].fn.call(h[d].context,e,i,r);break;default:if(!l)for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=o[c];h[d].fn.apply(h[d].context,l)}return!0},e.prototype.on=function(t,e,i){return n(this,t,e,i,!1)},e.prototype.once=function(t,e,i){return n(this,t,e,i,!0)},e.prototype.removeListener=function(t,e,i,r){t=f?f+t:t;if(this._events[t])if(e){var n=this._events[t];if(n.fn)n.fn!==e||r&&!n.once||i&&n.context!==i||l(this,t);else{for(var s=0,o=[],a=n.length;s<a;s++)(n[s].fn!==e||r&&!n[s].once||i&&n[s].context!==i)&&o.push(n[s]);o.length?this._events[t]=1===o.length?o[0]:o:l(this,t)}}else l(this,t);return this},e.prototype.removeAllListeners=function(t){return t?(t=f?f+t:t,this._events[t]&&l(this,t)):(this._events=new i,this._eventsCount=0),this},e.prototype.off=e.prototype.removeListener,e.prototype.addListener=e.prototype.on,e.prefixed=f,t.exports=e.EventEmitter=e}),dt=ft,rt=ft;function ft(t,e,i){i=i||2;var r,n,s,o,a,l=e&&e.length,h=l?e[0]*i:t.length,u=mt(t,0,h,i,!0),c=[];if(u&&u.next!==u.prev){if(l&&(u=function(t,e,i,r){var n,s,o,a,l=[];for(n=0,s=e.length;n<s;n++)a=e[n]*r,o=n<s-1?e[n+1]*r:t.length,(a=mt(t,a,o,r,!1))===a.next&&(a.steiner=!0),l.push(function(t){var e=t,i=t;for(;(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next,e!==t;);return i}(a));for(l.sort(vt),n=0;n<l.length;n++)i=function(t,e){var i=function(t,e){var i,r=e,n=t.x,s=t.y,o=-1/0;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){var a=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=n&&o<a&&(o=a,i=r.x<r.next.x?r:r.next,a===n))return i}}while(r=r.next,r!==e);if(!i)return null;var l,h=i,u=i.x,c=i.y,p=1/0;r=i;for(;n>=r.x&&r.x>=u&&n!==r.x&&bt(s<c?n:o,s,u,c,s<c?o:n,s,r.x,r.y)&&(l=Math.abs(s-r.y)/(n-r.x),At(r,t)&&(l<p||l===p&&(r.x>i.x||r.x===i.x&&function(t,e){return xt(t.prev,t,e.prev)<0&&xt(e.next,t,t.next)<0}(i,r)))&&(i=r,p=l)),r=r.next,r!==h;);return i}(t,e);return i?(_t(t=Ot(i,t),t.next),_t(i,i.next)):e}(l[n],i);return i}(t,e,u,i)),t.length>80*i){for(var p=r=t[0],d=n=t[1],f=i;f<h;f+=i)(s=t[f])<p&&(p=s),(o=t[f+1])<d&&(d=o),r<s&&(r=s),n<o&&(n=o);a=0!==(a=Math.max(r-p,n-d))?32767/a:0}gt(u,c,i,p,d,a,0)}return c}function mt(t,e,i,r,n){var s,o;if(n===0<Mt(t,e,i,r))for(s=e;s<i;s+=r)o=Pt(s,t[s],t[s+1],o);else for(s=i-r;e<=s;s-=r)o=Pt(s,t[s],t[s+1],o);return o&&Tt(o,o.next)&&(Rt(o),o=o.next),o}function _t(t,e){if(!t)return t;e=e||t;var i,r=t;do{if(i=!1,r.steiner||!Tt(r,r.next)&&0!==xt(r.prev,r,r.next))r=r.next;else{if(Rt(r),(r=e=r.prev)===r.next)break;i=!0}}while(i||r!==e);return e}function gt(t,e,i,r,n,s,o){if(t){if(!o&&s){for(var a=t,l=r,h=n,u=s,c=a;0===c.z&&(c.z=yt(c.x,c.y,l,h,u)),c.prevZ=c.prev,c.nextZ=c.next,(c=c.next)!==a;);c.prevZ.nextZ=null,c.prevZ=null;var p,d,f,m,_,g,v,y,b=c,x=1;do{for(d=b,_=b=null,g=0;d;){for(g++,f=d,p=v=0;p<x&&(v++,f=f.nextZ);p++);for(y=x;0<v||0<y&&f;)0!==v&&(0===y||!f||d.z<=f.z)?(d=(m=d).nextZ,v--):(f=(m=f).nextZ,y--),_?_.nextZ=m:b=m,m.prevZ=_,_=m;d=f}}while(_.nextZ=null,x*=2,1<g)}for(var T,w,E=t;t.prev!==t.next;)if(T=t.prev,w=t.next,s?function(t,e,i,r){var n=t.prev,s=t,o=t.next;if(0<=xt(n,s,o))return;var a=n.x,l=s.x,h=o.x,u=n.y,c=s.y,p=o.y,d=a<l?a<h?a:h:l<h?l:h,f=u<c?u<p?u:p:c<p?c:p,m=l<a?h<a?a:h:h<l?l:h,_=c<u?p<u?u:p:p<c?c:p,g=yt(d,f,e,i,r),v=yt(m,_,e,i,r),y=t.prevZ,b=t.nextZ;for(;y&&y.z>=g&&b&&b.z<=v;){if(y.x>=d&&y.x<=m&&y.y>=f&&y.y<=_&&y!==n&&y!==o&&bt(a,u,l,c,h,p,y.x,y.y)&&0<=xt(y.prev,y,y.next))return;if(y=y.prevZ,b.x>=d&&b.x<=m&&b.y>=f&&b.y<=_&&b!==n&&b!==o&&bt(a,u,l,c,h,p,b.x,b.y)&&0<=xt(b.prev,b,b.next))return;b=b.nextZ}for(;y&&y.z>=g;){if(y.x>=d&&y.x<=m&&y.y>=f&&y.y<=_&&y!==n&&y!==o&&bt(a,u,l,c,h,p,y.x,y.y)&&0<=xt(y.prev,y,y.next))return;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=d&&b.x<=m&&b.y>=f&&b.y<=_&&b!==n&&b!==o&&bt(a,u,l,c,h,p,b.x,b.y)&&0<=xt(b.prev,b,b.next))return;b=b.nextZ}return 1}(t,r,n,s):function(t){var e=t.prev,i=t,t=t.next;if(0<=xt(e,i,t))return;var r=e.x,n=i.x,s=t.x,o=e.y,a=i.y,l=t.y,h=r<n?r<s?r:s:n<s?n:s,u=o<a?o<l?o:l:a<l?a:l,c=n<r?s<r?r:s:s<n?n:s,p=a<o?l<o?o:l:l<a?a:l,d=t.next;for(;d!==e;){if(d.x>=h&&d.x<=c&&d.y>=u&&d.y<=p&&bt(r,o,n,a,s,l,d.x,d.y)&&0<=xt(d.prev,d,d.next))return;d=d.next}return 1}(t))e.push(T.i/i|0),e.push(t.i/i|0),e.push(w.i/i|0),Rt(t),t=w.next,E=w.next;else if((t=w)===E){o?1===o?gt(t=function(t,e,i){var r=t;do{var n=r.prev,s=r.next.next}while(!Tt(n,s)&&wt(n,r,r.next,s)&&At(n,s)&&At(s,n)&&(e.push(n.i/i|0),e.push(r.i/i|0),e.push(s.i/i|0),Rt(r),Rt(r.next),r=t=s),r=r.next,r!==t);return _t(r)}(_t(t),e,i),e,i,r,n,s,2):2===o&&function(t,e,i,r,n,s){var o=t;do{for(var a,l=o.next.next;l!==o.prev;){if(o.i!==l.i&&function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&wt(i,i.next,t,e))return 1}while(i=i.next,i!==t);return}(t,e)&&(At(t,e)&&At(e,t)&&function(t,e){var i=t,r=!1,n=(t.x+e.x)/2,s=(t.y+e.y)/2;for(;i.y>s!=i.next.y>s&&i.next.y!==i.y&&n<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next,i!==t;);return r}(t,e)&&(xt(t.prev,t,e.prev)||xt(t,e.prev,e))||Tt(t,e)&&0<xt(t.prev,t,t.next)&&0<xt(e.prev,e,e.next))}(o,l))return a=Ot(o,l),o=_t(o,o.next),a=_t(a,a.next),gt(o,e,i,r,n,s,0),gt(a,e,i,r,n,s,0);l=l.next}}while(o=o.next,o!==t)}(t,e,i,r,n,s):gt(_t(t),e,i,r,n,s,1);break}}}function vt(t,e){return t.x-e.x}function yt(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function bt(t,e,i,r,n,s,o,a){return(t-o)*(s-a)<=(n-o)*(e-a)&&(i-o)*(e-a)<=(t-o)*(r-a)&&(n-o)*(r-a)<=(i-o)*(s-a)}function xt(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function Tt(t,e){return t.x===e.x&&t.y===e.y}function wt(t,e,i,r){var n=St(xt(t,e,i)),s=St(xt(t,e,r)),o=St(xt(i,r,t)),a=St(xt(i,r,e));return n!==s&&o!==a||(0===n&&Et(t,i,e)||(0===s&&Et(t,r,e)||(0===o&&Et(i,t,r)||!(0!==a||!Et(i,e,r)))))}function Et(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function St(t){return 0<t?1:t<0?-1:0}function At(t,e){return xt(t.prev,t,t.next)<0?0<=xt(t,e,t.next)&&0<=xt(t,t.prev,e):xt(t,e,t.prev)<0||xt(t,t.next,e)<0}function Ot(t,e){var i=new Ct(t.i,t.x,t.y),r=new Ct(e.i,e.x,e.y),n=t.next,s=e.prev;return(t.next=e).prev=t,(i.next=n).prev=i,(r.next=i).prev=r,(s.next=r).prev=s,r}function Pt(t,e,i,r){t=new Ct(t,e,i);return r?(t.next=r.next,(t.prev=r).next.prev=t,r.next=t):(t.prev=t).next=t,t}function Rt(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Ct(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Mt(t,e,i,r){for(var n=0,s=e,o=i-r;s<i;s+=r)n+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return n}ft.deviation=function(t,e,i,r){var n=e&&e.length,s=n?e[0]*i:t.length,o=Math.abs(Mt(t,0,s,i));if(n)for(var a=0,l=e.length;a<l;a++){var h=e[a]*i,u=a<l-1?e[a+1]*i:t.length;o-=Math.abs(Mt(t,h,u,i))}for(var c=0,a=0;a<r.length;a+=3){var p=r[a]*i,d=r[a+1]*i,f=r[a+2]*i;c+=Math.abs((t[p]-t[f])*(t[1+d]-t[1+p])-(t[p]-t[d])*(t[1+f]-t[1+p]))}return 0===o&&0===c?0:Math.abs((c-o)/o)},ft.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},r=0,n=0;n<t.length;n++){for(var s=0;s<t[n].length;s++)for(var o=0;o<e;o++)i.vertices.push(t[n][s][o]);0<n&&(r+=t[n-1].length,i.holes.push(r))}return i},dt.default=rt;var kt=pt(function(t,e){var i=ct,r=e&&!e.nodeType&&e,e=t&&!t.nodeType&&t,n="object"==typeof ct&&ct;n.global!==n&&n.window!==n&&n.self!==n||(i=n);var s,o,_=2147483647,g=36,v=26,a=38,l=700,h=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=g-1,y=Math.floor,b=String.fromCharCode;function x(t){throw RangeError(p[t])}function f(t,e){for(var i=t.length,r=[];i--;)r[i]=e(t[i]);return r}function m(t,e){var i=t.split("@"),r="",i=(1<i.length&&(r=i[0]+"@",t=i[1]),(t=t.replace(c,".")).split("."));return r+f(i,e).join(".")}function T(t){for(var e,i,r=[],n=0,s=t.length;n<s;)55296<=(e=t.charCodeAt(n++))&&e<=56319&&n<s?56320==(64512&(i=t.charCodeAt(n++)))?r.push(((1023&e)<<10)+(1023&i)+65536):(r.push(e),n--):r.push(e);return r}function w(t){return f(t,function(t){var e="";return 65535<t&&(e+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=b(t)}).join("")}function E(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function S(t,e,i){var r=0;for(t=i?y(t/l):t>>1,t+=y(t/e);d*v>>1<t;r+=g)t=y(t/d);return y(r+(d+1)*t/(t+a))}function A(t){var e,i,r,n,s,o,a,l=[],h=t.length,u=0,c=128,p=72,d=t.lastIndexOf("-");for(d<0&&(d=0),i=0;i<d;++i)128<=t.charCodeAt(i)&&x("not-basic"),l.push(t.charCodeAt(i));for(r=0<d?d+1:0;r<h;){for(n=u,s=1,o=g;h<=r&&x("invalid-input"),a=t.charCodeAt(r++),(g<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:g)||a>y((_-u)/s))&&x("overflow"),u+=a*s,!(a<(a=o<=p?1:p+v<=o?v:o-p));o+=g)s>y(_/(a=g-a))&&x("overflow"),s*=a;p=S(u-n,e=l.length+1,0==n),y(u/e)>_-c&&x("overflow"),c+=y(u/e),u%=e,l.splice(u++,0,c)}return w(l)}function O(t){for(var e,i,r,n,s,o,a,l,h,u,c=[],p=(t=T(t)).length,d=128,f=72,m=e=0;m<p;++m)(a=t[m])<128&&c.push(b(a));for(i=r=c.length,r&&c.push("-");i<p;){for(n=_,m=0;m<p;++m)d<=(a=t[m])&&a<n&&(n=a);for(n-d>y((_-e)/(l=i+1))&&x("overflow"),e+=(n-d)*l,d=n,m=0;m<p;++m)if((a=t[m])<d&&++e>_&&x("overflow"),a==d){for(s=e,o=g;!(s<(h=o<=f?1:f+v<=o?v:o-f));o+=g)c.push(b(E(h+(u=s-h)%(h=g-h),0))),s=y(u/h);c.push(b(E(s,0))),f=S(e,l,i==r),e=0,++i}++e,++d}return c.join("")}if(s={version:"1.3.2",ucs2:{decode:T,encode:w},decode:A,encode:O,toASCII:function(t){return m(t,function(t){return u.test(t)?"xn--"+O(t):t})},toUnicode:function(t){return m(t,function(t){return h.test(t)?A(t.slice(4).toLowerCase()):t})}},r&&e)if(t.exports==r)e.exports=s;else for(o in s)s.hasOwnProperty(o)&&(r[o]=s[o]);else i.punycode=s}),It=function(t){return"string"==typeof t},Dt=function(t){return"object"==typeof t&&null!==t},Ft=function(t){return null===t},Lt=function(t){return null==t};function Nt(t,e,i,r){e=e||"&",i=i||"=";var n={};if("string"==typeof t&&0!==t.length){var s=/\+/g,e=(t=t.split(e),1e3),o=(r&&"number"==typeof r.maxKeys&&(e=r.maxKeys),t.length);0<e&&e<o&&(o=e);for(var a=0;a<o;++a){var l,h=t[a].replace(s,"%20"),u=h.indexOf(i),u=0<=u?(l=h.substr(0,u),h.substr(u+1)):(l=h,""),h=decodeURIComponent(l),u=decodeURIComponent(u);Object.prototype.hasOwnProperty.call(n,h)?Array.isArray(n[h])?n[h].push(u):n[h]=[n[h],u]:n[h]=u}}return n}function zt(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function Bt(i,r,n,t){return r=r||"&",n=n||"=","object"==typeof(i=null===i?void 0:i)?Object.keys(i).map(function(t){var e=encodeURIComponent(zt(t))+n;return Array.isArray(i[t])?i[t].map(function(t){return e+encodeURIComponent(zt(t))}).join(r):e+encodeURIComponent(zt(i[t]))}).join(r):t?encodeURIComponent(zt(t))+n+encodeURIComponent(zt(i)):""}function Ut(t,e){return ie(t,!1,!0).resolve(e)}function jt(t){return(t=It(t)?ie(t):t)instanceof Ht?t.format():Ht.prototype.format.call(t)}var Gt=pt(function(t,e){e.decode=e.parse=Nt,e.encode=e.stringify=Bt}),Xt=ie;function Ht(){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 Yt=/^([a-z0-9.+-]+:)/i,Wt=/:[0-9]*$/,Vt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),qt=["'"].concat(i),Kt=["%","/","?",";","#"].concat(qt),Zt=["/","?","#"],Qt=/^[+a-z0-9A-Z_-]{0,63}$/,$t=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jt={javascript:!0,"javascript:":!0},te={javascript:!0,"javascript:":!0},ee={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ie(t,e,i){var r;return t&&Dt(t)&&t instanceof Ht?t:((r=new Ht).parse(t,e,i),r)}Ht.prototype.parse=function(t,e,i){if(!It(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),r=-1!==r&&r<t.indexOf("#")?"?":"#",n=t.split(r);n[0]=n[0].replace(/\\/g,"/");var s=(s=t=n.join(r)).trim();if(!i&&1===t.split("#").length){n=Vt.exec(s);if(n)return this.path=s,this.href=s,this.pathname=n[1],n[2]?(this.search=n[2],this.query=e?Gt.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var o,r=Yt.exec(s);if(r&&(o=(r=r[0]).toLowerCase(),this.protocol=o,s=s.substr(r.length)),!(i||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))||!(b="//"===s.substr(0,2))||r&&te[r]||(s=s.substr(2),this.slashes=!0),!te[r]&&(b||r&&!ee[r])){for(var a=-1,l=0;l<Zt.length;l++)-1!==(h=s.indexOf(Zt[l]))&&(-1===a||h<a)&&(a=h);-1!==(t=-1===a?s.lastIndexOf("@"):s.lastIndexOf("@",a))&&(n=s.slice(0,t),s=s.slice(t+1),this.auth=decodeURIComponent(n));for(var h,a=-1,l=0;l<Kt.length;l++)-1!==(h=s.indexOf(Kt[l]))&&(-1===a||h<a)&&(a=h);-1===a&&(a=s.length),this.host=s.slice(0,a),s=s.slice(a),this.parseHost(),this.hostname=this.hostname||"";i="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!i)for(var u=this.hostname.split(/\./),l=0,c=u.length;l<c;l++){var p=u[l];if(p&&!p.match(Qt)){for(var d="",f=0,m=p.length;f<m;f++)127<p.charCodeAt(f)?d+="x":d+=p[f];if(!d.match(Qt)){var _=u.slice(0,l),g=u.slice(l+1),v=p.match($t);v&&(_.push(v[1]),g.unshift(v[2])),g.length&&(s="/"+g.join(".")+s),this.hostname=_.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),i||(this.hostname=kt.toASCII(this.hostname));var y=this.port?":"+this.port:"",b=this.hostname||"";this.host=b+y,this.href+=this.host,i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!Jt[o])for(l=0,c=qt.length;l<c;l++){var x,T=qt[l];-1!==s.indexOf(T)&&((x=encodeURIComponent(T))===T&&(x=escape(T)),s=s.split(T).join(x))}r=s.indexOf("#"),-1!==r&&(this.hash=s.substr(r),s=s.slice(0,r)),t=s.indexOf("?");return-1!==t?(this.search=s.substr(t),this.query=s.substr(t+1),e&&(this.query=Gt.parse(this.query)),s=s.slice(0,t)):e&&(this.search="",this.query={}),s&&(this.pathname=s),ee[o]&&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},Ht.prototype.format=function(){var t=this.auth||"",e=(t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@"),this.protocol||""),i=this.pathname||"",r=this.hash||"",n=!1,s="",t=(this.host?n=t+this.host:this.hostname&&(n=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&Dt(this.query)&&Object.keys(this.query).length&&(s=Gt.stringify(this.query)),this.search||s&&"?"+s||"");return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||ee[e])&&!1!==n?(n="//"+(n||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):n=n||"",r&&"#"!==r.charAt(0)&&(r="#"+r),t&&"?"!==t.charAt(0)&&(t="?"+t),e+n+(i=i.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(t=t.replace("#","%23"))+r},Ht.prototype.resolve=function(t){return this.resolveObject(ie(t,!1,!0)).format()},Ht.prototype.resolveObject=function(t){It(t)&&((p=new Ht).parse(t,!1,!0),t=p);for(var e=new Ht,i=Object.keys(this),r=0;r<i.length;r++){var n=i[r];e[n]=this[n]}if(e.hash=t.hash,""!==t.href)if(t.slashes&&!t.protocol){for(var s=Object.keys(t),o=0;o<s.length;o++){var a=s[o];"protocol"!==a&&(e[a]=t[a])}ee[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/")}else if(t.protocol&&t.protocol!==e.protocol)if(ee[t.protocol]){if(e.protocol=t.protocol,t.host||te[t.protocol])e.pathname=t.pathname;else{for(var l=(t.pathname||"").split("/");l.length&&!(t.host=l.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),e.pathname=l.join("/")}e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,(e.pathname||e.search)&&(p=e.pathname||"",d=e.search||"",e.path=p+d),e.slashes=e.slashes||t.slashes}else for(var h=Object.keys(t),u=0;u<h.length;u++){var c=h[u];e[c]=t[c]}else{var p=e.pathname&&"/"===e.pathname.charAt(0),d=t.host||t.pathname&&"/"===t.pathname.charAt(0),p=d||p||e.host&&t.pathname,f=p,m=e.pathname&&e.pathname.split("/")||[],l=t.pathname&&t.pathname.split("/")||[],_=e.protocol&&!ee[e.protocol];if(_&&(e.hostname="",e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===l[0]?l[0]=t.host:l.unshift(t.host)),t.host=null),p=p&&(""===l[0]||""===m[0])),d)e.host=(t.host||""===t.host?t:e).host,e.hostname=(t.hostname||""===t.hostname?t:e).hostname,e.search=t.search,e.query=t.query,m=l;else if(l.length)(m=m||[]).pop(),m=m.concat(l),e.search=t.search,e.query=t.query;else if(!Lt(t.search))return _&&(e.hostname=e.host=m.shift(),(b=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=b.shift(),e.host=e.hostname=b.shift())),e.search=t.search,e.query=t.query,Ft(e.pathname)&&Ft(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.href=e.format(),e;if(m.length){for(var g=m.slice(-1)[0],d=(e.host||t.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(!p&&!f)for(;v--;)m.unshift("..");!p||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),d&&"/"!==m.join("/").substr(-1)&&m.push("");var b,f=""===m[0]||m[0]&&"/"===m[0].charAt(0);_&&(e.hostname=e.host=!f&&m.length?m.shift():"",(b=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=b.shift(),e.host=e.hostname=b.shift())),(p=p||e.host&&m.length)&&!f&&m.unshift(""),m.length?e.pathname=m.join("/"):(e.pathname=null,e.path=null),Ft(e.pathname)&&Ft(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes}else e.pathname=null,e.search?e.path="/"+e.search:e.path=null}return e.href=e.format(),e},Ht.prototype.parseHost=function(){var t=this.host,e=Wt.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};J.ENV=void 0,(r=J.ENV||(J.ENV={}))[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2",J.RENDERER_TYPE=void 0,(nt=J.RENDERER_TYPE||(J.RENDERER_TYPE={}))[nt.UNKNOWN=0]="UNKNOWN",nt[nt.WEBGL=1]="WEBGL",nt[nt.CANVAS=2]="CANVAS",J.BUFFER_BITS=void 0,(st=J.BUFFER_BITS||(J.BUFFER_BITS={}))[st.COLOR=16384]="COLOR",st[st.DEPTH=256]="DEPTH",st[st.STENCIL=1024]="STENCIL",J.BLEND_MODES=void 0,(n=J.BLEND_MODES||(J.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",J.DRAW_MODES=void 0,(s=J.DRAW_MODES||(J.DRAW_MODES={}))[s.POINTS=0]="POINTS",s[s.LINES=1]="LINES",s[s.LINE_LOOP=2]="LINE_LOOP",s[s.LINE_STRIP=3]="LINE_STRIP",s[s.TRIANGLES=4]="TRIANGLES",s[s.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",s[s.TRIANGLE_FAN=6]="TRIANGLE_FAN",J.FORMATS=void 0,(o=J.FORMATS||(J.FORMATS={}))[o.RGBA=6408]="RGBA",o[o.RGB=6407]="RGB",o[o.RG=33319]="RG",o[o.RED=6403]="RED",o[o.RGBA_INTEGER=36249]="RGBA_INTEGER",o[o.RGB_INTEGER=36248]="RGB_INTEGER",o[o.RG_INTEGER=33320]="RG_INTEGER",o[o.RED_INTEGER=36244]="RED_INTEGER",o[o.ALPHA=6406]="ALPHA",o[o.LUMINANCE=6409]="LUMINANCE",o[o.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",o[o.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",o[o.DEPTH_STENCIL=34041]="DEPTH_STENCIL",J.TARGETS=void 0,(ot=J.TARGETS||(J.TARGETS={}))[ot.TEXTURE_2D=3553]="TEXTURE_2D",ot[ot.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",ot[ot.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",ot[ot.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",ot[ot.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",ot[ot.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",ot[ot.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",ot[ot.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",ot[ot.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",J.TYPES=void 0,(a=J.TYPES||(J.TYPES={}))[a.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",a[a.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",a[a.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",a[a.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",a[a.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",a[a.UNSIGNED_INT=5125]="UNSIGNED_INT",a[a.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",a[a.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",a[a.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",a[a.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",a[a.BYTE=5120]="BYTE",a[a.SHORT=5122]="SHORT",a[a.INT=5124]="INT",a[a.FLOAT=5126]="FLOAT",a[a.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",a[a.HALF_FLOAT=36193]="HALF_FLOAT",J.SAMPLER_TYPES=void 0,(lt=J.SAMPLER_TYPES||(J.SAMPLER_TYPES={}))[lt.FLOAT=0]="FLOAT",lt[lt.INT=1]="INT",lt[lt.UINT=2]="UINT",J.SCALE_MODES=void 0,(d=J.SCALE_MODES||(J.SCALE_MODES={}))[d.NEAREST=0]="NEAREST",d[d.LINEAR=1]="LINEAR",J.WRAP_MODES=void 0,(at=J.WRAP_MODES||(J.WRAP_MODES={}))[at.CLAMP=33071]="CLAMP",at[at.REPEAT=10497]="REPEAT",at[at.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",J.MIPMAP_MODES=void 0,(f=J.MIPMAP_MODES||(J.MIPMAP_MODES={}))[f.OFF=0]="OFF",f[f.POW2=1]="POW2",f[f.ON=2]="ON",f[f.ON_MANUAL=3]="ON_MANUAL",J.ALPHA_MODES=void 0,(Tr=J.ALPHA_MODES||(J.ALPHA_MODES={}))[Tr.NPM=0]="NPM",Tr[Tr.UNPACK=1]="UNPACK",Tr[Tr.PMA=2]="PMA",Tr[Tr.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",Tr[Tr.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",Tr[Tr.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",Tr[Tr.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",J.CLEAR_MODES=void 0,(Sr=J.CLEAR_MODES||(J.CLEAR_MODES={}))[Sr.NO=0]="NO",Sr[Sr.YES=1]="YES",Sr[Sr.AUTO=2]="AUTO",Sr[Sr.BLEND=0]="BLEND",Sr[Sr.CLEAR=1]="CLEAR",Sr[Sr.BLIT=2]="BLIT",J.GC_MODES=void 0,(re=J.GC_MODES||(J.GC_MODES={}))[re.AUTO=0]="AUTO",re[re.MANUAL=1]="MANUAL",J.PRECISION=void 0,($=J.PRECISION||(J.PRECISION={})).LOW="lowp",$.MEDIUM="mediump",$.HIGH="highp",J.MASK_TYPES=void 0,(e=J.MASK_TYPES||(J.MASK_TYPES={}))[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",J.COLOR_MASK_BITS=void 0,(no=J.COLOR_MASK_BITS||(J.COLOR_MASK_BITS={}))[no.RED=1]="RED",no[no.GREEN=2]="GREEN",no[no.BLUE=4]="BLUE",no[no.ALPHA=8]="ALPHA",J.MSAA_QUALITY=void 0,(_o=J.MSAA_QUALITY||(J.MSAA_QUALITY={}))[_o.NONE=0]="NONE",_o[_o.LOW=2]="LOW",_o[_o.MEDIUM=4]="MEDIUM",_o[_o.HIGH=8]="HIGH",J.BUFFER_TYPE=void 0,(Io=J.BUFFER_TYPE||(J.BUFFER_TYPE={}))[Io.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",Io[Io.ARRAY_BUFFER=34962]="ARRAY_BUFFER",Io[Io.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER";var re,ne={parse:Xt,format:jt,resolve:Ut};function se(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function oe(t){return t.split("?")[0].split("#")[0]}var ae,le={toPosix:function(t){return e="\\",i="/",t.replace(new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),i);var e,i},isUrl:function(t){return/^https?:/.test(this.toPosix(t))},isDataUrl:function(t){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(t)},hasProtocol:function(t){return/^[^/:]+:\//.test(this.toPosix(t))},getProtocol:function(t){se(t),t=this.toPosix(t);var e="",i=/^file:\/\/\//.exec(t),r=/^[^/:]+:\/\//.exec(t),n=/^[^/:]+:\//.exec(t);return(i||r||n)&&(i=(null==i?void 0:i[0])||(null==r?void 0:r[0])||(null==n?void 0:n[0]),t=t.slice((e=i).length)),e},toAbsolute:function(t,e,i){return this.isDataUrl(t)?t:(e=oe(this.toPosix(null!=e?e:C.ADAPTER.getBaseUrl())),i=oe(this.toPosix(null!=i?i:this.rootname(e))),se(t),(t=this.toPosix(t)).startsWith("/")?le.join(i,t.slice(1)):this.isAbsolute(t)?t:this.join(e,t))},normalize:function(t){var e,i,r;return se(t=this.toPosix(t)),0===t.length?".":(e="",i=t.startsWith("/"),this.hasProtocol(t)&&(e=this.rootname(t),t=t.slice(e.length)),r=t.endsWith("/"),0<(t=function(t,e){for(var i,r="",n=0,s=-1,o=0,a=0;a<=t.length;++a){if(a<t.length)i=t.charCodeAt(a);else{if(47===i)break;i=47}if(47===i){if(s!==a-1&&1!==o)if(s!==a-1&&2===o){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(2<r.length){var l=r.lastIndexOf("/");if(l!==r.length-1){n=-1===l?(r="",0):(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",s=a,o=n=0;continue}e&&(0<r.length?r+="/..":r="..",n=2)}else 0<r.length?r+="/"+t.slice(s+1,a):r=t.slice(s+1,a),n=a-s-1;s=a,o=0}else 46===i&&-1!==o?++o:o=-1}return r}(t,!1)).length&&r&&(t+="/"),i?"/"+t:e+t)},isAbsolute:function(t){return se(t),t=this.toPosix(t),!!this.hasProtocol(t)||t.startsWith("/")},join:function(){for(var t,e=arguments,i=[],r=0;r<arguments.length;r++)i[r]=e[r];if(0===i.length)return".";for(var n=0;n<i.length;++n){var s,o=i[n];se(o),0<o.length&&(void 0===t?t=o:(s=null!=(s=i[n-1])?s:"",this.extname(s)?t+="/../"+o:t+="/"+o))}return void 0===t?".":this.normalize(t)},dirname:function(t){if(se(t),0===t.length)return".";for(var e=47===(t=this.toPosix(t)).charCodeAt(0),i=-1,r=!0,n=this.getProtocol(t),s=t,o=(t=t.slice(n.length)).length-1;1<=o;--o)if(47===t.charCodeAt(o)){if(!r){i=o;break}}else r=!1;return-1===i?e?"/":this.isUrl(s)?n+t:n:e&&1===i?"//":n+t.slice(0,i)},rootname:function(t){se(t);var e,i="";return i=(t=this.toPosix(t)).startsWith("/")?"/":this.getProtocol(t),this.isUrl(t)&&!(i=-1!==(e=t.indexOf("/",i.length))?t.slice(0,e):t).endsWith("/")&&(i+="/"),i},basename:function(t,e){se(t),e&&se(e),t=this.toPosix(t);var i=0,r=-1,n=!0;if(void 0!==e&&0<e.length&&e.length<=t.length){if(e.length===t.length&&e===t)return"";for(var s=e.length-1,o=-1,a=t.length-1;0<=a;--a){var l=t.charCodeAt(a);if(47===l){if(!n){i=a+1;break}}else-1===o&&(n=!1,o=a+1),0<=s&&(l===e.charCodeAt(s)?-1==--s&&(r=a):(s=-1,r=o))}return i===r?r=o:-1===r&&(r=t.length),t.slice(i,r)}for(a=t.length-1;0<=a;--a)if(47===t.charCodeAt(a)){if(!n){i=a+1;break}}else-1===r&&(n=!1,r=a+1);return-1===r?"":t.slice(i,r)},extname:function(t){se(t);for(var e=-1,i=0,r=-1,n=!0,s=0,o=(t=this.toPosix(t)).length-1;0<=o;--o){var a=t.charCodeAt(o);if(47===a){if(n)continue;i=o+1;break}-1===r&&(n=!1,r=o+1),46===a?-1===e?e=o:1!==s&&(s=1):-1!==e&&(s=-1)}return-1===e||-1===r||0===s||1===s&&e===r-1&&e===i+1?"":t.slice(e,r)},parse:function(t){se(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0!==t.length){(t=this.toPosix(t)).charCodeAt(0);for(var i,r,n=this.isAbsolute(t),s=(e.root=this.rootname(t),r=n||this.hasProtocol(t)?1:0,-1),o=0,a=-1,l=!0,h=t.length-1,u=0;r<=h;--h){if(47===(i=t.charCodeAt(h))){if(l)continue;o=h+1;break}-1===a&&(l=!1,a=h+1),46===i?-1===s?s=h:1!==u&&(u=1):-1!==s&&(u=-1)}-1===s||-1===a||0===u||1===u&&s===a-1&&s===o+1?-1!==a&&(e.base=e.name=0===o&&n?t.slice(1,a):t.slice(o,a)):(0===o&&n?(e.name=t.slice(1,s),e.base=t.slice(1,a)):(e.name=t.slice(o,s),e.base=t.slice(o,a)),e.ext=t.slice(s,a)),e.dir=this.dirname(t)}return e},sep:"/",delimiter:":"},he=(C.RETINA_PREFIX=/@([0-9\.]+)x/,C.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1);function ue(t){var e;he||(-1<C.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")?(e=globalThis.console).log.apply(e,["\n %c %c %c PixiJS 6.5.5 - ✰ "+t+" ✰ %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 - "+t+" - http://www.pixijs.com/"),he=!0)}function ce(){return ae=void 0===ae?function(){var t,e,i,r,n={stencil:!0,failIfMajorPerformanceCaveat:C.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{return C.ADAPTER.getWebGLRenderingContext()?(i=!(!(e=(t=C.ADAPTER.createCanvas()).getContext("webgl",n)||t.getContext("experimental-webgl",n))||!e.getContextAttributes().stencil),e&&(r=e.getExtension("WEBGL_lose_context"))&&r.loseContext(),e=null,i):!1}catch(t){return!1}}():ae}var pe={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 de(t,e){return(e=void 0===e?[]:e)[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function fe(t){t=t.toString(16);return"#"+("000000".substring(0,6-t.length)+t)}function me(t){return"string"==typeof t&&"#"===(t=pe[t.toLowerCase()]||t)[0]&&(t=t.slice(1)),parseInt(t,16)}var _e=function(){for(var t=[],e=[],i=0;i<32;i++)e[t[i]=i]=i;t[J.BLEND_MODES.NORMAL_NPM]=J.BLEND_MODES.NORMAL,t[J.BLEND_MODES.ADD_NPM]=J.BLEND_MODES.ADD,t[J.BLEND_MODES.SCREEN_NPM]=J.BLEND_MODES.SCREEN,e[J.BLEND_MODES.NORMAL]=J.BLEND_MODES.NORMAL_NPM,e[J.BLEND_MODES.ADD]=J.BLEND_MODES.ADD_NPM,e[J.BLEND_MODES.SCREEN]=J.BLEND_MODES.SCREEN_NPM;var r=[];return r.push(e),r.push(t),r}();function ge(t,e){return _e[e?1:0][t]}function ve(t,e,i,r){return i=i||new Float32Array(4),r||void 0===r?(i[0]=t[0]*e,i[1]=t[1]*e,i[2]=t[2]*e):(i[0]=t[0],i[1]=t[1],i[2]=t[2]),i[3]=e,i}function ye(t,e){return 1===e?(255*e<<24)+t:0===e?0:(255*e<<24)+(((t>>16&255)*e+.5|0)<<16)+(((t>>8&255)*e+.5|0)<<8)+((255&t)*e+.5|0)}function be(t,e,i,r){return(i=i||new Float32Array(4))[0]=(t>>16&255)/255,i[1]=(t>>8&255)/255,i[2]=(255&t)/255,!r&&void 0!==r||(i[0]*=e,i[1]*=e,i[2]*=e),i[3]=e,i}function xe(t,e){var i=6*t;if((e=(e=void 0===e?null:e)||new Uint16Array(i)).length!==i)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+i);for(var r=0,n=0;r<i;r+=6,n+=4)e[r+0]=n+0,e[r+1]=n+1,e[r+2]=n+2,e[r+3]=n+0,e[r+4]=n+2,e[r+5]=n+3;return e}function Te(t){if(4===t.BYTES_PER_ELEMENT)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===t.BYTES_PER_ELEMENT){if(t instanceof Uint16Array)return"Uint16Array"}else if(1===t.BYTES_PER_ELEMENT&&t instanceof Uint8Array)return"Uint8Array";return null}var we={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function Ee(t){return t+=0===t?1:0,--t,(t=(t=(t=(t=(t|=t>>>1)|t>>>2)|t>>>4)|t>>>8)|t>>>16)+1}function Se(t){return!(t&t-1||!t)}function Ae(t){var e=(65535<t?1:0)<<4,i=(255<(t>>>=e)?1:0)<<3;return(e|=i)|(i=(15<(t>>>=i)?1:0)<<2)|(i=(3<(t>>>=i)?1:0)<<1)|(t>>>=i)>>1}function Oe(t,e,i){var r=t.length;if(!(r<=e||0===i)){for(var n=r-(i=r<e+i?r-e:i),s=e;s<n;++s)t[s]=t[s+i];t.length=n}}function Pe(t){return 0===t?0:t<0?-1:1}var Re=0;function Ce(){return++Re}var Me={};function ke(t,e,i){var r;void 0===i&&(i=3),Me[e]||(void 0===(r=(new Error).stack)?console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t):(r=r.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",e+"\nDeprecated since v"+t),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t),console.warn(r))),Me[e]=!0)}var Ie={},De=Object.create(null),Fe=Object.create(null);Ne.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},Ne.prototype.resize=function(t,e){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(e*this.resolution)},Ne.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(Ne.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0});var Le=Ne;function Ne(t,e,i){this.canvas=C.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||C.RESOLUTION,this.resize(t,e)}function ze(t){for(var e,i,r=t.width,n=t.height,t=t.getContext("2d"),s=t.getImageData(0,0,r,n).data,o=s.length,a={top:null,left:null,right:null,bottom:null},l=null,h=0;h<o;h+=4)0!==s[h+3]&&(e=h/4%r,i=~~(h/4/r),null===a.top&&(a.top=i),(null===a.left||e<a.left)&&(a.left=e),(null===a.right||a.right<e)&&(a.right=1+e),(null===a.bottom||a.bottom<i)&&(a.bottom=i));return null!==a.top&&(l=t.getImageData(a.left,a.top,r=a.right-a.left,n=a.bottom-a.top+1)),{height:n,width:r,data:l}}var Be,Ue=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function je(t,e){if(void 0===e&&(e=globalThis.location),0===t.indexOf("data:"))return"";e=e||globalThis.location,(Be=Be||document.createElement("a")).href=t;var t=ne.parse(Be.href),i=!t.port&&""===e.port||t.port===e.port;return t.hostname===e.hostname&&i&&t.protocol===e.protocol?"":"anonymous"}function Ge(t,e){t=C.RETINA_PREFIX.exec(t);return t?parseFloat(t[1]):void 0!==e?e:1}var Xe={__proto__:null,BaseTextureCache:Fe,CanvasRenderTarget:Le,DATA_URI:Ue,ProgramCache:Ie,TextureCache:De,clearTextureCache:function(){for(var t in De)delete De[t];for(t in Fe)delete Fe[t]},correctBlendMode:ge,createIndicesForQuads:xe,decomposeDataUri:function(t){if(t=Ue.exec(t))return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]}},deprecation:ke,destroyTextureCache:function(){for(var t in De)De[t].destroy();for(t in Fe)Fe[t].destroy()},determineCrossOrigin:je,getBufferType:Te,getResolutionOfUrl:Ge,hex2rgb:de,hex2string:fe,interleaveTypedArrays:function(t,e){for(var i=0,r=0,n={},s=0;s<t.length;s++)r+=e[s],i+=t[s].length;for(var o=new ArrayBuffer(4*i),a=null,l=0,s=0;s<t.length;s++){var h=e[s],u=t[s],c=Te(u);n[c]||(n[c]=new we[c](o));for(var a=n[c],p=0;p<u.length;p++)a[(p/h|0)*r+l+p%h]=u[p];l+=h}return new Float32Array(o)},isPow2:Se,isWebGLSupported:ce,log2:Ae,nextPow2:Ee,path:le,premultiplyBlendMode:_e,premultiplyRgba:ve,premultiplyTint:ye,premultiplyTintToRgba:be,removeItems:Oe,rgb2hex:function(t){return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},sayHello:ue,sign:Pe,skipHello:function(){he=!0},string2hex:me,trimCanvas:ze,uid:Ce,url:ne,isMobile:ut,EventEmitter:it,earcut:dt},He=2*Math.PI,Ye=180/Math.PI,We=Math.PI/180,tt=(J.SHAPES=void 0,(rt=J.SHAPES||(J.SHAPES={}))[rt.POLY=0]="POLY",rt[rt.RECT=1]="RECT",rt[rt.CIRC=2]="CIRC",rt[rt.ELIP=3]="ELIP",rt[rt.RREC=4]="RREC",Ve.prototype.clone=function(){return new Ve(this.x,this.y)},Ve.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},Ve.prototype.copyTo=function(t){return t.set(this.x,this.y),t},Ve.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},Ve.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this},Ve.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},Ve);function Ve(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}var qe=[new tt,new tt,new tt,new tt],w=(Object.defineProperty(Ke.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(Ke,"EMPTY",{get:function(){return new Ke(0,0,0,0)},enumerable:!1,configurable:!0}),Ke.prototype.clone=function(){return new Ke(this.x,this.y,this.width,this.height)},Ke.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},Ke.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},Ke.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t<this.x+this.width&&e>=this.y&&e<this.y+this.height)},Ke.prototype.intersects=function(t,e){var i,r,n,s,o,a,l,h,u,c,p,d,f;return e?(i=this.left,r=this.right,n=this.top,s=this.bottom,!(r<=i||s<=n)&&(o=qe[0].set(t.left,t.top),f=qe[1].set(t.left,t.bottom),a=qe[2].set(t.right,t.top),l=qe[3].set(t.right,t.bottom),!(a.x<=o.x||f.y<=o.y)&&(0!==(h=Math.sign(e.a*e.d-e.b*e.c))&&(e.apply(o,o),e.apply(f,f),e.apply(a,a),e.apply(l,l),!(Math.max(o.x,f.x,a.x,l.x)<=i||Math.min(o.x,f.x,a.x,l.x)>=r||Math.max(o.y,f.y,a.y,l.y)<=n||Math.min(o.y,f.y,a.y,l.y)>=s)&&(u=(e=h*(f.y-o.y))*i+(f=h*(o.x-f.x))*n,c=e*r+f*n,p=e*i+f*s,d=e*r+f*s,!(Math.max(u,c,p,d)<=e*o.x+f*o.y||Math.min(u,c,p,d)>=e*l.x+f*l.y)&&(p=(u=h*(o.y-a.y))*i+(c=h*(a.x-o.x))*n,d=u*r+c*n,e=u*i+c*s,f=u*r+c*s,!(Math.max(p,d,e,f)<=u*o.x+c*o.y||Math.min(p,d,e,f)>=u*l.x+c*l.y))))))):(h=(this.x<t.x?t:this).x,!((this.right>t.right?t:this).right<=h)&&(this.y<t.y?t:this).y<(this.bottom>t.bottom?t:this).bottom)},Ke.prototype.pad=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},Ke.prototype.fit=function(t){var e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),r=Math.max(this.y,t.y),t=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=r,this.height=Math.max(t-r,0),this},Ke.prototype.ceil=function(t,e){void 0===t&&(t=1),void 0===e&&(e=.001);var i=Math.ceil((this.x+this.width-e)*t)/t,r=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=r-this.y,this},Ke.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),t=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=r,this.height=t-r,this},Ke.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},Ke);function Ke(t,e,i,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),this.x=Number(t),this.y=Number(e),this.width=Number(i),this.height=Number(r),this.type=J.SHAPES.RECT}Qe.prototype.clone=function(){return new Qe(this.x,this.y,this.radius)},Qe.prototype.contains=function(t,e){var i;return!(this.radius<=0)&&(i=this.radius*this.radius,t=this.x-t,e=this.y-e,(t*=t)+(e*=e)<=i)},Qe.prototype.getBounds=function(){return new w(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},Qe.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"};var Ze=Qe;function Qe(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),this.x=t=void 0===t?0:t,this.y=e,this.radius=i,this.type=J.SHAPES.CIRC}Je.prototype.clone=function(){return new Je(this.x,this.y,this.width,this.height)},Je.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t=(t-this.x)/this.width,e=(e-this.y)/this.height,(t*=t)+(e*=e)<=1)},Je.prototype.getBounds=function(){return new w(this.x-this.width,this.y-this.height,this.width,this.height)},Je.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"};var $e=Je;function Je(t,e,i,r){void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),this.x=t=void 0===t?0:t,this.y=e,this.width=i,this.height=r,this.type=J.SHAPES.ELIP}ei.prototype.clone=function(){var t=new ei(this.points.slice());return t.closeStroke=this.closeStroke,t},ei.prototype.contains=function(t,e){for(var i=!1,r=this.points.length/2,n=0,s=r-1;n<r;s=n++){var o=this.points[2*n],a=this.points[2*n+1],l=this.points[2*s],h=this.points[2*s+1];e<a!=e<h&&t<(e-a)/(h-a)*(l-o)+o&&(i=!i)}return i},ei.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce(function(t,e){return t+", "+e},"")+"]"};var ti=ei;function ei(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];var r=Array.isArray(e[0])?e[0]:e;if("number"!=typeof r[0]){for(var n=[],s=0,o=r.length;s<o;s++)n.push(r[s].x,r[s].y);r=n}this.points=r,this.type=J.SHAPES.POLY,this.closeStroke=!0}ri.prototype.clone=function(){return new ri(this.x,this.y,this.width,this.height,this.radius)},ri.prototype.contains=function(t,e){if(!(this.width<=0||this.height<=0)&&t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||t>=this.x+i&&t<=this.x+this.width-i)return!0;var r=t-(this.x+i),n=e-(this.y+i),s=i*i;if(r*r+n*n<=s)return!0;if((r=t-(this.x+this.width-i))*r+n*n<=s)return!0;if(r*r+(n=e-(this.y+this.height-i))*n<=s)return!0;if((r=t-(this.x+i))*r+n*n<=s)return!0}return!1},ri.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"};var ii=ri;function ri(t,e,i,r,n){void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===n&&(n=20),this.x=t=void 0===t?0:t,this.y=e,this.width=i,this.height=r,this.radius=n,this.type=J.SHAPES.RREC}si.prototype.clone=function(t,e){return new si(t=void 0===t?this.cb:t,e=void 0===e?this.scope:e,this._x,this._y)},si.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},si.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},si.prototype.copyTo=function(t){return t.set(this._x,this._y),t},si.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},si.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(si.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(si.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0});var ni=si;function si(t,e,i,r){void 0===r&&(r=0),this._x=i=void 0===i?0:i,this._y=r,this.cb=t,this.scope=e}ai.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},ai.prototype.set=function(t,e,i,r,n,s){return this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=s,this},ai.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));e=e||this.array;return t?(e[0]=this.a,e[1]=this.b,e[2]=0,e[3]=this.c,e[4]=this.d,e[5]=0,e[6]=this.tx,e[7]=this.ty):(e[0]=this.a,e[1]=this.c,e[2]=this.tx,e[3]=this.b,e[4]=this.d,e[5]=this.ty,e[6]=0,e[7]=0),e[8]=1,e},ai.prototype.apply=function(t,e){e=e||new tt;var i=t.x,t=t.y;return e.x=this.a*i+this.c*t+this.tx,e.y=this.b*i+this.d*t+this.ty,e},ai.prototype.applyInverse=function(t,e){e=e||new tt;var i=1/(this.a*this.d+this.c*-this.b),r=t.x,t=t.y;return e.x=this.d*i*r+-this.c*i*t+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*t+-this.b*i*r+(-this.ty*this.a+this.tx*this.b)*i,e},ai.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},ai.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},ai.prototype.rotate=function(t){var e=Math.cos(t),t=Math.sin(t),i=this.a,r=this.c,n=this.tx;return this.a=i*e-this.b*t,this.b=i*t+this.b*e,this.c=r*e-this.d*t,this.d=r*t+this.d*e,this.tx=n*e-this.ty*t,this.ty=n*t+this.ty*e,this},ai.prototype.append=function(t){var e=this.a,i=this.b,r=this.c,n=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*r,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*i+t.ty*n+this.ty,this},ai.prototype.setTransform=function(t,e,i,r,n,s,o,a,l){return this.a=Math.cos(o+l)*n,this.b=Math.sin(o+l)*n,this.c=-Math.sin(o-a)*s,this.d=Math.cos(o-a)*s,this.tx=t-(i*this.a+r*this.c),this.ty=e-(i*this.b+r*this.d),this},ai.prototype.prepend=function(t){var e,i,r=this.tx;return 1===t.a&&0===t.b&&0===t.c&&1===t.d||(e=this.a,i=this.c,this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d),this.tx=r*t.a+this.ty*t.c+t.tx,this.ty=r*t.b+this.ty*t.d+t.ty,this},ai.prototype.decompose=function(t){var e=this.a,i=this.b,r=this.c,n=this.d,s=t.pivot,o=-Math.atan2(-r,n),a=Math.atan2(i,e),l=Math.abs(o+a);return l<1e-5||Math.abs(He-l)<1e-5?(t.rotation=a,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=a),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(r*r+n*n),t.position.x=this.tx+(s.x*e+s.y*r),t.position.y=this.ty+(s.x*i+s.y*n),t},ai.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,r=this.d,n=this.tx,s=t*r-e*i;return this.a=r/s,this.b=-e/s,this.c=-i/s,this.d=t/s,this.tx=(i*this.ty-r*n)/s,this.ty=-(t*this.ty-e*n)/s,this},ai.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},ai.prototype.clone=function(){var t=new ai;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},ai.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},ai.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},ai.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(ai,"IDENTITY",{get:function(){return new ai},enumerable:!1,configurable:!0}),Object.defineProperty(ai,"TEMP_MATRIX",{get:function(){return new ai},enumerable:!1,configurable:!0});var oi=ai;function ai(t,e,i,r,n,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===n&&(n=0),void 0===s&&(s=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=s}var li=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],hi=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ui=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ci=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],pi=[],di=[],fi=Math.sign;for(var mi=0;mi<16;mi++){var _i=[];pi.push(_i);for(var gi=0;gi<16;gi++)for(var vi=fi(li[mi]*li[gi]+ui[mi]*hi[gi]),yi=fi(hi[mi]*li[gi]+ci[mi]*hi[gi]),bi=fi(li[mi]*ui[gi]+ui[mi]*ci[gi]),xi=fi(hi[mi]*ui[gi]+ci[mi]*ci[gi]),Ti=0;Ti<16;Ti++)if(li[Ti]===vi&&hi[Ti]===yi&&ui[Ti]===bi&&ci[Ti]===xi){_i.push(Ti);break}}for(mi=0;mi<16;mi++){var wi=new oi;wi.set(li[mi],hi[mi],ui[mi],ci[mi],0,0),di.push(wi)}var Ei={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(t){return li[t]},uY:function(t){return hi[t]},vX:function(t){return ui[t]},vY:function(t){return ci[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return pi[t][e]},sub:function(t,e){return pi[t][Ei.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2==(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?0<=e?Ei.S:Ei.N:2*Math.abs(e)<=Math.abs(t)?0<t?Ei.E:Ei.W:0<e?0<t?Ei.SE:Ei.SW:0<t?Ei.NE:Ei.NW},matrixAppendRotationInv:function(t,e,i,r){void 0===i&&(i=0),void 0===r&&(r=0);e=di[Ei.inv(e)];e.tx=i,e.ty=r,t.append(e)}},Si=(Ai.prototype.onChange=function(){this._localID++},Ai.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++},Ai.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+") ]"},Ai.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},Ai.prototype.updateTransform=function(t){var e,i,r=this.localTransform;this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID&&(e=t.worldTransform,(i=this.worldTransform).a=r.a*e.a+r.b*e.c,i.b=r.a*e.b+r.b*e.d,i.c=r.c*e.a+r.d*e.c,i.d=r.c*e.b+r.d*e.d,i.tx=r.tx*e.a+r.ty*e.c+e.tx,i.ty=r.tx*e.b+r.ty*e.d+e.ty,this._parentID=t._worldID,this._worldID++)},Ai.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(Ai.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),Ai.IDENTITY=new Ai,Ai);function Ai(){this.worldTransform=new oi,this.localTransform=new oi,this.position=new ni(this.onChange,this,0,0),this.scale=new ni(this.onChange,this,1,1),this.pivot=new ni(this.onChange,this,0,0),this.skew=new ni(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}C.SORTABLE_CHILDREN=!1;Pi.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},Pi.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},Pi.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?w.EMPTY:((t=t||new w(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},Pi.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},Pi.prototype.addPointMatrix=function(t,e){var i=t.a,r=t.b,n=t.c,s=t.d,o=t.tx,t=t.ty,i=i*e.x+n*e.y+o,n=r*e.x+s*e.y+t;this.minX=Math.min(this.minX,i),this.maxX=Math.max(this.maxX,i),this.minY=Math.min(this.minY,n),this.maxY=Math.max(this.maxY,n)},Pi.prototype.addQuad=function(t){var e=this.minX,i=this.minY,r=this.maxX,n=this.maxY,s=t[0],o=t[1],e=s<e?s:e,i=o<i?o:i,r=r<s?s:r,n=n<o?o:n;e=(s=t[2])<e?s:e,i=(o=t[3])<i?o:i,r=r<s?s:r,n=n<o?o:n,e=(s=t[4])<e?s:e,i=(o=t[5])<i?o:i,r=r<s?s:r,n=n<o?o:n,s=t[6],i=(o=t[7])<i?o:i,r=r<s?s:r,n=n<o?o:n,this.minX=s<e?s:e,this.minY=i,this.maxX=r,this.maxY=n},Pi.prototype.addFrame=function(t,e,i,r,n){this.addFrameMatrix(t.worldTransform,e,i,r,n)},Pi.prototype.addFrameMatrix=function(t,e,i,r,n){var s=t.a,o=t.b,a=t.c,l=t.d,h=t.tx,t=t.ty,u=s*e+a*i+h,c=o*e+l*i+t,p=u<(p=this.minX)?u:p,d=c<(d=this.minY)?c:d,f=(f=this.maxX)<u?u:f,m=(m=this.maxY)<c?c:m;p=(u=s*r+a*i+h)<p?u:p,d=(c=o*r+l*i+t)<d?c:d,f=f<u?u:f,m=m<c?c:m,p=(u=s*e+a*n+h)<p?u:p,d=(c=o*e+l*n+t)<d?c:d,m=m<c?c:m,d=(c=o*r+l*n+t)<d?c:d,f=(f=f<u?u:f)<(u=s*r+a*n+h)?u:f,m=m<c?c:m,this.minX=u<p?u:p,this.minY=d,this.maxX=f,this.maxY=m},Pi.prototype.addVertexData=function(t,e,i){for(var r=this.minX,n=this.minY,s=this.maxX,o=this.maxY,a=e;a<i;a+=2)var l=t[a],h=t[a+1],r=l<r?l:r,n=h<n?h:n,s=s<l?l:s,o=o<h?h:o;this.minX=r,this.minY=n,this.maxX=s,this.maxY=o},Pi.prototype.addVertices=function(t,e,i,r){this.addVerticesMatrix(t.worldTransform,e,i,r)},Pi.prototype.addVerticesMatrix=function(t,e,i,r,n,s){void 0===n&&(n=0),void 0===s&&(s=n);for(var o=t.a,a=t.b,l=t.c,h=t.d,u=t.tx,c=t.ty,p=this.minX,d=this.minY,f=this.maxX,m=this.maxY,_=i;_<r;_+=2)var g=e[_],v=e[_+1],y=o*g+l*v+u,v=h*v+a*g+c,p=Math.min(p,y-n),f=Math.max(f,y+n),d=Math.min(d,v-s),m=Math.max(m,v+s);this.minX=p,this.minY=d,this.maxX=f,this.maxY=m},Pi.prototype.addBounds=function(t){var e=this.minX,i=this.minY,r=this.maxX,n=this.maxY;this.minX=t.minX<e?t.minX:e,this.minY=t.minY<i?t.minY:i,this.maxX=t.maxX>r?t.maxX:r,this.maxY=t.maxY>n?t.maxY:n},Pi.prototype.addBoundsMask=function(t,e){var i,r,n,s=(t.minX>e.minX?t:e).minX,o=(t.minY>e.minY?t:e).minY,a=(t.maxX<e.maxX?t:e).maxX,t=(t.maxY<e.maxY?t:e).maxY;s<=a&&o<=t&&(e=this.minX,i=this.minY,r=this.maxX,n=this.maxY,this.minX=s<e?s:e,this.minY=o<i?o:i,this.maxX=r<a?a:r,this.maxY=n<t?t:n)},Pi.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},Pi.prototype.addBoundsArea=function(t,e){var i,r,n,s=t.minX>e.x?t.minX:e.x,o=t.minY>e.y?t.minY:e.y,a=t.maxX<e.x+e.width?t.maxX:e.x+e.width,t=t.maxY<e.y+e.height?t.maxY:e.y+e.height;s<=a&&o<=t&&(e=this.minX,i=this.minY,r=this.maxX,n=this.maxY,this.minX=s<e?s:e,this.minY=o<i?o:i,this.maxX=r<a?a:r,this.maxY=n<t?t:n)},Pi.prototype.pad=function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},Pi.prototype.addFramePad=function(t,e,i,r,n,s){e-=s,i+=n,r+=s,this.minX=this.minX<(t-=n)?this.minX:t,this.maxX=this.maxX>i?this.maxX:i,this.minY=this.minY<e?this.minY:e,this.maxY=this.maxY>r?this.maxY:r};var Oi=Pi;function Pi(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}var Ri=function(t,e){return(Ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function Ci(t,e){function i(){this.constructor=t}Ri(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}Ci(l,Mi=it),l.mixin=function(t){for(var e=Object.keys(t),i=0;i<e.length;++i){var r=e[i];Object.defineProperty(l.prototype,r,Object.getOwnPropertyDescriptor(t,r))}},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(t,e){return t||(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),e||(this._boundsRect||(this._boundsRect=new w),e=this._boundsRect),this._bounds.getRectangle(e)},l.prototype.getLocalBounds=function(t){t||(this._localBoundsRect||(this._localBoundsRect=new w),t=this._localBoundsRect),this._localBounds||(this._localBounds=new Oi);var e=this.transform,i=this.parent,r=(this.parent=null,this.transform=this._tempDisplayObjectParent.transform,this._bounds),n=this._boundsID,t=(this._bounds=this._localBounds,this.getBounds(!1,t));return this.parent=i,this.transform=e,this._bounds=r,this._bounds.updateID+=this._boundsID-n,t},l.prototype.toGlobal=function(t,e,i){return(i=void 0===i?!1:i)||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,e)},l.prototype.toLocal=function(t,e,i,r){return e&&(t=e.toGlobal(t,i,r)),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,i)},l.prototype.setParent=function(t){if(t&&t.addChild)return t.addChild(this),t;throw new Error("setParent: Argument must be a Container")},l.prototype.setTransform=function(t,e,i,r,n,s,o,a,l){return void 0===e&&(e=0),void 0===i&&(i=1),void 0===r&&(r=1),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===l&&(l=0),this.position.x=t=void 0===t?0:t,this.position.y=e,this.scale.x=i||1,this.scale.y=r||1,this.rotation=n,this.skew.x=s,this.skew.y=o,this.pivot.x=a,this.pivot.y=l,this},l.prototype.destroy=function(t){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 Di),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),l.prototype.enableTempParent=function(){var t=this.parent;return this.parent=this._tempDisplayObjectParent,t},l.prototype.disableTempParent=function(t){this.parent=t},Object.defineProperty(l.prototype,"x",{get:function(){return this.position.x},set:function(t){this.transform.position.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"y",{get:function(){return this.position.y},set:function(t){this.transform.position.y=t},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(t){this.transform.position.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(t){this.transform.pivot.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"skew",{get:function(){return this.transform.skew},set:function(t){this.transform.skew.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.rotation=t},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"angle",{get:function(){return this.transform.rotation*Ye},set:function(t){this.transform.rotation=t*We},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"worldVisible",{get:function(){var t=this;do{if(!t.visible)return!1}while(t=t.parent);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"mask",{get:function(){return this._mask},set:function(t){var e;this._mask!==t&&(this._mask&&(e=this._mask.isMaskData?this._mask.maskObject:this._mask)&&(e._maskRefCount--,0===e._maskRefCount&&(e.renderable=!0,e.isMask=!1)),this._mask=t,this._mask&&(e=this._mask.isMaskData?this._mask.maskObject:this._mask)&&(0===e._maskRefCount&&(e.renderable=!1,e.isMask=!0),e._maskRefCount++))},enumerable:!1,configurable:!0});var Mi,i=l;function l(){var t=Mi.call(this)||this;return t.tempDisplayObjectParent=null,t.transform=new Si,t.alpha=1,t.visible=!0,t.renderable=!0,t.cullable=!1,t.cullArea=null,t.parent=null,t.worldAlpha=1,t._lastSortedIndex=0,t._zIndex=0,t.filterArea=null,t.filters=null,t._enabledFilters=null,t._bounds=new Oi,t._localBounds=null,t._boundsID=0,t._boundsRect=null,t._localBoundsRect=null,t._mask=null,t._maskRefCount=0,t._destroyed=!1,t.isSprite=!1,t.isMask=!1,t}Ci(Fi,ki=i);var ki,Ii,Di=Fi;function Fi(){var t=null!==ki&&ki.apply(this,arguments)||this;return t.sortDirty=null,t}function Li(t,e){return t.zIndex===e.zIndex?t._lastSortedIndex-e._lastSortedIndex:t.zIndex-e.zIndex}i.prototype.displayObjectUpdateTransform=i.prototype.updateTransform,(r={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",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR",(nt={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",nt[nt.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",nt[nt.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",nt[nt.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(st={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",st[st.CLEAR=1]="CLEAR",st[st.BLIT=2]="BLIT",(n=Ii=Ii||{})[n.NONE=0]="NONE",n[n.SCISSOR=1]="SCISSOR",n[n.STENCIL=2]="STENCIL",n[n.SPRITE=3]="SPRITE",n[n.COLOR=4]="COLOR";Ci(h,Ni=i),h.prototype.onChildrenChange=function(t){},h.prototype.addChild=function(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];if(1<e.length)for(var r=0;r<e.length;r++)this.addChild(e[r]);else{var n=e[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 e[0]},h.prototype.addChildAt=function(t,e){if(e<0||e>this.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),(t.parent=this).sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},h.prototype.swapChildren=function(t,e){var i,r;t!==e&&(i=this.getChildIndex(t),r=this.getChildIndex(e),this.children[i]=e,this.children[r]=t,this.onChildrenChange(i<r?i:r))},h.prototype.getChildIndex=function(t){t=this.children.indexOf(t);if(-1===t)throw new Error("The supplied DisplayObject must be a child of the caller");return t},h.prototype.setChildIndex=function(t,e){if(e<0||e>=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var i=this.getChildIndex(t);Oe(this.children,i,1),this.children.splice(e,0,t),this.onChildrenChange(e)},h.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},h.prototype.removeChild=function(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];if(1<e.length)for(var r=0;r<e.length;r++)this.removeChild(e[r]);else{var n=e[0],s=this.children.indexOf(n);if(-1===s)return null;n.parent=null,n.transform._parentID=-1,Oe(this.children,s,1),this._boundsID++,this.onChildrenChange(s),n.emit("removed",this),this.emit("childRemoved",n,this,s)}return e[0]},h.prototype.removeChildAt=function(t){var e=this.getChildAt(t);return e.parent=null,e.transform._parentID=-1,Oe(this.children,t,1),this._boundsID++,this.onChildrenChange(t),e.emit("removed",this),this.emit("childRemoved",e,this,t),e},h.prototype.removeChildren=function(t,e){var i=t=void 0===t?0:t,r=(e=void 0===e?this.children.length:e)-i;if(0<r&&r<=e){for(var n=this.children.splice(i,r),s=0;s<n.length;++s)n[s].parent=null,n[s].transform&&(n[s].transform._parentID=-1);this._boundsID++,this.onChildrenChange(t);for(s=0;s<n.length;++s)n[s].emit("removed",this),this.emit("childRemoved",n[s],this,s);return n}if(0==r&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},h.prototype.sortChildren=function(){for(var t=!1,e=0,i=this.children.length;e<i;++e){var r=this.children[e];r._lastSortedIndex=e,t||0===r.zIndex||(t=!0)}t&&1<this.children.length&&this.children.sort(Li),this.sortDirty=!1},h.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 t=0,e=this.children.length;t<e;++t){var i=this.children[t];i.visible&&i.updateTransform()}},h.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var t=0;t<this.children.length;t++){var e,i=this.children[t];i.visible&&i.renderable&&(i.calculateBounds(),i._mask?(e=i._mask.isMaskData?i._mask.maskObject:i._mask)?(e.calculateBounds(),this._bounds.addBoundsMask(i._bounds,e._bounds)):this._bounds.addBounds(i._bounds):i.filterArea?this._bounds.addBoundsArea(i._bounds,i.filterArea):this._bounds.addBounds(i._bounds))}this._bounds.updateID=this._boundsID},h.prototype.getLocalBounds=function(t,e){void 0===e&&(e=!1);t=Ni.prototype.getLocalBounds.call(this,t);if(!e)for(var i=0,r=this.children.length;i<r;++i){var n=this.children[i];n.visible&&n.updateTransform()}return t},h.prototype._calculateBounds=function(){},h.prototype._renderWithCulling=function(t){var e,i,r=t.renderTexture.sourceFrame;if(0<r.width&&0<r.height){if(this.cullArea?(e=this.cullArea,i=this.worldTransform):this._render!==h.prototype._render&&(e=this.getBounds(!0)),e&&r.intersects(e,i))this._render(t);else if(this.cullArea)return;for(var n=0,s=this.children.length;n<s;++n){var o=this.children[n],a=o.cullable;o.cullable=a||!this.cullArea,o.render(t),o.cullable=a}}},h.prototype.render=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(t);else if(this.cullable)this._renderWithCulling(t);else{this._render(t);for(var e=0,i=this.children.length;e<i;++e)this.children[e].render(t)}},h.prototype.renderAdvanced=function(t){var e=this.filters,i=this._mask;if(e){this._enabledFilters||(this._enabledFilters=[]);for(var r=this._enabledFilters.length=0;r<e.length;r++)e[r].enabled&&this._enabledFilters.push(e[r])}var n=e&&this._enabledFilters&&this._enabledFilters.length||i&&(!i.isMaskData||i.enabled&&(i.autoDetect||i.type!==Ii.NONE));if(n&&t.batch.flush(),e&&this._enabledFilters&&this._enabledFilters.length&&t.filter.push(this,this._enabledFilters),i&&t.mask.push(this,this._mask),this.cullable)this._renderWithCulling(t);else{this._render(t);for(var r=0,s=this.children.length;r<s;++r)this.children[r].render(t)}n&&t.batch.flush(),i&&t.mask.pop(this),e&&this._enabledFilters&&this._enabledFilters.length&&t.filter.pop()},h.prototype._render=function(t){},h.prototype.destroy=function(t){Ni.prototype.destroy.call(this),this.sortDirty=!1;var e="boolean"==typeof t?t:t&&t.children,i=this.removeChildren(0,this.children.length);if(e)for(var r=0;r<i.length;++r)i[r].destroy(t)},Object.defineProperty(h.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(t){var e=this.getLocalBounds().width;this.scale.x=0!==e?t/e:1,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(t){var e=this.getLocalBounds().height;this.scale.y=0!==e?t/e:1,this._height=t},enumerable:!1,configurable:!0});var Ni,zi=h;function h(){var t=Ni.call(this)||this;return t.children=[],t.sortableChildren=C.SORTABLE_CHILDREN,t.sortDirty=!1,t}zi.prototype.containerUpdateTransform=zi.prototype.updateTransform;function Bi(t){if("function"==typeof t||"object"==typeof t&&t.extension){if(!t.extension)throw new Error("Extension class must have an extension object");var e="object"!=typeof t.extension?{type:t.extension}:t.extension;t=Ui(Ui({},e),{ref:t})}if("object"!=typeof t)throw new Error("Invalid extension type");return"string"==typeof(t=Ui({},t)).type&&(t.type=[t.type]),t}var Ui=function(){return(Ui=Object.assign||function(t){for(var e,i=arguments,r=1,n=arguments.length;r<n;r++)for(var s in e=i[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},ji=(J.ExtensionType=void 0,(s=J.ExtensionType||(J.ExtensionType={})).Application="application",s.RendererPlugin="renderer-webgl-plugin",s.CanvasRendererPlugin="renderer-canvas-plugin",s.Loader="loader",s.LoadParser="load-parser",s.ResolveParser="resolve-parser",s.CacheParser="cache-parser",s.DetectionParser="detection-parser",{_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var t=arguments,r=this,e=[],i=0;i<arguments.length;i++)e[i]=t[i];return e.map(Bi).forEach(function(i){i.type.forEach(function(t){var e;return null==(t=(e=r._removeHandlers)[t])?void 0:t.call(e,i)})}),this},add:function(){for(var t=arguments,n=this,e=[],i=0;i<arguments.length;i++)e[i]=t[i];return e.map(Bi).forEach(function(r){r.type.forEach(function(t){var e=n._addHandlers,i=n._queue;e[t]?e[t](r):(i[t]=i[t]||[],i[t].push(r))})}),this},handle:function(t,e,i){var r=this._addHandlers=this._addHandlers||{},n=this._removeHandlers=this._removeHandlers||{};if(r[t]||n[t])throw new Error("Extension type "+t+" already has a handler");r[t]=e,n[t]=i;r=this._queue;return r[t]&&(r[t].forEach(function(t){return e(t)}),delete r[t]),this},handleByMap:function(t,e){return this.handle(t,function(t){e[t.name]=t.ref},function(t){delete e[t.name]})},handleByList:function(i,r){return this.handle(i,function(t){var e;r.push(t.ref),i===J.ExtensionType.Loader&&null!=(e=(t=t.ref).add)&&e.call(t)},function(t){t=r.indexOf(t.ref);-1!==t&&r.splice(t,1)})}}),Gi=(Xi.prototype.emit=function(t,e,i,r,n,s,o,a){if(8<arguments.length)throw new Error("max arguments reached");var l=this.name,h=this.items;this._aliasCount++;for(var u=0,c=h.length;u<c;u++)h[u][l](t,e,i,r,n,s,o,a);return h===this.items&&this._aliasCount--,this},Xi.prototype.ensureNonAliasedItems=function(){0<this._aliasCount&&1<this.items.length&&(this._aliasCount=0,this.items=this.items.slice(0))},Xi.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},Xi.prototype.remove=function(t){t=this.items.indexOf(t);return-1!==t&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this},Xi.prototype.contains=function(t){return-1!==this.items.indexOf(t)},Xi.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},Xi.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(Xi.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(Xi.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Xi);function Xi(t){this.items=[],this._name=t,this._aliasCount=0}Object.defineProperties(Gi.prototype,{dispatch:{value:Gi.prototype.emit},run:{value:Gi.prototype.emit}}),C.TARGET_FPMS=.06,J.UPDATE_PRIORITY=void 0,(o=J.UPDATE_PRIORITY||(J.UPDATE_PRIORITY={}))[o.INTERACTION=50]="INTERACTION",o[o.HIGH=25]="HIGH",o[o.NORMAL=0]="NORMAL",o[o.LOW=-25]="LOW",o[o.UTILITY=-50]="UTILITY";Yi.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},Yi.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},Yi.prototype.connect=function(t){(this.previous=t).next&&(t.next.previous=this),this.next=t.next,t.next=this},Yi.prototype.destroy=function(t){void 0===t&&(t=!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 e=this.next;return this.next=t?null:e,this.previous=null,e};var Hi=Yi;function Yi(t,e,i,r){void 0===e&&(e=null),void 0===i&&(i=0),void 0===r&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=i,this.once=r}u.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},u.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},u.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},u.prototype.add=function(t,e,i){return void 0===i&&(i=J.UPDATE_PRIORITY.NORMAL),this._addListener(new Hi(t,e,i))},u.prototype.addOnce=function(t,e,i){return void 0===i&&(i=J.UPDATE_PRIORITY.NORMAL),this._addListener(new Hi(t,e,i,!0))},u.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(i);break}e=(i=e).next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this},u.prototype.remove=function(t,e){for(var i=this._head.next;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(u.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),u.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},u.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},u.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},u.prototype.update=function(t){var e;if((t=void 0===t?performance.now():t)>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i<this._minElapsedMS)return;this._lastFrame=t-i%this._minElapsedMS}this.deltaMS=e,this.deltaTime=this.deltaMS*C.TARGET_FPMS;for(var i=this._head,r=i.next;r;)r=r.emit(this.deltaTime);i.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t},Object.defineProperty(u.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(t){t=Math.min(this.maxFPS,t),t=Math.min(Math.max(0,t)/1e3,C.TARGET_FPMS);this._maxElapsedMS=1/t},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(t){0===t?this._minElapsedMS=0:(t=Math.max(this.minFPS,t),this._minElapsedMS=1/(t/1e3))},enumerable:!1,configurable:!0}),Object.defineProperty(u,"shared",{get:function(){var t;return u._shared||((t=u._shared=new u).autoStart=!0,t._protected=!0),u._shared},enumerable:!1,configurable:!0}),Object.defineProperty(u,"system",{get:function(){var t;return u._system||((t=u._system=new u).autoStart=!0,t._protected=!0),u._system},enumerable:!1,configurable:!0});var Wi=u;function u(){var e=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 Hi(null,null,1/0),this.deltaMS=1/C.TARGET_FPMS,this.elapsedMS=1/C.TARGET_FPMS,this._tick=function(t){e._requestId=null,e.started&&(e.update(t),e.started&&null===e._requestId&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}Vi.init=function(t){var e=this;t=Object.assign({autoStart:!0,sharedTicker:!1},t),Object.defineProperty(this,"ticker",{set:function(t){this._ticker&&this._ticker.remove(this.render,this),(this._ticker=t)&&t.add(this.render,this,J.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}}),this.stop=function(){e._ticker.stop()},this.start=function(){e._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Wi.shared:new Wi,t.autoStart&&this.start()},Vi.destroy=function(){var t;this._ticker&&(t=this._ticker,this.ticker=null,t.destroy())},Vi.extension=J.ExtensionType.Application;ot=Vi;function Vi(){}C.PREFER_ENV=ut.any?J.ENV.WEBGL:J.ENV.WEBGL2,C.STRICT_TEXTURE_CACHE=!1;var qi=[];function Ki(t,e){if(!t)return null;var i,r="";"string"==typeof t&&(i=/\.(\w{3,4})(?:$|\?|#)/i.exec(t))&&(r=i[1].toLowerCase());for(var n=qi.length-1;0<=n;--n){var s=qi[n];if(s.test&&s.test(t,r))return new s(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")}var Zi=function(t,e){return(Zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function c(t,e){function i(){this.constructor=t}Zi(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Qi=function(){return(Qi=Object.assign||function(t){for(var e,i=arguments,r=1,n=arguments.length;r<n;r++)for(var s in e=i[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};Ji.prototype.bind=function(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},Ji.prototype.unbind=function(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)},Ji.prototype.resize=function(t,e){t===this._width&&e===this._height||(this._width=t,this._height=e,this.onResize.emit(t,e))},Object.defineProperty(Ji.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),Ji.prototype.update=function(){this.destroyed||this.onUpdate.emit()},Ji.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(Ji.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(Ji.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Ji.prototype.style=function(t,e,i){return!1},Ji.prototype.dispose=function(){},Ji.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)},Ji.test=function(t,e){return!1};var $i=Ji;function Ji(t,e){void 0===e&&(e=0),this._width=t=void 0===t?0:t,this._height=e,this.destroyed=!1,this.internal=!1,this.onResize=new Gi("setRealSize"),this.onUpdate=new Gi("update"),this.onError=new Gi("onError")}c(ir,tr=$i),ir.prototype.upload=function(t,e,i){var t=t.gl,r=(t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===J.ALPHA_MODES.UNPACK),e.realWidth),n=e.realHeight;return i.width===r&&i.height===n?t.texSubImage2D(e.target,0,0,0,r,n,e.format,i.type,this.data):(i.width=r,i.height=n,t.texImage2D(e.target,0,i.internalFormat,r,n,0,e.format,i.type,this.data)),!0},ir.prototype.dispose=function(){this.data=null},ir.test=function(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array};var tr,er=ir;function ir(t,e){var i=this,e=e||{},r=e.width,e=e.height;if(r&&e)return(i=tr.call(this,r,e)||this).data=t,i;throw new Error("BufferResource width or height invalid")}var rr,nr={scaleMode:J.SCALE_MODES.NEAREST,format:J.FORMATS.RGBA,alphaMode:J.ALPHA_MODES.NPM},M=(c(p,rr=it),Object.defineProperty(p.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"mipmap",{get:function(){return this._mipmap},set:function(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),p.prototype.setStyle=function(t,e){var i;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,i=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,i=!0),i&&this.dirtyStyleId++,this},p.prototype.setSize=function(t,e,i){return i=i||this.resolution,this.setRealSize(t*i,e*i,i)},p.prototype.setRealSize=function(t,e,i){return this.resolution=i||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(e)/this.resolution,this._refreshPOT(),this.update(),this},p.prototype._refreshPOT=function(){this.isPowerOfTwo=Se(this.realWidth)&&Se(this.realHeight)},p.prototype.setResolution=function(t){var e=this.resolution;return e!==t&&(this.resolution=t,this.valid&&(this.width=Math.round(this.width*e)/t,this.height=Math.round(this.height*e)/t,this.emit("update",this)),this._refreshPOT()),this},p.prototype.setResource=function(t){if(this.resource!==t){if(this.resource)throw new Error("Resource can be set only once");t.bind(this),this.resource=t}return this},p.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))},p.prototype.onError=function(t){this.emit("error",this,t)},p.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Fe[this.cacheId],delete De[this.cacheId],this.cacheId=null),this.dispose(),p.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},p.prototype.dispose=function(){this.emit("dispose",this)},p.prototype.castToBaseTexture=function(){return this},p.from=function(t,e,i){void 0===i&&(i=C.STRICT_TEXTURE_CACHE);var r="string"==typeof t,n=null,n=r?t:(t._pixiId||(s=e&&e.pixiIdPrefix||"pixiid",t._pixiId=s+"_"+ ++Re),t._pixiId),s=Fe[n];if(r&&i&&!s)throw new Error('The cacheId "'+n+'" does not exist in BaseTextureCache.');return s||((s=new p(t,e)).cacheId=n,p.addToCache(s,n)),s},p.fromBuffer=function(t,e,i,r){t=t||new Float32Array(e*i*4);var n=new er(t,{width:e,height:i}),t=t instanceof Float32Array?J.TYPES.FLOAT:J.TYPES.UNSIGNED_BYTE;return new p(n,Object.assign(nr,r||{width:e,height:i,type:t}))},p.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),Fe[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),Fe[e]=t)},p.removeFromCache=function(t){if("string"==typeof t){var e,i=Fe[t];if(i)return-1<(e=i.textureCacheIds.indexOf(t))&&i.textureCacheIds.splice(e,1),delete Fe[t],i}else if(t&&t.textureCacheIds){for(var r=0;r<t.textureCacheIds.length;++r)delete Fe[t.textureCacheIds[r]];return t.textureCacheIds.length=0,t}return null},p._globalBatch=0,p);function p(t,e){void 0===t&&(t=null),void 0===e&&(e=null);var i=rr.call(this)||this,r=(e=e||{}).alphaMode,n=e.mipmap,s=e.anisotropicLevel,o=e.scaleMode,a=e.width,l=e.height,h=e.wrapMode,u=e.format,c=e.type,p=e.target,d=e.resolution,e=e.resourceOptions;return!t||t instanceof $i||((t=Ki(t,e)).internal=!0),i.resolution=d||C.RESOLUTION,i.width=Math.round((a||0)*i.resolution)/i.resolution,i.height=Math.round((l||0)*i.resolution)/i.resolution,i._mipmap=void 0!==n?n:C.MIPMAP_TEXTURES,i.anisotropicLevel=void 0!==s?s:C.ANISOTROPIC_LEVEL,i._wrapMode=h||C.WRAP_MODE,i._scaleMode=void 0!==o?o:C.SCALE_MODE,i.format=u||J.FORMATS.RGBA,i.type=c||J.TYPES.UNSIGNED_BYTE,i.target=p||J.TARGETS.TEXTURE_2D,i.alphaMode=void 0!==r?r:J.ALPHA_MODES.UNPACK,i.uid=++Re,i.touched=0,i.isPowerOfTwo=!1,i._refreshPOT(),i._glTextures={},i.dirtyId=0,i.dirtyStyleId=0,i.cacheId=null,i.valid=0<a&&0<l,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(t),i}c(or,sr=$i),or.prototype.initFromArray=function(t,e){for(var i=0;i<this.length;i++)t[i]&&(t[i].castToBaseTexture?this.addBaseTextureAt(t[i].castToBaseTexture(),i):t[i]instanceof $i?this.addResourceAt(t[i],i):this.addResourceAt(Ki(t[i],e),i))},or.prototype.dispose=function(){for(var t=0,e=this.length;t<e;t++)this.items[t].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},or.prototype.addResourceAt=function(t,e){if(this.items[e])return t.valid&&!this.valid&&this.resize(t.width,t.height),this.items[e].setResource(t),this;throw new Error("Index "+e+" is out of bounds")},or.prototype.bind=function(t){if(null!==this.baseTexture)throw new Error("Only one base texture per TextureArray is allowed");sr.prototype.bind.call(this,t);for(var e=0;e<this.length;e++)this.items[e].parentTextureArray=t,this.items[e].on("update",t.update,t)},or.prototype.unbind=function(t){sr.prototype.unbind.call(this,t);for(var e=0;e<this.length;e++)this.items[e].parentTextureArray=null,this.items[e].off("update",t.update,t)},or.prototype.load=function(){var t,i=this;return this._load||(t=this.items.map(function(t){return t.resource}).filter(function(t){return t}).map(function(t){return t.load()}),this._load=Promise.all(t).then(function(){var t=i.items[0],e=t.realWidth,t=t.realHeight;return i.resize(e,t),Promise.resolve(i)})),this._load};var sr,a=or;function or(t,e){var i=this,e=e||{},r=e.width,e=e.height;(i=sr.call(this,r,e)||this).items=[],i.itemDirtyIds=[];for(var n=0;n<t;n++){var s=new M;i.items.push(s),i.itemDirtyIds.push(-2)}return i.length=t,i._load=null,i.baseTexture=null,i}c(lr,ar=a),lr.prototype.addBaseTextureAt=function(t,e){if(t.resource)return this.addResourceAt(t.resource,e),this;throw new Error("ArrayResource does not support RenderTexture")},lr.prototype.bind=function(t){ar.prototype.bind.call(this,t),t.target=J.TARGETS.TEXTURE_2D_ARRAY},lr.prototype.upload=function(t,e,i){var r=this.length,n=this.itemDirtyIds,s=this.items,o=t.gl;i.dirtyId<0&&o.texImage3D(o.TEXTURE_2D_ARRAY,0,i.internalFormat,this._width,this._height,r,0,e.format,i.type,null);for(var a=0;a<r;a++){var l=s[a];n[a]<l.dirtyId&&(n[a]=l.dirtyId,l.valid&&o.texSubImage3D(o.TEXTURE_2D_ARRAY,0,0,0,a,l.resource.width,l.resource.height,1,e.format,i.type,l.resource.source))}return!0};var ar,lt=lr;function lr(t,e){var i,r=this,n=e||{},s=n.width,n=n.height,t=Array.isArray(t)?(i=t).length:t,r=ar.call(this,t,{width:s,height:n})||this;return i&&r.initFromArray(i,e),r}c(cr,hr=$i),cr.crossOrigin=function(t,e,i){void 0===i&&0!==e.indexOf("data:")?t.crossOrigin=je(e):!1!==i&&(t.crossOrigin="string"==typeof i?i:"anonymous")},cr.prototype.upload=function(t,e,i,r){var t=t.gl,n=e.realWidth,s=e.realHeight;if((r=r||this.source)instanceof HTMLImageElement){if(!r.complete||0===r.naturalWidth)return!1}else if(r instanceof HTMLVideoElement&&r.readyState<=1)return!1;return t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===J.ALPHA_MODES.UNPACK),this.noSubImage||e.target!==t.TEXTURE_2D||i.width!==n||i.height!==s?(i.width=n,i.height=s,t.texImage2D(e.target,0,i.internalFormat,e.format,i.type,r)):t.texSubImage2D(t.TEXTURE_2D,0,0,0,e.format,i.type,r),!0},cr.prototype.update=function(){var t,e;this.destroyed||(t=(e=this.source).naturalWidth||e.videoWidth||e.width,e=e.naturalHeight||e.videoHeight||e.height,this.resize(t,e),hr.prototype.update.call(this))},cr.prototype.dispose=function(){this.source=null};var hr,ur=cr;function cr(t){var e=this,i=t.naturalWidth||t.videoWidth||t.width,r=t.naturalHeight||t.videoHeight||t.height;return(e=hr.call(this,i,r)||this).source=t,e.noSubImage=!1,e}c(dr,pr=ur),dr.test=function(t){var e=globalThis.OffscreenCanvas;return!!(e&&t instanceof e)||globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement};var pr,d=dr;function dr(t){return pr.call(this,t)||this}c(mr,fr=a),mr.prototype.bind=function(t){fr.prototype.bind.call(this,t),t.target=J.TARGETS.TEXTURE_CUBE_MAP},mr.prototype.addBaseTextureAt=function(t,e,i){if(!this.items[e])throw new Error("Index "+e+" is out of bounds");if(!this.linkBaseTexture||t.parentTextureArray||0<Object.keys(t._glTextures).length){if(!t.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(t.resource,e)}else t.target=J.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X+e,t.parentTextureArray=this.baseTexture,this.items[e]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[e]=t,this},mr.prototype.upload=function(t,e,i){for(var r=this.itemDirtyIds,n=0;n<mr.SIDES;n++){var s=this.items[n];(r[n]<s.dirtyId||i.dirtyId<e.dirtyId)&&(s.valid&&s.resource?(s.resource.upload(t,s,i),r[n]=s.dirtyId):r[n]<-1&&(t.gl.texImage2D(s.target,0,i.internalFormat,e.realWidth,e.realHeight,0,e.format,i.type,null),r[n]=-1))}return!0},mr.test=function(t){return Array.isArray(t)&&t.length===mr.SIDES},mr.SIDES=6;var fr,at=mr;function mr(t,e){var i=this,r=e||{},n=r.width,s=r.height,o=r.autoLoad,r=r.linkBaseTexture;if(t&&t.length!==mr.SIDES)throw new Error("Invalid length. Got "+t.length+", expected 6");for(var i=fr.call(this,6,{width:n,height:s})||this,a=0;a<mr.SIDES;a++)i.items[a].target=J.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X+a;return i.linkBaseTexture=!1!==r,t&&i.initFromArray(t,e),!1!==o&&i.load(),i}c(vr,_r=ur),vr.prototype.load=function(t){var n=this;return this._load||(void 0!==t&&(this.createBitmap=t),this._load=new Promise(function(t,e){function i(){n.destroyed||(r.onload=null,r.onerror=null,n.resize(r.width,r.height),n._load=null,n.createBitmap?t(n.process()):t(n))}var r=n.source;n.url=r.src;r.complete&&r.src?i():(r.onload=i,r.onerror=function(t){e(t),n.onError.emit(t)})})),this._load},vr.prototype.process=function(){var e=this,i=this.source;if(null===this._process){if(null!==this.bitmap||!globalThis.createImageBitmap)return Promise.resolve(this);var r=globalThis.createImageBitmap,t=!i.crossOrigin||"anonymous"===i.crossOrigin;this._process=fetch(i.src,{mode:t?"cors":"no-cors"}).then(function(t){return t.blob()}).then(function(t){return r(t,0,0,i.width,i.height,{premultiplyAlpha:e.alphaMode===J.ALPHA_MODES.UNPACK?"premultiply":"none"})}).then(function(t){return e.destroyed?Promise.reject():(e.bitmap=t,e.update(),e._process=null,Promise.resolve(e))})}return this._process},vr.prototype.upload=function(t,e,i){if("number"==typeof this.alphaMode&&(e.alphaMode=this.alphaMode),!this.createBitmap)return _r.prototype.upload.call(this,t,e,i);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(_r.prototype.upload.call(this,t,e,i,this.bitmap),!this.preserveBitmap){var r,n=!0,s=e._glTextures;for(r in s){var o=s[r];if(o!==i&&o.dirtyId!==e.dirtyId){n=!1;break}}n&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},vr.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,_r.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},vr.test=function(t){return"string"==typeof t||t instanceof HTMLImageElement};var _r,gr=vr;function vr(t,e){var i,r=this;return e=e||{},t instanceof HTMLImageElement||(i=new Image,ur.crossOrigin(i,t,e.crossorigin),i.src=t,t=i),r=_r.call(this,t)||this,!t.complete&&r._width&&r._height&&(r._width=0,r._height=0),r.url=t.src,r._process=null,r.preserveBitmap=!1,r.createBitmap=(void 0!==e.createBitmap?e.createBitmap:C.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,r.alphaMode="number"==typeof e.alphaMode?e.alphaMode:null,r.bitmap=null,r._load=null,!1!==e.autoLoad&&r.load(),r}c(br,yr=ur),br.prototype.load=function(){var e=this;return this._load||(this._load=new Promise(function(t){if(e._resolve=function(){e.resize(e.source.width,e.source.height),t(e)},br.SVG_XML.test(e.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");e.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e.svg)))}e._loadSvg()})),this._load},br.prototype._loadSvg=function(){var s=this,o=new Image;ur.crossOrigin(o,this.svg,this._crossorigin),o.src=this.svg,o.onerror=function(t){s._resolve&&(o.onerror=null,s.onError.emit(t))},o.onload=function(){if(s._resolve){var t=o.width,e=o.height;if(!t||!e)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var i=t*s.scale,r=e*s.scale,n=((s._overrideWidth||s._overrideHeight)&&(i=s._overrideWidth||s._overrideHeight/e*t,r=s._overrideHeight||s._overrideWidth/t*e),i=Math.round(i),r=Math.round(r),s.source);n.width=i,n.height=r,n._pixiId="canvas_"+ ++Re,n.getContext("2d").drawImage(o,0,0,t,e,0,0,i,r),s._resolve(),s._resolve=null}}},br.getSize=function(t){var t=br.SVG_SIZE.exec(t),e={};return t&&(e[t[1]]=Math.round(parseFloat(t[3])),e[t[5]]=Math.round(parseFloat(t[7]))),e},br.prototype.dispose=function(){yr.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},br.test=function(t,e){return"svg"===e||"string"==typeof t&&t.startsWith("data:image/svg+xml")||"string"==typeof t&&br.SVG_XML.test(t)},br.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,br.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;var yr,f=br;function br(t,e){var i=this;return e=e||{},(i=yr.call(this,C.ADAPTER.createCanvas())||this)._width=0,i._height=0,i.svg=t,i.scale=e.scale||1,i._overrideWidth=e.width,i._overrideHeight=e.height,i._resolve=null,i._crossorigin=e.crossorigin,i._load=null,!1!==e.autoLoad&&i.load(),i}c(wr,xr=ur),wr.prototype.update=function(t){var e;this.destroyed||(e=Wi.shared.elapsedMS*this.source.playbackRate,this._msToNextUpdate=Math.floor(this._msToNextUpdate-e),(!this._updateFPS||this._msToNextUpdate<=0)&&(xr.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0))},wr.prototype.load=function(){var e,i=this;return this._load||(((e=this.source).readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart.bind(this)),e.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlay),e.addEventListener("error",this._onError,!0)),this._load=new Promise(function(t){i.valid?t(i):(i._resolve=t,e.load())})),this._load},wr.prototype._onError=function(t){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(t)},wr.prototype._isSourcePlaying=function(){var t=this.source;return 0<t.currentTime&&!1===t.paused&&!1===t.ended&&2<t.readyState},wr.prototype._isSourceReady=function(){var t=this.source;return 3===t.readyState||4===t.readyState},wr.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Wi.shared.add(this.update,this),this._isConnectedToTicker=!0)},wr.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1)},wr.prototype._onCanPlay=function(){var t=this.source,e=(t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay),this.valid);this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},wr.prototype.dispose=function(){this._isConnectedToTicker&&(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1);var t=this.source;t&&(t.removeEventListener("error",this._onError,!0),t.pause(),t.src="",t.load()),xr.prototype.dispose.call(this)},Object.defineProperty(wr.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Wi.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(wr.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t)},enumerable:!1,configurable:!0}),wr.test=function(t,e){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement||-1<wr.TYPES.indexOf(e)},wr.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],wr.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};var xr,Tr=wr;function wr(t,e){var i=this;if(e=e||{},!(t instanceof HTMLVideoElement)){var r=document.createElement("video"),n=(r.setAttribute("preload","auto"),r.setAttribute("webkit-playsinline",""),r.setAttribute("playsinline",""),(t="string"==typeof t?[t]:t)[0].src||t[0]);ur.crossOrigin(r,n,e.crossorigin);for(var s=0;s<t.length;++s){var o=document.createElement("source"),a=t[s],l=a.src,a=a.mime,h=(l=l||t[s]).split("?").shift().toLowerCase(),h=h.slice(h.lastIndexOf(".")+1),a=a||wr.MIME_TYPES[h]||"video/"+h;o.src=l,o.type=a,r.appendChild(o)}t=r}return(i=xr.call(this,t)||this).noSubImage=!0,i._autoUpdate=!0,i._isConnectedToTicker=!1,i._updateFPS=e.updateFPS||0,i._msToNextUpdate=0,i.autoPlay=!1!==e.autoPlay,i._load=null,i._resolve=null,i._onCanPlay=i._onCanPlay.bind(i),i._onError=i._onError.bind(i),!1!==e.autoLoad&&i.load(),i}c(Ar,Er=ur),Ar.test=function(t){return!!globalThis.createImageBitmap&&"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap};var Er,Sr=Ar;function Ar(t){return Er.call(this,t)||this}qi.push(gr,Sr,d,Tr,f,er,at,lt);var Or,Pr={__proto__:null,Resource:$i,BaseImageResource:ur,INSTALLED:qi,autoDetectResource:Ki,AbstractMultiResource:a,ArrayResource:lt,BufferResource:er,CanvasResource:d,CubeResource:at,ImageResource:gr,SVGResource:f,VideoResource:Tr,ImageBitmapResource:Sr},Rr=(c(Cr,Or=er),Cr.prototype.upload=function(t,e,i){var t=t.gl,r=(t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===J.ALPHA_MODES.UNPACK),e.realWidth),n=e.realHeight;return i.width===r&&i.height===n?t.texSubImage2D(e.target,0,0,0,r,n,e.format,i.type,this.data):(i.width=r,i.height=n,t.texImage2D(e.target,0,i.internalFormat,r,n,0,e.format,i.type,this.data)),!0},Cr);function Cr(){return null!==Or&&Or.apply(this,arguments)||this}Object.defineProperty(kr.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),kr.prototype.addColorTexture=function(t,e){return this.colorTextures[t=void 0===t?0:t]=e||new M(null,{scaleMode:J.SCALE_MODES.NEAREST,resolution:1,mipmap:J.MIPMAP_MODES.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},kr.prototype.addDepthTexture=function(t){return this.depthTexture=t||new M(new Rr(null,{width:this.width,height:this.height}),{scaleMode:J.SCALE_MODES.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:J.MIPMAP_MODES.OFF,format:J.FORMATS.DEPTH_COMPONENT,type:J.TYPES.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},kr.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},kr.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},kr.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i<this.colorTextures.length;i++){var r=this.colorTextures[i],n=r.resolution;r.setSize(t/n,e/n)}this.depthTexture&&(n=this.depthTexture.resolution,this.depthTexture.setSize(t/n,e/n))}},kr.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},kr.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)};var Mr=kr;function kr(t,e){this.width=Math.round(t||100),this.height=Math.round(e||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 Gi("disposeFramebuffer"),this.multisample=J.MSAA_QUALITY.NONE}c(Fr,Ir=M),Fr.prototype.resize=function(t,e){this.framebuffer.resize(t*this.resolution,e*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},Fr.prototype.dispose=function(){this.framebuffer.dispose(),Ir.prototype.dispose.call(this)},Fr.prototype.destroy=function(){Ir.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null};var Ir,Dr=Fr;function Fr(t){var e=this;return(t="number"==typeof(t=void 0===t?{}:t)?{width:arguments[0],height:arguments[1],scaleMode:arguments[2],resolution:arguments[3]}:t).width=t.width||100,t.height=t.height||100,t.multisample=void 0!==t.multisample?t.multisample:J.MSAA_QUALITY.NONE,(e=Ir.call(this,null,t)||this).mipmap=J.MIPMAP_MODES.OFF,e.valid=!0,e.clearColor=[0,0,0,0],e.framebuffer=new Mr(e.realWidth,e.realHeight).addColorTexture(0,e),e.framebuffer.multisample=t.multisample,e.maskStack=[],e.filterStack=[{}],e}Nr.prototype.set=function(t,e,i){var r,n,s,o,a=e.width,e=e.height;i?(r=t.width/2/a,n=t.height/2/e,s=t.x/a+r,o=t.y/e+n,i=Ei.add(i,Ei.NW),this.x0=s+r*Ei.uX(i),this.y0=o+n*Ei.uY(i),i=Ei.add(i,2),this.x1=s+r*Ei.uX(i),this.y1=o+n*Ei.uY(i),i=Ei.add(i,2),this.x2=s+r*Ei.uX(i),this.y2=o+n*Ei.uY(i),i=Ei.add(i,2),this.x3=s+r*Ei.uX(i),this.y3=o+n*Ei.uY(i)):(this.x0=t.x/a,this.y0=t.y/e,this.x1=(t.x+t.width)/a,this.y1=t.y/e,this.x2=(t.x+t.width)/a,this.y2=(t.y+t.height)/e,this.x3=t.x/a,this.y3=(t.y+t.height)/e),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},Nr.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 Lr=Nr;function Nr(){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 zr=new Lr;function Br(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}c(m,Ur=it),m.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},m.prototype.onBaseTextureUpdated=function(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},m.prototype.destroy=function(t){this.baseTexture&&(t&&((t=this.baseTexture.resource)&&t.url&&De[t.url]&&m.removeFromCache(t.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 t=this._frame.clone(),e=this._frame===this.orig?t:this.orig.clone(),e=new m(this.baseTexture,!this.noFrame&&t,e,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(e._frame=t),e},m.prototype.updateUvs=function(){this._uvs===zr&&(this._uvs=new Lr),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},m.from=function(t,e,i){void 0===e&&(e={}),void 0===i&&(i=C.STRICT_TEXTURE_CACHE);var r="string"==typeof t,n=null,n=r?t:t instanceof M?(t.cacheId||(s=e&&e.pixiIdPrefix||"pixiid",t.cacheId=s+"-"+ ++Re,M.addToCache(t,t.cacheId)),t.cacheId):(t._pixiId||(s=e&&e.pixiIdPrefix||"pixiid",t._pixiId=s+"_"+ ++Re),t._pixiId),s=De[n];if(r&&i&&!s)throw new Error('The cacheId "'+n+'" does not exist in TextureCache.');return s||t instanceof M?!s&&t instanceof M&&(s=new m(t),m.addToCache(s,n)):(e.resolution||(e.resolution=Ge(t)),(s=new m(new M(t,e))).baseTexture.cacheId=n,M.addToCache(s.baseTexture,n),m.addToCache(s,n)),s},m.fromURL=function(t,e){var i=Object.assign({autoLoad:!1},null==e?void 0:e.resourceOptions),r=m.from(t,Object.assign({resourceOptions:i},e),!1),t=r.baseTexture.resource;return r.baseTexture.valid?Promise.resolve(r):t.load().then(function(){return Promise.resolve(r)})},m.fromBuffer=function(t,e,i,r){return new m(M.fromBuffer(t,e,i,r))},m.fromLoader=function(t,e,i,r){var t=new M(t,Object.assign({scaleMode:C.SCALE_MODE,resolution:Ge(e)},r)),r=t.resource,n=(r instanceof gr&&(r.url=e),new m(t));return M.addToCache(n.baseTexture,i=i||e),m.addToCache(n,i),i!==e&&(M.addToCache(n.baseTexture,e),m.addToCache(n,e)),n.baseTexture.valid?Promise.resolve(n):new Promise(function(t){n.baseTexture.once("loaded",function(){return t(n)})})},m.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),De[e]&&console.warn("Texture added to the cache with an id ["+e+"] that already had an entry"),De[e]=t)},m.removeFromCache=function(t){if("string"==typeof t){var e,i=De[t];if(i)return-1<(e=i.textureCacheIds.indexOf(t))&&i.textureCacheIds.splice(e,1),delete De[t],i}else if(t&&t.textureCacheIds){for(var r=0;r<t.textureCacheIds.length;++r)De[t.textureCacheIds[r]]===t&&delete De[t.textureCacheIds[r]];return t.textureCacheIds.length=0,t}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(t){this._frame=t,this.noFrame=!1;var e=t.x,i=t.y,r=t.width,n=t.height,s=e+r>this.baseTexture.width,o=i+n>this.baseTexture.height;if(s||o)throw e="X: "+e+" + "+r+" = "+(e+r)+" > "+this.baseTexture.width,i="Y: "+i+" + "+n+" = "+(i+n)+" > "+this.baseTexture.height,new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+e+" "+(s&&o?"and":"or")+" "+i);this.valid=r&&n&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,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||(Br(m._EMPTY=new m(new M)),Br(m._EMPTY.baseTexture)),m._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(m,"WHITE",{get:function(){var t,e;return m._WHITE||(e=(t=C.ADAPTER.createCanvas(16,16)).getContext("2d"),t.width=16,t.height=16,e.fillStyle="white",e.fillRect(0,0,16,16),Br(m._WHITE=new m(M.from(t))),Br(m._WHITE.baseTexture)),m._WHITE},enumerable:!1,configurable:!0});var Ur,et=m;function m(t,e,i,r,n,s){var o=Ur.call(this)||this;if(o.noFrame=!1,e||(o.noFrame=!0,e=new w(0,0,1,1)),t instanceof m&&(t=t.baseTexture),o.baseTexture=t,o._frame=e,o.trim=r,o.valid=!1,o._uvs=zr,o.uvMatrix=null,o.orig=i||e,o._rotate=Number(n||0),!0===n)o._rotate=2;else if(o._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return o.defaultAnchor=s?new tt(s.x,s.y):new tt(0,0),o._updateID=0,o.textureCacheIds=[],t.valid?o.noFrame?t.valid&&o.onBaseTextureUpdated(t):o.frame=e:t.once("loaded",o.onBaseTextureUpdated,o),o.noFrame&&t.on("update",o.onBaseTextureUpdated,o),o}c(Xr,jr=et),Object.defineProperty(Xr.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(Xr.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(t){this.framebuffer.multisample=t},enumerable:!1,configurable:!0}),Xr.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var r=this.baseTexture.resolution,t=Math.round(t*r)/r,e=Math.round(e*r)/r;this.valid=0<t&&0<e,this._frame.width=this.orig.width=t,this._frame.height=this.orig.height=e,i&&this.baseTexture.resize(t,e),this.updateUvs()},Xr.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},Xr.create=function(t){for(var e=arguments,i=[],r=1;r<arguments.length;r++)i[r-1]=e[r];return"number"==typeof t&&(ke("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),t={width:t,height:i[0],scaleMode:i[1],resolution:i[2]}),new Xr(new Dr(t))};var jr,Gr=Xr;function Xr(t,e){t=jr.call(this,t,e)||this;return t.valid=!0,t.filterFrame=null,t.filterPoolKey=null,t.updateUvs(),t}Yr.prototype.createTexture=function(t,e,i){void 0===i&&(i=J.MSAA_QUALITY.NONE);t=new Dr(Object.assign({width:t,height:e,resolution:1,multisample:i},this.textureOptions));return new Gr(t)},Yr.prototype.getOptimalTexture=function(t,e,i,r){void 0===i&&(i=1),void 0===r&&(r=J.MSAA_QUALITY.NONE),t=Math.ceil(t*i-1e-6),e=Math.ceil(e*i-1e-6),this.enableFullScreen&&t===this._pixelsWidth&&e===this._pixelsHeight?n=1<r?-r:-1:(n=((65535&(t=Ee(t)))<<16|65535&(e=Ee(e)))>>>0,1<r&&(n+=4294967296*r)),this.texturePool[n]||(this.texturePool[n]=[]);var n,s=this.texturePool[n].pop();return(s=s||this.createTexture(t,e,r)).filterPoolKey=n,s.setResolution(i),s},Yr.prototype.getFilterTexture=function(t,e,i){e=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||J.MSAA_QUALITY.NONE);return e.filterFrame=t.filterFrame,e},Yr.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},Yr.prototype.returnFilterTexture=function(t){this.returnTexture(t)},Yr.prototype.clear=function(t){if(t=!1!==t)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var r=0;r<i.length;r++)i[r].destroy(!0)}this.texturePool={}},Yr.prototype.setScreenSize=function(t){if(t.width!==this._pixelsWidth||t.height!==this._pixelsHeight){for(var e in this.enableFullScreen=0<t.width&&0<t.height,this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var r=0;r<i.length;r++)i[r].destroy(!0);this.texturePool[e]=[]}this._pixelsWidth=t.width,this._pixelsHeight=t.height}},Yr.SCREEN_KEY=-1;var Hr=Yr;function Yr(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}Vr.prototype.destroy=function(){this.buffer=null},Vr.from=function(t,e,i,r,n){return new Vr(t,e,i,r,n)};var Wr=Vr;function Vr(t,e,i,r,n,s,o){void 0===e&&(e=0),void 0===i&&(i=!1),void 0===r&&(r=J.TYPES.FLOAT),this.buffer=t,this.size=e,this.normalized=i,this.type=r,this.stride=n,this.start=s,this.instance=o}var qr=0,Kr=(Zr.prototype.update=function(t){t instanceof Array&&(t=new Float32Array(t)),this.data=t||this.data,this._updateID++},Zr.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},Zr.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(Zr.prototype,"index",{get:function(){return this.type===J.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER},set:function(t){this.type=t?J.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER:J.BUFFER_TYPE.ARRAY_BUFFER},enumerable:!1,configurable:!0}),Zr.from=function(t){return new Zr(t=t instanceof Array?new Float32Array(t):t)},Zr);function Zr(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1),this.data=t||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=i,this.static=e,this.id=qr++,this.disposeRunner=new Gi("disposeBuffer")}var Qr={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var $r={5126:4,5123:2,5121:1},Jr=0,tn={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array},en=(rn.prototype.addAttribute=function(t,e,i,r,n,s,o,a){if(void 0===i&&(i=0),void 0===r&&(r=!1),void 0===a&&(a=!1),!e)throw new Error("You must pass a buffer when creating an attribute");e instanceof Kr||(e instanceof Array&&(e=new Float32Array(e)),e=new Kr(e));var l=t.split("|");if(1<l.length)for(var h=0;h<l.length;h++)this.addAttribute(l[h],e,i,r,n);else{var u=this.buffers.indexOf(e);-1===u&&(this.buffers.push(e),u=this.buffers.length-1),this.attributes[t]=new Wr(u,i,r,n,s,o,a),this.instanced=this.instanced||a}return this},rn.prototype.getAttribute=function(t){return this.attributes[t]},rn.prototype.getBuffer=function(t){return this.buffers[this.getAttribute(t).buffer]},rn.prototype.addIndex=function(t){return t instanceof Kr||(t instanceof Array&&(t=new Uint16Array(t)),t=new Kr(t)),t.type=J.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER,this.indexBuffer=t,-1===this.buffers.indexOf(t)&&this.buffers.push(t),this},rn.prototype.getIndex=function(){return this.indexBuffer},rn.prototype.interleave=function(){if(!(1===this.buffers.length||2===this.buffers.length&&this.indexBuffer)){var t,e=[],i=[],r=new Kr;for(t in this.attributes){var n=this.attributes[t],s=this.buffers[n.buffer];e.push(s.data),i.push(n.size*$r[n.type]/4),n.buffer=0}for(r.data=function(t,e){for(var i=0,r=0,n={},s=0;s<t.length;s++)r+=e[s],i+=t[s].length;for(var o=new ArrayBuffer(4*i),a=null,l=0,s=0;s<t.length;s++){var h=e[s],u=t[s],c=Te(u);n[c]||(n[c]=new Qr[c](o));for(var a=n[c],p=0;p<u.length;p++)a[(p/h|0)*r+l+p%h]=u[p];l+=h}return new Float32Array(o)}(e,i),t=0;t<this.buffers.length;t++)this.buffers[t]!==this.indexBuffer&&this.buffers[t].destroy();this.buffers=[r],this.indexBuffer&&this.buffers.push(this.indexBuffer)}return this},rn.prototype.getSize=function(){for(var t in this.attributes){t=this.attributes[t];return this.buffers[t.buffer].data.length/(t.stride/4||t.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 t=new rn,e=0;e<this.buffers.length;e++)t.buffers[e]=new Kr(this.buffers[e].data.slice(0));for(e in this.attributes){var i=this.attributes[e];t.attributes[e]=new Wr(i.buffer,i.size,i.normalized,i.type,i.stride,i.start,i.instance)}return this.indexBuffer&&(t.indexBuffer=t.buffers[this.buffers.indexOf(this.indexBuffer)],t.indexBuffer.type=J.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER),t},rn.merge=function(t){for(var e=new rn,i=[],r=[],n=[],s=0;s<t.length;s++)for(var o=t[s],a=0;a<o.buffers.length;a++)r[a]=r[a]||0,r[a]+=o.buffers[a].data.length,n[a]=0;for(s=0;s<o.buffers.length;s++)i[s]=new tn[Te(o.buffers[s].data)](r[s]),e.buffers[s]=new Kr(i[s]);for(s=0;s<t.length;s++){o=t[s];for(a=0;a<o.buffers.length;a++)i[a].set(o.buffers[a].data,n[a]),n[a]+=o.buffers[a].data.length}if(e.attributes=o.attributes,o.indexBuffer){e.indexBuffer=e.buffers[o.buffers.indexOf(o.indexBuffer)],e.indexBuffer.type=J.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER;for(var l=0,h=0,u=0,c=0,s=0;s<o.buffers.length;s++)if(o.buffers[s]!==o.indexBuffer){c=s;break}for(s in o.attributes){var p=o.attributes[s];(0|p.buffer)===c&&(h+=p.size*$r[p.type]/4)}for(s=0;s<t.length;s++){for(var d=t[s].indexBuffer.data,a=0;a<d.length;a++)e.indexBuffer.data[a+u]+=l;l+=t[s].buffers[c].data.length/h,u+=d.length}}return e},rn);function rn(t,e){void 0===e&&(e={}),this.buffers=t=void 0===t?[]:t,this.indexBuffer=null,this.attributes=e,this.glVertexArrayObjects={},this.id=Jr++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new Gi("disposeGeometry"),this.refCount=0}c(on,nn=en);var nn,sn=on;function on(){var t=nn.call(this)||this;return t.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),t}c(hn,an=en),hn.prototype.map=function(t,e){var i;return this.uvs[0]=0,this.uvs[1]=0,this.uvs[2]=0+e.width/t.width,this.uvs[3]=0,this.uvs[4]=0+e.width/t.width,this.uvs[5]=0+e.height/t.height,this.uvs[6]=0,this.uvs[7]=0+e.height/t.height,t=e.x,i=e.y,this.vertices[0]=t,this.vertices[1]=i,this.vertices[2]=t+e.width,this.vertices[3]=i,this.vertices[4]=t+e.width,this.vertices[5]=i+e.height,this.vertices[6]=t,this.vertices[7]=i+e.height,this.invalidate(),this},hn.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this};var an,ln=hn;function hn(){var t=an.call(this)||this;return t.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),t.uvs=new Float32Array([0,0,1,0,1,1,0,1]),t.vertexBuffer=new Kr(t.vertices),t.uvBuffer=new Kr(t.uvs),t.addAttribute("aVertexPosition",t.vertexBuffer).addAttribute("aTextureCoord",t.uvBuffer).addIndex([0,1,2,0,2,3]),t}var un=0,cn=(pn.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},pn.prototype.add=function(t,e,i){if(this.ubo)throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");this.uniforms[t]=new pn(e,i)},pn.from=function(t,e,i){return new pn(t,e,i)},pn.uboFrom=function(t,e){return new pn(t,null==e||e,!0)},pn);function pn(t,e,i){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=un++,this.static=!!e,this.ubo=!!i,t instanceof Kr?(this.buffer=t,this.buffer.type=J.BUFFER_TYPE.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=t,this.ubo&&(this.buffer=new Kr(new Float32Array(1)),this.buffer.type=J.BUFFER_TYPE.UNIFORM_BUFFER,this.autoManage=!0))}fn.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null};var dn=fn;function fn(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=J.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 tt,new tt,new tt,new tt],_n=new oi,gn=(vn.prototype.push=function(t,e){for(var i=this.renderer,r=this.defaultFilterStack,n=this.statePool.pop()||new dn,s=this.renderer.renderTexture,o=e[0].resolution,a=e[0].multisample,l=e[0].padding,h=e[0].autoFit,u=null==(d=e[0].legacy)||d,c=1;c<e.length;c++)var p=e[c],o=Math.min(o,p.resolution),a=Math.min(a,p.multisample),l=this.useMaxPadding?Math.max(l,p.padding):l+p.padding,h=h&&p.autoFit,u=u||null==(p=p.legacy)||p;1===r.length&&(this.defaultFilterStack[0].renderTexture=s.current),r.push(n),n.resolution=o,n.multisample=a,n.legacy=u,n.target=t,n.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),n.sourceFrame.pad(l);var d=this.tempRect.copyFrom(s.sourceFrame),r=(i.projection.transform&&this.transformAABB(_n.copyFrom(i.projection.transform).invert(),d),h?(n.sourceFrame.fit(d),(n.sourceFrame.width<=0||n.sourceFrame.height<=0)&&(n.sourceFrame.width=0,n.sourceFrame.height=0)):n.sourceFrame.intersects(d)||(n.sourceFrame.width=0,n.sourceFrame.height=0),this.roundFrame(n.sourceFrame,(s.current||i).resolution,s.sourceFrame,s.destinationFrame,i.projection.transform),n.renderTexture=this.getOptimalFilterTexture(n.sourceFrame.width,n.sourceFrame.height,o,a),n.filters=e,n.destinationFrame.width=n.renderTexture.width,n.destinationFrame.height=n.renderTexture.height,this.tempRect);r.x=0,r.y=0,r.width=n.sourceFrame.width,r.height=n.sourceFrame.height,n.renderTexture.filterFrame=n.sourceFrame,n.bindingSourceFrame.copyFrom(s.sourceFrame),n.bindingDestinationFrame.copyFrom(s.destinationFrame),n.transform=i.projection.transform,i.projection.transform=null,s.bind(n.renderTexture,n.sourceFrame,r),i.framebuffer.clear(0,0,0,0)},vn.prototype.pop=function(){var t=this.defaultFilterStack,e=t.pop(),i=e.filters,r=(this.activeState=e,this.globalUniforms.uniforms),n=(r.outputFrame=e.sourceFrame,r.resolution=e.resolution,r.inputSize),s=r.inputPixel,o=r.inputClamp,n=(n[0]=e.destinationFrame.width,n[1]=e.destinationFrame.height,n[2]=1/n[0],n[3]=1/n[1],s[0]=Math.round(n[0]*e.resolution),s[1]=Math.round(n[1]*e.resolution),s[2]=1/s[0],s[3]=1/s[1],o[0]=.5*s[2],o[1]=.5*s[3],o[2]=e.sourceFrame.width*n[2]-.5*s[2],o[3]=e.sourceFrame.height*n[3]-.5*s[3],e.legacy&&((o=r.filterArea)[0]=e.destinationFrame.width,o[1]=e.destinationFrame.height,o[2]=e.sourceFrame.x,o[3]=e.sourceFrame.y,r.filterClamp=r.inputClamp),this.globalUniforms.update(),t[t.length-1]);if(this.renderer.framebuffer.blit(),1===i.length)i[0].apply(this,e.renderTexture,n.renderTexture,J.CLEAR_MODES.BLEND,e),this.returnFilterTexture(e.renderTexture);else{for(var a=e.renderTexture,l=((u=this.getOptimalFilterTexture(a.width,a.height,e.resolution)).filterFrame=a.filterFrame,0),l=0;l<i.length-1;++l){1===l&&1<e.multisample&&((u=this.getOptimalFilterTexture(a.width,a.height,e.resolution)).filterFrame=a.filterFrame),i[l].apply(this,a,u,J.CLEAR_MODES.CLEAR,e);var h=a,a=u,u=h}i[l].apply(this,a,n.renderTexture,J.CLEAR_MODES.BLEND,e),1<l&&1<e.multisample&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(a),this.returnFilterTexture(u)}e.clear(),this.statePool.push(e)},vn.prototype.bindAndClear=function(t,e){void 0===e&&(e=J.CLEAR_MODES.CLEAR);var i=this.renderer,r=i.renderTexture,i=i.state,n=(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame?((n=this.tempRect).x=0,n.y=0,n.width=t.filterFrame.width,n.height=t.filterFrame.height,r.bind(t,t.filterFrame,n)):t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame),1&i.stateId||this.forceClear);(e===J.CLEAR_MODES.CLEAR||e===J.CLEAR_MODES.BLIT&&n)&&this.renderer.framebuffer.clear(0,0,0,0)},vn.prototype.applyFilter=function(t,e,i,r){var n=this.renderer;n.state.set(t.state),this.bindAndClear(i,r),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,n.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),n.geometry.bind(this.quadUv),n.geometry.draw(J.DRAW_MODES.TRIANGLES)):(n.geometry.bind(this.quad),n.geometry.draw(J.DRAW_MODES.TRIANGLE_STRIP))},vn.prototype.calculateSpriteMatrix=function(t,e){var i=this.activeState,r=i.sourceFrame,i=i.destinationFrame,n=e._texture.orig,t=t.set(i.width,0,0,i.height,r.x,r.y),i=e.worldTransform.copyTo(oi.TEMP_MATRIX);return i.invert(),t.prepend(i),t.scale(1/n.width,1/n.height),t.translate(e.anchor.x,e.anchor.y),t},vn.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},vn.prototype.getOptimalFilterTexture=function(t,e,i,r){return void 0===r&&(r=J.MSAA_QUALITY.NONE),this.texturePool.getOptimalTexture(t,e,i=void 0===i?1:i,r)},vn.prototype.getFilterTexture=function(t,e,i){"number"==typeof t&&(r=t,t=e,e=r),t=t||this.activeState.renderTexture;var r=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||J.MSAA_QUALITY.NONE);return r.filterFrame=t.filterFrame,r},vn.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},vn.prototype.emptyPool=function(){this.texturePool.clear(!0)},vn.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},vn.prototype.transformAABB=function(t,e){var i=mn[0],r=mn[1],n=mn[2],s=mn[3],t=(i.set(e.left,e.top),r.set(e.left,e.bottom),n.set(e.right,e.top),s.set(e.right,e.bottom),t.apply(i,i),t.apply(r,r),t.apply(n,n),t.apply(s,s),Math.min(i.x,r.x,n.x,s.x)),o=Math.min(i.y,r.y,n.y,s.y),a=Math.max(i.x,r.x,n.x,s.x),i=Math.max(i.y,r.y,n.y,s.y);e.x=t,e.y=o,e.width=a-t,e.height=i-o},vn.prototype.roundFrame=function(t,e,i,r,n){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(n){var s=n.a,o=n.b,a=n.c,l=n.d;if((1e-4<Math.abs(o)||1e-4<Math.abs(a))&&(1e-4<Math.abs(s)||1e-4<Math.abs(l)))return}(n=n?_n.copyFrom(n):_n.identity()).translate(-i.x,-i.y).scale(r.width/i.width,r.height/i.height).translate(r.x,r.y),this.transformAABB(n,t),t.ceil(e),this.transformAABB(n.invert(),t)}},vn);function vn(t){this.renderer=t,this.defaultFilterStack=[{}],this.texturePool=new Hr,this.texturePool.setScreenSize(t.view),this.statePool=[],this.quad=new sn,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(t){};var yn=bn;function bn(t){this.renderer=t}Tn.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},Tn.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},Tn.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},Tn.prototype.copyBoundTextures=function(t,e){for(var i=this.renderer.texture.boundTextures,r=e-1;0<=r;--r)t[r]=i[r]||null,t[r]&&(t[r]._batchLocation=r)},Tn.prototype.boundArray=function(t,e,i,r){for(var n=t.elements,s=t.ids,o=t.count,a=0,l=0;l<o;l++){var h=n[l],u=h._batchLocation;if(0<=u&&u<r&&e[u]===h)s[l]=u;else for(;a<r;){var c=e[a];if(!c||c._batchEnabled!==i||c._batchLocation!==a){s[l]=a,e[h._batchLocation=a]=h;break}a++}}},Tn.prototype.destroy=function(){this.renderer=null};var xn=Tn;function Tn(t){this.renderer=t,this.emptyRenderer=new yn(t),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(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=wn++,t.isContextLost()&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").restoreContext()},Sn.prototype.initFromContext=function(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=wn++,this.renderer.runners.contextChange.emit(t)},Sn.prototype.initFromOptions=function(t){t=this.createContext(this.renderer.view,t);this.initFromContext(t)},Sn.prototype.createContext=function(t,e){var i;if(i=C.PREFER_ENV>=J.ENV.WEBGL2?t.getContext("webgl2",e):i)this.webGLVersion=2;else if(this.webGLVersion=1,!(i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},Sn.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},Sn.prototype.handleContextLost=function(t){t.preventDefault()},Sn.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},Sn.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.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(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext,e=(i&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly"),i||!!t.getExtension("OES_element_index_uint"));(this.supports.uint32Indices=e)||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},Sn);function Sn(t){this.renderer=t,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),t.view.addEventListener("webglcontextlost",this.handleContextLost,!1),t.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}var An=function(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=J.MSAA_QUALITY.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0},On=new w,Pn=(Rn.prototype.contextChange=function(){var e,t,i=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?(e=this.renderer.context.extensions.drawBuffers,t=this.renderer.context.extensions.depthTexture,C.PREFER_ENV===J.ENV.WEBGL_LEGACY&&(t=e=null),e?i.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,i.drawBuffers=function(){}),t||(this.writeDepthTexture=!1)):this.msaaSamples=i.getInternalformatParameter(i.RENDERBUFFER,i.RGBA8,i.SAMPLES)},Rn.prototype.bind=function(t,e,i){void 0===i&&(i=0);var r=this.gl;if(t){var n=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,r.bindFramebuffer(r.FRAMEBUFFER,n.framebuffer)),n.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,n.mipLevel=i),n.dirtyId!==t.dirtyId&&(n.dirtyId=t.dirtyId,n.dirtyFormat!==t.dirtyFormat?(n.dirtyFormat=t.dirtyFormat,n.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):n.dirtySize!==t.dirtySize&&(n.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var s,o,a=0;a<t.colorTextures.length;a++){var l=t.colorTextures[a];this.renderer.texture.unbind(l.parentTextureArray||l)}t.depthTexture&&this.renderer.texture.unbind(t.depthTexture),e?(s=e.width>>i,o=e.height>>i,n=s/e.width,this.setViewport(e.x*n,e.y*n,s,o)):(s=t.width>>i,o=t.height>>i,this.setViewport(0,0,s,o))}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},Rn.prototype.setViewport=function(t,e,i,r){var n=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),r=Math.round(r),n.width===i&&n.height===r&&n.x===t&&n.y===e||(n.x=t,n.y=e,n.width=i,n.height=r,this.gl.viewport(t,e,i,r))},Object.defineProperty(Rn.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}),Rn.prototype.clear=function(t,e,i,r,n){void 0===n&&(n=J.BUFFER_BITS.COLOR|J.BUFFER_BITS.DEPTH);var s=this.gl;s.clearColor(t,e,i,r),s.clear(n)},Rn.prototype.initFramebuffer=function(t){var e=this.gl,e=new An(e.createFramebuffer());return e.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=e,this.managedFramebuffers.push(t),t.disposeRunner.add(this),e},Rn.prototype.resizeFramebuffer=function(t){var e=this.gl,i=t.glFramebuffers[this.CONTEXT_UID],r=(i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,t.width,t.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height)),t.colorTextures),n=r.length;e.drawBuffers||(n=Math.min(n,1));for(var s=0;s<n;s++){var o=r[s],o=o.parentTextureArray||o;this.renderer.texture.bind(o,0)}t.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(t.depthTexture,0)},Rn.prototype.updateFramebuffer=function(t,e){for(var i,r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID],s=t.colorTextures,o=s.length,a=(r.drawBuffers||(o=Math.min(o,1)),1<n.multisample&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(r.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null)),[]),l=0;l<o;l++){var h=s[l],u=h.parentTextureArray||h;this.renderer.texture.bind(u,0),0===l&&n.msaaBuffer||(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+l,h.target,u._glTextures[this.CONTEXT_UID].texture,e),a.push(r.COLOR_ATTACHMENT0+l))}1<a.length&&r.drawBuffers(a),t.depthTexture&&this.writeDepthTexture&&(i=t.depthTexture,this.renderer.texture.bind(i,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,i._glTextures[this.CONTEXT_UID].texture,e)),!t.stencil&&!t.depth||t.depthTexture&&this.writeDepthTexture?n.stencil&&(r.deleteRenderbuffer(n.stencil),n.stencil=null):(n.stencil=n.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,n.stencil))},Rn.prototype.canMultisampleFramebuffer=function(t){return 1!==this.renderer.context.webGLVersion&&t.colorTextures.length<=1&&!t.depthTexture},Rn.prototype.detectSamples=function(t){var e=this.msaaSamples,i=J.MSAA_QUALITY.NONE;if(!(t<=1||null===e)){for(var r=0;r<e.length;r++)if(e[r]<=t){i=e[r];break}1===i&&(i=J.MSAA_QUALITY.NONE)}return i},Rn.prototype.blit=function(t,e,i){var r=this.current,n=this.renderer,s=this.gl,o=this.CONTEXT_UID;if(2===n.context.webGLVersion&&r){n=r.glFramebuffers[o];if(n){if(!t){if(!n.msaaBuffer)return;o=r.colorTextures[0];if(!o)return;n.blitFramebuffer||(n.blitFramebuffer=new Mr(r.width,r.height),n.blitFramebuffer.addColorTexture(0,o)),(t=n.blitFramebuffer).colorTextures[0]!==o&&(t.colorTextures[0]=o,t.dirtyId++,t.dirtyFormat++),t.width===r.width&&t.height===r.height||(t.width=r.width,t.height=r.height,t.dirtyId++,t.dirtySize++)}e||((e=On).width=r.width,e.height=r.height);o=e.width===(i=i||e).width&&e.height===i.height;this.bind(t),s.bindFramebuffer(s.READ_FRAMEBUFFER,n.framebuffer),s.blitFramebuffer(e.left,e.top,e.right,e.bottom,i.left,i.top,i.right,i.bottom,s.COLOR_BUFFER_BIT,o?s.NEAREST:s.LINEAR)}}},Rn.prototype.disposeFramebuffer=function(t,e){var i,r=t.glFramebuffers[this.CONTEXT_UID],n=this.gl;r&&(delete t.glFramebuffers[this.CONTEXT_UID],0<=(i=this.managedFramebuffers.indexOf(t))&&this.managedFramebuffers.splice(i,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&n.deleteRenderbuffer(r.msaaBuffer),r.stencil&&n.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&r.blitFramebuffer.dispose())},Rn.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i<e.length;i++)this.disposeFramebuffer(e[i],t)},Rn.prototype.forceStencil=function(){var t,e,i,r,n=this.current;!n||(t=n.glFramebuffers[this.CONTEXT_UID])&&!t.stencil&&(n.stencil=!0,e=n.width,n=n.height,r=(i=this.gl).createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,r),t.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,t.multisample,i.DEPTH24_STENCIL8,e,n):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,e,n),t.stencil=r,i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,r))},Rn.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new w},Rn.prototype.destroy=function(){this.renderer=null},Rn);function Rn(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Mr(10,10),this.msaaSamples=null}var Cn={5126:4,5123:2,5121:1},Mn=(kn.prototype.contextChange=function(){this.disposeAll(!0);var e,s,t=this.gl=this.renderer.gl,i=this.renderer.context;this.CONTEXT_UID=this.renderer.CONTEXT_UID,2!==i.webGLVersion&&(e=this.renderer.context.extensions.vertexArrayObject,(e=C.PREFER_ENV===J.ENV.WEBGL_LEGACY?null:e)?(t.createVertexArray=function(){return e.createVertexArrayOES()},t.bindVertexArray=function(t){return e.bindVertexArrayOES(t)},t.deleteVertexArray=function(t){return e.deleteVertexArrayOES(t)}):(this.hasVao=!1,t.createVertexArray=function(){return null},t.bindVertexArray=function(){return null},t.deleteVertexArray=function(){return null})),2!==i.webGLVersion&&((s=t.getExtension("ANGLE_instanced_arrays"))?(t.vertexAttribDivisor=function(t,e){return s.vertexAttribDivisorANGLE(t,e)},t.drawElementsInstanced=function(t,e,i,r,n){return s.drawElementsInstancedANGLE(t,e,i,r,n)},t.drawArraysInstanced=function(t,e,i,r){return s.drawArraysInstancedANGLE(t,e,i,r)}):this.hasInstance=!1),this.canUseUInt32ElementIndex=2===i.webGLVersion||!!i.extensions.uint32ElementIndex},kn.prototype.bind=function(t,e){e=e||this.renderer.shader.shader;var i=this.gl,r=t.glVertexArrayObjects[this.CONTEXT_UID],n=!1,r=(r||((this.managedGeometries[t.id]=t).disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=r={},n=!0),r[e.program.id]||this.initGeometryVao(t,e,n));this._activeGeometry=t,this._activeVao!==r&&(this._activeVao=r,this.hasVao?i.bindVertexArray(r):this.activateVao(t,e.program)),this.updateBuffers()},kn.prototype.reset=function(){this.unbind()},kn.prototype.updateBuffers=function(){for(var t=this._activeGeometry,e=this.renderer.buffer,i=0;i<t.buffers.length;i++){var r=t.buffers[i];e.update(r)}},kn.prototype.checkCompatibility=function(t,e){var i,r=t.attributes;for(i in e.attributeData)if(!r[i])throw new Error('shader and geometry incompatible, geometry missing the "'+i+'" attribute')},kn.prototype.getSignature=function(t,e){var i,r=t.attributes,n=e.attributeData,s=["g",t.id];for(i in r)n[i]&&s.push(i,n[i].location);return s.join("-")},kn.prototype.initGeometryVao=function(t,e,i){void 0===i&&(i=!0);var r=this.gl,n=this.CONTEXT_UID,s=this.renderer.buffer,o=e.program,e=(o.glPrograms[n]||this.renderer.shader.generateProgram(e),this.checkCompatibility(t,o),this.getSignature(t,o)),a=t.glVertexArrayObjects[this.CONTEXT_UID],l=a[e];if(l)return a[o.id]=l;var h,u=t.buffers,c=t.attributes,p={},d={};for(h in u)d[h]=p[h]=0;for(h in c)!c[h].size&&o.attributeData[h]?c[h].size=o.attributeData[h].size:c[h].size||console.warn("PIXI Geometry attribute '"+h+"' size cannot be determined (likely the bound shader does not have the attribute)"),p[c[h].buffer]+=c[h].size*Cn[c[h].type];for(h in c){var f=c[h],m=f.size;void 0===f.stride&&(p[f.buffer]===m*Cn[f.type]?f.stride=0:f.stride=p[f.buffer]),void 0===f.start&&(f.start=d[f.buffer],d[f.buffer]+=m*Cn[f.type])}l=r.createVertexArray(),r.bindVertexArray(l);for(var _=0;_<u.length;_++){var g=u[_];s.bind(g),i&&g._glBuffers[n].refCount++}return this.activateVao(t,o),this._activeVao=l,a[o.id]=l,a[e]=l},kn.prototype.disposeGeometry=function(t,e){var i;if(this.managedGeometries[t.id]){delete this.managedGeometries[t.id];var r=t.glVertexArrayObjects[this.CONTEXT_UID],n=this.gl,s=t.buffers,o=null==(i=this.renderer)?void 0:i.buffer;if(t.disposeRunner.remove(this),r){if(o)for(var a=0;a<s.length;a++){var l=s[a]._glBuffers[this.CONTEXT_UID];l&&(l.refCount--,0!==l.refCount||e||o.dispose(s[a],e))}if(!e)for(var h in r)"g"===h[0]&&(h=r[h],this._activeVao===h&&this.unbind(),n.deleteVertexArray(h));delete t.glVertexArrayObjects[this.CONTEXT_UID]}}},kn.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedGeometries),i=0;i<e.length;i++)this.disposeGeometry(this.managedGeometries[e[i]],t)},kn.prototype.activateVao=function(t,e){var i,r=this.gl,n=this.CONTEXT_UID,s=this.renderer.buffer,o=t.buffers,a=t.attributes,l=(t.indexBuffer&&s.bind(t.indexBuffer),null);for(i in a){var h=a[i],u=o[h.buffer],c=u._glBuffers[n];if(e.attributeData[i]){l!==c&&(s.bind(u),l=c);u=e.attributeData[i].location;if(r.enableVertexAttribArray(u),r.vertexAttribPointer(u,h.size,h.type||r.FLOAT,h.normalized,h.stride,h.start),h.instance){if(!this.hasInstance)throw new Error("geometry error, GPU Instancing is not supported on this device");r.vertexAttribDivisor(u,1)}}}},kn.prototype.draw=function(t,e,i,r){var n,s,o=this.gl,a=this._activeGeometry;return a.indexBuffer?(s=2===(n=a.indexBuffer.data.BYTES_PER_ELEMENT)?o.UNSIGNED_SHORT:o.UNSIGNED_INT,2===n||4===n&&this.canUseUInt32ElementIndex?a.instanced?o.drawElementsInstanced(t,e||a.indexBuffer.data.length,s,(i||0)*n,r||1):o.drawElements(t,e||a.indexBuffer.data.length,s,(i||0)*n):console.warn("unsupported index buffer type: uint32")):a.instanced?o.drawArraysInstanced(t,i,e||a.getSize(),r||1):o.drawArrays(t,i,e||a.getSize()),this},kn.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},kn.prototype.destroy=function(){this.renderer=null},kn);function kn(t){this.renderer=t,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(t){t?this._filters?this._filters[0]=t:this._filters=[t]:this._filters=null},enumerable:!1,configurable:!0}),Dn.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=J.MASK_TYPES.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},Dn.prototype.copyCountersOrReset=function(t){t?(this._stencilCounter=t._stencilCounter,this._scissorCounter=t._scissorCounter,this._scissorRect=t._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)};var In=Dn;function Dn(t){void 0===t&&(t=null),this.type=J.MASK_TYPES.NONE,this.autoDetect=!0,this.maskObject=t||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=C.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 Fn(t,e,i){e=t.createShader(e);return t.shaderSource(e,i),t.compileShader(e),e}function Ln(t,e){var i=t.getShaderSource(e).split("\n").map(function(t,e){return e+": "+t}),t=t.getShaderInfoLog(e),e=t.split("\n"),r={},e=e.map(function(t){return parseFloat(t.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(t){return!(!t||r[t])&&(r[t]=!0)}),n=[""],e=(e.forEach(function(t){i[t-1]="%c"+i[t-1]+"%c",n.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")}),i.join("\n"));n[0]=e,console.error(t),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,n),console.groupEnd()}function Nn(t){for(var e=new Array(t),i=0;i<e.length;i++)e[i]=!1;return e}function zn(t,e){switch(t){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return Nn(2*e);case"bvec3":return Nn(3*e);case"bvec4":return Nn(4*e);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,Un={},jn=Un;function Gn(){var t,e;return(jn===Un||jn&&jn.isContextLost())&&(t=C.ADAPTER.createCanvas(),e=void 0,(e=C.PREFER_ENV>=J.ENV.WEBGL2?t.getContext("webgl2",{}):e)||((e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}))?e.getExtension("WEBGL_draw_buffers"):e=null),jn=e),jn}function Xn(t,e,i){return"precision"!==t.substring(0,9)?"precision "+(e===J.PRECISION.HIGH&&i!==J.PRECISION.HIGH?J.PRECISION.MEDIUM:e)+" float;\n"+t:i!==J.PRECISION.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}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(t){return Hn[t]}var Wn=null,Vn={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 qn(t,e){if(!Wn){var i=Object.keys(Vn);Wn={};for(var r=0;r<i.length;++r){var n=i[r];Wn[t[n]]=Vn[n]}}return Wn[e]}var Kn=[{test:function(t){return"float"===t.type&&1===t.size&&!t.isArray},code:function(t){return'\n if(uv["'+t+'"] !== ud["'+t+'"].value)\n {\n ud["'+t+'"].value = uv["'+t+'"]\n gl.uniform1f(ud["'+t+'"].location, uv["'+t+'"])\n }\n '}},{test:function(t,e){return!("sampler2D"!==t.type&&"samplerCube"!==t.type&&"sampler2DArray"!==t.type||1!==t.size||t.isArray||null!=e&&void 0===e.castToBaseTexture)},code:function(t){return't = syncData.textureCount++;\n\n renderer.texture.bind(uv["'+t+'"], t);\n\n if(ud["'+t+'"].value !== t)\n {\n ud["'+t+'"].value = t;\n gl.uniform1i(ud["'+t+'"].location, t);\n; // eslint-disable-line max-len\n }'}},{test:function(t,e){return"mat3"===t.type&&1===t.size&&!t.isArray&&void 0!==e.a},code:function(t){return'\n gl.uniformMatrix3fv(ud["'+t+'"].location, false, uv["'+t+'"].toArray(true));\n '},codeUbo:function(t){return"\n var "+t+"_matrix = uv."+t+".toArray(true);\n\n data[offset] = "+t+"_matrix[0];\n data[offset+1] = "+t+"_matrix[1];\n data[offset+2] = "+t+"_matrix[2];\n \n data[offset + 4] = "+t+"_matrix[3];\n data[offset + 5] = "+t+"_matrix[4];\n data[offset + 6] = "+t+"_matrix[5];\n \n data[offset + 8] = "+t+"_matrix[6];\n data[offset + 9] = "+t+"_matrix[7];\n data[offset + 10] = "+t+"_matrix[8];\n "}},{test:function(t,e){return"vec2"===t.type&&1===t.size&&!t.isArray&&void 0!==e.x},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\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["'+t+'"].location, v.x, v.y);\n }'},codeUbo:function(t){return"\n v = uv."+t+";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n "}},{test:function(t){return"vec2"===t.type&&1===t.size&&!t.isArray},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\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["'+t+'"].location, v[0], v[1]);\n }\n '}},{test:function(t,e){return"vec4"===t.type&&1===t.size&&!t.isArray&&void 0!==e.width},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\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["'+t+'"].location, v.x, v.y, v.width, v.height)\n }'},codeUbo:function(t){return"\n v = uv."+t+";\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(t){return"vec4"===t.type&&1===t.size&&!t.isArray},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\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["'+t+'"].location, v[0], v[1], v[2], v[3])\n }'}}],Zn={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 }"},Qn={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 $n,Jn=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function ts(t,e){if(0===t)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var i=e.createShader(e.FRAGMENT_SHADER);;){var r=Jn.replace(/%forloop%/gi,function(t){for(var e="",i=0;i<t;++i)0<i&&(e+="\nelse "),i<t-1&&(e+="if(test == "+i+".0){}");return e}(t));if(e.shaderSource(i,r),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS))break;t=t/2|0}return t}var es=0,is={},rs=(Object.defineProperty(ns,"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(ns,"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}),ns.from=function(t,e,i){var r=t+e,n=Ie[r];return n||(Ie[r]=n=new ns(t,e,i)),n},ns);function ns(t,e,i){void 0===i&&(i="pixi-shader"),this.id=es++,this.vertexSrc=t||ns.defaultVertexSrc,this.fragmentSrc=e||ns.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),"#version"!==this.vertexSrc.substring(0,8)&&(i=i.replace(/\s+/g,"-"),is[i]?(is[i]++,i+="-"+is[i]):is[i]=1,this.vertexSrc="#define SHADER_NAME "+i+"\n"+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+i+"\n"+this.fragmentSrc,this.vertexSrc=Xn(this.vertexSrc,C.PRECISION_VERTEX,J.PRECISION.HIGH),this.fragmentSrc=Xn(this.fragmentSrc,C.PRECISION_FRAGMENT,(Bn||(Bn=J.PRECISION.MEDIUM,(t=Gn())&&t.getShaderPrecisionFormat&&(t=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT),Bn=t.precision?J.PRECISION.HIGH:J.PRECISION.MEDIUM)),Bn))),this.glPrograms={},this.syncUniforms=null}os.prototype.checkUniformExists=function(t,e){if(e.uniforms[t])return!0;for(var i in e.uniforms){i=e.uniforms[i];if(i.group&&this.checkUniformExists(t,i))return!0}return!1},os.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(os.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),os.from=function(t,e,i){return new os(rs.from(t,e),i)};var ss=os;function os(t,e){this.uniformBindCount=0,this.program=t,e?e instanceof cn?this.uniformGroup=e:this.uniformGroup=new cn(e):this.uniformGroup=new cn({})}Object.defineProperty(ls.prototype,"blend",{get:function(){return!!(1&this.data)},set:function(t){!!(1&this.data)!==t&&(this.data^=1)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"offsets",{get:function(){return!!(2&this.data)},set:function(t){!!(2&this.data)!==t&&(this.data^=2)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"culling",{get:function(){return!!(4&this.data)},set:function(t){!!(4&this.data)!==t&&(this.data^=4)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"depthTest",{get:function(){return!!(8&this.data)},set:function(t){!!(8&this.data)!==t&&(this.data^=8)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"depthMask",{get:function(){return!!(32&this.data)},set:function(t){!!(32&this.data)!==t&&(this.data^=32)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"clockwiseFrontFace",{get:function(){return!!(16&this.data)},set:function(t){!!(16&this.data)!==t&&(this.data^=16)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this.blend=t!==J.BLEND_MODES.NONE,this._blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(t){this.offsets=!!t,this._polygonOffset=t},enumerable:!1,configurable:!0}),ls.prototype.toString=function(){return"[@pixi/core:State blendMode="+this.blendMode+" clockwiseFrontFace="+this.clockwiseFrontFace+" culling="+this.culling+" depthMask="+this.depthMask+" polygonOffset="+this.polygonOffset+"]"},ls.for2d=function(){var t=new ls;return t.depthTest=!1,t.blend=!0,t};var as=ls;function ls(){this.data=0,this.blendMode=J.BLEND_MODES.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}c(us,hs=ss),us.prototype.apply=function(t,e,i,r,n){t.applyFilter(this,e,i,r)},Object.defineProperty(us.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(us.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._resolution=t},enumerable:!1,configurable:!0}),Object.defineProperty(us,"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(us,"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 hs,$=us;function us(t,e,i){var r=this,t=rs.from(t||us.defaultVertexSrc,e||us.defaultFragmentSrc);return(r=hs.call(this,t,i)||this).padding=0,r.resolution=C.FILTER_RESOLUTION,r.multisample=C.FILTER_MULTISAMPLE,r.enabled=!0,r.autoFit=!0,r.state=new as,r}var cs=new oi,ps=(Object.defineProperty(ds.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),ds.prototype.multiplyUvs=function(t,e){void 0===e&&(e=t);for(var i=this.mapCoord,r=0;r<t.length;r+=2){var n=t[r],s=t[r+1];e[r]=n*i.a+s*i.c+i.tx,e[r+1]=n*i.b+s*i.d+i.ty}return e},ds.prototype.update=function(t){var e=this._texture;if(!e||!e.valid)return!1;if(!t&&this._textureID===e._updateID)return!1;this._textureID=e._updateID,this._updateID++;var t=e._uvs,t=(this.mapCoord.set(t.x1-t.x0,t.y1-t.y0,t.x3-t.x0,t.y3-t.y0,t.x0,t.y0),e.orig),i=e.trim,t=(i&&(cs.set(t.width/i.width,0,0,t.height/i.height,-i.x/i.width,-i.y/i.height),this.mapCoord.append(cs)),e.baseTexture),i=this.uClampFrame,r=this.clampMargin/t.resolution,n=this.clampOffset;return i[0]=(e._frame.x+r+n)/t.width,i[1]=(e._frame.y+r+n)/t.height,i[2]=(e._frame.x+e._frame.width-r+n)/t.width,i[3]=(e._frame.y+e._frame.height-r+n)/t.height,this.uClampOffset[0]=n/t.realWidth,this.uClampOffset[1]=n/t.realHeight,this.isSimple=e._frame.width===t.width&&e._frame.height===t.height&&0===e.rotate,!0},ds);function ds(t,e){this._texture=t,this.mapCoord=new oi,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=void 0===e?.5:e,this.isSimple=!1}c(_s,fs=$),Object.defineProperty(_s.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(t){this._maskSprite=t,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),_s.prototype.apply=function(t,e,i,r){var n=this._maskSprite,s=n._texture;s.valid&&(s.uvMatrix||(s.uvMatrix=new ps(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=s,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,n).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,t.applyFilter(this,e,i,r))};var fs,ms=_s;function _s(t,e,i){var r=this,n=null;return"string"!=typeof t&&void 0===e&&void 0===i&&(n=t,i=e=t=void 0),(r=fs.call(this,t||"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",e||"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",i)||this).maskSprite=n,r.maskMatrix=new oi,r}vs.prototype.setMaskStack=function(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)},vs.prototype.push=function(t,e){var i,r=e,e=(r.isMaskData||((i=this.maskDataPool.pop()||new In).pooled=!0,i.maskObject=e,r=i),0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null);if(r.copyCountersOrReset(e),r._colorMask=e?e._colorMask:15,r.autoDetect&&this.detect(r),r._target=t,r.type!==J.MASK_TYPES.SPRITE&&this.maskStack.push(r),r.enabled)switch(r.type){case J.MASK_TYPES.SCISSOR:this.renderer.scissor.push(r);break;case J.MASK_TYPES.STENCIL:this.renderer.stencil.push(r);break;case J.MASK_TYPES.SPRITE:r.copyCountersOrReset(null),this.pushSpriteMask(r);break;case J.MASK_TYPES.COLOR:this.pushColorMask(r)}r.type===J.MASK_TYPES.SPRITE&&this.maskStack.push(r)},vs.prototype.pop=function(t){var e=this.maskStack.pop();if(e&&e._target===t){if(e.enabled)switch(e.type){case J.MASK_TYPES.SCISSOR:this.renderer.scissor.pop(e);break;case J.MASK_TYPES.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case J.MASK_TYPES.SPRITE:this.popSpriteMask(e);break;case J.MASK_TYPES.COLOR:this.popColorMask(e)}e.reset(),e.pooled&&this.maskDataPool.push(e),0===this.maskStack.length||(t=this.maskStack[this.maskStack.length-1]).type===J.MASK_TYPES.SPRITE&&t._filters&&(t._filters[0].maskSprite=t.maskObject)}},vs.prototype.detect=function(t){var e=t.maskObject;e?e.isSprite?t.type=J.MASK_TYPES.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=J.MASK_TYPES.SCISSOR:t.type=J.MASK_TYPES.STENCIL:t.type=J.MASK_TYPES.COLOR},vs.prototype.pushSpriteMask=function(t){var e,i=t.maskObject,r=t._target,n=(n=(n=t._filters)||this.alphaMaskPool[this.alphaMaskIndex])||(this.alphaMaskPool[this.alphaMaskIndex]=[new ms]),s=this.renderer,o=s.renderTexture,a=(o=o.current?(o=o.current,e=t.resolution||o.resolution,null!=(a=t.multisample)?a:o.multisample):(e=t.resolution||s.resolution,null!=(a=t.multisample)?a:s.multisample),n[0].resolution=e,n[0].multisample=o,n[0].maskSprite=i,r.filterArea);r.filterArea=i.getBounds(!0),s.filter.push(r,n),r.filterArea=a,t._filters||this.alphaMaskIndex++},vs.prototype.popSpriteMask=function(t){this.renderer.filter.pop(),t._filters?t._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},vs.prototype.pushColorMask=function(t){var e=t._colorMask,t=t._colorMask=e&t.colorMask;t!==e&&this.renderer.gl.colorMask(0!=(1&t),0!=(2&t),0!=(4&t),0!=(8&t))},vs.prototype.popColorMask=function(t){var t=t._colorMask,e=0<this.maskStack.length?this.maskStack[this.maskStack.length-1]._colorMask:15;e!==t&&this.renderer.gl.colorMask(0!=(1&e),0!=(2&e),0!=(4&e),0!=(8&e))},vs.prototype.destroy=function(){this.renderer=null};var gs=vs;function vs(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}ys.prototype.getStackLength=function(){return this.maskStack.length},ys.prototype.setMaskStack=function(t){var e=this.renderer.gl,i=this.getStackLength(),t=(this.maskStack=t,this.getStackLength());t!==i&&(0===t?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))},ys.prototype._useCurrent=function(){},ys.prototype.destroy=function(){this.renderer=null,this.maskStack=null};e=ys;function ys(t){this.renderer=t,this.maskStack=[],this.glConst=0}var bs,xs=new oi,Ts=[],ws=(c(Es,bs=e),Es.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._scissorCounter:0},Es.prototype.calcScissorRect=function(t){var e,i,r,n;t._scissorRectLocal||(e=t._scissorRect,n=t.maskObject,r=(i=this.renderer).renderTexture,n=n.getBounds(!0,null!=(n=Ts.pop())?n:new w),this.roundFrameToPixels(n,(r.current||i).resolution,r.sourceFrame,r.destinationFrame,i.projection.transform),e&&n.fit(e),t._scissorRectLocal=n)},Es.isMatrixRotated=function(t){var e,i,r;return!!t&&(e=t.a,i=t.b,r=t.c,t=t.d,(1e-4<Math.abs(i)||1e-4<Math.abs(r))&&(1e-4<Math.abs(e)||1e-4<Math.abs(t)))},Es.prototype.testScissor=function(t){var e=t.maskObject;if(!e.isFastRect||!e.isFastRect())return!1;if(Es.isMatrixRotated(e.worldTransform))return!1;if(Es.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(t);e=t._scissorRectLocal;return 0<e.width&&0<e.height},Es.prototype.roundFrameToPixels=function(t,e,i,r,n){Es.isMatrixRotated(n)||((n=n?xs.copyFrom(n):xs.identity()).translate(-i.x,-i.y).scale(r.width/i.width,r.height/i.height).translate(r.x,r.y),this.renderer.filter.transformAABB(n,t),t.fit(r),t.x=Math.round(t.x*e),t.y=Math.round(t.y*e),t.width=Math.round(t.width*e),t.height=Math.round(t.height*e))},Es.prototype.push=function(t){t._scissorRectLocal||this.calcScissorRect(t);var e=this.renderer.gl;t._scissorRect||e.enable(e.SCISSOR_TEST),t._scissorCounter++,t._scissorRect=t._scissorRectLocal,this._useCurrent()},Es.prototype.pop=function(t){var e=this.renderer.gl;t&&Ts.push(t._scissorRectLocal),0<this.getStackLength()?this._useCurrent():e.disable(e.SCISSOR_TEST)},Es.prototype._useCurrent=function(){var t=this.maskStack[this.maskStack.length-1]._scissorRect,e=this.renderer.renderTexture.current?t.y:this.renderer.height-t.height-t.y;this.renderer.gl.scissor(t.x,e,t.width,t.height)},Es);function Es(t){t=bs.call(this,t)||this;return t.glConst=C.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,t}c(Os,Ss=e),Os.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},Os.prototype.push=function(t){var e=t.maskObject,i=this.renderer.gl,r=t._stencilCounter,n=(0===r&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),t._stencilCounter++,t._colorMask);0!==n&&(t._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,r,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,0!==n&&(t._colorMask=n,i.colorMask(0!=(1&n),0!=(2&n),0!=(4&n),0!=(8&n))),this._useCurrent()},Os.prototype.pop=function(t){var e,i,r=this.renderer.gl;0===this.getStackLength()?r.disable(r.STENCIL_TEST):(0!==(i=(e=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null)?e._colorMask:15)&&(e._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilOp(r.KEEP,r.KEEP,r.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,0!==i&&(e._colorMask=i,r.colorMask(0!=(1&i),0!=(2&i),0!=(4&i),0!=(8&i))),this._useCurrent())},Os.prototype._useCurrent=function(){var t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)};var Ss,As=Os;function Os(t){t=Ss.call(this,t)||this;return t.glConst=C.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,t}Rs.prototype.update=function(t,e,i,r){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,r),this.transform&&this.projectionMatrix.append(this.transform);e=this.renderer;e.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,e.globalUniforms.update(),e.shader.shader&&e.shader.syncUniformGroup(e.shader.shader.uniforms.globals)},Rs.prototype.calculateProjection=function(t,e,i,r){var n=this.projectionMatrix,r=r?-1:1;n.identity(),n.a=1/e.width*2,n.d=r*(1/e.height*2),n.tx=-1-e.x*n.a,n.ty=-r-e.y*n.d},Rs.prototype.setTransform=function(t){},Rs.prototype.destroy=function(){this.renderer=null};var Ps=Rs;function Rs(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new oi,this.transform=null}var Cs=new w,Ms=new w,ks=(Is.prototype.bind=function(t,e,i){var r,n,s,o=this.renderer,a=((this.current=t=void 0===t?null:t)?(s=(r=t.baseTexture).resolution,e||(Cs.width=t.frame.width,Cs.height=t.frame.height,e=Cs),i||(Ms.x=t.frame.x,Ms.y=t.frame.y,Ms.width=e.width,Ms.height=e.height,i=Ms),n=r.framebuffer):(s=o.resolution,e||(Cs.width=o.screen.width,Cs.height=o.screen.height,e=Cs),i||((i=Cs).width=e.width,i.height=e.height)),this.viewportFrame);a.x=i.x*s,a.y=i.y*s,a.width=i.width*s,a.height=i.height*s,t||(a.y=o.view.height-(a.y+a.height)),a.ceil(),this.renderer.framebuffer.bind(n,a),this.renderer.projection.update(i,e,s,!n),t?this.renderer.mask.setMaskStack(r.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},Is.prototype.clear=function(t,e){t=this.current?t||this.current.baseTexture.clearColor:t||this.clearColor;var i,r,n,s=this.destinationFrame,o=this.current?this.current.baseTexture:this.renderer.screen,s=s.width!==o.width||s.height!==o.height;s&&(i=(o=this.viewportFrame).x,r=o.y,n=o.width,o=o.height,i=Math.round(i),r=Math.round(r),n=Math.round(n),o=Math.round(o),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(i,r,n,o)),this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),s&&this.renderer.scissor.pop()},Is.prototype.resize=function(){this.bind(null)},Is.prototype.reset=function(){this.bind(null)},Is.prototype.destroy=function(){this.renderer=null},Is);function Is(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new w,this.destinationFrame=new w,this.viewportFrame=new w}function Ds(t,e,i,r,n){i.buffer.update(n)}var Fs={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 "},Ls={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 Ns(t){for(var e=t.map(function(t){return{data:t,offset:0,dataLen:0,dirty:0}}),i=0,r=0,n=0,s=0;s<e.length;s++){var o,a=e[s],i=Ls[a.data.type];1<a.data.size&&(i=Math.max(i,16)*a.data.size),r%(a.dataLen=i)!=0&&r<16&&(r+=o=r%i%16,n+=o),16<r+i?(n=16*Math.ceil(n/16),a.offset=n,n+=i,r=i):(a.offset=n,r+=i,n+=i)}return{uboElements:e,size:n=16*Math.ceil(n/16)}}function zs(t,e){var i,r=[];for(i in t)e[i]&&r.push(e[i]);return r.sort(function(t,e){return t.index-e.index}),r}function Bs(t,e){if(!t.autoManage)return{size:0,syncFunc:Ds};for(var e=Ns(zs(t.uniforms,e)),i=e.uboElements,e=e.size,r=["\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<i.length;n++){for(var s,o,a=i[n],l=t.uniforms[a.data.name],h=a.data.name,u=!1,c=0;c<Kn.length;c++){var p=Kn[c];if(p.codeUbo&&p.test(a.data,l)){r.push("offset = "+a.offset/4+";",Kn[c].codeUbo(a.data.name,l)),u=!0;break}}u||(1<a.data.size?(s=Yn(a.data.type),o=Math.max(Ls[a.data.type]/16,1),r.push("\n cv = ud."+h+".value;\n v = uv."+h+";\n offset = "+a.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+a.data.size*o+"; i++)\n {\n for(var j = 0; j < "+(s=s/o)+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+(4-s%4)%4+";\n }\n\n ")):(o=Fs[a.data.type],r.push("\n cv = ud."+h+".value;\n v = uv."+h+";\n offset = "+a.offset/4+";\n "+o+";\n ")))}return r.push("\n renderer.buffer.update(buffer);\n "),{size:e,syncFunc:new Function("ud","uv","renderer","syncData","buffer",r.join("\n"))}}function Us(){}Gs.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null};var js=Gs;function Gs(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}function Xs(t,e){var i,r,n,s,o=Fn(t,t.VERTEX_SHADER,e.vertexSrc),a=Fn(t,t.FRAGMENT_SHADER,e.fragmentSrc),l=t.createProgram();if(t.attachShader(l,o),t.attachShader(l,a),t.linkProgram(l),t.getProgramParameter(l,t.LINK_STATUS)||(r=l,n=o,s=a,(i=t).getProgramParameter(r,i.LINK_STATUS)||(i.getShaderParameter(n,i.COMPILE_STATUS)||Ln(i,n),i.getShaderParameter(s,i.COMPILE_STATUS)||Ln(i,s),console.error("PixiJS Error: Could not initialize shader."),""!==i.getProgramInfoLog(r)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(r)))),e.attributeData=function(t,e){for(var i={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),n=0;n<r;n++){var s,o=e.getActiveAttrib(t,n);0!==o.name.indexOf("gl_")&&(s={type:s=qn(e,o.type),name:o.name,size:Yn(s),location:e.getAttribLocation(t,o.name)},i[o.name]=s)}return i}(l,t),e.uniformData=function(t,e){for(var i={},r=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),n=0;n<r;n++){var s=e.getActiveUniform(t,n),o=s.name.replace(/\[.*?\]$/,""),a=!!s.name.match(/\[.*?\]$/),l=qn(e,s.type);i[o]={name:o,index:n,type:l,size:s.size,isArray:a,value:zn(l,s.size)}}return i}(l,t),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)){var h=Object.keys(e.attributeData);h.sort(function(t,e){return e<t?1:-1});for(var u=0;u<h.length;u++)e.attributeData[h[u]].location=u,t.bindAttribLocation(l,u,h[u]);t.linkProgram(l)}t.deleteShader(o),t.deleteShader(a);var c={};for(u in e.uniformData){var p=e.uniformData[u];c[u]={location:t.getUniformLocation(l,u),value:zn(p.type,p.size)}}return new js(l,c)}var Hs=0,Ys={textureCount:0,uboCount:0},Ws=(Vs.prototype.systemCheck=function(){if(!function(){if("boolean"!=typeof $n)try{var t=new Function("param1","param2","param3","return param1[param2] === param3;");$n=!0===t({a:"b"},"a","b")}catch(t){$n=!1}return $n}())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},Vs.prototype.contextChange=function(t){this.gl=t,this.reset()},Vs.prototype.bind=function(t,e){t.uniforms.globals=this.renderer.globalUniforms;var i=t.program,r=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==i&&(this.program=i,this.gl.useProgram(r.program)),e||(Ys.textureCount=0,Ys.uboCount=0,this.syncUniformGroup(t.uniformGroup,Ys)),r},Vs.prototype.setUniforms=function(t){var e=this.shader.program,i=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(i.uniformData,t,this.renderer)},Vs.prototype.syncUniformGroup=function(t,e){var i=this.getGlProgram();t.static&&t.dirtyId===i.uniformDirtyGroups[t.id]||(i.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,i,e))},Vs.prototype.syncUniforms=function(t,e,i){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(e.uniformData,t.uniforms,this.renderer,i)},Vs.prototype.createSyncGroups=function(t){var e=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=function(t,e){var i,r=["\n var v = null;\n var cv = null;\n var cu = null;\n var t = 0;\n var gl = renderer.gl;\n "];for(i in t.uniforms){var n=e[i];if(n){for(var s,o=t.uniforms[i],a=!1,l=0;l<Kn.length;l++)if(Kn[l].test(n,o)){r.push(Kn[l].code(i,o)),a=!0;break}a||(s=(1!==n.size||n.isArray?Qn:Zn)[n.type].replace("location",'ud["'+i+'"].location'),r.push('\n cu = ud["'+i+'"];\n cv = cu.value;\n v = uv["'+i+'"];\n '+s+";"))}else null!=(s=t.uniforms[i])&&s.group&&(t.uniforms[i].ubo?r.push("\n renderer.shader.syncUniformBufferGroup(uv."+i+", '"+i+"');\n "):r.push("\n renderer.shader.syncUniformGroup(uv."+i+", syncData);\n "))}return new Function("ud","uv","renderer","syncData",r.join("\n"))}(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]},Vs.prototype.syncUniformBufferGroup=function(t,e){var i,r=this.getGlProgram();t.static&&0===t.dirtyId&&r.uniformGroups[t.id]||(t.dirtyId=0,i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,e),t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,Ys,t.buffer)),this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[e])},Vs.prototype.createSyncBufferGroup=function(t,e,i){var r=this.renderer.gl,n=(this.renderer.buffer.bind(t.buffer),this.gl.getUniformBlockIndex(e.program,i)),i=(e.uniformBufferBindings[i]=this.shader.uniformBindCount,r.uniformBlockBinding(e.program,n,this.shader.uniformBindCount),this.shader.uniformBindCount++,this.getSignature(t,this.shader.program.uniformData,"ubo")),r=(r=this._uboCache[i])||(this._uboCache[i]=Bs(t,this.shader.program.uniformData));return t.autoManage&&(n=new Float32Array(r.size/4),t.buffer.update(n)),e.uniformGroups[t.id]=r.syncFunc,e.uniformGroups[t.id]},Vs.prototype.getSignature=function(t,e,i){var r,n=[i+"-"];for(r in t.uniforms)n.push(r),e[r]&&n.push(e[r].type);return n.join("-")},Vs.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},Vs.prototype.generateProgram=function(t){var e=this.gl,t=t.program,e=Xs(e,t);return t.glPrograms[this.renderer.CONTEXT_UID]=e},Vs.prototype.reset=function(){this.program=null,this.shader=null},Vs.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},Vs);function Vs(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Hs++}Ks.prototype.contextChange=function(t){var e;this.gl=t,this.blendModes=(t=t,(e=void 0===e?[]:e)[J.BLEND_MODES.NORMAL]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.ADD]=[t.ONE,t.ONE],e[J.BLEND_MODES.MULTIPLY]=[t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.SCREEN]=[t.ONE,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.OVERLAY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.DARKEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.LIGHTEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.COLOR_DODGE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.COLOR_BURN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.HARD_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.SOFT_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.DIFFERENCE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.EXCLUSION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.HUE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.SATURATION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.COLOR]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.LUMINOSITY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.NONE]=[0,0],e[J.BLEND_MODES.NORMAL_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.ADD_NPM]=[t.SRC_ALPHA,t.ONE,t.ONE,t.ONE],e[J.BLEND_MODES.SCREEN_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.SRC_IN]=[t.DST_ALPHA,t.ZERO],e[J.BLEND_MODES.SRC_OUT]=[t.ONE_MINUS_DST_ALPHA,t.ZERO],e[J.BLEND_MODES.SRC_ATOP]=[t.DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.DST_OVER]=[t.ONE_MINUS_DST_ALPHA,t.ONE],e[J.BLEND_MODES.DST_IN]=[t.ZERO,t.SRC_ALPHA],e[J.BLEND_MODES.DST_OUT]=[t.ZERO,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.DST_ATOP]=[t.ONE_MINUS_DST_ALPHA,t.SRC_ALPHA],e[J.BLEND_MODES.XOR]=[t.ONE_MINUS_DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],e[J.BLEND_MODES.SUBTRACT]=[t.ONE,t.ONE,t.ONE,t.ONE,t.FUNC_REVERSE_SUBTRACT,t.FUNC_ADD],e),this.set(this.defaultState),this.reset()},Ks.prototype.set=function(t){if(t=t||this.defaultState,this.stateId!==t.data){for(var e=this.stateId^t.data,i=0;e;)1&e&&this.map[i].call(this,!!(t.data&1<<i)),e>>=1,i++;this.stateId=t.data}for(i=0;i<this.checks.length;i++)this.checks[i](this,t)},Ks.prototype.forceState=function(t){t=t||this.defaultState;for(var e=0;e<this.map.length;e++)this.map[e].call(this,!!(t.data&1<<e));for(e=0;e<this.checks.length;e++)this.checks[e](this,t);this.stateId=t.data},Ks.prototype.setBlend=function(t){this.updateCheck(Ks.checkBlendMode,t),this.gl[t?"enable":"disable"](this.gl.BLEND)},Ks.prototype.setOffset=function(t){this.updateCheck(Ks.checkPolygonOffset,t),this.gl[t?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},Ks.prototype.setDepthTest=function(t){this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST)},Ks.prototype.setDepthMask=function(t){this.gl.depthMask(t)},Ks.prototype.setCullFace=function(t){this.gl[t?"enable":"disable"](this.gl.CULL_FACE)},Ks.prototype.setFrontFace=function(t){this.gl.frontFace(this.gl[t?"CW":"CCW"])},Ks.prototype.setBlendMode=function(t){var e;t!==this.blendMode&&(this.blendMode=t,t=this.blendModes[t],e=this.gl,2===t.length?e.blendFunc(t[0],t[1]):e.blendFuncSeparate(t[0],t[1],t[2],t[3]),6===t.length?(this._blendEq=!0,e.blendEquationSeparate(t[4],t[5])):this._blendEq&&(this._blendEq=!1,e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD)))},Ks.prototype.setPolygonOffset=function(t,e){this.gl.polygonOffset(t,e)},Ks.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)},Ks.prototype.updateCheck=function(t,e){var i=this.checks.indexOf(t);e&&-1===i?this.checks.push(t):e||-1===i||this.checks.splice(i,1)},Ks.checkBlendMode=function(t,e){t.setBlendMode(e.blendMode)},Ks.checkPolygonOffset=function(t,e){t.setPolygonOffset(1,e.polygonOffset)},Ks.prototype.destroy=function(){this.gl=null};var qs=Ks;function Ks(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=J.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 as,this.defaultState.blend=!0}Qs.prototype.postrender=function(){this.renderer.renderingToScreen&&(this.count++,this.mode!==J.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},Qs.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,i=!1,r=0;r<e.length;r++){var n=e[r];!n.framebuffer&&this.count-n.touched>this.maxIdle&&(t.destroyTexture(n,!0),i=!(e[r]=null))}if(i){for(var s=0,r=0;r<e.length;r++)null!==e[r]&&(e[s++]=e[r]);e.length=s}},Qs.prototype.unload=function(t){var e=this.renderer.texture,i=t._texture;i&&!i.framebuffer&&e.destroyTexture(i);for(var r=t.children.length-1;0<=r;r--)this.unload(t.children[r])},Qs.prototype.destroy=function(){this.renderer=null};var Zs=Qs;function Qs(t){this.renderer=t,this.count=0,this.checkCount=0,this.maxIdle=C.GC_MAX_IDLE,this.checkCountMax=C.GC_MAX_CHECK_COUNT,this.mode=C.GC_MODE}var $s=function(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=J.TYPES.UNSIGNED_BYTE,this.internalFormat=J.FORMATS.RGBA,this.samplerType=0},Js=(to.prototype.contextChange=function(){var t,e,i=this.gl=this.renderer.gl,r=(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=(t=i,t="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?((s={})[J.TYPES.UNSIGNED_BYTE]=((e={})[J.FORMATS.RGBA]=t.RGBA8,e[J.FORMATS.RGB]=t.RGB8,e[J.FORMATS.RG]=t.RG8,e[J.FORMATS.RED]=t.R8,e[J.FORMATS.RGBA_INTEGER]=t.RGBA8UI,e[J.FORMATS.RGB_INTEGER]=t.RGB8UI,e[J.FORMATS.RG_INTEGER]=t.RG8UI,e[J.FORMATS.RED_INTEGER]=t.R8UI,e[J.FORMATS.ALPHA]=t.ALPHA,e[J.FORMATS.LUMINANCE]=t.LUMINANCE,e[J.FORMATS.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,e),s[J.TYPES.BYTE]=((e={})[J.FORMATS.RGBA]=t.RGBA8_SNORM,e[J.FORMATS.RGB]=t.RGB8_SNORM,e[J.FORMATS.RG]=t.RG8_SNORM,e[J.FORMATS.RED]=t.R8_SNORM,e[J.FORMATS.RGBA_INTEGER]=t.RGBA8I,e[J.FORMATS.RGB_INTEGER]=t.RGB8I,e[J.FORMATS.RG_INTEGER]=t.RG8I,e[J.FORMATS.RED_INTEGER]=t.R8I,e),s[J.TYPES.UNSIGNED_SHORT]=((e={})[J.FORMATS.RGBA_INTEGER]=t.RGBA16UI,e[J.FORMATS.RGB_INTEGER]=t.RGB16UI,e[J.FORMATS.RG_INTEGER]=t.RG16UI,e[J.FORMATS.RED_INTEGER]=t.R16UI,e[J.FORMATS.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,e),s[J.TYPES.SHORT]=((e={})[J.FORMATS.RGBA_INTEGER]=t.RGBA16I,e[J.FORMATS.RGB_INTEGER]=t.RGB16I,e[J.FORMATS.RG_INTEGER]=t.RG16I,e[J.FORMATS.RED_INTEGER]=t.R16I,e),s[J.TYPES.UNSIGNED_INT]=((e={})[J.FORMATS.RGBA_INTEGER]=t.RGBA32UI,e[J.FORMATS.RGB_INTEGER]=t.RGB32UI,e[J.FORMATS.RG_INTEGER]=t.RG32UI,e[J.FORMATS.RED_INTEGER]=t.R32UI,e[J.FORMATS.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,e),s[J.TYPES.INT]=((e={})[J.FORMATS.RGBA_INTEGER]=t.RGBA32I,e[J.FORMATS.RGB_INTEGER]=t.RGB32I,e[J.FORMATS.RG_INTEGER]=t.RG32I,e[J.FORMATS.RED_INTEGER]=t.R32I,e),s[J.TYPES.FLOAT]=((e={})[J.FORMATS.RGBA]=t.RGBA32F,e[J.FORMATS.RGB]=t.RGB32F,e[J.FORMATS.RG]=t.RG32F,e[J.FORMATS.RED]=t.R32F,e[J.FORMATS.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,e),s[J.TYPES.HALF_FLOAT]=((e={})[J.FORMATS.RGBA]=t.RGBA16F,e[J.FORMATS.RGB]=t.RGB16F,e[J.FORMATS.RG]=t.RG16F,e[J.FORMATS.RED]=t.R16F,e),s[J.TYPES.UNSIGNED_SHORT_5_6_5]=((e={})[J.FORMATS.RGB]=t.RGB565,e),s[J.TYPES.UNSIGNED_SHORT_4_4_4_4]=((e={})[J.FORMATS.RGBA]=t.RGBA4,e),s[J.TYPES.UNSIGNED_SHORT_5_5_5_1]=((e={})[J.FORMATS.RGBA]=t.RGB5_A1,e),s[J.TYPES.UNSIGNED_INT_2_10_10_10_REV]=((e={})[J.FORMATS.RGBA]=t.RGB10_A2,e[J.FORMATS.RGBA_INTEGER]=t.RGB10_A2UI,e),s[J.TYPES.UNSIGNED_INT_10F_11F_11F_REV]=((e={})[J.FORMATS.RGB]=t.R11F_G11F_B10F,e),s[J.TYPES.UNSIGNED_INT_5_9_9_9_REV]=((e={})[J.FORMATS.RGB]=t.RGB9_E5,e),s[J.TYPES.UNSIGNED_INT_24_8]=((e={})[J.FORMATS.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,e),s[J.TYPES.FLOAT_32_UNSIGNED_INT_24_8_REV]=((e={})[J.FORMATS.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,e),s):((e={})[J.TYPES.UNSIGNED_BYTE]=((s={})[J.FORMATS.RGBA]=t.RGBA,s[J.FORMATS.RGB]=t.RGB,s[J.FORMATS.ALPHA]=t.ALPHA,s[J.FORMATS.LUMINANCE]=t.LUMINANCE,s[J.FORMATS.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,s),e[J.TYPES.UNSIGNED_SHORT_5_6_5]=((s={})[J.FORMATS.RGB]=t.RGB,s),e[J.TYPES.UNSIGNED_SHORT_4_4_4_4]=((s={})[J.FORMATS.RGBA]=t.RGBA,s),e[J.TYPES.UNSIGNED_SHORT_5_5_5_1]=((s={})[J.FORMATS.RGBA]=t.RGBA,s),e)),i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS));this.boundTextures.length=r;for(var n=0;n<r;n++)this.boundTextures[n]=null;this.emptyTextures={};var s=new $s(i.createTexture());i.bindTexture(i.TEXTURE_2D,s.texture),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,1,1,0,i.RGBA,i.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[i.TEXTURE_2D]=s,this.emptyTextures[i.TEXTURE_CUBE_MAP]=new $s(i.createTexture()),i.bindTexture(i.TEXTURE_CUBE_MAP,this.emptyTextures[i.TEXTURE_CUBE_MAP].texture);for(n=0;n<6;n++)i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+n,0,i.RGBA,1,1,0,i.RGBA,i.UNSIGNED_BYTE,null);i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MIN_FILTER,i.LINEAR);for(n=0;n<this.boundTextures.length;n++)this.bind(null,n)},to.prototype.bind=function(t,e){void 0===e&&(e=0);var i,r=this.gl;(t=null==t?void 0:t.castToBaseTexture())&&t.valid&&!t.parentTextureArray?(t.touched=this.renderer.textureGC.count,i=t._glTextures[this.CONTEXT_UID]||this.initTexture(t),this.boundTextures[e]!==t&&(this.currentLocation!==e&&(this.currentLocation=e,r.activeTexture(r.TEXTURE0+e)),r.bindTexture(t.target,i.texture)),i.dirtyId!==t.dirtyId?(this.currentLocation!==e&&(this.currentLocation=e,r.activeTexture(r.TEXTURE0+e)),this.updateTexture(t)):i.dirtyStyleId!==t.dirtyStyleId&&this.updateTextureStyle(t),this.boundTextures[e]=t):(this.currentLocation!==e&&(this.currentLocation=e,r.activeTexture(r.TEXTURE0+e)),r.bindTexture(r.TEXTURE_2D,this.emptyTextures[r.TEXTURE_2D].texture),this.boundTextures[e]=null)},to.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var t=0;t<this.boundTextures.length;t++)this.boundTextures[t]=this.unknownTexture},to.prototype.unbind=function(t){var e=this.gl,i=this.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var r=0;r<i.length;r++)i[r]===this.unknownTexture&&this.bind(null,r)}for(r=0;r<i.length;r++)i[r]===t&&(this.currentLocation!==r&&(e.activeTexture(e.TEXTURE0+r),this.currentLocation=r),e.bindTexture(t.target,this.emptyTextures[t.target].texture),i[r]=null)},to.prototype.ensureSamplerType=function(t){var e=this.boundTextures,i=this.hasIntegerTextures,r=this.CONTEXT_UID;if(i)for(var n=t-1;0<=n;--n){var s=e[n];s&&s._glTextures[r].samplerType!==J.SAMPLER_TYPES.FLOAT&&this.renderer.texture.unbind(s)}},to.prototype.initTexture=function(t){var e=new $s(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},to.prototype.initTextureType=function(t,e){var i;e.internalFormat=null!=(i=null==(i=this.internalFormats[t.type])?void 0:i[t.format])?i:t.format,2===this.webGLVersion&&t.type===J.TYPES.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},to.prototype.updateTexture=function(t){var e,i,r,n=t._glTextures[this.CONTEXT_UID];n&&(r=this.renderer,this.initTextureType(t,n),t.resource&&t.resource.upload(r,t,n)?n.samplerType!==J.SAMPLER_TYPES.FLOAT&&(this.hasIntegerTextures=!0):(e=t.realWidth,i=t.realHeight,r=r.gl,(n.width!==e||n.height!==i||n.dirtyId<0)&&(n.width=e,n.height=i,r.texImage2D(t.target,0,n.internalFormat,e,i,0,t.format,n.type,null))),t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId)},to.prototype.destroyTexture=function(t,e){var i=this.gl;(t=t.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],e||-1!==(i=this.managedTextures.indexOf(t))&&Oe(this.managedTextures,i,1))},to.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==J.MIPMAP_MODES.POW2&&2===this.webGLVersion||t.isPowerOfTwo?e.mipmap=1<=t.mipmap:e.mipmap=!1,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=J.WRAP_MODES.CLAMP,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},to.prototype.setStyle=function(t,e){var i,r=this.gl;e.mipmap&&t.mipmap!==J.MIPMAP_MODES.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,e.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,e.wrapMode),e.mipmap?(r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===J.SCALE_MODES.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST),(e=this.renderer.context.extensions.anisotropicFiltering)&&0<t.anisotropicLevel&&t.scaleMode===J.SCALE_MODES.LINEAR&&(i=Math.min(t.anisotropicLevel,r.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),r.texParameterf(t.target,e.TEXTURE_MAX_ANISOTROPY_EXT,i))):r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===J.SCALE_MODES.LINEAR?r.LINEAR:r.NEAREST),r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===J.SCALE_MODES.LINEAR?r.LINEAR:r.NEAREST)},to.prototype.destroy=function(){this.renderer=null},to);function to(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new M,this.hasIntegerTextures=!1}var eo,io={__proto__:null,FilterSystem:gn,BatchSystem:xn,ContextSystem:En,FramebufferSystem:Pn,GeometrySystem:Mn,MaskSystem:gs,ScissorSystem:ws,StencilSystem:As,ProjectionSystem:Ps,RenderTextureSystem:ks,ShaderSystem:Ws,StateSystem:qs,TextureGCSystem:Zs,TextureSystem:Js},ro=new oi,no=(c(so,eo=it),so.prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},Object.defineProperty(so.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),so.prototype.resize=function(t,e){this.view.width=Math.round(t*this.resolution),this.view.height=Math.round(e*this.resolution);t=this.view.width/this.resolution,e=this.view.height/this.resolution;this.screen.width=t,this.screen.height=e,this.autoDensity&&(this.view.style.width=t+"px",this.view.style.height=e+"px"),this.emit("resize",t,e)},so.prototype.generateTexture=function(t,e,i,r){"number"==typeof(e=void 0===e?{}:e)&&(ke("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),e={scaleMode:e,resolution:i,region:r});i=e.region,e=function(t,e){var i={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i}(e,["region"]),0===(r=i||t.getLocalBounds(null,!0)).width&&(r.width=1),0===r.height&&(r.height=1),i=Gr.create(Qi({width:r.width,height:r.height},e));return ro.tx=-r.x,ro.ty=-r.y,this.render(t,{renderTexture:i,clear:!1,transform:ro,skipUpdateTransform:!!t.parent}),i},so.prototype.destroy=function(t){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);this.plugins=null,this.type=J.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(so.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this._backgroundColorString=fe(t),de(t,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(t){this._backgroundColorRgba[3]=t},enumerable:!1,configurable:!0}),so);function so(t,e){void 0===t&&(t=J.RENDERER_TYPE.UNKNOWN);var i=eo.call(this)||this;return e=Object.assign({},C.RENDER_OPTIONS,e),i.options=e,i.type=t,i.screen=new w(0,0,e.width,e.height),i.view=e.view||C.ADAPTER.createCanvas(),i.resolution=e.resolution||C.RESOLUTION,i.useContextAlpha=e.useContextAlpha,i.autoDensity=!!e.autoDensity,i.preserveDrawingBuffer=e.preserveDrawingBuffer,i.clearBeforeRender=e.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=e.backgroundColor||i._backgroundColor,i.backgroundAlpha=e.backgroundAlpha,void 0!==e.transparent&&(ke("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=e.transparent,i.backgroundAlpha=e.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}var oo=function(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0},ao=(lo.prototype.destroy=function(){this.renderer=null},lo.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},lo.prototype.bind=function(t){var e=this.gl,i=this.CONTEXT_UID,i=t._glBuffers[i]||this.createGLBuffer(t);e.bindBuffer(t.type,i.buffer)},lo.prototype.bindBufferBase=function(t,e){var i=this.gl,r=this.CONTEXT_UID;this.boundBufferBases[e]!==t&&(r=t._glBuffers[r]||this.createGLBuffer(t),this.boundBufferBases[e]=t,i.bindBufferBase(i.UNIFORM_BUFFER,e,r.buffer))},lo.prototype.bindBufferRange=function(t,e,i){var r=this.gl,n=this.CONTEXT_UID,n=(i=i||0,t._glBuffers[n]||this.createGLBuffer(t));r.bindBufferRange(r.UNIFORM_BUFFER,e||0,n.buffer,256*i,256)},lo.prototype.update=function(t){var e,i=this.gl,r=this.CONTEXT_UID,r=t._glBuffers[r];t._updateID!==r.updateID&&(r.updateID=t._updateID,i.bindBuffer(t.type,r.buffer),r.byteLength>=t.data.byteLength?i.bufferSubData(t.type,0,t.data):(e=t.static?i.STATIC_DRAW:i.DYNAMIC_DRAW,r.byteLength=t.data.byteLength,i.bufferData(t.type,t.data,e)))},lo.prototype.dispose=function(t,e){var i,r;this.managedBuffers[t.id]&&(delete this.managedBuffers[t.id],i=t._glBuffers[this.CONTEXT_UID],r=this.gl,t.disposeRunner.remove(this),i&&(e||r.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID]))},lo.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),i=0;i<e.length;i++)this.dispose(this.managedBuffers[e[i]],t)},lo.prototype.createGLBuffer=function(t){var e=this.CONTEXT_UID,i=this.gl;return t._glBuffers[e]=new oo(i.createBuffer()),(this.managedBuffers[t.id]=t).disposeRunner.add(this),t._glBuffers[e]},lo);function lo(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}c(co,ho=no),co.create=function(t){if(ce())return new co(t);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},co.prototype.contextChange=function(){var t,e,i=this.gl;1===this.context.webGLVersion?(e=i.getParameter(i.FRAMEBUFFER_BINDING),i.bindFramebuffer(i.FRAMEBUFFER,null),t=i.getParameter(i.SAMPLES),i.bindFramebuffer(i.FRAMEBUFFER,e)):(e=i.getParameter(i.DRAW_FRAMEBUFFER_BINDING),i.bindFramebuffer(i.DRAW_FRAMEBUFFER,null),t=i.getParameter(i.SAMPLES),i.bindFramebuffer(i.DRAW_FRAMEBUFFER,e)),t>=J.MSAA_QUALITY.HIGH?this.multisample=J.MSAA_QUALITY.HIGH:t>=J.MSAA_QUALITY.MEDIUM?this.multisample=J.MSAA_QUALITY.MEDIUM:t>=J.MSAA_QUALITY.LOW?this.multisample=J.MSAA_QUALITY.LOW:this.multisample=J.MSAA_QUALITY.NONE},co.prototype.addSystem=function(t,e){var i,r=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(i in this[e]=r,this.runners)this.runners[i].add(r);return this},co.prototype.render=function(t,e){var i,r,n,s;e&&(s=e instanceof Gr?(ke("6.0.0","Renderer#render arguments changed, use options instead."),i=e,r=arguments[2],n=arguments[3],arguments[4]):(i=e.renderTexture,r=e.clear,n=e.transform,e.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=n,this.context.isLost||(i||(this._lastObjectRendered=t),s||(e=t.enableTempParent(),t.updateTransform(),t.disableTempParent(e)),this.renderTexture.bind(i),this.batch.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender"))},co.prototype.generateTexture=function(t,e,i,r){t=ho.prototype.generateTexture.call(this,t,e=void 0===e?{}:e,i,r);return this.framebuffer.blit(),t},co.prototype.resize=function(t,e){ho.prototype.resize.call(this,t,e),this.runners.resize.emit(this.screen.height,this.screen.width)},co.prototype.reset=function(){return this.runners.reset.emit(),this},co.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},co.prototype.destroy=function(t){for(var e in this.runners.destroy.emit(),this.runners)this.runners[e].destroy();ho.prototype.destroy.call(this,t),this.gl=null},Object.defineProperty(co.prototype,"extract",{get:function(){return ke("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),co.registerPlugin=function(t,e){ke("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ji.add({name:t,type:J.ExtensionType.RendererPlugin,ref:e})},co.__plugins={};var ho,uo=co;function co(t){var e=ho.call(this,J.RENDERER_TYPE.WEBGL,t)||this;return t=e.options,e.gl=null,e.CONTEXT_UID=0,e.runners={destroy:new Gi("destroy"),contextChange:new Gi("contextChange"),reset:new Gi("reset"),update:new Gi("update"),postrender:new Gi("postrender"),prerender:new Gi("prerender"),resize:new Gi("resize")},e.runners.contextChange.add(e),e.globalUniforms=new cn({projectionMatrix:new oi},!0),e.addSystem(gs,"mask").addSystem(En,"context").addSystem(qs,"state").addSystem(Ws,"shader").addSystem(Js,"texture").addSystem(ao,"buffer").addSystem(Mn,"geometry").addSystem(Pn,"framebuffer").addSystem(ws,"scissor").addSystem(As,"stencil").addSystem(Ps,"projection").addSystem(Zs,"textureGC").addSystem(gn,"filter").addSystem(ks,"renderTexture").addSystem(xn,"batch"),e.initPlugins(co.__plugins),e.multisample=void 0,t.context?e.context.initFromContext(t.context):e.context.initFromOptions({alpha:!!e.useContextAlpha,antialias:t.antialias,premultipliedAlpha:e.useContextAlpha&&"notMultiplied"!==e.useContextAlpha,stencil:!0,preserveDrawingBuffer:t.preserveDrawingBuffer,powerPreference:e.options.powerPreference}),e.renderingToScreen=!0,ue(2===e.context.webGLVersion?"WebGL 2":"WebGL 1"),e.resize(e.options.width,e.options.height),e}function po(t){return uo.create(t)}ji.handleByMap(J.ExtensionType.RendererPlugin,uo.__plugins);var fo="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}",mo="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",_o=(go.prototype.destroy=function(){this.renderer=null},go);function go(t){ke("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}var vo=function(){this.texArray=null,this.blend=0,this.type=J.DRAW_MODES.TRIANGLES,this.start=0,this.size=0,this.data=null},yo=(bo.prototype.clear=function(){for(var t=0;t<this.count;t++)this.elements[t]=null;this.count=0},bo);function bo(){this.elements=[],this.ids=[],this.count=0}Object.defineProperty(To.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),To.prototype.view=function(t){return this[t+"View"]},To.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},To.sizeOf=function(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(t+" isn't a valid view type")}};var xo=To;function To(t){"number"==typeof t?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}c(So,wo=yn),So.prototype.contextChange=function(){var t=this.renderer.gl;C.PREFER_ENV===J.ENV.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),C.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=ts(this.MAX_TEXTURES,t)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()},So.prototype.initFlushBuffers=function(){for(var t=So._drawCallPool,e=So._textureArrayPool,i=this.size/4,r=Math.floor(i/this.MAX_TEXTURES)+1;t.length<i;)t.push(new vo);for(;e.length<r;)e.push(new yo);for(var n=0;n<this.MAX_TEXTURES;n++)this._tempBoundTextures[n]=null},So.prototype.onPrerender=function(){this._flushId=0},So.prototype.render=function(t){t._texture.valid&&(this._vertexCount+t.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},So.prototype.buildTexturesAndDrawCalls=function(){var t=this._bufferedTextures,e=this.MAX_TEXTURES,i=So._textureArrayPool,r=this.renderer.batch,n=this._tempBoundTextures,s=this.renderer.textureGC.count,o=++M._globalBatch,a=0,l=i[0],h=0;r.copyBoundTextures(n,e);for(var u=0;u<this._bufferSize;++u){var c=t[u];t[u]=null,c._batchEnabled!==o&&(l.count>=e&&(r.boundArray(l,n,o,e),this.buildDrawCalls(l,h,u),h=u,l=i[++a],++o),c._batchEnabled=o,c.touched=s,l.elements[l.count++]=c)}0<l.count&&(r.boundArray(l,n,o,e),this.buildDrawCalls(l,h,this._bufferSize),++a,++o);for(u=0;u<n.length;u++)n[u]=null;M._globalBatch=o},So.prototype.buildDrawCalls=function(t,e,i){var r=this._bufferedElements,n=this._attributeBuffer,s=this._indexBuffer,o=this.vertexSize,a=So._drawCallPool,l=this._dcIndex,h=this._aIndex,u=this._iIndex,c=a[l];c.start=this._iIndex,c.texArray=t;for(var p=e;p<i;++p){var d=r[p],f=d._texture.baseTexture,f=_e[f.alphaMode?1:0][d.blendMode];r[p]=null,e<p&&c.blend!==f&&(c.size=u-c.start,e=p,(c=a[++l]).texArray=t,c.start=u),this.packInterleavedGeometry(d,n,s,h,u),h+=d.vertexData.length/2*o,u+=d.indices.length,c.blend=f}e<i&&(c.size=u-c.start,++l),this._dcIndex=l,this._aIndex=h,this._iIndex=u},So.prototype.bindAndClearTexArray=function(t){for(var e=this.renderer.texture,i=0;i<t.count;i++)e.bind(t.elements[i],t.ids[i]),t.elements[i]=null;t.count=0},So.prototype.updateGeometry=function(){var t=this._packedGeometries,e=this._attributeBuffer,i=this._indexBuffer;C.CAN_UPLOAD_SAME_BUFFER?(t[this._flushId]._buffer.update(e.rawBinaryData),t[this._flushId]._indexBuffer.update(i),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,t[this._flushId]=new this.geometryClass),t[this._flushId]._buffer.update(e.rawBinaryData),t[this._flushId]._indexBuffer.update(i),this.renderer.geometry.bind(t[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},So.prototype.drawBatches=function(){for(var t=this._dcIndex,e=this.renderer,i=e.gl,r=e.state,n=So._drawCallPool,s=null,o=0;o<t;o++){var a=n[o],l=a.texArray,h=a.type,u=a.size,c=a.start,a=a.blend;s!==l&&this.bindAndClearTexArray(s=l),this.state.blendMode=a,r.set(this.state),i.drawElements(h,u,i.UNSIGNED_SHORT,2*c)}},So.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)},So.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),C.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},So.prototype.stop=function(){this.flush()},So.prototype.destroy=function(){for(var t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]&&this._packedGeometries[t].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),wo.prototype.destroy.call(this)},So.prototype.getAttributeBuffer=function(t){var t=Ee(Math.ceil(t/8)),e=Ae(t),t=8*t,e=(this._aBuffers.length<=e&&(this._iBuffers.length=e+1),this._aBuffers[t]);return e||(this._aBuffers[t]=e=new xo(t*this.vertexSize*4)),e},So.prototype.getIndexBuffer=function(t){var t=Ee(Math.ceil(t/12)),e=Ae(t),t=12*t,i=(this._iBuffers.length<=e&&(this._iBuffers.length=e+1),this._iBuffers[e]);return i||(this._iBuffers[e]=i=new Uint16Array(t)),i},So.prototype.packInterleavedGeometry=function(t,e,i,r,n){for(var s=e.uint32View,o=e.float32View,a=r/this.vertexSize,l=t.uvs,h=t.indices,u=t.vertexData,c=t._texture.baseTexture._batchLocation,e=Math.min(t.worldAlpha,1),p=e<1&&t._texture.baseTexture.alphaMode?ye(t._tintRGB,e):t._tintRGB+(255*e<<24),d=0;d<u.length;d+=2)o[r++]=u[d],o[r++]=u[d+1],o[r++]=l[d],o[r++]=l[d+1],s[r++]=p,o[r++]=c;for(d=0;d<h.length;d++)i[n++]=a+h[d]},So._drawCallPool=[],So._textureArrayPool=[];var wo,Eo=So;function So(t){var e=wo.call(this,t)||this;return e.shaderGenerator=null,e.geometryClass=null,e.vertexSize=null,e.state=as.for2d(),e.size=4*C.SPRITE_BATCH_SIZE,e._vertexCount=0,e._indexCount=0,e._bufferedElements=[],e._bufferedTextures=[],e._bufferSize=0,e._shader=null,e._packedGeometries=[],e._packedGeometryPoolSize=2,e._flushId=0,e._aBuffers={},e._iBuffers={},e.MAX_TEXTURES=1,e.renderer.on("prerender",e.onPrerender,e),t.runners.contextChange.add(e),e._dcIndex=0,e._aIndex=0,e._iIndex=0,e._attributeBuffer=null,e._indexBuffer=null,e._tempBoundTextures=[],e}Oo.prototype.generateShader=function(t){if(!this.programCache[t]){for(var e=new Int32Array(t),i=0;i<t;i++)e[i]=i;this.defaultGroupCache[t]=cn.from({uSamplers:e},!0);var r=this.fragTemplate;r=(r=r.replace(/%count%/gi,""+t)).replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new rs(this.vertexSrc,r)}r={tint:new Float32Array([1,1,1,1]),translationMatrix:new oi,default:this.defaultGroupCache[t]};return new ss(this.programCache[t],r)},Oo.prototype.generateSampleSrc=function(t){for(var e=(e="")+"\n"+"\n",i=0;i<t;i++)0<i&&(e+="\nelse "),i<t-1&&(e+="if(vTextureId < "+i+".5)"),e=(e+="\n{")+"\n\tcolor = texture2D(uSamplers["+i+"], vTextureCoord);\n}";return e=e+"\n"+"\n"};var Ao=Oo;function Oo(t,e){if(this.vertexSrc=t,this.fragTemplate=e,this.programCache={},this.defaultGroupCache={},e.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(e.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}c(Co,Po=en);var Po,Ro=Co;function Co(t){void 0===t&&(t=!1);var e=Po.call(this)||this;return e._buffer=new Kr(null,t,!1),e._indexBuffer=new Kr(null,t,!0),e.addAttribute("aVertexPosition",e._buffer,2,!1,J.TYPES.FLOAT).addAttribute("aTextureCoord",e._buffer,2,!1,J.TYPES.FLOAT).addAttribute("aColor",e._buffer,4,!0,J.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",e._buffer,1,!0,J.TYPES.FLOAT).addIndex(e._indexBuffer),e}var Mo="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",ko="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",Io=(Do.create=function(t){var e,t=Object.assign({vertex:Mo,fragment:ko,geometryClass:Ro,vertexSize:6},t),i=t.vertex,r=t.fragment,n=t.vertexSize,s=t.geometryClass;return c(o,e=Eo),o;function o(t){t=e.call(this,t)||this;return t.shaderGenerator=new Ao(i,r),t.geometryClass=s,t.vertexSize=n,t}},Object.defineProperty(Do,"defaultVertexSrc",{get:function(){return Mo},enumerable:!1,configurable:!0}),Object.defineProperty(Do,"defaultFragmentTemplate",{get:function(){return ko},enumerable:!1,configurable:!0}),Do);function Do(){}var Xt=Io.create(),Fo=(Object.assign(Xt,{extension:{name:"batch",type:J.ExtensionType.RendererPlugin}}),{});for(Lo in Pr)!function(t){Object.defineProperty(Fo,t,{get:function(){return ke("6.0.0","PIXI.systems."+t+" has moved to PIXI."+t),Pr[t]}})}(Lo);var Lo,No={};for(Lo in io)!function(t){Object.defineProperty(No,t,{get:function(){return ke("6.0.0","PIXI.resources."+t+" has moved to PIXI."+t),io[t]}})}(Lo);rt={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1},i.mixin(rt),Object.defineProperty(zo.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(zo.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),zo.prototype.createTouchHook=function(){var t=this,e=document.createElement("button");e.style.width="1px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.style.zIndex=2..toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()}),document.body.appendChild(e),this._hookDiv=e},zo.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},zo.prototype.activate=function(){var t;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!=(t=this.renderer.view.parentNode)&&t.appendChild(this.div))},zo.prototype.deactivate=function(){var t;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!=(t=this.div.parentNode)&&t.removeChild(this.div))},zo.prototype.updateAccessibleObjects=function(t){if(t.visible&&t.accessibleChildren){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var e=t.children;if(e)for(var i=0;i<e.length;i++)this.updateAccessibleObjects(e[i])}},zo.prototype.update=function(){var t=performance.now();if(!(ut.android.device&&t<this.androidUpdateCount)&&(this.androidUpdateCount=t+this.androidUpdateFrequency,this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var t=this.renderer.view.getBoundingClientRect(),e=t.left,i=t.top,r=t.width,t=t.height,n=this.renderer,s=n.width,o=n.height,n=n.resolution,a=r/s*n,l=t/o*n;(u=this.div).style.left=e+"px",u.style.top=i+"px",u.style.width=s+"px",u.style.height=o+"px";for(var h=0;h<this.children.length;h++){var u,c,p,d=this.children[h];d.renderId!==this.renderId?(d._accessibleActive=!1,Oe(this.children,h,1),this.div.removeChild(d._accessibleDiv),this.pool.push(d._accessibleDiv),d._accessibleDiv=null,h--):(u=d._accessibleDiv,c=d.hitArea,p=d.worldTransform,d.hitArea?(u.style.left=(p.tx+c.x*p.a)*a+"px",u.style.top=(p.ty+c.y*p.d)*l+"px",u.style.width=c.width*p.a*a+"px",u.style.height=c.height*p.d*l+"px"):(c=d.getBounds(),this.capHitArea(c),u.style.left=c.x*a+"px",u.style.top=c.y*l+"px",u.style.width=c.width*a+"px",u.style.height=c.height*l+"px",u.title!==d.accessibleTitle&&null!==d.accessibleTitle&&(u.title=d.accessibleTitle),u.getAttribute("aria-label")!==d.accessibleHint&&null!==d.accessibleHint&&u.setAttribute("aria-label",d.accessibleHint)),d.accessibleTitle===u.title&&d.tabIndex===u.tabIndex||(u.title=d.accessibleTitle,u.tabIndex=d.tabIndex,this.debug&&this.updateDebugHTML(u)))}this.renderId++}},zo.prototype.updateDebugHTML=function(t){t.innerHTML="type: "+t.type+"</br> title : "+t.title+"</br> tabIndex: "+t.tabIndex},zo.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var e=this.renderer,i=e.width,e=e.height;t.x+t.width>i&&(t.width=i-t.x),t.y+t.height>e&&(t.height=e-t.y)},zo.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width="100px",e.style.height="100px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=2..toString(),e.style.borderStyle="none",-1<navigator.userAgent.toLowerCase().indexOf("chrome")?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleHint&&null!==t.accessibleHint||(e.title="displayObject "+t.tabIndex),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,(t._accessibleDiv=e).displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},zo.prototype._onClick=function(t){var e=this.renderer.plugins.interaction,t=t.target.displayObject,i=e.eventData;e.dispatchEvent(t,"click",i),e.dispatchEvent(t,"pointertap",i),e.dispatchEvent(t,"tap",i)},zo.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,t=t.target.displayObject,i=e.eventData;e.dispatchEvent(t,"mouseover",i)},zo.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,t=t.target.displayObject,i=e.eventData;e.dispatchEvent(t,"mouseout",i)},zo.prototype._onKeyDown=function(t){9===t.keyCode&&this.activate()},zo.prototype._onMouseMove=function(t){0===t.movementX&&0===t.movementY||this.deactivate()},zo.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},zo.extension={name:"accessibility",type:[J.ExtensionType.RendererPlugin,J.ExtensionType.CanvasRendererPlugin]},r=zo;function zo(t){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,(ut.tablet||ut.phone)&&this.createTouchHook();var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.zIndex=2..toString(),this.div=e,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}Object.defineProperty(Uo.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),Uo.prototype.getLocalPosition=function(t,e,i){return t.worldTransform.applyInverse(i||this.global,e)},Uo.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var e="buttons"in t&&t.buttons;this.buttons=Number.isInteger(e)?e:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},Uo.prototype.reset=function(){this.isPrimary=!1};var Bo=Uo;function Uo(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new tt,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 jo=function(t,e){return(jo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};Xo.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},Xo.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null};var Go=Xo;function Xo(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}Yo.prototype._doSet=function(t,e){this._flags=e?this._flags|t:this._flags&~t},Object.defineProperty(Yo.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"none",{get:function(){return this._flags===Yo.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"over",{get:function(){return 0!=(this._flags&Yo.FLAGS.OVER)},set:function(t){this._doSet(Yo.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"rightDown",{get:function(){return 0!=(this._flags&Yo.FLAGS.RIGHT_DOWN)},set:function(t){this._doSet(Yo.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"leftDown",{get:function(){return 0!=(this._flags&Yo.FLAGS.LEFT_DOWN)},set:function(t){this._doSet(Yo.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),Yo.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4});var Ho=Yo;function Yo(t){this._pointerId=t,this._flags=Yo.FLAGS.NONE}Vo.prototype.recursiveFindHit=function(t,e,i,r,n){var s;if(!e||!e.visible)return!1;var o,a=t.data.global,l=!1,h=n=e.interactive||n,u=!0;if(e.hitArea?(r&&(e.worldTransform.applyInverse(a,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?l=!0:u=r=!1),h=!1):e._mask&&r&&(o=e._mask.isMaskData?e._mask.maskObject:e._mask)&&(null==(s=o.containsPoint)||!s.call(o,a))&&(r=!1),u&&e.interactiveChildren&&e.children)for(var c=e.children,p=c.length-1;0<=p;p--){var d=c[p],f=this.recursiveFindHit(t,d,i,r,h);f&&d.parent&&(h=!1,f&&(t.target&&(r=!1),l=!0))}return n&&(r&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(a)&&(l=!0),e.interactive&&(l&&!t.target&&(t.target=e),i&&i(t,e,!!l))),l},Vo.prototype.findHit=function(t,e,i,r){this.recursiveFindHit(t,e,i,r,!1)};var Wo=Vo;function Vo(){this._tempPoint=new tt}var qo,Ko,nt={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?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},Zo=(i.mixin(nt),{target:null,data:{global:null}}),n=(jo(Ko=_,st=qo=it),Ko.prototype=null===st?Object.create(st):(Qo.prototype=st.prototype,new Qo),Object.defineProperty(_.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(t){(this._useSystemTicker=t)?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(t,e){return Zo.target=null,Zo.data.global=t,e=e||this.lastObjectRendered,this.processInteractive(Zo,e,null,!0),Zo.target},_.prototype.setTargetElement=function(t,e){void 0===e&&(e=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents(),this.addTickerListener()},_.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(Wi.system.add(this.tickerUpdate,this,J.UPDATE_PRIORITY.INTERACTION),this.tickerAdded=!0)},_.prototype.removeTickerListener=function(){this.tickerAdded&&(Wi.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},_.prototype.addEvents=function(){var t;!this.eventsAdded&&this.interactionDOMElement&&(t=this.interactionDOMElement.style,globalThis.navigator.msPointerEnabled?(t.msContentZooming="none",t.msTouchAction="none"):this.supportsPointerEvents&&(t.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 t;this.eventsAdded&&this.interactionDOMElement&&(t=this.interactionDOMElement.style,globalThis.navigator.msPointerEnabled?(t.msContentZooming="",t.msTouchAction=""):this.supportsPointerEvents&&(t.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(t){this._deltaTime+=t,this._deltaTime<this.interactionFrequency||(this._deltaTime=0,this.update())},_.prototype.update=function(){if(this.interactionDOMElement)if(this._didMove)this._didMove=!1;else{for(var t in this.cursor=null,this.activeInteractionData)!this.activeInteractionData.hasOwnProperty(t)||(t=this.activeInteractionData[t]).originalEvent&&"touch"!==t.pointerType&&(t=this.configureInteractionEventForDOMEvent(this.eventData,t.originalEvent,t),this.processInteractive(t,this.lastObjectRendered,this.processPointerOverOut,!0));this.setCursorMode(this.cursor)}},_.prototype.setCursorMode=function(t){t=t||"default";var e=!0;if(globalThis.OffscreenCanvas&&this.interactionDOMElement instanceof OffscreenCanvas&&(e=!1),this.currentCursorMode!==t){this.currentCursorMode=t;var i=this.cursorStyles[t];if(i)switch(typeof i){case"string":e&&(this.interactionDOMElement.style.cursor=i);break;case"function":i(t);break;case"object":e&&Object.assign(this.interactionDOMElement.style,i)}else e&&"string"==typeof t&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,t)&&(this.interactionDOMElement.style.cursor=t)}},_.prototype.dispatchEvent=function(t,e,i){i.stopPropagationHint&&t!==i.stopsPropagatingAt||(i.currentTarget=t,i.type=e,t.emit(e,i),t[e]&&t[e](i))},_.prototype.delayDispatchEvent=function(t,e,i){this.delayedEvents.push({displayObject:t,eventString:e,eventData:i})},_.prototype.mapPositionToPoint=function(t,e,i){var r=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;t.x=(e-r.left)*(this.interactionDOMElement.width/r.width)*n,t.y=(i-r.top)*(this.interactionDOMElement.height/r.height)*n},_.prototype.processInteractive=function(t,e,i,r){var e=this.search.findHit(t,e,i,r),n=this.delayedEvents;if(n.length){t.stopPropagationHint=!1;var s=n.length;this.delayedEvents=[];for(var o=0;o<s;o++){var a=n[o],l=a.displayObject,h=a.eventString,a=a.eventData;a.stopsPropagatingAt===l&&(a.stopPropagationHint=!0),this.dispatchEvent(l,h,a)}}return e},_.prototype.onPointerDown=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType)for(var e=this.normalizeToPointerData(t),i=(!this.autoPreventDefault||!e[0].isNormalized||!t.cancelable&&"cancelable"in t||t.preventDefault(),e.length),r=0;r<i;r++){var n=e[r],s=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,s);s.data.originalEvent=t,this.processInteractive(s,this.lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",s),"touch"===n.pointerType?this.emit("touchstart",s):"mouse"!==n.pointerType&&"pen"!==n.pointerType||(s=2===n.button,this.emit(s?"rightdown":"mousedown",this.eventData))}},_.prototype.processPointerDown=function(t,e,i){var r=t.data,n=t.data.identifier;i&&(e.trackedPointers[n]||(e.trackedPointers[n]=new Ho(n)),this.dispatchEvent(e,"pointerdown",t),"touch"===r.pointerType?this.dispatchEvent(e,"touchstart",t):"mouse"!==r.pointerType&&"pen"!==r.pointerType||((i=2===r.button)?e.trackedPointers[n].rightDown=!0:e.trackedPointers[n].leftDown=!0,this.dispatchEvent(e,i?"rightdown":"mousedown",t)))},_.prototype.onPointerComplete=function(t,e,i){for(var r=this.normalizeToPointerData(t),n=r.length,s=t.target,o=(s=t.composedPath&&0<t.composedPath().length?t.composedPath()[0]:s)!==this.interactionDOMElement?"outside":"",a=0;a<n;a++){var l,h=r[a],u=this.getInteractionDataForPointerId(h),u=this.configureInteractionEventForDOMEvent(this.eventData,h,u);u.data.originalEvent=t,this.processInteractive(u,this.lastObjectRendered,i,e||!o),this.emit(e?"pointercancel":"pointerup"+o,u),"mouse"===h.pointerType||"pen"===h.pointerType?(l=2===h.button,this.emit(l?"rightup"+o:"mouseup"+o,u)):"touch"===h.pointerType&&(this.emit(e?"touchcancel":"touchend"+o,u),this.releaseInteractionDataForPointerId(h.pointerId))}},_.prototype.onPointerCancel=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!0,this.processPointerCancel)},_.prototype.processPointerCancel=function(t,e){var i=t.data,r=t.data.identifier;void 0!==e.trackedPointers[r]&&(delete e.trackedPointers[r],this.dispatchEvent(e,"pointercancel",t),"touch"===i.pointerType&&this.dispatchEvent(e,"touchcancel",t))},_.prototype.onPointerUp=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!1,this.processPointerUp)},_.prototype.processPointerUp=function(t,e,i){var r,n=t.data,s=t.data.identifier,o=e.trackedPointers[s],a="touch"===n.pointerType,l="mouse"===n.pointerType||"pen"===n.pointerType,h=!1;l&&(n=2===n.button,r=Ho.FLAGS,r=n?r.RIGHT_DOWN:r.LEFT_DOWN,r=void 0!==o&&o.flags&r,i?(this.dispatchEvent(e,n?"rightup":"mouseup",t),r&&(this.dispatchEvent(e,n?"rightclick":"click",t),h=!0)):r&&this.dispatchEvent(e,n?"rightupoutside":"mouseupoutside",t),o&&(n?o.rightDown=!1:o.leftDown=!1)),i?(this.dispatchEvent(e,"pointerup",t),a&&this.dispatchEvent(e,"touchend",t),o&&(l&&!h||this.dispatchEvent(e,"pointertap",t),a&&(this.dispatchEvent(e,"tap",t),o.over=!1))):o&&(this.dispatchEvent(e,"pointerupoutside",t),a&&this.dispatchEvent(e,"touchendoutside",t)),o&&o.none&&delete e.trackedPointers[s]},_.prototype.onPointerMove=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){for(var e=this.normalizeToPointerData(t),i=("mouse"!==e[0].pointerType&&"pen"!==e[0].pointerType||(this._didMove=!0,this.cursor=null),e.length),r=0;r<i;r++){var n=e[r],s=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,s);s.data.originalEvent=t,this.processInteractive(s,this.lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",s),"touch"===n.pointerType&&this.emit("touchmove",s),"mouse"!==n.pointerType&&"pen"!==n.pointerType||this.emit("mousemove",s)}"mouse"===e[0].pointerType&&this.setCursorMode(this.cursor)}},_.prototype.processPointerMove=function(t,e,i){var r=t.data,n="touch"===r.pointerType,r="mouse"===r.pointerType||"pen"===r.pointerType;r&&this.processPointerOverOut(t,e,i),this.moveWhenInside&&!i||(this.dispatchEvent(e,"pointermove",t),n&&this.dispatchEvent(e,"touchmove",t),r&&this.dispatchEvent(e,"mousemove",t))},_.prototype.onPointerOut=function(t){var e,i;this.supportsTouchEvents&&"touch"===t.pointerType||("mouse"===(t=this.normalizeToPointerData(t)[0]).pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null)),e=this.getInteractionDataForPointerId(t),(i=this.configureInteractionEventForDOMEvent(this.eventData,t,e)).data.originalEvent=t,this.processInteractive(i,this.lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",i),"mouse"===t.pointerType||"pen"===t.pointerType?this.emit("mouseout",i):this.releaseInteractionDataForPointerId(e.identifier))},_.prototype.processPointerOverOut=function(t,e,i){var r=t.data,n=t.data.identifier,r="mouse"===r.pointerType||"pen"===r.pointerType,s=e.trackedPointers[n];void 0!==(s=i&&!s?e.trackedPointers[n]=new Ho(n):s)&&(i&&this.mouseOverRenderer?(s.over||(s.over=!0,this.delayDispatchEvent(e,"pointerover",t),r&&this.delayDispatchEvent(e,"mouseover",t)),r&&null===this.cursor&&(this.cursor=e.cursor)):s.over&&(s.over=!1,this.dispatchEvent(e,"pointerout",this.eventData),r&&this.dispatchEvent(e,"mouseout",t),s.none&&delete e.trackedPointers[n]))},_.prototype.onPointerOver=function(t){var e;this.supportsTouchEvents&&"touch"===t.pointerType||(t=this.normalizeToPointerData(t)[0],e=this.getInteractionDataForPointerId(t),"mouse"===((e=this.configureInteractionEventForDOMEvent(this.eventData,t,e)).data.originalEvent=t).pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",e),"mouse"!==t.pointerType&&"pen"!==t.pointerType||this.emit("mouseover",e))},_.prototype.getInteractionDataForPointerId=function(t){var e,i=t.pointerId;return 1===i||"mouse"===t.pointerType?e=this.mouse:this.activeInteractionData[i]?e=this.activeInteractionData[i]:((e=this.interactionDataPool.pop()||new Bo).identifier=i,this.activeInteractionData[i]=e),e.copyEvent(t),e},_.prototype.releaseInteractionDataForPointerId=function(t){var e=this.activeInteractionData[t];e&&(delete this.activeInteractionData[t],e.reset(),this.interactionDataPool.push(e))},_.prototype.configureInteractionEventForDOMEvent=function(t,e,i){return t.data=i,this.mapPositionToPoint(i.global,e.clientX,e.clientY),"touch"===e.pointerType&&(e.globalX=i.global.x,e.globalY=i.global.y),i.originalEvent=e,t.reset(),t},_.prototype.normalizeToPointerData=function(t){var e,i=[];if(this.supportsTouchEvents&&t instanceof TouchEvent)for(var r=0,n=t.changedTouches.length;r<n;r++){var s=t.changedTouches[r];void 0===s.button&&(s.button=t.touches.length?1:0),void 0===s.buttons&&(s.buttons=t.touches.length?1:0),void 0===s.isPrimary&&(s.isPrimary=1===t.touches.length&&"touchstart"===t.type),void 0===s.width&&(s.width=s.radiusX||1),void 0===s.height&&(s.height=s.radiusY||1),void 0===s.tiltX&&(s.tiltX=0),void 0===s.tiltY&&(s.tiltY=0),void 0===s.pointerType&&(s.pointerType="touch"),void 0===s.pointerId&&(s.pointerId=s.identifier||0),void 0===s.pressure&&(s.pressure=s.force||.5),void 0===s.twist&&(s.twist=0),void 0===s.tangentialPressure&&(s.tangentialPressure=0),void 0===s.layerX&&(s.layerX=s.offsetX=s.clientX),void 0===s.layerY&&(s.layerY=s.offsetY=s.clientY),s.isNormalized=!0,i.push(s)}else!globalThis.MouseEvent||t instanceof MouseEvent&&!(this.supportsPointerEvents&&t instanceof globalThis.PointerEvent)?(void 0===(e=t).isPrimary&&(e.isPrimary=!0),void 0===e.width&&(e.width=1),void 0===e.height&&(e.height=1),void 0===e.tiltX&&(e.tiltX=0),void 0===e.tiltY&&(e.tiltY=0),void 0===e.pointerType&&(e.pointerType="mouse"),void 0===e.pointerId&&(e.pointerId=1),void 0===e.pressure&&(e.pressure=.5),void 0===e.twist&&(e.twist=0),void 0===e.tangentialPressure&&(e.tangentialPressure=0),e.isNormalized=!0,i.push(e)):i.push(t);return i},_.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:[J.ExtensionType.RendererPlugin,J.ExtensionType.CanvasRendererPlugin]},_);function Qo(){this.constructor=Ko}function _(t,e){var i=qo.call(this)||this;return e=e||{},i.renderer=t,i.autoPreventDefault=void 0===e.autoPreventDefault||e.autoPreventDefault,i.interactionFrequency=e.interactionFrequency||10,i.mouse=new Bo,i.mouse.identifier=1,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[1]=i.mouse,i.interactionDataPool=[],i.eventData=new Go,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new Wo,i._tempDisplayObject=new Di,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=void 0===e.useSystemTicker||e.useSystemTicker,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}var $o=new w,s=(Jo.prototype.image=function(t,e,i){var r=new Image;return r.src=this.base64(t,e,i),r},Jo.prototype.base64=function(t,e,i){return this.canvas(t).toDataURL(e,i)},Jo.prototype.canvas=function(t,e){var i,r,n=this.renderer,s=!1,o=!1,t=(t&&(t instanceof Gr?i=t:(i=this.renderer.generateTexture(t),o=!0)),i?(r=i.baseTexture.resolution,e=null!=e?e:i.frame,s=!1,n.renderTexture.bind(i)):(r=n.resolution,e||((e=$o).width=n.width,e.height=n.height),s=!0,n.renderTexture.bind(null)),Math.round(e.width*r)),a=Math.round(e.height*r),l=new Le(t,a,1),h=new Uint8Array(4*t*a),n=n.gl,e=(n.readPixels(Math.round(e.x*r),Math.round(e.y*r),t,a,n.RGBA,n.UNSIGNED_BYTE,h),l.context.getImageData(0,0,t,a));return Jo.arrayPostDivide(h,e.data),l.context.putImageData(e,0,0),s&&((r=new Le(l.width,l.height,1)).context.scale(1,-1),r.context.drawImage(l.canvas,0,-a),l.destroy(),l=r),o&&i.destroy(!0),l.canvas},Jo.prototype.pixels=function(t,e){var i,r,n=this.renderer,s=!1,t=(t&&(t instanceof Gr?r=t:(r=this.renderer.generateTexture(t),s=!0)),r?(i=r.baseTexture.resolution,e=null!=e?e:r.frame,n.renderTexture.bind(r)):(i=n.resolution,e||((e=$o).width=n.width,e.height=n.height),n.renderTexture.bind(null)),Math.round(e.width*i)),o=Math.round(e.height*i),a=new Uint8Array(4*t*o),n=n.gl;return n.readPixels(Math.round(e.x*i),Math.round(e.y*i),t,o,n.RGBA,n.UNSIGNED_BYTE,a),s&&r.destroy(!0),Jo.arrayPostDivide(a,a),a},Jo.prototype.destroy=function(){this.renderer=null},Jo.arrayPostDivide=function(t,e){for(var i=0;i<t.length;i+=4){var r=e[i+3]=t[i+3];0!==r?(e[i]=Math.round(Math.min(255*t[i]/r,255)),e[i+1]=Math.round(Math.min(255*t[i+1]/r,255)),e[i+2]=Math.round(Math.min(255*t[i+2]/r,255))):(e[i]=t[i],e[i+1]=t[i+1],e[i+2]=t[i+2])}},Jo.extension={name:"extract",type:J.ExtensionType.RendererPlugin},Jo);function Jo(t){this.renderer=t}ea.prototype.detach=function(){return null!==this._owner&&(this._owner.detach(this),!0)};var ta=ea;function ea(t,e,i){void 0===e&&(e=!1),this._fn=t,this._once=e,this._thisArg=i,this._next=this._prev=this._owner=null}function ia(t,e){return t._head?(t._tail._next=e)._prev=t._tail:t._head=e,(t._tail=e)._owner=t,e}sa.prototype.handlers=function(t){var e=this._head;if(t=void 0===t?!1:t)return!!e;for(var i=[];e;)i.push(e),e=e._next;return i},sa.prototype.has=function(t){if(t instanceof ta)return t._owner===this;throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.")},sa.prototype.dispatch=function(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];var r=this._head;if(!r)return!1;for(;r;)r._once&&this.detach(r),r._fn.apply(r._thisArg,e),r=r._next;return!0},sa.prototype.add=function(t,e){if(void 0===e&&(e=null),"function"!=typeof t)throw new Error("MiniSignal#add(): First arg must be a Function.");return ia(this,new ta(t,!1,e))},sa.prototype.once=function(t,e){if(void 0===e&&(e=null),"function"!=typeof t)throw new Error("MiniSignal#once(): First arg must be a Function.");return ia(this,new ta(t,!0,e))},sa.prototype.detach=function(t){if(t instanceof ta)return t._owner===this&&(t._prev&&(t._prev._next=t._next),t._next&&(t._next._prev=t._prev),t===this._head?(this._head=t._next,null===t._next&&(this._tail=null)):t===this._tail&&(this._tail=t._prev,this._tail._next=null),t._owner=null),this;throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.")},sa.prototype.detachAll=function(){var t=this._head;if(t)for(this._head=this._tail=null;t;)t._owner=null,t=t._next;return this};var ra,na=sa;function sa(){this._head=this._tail=void 0}function oa(t,e){for(var r={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*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},i=r.parser[(e=e||{}).strictMode?"strict":"loose"].exec(t),n={},s=14;s--;)n[r.key[s]]=i[s]||"";return n[r.q.name]={},n[r.key[12]].replace(r.q.parser,function(t,e,i){e&&(n[r.q.name][e]=i)}),n}var aa=null;function la(){}function ha(t,e,i){(e=e&&0===e.indexOf(".")?e.substring(1):e)&&(t[e]=i)}function ua(t){return t.toString().replace("object ","")}function g(t,e,i){if(this._dequeue=la,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 t||"string"!=typeof e)throw new Error("Both name and url are required for constructing a resource.");i=i||{},this._flags=0,this._setFlag(g.STATUS_FLAGS.DATA_URL,0===e.indexOf("data:")),this.name=t,this.url=e,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===i.crossOrigin?"anonymous":i.crossOrigin,this.timeout=i.timeout||0,this.loadType=i.loadType||this._determineLoadType(),this.xhrType=i.xhrType,this.metadata=i.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=g.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=la,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 na,this.onProgress=new na,this.onComplete=new na,this.onAfterMiddleware=new na}function ca(){}J.LoaderResource=(g.setExtensionLoadType=function(t,e){ha(g._loadTypeMap,t,e)},g.setExtensionXhrType=function(t,e){ha(g._xhrTypeMap,t,e)},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(t){if(!this.error){if(this.error=new Error(t),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(t){var e=this;if(!this.isLoading)if(this.isComplete)t&&setTimeout(function(){return t(e)},1);else switch(t&&this.onComplete.once(t),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;(ra=void 0===ra?!(!globalThis.XDomainRequest||"withCredentials"in new XMLHttpRequest):ra)&&this.crossOrigin?this._loadXdr():this._loadXhr()}},g.prototype._hasFlag=function(t){return 0!=(this._flags&t)},g.prototype._setFlag=function(t,e){this._flags=e?this._flags|t:this._flags&~t},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(t){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===t&&void 0!==globalThis.Image?this.data=new Image:this.data=document.createElement(t),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(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===t&&void 0!==globalThis.Audio?this.data=new Audio:this.data=document.createElement(t),null===this.data)this.abort("Unsupported element: "+t);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 e=this.metadata.mimeType,i=0;i<this.url.length;++i)this.data.appendChild(this._createSource(t,this.url[i],Array.isArray(e)?e[i]:e));else{e=this.metadata.mimeType;this.data.appendChild(this._createSource(t,this.url,Array.isArray(e)?e[0]:e))}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 t=this.xhr=new XMLHttpRequest;"use-credentials"===this.crossOrigin&&(t.withCredentials=!0),t.open("GET",this.url,!0),t.timeout=this.timeout,this.xhrType===g.XHR_RESPONSE_TYPE.JSON||this.xhrType===g.XHR_RESPONSE_TYPE.DOCUMENT?t.responseType=g.XHR_RESPONSE_TYPE.TEXT:t.responseType=this.xhrType,t.addEventListener("error",this._boundXhrOnError,!1),t.addEventListener("timeout",this._boundXhrOnTimeout,!1),t.addEventListener("abort",this._boundXhrOnAbort,!1),t.addEventListener("progress",this._boundOnProgress,!1),t.addEventListener("load",this._boundXhrOnLoad,!1),t.send()},g.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new globalThis.XDomainRequest;t.timeout=this.timeout||5e3,t.onerror=this._boundXhrOnError,t.ontimeout=this._boundXhrOnTimeout,t.onprogress=this._boundOnProgress,t.onload=this._boundXhrOnLoad,t.open("GET",this.url,!0),setTimeout(function(){return t.send()},1)},g.prototype._createSource=function(t,e,i){i=i||t+"/"+this._getExtension(e);t=document.createElement("source");return t.src=e,t.type=i,t},g.prototype._onError=function(t){this.abort("Failed to load element using: "+t.target.nodeName)},g.prototype._onProgress=function(t){t&&t.lengthComputable&&this.onProgress.dispatch(this,t.loaded/t.total)},g.prototype._onTimeout=function(){this.abort("Load timed out.")},g.prototype._xhrOnError=function(){var t=this.xhr;this.abort(ua(t)+" Request failed. Status: "+t.status+', text: "'+t.statusText+'"')},g.prototype._xhrOnTimeout=function(){var t=this.xhr;this.abort(ua(t)+" Request timed out.")},g.prototype._xhrOnAbort=function(){var t=this.xhr;this.abort(ua(t)+" Request was aborted by the user.")},g.prototype._xhrOnLoad=function(){var t,e,i=this.xhr,r="",n=void 0===i.status?200:i.status;if(""!==i.responseType&&"text"!==i.responseType&&void 0!==i.responseType||(r=i.responseText),0===n&&(0<r.length||i.responseType===g.XHR_RESPONSE_TYPE.BUFFER)?n=200:1223===n&&(n=204),2!=(n/100|0))this.abort("["+i.status+"] "+i.statusText+": "+i.responseURL);else{if(this.xhrType===g.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=g.TYPE.TEXT;else if(this.xhrType===g.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=g.TYPE.JSON}catch(t){return void this.abort("Error trying to parse loaded json: "+t)}else if(this.xhrType===g.XHR_RESPONSE_TYPE.DOCUMENT)try{globalThis.DOMParser?(t=new DOMParser,this.data=t.parseFromString(r,"text/xml")):((e=document.createElement("div")).innerHTML=r,this.data=e),this.type=g.TYPE.XML}catch(t){return void this.abort("Error trying to parse loaded xml: "+t)}else this.data=i.response||r;this.complete()}},g.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,(aa=aa||document.createElement("a")).href=t;var t=oa(aa.href,{strictMode:!0}),i=!t.port&&""===e.port||t.port===e.port,r=t.protocol?t.protocol+":":"";return t.host===e.hostname&&i&&r===e.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(t){void 0===t&&(t=this.url);var e,i;return(this.isDataUrl?(i=t.indexOf("/"),t.substring(i+1,t.indexOf(";",i))):(i=t.indexOf("?"),e=t.indexOf("#"),i=Math.min(-1<i?i:t.length,-1<e?e:t.length),(t=t.substring(0,i)).substring(t.lastIndexOf(".")+1))).toLowerCase()},g.prototype._getMimeFromXhrType=function(t){switch(t){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),o=J.LoaderResource||(J.LoaderResource={}),(e=o.STATUS_FLAGS||(o.STATUS_FLAGS={}))[e.NONE=0]="NONE",e[e.DATA_URL=1]="DATA_URL",e[e.COMPLETE=2]="COMPLETE",e[e.LOADING=4]="LOADING",(e=o.TYPE||(o.TYPE={}))[e.UNKNOWN=0]="UNKNOWN",e[e.JSON=1]="JSON",e[e.XML=2]="XML",e[e.IMAGE=3]="IMAGE",e[e.AUDIO=4]="AUDIO",e[e.VIDEO=5]="VIDEO",e[e.TEXT=6]="TEXT",(e=o.LOAD_TYPE||(o.LOAD_TYPE={}))[e.XHR=1]="XHR",e[e.IMAGE=2]="IMAGE",e[e.AUDIO=3]="AUDIO",e[e.VIDEO=4]="VIDEO",(e=o.XHR_RESPONSE_TYPE||(o.XHR_RESPONSE_TYPE={})).DEFAULT="text",e.BUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.TEXT="text",o._loadTypeMap={gif:o.LOAD_TYPE.IMAGE,png:o.LOAD_TYPE.IMAGE,bmp:o.LOAD_TYPE.IMAGE,jpg:o.LOAD_TYPE.IMAGE,jpeg:o.LOAD_TYPE.IMAGE,tif:o.LOAD_TYPE.IMAGE,tiff:o.LOAD_TYPE.IMAGE,webp:o.LOAD_TYPE.IMAGE,tga:o.LOAD_TYPE.IMAGE,svg:o.LOAD_TYPE.IMAGE,"svg+xml":o.LOAD_TYPE.IMAGE,mp3:o.LOAD_TYPE.AUDIO,ogg:o.LOAD_TYPE.AUDIO,wav:o.LOAD_TYPE.AUDIO,mp4:o.LOAD_TYPE.VIDEO,webm:o.LOAD_TYPE.VIDEO},o._xhrTypeMap={xhtml:o.XHR_RESPONSE_TYPE.DOCUMENT,html:o.XHR_RESPONSE_TYPE.DOCUMENT,htm:o.XHR_RESPONSE_TYPE.DOCUMENT,xml:o.XHR_RESPONSE_TYPE.DOCUMENT,tmx:o.XHR_RESPONSE_TYPE.DOCUMENT,svg:o.XHR_RESPONSE_TYPE.DOCUMENT,tsx:o.XHR_RESPONSE_TYPE.DOCUMENT,gif:o.XHR_RESPONSE_TYPE.BLOB,png:o.XHR_RESPONSE_TYPE.BLOB,bmp:o.XHR_RESPONSE_TYPE.BLOB,jpg:o.XHR_RESPONSE_TYPE.BLOB,jpeg:o.XHR_RESPONSE_TYPE.BLOB,tif:o.XHR_RESPONSE_TYPE.BLOB,tiff:o.XHR_RESPONSE_TYPE.BLOB,webp:o.XHR_RESPONSE_TYPE.BLOB,tga:o.XHR_RESPONSE_TYPE.BLOB,json:o.XHR_RESPONSE_TYPE.JSON,text:o.XHR_RESPONSE_TYPE.TEXT,txt:o.XHR_RESPONSE_TYPE.TEXT,ttf:o.XHR_RESPONSE_TYPE.BUFFER,otf:o.XHR_RESPONSE_TYPE.BUFFER},o.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var pa=function(t,e){this.data=t,this.callback=e},da=(fa.prototype._next=function(r){var n=this;return function(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];--n.workers,r.callback.apply(r,e),null!=e[0]&&n.error(e[0],r.data),n.workers<=n.concurrency-n.buffer&&n.unsaturated(),n.idle()&&n.drain(),n.process()}},fa.prototype.push=function(t,e){this._insert(t,!1,e)},fa.prototype.kill=function(){this.workers=0,this.drain=ca,this.started=!1,this._tasks=[]},fa.prototype.unshift=function(t,e){this._insert(t,!0,e)},fa.prototype.length=function(){return this._tasks.length},fa.prototype.running=function(){return this.workers},fa.prototype.idle=function(){return this._tasks.length+this.workers===0},fa.prototype.pause=function(){!0!==this.paused&&(this.paused=!0)},fa.prototype.resume=function(){if(!1!==this.paused){this.paused=!1;for(var t=1;t<=this.concurrency;t++)this.process()}},fa.eachSeries=function(i,r,n,s){var o=0,a=i.length;!function t(e){e||o===a?n&&n(e):s?setTimeout(function(){r(i[o++],t)},1):r(i[o++],t)}()},fa.queue=function(t,e){return new fa(t,e)},fa);function fa(t,e){var r=this;if(void 0===e&&(e=1),this.workers=0,this.saturated=ca,this.unsaturated=ca,this.empty=ca,this.drain=ca,this.error=ca,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(t,e,i){if(i&&"function"!=typeof i)throw new Error("task callback must be a function");r.started=!0,null==t&&r.idle()?setTimeout(function(){return r.drain()},1):(t=new pa(t,"function"==typeof i?i:ca),e?r._tasks.unshift(t):r._tasks.push(t),setTimeout(r.process,1))},this.process=function(){for(;!r.paused&&r.workers<r.concurrency&&r._tasks.length;){var t=r._tasks.shift();0===r._tasks.length&&r.empty(),r.workers+=1,r.workers===r.concurrency&&r.saturated(),r._worker(t.data,function(n){return function(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];if(null===n)throw new Error("Callback was already called.");var r=n;n=null,r.apply(this,e)}}(r._next(t)))}},this._worker=t,0===e)throw new Error("Concurrency must not be zero");this.concurrency=e,this.buffer=e/4}var ma=/(#[\w-]+)?$/,_a=(ga.prototype._add=function(t,e,i,r){if(this.loading&&(!i||!i.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[t])throw new Error('Resource named "'+t+'" already exists.');if(e=this._prepareUrl(e),this.resources[t]=new J.LoaderResource(t,e,i),"function"==typeof r&&this.resources[t].onAfterMiddleware.once(r),this.loading){for(var n=i.parentResource,s=[],o=0;o<n.children.length;++o)n.children[o].isComplete||s.push(n.children[o]);var a=n.progressChunk*(s.length+1)/(s.length+2);n.children.push(this.resources[t]),n.progressChunk=a;for(o=0;o<s.length;++o)s[o].progressChunk=a;this.resources[t].progressChunk=a}return this._queue.push(this.resources[t]),this},ga.prototype.pre=function(t){return this._beforeMiddleware.push(t),this},ga.prototype.use=function(t){return this._afterMiddleware.push(t),this},ga.prototype.reset=function(){for(var t in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){t=this.resources[t];t._onLoadBinding&&t._onLoadBinding.detach(),t.isLoading&&t.abort("loader reset")}return this.resources={},this},ga.prototype.load=function(t){if(ke("6.5.0","@pixi/loaders is being replaced with @pixi/assets in the next major release."),"function"==typeof t&&this.onComplete.once(t),!this.loading)if(this._queue.idle())this._onStart(),this._onComplete();else{for(var e=100/this._queue._tasks.length,i=0;i<this._queue._tasks.length;++i)this._queue._tasks[i].data.progressChunk=e;this._onStart(),this._queue.resume()}return this},Object.defineProperty(ga.prototype,"concurrency",{get:function(){return this._queue.concurrency},set:function(t){this._queue.concurrency=t},enumerable:!1,configurable:!0}),ga.prototype._prepareUrl=function(t){var e=oa(t,{strictMode:!0});return e=e.protocol||!e.path||0===t.indexOf("//")?t:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==t.charAt(0)?this.baseUrl+"/"+t:this.baseUrl+t,this.defaultQueryString&&(t=ma.exec(e)[0],-1!==(e=e.slice(0,e.length-t.length)).indexOf("?")?e+="&"+this.defaultQueryString:e+="?"+this.defaultQueryString,e+=t),e},ga.prototype._loadResource=function(i,t){var r=this;i._dequeue=t,da.eachSeries(this._beforeMiddleware,function(t,e){t.call(r,i,function(){e(i.isComplete?{}:null)})},function(){i.isComplete?r._onLoad(i):(i._onLoadBinding=i.onComplete.once(r._onLoad,r),i.load())},!0)},ga.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},ga.prototype._onComplete=function(){this.progress=100,this.loading=!1,this.onComplete.dispatch(this,this.resources)},ga.prototype._onLoad=function(i){var r=this;i._onLoadBinding=null,this._resourcesParsing.push(i),i._dequeue(),da.eachSeries(this._afterMiddleware,function(t,e){t.call(r,i,e)},function(){i.onAfterMiddleware.dispatch(i),r.progress=Math.min(100,r.progress+i.progressChunk),r.onProgress.dispatch(r,i),i.error?r.onError.dispatch(i.error,r,i):r.onLoad.dispatch(r,i),r._resourcesParsing.splice(r._resourcesParsing.indexOf(i),1),r._queue.idle()&&0===r._resourcesParsing.length&&r._onComplete()},!0)},ga.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(ga,"shared",{get:function(){var t=ga._shared;return t||((t=new ga)._protected=!0,ga._shared=t),t},enumerable:!1,configurable:!0}),ga.registerPlugin=function(t){return ke("6.5.0","Loader.registerPlugin() is deprecated, use extensions.add() instead."),ji.add({type:J.ExtensionType.Loader,ref:t}),ga},ga._plugins=[],ga);function ga(t,e){var i=this;void 0===t&&(t=""),void 0===e&&(e=10),this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(t,e){return i._loadResource(t,e)},this.resources={},this.baseUrl=t,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(t,e){return i._loadResource(t,e)},this._queue=da.queue(this._boundLoadResource,e),this._queue.pause(),this.resources={},this.onProgress=new na,this.onError=new na,this.onLoad=new na,this.onStart=new na,this.onComplete=new na;for(var r=0;r<ga._plugins.length;++r){var n=ga._plugins[r],s=n.pre,n=n.use;s&&this.pre(s),n&&this.use(n)}this._protected=!1}ji.handleByList(J.ExtensionType.Loader,_a._plugins),_a.prototype.add=function(t,e,i,r){if(Array.isArray(t)){for(var n=0;n<t.length;++n)this.add(t[n]);return this}if("object"==typeof t&&(i=t,r=e||i.callback||i.onComplete,e=i.url,t=i.name||i.key||i.url),"string"!=typeof e&&(r=i,i=e,e=t),"string"!=typeof e)throw new Error("No url passed to add resource to loader.");return"function"==typeof i&&(r=i,i=null),this._add(t,e,i,r)};va.init=function(t){t=Object.assign({sharedLoader:!1},t),this.loader=t.sharedLoader?_a.shared:new _a},va.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},va.extension=J.ExtensionType.Application;it=va;function va(){}ya.add=function(){J.LoaderResource.setExtensionLoadType("svg",J.LoaderResource.LOAD_TYPE.XHR),J.LoaderResource.setExtensionXhrType("svg",J.LoaderResource.XHR_RESPONSE_TYPE.TEXT)},ya.use=function(e,i){var t,r,n,s;!e.data||e.type!==J.LoaderResource.TYPE.IMAGE&&"svg"!==e.extension?i():(t=e.data,r=e.url,n=e.name,s=e.metadata,et.fromLoader(t,r,n,s).then(function(t){e.texture=t,i()}).catch(i))},ya.extension=J.ExtensionType.Loader;st=ya;function ya(){}var ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function xa(t,e){if(t.data&&(t.xhr&&t.xhrType===J.LoaderResource.XHR_RESPONSE_TYPE.BLOB))if(self.Blob&&"string"!=typeof t.data){var i,r;if(0===t.data.type.indexOf("image"))return i=globalThis.URL||globalThis.webkitURL,r=i.createObjectURL(t.data),t.blob=t.data,t.data=new Image,t.data.src=r,t.type=J.LoaderResource.TYPE.IMAGE,void(t.data.onload=function(){i.revokeObjectURL(r),t.data.onload=null,e()})}else{var n=t.xhr.getResponseHeader("content-type");if(n&&0===n.indexOf("image"))return t.data=new Image,t.data.src="data:"+n+";base64,"+function(t){for(var e="",i=0;i<t.length;){for(var r=[0,0,0],n=[0,0,0,0],s=0;s<r.length;++s)i<t.length?r[s]=255&t.charCodeAt(i++):r[s]=0;switch(n[0]=r[0]>>2,n[1]=(3&r[0])<<4|r[1]>>4,n[2]=(15&r[1])<<2|r[2]>>6,n[3]=63&r[2],i-(t.length-1)){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64}for(s=0;s<n.length;++s)e+=ba.charAt(n[s])}return e}(t.xhr.responseText),t.type=J.LoaderResource.TYPE.IMAGE,void(t.data.onload=function(){t.data.onload=null,e()})}e()}function Ta(){}Ta.extension=J.ExtensionType.Loader,Ta.use=xa,ji.add(st,Ta),J.INTERNAL_FORMATS=void 0,(e=J.INTERNAL_FORMATS||(J.INTERNAL_FORMATS={}))[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL";(o={})[J.INTERNAL_FORMATS.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,o[J.INTERNAL_FORMATS.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,o[J.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,o[J.INTERNAL_FORMATS.COMPRESSED_R11_EAC]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_SIGNED_R11_EAC]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RG11_EAC]=1,o[J.INTERNAL_FORMATS.COMPRESSED_SIGNED_RG11_EAC]=1,o[J.INTERNAL_FORMATS.COMPRESSED_RGB8_ETC2]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA8_ETC2_EAC]=1,o[J.INTERNAL_FORMATS.COMPRESSED_SRGB8_ETC2]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,o[J.INTERNAL_FORMATS.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,o[J.INTERNAL_FORMATS.COMPRESSED_RGB_ETC1_WEBGL]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGB_ATC_WEBGL]=.5,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,o[J.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1;var wa=o,Ea=function(t,e){return(Ea=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function Sa(t,e){function i(){this.constructor=t}Ea(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function Aa(t,o,a,l){return new(a=a||Promise)(function(i,e){function r(t){try{s(l.next(t))}catch(t){e(t)}}function n(t){try{s(l.throw(t))}catch(t){e(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(r,n)}s((l=l.apply(t,o||[])).next())})}function Oa(r,n){var s,o,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(i){return function(t){var e=[i,t];if(s)throw new TypeError("Generator is already executing.");for(;l;)try{if(s=1,o&&(a=2&e[0]?o.return:e[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,o=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))l.label=e[1];else if(6===e[0]&&l.label<a[1])l.label=a[1],a=e;else{if(!(a&&l.label<a[2])){a[2]&&l.ops.pop(),l.trys.pop();continue}l.label=a[2],l.ops.push(e)}}e=n.call(r,l)}catch(t){e=[6,t],o=0}finally{s=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}}Sa(Ra,Pa=er),Ra.prototype.onBlobLoaded=function(t){},Ra.prototype.load=function(){return Aa(this,void 0,Promise,function(){var e;return Oa(this,function(t){switch(t.label){case 0:return[4,fetch(this.origin)];case 1:return[4,t.sent().blob()];case 2:return[4,t.sent().arrayBuffer()];case 3:return e=t.sent(),this.data=new Uint32Array(e),this.buffer=new xo(e),this.loaded=!0,this.onBlobLoaded(e),this.update(),[2,this]}})})};var Pa,e=Ra;function Ra(t,e){void 0===e&&(e={width:1,height:1,autoLoad:!0});var i,r=this,t="string"==typeof t?(i=t,new Uint8Array):(i=null,t);return(r=Pa.call(this,t,e)||this).origin=i,r.buffer=t?new xo(t):null,r.origin&&!1!==e.autoLoad&&r.load(),t&&t.length&&(r.loaded=!0,r.onBlobLoaded(r.buffer.rawBinaryData)),r}Sa(ka,Ca=e),ka.prototype.upload=function(t,e,i){var r=t.gl;if(!t.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,s=this.levels;n<s;n++){var o=this._levelBuffers[n],a=o.levelID,l=o.levelWidth,h=o.levelHeight,o=o.levelBuffer;r.compressedTexImage2D(r.TEXTURE_2D,a,this.format,l,h,0,o)}return!0},ka.prototype.onBlobLoaded=function(){this._levelBuffers=ka._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},ka._formatToExtension=function(t){if(33776<=t&&t<=33779)return"s3tc";if(37488<=t&&t<=37497)return"etc";if(35840<=t&&t<=35843)return"pvrtc";if(36196<=t)return"etc1";if(35986<=t&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},ka._createLevelBuffers=function(t,e,i,r,n,s,o){for(var a=new Array(i),l=t.byteOffset,h=s,u=o,c=h+r-1&~(r-1),p=u+n-1&~(n-1),d=c*p*wa[e],f=0;f<i;f++)a[f]={levelID:f,levelWidth:1<i?h:c,levelHeight:1<i?u:p,levelBuffer:new Uint8Array(t.buffer,l,d)},l+=d,d=(c=(h=h>>1||1)+r-1&~(r-1))*(p=(u=u>>1||1)+n-1&~(n-1))*wa[e];return a};var Ca,Ma=ka;function ka(t,e){var i=Ca.call(this,t,e)||this;return i.format=e.format,i.levels=e.levels||1,i._width=e.width,i._height=e.height,i._extension=ka._formatToExtension(i.format),(e.levelBuffers||i.buffer)&&(i._levelBuffers=e.levelBuffers||ka._createLevelBuffers(t instanceof Uint8Array?t:i.buffer.uint8View,i.format,i.levels,4,4,i.width,i.height)),i}Ia.use=function(i,r){var t=i.data;if(i.type===J.LoaderResource.TYPE.JSON&&t&&t.cacheID&&t.textures){for(var e,n,s=t.textures,o=void 0,a=void 0,l=0,h=s.length;l<h;l++){var u=s[l],c=u.src,u=u.format;if(u||(a=c),Ia.textureFormats[u]){o=c;break}}(o=o||a)?o===i.url?r(new Error("URL of compressed texture cannot be the same as the manifest's URL")):(e={crossOrigin:i.crossOrigin,metadata:i.metadata.imageMetadata,parentResource:i},n=ne.resolve(i.url.replace(this.baseUrl,""),o),t=t.cacheID,this.add(t,n,e,function(t){var e;t.error?r(t.error):(e=t.texture,t=t.textures,Object.assign(i,{texture:void 0===e?null:e,textures:void 0===t?{}:t}),r())})):r(new Error("Cannot load compressed-textures in "+i.url+", make sure you provide a fallback"))}else r()},Object.defineProperty(Ia,"textureExtensions",{get:function(){if(!Ia._textureExtensions){var t=C.ADAPTER.createCanvas().getContext("webgl");if(!t)return console.warn("WebGL not available for compressed textures. Silently failing."),{};t={s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};Ia._textureExtensions=t}return Ia._textureExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(Ia,"textureFormats",{get:function(){if(!Ia._textureFormats){var t,e=Ia.textureExtensions;for(t in Ia._textureFormats={},e){var i=e[t];i&&Object.assign(Ia._textureFormats,Object.getPrototypeOf(i))}}return Ia._textureFormats},enumerable:!1,configurable:!0}),Ia.extension=J.ExtensionType.Loader;o=Ia;function Ia(){}function Da(n,t,e){var s={textures:{},texture:null};return t&&t.map(function(t){return new et(new M(t,Object.assign({mipmap:J.MIPMAP_MODES.OFF,alphaMode:J.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA},e)))}).forEach(function(t,e){var i=t.baseTexture,r=n+"-"+(e+1);M.addToCache(i,r),et.addToCache(t,r),0===e&&(M.addToCache(i,n),et.addToCache(t,n),s.texture=t),s.textures[r]=t}),s}var Fa,La=3,Na=4,za=7,Ba=19,Ua=2,ja=0,Ga=1,Xa=2,Ha=3,Ya=((v=pl=pl||{})[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=Fa=Fa||{})[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]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[861165636]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[894720068]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v),Wa=((v={})[pl.DXGI_FORMAT_BC1_TYPELESS]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[pl.DXGI_FORMAT_BC1_UNORM]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[pl.DXGI_FORMAT_BC2_TYPELESS]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[pl.DXGI_FORMAT_BC2_UNORM]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[pl.DXGI_FORMAT_BC3_TYPELESS]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v[pl.DXGI_FORMAT_BC3_UNORM]=J.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v[pl.DXGI_FORMAT_BC1_UNORM_SRGB]=J.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,v[pl.DXGI_FORMAT_BC2_UNORM_SRGB]=J.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,v[pl.DXGI_FORMAT_BC3_UNORM_SRGB]=J.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,v);function Va(t){var e=new Uint32Array(t);if(542327876!==e[0])throw new Error("Invalid DDS file magic word");var i=new Uint32Array(t,0,124/Uint32Array.BYTES_PER_ELEMENT),r=i[La],n=i[Na],s=i[za],i=new Uint32Array(t,Ba*Uint32Array.BYTES_PER_ELEMENT,32/Uint32Array.BYTES_PER_ELEMENT),o=i[1];if(4&o){i=i[Ua];if(808540228!==i)return i=Ya[i],a=new Uint8Array(t,128),[new Ma(a,{format:i,width:n,height:r,levels:s})];var a=new Uint32Array(e.buffer,128,20/Uint32Array.BYTES_PER_ELEMENT),i=a[ja],e=a[Ga],l=a[Xa],h=a[Ha],u=Wa[i];if(void 0===u)throw new Error("DDSParser cannot parse texture data with DXGI format "+i);if(4===l)throw new Error("DDSParser does not support cubemap textures");if(e===Fa.DDS_DIMENSION_TEXTURE3D)throw new Error("DDSParser does not supported 3D texture data");var c=new Array;if(1===h)c.push(new Uint8Array(t,148));else{for(var p=wa[u],d=0,f=n,m=r,_=0;_<s;_++)d+=Math.max(1,f+3&-4)*Math.max(1,m+3&-4)*p,f>>>=1,m>>>=1;for(var g=148,_=0;_<h;_++)c.push(new Uint8Array(t,g,d)),g+=d}return c.map(function(t){return new Ma(t,{format:u,width:n,height:r,levels:s})})}if(64&o)throw new Error("DDSParser does not support uncompressed texture data.");if(512&o)throw new Error("DDSParser does not supported YUV uncompressed texture data.");if(131072&o)throw new Error("DDSParser does not support single-channel (lumninance) texture data!");if(2&o)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 qa=[171,75,84,88,32,49,49,187,13,10,26,10],Ka=12,Za=16,Qa=24,$a=28,Ja=36,tl=40,el=44,il=48,rl=52,nl=56,sl=60,ol=64,al=((pl={})[J.TYPES.UNSIGNED_BYTE]=1,pl[J.TYPES.UNSIGNED_SHORT]=2,pl[J.TYPES.INT]=4,pl[J.TYPES.UNSIGNED_INT]=4,pl[J.TYPES.FLOAT]=4,pl[J.TYPES.HALF_FLOAT]=8,pl),ll=((v={})[J.FORMATS.RGBA]=4,v[J.FORMATS.RGB]=3,v[J.FORMATS.RG]=2,v[J.FORMATS.RED]=1,v[J.FORMATS.LUMINANCE]=1,v[J.FORMATS.LUMINANCE_ALPHA]=2,v[J.FORMATS.ALPHA]=1,v),hl=((pl={})[J.TYPES.UNSIGNED_SHORT_4_4_4_4]=2,pl[J.TYPES.UNSIGNED_SHORT_5_5_5_1]=2,pl[J.TYPES.UNSIGNED_SHORT_5_6_5]=2,pl);function ul(t,e,i){void 0===i&&(i=!1);var r=new DataView(e);if(!function(t,e){for(var i=0;i<qa.length;i++)if(e.getUint8(i)!==qa[i])return void console.error(t+" is not a valid *.ktx file!");return 1}(t,r))return null;var n=67305985===r.getUint32(Ka,!0),s=r.getUint32(Za,n),o=r.getUint32(Qa,n),a=r.getUint32($a,n),l=r.getUint32(Ja,n),h=r.getUint32(tl,n)||1,t=r.getUint32(el,n)||1,u=r.getUint32(il,n)||1,c=r.getUint32(rl,n),p=r.getUint32(nl,n),d=r.getUint32(sl,n);if(0===h||1!==t)throw new Error("Only 2D textures are supported");if(1!==c)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(1!==u)throw new Error("WebGL does not support array textures");var t=l+3&-4,c=h+3&-4,f=new Array(u),m=0===s?t*c:l*h,_=0!==s?al[s]?al[s]*ll[o]:hl[s]:wa[a];if(void 0===_)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var i=i?function(t,e,i){var r=new Map,n=0;for(;n<e;){var s=t.getUint32(ol+n,i),o=ol+n+4,a=3-(s+3)%4;if(0===s||e-n<s){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var l=0;l<s&&0!==t.getUint8(o+l);l++);if(-1===l){console.error("KTXLoader: Failed to find null byte terminating kvData key");break}var h=(new TextDecoder).decode(new Uint8Array(t.buffer,o,l)),u=new DataView(t.buffer,o+l+1,s-l-1);r.set(h,u),n+=4+s+a}return r}(r,d,n):null,g=m*_,v=l,y=h,b=t,x=c,T=ol+d,w=0;w<p;w++){for(var E=r.getUint32(T,n),S=T+4,A=0;A<u;A++)(f[A]||(f[A]=new Array(p)))[w]={levelID:w,levelWidth:1<p||0!==s?v:b,levelHeight:1<p||0!==s?y:x,levelBuffer:new Uint8Array(e,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!==s?{uncompressed:f.map(function(t){var e=t[0].levelBuffer,i=!1;return s===J.TYPES.FLOAT?e=new Float32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4):s===J.TYPES.UNSIGNED_INT?(i=!0,e=new Uint32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4)):s===J.TYPES.INT&&(i=!0,e=new Int32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4)),{resource:new er(e,{width:t[0].levelWidth,height:t[0].levelHeight}),type:s,format:i?function(t){switch(t){case J.FORMATS.RGBA:return J.FORMATS.RGBA_INTEGER;case J.FORMATS.RGB:return J.FORMATS.RGB_INTEGER;case J.FORMATS.RG:return J.FORMATS.RG_INTEGER;case J.FORMATS.RED:return J.FORMATS.RED_INTEGER;default:return t}}(o):o}}),kvData:i}:{compressed:f.map(function(t){return new Ma(null,{format:a,width:l,height:h,levels:p,levelBuffers:t})}),kvData:i}}J.LoaderResource.setExtensionXhrType("dds",J.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);cl.use=function(t,e){if("dds"===t.extension&&t.data)try{Object.assign(t,Da(t.name||t.url,Va(t.data),t.metadata))}catch(t){return void e(t)}e()},cl.extension=J.ExtensionType.Loader;var v=cl;function cl(){}J.LoaderResource.setExtensionXhrType("ktx",J.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);dl.use=function(t,e){if("ktx"===t.extension&&t.data)try{var r,n=t.name||t.url,i=ul(n,t.data,this.loadKeyValueData),s=i.compressed,o=i.uncompressed,a=i.kvData;if(s){var l=Da(n,s,t.metadata);if(a&&l.textures)for(var h in l.textures)l.textures[h].baseTexture.ktxKeyValueData=a;Object.assign(t,l)}else o&&(r={},o.forEach(function(t,e){var t=new et(new M(t.resource,{mipmap:J.MIPMAP_MODES.OFF,alphaMode:J.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA,type:t.type,format:t.format})),i=n+"-"+(e+1);a&&(t.baseTexture.ktxKeyValueData=a),M.addToCache(t.baseTexture,i),et.addToCache(t,i),0===e&&(r[n]=t,M.addToCache(t.baseTexture,n),et.addToCache(t,n)),r[i]=t}),Object.assign(t,{textures:r}))}catch(t){return void e(t)}e()},dl.extension=J.ExtensionType.Loader,dl.loadKeyValueData=!1;var pl=dl;function dl(){}var fl=function(t,e){return(fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function ml(t,e){function i(){this.constructor=t}fl(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}ml(vl,_l=zi),vl.prototype.setProperties=function(t){t&&(this._properties[0]="vertices"in t||"scale"in t?!!t.vertices||!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="tint"in t||"alpha"in t?!!t.tint||!!t.alpha:this._properties[4])},vl.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(vl.prototype,"tint",{get:function(){return this._tint},set:function(t){de(this._tint=t,this.tintRgb)},enumerable:!1,configurable:!0}),vl.prototype.render=function(t){var e=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 e.onChildrenChange(0)})),t.batch.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},vl.prototype.onChildrenChange=function(t){for(var e=Math.floor(t/this._batchSize);this._bufferUpdateIDs.length<e;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[e]=++this._updateID},vl.prototype.dispose=function(){if(this._buffers){for(var t=0;t<this._buffers.length;++t)this._buffers[t].destroy();this._buffers=null}},vl.prototype.destroy=function(t){_l.prototype.destroy.call(this,t),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null};var _l,gl=vl;function vl(t,e,i,r){void 0===t&&(t=1500),void 0===i&&(i=16384),void 0===r&&(r=!1);var n=_l.call(this)||this;return 16384<i&&(i=16384),n._properties=[!1,!0,!1,!1,!1],n._maxSize=t,n._batchSize=i,n._buffers=null,n._bufferUpdateIDs=[],n._updateID=0,n.interactiveChildren=!1,n.blendMode=J.BLEND_MODES.NORMAL,n.autoResize=r,n.roundPixels=!0,n.baseTexture=null,n.setProperties(e),n._tint=0,n.tintRgb=new Float32Array(4),n.tint=16777215,n}bl.prototype.initBuffers=function(){var t=this.geometry,e=0;this.indexBuffer=new Kr(xe(this.size),!0,!0),t.addIndex(this.indexBuffer);for(var i=this.dynamicStride=0;i<this.dynamicProperties.length;++i)(s=this.dynamicProperties[i]).offset=e,e+=s.size,this.dynamicStride+=s.size;for(var r=new ArrayBuffer(this.size*this.dynamicStride*4*4),n=(this.dynamicData=new Float32Array(r),this.dynamicDataUint32=new Uint32Array(r),this.dynamicBuffer=new Kr(this.dynamicData,!1,!1),0),i=this.staticStride=0;i<this.staticProperties.length;++i)(s=this.staticProperties[i]).offset=n,n+=s.size,this.staticStride+=s.size;r=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(r),this.staticDataUint32=new Uint32Array(r),this.staticBuffer=new Kr(this.staticData,!0,!1);for(i=0;i<this.dynamicProperties.length;++i){var s=this.dynamicProperties[i];t.addAttribute(s.attributeName,this.dynamicBuffer,0,s.type===J.TYPES.UNSIGNED_BYTE,s.type,4*this.dynamicStride,4*s.offset)}for(i=0;i<this.staticProperties.length;++i){s=this.staticProperties[i];t.addAttribute(s.attributeName,this.staticBuffer,0,s.type===J.TYPES.UNSIGNED_BYTE,s.type,4*this.staticStride,4*s.offset)}},bl.prototype.uploadDynamic=function(t,e,i){for(var r=0;r<this.dynamicProperties.length;r++){var n=this.dynamicProperties[r];n.uploadFunction(t,e,i,n.type===J.TYPES.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer._updateID++},bl.prototype.uploadStatic=function(t,e,i){for(var r=0;r<this.staticProperties.length;r++){var n=this.staticProperties[r];n.uploadFunction(t,e,i,n.type===J.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(t,e,i){this.geometry=new en,this.indexBuffer=null,this.size=i,this.dynamicProperties=[],this.staticProperties=[];for(var r=0;r<t.length;++r){var n={attributeName:(n=t[r]).attributeName,size:n.size,uploadFunction:n.uploadFunction,type:n.type||J.TYPES.FLOAT,offset:n.offset};(e[r]?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(t){var e=t.children,i=t._maxSize,r=t._batchSize,n=this.renderer,s=e.length;if(0!==s){i<s&&!t.autoResize&&(s=i);for(var o=(o=t._buffers)||(t._buffers=this.generateBuffers(t)),i=e[0]._texture.baseTexture,a=0<i.alphaMode,l=(this.state.blendMode=ge(t.blendMode,a),n.state.set(this.state),n.gl),h=t.worldTransform.copyTo(this.tempMatrix),u=(h.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=ve(t.tintRgb,t.worldAlpha,this.shader.uniforms.uColor,a),this.shader.uniforms.uSampler=i,this.renderer.shader.bind(this.shader),!1),c=0,p=0;c<s;c+=r,p+=1){var d=s-c,f=(r<d&&(d=r),p>=o.length&&o.push(this._generateOneMoreBuffer(t)),o[p]),m=(f.uploadDynamic(e,c,d),t._bufferUpdateIDs[p]||0);(u=u||f._updateID<m)&&(f._updateID=t._updateID,f.uploadStatic(e,c,d)),n.geometry.bind(f.geometry),l.drawElements(l.TRIANGLES,6*d,l.UNSIGNED_SHORT,0)}}},wl.prototype.generateBuffers=function(t){for(var e=[],i=t._maxSize,r=t._batchSize,n=t._properties,s=0;s<i;s+=r)e.push(new yl(this.properties,n,r));return e},wl.prototype._generateOneMoreBuffer=function(t){var e=t._batchSize,t=t._properties;return new yl(this.properties,t,e)},wl.prototype.uploadVertices=function(t,e,i,r,n,s){for(var o=0,a=0,l=0,h=0,u=0;u<i;++u){var c=t[e+u],p=c._texture,d=c.scale.x,f=c.scale.y,m=p.trim,p=p.orig;m?(o=(a=m.x-c.anchor.x*p.width)+m.width,l=(h=m.y-c.anchor.y*p.height)+m.height):(o=p.width*(1-c.anchor.x),a=p.width*-c.anchor.x,l=p.height*(1-c.anchor.y),h=p.height*-c.anchor.y),r[s]=a*d,r[s+1]=h*f,r[s+n]=o*d,r[s+n+1]=h*f,r[s+2*n]=o*d,r[s+2*n+1]=l*f,r[s+3*n]=a*d,r[s+3*n+1]=l*f,s+=4*n}},wl.prototype.uploadPosition=function(t,e,i,r,n,s){for(var o=0;o<i;o++){var a=t[e+o].position;r[s]=a.x,r[s+1]=a.y,r[s+n]=a.x,r[s+n+1]=a.y,r[s+2*n]=a.x,r[s+2*n+1]=a.y,r[s+3*n]=a.x,r[s+3*n+1]=a.y,s+=4*n}},wl.prototype.uploadRotation=function(t,e,i,r,n,s){for(var o=0;o<i;o++){var a=t[e+o].rotation;r[s]=a,r[s+n]=a,r[s+2*n]=a,r[s+3*n]=a,s+=4*n}},wl.prototype.uploadUvs=function(t,e,i,r,n,s){for(var o=0;o<i;++o){var a=t[e+o]._texture._uvs;a?(r[s]=a.x0,r[s+1]=a.y0,r[s+n]=a.x1,r[s+n+1]=a.y1,r[s+2*n]=a.x2,r[s+2*n+1]=a.y2,r[s+3*n]=a.x3,r[s+3*n+1]=a.y3):(r[s]=0,r[s+1]=0,r[s+n]=0,r[s+n+1]=0,r[s+2*n]=0,r[s+2*n+1]=0,r[s+3*n]=0,r[s+3*n+1]=0),s+=4*n}},wl.prototype.uploadTint=function(t,e,i,r,n,s){for(var o=0;o<i;++o){var a=t[e+o],l=0<a._texture.baseTexture.alphaMode,h=a.alpha,l=h<1&&l?ye(a._tintRGB,h):a._tintRGB+(255*h<<24);r[s]=l,r[s+n]=l,r[s+2*n]=l,r[s+3*n]=l,s+=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:J.ExtensionType.RendererPlugin};var xl,Tl=wl;function wl(t){t=xl.call(this,t)||this;return t.shader=null,t.properties=null,t.tempMatrix=new oi,t.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:t.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:t.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:t.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:t.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:J.TYPES.UNSIGNED_BYTE,uploadFunction:t.uploadTint,offset:0}],t.shader=ss.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}",{}),t.state=as.for2d(),t}J.LINE_JOIN=void 0,(kl=J.LINE_JOIN||(J.LINE_JOIN={})).MITER="miter",kl.BEVEL="bevel",kl.ROUND="round",J.LINE_CAP=void 0,(kl=J.LINE_CAP||(J.LINE_CAP={})).BUTT="butt",kl.ROUND="round",kl.SQUARE="square";var El={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){return void 0===e&&(e=20),this.adaptive&&t&&!isNaN(t)?((t=Math.ceil(t/this.maxLength))<this.minSegments?t=this.minSegments:t>this.maxSegments&&(t=this.maxSegments),t):e}},Sl=(Al.prototype.clone=function(){var t=new Al;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},Al.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=et.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=et.WHITE,this.matrix=null,this.visible=!1,this.reset()}var Ol=function(t,e){return(Ol=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function Pl(t,e){function i(){this.constructor=t}Ol(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function Rl(t,e){void 0===e&&(e=!1);var i=t.length;if(!(i<6)){for(var r=0,n=0,s=t[i-2],o=t[i-1];n<i;n+=2){var a=t[n],l=t[n+1];r+=(a-s)*(l+o),s=a,o=l}if(!e&&0<r||e&&r<=0)for(e=i/2,n=e+e%2;n<i;n+=2){var h=i-n-2,u=i-n-1,c=n,p=n+1,d=[t[c],t[h]];t[h]=d[0],t[c]=d[1],h=[t[p],t[u]],t[u]=h[0],t[p]=h[1]}}}var Cl={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var i=t.points,r=t.holes,n=e.points,s=e.indices;if(6<=i.length){Rl(i,!1);for(var o=[],a=0;a<r.length;a++){var l=r[a];Rl(l.points,!0),o.push(i.length/2),i=i.concat(l.points)}var h=dt(i,o,2);if(h){for(var u=n.length/2,a=0;a<h.length;a+=3)s.push(h[a]+u),s.push(h[a+1]+u),s.push(h[a+2]+u);for(a=0;a<i.length;a++)n.push(i[a])}}}},Ml={build:function(t){var e,i,r,n,s,o,a,l=t.points;if(t.type===J.SHAPES.CIRC?(r=(u=t.shape).x,n=u.y,s=i=u.radius,o=e=0):t.type===J.SHAPES.ELIP?(r=(u=t.shape).x,n=u.y,s=u.width,i=u.height,o=e=0):(t=(u=t.shape).width/2,a=u.height/2,r=u.x+t,n=u.y+a,o=t-(s=i=Math.max(0,Math.min(u.radius,Math.min(t,a)))),e=a-i),0<=s&&0<=i&&0<=o&&0<=e){var h=Math.ceil(2.3*Math.sqrt(s+i)),u=8*h+(o?4:0)+(e?4:0);if(0!=(l.length=u))if(0===h)l.length=8,l[0]=l[6]=r+o,l[1]=l[3]=n+e,l[2]=l[4]=r-o,l[5]=l[7]=n-e;else{var c=0,p=4*h+(o?2:0)+2,d=p,f=u,m=r+(x=o+s),_=r-x,g=n+(T=e);l[c++]=m,l[c++]=g,l[--p]=g,l[--p]=_,e&&(b=n-T,l[d++]=_,l[d++]=b,l[--f]=b,l[--f]=m);for(var v=1;v<h;v++){var y=Math.PI/2*(v/h),m=r+(x=o+Math.cos(y)*s),_=r-x,g=n+(T=e+Math.sin(y)*i),b=n-T;l[c++]=m,l[c++]=g,l[--p]=g,l[--p]=_,l[d++]=_,l[d++]=b,l[--f]=b,l[--f]=m}var x,T,m=r+(x=o),_=r-x,g=n+(T=e+i),b=n-T;l[c++]=m,l[c++]=g,l[--f]=b,l[--f]=m,o&&(l[c++]=_,l[c++]=g,l[--f]=b,l[--f]=_)}}else l.length=0},triangulate:function(t,e){var i=t.points,r=e.points,n=e.indices;if(0!==i.length){var s,o=r.length/2,a=o,l=(e=t.type!==J.SHAPES.RREC?(s=(e=t.shape).x,e.y):(s=(e=t.shape).x+e.width/2,e.y+e.height/2),t.matrix);r.push(t.matrix?l.a*s+l.c*e+l.tx:s,t.matrix?l.b*s+l.d*e+l.ty:e),o++,r.push(i[0],i[1]);for(var h=2;h<i.length;h+=2)r.push(i[h],i[h+1]),n.push(o++,a,o);n.push(a+1,a,o)}}},kl={build:function(t){var e=t.shape,i=e.x,r=e.y,n=e.width,e=e.height,t=t.points;t.length=0,t.push(i,r,i+n,r,i+n,r+e,i,r+e)},triangulate:function(t,e){var t=t.points,i=e.points,r=i.length/2;i.push(t[0],t[1],t[2],t[3],t[6],t[7],t[4],t[5]),e.indices.push(r,1+r,2+r,1+r,2+r,3+r)}};function Il(t,e,i){return t+(e-t)*i}function Dl(t,e,i,r,n,s,o){for(var a,l,h,u,c,p=o=void 0===o?[]:o,d=0;d<=20;++d)h=Il(t,i,c=d/20),a=Il(e,r,c),u=Il(i,n,c),l=Il(r,s,c),h=Il(h,u,c),u=Il(a,l,c),0===d&&p[p.length-2]===h&&p[p.length-1]===u||p.push(h,u)}var Fl={build:function(t){var e,i,r,n,s;ah.nextRoundedRectBehavior?Ml.build(t):(s=t.shape,t=t.points,e=s.x,i=s.y,r=s.width,n=s.height,s=Math.max(0,Math.min(s.radius,Math.min(r,n)/2)),t.length=0,s?(Dl(e,i+s,e,i,e+s,i,t),Dl(e+r-s,i,e+r,i,e+r,i+s,t),Dl(e+r,i+n-s,e+r,i+n,e+r-s,i+n,t),Dl(e+s,i+n,e,i+n,e,i+n-s,t)):t.push(e,i,e+r,i,e+r,i+n,e,i+n))},triangulate:function(t,e){if(ah.nextRoundedRectBehavior)Ml.triangulate(t,e);else{for(var i=t.points,r=e.points,n=e.indices,s=r.length/2,o=dt(i,null,2),a=0,l=o.length;a<l;a+=3)n.push(o[a]+s),n.push(o[a+1]+s),n.push(o[a+2]+s);for(a=0,l=i.length;a<l;a++)r.push(i[a],i[++a])}}};function Ll(t,e,i,r,n,s,o,a){var l,o=o?(l=r,-i):(l=-r,i),h=t+i*s+l,s=e+r*s+o;return a.push(t-i*n+l,e-r*n+o),a.push(h,s),2}function Nl(t,e,i,r,n,s,o,a){var l=i-t,h=r-e,u=Math.atan2(l,h),c=Math.atan2(n-t,s-e),p=(a&&u<c?u+=2*Math.PI:!a&&c<u&&(c+=2*Math.PI),u),c=c-u,u=Math.abs(c),d=Math.sqrt(l*l+h*h),f=1+(15*u*Math.sqrt(d)/Math.PI>>0),m=c/f;if(p+=m,a){o.push(t,e),o.push(i,r);for(var _=1,g=p;_<f;_++,g+=m)o.push(t,e),o.push(t+Math.sin(g)*d,e+Math.cos(g)*d);o.push(t,e),o.push(n,s)}else{o.push(i,r),o.push(t,e);for(_=1,g=p;_<f;_++,g+=m)o.push(t+Math.sin(g)*d,e+Math.cos(g)*d),o.push(t,e);o.push(n,s),o.push(t,e)}return 2*f}function zl(t,e){if(t.lineStyle.native){var i=e,r=0,n=(o=t).shape,s=o.points||n.points,o=n.type!==J.SHAPES.POLY||n.closeStroke;if(0!==s.length){var L=i.points,N=i.indices,z=s.length/2,n=L.length/2,a=n;for(L.push(s[0],s[1]),r=1;r<z;r++)L.push(s[2*r],s[2*r+1]),N.push(a,a+1),a++;o&&N.push(a,n)}}else{var i=e,n=(o=t).shape,l=o.points||n.points.slice(),e=i.closePointEps;if(0!==l.length){var h=o.lineStyle,o=new tt(l[0],l[1]),t=new tt(l[l.length-2],l[l.length-1]),n=n.type!==J.SHAPES.POLY||n.closeStroke,e=Math.abs(o.x-t.x)<e&&Math.abs(o.y-t.y)<e,u=(n&&(l=l.slice(),e&&(l.pop(),l.pop(),t.set(l[l.length-2],l[l.length-1])),e=.5*(o.x+t.x),t=.5*(t.y+o.y),l.unshift(e,t),l.push(e,t)),i.points),c=l.length/2,p=l.length,B=u.length/2,d=h.width/2,U=d*d,j=h.miterLimit*h.miterLimit,f=l[0],m=l[1],_=l[2],g=l[3],v=0,y=0,b=-(m-g),x=f-_,T=0,w=0,E=Math.sqrt(b*b+x*x),o=(b=b/E*d,x=x/E*d,h.alignment),S=2*(1-o),A=2*o;n||(h.cap===J.LINE_CAP.ROUND?p+=Nl(f-b*(S-A)*.5,m-x*(S-A)*.5,f-b*S,m-x*S,f+b*A,m+x*A,u,!0)+2:h.cap===J.LINE_CAP.SQUARE&&(p+=Ll(f,m,b,x,S,A,!0,u))),u.push(f-b*S,m-x*S),u.push(f+b*A,m+x*A);for(var O=1;O<c-1;++O){f=l[2*(O-1)],m=l[2*(O-1)+1],_=l[2*O],g=l[2*O+1],v=l[2*(O+1)],y=l[2*(O+1)+1],x=f-_,b=(b=-(m-g))/(E=Math.sqrt(b*b+x*x))*d,x=x/E*d,w=_-v;var P,R,C,M,k,G,T=(T=-(g-y))/(E=Math.sqrt(T*T+w*w))*d,w=w/E*d,I=_-f,X=m-g,H=_-v,Y=y-g,D=X*H-Y*I,F=D<0;Math.abs(D)<.1?(u.push(_-b*S,g-x*S),u.push(_+b*A,g+x*A)):(C=_+((R=(I*(M=(-T+v)*(-w+g)-(-T+_)*(-w+y))-H*(P=(-b+f)*(-x+g)-(-b+_)*(-x+m)))/D)-_)*S,M=g+((P=(Y*P-X*M)/D)-g)*S,D=_-(R-_)*A,k=g-(P-g)*A,G=F?S:A,(R=(R-_)*(R-_)+(P-g)*(P-g))<=Math.min(I*I+X*X,H*H+Y*Y)+G*G*U?h.join===J.LINE_JOIN.BEVEL||j<R/U?(F?(u.push(C,M),u.push(_+b*A,g+x*A),u.push(C,M),u.push(_+T*A,g+w*A)):(u.push(_-b*S,g-x*S),u.push(D,k),u.push(_-T*S,g-w*S),u.push(D,k)),p+=2):h.join===J.LINE_JOIN.ROUND?F?(u.push(C,M),u.push(_+b*A,g+x*A),p+=Nl(_,g,_+b*A,g+x*A,_+T*A,g+w*A,u,!0)+4,u.push(C,M),u.push(_+T*A,g+w*A)):(u.push(_-b*S,g-x*S),u.push(D,k),p+=Nl(_,g,_-b*S,g-x*S,_-T*S,g-w*S,u,!1)+4,u.push(_-T*S,g-w*S),u.push(D,k)):(u.push(C,M),u.push(D,k)):(u.push(_-b*S,g-x*S),u.push(_+b*A,g+x*A),h.join===J.LINE_JOIN.ROUND?p+=F?Nl(_,g,_+b*A,g+x*A,_+T*A,g+w*A,u,!0)+2:Nl(_,g,_-b*S,g-x*S,_-T*S,g-w*S,u,!1)+2:h.join===J.LINE_JOIN.MITER&&R/U<=j&&(F?(u.push(D,k),u.push(D,k)):(u.push(C,M),u.push(C,M)),p+=2),u.push(_-T*S,g-w*S),u.push(_+T*A,g+w*A),p+=2))}f=l[2*(c-2)],m=l[2*(c-2)+1],_=l[2*(c-1)],b=-(m-(g=l[2*(c-1)+1])),x=f-_,E=Math.sqrt(b*b+x*x),u.push(_-(b=b/E*d)*S,g-(x=x/E*d)*S),u.push(_+b*A,g+x*A),n||(h.cap===J.LINE_CAP.ROUND?p+=Nl(_-b*(S-A)*.5,g-x*(S-A)*.5,_-b*S,g-x*S,_+b*A,g+x*A,u,!1)+2:h.cap===J.LINE_CAP.SQUARE&&(p+=Ll(_,g,b,x,S,A,!1,u)));for(var W=i.indices,V=El.epsilon*El.epsilon,O=B;O<p+B-2;++O)f=u[2*O],m=u[2*O+1],_=u[2*(O+1)],g=u[2*(O+1)+1],v=u[2*(O+2)],y=u[2*(O+2)+1],Math.abs(f*(g-y)+_*(y-m)+v*(m-g))<V||W.push(O,O+1,O+2)}}}Ul.curveTo=function(t,e,i,r,n,s){var o,a,l,h,u=s[s.length-2],c=s[s.length-1]-e,u=u-t,r=r-e,i=i-t,p=Math.abs(c*i-u*r);return p<1e-8||0===n?(s[s.length-2]===t&&s[s.length-1]===e||s.push(t,e),null):(s=c*c+u*u,l=r*r+i*i,h=c*r+u*i,s=(o=n*Math.sqrt(s)/p)*h/s,l=i*(o+(h=(p=n*Math.sqrt(l)/p)*h/l)),h=r*(o+h),{cx:(a=o*i+p*u)+t,cy:(t=o*r+p*c)+e,radius:n,startAngle:Math.atan2(c*(p+s)-t,u*(p+s)-a),endAngle:Math.atan2(h-t,l-a),anticlockwise:i*c<u*r})},Ul.arc=function(t,e,i,r,n,s,o,a,l){for(var o=o-s,h=El._segmentsCount(Math.abs(o)*n,40*Math.ceil(Math.abs(o)/He)),u=o/(2*h),c=2*u,p=Math.cos(u),d=Math.sin(u),f=h-1,m=f%1/f,_=0;_<=f;++_){var g=u+s+c*(_+m*_),v=Math.cos(g),g=-Math.sin(g);l.push((p*v+d*g)*n+i,(p*-g+d*v)*n+r)}};var Bl=Ul;function Ul(){}Gl.curveLength=function(t,e,i,r,n,s,o,a){for(var l,h,u,c,p,d,f,m,_=0,g=t,v=e,y=1;y<=10;++y)f=g-(p=(d=(m=(c=1-(l=y/10))*c)*c)*t+3*m*l*i+3*c*(h=l*l)*n+(u=h*l)*o),m=v-(d=d*e+3*m*l*r+3*c*h*s+u*a),g=p,v=d,_+=Math.sqrt(f*f+m*m);return _},Gl.curveTo=function(t,e,i,r,n,s,o){var a,l,h,u,c,p=o[o.length-2],d=o[o.length-1],f=(o.length-=2,El._segmentsCount(Gl.curveLength(p,d,t,e,i,r,n,s)));o.push(p,d);for(var m,_=1;_<=f;++_)o.push((h=(l=(a=1-(m=_/f))*a)*a)*p+3*l*m*t+3*a*(u=m*m)*i+(c=u*m)*n,h*d+3*l*m*e+3*a*u*r+c*s)};var jl=Gl;function Gl(){}Hl.curveLength=function(t,e,i,r,n,s){var n=t-2*i+n,s=e-2*r+s,i=2*i-2*t,t=2*r-2*e,r=4*(n*n+s*s),e=4*(n*i+s*t),n=i*i+t*t,s=2*Math.sqrt(r+e+n),i=Math.sqrt(r),t=2*r*i,o=2*Math.sqrt(n),a=e/i;return(t*s+i*e*(s-o)+(4*n*r-e*e)*Math.log((2*i+a+s)/(a+o)))/(4*t)},Hl.curveTo=function(t,e,i,r,n){for(var s=n[n.length-2],o=n[n.length-1],a=El._segmentsCount(Hl.curveLength(s,o,t,e,i,r)),l=1;l<=a;++l){var h,u=l/a;n.push((h=s+(t-s)*u)+(t+(i-t)*u-h)*u,(h=o+(e-o)*u)+(e+(r-e)*u-h)*u)}};var Xl=Hl;function Hl(){}Wl.prototype.begin=function(t,e,i){this.reset(),this.style=t,this.start=e,this.attribStart=i},Wl.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-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()}(lh={})[J.SHAPES.POLY]=Cl,lh[J.SHAPES.CIRC]=Ml,lh[J.SHAPES.ELIP]=Ml,lh[J.SHAPES.RECT]=kl,lh[J.SHAPES.RREC]=Fl;var Vl=lh,ql=[],Kl=[],Zl=(Ql.prototype.clone=function(){return new Ql(this.shape,this.fillStyle,this.lineStyle,this.matrix)},Ql.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},Ql);function Ql(t,e,i,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===r&&(r=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=i,this.fillStyle=e,this.matrix=r,this.type=t.type}var $l,Jl=new tt,th=(Pl(y,$l=Ro),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 t=this.textureIds.length=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),Kl.push(this.drawCalls[t]);for(t=this.drawCalls.length=0;t<this.batches.length;t++){var e=this.batches[t];e.reset(),ql.push(e)}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(t,e,i,r){t=new Zl(t,e=void 0===e?null:e,i=void 0===i?null:i,r=void 0===r?null:r);return this.graphicsData.push(t),this.dirty++,this},y.prototype.drawHole=function(t,e){return this.graphicsData.length?(t=new Zl(t,null,null,e=void 0===e?null:e),e=this.graphicsData[this.graphicsData.length-1],t.lineStyle=e.lineStyle,e.holes.push(t),this.dirty++,this):null},y.prototype.destroy=function(){$l.prototype.destroy.call(this);for(var t=0;t<this.graphicsData.length;++t)this.graphicsData[t].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(t){for(var e=this.graphicsData,i=0;i<e.length;++i){var r=e[i];if(r.fillStyle.visible&&(r.shape&&(r.matrix?r.matrix.applyInverse(t,Jl):Jl.copyFrom(t),r.shape.contains(Jl.x,Jl.y)))){var n=!1;if(r.holes)for(var s=0;s<r.holes.length;s++)if(r.holes[s].shape.contains(Jl.x,Jl.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 t=this.uvs,e=this.graphicsData,i=null,r=null;0<this.batches.length&&(r=(i=this.batches[this.batches.length-1]).style);for(var n=this.shapeIndex;n<e.length;n++){this.shapeIndex++;var s=e[n],o=s.fillStyle,a=s.lineStyle;Vl[s.type].build(s),s.matrix&&this.transformPoints(s.points,s.matrix),(o.visible||a.visible)&&this.processHoles(s.holes);for(var l=0;l<2;l++){var h,u,c,p=0===l?o:a;p.visible&&(c=p.texture.baseTexture,h=this.indices.length,u=this.points.length/2,c.wrapMode=J.WRAP_MODES.REPEAT,0===l?this.processFill(s):this.processLine(s),0!=(c=this.points.length/2-u)&&(i&&!this._compareStyles(r,p)&&(i.end(h,u),i=null),i||((i=ql.pop()||new Yl).begin(p,h,u),this.batches.push(i),r=p),this.addUvs(this.points,t,p.texture,u,c,p.matrix)))}}var d=this.indices.length,f=this.points.length/2;i&&i.end(d,f),0===this.batches.length?this.batchable=!0:(d=65535<f,this.indicesUint16&&this.indices.length===this.indicesUint16.length&&d==2<this.indicesUint16.BYTES_PER_ELEMENT?this.indicesUint16.set(this.indices):this.indicesUint16=new(d?Uint32Array:Uint16Array)(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls())}}else this.batchable=!0},y.prototype._compareStyles=function(t,e){return!(!t||!e)&&(t.texture.baseTexture===e.texture.baseTexture&&(t.color+t.alpha===e.color+e.alpha&&!!t.native==!!e.native))},y.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,e=this.graphicsData.length;t<e;t++){var i=this.graphicsData[t],r=i.fillStyle,i=i.lineStyle;if(r&&!r.texture.baseTexture.valid)return!1;if(i&&!i.texture.baseTexture.valid)return!1}return!0},y.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var t=this.batches,e=0,i=t.length;e<i;e++)for(var r=t[e],n=0;n<r.size;n++){var s=r.start+n;this.indicesUint16[s]=this.indicesUint16[s]-r.attribStart}},y.prototype.isBatchable=function(){if(131070<this.points.length)return!1;for(var t=this.batches,e=0;e<t.length;e++)if(t[e].style.native)return!1;return this.points.length<2*y.BATCHABLE_SIZE},y.prototype.buildDrawCalls=function(){for(var t=++M._globalBatch,e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Kl.push(this.drawCalls[e]);this.drawCalls.length=0;var i=this.colors,r=this.textureIds,n=Kl.pop(),s=(n||((n=new vo).texArray=new yo),n.texArray.count=0,n.start=0,n.size=0,n.type=J.DRAW_MODES.TRIANGLES,0),o=null,a=!1,l=J.DRAW_MODES.TRIANGLES,h=0;this.drawCalls.push(n);for(e=0;e<this.batches.length;e++){var u=this.batches[e],c=u.style,p=c.texture.baseTexture;a!==!!c.native&&(l=(a=!!c.native)?J.DRAW_MODES.LINES:J.DRAW_MODES.TRIANGLES,o=null,s=8,t++),o!==p&&(o=p)._batchEnabled!==t&&(8===s&&(t++,(s=0)<n.size&&((n=Kl.pop())||((n=new vo).texArray=new yo),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=l),p.touched=1,p._batchEnabled=t,p._batchLocation=s,p.wrapMode=J.WRAP_MODES.REPEAT,n.texArray.elements[n.texArray.count++]=p,s++),n.size+=u.size,h+=u.size,p=p._batchLocation,this.addColors(i,c.color,c.alpha,u.attribSize,u.attribStart),this.addTextureIds(r,p,u.attribSize,u.attribStart)}M._globalBatch=t,this.packAttributes()},y.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,i=this.colors,r=this.textureIds,n=new ArrayBuffer(3*t.length*4),s=new Float32Array(n),o=new Uint32Array(n),a=0,l=0;l<t.length/2;l++)s[a++]=t[2*l],s[a++]=t[2*l+1],s[a++]=e[2*l],s[a++]=e[2*l+1],o[a++]=i[l],s[a++]=r[l];this._buffer.update(n),this._indexBuffer.update(this.indicesUint16)},y.prototype.processFill=function(t){(t.holes.length?Cl:Vl[t.type]).triangulate(t,this)},y.prototype.processLine=function(t){zl(t,this);for(var e=0;e<t.holes.length;e++)zl(t.holes[e],this)},y.prototype.processHoles=function(t){for(var e=0;e<t.length;e++){var i=t[e];Vl[i.type].build(i),i.matrix&&this.transformPoints(i.points,i.matrix)}},y.prototype.calculateBounds=function(){var t=this._bounds;t.clear(),t.addVertexData(this.points,0,this.points.length),t.pad(this.boundsPadding,this.boundsPadding)},y.prototype.transformPoints=function(t,e){for(var i=0;i<t.length/2;i++){var r=t[2*i],n=t[2*i+1];t[2*i]=e.a*r+e.c*n+e.tx,t[2*i+1]=e.b*r+e.d*n+e.ty}},y.prototype.addColors=function(t,e,i,r,n){void 0===n&&(n=0);var s=ye((e>>16)+(65280&e)+((255&e)<<16),i);t.length=Math.max(t.length,n+r);for(var o=0;o<r;o++)t[n+o]=s},y.prototype.addTextureIds=function(t,e,i,r){void 0===r&&(r=0),t.length=Math.max(t.length,r+i);for(var n=0;n<i;n++)t[r+n]=e},y.prototype.addUvs=function(t,e,i,r,n,s){void 0===s&&(s=null);for(var o=0,a=e.length,l=i.frame;o<n;){var h,u=t[2*(r+o)],c=t[2*(r+o)+1];s&&(h=s.a*u+s.c*c+s.tx,c=s.b*u+s.d*c+s.ty,u=h),o++,e.push(u/l.width,c/l.height)}var p=i.baseTexture;(l.width<p.width||l.height<p.height)&&this.adjustUvs(e,i,a,n)},y.prototype.adjustUvs=function(t,e,i,r){for(var n=e.baseTexture,s=i+2*r,r=e.frame,o=r.width/n.width,a=r.height/n.height,l=r.x/r.width,h=r.y/r.height,u=Math.floor(t[i]+1e-6),c=Math.floor(t[i+1]+1e-6),p=i+2;p<s;p+=2)u=Math.min(u,Math.floor(t[p]+1e-6)),c=Math.min(c,Math.floor(t[p+1]+1e-6));l-=u,h-=c;for(p=i;p<s;p+=2)t[p]=(t[p]+l)*o,t[p+1]=(t[p+1]+h)*a},y.BATCHABLE_SIZE=100,y);function y(){var t=$l.call(this)||this;return t.closePointEps=1e-4,t.boundsPadding=0,t.uvsFloat32=null,t.indicesUint16=null,t.batchable=!1,t.points=[],t.colors=[],t.uvs=[],t.indices=[],t.textureIds=[],t.graphicsData=[],t.drawCalls=[],t.batchDirty=-1,t.batches=[],t.dirty=0,t.cacheDirty=-1,t.clearDirty=0,t.shapeIndex=0,t._bounds=new Oi,t.boundsDirty=-1,t}Pl(rh,eh=Sl),rh.prototype.clone=function(){var t=new rh;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t},rh.prototype.reset=function(){eh.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1};var eh,ih=rh;function rh(){var t=null!==eh&&eh.apply(this,arguments)||this;return t.width=0,t.alignment=.5,t.native=!1,t.cap=J.LINE_CAP.BUTT,t.join=J.LINE_JOIN.MITER,t.miterLimit=10,t}var nh,sh=new Float32Array(3),oh={},ah=(Pl(b,nh=zi),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(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t},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(t,e,i,r,n){return void 0===e&&(e=0),void 0===i&&(i=1),void 0===r&&(r=.5),void 0===n&&(n=!1),this.lineTextureStyle(t="number"==typeof(t=void 0===t?null:t)?{width:t,color:e,alpha:i,alignment:r,native:n}:t)},b.prototype.lineTextureStyle=function(t){t=Object.assign({width:0,texture:et.WHITE,color:t&&t.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:J.LINE_CAP.BUTT,join:J.LINE_JOIN.MITER,miterLimit:10},t),this.currentPath&&this.startPoly();var e=0<t.width&&0<t.alpha;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this},b.prototype.startPoly=function(){var t,e;this.currentPath?(t=this.currentPath.points,2<(e=this.currentPath.points.length)&&(this.drawShape(this.currentPath),this.currentPath=new ti,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))):(this.currentPath=new ti,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(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},b.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,r=i[i.length-2],n=i[i.length-1];return r===t&&n===e||i.push(t,e),this},b.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},b.prototype.quadraticCurveTo=function(t,e,i,r){this._initCurve();var n=this.currentPath.points;return 0===n.length&&this.moveTo(0,0),Xl.curveTo(t,e,i,r,n),this},b.prototype.bezierCurveTo=function(t,e,i,r,n,s){return this._initCurve(),jl.curveTo(t,e,i,r,n,s,this.currentPath.points),this},b.prototype.arcTo=function(t,e,i,r,n){this._initCurve(t,e);var s=this.currentPath.points,t=Bl.curveTo(t,e,i,r,n,s);return t&&(e=t.cx,i=t.cy,r=t.radius,n=t.startAngle,s=t.endAngle,t=t.anticlockwise,this.arc(e,i,r,n,s,t)),this},b.prototype.arc=function(t,e,i,r,n,s){var o,a,l,h,u,c;return void 0===s&&(s=!1),r!==n&&(!s&&n<=r?n+=He:s&&r<=n&&(r+=He),0!=n-r&&(o=t+Math.cos(r)*i,a=e+Math.sin(r)*i,l=this._geometry.closePointEps,(h=this.currentPath?this.currentPath.points:null)?(u=Math.abs(h[h.length-2]-o),c=Math.abs(h[h.length-1]-a),u<l&&c<l||h.push(o,a)):(this.moveTo(o,a),h=this.currentPath.points),Bl.arc(o,a,t,e,i,r,n,s,h))),this},b.prototype.beginFill=function(t,e){return this.beginTextureFill({texture:et.WHITE,color:t=void 0===t?0:t,alpha:e=void 0===e?1:e})},b.prototype.beginTextureFill=function(t){t=Object.assign({texture:et.WHITE,color:16777215,alpha:1,matrix:null},t),this.currentPath&&this.startPoly();var e=0<t.alpha;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this},b.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},b.prototype.drawRect=function(t,e,i,r){return this.drawShape(new w(t,e,i,r))},b.prototype.drawRoundedRect=function(t,e,i,r,n){return this.drawShape(new ii(t,e,i,r,n))},b.prototype.drawCircle=function(t,e,i){return this.drawShape(new Ze(t,e,i))},b.prototype.drawEllipse=function(t,e,i,r){return this.drawShape(new $e(t,e,i,r))},b.prototype.drawPolygon=function(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];var r=!0,n=e[0],n=n.points?(r=n.closeStroke,n.points):Array.isArray(e[0])?e[0]:e,n=new ti(n);return n.closeStroke=r,this.drawShape(n),this},b.prototype.drawShape=function(t){return this._holeMode?this._geometry.drawHole(t,this._matrix):this._geometry.drawShape(t,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 t=this._geometry.graphicsData;return!(1!==t.length||t[0].shape.type!==J.SHAPES.RECT||t[0].matrix||t[0].holes.length||t[0].lineStyle.visible&&t[0].lineStyle.width)},b.prototype._render=function(t){this.finishPoly();var e=this._geometry;e.updateBatches(),e.batchable?(this.batchDirty!==e.batchDirty&&this._populateBatches(),this._renderBatched(t)):(t.batch.flush(),this._renderDirect(t))},b.prototype._populateBatches=function(){var t=this._geometry,e=this.blendMode,i=t.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=t.batchDirty,this.batches.length=i,this.vertexData=new Float32Array(t.points);for(var r=0;r<i;r++){var n=t.batches[r],s=n.style.color,o=new Float32Array(this.vertexData.buffer,4*n.attribStart*2,2*n.attribSize),a=new Float32Array(t.uvsFloat32.buffer,4*n.attribStart*2,2*n.attribSize),o={vertexData:o,blendMode:e,indices:new Uint16Array(t.indicesUint16.buffer,2*n.start,n.size),uvs:a,_batchRGB:de(s),_tintRGB:s,_texture:n.style.texture,alpha:n.style.alpha,worldAlpha:1};this.batches[r]=o}},b.prototype._renderBatched=function(t){if(this.batches.length){t.batch.setObjectRenderer(t.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var e=0,i=this.batches.length;e<i;e++){var r=this.batches[e];r.worldAlpha=this.worldAlpha*r.alpha,t.plugins[this.pluginName].render(r)}}},b.prototype._renderDirect=function(t){var e=this._resolveDirectShader(t),i=this._geometry,r=this.tint,n=this.worldAlpha,s=e.uniforms,o=i.drawCalls;s.translationMatrix=this.transform.worldTransform,s.tint[0]=(r>>16&255)/255*n,s.tint[1]=(r>>8&255)/255*n,s.tint[2]=(255&r)/255*n,s.tint[3]=n,t.shader.bind(e),t.geometry.bind(i,e),t.state.set(this.state);for(var a=0,l=o.length;a<l;a++)this._renderDrawCallDirect(t,i.drawCalls[a])},b.prototype._renderDrawCallDirect=function(t,e){for(var i=e.texArray,r=e.type,n=e.size,e=e.start,s=i.count,o=0;o<s;o++)t.texture.bind(i.elements[o],o);t.geometry.draw(r,n,e)},b.prototype._resolveDirectShader=function(t){var e=this.shader,i=this.pluginName;if(!e){if(!oh[i]){for(var r=t.plugins[i].MAX_TEXTURES,n=new Int32Array(r),s=0;s<r;s++)n[s]=s;var o={tint:new Float32Array([1,1,1,1]),translationMatrix:new oi,default:cn.from({uSamplers:n},!0)},t=t.plugins[i]._shader.program;oh[i]=new ss(t,o)}e=oh[i]}return e},b.prototype._calculateBounds=function(){this.finishPoly();var t,e,i,r=this._geometry;r.graphicsData.length&&(t=(r=r.bounds).minX,e=r.minY,i=r.maxX,r=r.maxY,this._bounds.addFrame(this.transform,t,e,i,r))},b.prototype.containsPoint=function(t){return this.worldTransform.applyInverse(t,b._TEMP_POINT),this._geometry.containsPoint(b._TEMP_POINT)},b.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var t=de(this.tint,sh),e=0;e<this.batches.length;e++){var i=this.batches[e],r=i._batchRGB,r=(t[0]*r[0]*255<<16)+(t[1]*r[1]*255<<8)+(0|t[2]*r[2]*255);i._tintRGB=(r>>16)+(65280&r)+((255&r)<<16)}}},b.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var t=this.transform.worldTransform,e=t.a,i=t.b,r=t.c,n=t.d,s=t.tx,o=t.ty,a=this._geometry.points,l=this.vertexData,h=0,u=0;u<a.length;u+=2){var c=a[u],p=a[u+1];l[h++]=e*c+r*p+s,l[h++]=n*p+i*c+o}}},b.prototype.closePath=function(){var t=this.currentPath;return t&&(t.closeStroke=!0,this.finishPoly()),this},b.prototype.setMatrix=function(t){return this._matrix=t,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(t){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,nh.prototype.destroy.call(this,t)},b.nextRoundedRectBehavior=!1,b._TEMP_POINT=new tt,b);function b(t){void 0===t&&(t=null);var e=nh.call(this)||this;return e.shader=null,e.pluginName="batch",e.currentPath=null,e.batches=[],e.batchTint=-1,e.batchDirty=-1,e.vertexData=null,e._fillStyle=new Sl,e._lineStyle=new ih,e._matrix=null,e._holeMode=!1,e.state=as.for2d(),e._geometry=t||new th,e._geometry.refCount++,e._transformID=-1,e.tint=16777215,e.blendMode=J.BLEND_MODES.NORMAL,e}var lh={buildPoly:Cl,buildCircle:Ml,buildRectangle:kl,buildRoundedRectangle:Fl,buildLine:zl,ArcUtils:Bl,BezierUtils:jl,QuadraticUtils:Xl,BatchPart:Yl,FILL_COMMANDS:Vl,BATCH_POOL:ql,DRAW_CALL_POOL:Kl},hh=function(t,e){return(hh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};var uh,ch,ph=new tt,dh=new Uint16Array([0,1,2,0,2,3]),fh=(hh(ch=_h,kl=uh=zi),ch.prototype=null===kl?Object.create(kl):(mh.prototype=kl.prototype,new mh),_h.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Pe(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Pe(this.scale.y)*this._height/this._texture.orig.height)},_h.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},_h.prototype.calculateVertices=function(){var t=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==t._updateID){this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;var e=this.transform.worldTransform,i=e.a,r=e.b,n=e.c,s=e.d,o=e.tx,e=e.ty,a=this.vertexData,l=t.trim,t=t.orig,h=this._anchor,u=0,c=0,p=0,d=0,p=l?(u=(c=l.x-h._x*t.width)+l.width,(d=l.y-h._y*t.height)+l.height):(u=(c=-h._x*t.width)+t.width,(d=-h._y*t.height)+t.height);if(a[0]=i*c+n*d+o,a[1]=s*d+r*c+e,a[2]=i*u+n*d+o,a[3]=s*d+r*u+e,a[4]=i*u+n*p+o,a[5]=s*p+r*u+e,a[6]=i*c+n*p+o,a[7]=s*p+r*c+e,this._roundPixels)for(var f=C.RESOLUTION,m=0;m<a.length;++m)a[m]=Math.round((a[m]*f|0)/f)}},_h.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 t=this._texture,e=this.vertexTrimmedData,t=t.orig,i=this._anchor,r=this.transform.worldTransform,n=r.a,s=r.b,o=r.c,a=r.d,l=r.tx,r=r.ty,h=-i._x*t.width,u=h+t.width,i=-i._y*t.height,t=i+t.height;e[0]=n*h+o*i+l,e[1]=a*i+s*h+r,e[2]=n*u+o*i+l,e[3]=a*i+s*u+r,e[4]=n*u+o*t+l,e[5]=a*t+s*u+r,e[6]=n*h+o*t+l,e[7]=a*t+s*h+r},_h.prototype._render=function(t){this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},_h.prototype._calculateBounds=function(){var t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},_h.prototype.getLocalBounds=function(t){return 0===this.children.length?(this._localBounds||(this._localBounds=new Oi),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),t||(this._localBoundsRect||(this._localBoundsRect=new w),t=this._localBoundsRect),this._localBounds.getRectangle(t)):uh.prototype.getLocalBounds.call(this,t)},_h.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,ph);var t=this._texture.orig.width,e=this._texture.orig.height,i=-t*this.anchor.x;return ph.x>=i&&ph.x<i+t&&(i=-e*this.anchor.y,ph.y>=i&&ph.y<i+e)},_h.prototype.destroy=function(t){uh.prototype.destroy.call(this,t),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,("boolean"==typeof t?t:t&&t.texture)&&(t="boolean"==typeof t?t:t&&t.baseTexture,this._texture.destroy(!!t)),this._texture=null},_h.from=function(t,e){return new _h(t instanceof et?t:et.from(t,e))},Object.defineProperty(_h.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(_h.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){var e=Pe(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(_h.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){var e=Pe(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(_h.prototype,"anchor",{get:function(){return this._anchor},set:function(t){this._anchor.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(_h.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(_h.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||et.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),_h);function mh(){this.constructor=ch}function _h(t){var e=uh.call(this)||this;return e._anchor=new ni(e._onAnchorUpdate,e,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),e._texture=null,e._width=0,e._height=0,e._tint=null,e._tintRGB=null,e.tint=16777215,e.blendMode=J.BLEND_MODES.NORMAL,e._cachedTint=16777215,e.uvs=null,e.texture=t||et.EMPTY,e.vertexData=new Float32Array(8),e.vertexTrimmedData=null,e._transformID=-1,e._textureID=-1,e._transformTrimmedID=-1,e._textureTrimmedID=-1,e.indices=dh,e.pluginName="batch",e.isSprite=!0,e._roundPixels=C.ROUND_PIXELS,e}var gh=function(t,e){return(gh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};J.TEXT_GRADIENT=void 0,(Fl=J.TEXT_GRADIENT||(J.TEXT_GRADIENT={}))[Fl.LINEAR_VERTICAL=0]="LINEAR_VERTICAL";var vh={align:"left",breakWords:!(Fl[Fl.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"),dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:J.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},yh=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],bh=(x.prototype.clone=function(){var t={};return wh(t,this,vh),new x(t)},x.prototype.reset=function(){wh(this,vh,vh)},Object.defineProperty(x.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){t=Th(t);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fill",{get:function(){return this._fill},set:function(t){t=Th(t);this._fill!==t&&(this._fill=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){!function(t,e){if(!Array.isArray(t)||!Array.isArray(e))return;if(t.length!==e.length)return;for(var i=0;i<t.length;++i)if(t[i]!==e[i])return;return 1}(this._fillGradientStops,t)&&(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"stroke",{get:function(){return this._stroke},set:function(t){t=Th(t);this._stroke!==t&&(this._stroke=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),x.prototype.toFontString=function(){for(var t="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,e=this.fontFamily,i=(e=Array.isArray(this.fontFamily)?e:this.fontFamily.split(",")).length-1;0<=i;i--){var r=e[i].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&yh.indexOf(r)<0&&(r='"'+r+'"'),e[i]=r}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},x);function x(t){this.styleID=0,this.reset(),wh(this,t,t)}function xh(t){return"number"==typeof t?fe(t):"string"==typeof t&&0===t.indexOf("0x")?t.replace("0x","#"):t}function Th(t){if(Array.isArray(t)){for(var e=0;e<t.length;++e)t[e]=xh(t[e]);return t}return xh(t)}function wh(t,e,i){for(var r in i)Array.isArray(e[r])?t[r]=e[r].slice():t[r]=e[r]}S.measureText=function(t,e,i,r){void 0===r&&(r=S._canvas),i=null==i?e.wordWrap:i;var n=e.toFontString(),s=S.measureFont(n),o=(0===s.fontSize&&(s.fontSize=e.fontSize,s.ascent=e.fontSize),r.getContext("2d"));o.font=n;for(var a=(i?S.wordWrap(t,e,r):t).split(/(?:\r\n|\r|\n)/),l=new Array(a.length),h=0,u=0;u<a.length;u++){var c=o.measureText(a[u]).width+(a[u].length-1)*e.letterSpacing;l[u]=c,h=Math.max(h,c)}n=h+e.strokeThickness,e.dropShadow&&(n+=e.dropShadowDistance),i=e.lineHeight||s.fontSize+e.strokeThickness,r=Math.max(i,s.fontSize+e.strokeThickness)+(a.length-1)*(i+e.leading);return e.dropShadow&&(r+=e.dropShadowDistance),new S(t,e,n,r,a,l,i+e.leading,h,s)},S.wordWrap=function(t,e,i){for(var r=(i=void 0===i?S._canvas:i).getContext("2d"),n=0,s="",o="",a=Object.create(null),l=e.letterSpacing,i=e.whiteSpace,h=S.collapseSpaces(i),u=S.collapseNewlines(i),c=!h,p=e.wordWrapWidth+l,d=S.tokenize(t),f=0;f<d.length;f++){var m=d[f];if(S.isNewline(m)){if(!u){o+=S.addLine(s),c=!h,s="",n=0;continue}m=" "}if(h){var _=S.isBreakingSpace(m),g=S.isBreakingSpace(s[s.length-1]);if(_&&g)continue}_=S.getFromCache(m,l,a,r);if(p<_)if(""!==s&&(o+=S.addLine(s),s="",n=0),S.canBreakWords(m,e.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,e.breakWords))break;b+=T,x++}y+=b.length-1;var E=S.getFromCache(b,l,a,r);p<E+n&&(o+=S.addLine(s),c=!1,s="",n=0),s+=b,n+=E}else{0<s.length&&(o+=S.addLine(s),s="",n=0);g=f===d.length-1;o+=S.addLine(m,!g),c=!1,s="",n=0}else p<_+n&&(c=!1,o+=S.addLine(s),s="",n=0),(0<s.length||!S.isBreakingSpace(m)||c)&&(s+=m,n+=_)}return o+=S.addLine(s,!1)},S.addLine=function(t,e){return void 0===e&&(e=!0),t=S.trimRight(t),t=e?t+"\n":t},S.getFromCache=function(t,e,i,r){var n=i[t];return"number"!=typeof n&&(e=t.length*e,n=r.measureText(t).width+e,i[t]=n),n},S.collapseSpaces=function(t){return"normal"===t||"pre-line"===t},S.collapseNewlines=function(t){return"normal"===t},S.trimRight=function(t){if("string"!=typeof t)return"";for(var e=t.length-1;0<=e;e--){var i=t[e];if(!S.isBreakingSpace(i))break;t=t.slice(0,-1)}return t},S.isNewline=function(t){return"string"==typeof t&&0<=S._newlines.indexOf(t.charCodeAt(0))},S.isBreakingSpace=function(t,e){return"string"==typeof t&&0<=S._breakingSpaces.indexOf(t.charCodeAt(0))},S.tokenize=function(t){var e=[],i="";if("string"==typeof t){for(var r=0;r<t.length;r++){var n=t[r],s=t[r+1];S.isBreakingSpace(n,s)||S.isNewline(n)?(""!==i&&(e.push(i),i=""),e.push(n)):i+=n}""!==i&&e.push(i)}return e},S.canBreakWords=function(t,e){return e},S.canBreakChars=function(t,e,i,r,n){return!0},S.wordWrapSplit=function(t){return t.split("")},S.measureFont=function(t){if(S._fonts[t])return S._fonts[t];for(var e={ascent:0,descent:0,fontSize:0},i=S._canvas,r=S._context,n=(r.font=t,S.METRICS_STRING+S.BASELINE_SYMBOL),s=Math.ceil(r.measureText(n).width),o=Math.ceil(r.measureText(S.BASELINE_SYMBOL).width),a=Math.ceil(S.HEIGHT_MULTIPLIER*o),o=o*S.BASELINE_MULTIPLIER|0,l=(i.width=s,i.height=a,r.fillStyle="#f00",r.fillRect(0,0,s,a),r.font=t,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText(n,0,o),r.getImageData(0,0,s,a).data),i=l.length,h=4*s,u=0,c=0,p=!1,u=0;u<o;++u){for(var d=0;d<h;d+=4)if(255!==l[c+d]){p=!0;break}if(p)break;c+=h}for(e.ascent=o-u,c=i-h,p=!1,u=a;o<u;--u){for(d=0;d<h;d+=4)if(255!==l[c+d]){p=!0;break}if(p)break;c-=h}return e.descent=u-o,e.fontSize=e.ascent+e.descent,S._fonts[t]=e},S.clearMetrics=function(t){(t=void 0===t?"":t)?delete S._fonts[t]:S._fonts={}},Object.defineProperty(S,"_canvas",{get:function(){if(!S.__canvas){var e=void 0;try{var t=new OffscreenCanvas(0,0),i=t.getContext("2d");if(i&&i.measureText)return S.__canvas=t;e=C.ADAPTER.createCanvas()}catch(t){e=C.ADAPTER.createCanvas()}e.width=e.height=10,S.__canvas=e}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 Eh=S;function S(t,e,i,r,n,s,o,a,l){this.text=t,this.style=e,this.width=i,this.height=r,this.lines=n,this.lineWidths=s,this.lineHeight=o,this.maxLineWidth=a,this.fontProperties=l}Eh._fonts={},Eh.METRICS_STRING="|ÉqÅ",Eh.BASELINE_SYMBOL="M",Eh.BASELINE_MULTIPLIER=1.4,Eh.HEIGHT_MULTIPLIER=2,Eh._newlines=[10,13];var Sh,Ah,Oh={texture:!0,children:!(Eh._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]),baseTexture:!0},Ph=(gh(Ah=Ch,kl=Sh=fh),Ah.prototype=null===kl?Object.create(kl):(Rh.prototype=kl.prototype,new Rh),Ch.prototype.updateText=function(t){var e=this._style;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),this.dirty||!t){this._font=this._style.toFontString();for(var i,r,n=this.context,s=Eh.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),t=s.width,o=s.height,a=s.lines,l=s.lineHeight,h=s.lineWidths,u=s.maxLineWidth,c=s.fontProperties,p=(this.canvas.width=Math.ceil(Math.ceil(Math.max(1,t)+2*e.padding)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,o)+2*e.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=e.strokeThickness,n.textBaseline=e.textBaseline,n.lineJoin=e.lineJoin,n.miterLimit=e.miterLimit,e.dropShadow?2:1),d=0;d<p;++d){var f,m,_=e.dropShadow&&0===d,g=_?Math.ceil(Math.max(1,o)+2*e.padding):0,v=g*this._resolution,y=(_?(n.fillStyle="black",n.strokeStyle="black",_=de("number"==typeof(_=e.dropShadowColor)?_:me(_)),f=e.dropShadowBlur*this._resolution,m=e.dropShadowDistance*this._resolution,n.shadowColor="rgba("+255*_[0]+","+255*_[1]+","+255*_[2]+","+e.dropShadowAlpha+")",n.shadowBlur=f,n.shadowOffsetX=Math.cos(e.dropShadowAngle)*m,n.shadowOffsetY=Math.sin(e.dropShadowAngle)*m+v):(n.fillStyle=this._generateFillStyle(e,a,s),n.strokeStyle=e.stroke,n.shadowColor="black",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0),(l-c.fontSize)/2);(!Ch.nextLineHeightBehavior||l-c.fontSize<0)&&(y=0);for(var b=0;b<a.length;b++)i=e.strokeThickness/2,r=e.strokeThickness/2+b*l+c.ascent+y,"right"===e.align?i+=u-h[b]:"center"===e.align&&(i+=(u-h[b])/2),e.stroke&&e.strokeThickness&&this.drawLetterSpacing(a[b],i+e.padding,r+e.padding-g,!0),e.fill&&this.drawLetterSpacing(a[b],i+e.padding,r+e.padding-g)}this.updateTexture()}},Ch.prototype.drawLetterSpacing=function(t,e,i,r){void 0===r&&(r=!1);var n=this._style.letterSpacing,s=Ch.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(0===n||s)s&&(this.context.letterSpacing=n,this.context.textLetterSpacing=n),r?this.context.strokeText(t,e,i):this.context.fillText(t,e,i);else for(var o=e,a=Array.from?Array.from(t):t.split(""),l=this.context.measureText(t).width,h=0;h<a.length;++h){for(var u=a[h],c=(r?this.context.strokeText(u,o,i):this.context.fillText(u,o,i),""),p=h+1;p<a.length;++p)c+=a[p];o+=l-(u=this.context.measureText(c).width)+n,l=u}},Ch.prototype.updateTexture=function(){var t=this.canvas,e=(!this._style.trim||(e=ze(t)).data&&(t.width=e.width,t.height=e.height,this.context.putImageData(e.data,0,0)),this._texture),i=this._style,i=i.trim?0:i.padding,r=e.baseTexture;e.trim.width=e._frame.width=t.width/this._resolution,e.trim.height=e._frame.height=t.height/this._resolution,e.trim.x=-i,e.trim.y=-i,e.orig.width=e._frame.width-2*i,e.orig.height=e._frame.height-2*i,this._onTextureUpdate(),r.setRealSize(t.width,t.height,this._resolution),e.updateUvs(),this.dirty=!1},Ch.prototype._render=function(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0),this.updateText(!0),Sh.prototype._render.call(this,t)},Ch.prototype.updateTransform=function(){this.updateText(!0),Sh.prototype.updateTransform.call(this)},Ch.prototype.getBounds=function(t,e){return this.updateText(!0),-1===this._textureID&&(t=!1),Sh.prototype.getBounds.call(this,t,e)},Ch.prototype.getLocalBounds=function(t){return this.updateText(!0),Sh.prototype.getLocalBounds.call(this,t)},Ch.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)},Ch.prototype._generateFillStyle=function(t,e,i){var r=t.fill;if(!Array.isArray(r))return r;if(1===r.length)return r[0];var n=t.dropShadow?t.dropShadowDistance:0,s=t.padding||0,o=this.canvas.width/this._resolution-n-2*s,a=this.canvas.height/this._resolution-n-2*s,l=r.slice(),h=t.fillGradientStops.slice();if(!h.length)for(var u=l.length+1,c=1;c<u;++c)h.push(c/u);if(l.unshift(r[0]),h.unshift(0),l.push(r[r.length-1]),h.push(1),t.fillGradientType===J.TEXT_GRADIENT.LINEAR_VERTICAL)for(var p=this.context.createLinearGradient(o/2,s,o/2,a+s),d=i.fontProperties.fontSize+t.strokeThickness,c=0;c<e.length;c++)for(var f=i.lineHeight*(c-1)+d,m=i.lineHeight*c,_=m,g=m+d,v=i.lineHeight*(c+1),y=g,b=((y=c+1<e.length&&v<g?(g+v)/2:y)-(_=0<c&&m<f?(m+f)/2:_))/a,x=0;x<l.length;x++){var T=0,T="number"==typeof h[x]?h[x]:x/l.length,T=Math.min(1,Math.max(0,_/a+T*b)),T=Number(T.toFixed(5));p.addColorStop(T,l[x])}else{p=this.context.createLinearGradient(s,a/2,o+s,a/2);for(var w=l.length+1,E=1,c=0;c<l.length;c++){var S=void 0,S="number"==typeof h[c]?h[c]:E/w;p.addColorStop(S,l[c]),E++}}return p},Ch.prototype.destroy=function(t){"boolean"==typeof t&&(t={children:t}),t=Object.assign({},Oh,t),Sh.prototype.destroy.call(this,t),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(Ch.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){this.updateText(!0);var e=Pe(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(Ch.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){this.updateText(!0);var e=Pe(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(Ch.prototype,"style",{get:function(){return this._style},set:function(t){(t=t||{})instanceof bh?this._style=t:this._style=new bh(t),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(Ch.prototype,"text",{get:function(){return this._text},set:function(t){t=String(null==t?"":t),this._text!==t&&(this._text=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ch.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Ch.nextLineHeightBehavior=!1,Ch.experimentalLetterSpacing=!1,Ch);function Rh(){this.constructor=Ah}function Ch(t,e,i){var r=this,n=!1,s=(i||(i=C.ADAPTER.createCanvas(),n=!0),i.width=3,i.height=3,et.from(i));return s.orig=new w,s.trim=new w,(r=Sh.call(this,s)||this)._ownCanvas=n,r.canvas=i,r.context=i.getContext("2d"),r._resolution=C.RESOLUTION,r._autoResolution=!0,r._text=null,r._style=null,r._styleListener=null,r._font="",r.text=t,r.style=e,r.localStyleID=-1,r}C.UPLOADS_PER_FRAME=4;var Mh=function(t,e){return(Mh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};Ih.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},Ih.prototype.allowedToUpload=function(){return 0<this.itemsLeft--};var kh=Ih;function Ih(t){this.maxItemsPerFrame=t,this.itemsLeft=0}function Dh(t,e){var i=!1;if(t&&t._textures&&t._textures.length)for(var r,n=0;n<t._textures.length;n++)t._textures[n]instanceof et&&(r=t._textures[n].baseTexture,-1===e.indexOf(r)&&(e.push(r),i=!0));return i}function Fh(t,e){return t.baseTexture instanceof M&&(t=t.baseTexture,-1===e.indexOf(t)&&e.push(t),!0)}function Lh(t,e){return!!(t._texture&&t._texture instanceof et)&&(t=t._texture.baseTexture,-1===e.indexOf(t)&&e.push(t),!0)}function Nh(t,e){return e instanceof Ph&&(e.updateText(!0),!0)}function zh(t,e){return e instanceof bh&&(e=e.toFontString(),Eh.measureFont(e),!0)}function Bh(t,e){return t instanceof Ph&&(-1===e.indexOf(t.style)&&e.push(t.style),-1===e.indexOf(t)&&e.push(t),t=t._texture.baseTexture,-1===e.indexOf(t)&&e.push(t),!0)}function Uh(t,e){return t instanceof bh&&(-1===e.indexOf(t)&&e.push(t),!0)}jh.prototype.upload=function(i,r){var n=this;return"function"==typeof i&&(r=i,i=null),r&&ke("6.5.0","BasePrepare.upload callback is deprecated, use the return Promise instead."),new Promise(function(t){i&&n.add(i);function e(){null!=r&&r(),t()}n.queue.length?(n.completes.push(e),n.ticking||(n.ticking=!0,Wi.system.addOnce(n.tick,n,J.UPDATE_PRIORITY.UTILITY))):e()})},jh.prototype.tick=function(){setTimeout(this.delayedTick,0)},jh.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var t=this.queue[0],e=!1;if(t&&!t._destroyed)for(var i=0,r=this.uploadHooks.length;i<r;i++)if(this.uploadHooks[i](this.uploadHookHelper,t)){this.queue.shift(),e=!0;break}e||this.queue.shift()}if(this.queue.length)Wi.system.addOnce(this.tick,this,J.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;for(var n=this.completes.slice(0),i=this.completes.length=0,r=n.length;i<r;i++)n[i]()}},jh.prototype.registerFindHook=function(t){return t&&this.addHooks.push(t),this},jh.prototype.registerUploadHook=function(t){return t&&this.uploadHooks.push(t),this},jh.prototype.add=function(t){for(var e=0,i=this.addHooks.length;e<i&&!this.addHooks[e](t,this.queue);e++);if(t instanceof zi)for(e=t.children.length-1;0<=e;e--)this.add(t.children[e]);return this},jh.prototype.destroy=function(){this.ticking&&Wi.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};Fl=jh;function jh(t){var e=this;this.limiter=new kh(C.UPLOADS_PER_FRAME),this.renderer=t,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){e.queue&&e.prepareItems()},this.registerFindHook(Bh),this.registerFindHook(Uh),this.registerFindHook(Dh),this.registerFindHook(Fh),this.registerFindHook(Lh),this.registerUploadHook(Nh),this.registerUploadHook(zh)}function Gh(t,e){return e instanceof M&&(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0)}function Xh(t,e){if(!(e instanceof ah))return!1;for(var i=e.geometry,r=(e.finishPoly(),i.updateBatches(),i.batches),n=0;n<r.length;n++){var s=r[n].style.texture;s&&Gh(t,s.baseTexture)}return i.batchable||t.geometry.bind(i,e._resolveDirectShader(t)),!0}function Hh(t,e){return t instanceof ah&&(e.push(t),!0)}Mh(Wh=qh,kl=Yh=Fl),Wh.prototype=null===kl?Object.create(kl):(Vh.prototype=kl.prototype,new Vh),qh.extension={name:"prepare",type:J.ExtensionType.RendererPlugin};var Yh,Wh,kl=qh;function Vh(){this.constructor=Wh}function qh(t){t=Yh.call(this,t)||this;return t.uploadHookHelper=t.renderer,t.registerFindHook(Hh),t.registerUploadHook(Gh),t.registerUploadHook(Xh),t}Zh.prototype.beginFrame=function(){this.frameStart=Date.now()},Zh.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds};var Kh=Zh;function Zh(t){this.maxMilliseconds=t,this.frameStart=0}$h.prototype._updateResolution=function(t){var e=this.data.meta.scale,t=Ge(t=void 0===t?null:t,null);return 1!==(t=null===t?void 0!==e?parseFloat(e):1:t)&&this.baseTexture.setResolution(t),t},$h.prototype.parse=function(i){var t=this;return i&&ke("6.5.0","Spritesheet.parse callback is deprecated, use the return Promise instead."),new Promise(function(e){t._callback=function(t){null!=i&&i(t),e(t)},t._batchIndex=0,t._frameKeys.length<=$h.BATCH_SIZE?(t._processFrames(0),t._processAnimations(),t._parseComplete()):t._nextBatch()})},$h.prototype._processFrames=function(t){for(var e=t,i=$h.BATCH_SIZE;e-t<i&&e<this._frameKeys.length;){var r,n,s,o=this._frameKeys[e],a=this._frames[o],l=a.frame;l&&(r=s=null,n=!1!==a.trimmed&&a.sourceSize?a.sourceSize:a.frame,n=new w(0,0,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution),s=a.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!==a.trimmed&&a.spriteSourceSize&&(r=new w(Math.floor(a.spriteSourceSize.x)/this.resolution,Math.floor(a.spriteSourceSize.y)/this.resolution,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution)),this.textures[o]=new et(this.baseTexture,s,n,r,a.rotated?2:0,a.anchor),et.addToCache(this.textures[o],o)),e++}},$h.prototype._processAnimations=function(){var t,e=this.data.animations||{};for(t in e){this.animations[t]=[];for(var i=0;i<e[t].length;i++){var r=e[t][i];this.animations[t].push(this.textures[r])}}},$h.prototype._parseComplete=function(){var t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)},$h.prototype._nextBatch=function(){var t=this;this._processFrames(this._batchIndex*$h.BATCH_SIZE),this._batchIndex++,setTimeout(function(){t._batchIndex*$h.BATCH_SIZE<t._frameKeys.length?t._nextBatch():(t._processAnimations(),t._parseComplete())},0)},$h.prototype.destroy=function(t){for(var e in void 0===t&&(t=!1),this.textures)this.textures[e].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&(null!=(t=this._texture)&&t.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]},$h.BATCH_SIZE=1e3;var Qh=$h;function $h(t,e,i){void 0===i&&(i=null),this.linkedSheets=[],this._texture=t instanceof et?t:null,this.baseTexture=t instanceof M?t:this._texture.baseTexture,this.textures={},this.animations={},this.data=e;t=this.baseTexture.resource;this.resolution=this._updateResolution(i||(t?t.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}tu.use=function(r,i){var n=this,t=r.name+"_image";if(r.data&&r.type===J.LoaderResource.TYPE.JSON&&r.data.frames&&!n.resources[t]){var e=null==(e=null==(e=r.data)?void 0:e.meta)?void 0:e.related_multi_packs;if(Array.isArray(e))for(var s=0,o=e;s<o.length;s++)!function(t){var e,i;"string"!=typeof t||(e=t.replace(".json",""),i=ne.resolve(r.url.replace(n.baseUrl,""),t),n.resources[e]||Object.values(n.resources).some(function(t){return ne.format(ne.parse(t.url))===i}))||(t={crossOrigin:r.crossOrigin,loadType:J.LoaderResource.LOAD_TYPE.XHR,xhrType:J.LoaderResource.XHR_RESPONSE_TYPE.JSON,parentResource:r,metadata:r.metadata},n.add(e,i,t))}(o[s]);var e={crossOrigin:r.crossOrigin,metadata:r.metadata.imageMetadata,parentResource:r},a=tu.getResourcePath(r,n.baseUrl);n.add(t,a,e,function(t){var e;t.error?i(t.error):(e=new Qh(t.texture,r.data,r.url)).parse().then(function(){r.spritesheet=e,r.textures=e.textures,i()})})}else i()},tu.getResourcePath=function(t,e){return t.isDataUrl?t.data.meta.image:ne.resolve(t.url.replace(e,""),t.data.meta.image)},tu.extension=J.ExtensionType.Loader;var Jh=tu;function tu(){}var eu=function(t,e){return(eu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function iu(t,e){function i(){this.constructor=t}eu(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var ru,nu=new tt,su=(iu(ou,ru=fh),Object.defineProperty(ou.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(t){this.uvMatrix.clampMargin=t,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(ou.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(t){this.tileTransform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(ou.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(t){this.tileTransform.position.copyFrom(t)},enumerable:!1,configurable:!0}),ou.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},ou.prototype._render=function(t){var e=this._texture;e&&e.valid&&(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))},ou.prototype._calculateBounds=function(){var t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,i,r)},ou.prototype.getLocalBounds=function(t){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),t||(this._localBoundsRect||(this._localBoundsRect=new w),t=this._localBoundsRect),this._bounds.getRectangle(t)):ru.prototype.getLocalBounds.call(this,t)},ou.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,nu);var t=this._width,e=this._height,i=-t*this.anchor._x;if(nu.x>=i&&nu.x<i+t){i=-e*this.anchor._y;if(nu.y>=i&&nu.y<i+e)return!0}return!1},ou.prototype.destroy=function(t){ru.prototype.destroy.call(this,t),this.tileTransform=null,this.uvMatrix=null},ou.from=function(t,e){return new ou(t instanceof et?t:et.from(t,e),e.width,e.height)},Object.defineProperty(ou.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(ou.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!1,configurable:!0}),ou);function ou(t,e,i){void 0===e&&(e=100),void 0===i&&(i=100);var r=ru.call(this,t)||this;return r.tileTransform=new Si,r._width=e,r._height=i,r.uvMatrix=r.texture.uvMatrix||new ps(t),r.pluginName="tilingSprite",r.uvRespectAnchor=!1,r}var au,lu="#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",hu=new oi,uu=(iu(cu,au=yn),cu.prototype.contextChange=function(){var t=this.renderer,e={globals:t.globalUniforms};this.simpleShader=ss.from(lu,"#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",e),this.shader=1<t.context.webGLVersion?ss.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",e):ss.from(lu,"#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",e)},cu.prototype.render=function(t){var e=this.renderer,i=this.quad,r=i.vertices,n=(r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y),t.uvRespectAnchor?t.anchor.x:0),s=t.uvRespectAnchor?t.anchor.y:0,n=((r=i.uvs)[0]=r[6]=-n,r[1]=r[3]=-s,r[2]=r[4]=1-n,r[5]=r[7]=1-s,i.invalidate(),t._texture),r=n.baseTexture,s=0<r.alphaMode,o=t.tileTransform.localTransform,a=t.uvMatrix,l=r.isPowerOfTwo&&n.frame.width===r.width&&n.frame.height===r.height,r=(l&&(r._glTextures[e.CONTEXT_UID]?l=r.wrapMode!==J.WRAP_MODES.CLAMP:r.wrapMode===J.WRAP_MODES.CLAMP&&(r.wrapMode=J.WRAP_MODES.REPEAT)),l?this.simpleShader:this.shader),h=n.width,u=n.height,c=t._width,p=t._height;hu.set(o.a*h/c,o.b*h/p,o.c*u/c,o.d*u/p,o.tx/c,o.ty/p),hu.invert(),l?hu.prepend(a.mapCoord):(r.uniforms.uMapCoord=a.mapCoord.toArray(!0),r.uniforms.uClampFrame=a.uClampFrame,r.uniforms.uClampOffset=a.uClampOffset),r.uniforms.uTransform=hu.toArray(!0),r.uniforms.uColor=be(t.tint,t.worldAlpha,r.uniforms.uColor,s),r.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),r.uniforms.uSampler=n,e.shader.bind(r),e.geometry.bind(i),this.state.blendMode=ge(t.blendMode,s),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},cu.extension={name:"tilingSprite",type:J.ExtensionType.RendererPlugin},cu);function cu(t){var e=au.call(this,t)||this;return t.runners.contextChange.add(e),e.quad=new ln,e.state=as.for2d(),e}var pu=function(t,e){return(pu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function du(t,e){function i(){this.constructor=t}pu(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}mu.prototype.update=function(t){!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID||(this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID,t=this.uvBuffer.data,this.data&&this.data.length===t.length||(this.data=new Float32Array(t.length)),this.uvMatrix.multiplyUvs(t,this.data),this._updateID++)};var fu=mu;function mu(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}var _u,gu=new tt,vu=new ti,yu=(du(bu,_u=zi),Object.defineProperty(bu.prototype,"geometry",{get:function(){return this._geometry},set:function(t){this._geometry!==t&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=t,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(bu.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(bu.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(bu.prototype,"material",{get:function(){return this.shader},set:function(t){this.shader=t},enumerable:!1,configurable:!0}),Object.defineProperty(bu.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(bu.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(bu.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(t){this.shader.tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(bu.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(t){this.shader.texture=t},enumerable:!1,configurable:!0}),bu.prototype._render=function(t){var e=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===J.DRAW_MODES.TRIANGLES&&e.length<2*bu.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t)},bu.prototype._renderDefault=function(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},bu.prototype._renderToBatch=function(t){var e=this.geometry,i=this.shader,e=(i.uvMatrix&&(i.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=i._tintRGB,this._texture=i.texture,this.material.pluginName);t.batch.setObjectRenderer(t.plugins[e]),t.plugins[e].render(this)},bu.prototype.calculateVertices=function(){var t=this.geometry.buffers[0],e=t.data,t=t._updateID;if(t!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length));for(var i=this.transform.worldTransform,r=i.a,n=i.b,s=i.c,o=i.d,a=i.tx,l=i.ty,h=this.vertexData,u=0;u<h.length/2;u++){var c=e[2*u],p=e[2*u+1];h[2*u]=r*c+s*p+a,h[2*u+1]=n*c+o*p+l}if(this._roundPixels)for(var d=C.RESOLUTION,u=0;u<h.length;++u)h[u]=Math.round((h[u]*d|0)/d);this.vertexDirty=t}},bu.prototype.calculateUvs=function(){var t=this.geometry.buffers[1],e=this.shader;e.uvMatrix.isSimple?this.uvs=t.data:(this.batchUvs||(this.batchUvs=new fu(t,e.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)},bu.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)},bu.prototype.containsPoint=function(t){if(this.getBounds().contains(t.x,t.y)){this.worldTransform.applyInverse(t,gu);for(var e=this.geometry.getBuffer("aVertexPosition").data,i=vu.points,r=this.geometry.getIndex().data,n=r.length,s=4===this.drawMode?3:1,o=0;o+2<n;o+=s){var a=2*r[o],l=2*r[o+1],h=2*r[o+2];if(i[0]=e[a],i[1]=e[1+a],i[2]=e[l],i[3]=e[1+l],i[4]=e[h],i[5]=e[1+h],vu.contains(gu.x,gu.y))return!0}}return!1},bu.prototype.destroy=function(t){_u.prototype.destroy.call(this,t),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},bu.BATCHABLE_SIZE=100,bu);function bu(t,e,i,r){void 0===r&&(r=J.DRAW_MODES.TRIANGLES);var n=_u.call(this)||this;return n.geometry=t,n.shader=e,n.state=i||as.for2d(),n.drawMode=r,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=C.ROUND_PIXELS,n.batchUvs=null,n}du(wu,xu=ss),Object.defineProperty(wu.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)},enumerable:!1,configurable:!0}),Object.defineProperty(wu.prototype,"alpha",{get:function(){return this._alpha},set:function(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(wu.prototype,"tint",{get:function(){return this._tint},set:function(t){t!==this._tint&&(this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),wu.prototype.update=function(){var t;this._colorDirty&&(this._colorDirty=!1,t=this.texture.baseTexture,be(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)};var xu,Tu=wu;function wu(t,e){var i=this,r={uSampler:t,alpha:1,uTextureMatrix:oi.IDENTITY,uColor:new Float32Array([1,1,1,1])};return(e=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},e)).uniforms&&Object.assign(r,e.uniforms),(i=xu.call(this,e.program||rs.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"),r)||this)._colorDirty=!1,i.uvMatrix=new ps(t),i.batchable=void 0===e.program,i.pluginName=e.pluginName,i.tint=e.tint,i.alpha=e.alpha,i}du(Au,Eu=en),Object.defineProperty(Au.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0});var Eu,Su=Au;function Au(t,e,i){var r=Eu.call(this)||this,t=new Kr(t),e=new Kr(e,!0),i=new Kr(i,!0,!0);return r.addAttribute("aVertexPosition",t,2,!1,J.TYPES.FLOAT).addAttribute("aTextureCoord",e,2,!1,J.TYPES.FLOAT).addIndex(i),r._updateId=-1,r}var Ou=function(t,e){return(Ou=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};var Pu=function(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]},Ru=(Cu.test=function(t){return"string"==typeof t&&0===t.indexOf("info face=")},Cu.parse=function(t){var e,i=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(e in i){var n,s=i[e].match(/^[a-z]+/gm)[0],o=i[e].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),a={};for(n in o){var l=o[n].split("="),h=l[0],l=l[1].replace(/"/gm,""),u=parseFloat(l),l=isNaN(u)?l:u;a[h]=l}r[s].push(a)}var c=new Pu;return r.info.forEach(function(t){return c.info.push({face:t.face,size:parseInt(t.size,10)})}),r.common.forEach(function(t){return c.common.push({lineHeight:parseInt(t.lineHeight,10)})}),r.page.forEach(function(t){return c.page.push({id:parseInt(t.id,10),file:t.file})}),r.char.forEach(function(t){return c.char.push({id:parseInt(t.id,10),page:parseInt(t.page,10),x:parseInt(t.x,10),y:parseInt(t.y,10),width:parseInt(t.width,10),height:parseInt(t.height,10),xoffset:parseInt(t.xoffset,10),yoffset:parseInt(t.yoffset,10),xadvance:parseInt(t.xadvance,10)})}),r.kerning.forEach(function(t){return c.kerning.push({first:parseInt(t.first,10),second:parseInt(t.second,10),amount:parseInt(t.amount,10)})}),r.distanceField.forEach(function(t){return c.distanceField.push({distanceRange:parseInt(t.distanceRange,10),fieldType:t.fieldType})}),c},Cu);function Cu(){}ku.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&null!==t.getElementsByTagName("info")[0].getAttribute("face")},ku.parse=function(t){for(var e=new Pu,i=t.getElementsByTagName("info"),r=t.getElementsByTagName("common"),n=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),o=t.getElementsByTagName("kerning"),a=t.getElementsByTagName("distanceField"),l=0;l<i.length;l++)e.info.push({face:i[l].getAttribute("face"),size:parseInt(i[l].getAttribute("size"),10)});for(l=0;l<r.length;l++)e.common.push({lineHeight:parseInt(r[l].getAttribute("lineHeight"),10)});for(l=0;l<n.length;l++)e.page.push({id:parseInt(n[l].getAttribute("id"),10)||0,file:n[l].getAttribute("file")});for(l=0;l<s.length;l++){var h=s[l];e.char.push({id:parseInt(h.getAttribute("id"),10),page:parseInt(h.getAttribute("page"),10)||0,x:parseInt(h.getAttribute("x"),10),y:parseInt(h.getAttribute("y"),10),width:parseInt(h.getAttribute("width"),10),height:parseInt(h.getAttribute("height"),10),xoffset:parseInt(h.getAttribute("xoffset"),10),yoffset:parseInt(h.getAttribute("yoffset"),10),xadvance:parseInt(h.getAttribute("xadvance"),10)})}for(l=0;l<o.length;l++)e.kerning.push({first:parseInt(o[l].getAttribute("first"),10),second:parseInt(o[l].getAttribute("second"),10),amount:parseInt(o[l].getAttribute("amount"),10)});for(l=0;l<a.length;l++)e.distanceField.push({fieldType:a[l].getAttribute("fieldType"),distanceRange:parseInt(a[l].getAttribute("distanceRange"),10)});return e};var Mu=ku;function ku(){}Du.test=function(t){return"string"==typeof t&&-1<t.indexOf("<font>")&&(t=(new globalThis.DOMParser).parseFromString(t,"text/xml"),Mu.test(t))},Du.parse=function(t){t=(new globalThis.DOMParser).parseFromString(t,"text/xml");return Mu.parse(t)};var Iu=Du;function Du(){}var Fu=[Ru,Mu,Iu];function Lu(t){for(var e=0;e<Fu.length;e++)if(Fu[e].test(t))return Fu[e];return null}function Nu(t,e,i,r,n,s,o){var a,l=i.text,h=i.fontProperties,r=(e.translate(r,n),e.scale(s,s),o.strokeThickness/2),n=-o.strokeThickness/2;e.font=o.toFontString(),e.lineWidth=o.strokeThickness,e.textBaseline=o.textBaseline,e.lineJoin=o.lineJoin,e.miterLimit=o.miterLimit,e.fillStyle=function(t,e,i,r,n,s){var o=i.fill;if(!Array.isArray(o))return o;if(1===o.length)return o[0];var a=i.dropShadow?i.dropShadowDistance:0,l=i.padding||0,h=t.width/r-a-2*l,u=t.height/r-a-2*l,c=o.slice(),p=i.fillGradientStops.slice();if(!p.length)for(var d=c.length+1,f=1;f<d;++f)p.push(f/d);if(c.unshift(o[0]),p.unshift(0),c.push(o[o.length-1]),p.push(1),i.fillGradientType===J.TEXT_GRADIENT.LINEAR_VERTICAL)for(var m=e.createLinearGradient(h/2,l,h/2,u+l),_=0,g=(s.fontProperties.fontSize+i.strokeThickness)/u,f=0;f<n.length;f++)for(var v=s.lineHeight*f,y=0;y<c.length;y++){var b=0,b="number"==typeof p[y]?p[y]:y/c.length,b=Math.max(_,v/u+b*g),b=Math.min(b,1);m.addColorStop(b,c[y]),_=b}else{m=e.createLinearGradient(l,u/2,h+l,u/2);for(var x=c.length+1,T=1,f=0;f<c.length;f++){var w=void 0,w="number"==typeof p[f]?p[f]:T/x;m.addColorStop(w,c[f]),T++}}return m}(t,e,o,s,[l],i),e.strokeStyle=o.stroke,o.dropShadow?(t=de("number"==typeof(t=o.dropShadowColor)?t:me(t)),a=o.dropShadowBlur*s,s=o.dropShadowDistance*s,e.shadowColor="rgba("+255*t[0]+","+255*t[1]+","+255*t[2]+","+o.dropShadowAlpha+")",e.shadowBlur=a,e.shadowOffsetX=Math.cos(o.dropShadowAngle)*s,e.shadowOffsetY=Math.sin(o.dropShadowAngle)*s):(e.shadowColor="black",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0),o.stroke&&o.strokeThickness&&e.strokeText(l,r,n+i.lineHeight-h.descent),o.fill&&e.fillText(l,r,n+i.lineHeight-h.descent),e.setTransform(1,0,0,1,0,0),e.fillStyle="rgba(0, 0, 0, 0)"}function zu(t){return Array.from?Array.from(t):t.split("")}function Bu(t){return t.codePointAt?t.codePointAt(0):t.charCodeAt(0)}ju.prototype.destroy=function(){for(var t in this.chars)this.chars[t].texture.destroy(),this.chars[t].texture=null;for(var t in this.pageTextures)this._ownsTextures&&this.pageTextures[t].destroy(!0),this.pageTextures[t]=null;this.chars=null,this.pageTextures=null},ju.install=function(t,e,i){var r;if(t instanceof Pu)r=t;else{var n=Lu(t);if(!n)throw new Error("Unrecognized data format for font.");r=n.parse(t)}n=new ju(r,e=e instanceof et?[e]:e,i);return ju.available[n.font]=n},ju.uninstall=function(t){var e=ju.available[t];if(!e)throw new Error("No font found named '"+t+"'");e.destroy(),delete ju.available[t]},ju.from=function(t,e,i){if(!t)throw new Error("[BitmapFont] Property `name` is required.");for(var r,n,s,i=Object.assign({},ju.defaultOptions,i),o=i.chars,a=i.padding,l=i.resolution,h=i.textureWidth,u=i.textureHeight,c=function(t){for(var e=[],i=0,r=(t="string"==typeof t?[t]:t).length;i<r;i++){var n=t[i];if(Array.isArray(n)){if(2!==n.length)throw new Error("[BitmapFont]: Invalid character range length, expecting 2 got "+n.length+".");var s=n[0].charCodeAt(0),o=n[1].charCodeAt(0);if(o<s)throw new Error("[BitmapFont]: Invalid character range.");for(var a=s,l=o;a<=l;a++)e.push(String.fromCharCode(a))}else e.push.apply(e,zu(n))}if(0===e.length)throw new Error("[BitmapFont]: Empty set when resolving characters.");return e}(o),p=e instanceof bh?e:new bh(e),d=h,f=new Pu,m=(f.info[0]={face:p.fontFamily,size:p.fontSize},f.common[0]={lineHeight:p.fontSize},0),_=0,g=0,v=[],y=0;y<c.length;y++){r||((r=C.ADAPTER.createCanvas()).width=h,r.height=u,n=r.getContext("2d"),s=new M(r,{resolution:l}),v.push(new et(s)),f.page.push({id:v.length-1,file:""}));var b=Eh.measureText(c[y],p,!1,r),x=b.width,T=Math.ceil(b.height),w=Math.ceil(("italic"===p.fontStyle?2:1)*x);if(u-T*l<=_){if(0===_)throw new Error("[BitmapFont] textureHeight "+u+"px is too small for "+p.fontSize+"px fonts");--y,s=n=r=null,g=m=_=0}else{g=Math.max(T+b.fontProperties.descent,g);d<=w*l+m?(--y,_+=g*l,_=Math.ceil(_),g=m=0):(Nu(r,n,b,m,_,l,p),b=Bu(b.text),f.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-(p.dropShadow?p.dropShadowDistance:0)-(p.stroke?p.strokeThickness:0))}),m+=(w+2*a)*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 O=c[A],P=n.measureText(S).width,R=n.measureText(O).width,P=n.measureText(S+O).width-(P+R);P&&f.kerning.push({first:Bu(S),second:Bu(O),amount:P})}i=new ju(f,v,!0);return void 0!==ju.available[t]&&ju.uninstall(t),ju.available[t]=i},ju.ALPHA=[["a","z"],["A","Z"]," "],ju.NUMERIC=[["0","9"]],ju.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],ju.ASCII=[[" ","~"]],ju.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:ju.ALPHANUMERIC},ju.available={};var Uu=ju;function ju(t,e,i){var r=t.info[0],n=t.common[0],s=t.page[0],o=t.distanceField[0],a=Ge(s.file),l={};this._ownsTextures=i,this.font=r.face,this.size=r.size,this.lineHeight=n.lineHeight/a,this.chars={},this.pageTextures=l;for(var h=0;h<t.page.length;h++){var u=t.page[h],c=u.id,u=u.file;l[c]=e instanceof Array?e[h]:e[u],null!=o&&o.fieldType&&"none"!==o.fieldType&&(l[c].baseTexture.alphaMode=J.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA,l[c].baseTexture.mipmap=J.MIPMAP_MODES.OFF)}for(h=0;h<t.char.length;h++){var p=t.char[h],c=p.id,p=p.page,d=t.char[h],f=d.x,m=d.y,_=d.width,g=d.height,v=d.xoffset,y=d.yoffset,d=d.xadvance,f=(m/=a,_/=a,g/=a,v/=a,y/=a,d/=a,new w((f/=a)+l[p].frame.x/a,m+l[p].frame.y/a,_,g));this.chars[c]={xOffset:v,yOffset:y,xAdvance:d,kerning:{},texture:new et(l[p].baseTexture,f),page:p}}for(h=0;h<t.kerning.length;h++){var b=t.kerning[h],x=b.first,T=b.second,b=b.amount;x/=a,T/=a,b/=a,this.chars[T]&&(this.chars[T].kerning[x]=b)}this.distanceFieldRange=null==o?void 0:o.distanceRange,this.distanceFieldType=null!=(i=null==(s=null==o?void 0:o.fieldType)?void 0:s.toLowerCase())?i:"none"}var Gu,Xu,Hu=[],Yu=[],Wu=[],Vu=(Ou(Xu=Ku,Vu=Gu=zi),Xu.prototype=null===Vu?Object.create(Vu):(qu.prototype=Vu.prototype,new qu),Ku.prototype.updateText=function(){for(var t=Uu.available[this._fontName],e=this._fontSize/t.size,i=new tt,r=[],n=[],s=[],o=zu(this._text.replace(/(?:\r\n|\r)/g,"\n")||" "),L=this._maxWidth*t.size/this._fontSize,N="none"===t.distanceFieldType?Hu:Yu,a=null,l=0,h=0,u=0,c=-1,p=0,z=0,B=0,d=0,f=0;f<o.length;f++){var m,_,U=Bu(S=o[f]);/(?:\s)/.test(S)&&(c=f,p=l,d++),"\r"===S||"\n"===S?(n.push(l),s.push(-1),h=Math.max(h,l),++u,++z,i.x=0,i.y+=t.lineHeight,a=null,d=0):(m=t.chars[U])&&(a&&m.kerning[a]&&(i.x+=m.kerning[a]),(_=Wu.pop()||{texture:et.EMPTY,line:0,charCode:0,prevSpaces:0,position:new tt}).texture=m.texture,_.line=u,_.charCode=U,_.position.x=i.x+m.xOffset+this._letterSpacing/2,_.position.y=i.y+m.yOffset,_.prevSpaces=d,r.push(_),l=_.position.x+Math.max(m.xAdvance-m.xOffset,m.texture.orig.width),i.x+=m.xAdvance+this._letterSpacing,B=Math.max(B,m.yOffset+m.texture.height),a=U,-1!==c&&0<L&&i.x>L&&(Oe(r,1+c-++z,1+f-c),f=c,c=-1,n.push(p),s.push(0<r.length?r[r.length-1].prevSpaces:0),h=Math.max(h,p),u++,i.x=0,i.y+=t.lineHeight,a=null,d=0))}for(var j=o[o.length-1],G=("\r"!==j&&"\n"!==j&&(/(?:\s)/.test(j)&&(l=p),n.push(l),h=Math.max(h,l),s.push(-1)),[]),f=0;f<=u;f++){var g=0;"right"===this._align?g=h-n[f]:"center"===this._align?g=(h-n[f])/2:"justify"===this._align&&(g=s[f]<0?0:(h-n[f])/s[f]),G.push(g)}for(var X=r.length,v={},y=[],b=this._activePagesMeshData,f=0;f<b.length;f++)N.push(b[f]);for(f=0;f<X;f++){var H,x,T,w=(A=r[f].texture).baseTexture.uid;v[w]||((I=N.pop())||(x=new Su,H=T=void 0,H="none"===t.distanceFieldType?(T=new Tu(et.EMPTY),J.BLEND_MODES.NORMAL):(T=new Tu(et.EMPTY,{program:rs.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}}),J.BLEND_MODES.NORMAL_NPM),(x=new yu(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 et(A.baseTexture),I.mesh.texture=T[w],I.mesh.tint=this._tint,y.push(I),v[w]=I),v[w].total++}for(f=0;f<b.length;f++)-1===y.indexOf(b[f])&&this.removeChild(b[f].mesh);for(f=0;f<y.length;f++)y[f].mesh.parent!==this&&this.addChild(y[f].mesh);for(f in this._activePagesMeshData=y,v){var E=(I=v[f]).total;if(!((null==(Y=I.indices)?void 0:Y.length)>6*E)||I.vertices.length<2*yu.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,V=4*Y*2;V<W.length;V++)W[V]=0;I.mesh.size=6*E}for(f=0;f<X;f++){var S,A,O=(S=r[f]).position.x+G[S.line]*("justify"===this._align?S.prevSpaces:1),O=(O=this._roundPixels?Math.round(O):O)*e,P=S.position.y*e,R=v[(A=S.texture).baseTexture.uid],C=A.frame,M=A._uvs,k=R.index++;R.indices[6*k+0]=0+4*k,R.indices[6*k+1]=1+4*k,R.indices[6*k+2]=2+4*k,R.indices[6*k+3]=0+4*k,R.indices[6*k+4]=2+4*k,R.indices[6*k+5]=3+4*k,R.vertices[8*k+0]=O,R.vertices[8*k+1]=P,R.vertices[8*k+2]=O+C.width*e,R.vertices[8*k+3]=P,R.vertices[8*k+4]=O+C.width*e,R.vertices[8*k+5]=P+C.height*e,R.vertices[8*k+6]=O,R.vertices[8*k+7]=P+C.height*e,R.uvs[8*k+0]=M.x0,R.uvs[8*k+1]=M.y0,R.uvs[8*k+2]=M.x1,R.uvs[8*k+3]=M.y1,R.uvs[8*k+4]=M.x2,R.uvs[8*k+5]=M.y2,R.uvs[8*k+6]=M.x3,R.uvs[8*k+7]=M.y3}for(f in this._textWidth=h*e,this._textHeight=(i.y+t.lineHeight)*e,v){var I=v[f];if(0!==this.anchor.x||0!==this.anchor.y)for(var D=0,F=this._textWidth*this.anchor.x,q=this._textHeight*this.anchor.y,K=0;K<I.total;K++)I.vertices[D++]-=F,I.vertices[D++]-=q,I.vertices[D++]-=F,I.vertices[D++]-=q,I.vertices[D++]-=F,I.vertices[D++]-=q,I.vertices[D++]-=F,I.vertices[D++]-=q;this._maxLineHeight=B*e;var Z=I.mesh.geometry.getBuffer("aVertexPosition"),Q=I.mesh.geometry.getBuffer("aTextureCoord"),$=I.mesh.geometry.getIndex();Z.data=I.vertices,Q.data=I.uvs,$.data=I.indices,Z.update(),Q.update(),$.update()}for(f=0;f<r.length;f++)Wu.push(r[f])},Ku.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},Ku.prototype._render=function(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0);var e=Uu.available[this._fontName],i=e.distanceFieldRange,r=e.distanceFieldType,e=e.size;if("none"!==r)for(var r=this.worldTransform,n=r.a,s=r.b,o=r.c,r=r.d,n=Math.sqrt(n*n+s*s),s=Math.sqrt(o*o+r*r),a=(Math.abs(n)+Math.abs(s))/2,l=this._fontSize/e,h=0,u=this._activePagesMeshData;h<u.length;h++)u[h].mesh.shader.uniforms.uFWidth=Math.min(a*i*l*this._resolution,1);Gu.prototype._render.call(this,t)},Ku.prototype.getLocalBounds=function(){return this.validate(),Gu.prototype.getLocalBounds.call(this)},Ku.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},Object.defineProperty(Ku.prototype,"tint",{get:function(){return this._tint},set:function(t){if(this._tint!==t){this._tint=t;for(var e=0;e<this._activePagesMeshData.length;e++)this._activePagesMeshData[e].mesh.tint=t}},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"fontName",{get:function(){return this._fontName},set:function(t){if(!Uu.available[t])throw new Error('Missing BitmapFont "'+t+'"');this._fontName!==t&&(this._fontName=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"anchor",{get:function(){return this._anchor},set:function(t){"number"==typeof t?this._anchor.set(t):this._anchor.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"text",{get:function(){return this._text},set:function(t){t=String(null==t?"":t),this._text!==t&&(this._text=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"maxLineHeight",{get:function(){return this.validate(),this._maxLineHeight},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"textWidth",{get:function(){return this.validate(),this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){t!==this._roundPixels&&(this._roundPixels=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"textHeight",{get:function(){return this.validate(),this._textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(Ku.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Ku.prototype.destroy=function(t){var e,i=this._textureCache;for(e in i)i[e].destroy(),delete i[e];this._textureCache=null,Gu.prototype.destroy.call(this,t)},Ku.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0},Ku);function qu(){this.constructor=Xu}function Ku(t,e){void 0===e&&(e={});var i=Gu.call(this)||this,e=(i._tint=16777215,Object.assign({},Ku.styleDefaults,e)),r=e.align,n=e.tint,s=e.maxWidth,o=e.letterSpacing,a=e.fontName,e=e.fontSize;if(Uu.available[a])return i._activePagesMeshData=[],i._textWidth=0,i._textHeight=0,i._align=r,i._tint=n,i._fontName=a,i._fontSize=e||Uu.available[a].size,i.text=t,i._maxWidth=s,i._maxLineHeight=0,i._letterSpacing=o,i._anchor=new ni(function(){i.dirty=!0},i,0,0),i._roundPixels=C.ROUND_PIXELS,i.dirty=!0,i._resolution=C.RESOLUTION,i._autoResolution=!0,i._textureCache={},i;throw new Error('Missing BitmapFont "'+a+'"')}Qu.add=function(){J.LoaderResource.setExtensionXhrType("fnt",J.LoaderResource.XHR_RESPONSE_TYPE.TEXT)},Qu.use=function(e,i){var t=Lu(e.data);if(t)for(var r=Qu.getBaseUrl(this,e),n=t.parse(e.data),s={},o=function(t){s[t.metadata.pageFile]=t.texture,Object.keys(s).length===n.page.length&&(e.bitmapFont=Uu.install(n,s,!0),i())},a=0;a<n.page.length;++a){var l,h,u=n.page[a].file,c=r+u,p=!1;for(l in this.resources){var d=this.resources[l];if(d.url===c){d.metadata.pageFile=u,d.texture?o(d):d.onAfterMiddleware.add(o),p=!0;break}}p||(h={crossOrigin:e.crossOrigin,loadType:J.LoaderResource.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:u},e.metadata.imageMetadata),parentResource:e},this.add(c,h,o))}else i()},Qu.getBaseUrl=function(t,e){var i=e.isDataUrl?"":Qu.dirname(e.url);return e.isDataUrl&&("."===i&&(i=""),t.baseUrl&&i&&"/"===t.baseUrl.charAt(t.baseUrl.length-1)&&(i+="/")),(i=i.replace(t.baseUrl,""))&&"/"!==i.charAt(i.length-1)&&(i+="/"),i},Qu.dirname=function(t){var e=t.replace(/\\/g,"/").replace(/\/$/,"").replace(/\/[^\/]*$/,"");return e===t?".":""===e?"/":e},Qu.extension=J.ExtensionType.Loader;var Zu=Qu;function Qu(){}var $u=function(t,e){return($u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};$u(tc=rc,ec=Ju=$),tc.prototype=null===ec?Object.create(ec):(ic.prototype=ec.prototype,new ic),Object.defineProperty(rc.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0});var Ju,tc,ec=rc;function ic(){this.constructor=tc}function rc(t){void 0===t&&(t=1);var e=Ju.call(this,fo,"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 e.alpha=t,e}var nc=function(t,e){return(nc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function sc(t,e){function i(){this.constructor=t}nc(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var oc="\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 ac,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]},hc=["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=ac=ac||{})[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";sc(pc,uc=$),pc.prototype.apply=function(t,e,i,r){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/e.width):this.uniforms.strength=1/i.height*(i.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,i,r);else{var n=t.getFilterTexture(),s=t.renderer,o=e,a=n;this.state.blend=!1,t.applyFilter(this,o,a,ac.CLEAR);for(var l=1;l<this.passes-1;l++){t.bindAndClear(o,ac.BLIT);var h=this.uniforms.uSampler=a,a=o,o=h;s.shader.bind(this),s.geometry.draw(5)}this.state.blend=!0,t.applyFilter(this,a,i,r),t.returnFilterTexture(n)}},Object.defineProperty(pc.prototype,"blur",{get:function(){return this.strength},set:function(t){this.padding=1+2*Math.abs(t),this.strength=t},enumerable:!1,configurable:!0}),Object.defineProperty(pc.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=t,this.passes=t},enumerable:!1,configurable:!0});var uc,cc=pc;function pc(t,e,i,r,n){void 0===e&&(e=8),void 0===i&&(i=4),void 0===r&&(r=C.FILTER_RESOLUTION);var s=this,o=function(t,e){for(var i=Math.ceil(t/2),r=oc,n="",s=e?"vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);",o=0;o<t;o++)n=n+s.replace("%index%",o.toString()).replace("%sampleIndex%",o-(i-1)+".0")+"\n";return r=(r=r.replace("%blur%",n)).replace("%size%",t.toString())}(n=void 0===n?5:n,t),n=function(t){for(var e=lc[t],i=e.length,r=hc,n="",s=0;s<t;s++)var o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",s.toString()),a=s,n=n+(o=o.replace("%value%",e[a=i<=s?t-s-1:a].toString()))+"\n";return r=(r=r.replace("%blur%",n)).replace("%size%",t.toString())}(n);return(s=uc.call(this,o,n)||this).horizontal=t,s.resolution=r,s._quality=0,s.quality=i,s.blur=e,s}sc(fc,dc=$),fc.prototype.apply=function(t,e,i,r){var n=Math.abs(this.blurXFilter.strength),s=Math.abs(this.blurYFilter.strength);n&&s?(n=t.getFilterTexture(),this.blurXFilter.apply(t,e,n,ac.CLEAR),this.blurYFilter.apply(t,n,i,r),t.returnFilterTexture(n)):(s?this.blurYFilter:this.blurXFilter).apply(t,e,i,r)},fc.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(fc.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"quality",{get:function(){return this.blurXFilter.quality},set:function(t){this.blurXFilter.quality=this.blurYFilter.quality=t},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"blendMode",{get:function(){return this.blurYFilter.blendMode},set:function(t){this.blurYFilter.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"repeatEdgePixels",{get:function(){return this._repeatEdgePixels},set:function(t){this._repeatEdgePixels=t,this.updatePadding()},enumerable:!1,configurable:!0});var dc,T=fc;function fc(t,e,i,r){void 0===t&&(t=8),void 0===e&&(e=4),void 0===i&&(i=C.FILTER_RESOLUTION),void 0===r&&(r=5);var n=dc.call(this)||this;return n.blurXFilter=new cc(!0,t,e,i,r),n.blurYFilter=new cc(!1,t,e,i,r),n.resolution=i,n.quality=e,n.blur=t,n.repeatEdgePixels=!1,n}var mc=function(t,e){return(mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};mc(gc=E,vc=_c=$),gc.prototype=null===vc?Object.create(vc):(yc.prototype=vc.prototype,new yc),E.prototype._loadMatrix=function(t,e){var i=t;(e=void 0===e?!1:e)&&(this._multiply(i,this.uniforms.m,t),i=this._colorMatrix(i)),this.uniforms.m=i},E.prototype._multiply=function(t,e,i){return t[0]=e[0]*i[0]+e[1]*i[5]+e[2]*i[10]+e[3]*i[15],t[1]=e[0]*i[1]+e[1]*i[6]+e[2]*i[11]+e[3]*i[16],t[2]=e[0]*i[2]+e[1]*i[7]+e[2]*i[12]+e[3]*i[17],t[3]=e[0]*i[3]+e[1]*i[8]+e[2]*i[13]+e[3]*i[18],t[4]=e[0]*i[4]+e[1]*i[9]+e[2]*i[14]+e[3]*i[19]+e[4],t[5]=e[5]*i[0]+e[6]*i[5]+e[7]*i[10]+e[8]*i[15],t[6]=e[5]*i[1]+e[6]*i[6]+e[7]*i[11]+e[8]*i[16],t[7]=e[5]*i[2]+e[6]*i[7]+e[7]*i[12]+e[8]*i[17],t[8]=e[5]*i[3]+e[6]*i[8]+e[7]*i[13]+e[8]*i[18],t[9]=e[5]*i[4]+e[6]*i[9]+e[7]*i[14]+e[8]*i[19]+e[9],t[10]=e[10]*i[0]+e[11]*i[5]+e[12]*i[10]+e[13]*i[15],t[11]=e[10]*i[1]+e[11]*i[6]+e[12]*i[11]+e[13]*i[16],t[12]=e[10]*i[2]+e[11]*i[7]+e[12]*i[12]+e[13]*i[17],t[13]=e[10]*i[3]+e[11]*i[8]+e[12]*i[13]+e[13]*i[18],t[14]=e[10]*i[4]+e[11]*i[9]+e[12]*i[14]+e[13]*i[19]+e[14],t[15]=e[15]*i[0]+e[16]*i[5]+e[17]*i[10]+e[18]*i[15],t[16]=e[15]*i[1]+e[16]*i[6]+e[17]*i[11]+e[18]*i[16],t[17]=e[15]*i[2]+e[16]*i[7]+e[17]*i[12]+e[18]*i[17],t[18]=e[15]*i[3]+e[16]*i[8]+e[17]*i[13]+e[18]*i[18],t[19]=e[15]*i[4]+e[16]*i[9]+e[17]*i[14]+e[18]*i[19]+e[19],t},E.prototype._colorMatrix=function(t){t=new Float32Array(t);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},E.prototype.brightness=function(t,e){this._loadMatrix([t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0],e)},E.prototype.tint=function(t,e){this._loadMatrix([(t>>16&255)/255,0,0,0,0,0,(t>>8&255)/255,0,0,0,0,0,(255&t)/255,0,0,0,0,0,1,0],e)},E.prototype.greyscale=function(t,e){this._loadMatrix([t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0],e)},E.prototype.blackAndWhite=function(t){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],t)},E.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var i=Math.cos(t),t=Math.sin(t),r=(0,Math.sqrt)(1/3);this._loadMatrix([i+1/3*(1-i),1/3*(1-i)-r*t,1/3*(1-i)+r*t,0,0,1/3*(1-i)+r*t,i+1/3*(1-i),1/3*(1-i)-r*t,0,0,1/3*(1-i)-r*t,1/3*(1-i)+r*t,i+1/3*(1-i),0,0,0,0,0,1,0],e)},E.prototype.contrast=function(t,e){var t=(t||0)+1,i=-.5*(t-1);this._loadMatrix([t,0,0,0,i,0,t,0,0,i,0,0,t,0,i,0,0,0,1,0],e)},E.prototype.saturate=function(t,e){var t=2*(t=void 0===t?0:t)/3+1,i=-.5*(t-1);this._loadMatrix([t,i,i,0,0,i,t,i,0,0,i,i,t,0,0,0,0,0,1,0],e)},E.prototype.desaturate=function(){this.saturate(-1)},E.prototype.negative=function(t){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],t)},E.prototype.sepia=function(t){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],t)},E.prototype.technicolor=function(t){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],t)},E.prototype.polaroid=function(t){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],t)},E.prototype.toBGR=function(t){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t)},E.prototype.kodachrome=function(t){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],t)},E.prototype.browni=function(t){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],t)},E.prototype.vintage=function(t){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],t)},E.prototype.colorTone=function(t,e,i,r,n){var s=((i=i||16770432)>>16&255)/255,o=(i>>8&255)/255,i=(255&i)/255,a=((r=r||3375104)>>16&255)/255,l=(r>>8&255)/255,r=(255&r)/255;this._loadMatrix([.3,.59,.11,0,0,s,o,i,t=t||.2,0,a,l,r,e=e||.15,0,s-a,o-l,i-r,0,0],n)},E.prototype.night=function(t,e){this._loadMatrix([-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e)},E.prototype.predator=function(t,e){this._loadMatrix([11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0],e)},E.prototype.lsd=function(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)},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(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0});var _c,gc,vc=E;function yc(){this.constructor=gc}function E(){var t=this,e={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(t=_c.call(this,mo,"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",e)||this).alpha=1,t}vc.prototype.grayscale=vc.prototype.greyscale;var bc=function(t,e){return(bc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};bc(Tc=Sc,wc=xc=$),Tc.prototype=null===wc?Object.create(wc):(Ec.prototype=wc.prototype,new Ec),Sc.prototype.apply=function(t,e,i,r){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var n=this.maskSprite.worldTransform,s=Math.sqrt(n.a*n.a+n.b*n.b),o=Math.sqrt(n.c*n.c+n.d*n.d);0!==s&&0!==o&&(this.uniforms.rotation[0]=n.a/s,this.uniforms.rotation[1]=n.b/s,this.uniforms.rotation[2]=n.c/o,this.uniforms.rotation[3]=n.d/o),t.applyFilter(this,e,i,r)},Object.defineProperty(Sc.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t},enumerable:!1,configurable:!0});var xc,Tc,wc=Sc;function Ec(){this.constructor=Tc}function Sc(t,e){var i=this,r=new oi;return t.renderable=!1,(i=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:t._texture,filterMatrix:r,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this).maskSprite=t,i.maskMatrix=r,i.scale=new tt(e=null==e?20:e,e),i}var Ac=function(t,e){return(Ac=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};Ac(Pc=Mc,Rc=Oc=$),Pc.prototype=null===Rc?Object.create(Rc):(Cc.prototype=Rc.prototype,new Cc);var Oc,Pc,Rc=Mc;function Cc(){this.constructor=Pc}function Mc(){return Oc.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 kc=function(t,e){return(kc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};kc(Dc=Nc,Fc=Ic=$),Dc.prototype=null===Fc?Object.create(Fc):(Lc.prototype=Fc.prototype,new Lc),Object.defineProperty(Nc.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t},enumerable:!1,configurable:!0}),Object.defineProperty(Nc.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t},enumerable:!1,configurable:!0});var Ic,Dc,Fc=Nc;function Lc(){this.constructor=Dc}function Nc(t,e){void 0===t&&(t=.5),void 0===e&&(e=Math.random());var i=Ic.call(this,mo,"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 i.noise=t,i.seed=e,i}(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=O=O||{})[A.NONE=0]="NONE",A[A.LOW=2]="LOW",A[A.MEDIUM=4]="MEDIUM",A[A.HIGH=8]="HIGH";var zc,Bc,Uc,jc,Gc,Xc,Hc=new oi,Yc=(i.prototype._cacheAsBitmap=!1,i.prototype._cacheData=null,i.prototype._cacheAsBitmapResolution=null,i.prototype._cacheAsBitmapMultisample=O.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(i.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&((this._cacheAsBitmap=t)?(this._cacheData||(this._cacheData=new Yc),(e=this._cacheData).originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((e=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),i.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},i.prototype._initCachedDisplayObject=function(t){var e,i,r,n,s,o,a,l;this._cacheData&&this._cacheData.sprite||(e=this.alpha,this.alpha=1,t.batch.flush(),i=this.getLocalBounds(null,!0).clone(),this.filters&&this.filters.length&&(r=this.filters[0].padding,i.pad(r)),i.ceil(C.RESOLUTION),r=t.renderTexture.current,n=t.renderTexture.sourceFrame.clone(),s=t.renderTexture.destinationFrame.clone(),o=t.projection.transform,a=Gr.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:null!=(a=this.cacheAsBitmapMultisample)?a:t.multisample}),l="cacheAsBitmap_"+ ++Re,this._cacheData.textureCacheId=l,M.addToCache(a.baseTexture,l),et.addToCache(a,l),l=this.transform.localTransform.copyTo(Hc).invert().translate(-i.x,-i.y),this.render=this._cacheData.originalRender,t.render(this,{renderTexture:a,clear:!0,transform:l,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=o,t.renderTexture.bind(r,n,s),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=e,(l=new fh(a)).transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(i.x/i.width),l.anchor.y=-(i.y/i.height),l.alpha=e,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))},i.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},i.prototype._initCachedDisplayObjectCanvas=function(t){var e,i,r,n,s,o;this._cacheData&&this._cacheData.sprite||(e=this.getLocalBounds(null,!0),i=this.alpha,this.alpha=1,r=t.context,n=t._projTransform,e.ceil(C.RESOLUTION),s=Gr.create({width:e.width,height:e.height}),o="cacheAsBitmap_"+ ++Re,this._cacheData.textureCacheId=o,M.addToCache(s.baseTexture,o),et.addToCache(s,o),this.transform.localTransform.copyTo(o=Hc),o.invert(),o.tx-=e.x,o.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:s,clear:!0,transform:o,skipUpdateTransform:!1}),t.context=r,t._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=i,(o=new fh(s)).transform.worldTransform=this.transform.worldTransform,o.anchor.x=-(e.x/e.width),o.anchor.y=-(e.y/e.height),o.alpha=i,o._bounds=this._bounds,this._cacheData.sprite=o,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=o.containsPoint.bind(o))},i.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},i.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},i.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,M.removeFromCache(this._cacheData.textureCacheId),et.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},i.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)},i.prototype.name=null,zi.prototype.getChildByName=function(t,e){for(var i=0,r=this.children.length;i<r;i++)if(this.children[i].name===t)return this.children[i];if(e)for(i=0,r=this.children.length;i<r;i++){var n=this.children[i];if(n.getChildByName){n=n.getChildByName(t,!0);if(n)return n}}return null},i.prototype.getGlobalPosition=function(t,e){return void 0===t&&(t=new tt),void 0===e&&(e=!1),this.parent?this.parent.toGlobal(this.position,t,e):(t.x=this.position.x,t.y=this.position.y),t},Wc.init=function(t){var i=this;Object.defineProperty(this,"resizeTo",{set:function(t){globalThis.removeEventListener("resize",this.queueResize),(this._resizeTo=t)&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){var t,e;i._resizeTo&&(i.cancelResize(),e=i._resizeTo===globalThis.window?(t=globalThis.innerWidth,globalThis.innerHeight):(t=(e=i._resizeTo).clientWidth,e.clientHeight),i.renderer.resize(t,e))},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.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=J.ExtensionType.Application,Wc);function Wc(){}(O={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",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",(O=zc=zc||{})[O.NEAREST=0]="NEAREST",O[O.LINEAR=1]="LINEAR",(O=Bc=Bc||{})[O.CLAMP=33071]="CLAMP",O[O.REPEAT=10497]="REPEAT",O[O.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",(O=Uc=Uc||{})[O.OFF=0]="OFF",O[O.POW2=1]="POW2",O[O.ON=2]="ON",O[O.ON_MANUAL=3]="ON_MANUAL",(O={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",O[O.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",O[O.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",O[O.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(O={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",O[O.CLEAR=1]="CLEAR",O[O.BLIT=2]="BLIT",(O=jc=jc||{})[O.AUTO=0]="AUTO",O[O.MANUAL=1]="MANUAL",(O=Gc=Gc||{}).LOW="lowp",O.MEDIUM="mediump",O.HIGH="highp",(O=Xc=Xc||{})[O.NONE=0]="NONE",O[O.LOW=2]="LOW",O[O.MEDIUM=4]="MEDIUM",O[O.HIGH=8]="HIGH";function Vc(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&1<t.maxTouchPoints&&"undefined"==typeof MSStream}var O={createCanvas:function(t,e){var i=document.createElement("canvas");return i.width=t,i.height=e,i},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var t;return null!=(t=document.baseURI)?t:window.location.href},fetch:function(t,e){return fetch(t,e)}},qc=/iPhone/i,Kc=/iPod/i,Zc=/iPad/i,P=/\biOS-universal(?:.+)Mac\b/i,Qc=/\bAndroid(?:.+)Mobile\b/i,$c=/Android/i,Jc=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,tp=/Silk/i,ep=/Windows Phone/i,ip=/\bWindows(?:.+)ARM\b/i,rp=/BlackBerry/i,np=/BB10/i,sp=/Opera Mini/i,op=/\b(CriOS|Chrome)(?:.+)Mobile/i,ap=/Mobile(?:.+)Firefox\b/i;R=globalThis.navigator,gp={userAgent:"",platform:"",maxTouchPoints:0},R||"undefined"==typeof navigator?"string"==typeof R?gp.userAgent=R:R&&R.userAgent&&(gp={userAgent:R.userAgent,platform:R.platform,maxTouchPoints:R.maxTouchPoints||0}):gp={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0},void 0!==(k=(R=void 0!==(k=(R=gp.userAgent).split("[FBAN"))[1]?k[0]:R).split("Twitter"))[1]&&(R=k[0]),lp=R,(R={apple:{phone:(k=function(t){return t.test(lp)})(qc)&&!k(ep),ipod:k(Kc),tablet:!k(qc)&&(k(Zc)||Vc(gp))&&!k(ep),universal:k(P),device:(k(qc)||k(Kc)||k(Zc)||k(P)||Vc(gp))&&!k(ep)},amazon:{phone:k(Jc),tablet:!k(Jc)&&k(tp),device:k(Jc)||k(tp)},android:{phone:!k(ep)&&k(Jc)||!k(ep)&&k(Qc),tablet:!k(ep)&&!k(Jc)&&!k(Qc)&&(k(tp)||k($c)),device:!k(ep)&&(k(Jc)||k(tp)||k(Qc)||k($c))||k(/\bokhttp\b/i)},windows:{phone:k(ep),tablet:k(ip),device:k(ep)||k(ip)},other:{blackberry:k(rp),blackberry10:k(np),opera:k(sp),firefox:k(ap),chrome:k(op),device:k(rp)||k(np)||k(sp)||k(ap)||k(op)},any:!1,phone:!1,tablet:!1}).any=R.apple.device||R.android.device||R.windows.device||R.other.device,R.phone=R.apple.phone||R.android.phone||R.windows.phone,R.tablet=R.apple.tablet||R.android.tablet||R.windows.tablet;var R,lp,k,qc=R;var hp,up={ADAPTER:O,MIPMAP_TEXTURES:Uc.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Xc.NONE,SPRITE_MAX_TEXTURES:(Kc=32,Zc=!0,(qc.tablet||qc.phone)&&(qc.apple.device&&(hp=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(hp[1],10)<11&&(Zc=!1),qc.android.device&&(hp=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(hp[1],10)<7&&(Zc=!1)),Zc?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:jc.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:Bc.CLAMP,SCALE_MODE:zc.LINEAR,PRECISION_VERTEX:Gc.HIGH,PRECISION_FRAGMENT:qc.apple.device?Gc.HIGH:Gc.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!qc.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},cp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pp(t,e,i){t(i={path:e,exports:{},require:function(t,e){throw null==e&&i.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},i.exports),i.exports}pp(function(t){var r=Object.prototype.hasOwnProperty,f="~";function i(){}function s(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new s(i,r||t,n),r=f?f+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],i]:t._events[r].push(i):(t._events[r]=i,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function e(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(f=!1)),e.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)r.call(t,e)&&i.push(f?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},e.prototype.listeners=function(t){var t=f?f+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,r=e.length,n=new Array(r);i<r;i++)n[i]=e[i].fn;return n},e.prototype.listenerCount=function(t){t=f?f+t:t,t=this._events[t];return t?t.fn?1:t.length:0},e.prototype.emit=function(t,e,i,r,n,s){var o=arguments,a=f?f+t:t;if(!this._events[a])return!1;var l,h=this._events[a],u=arguments.length;if(h.fn){switch(h.once&&this.removeListener(t,h.fn,void 0,!0),u){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,e),!0;case 3:return h.fn.call(h.context,e,i),!0;case 4:return h.fn.call(h.context,e,i,r),!0;case 5:return h.fn.call(h.context,e,i,r,n),!0;case 6:return h.fn.call(h.context,e,i,r,n,s),!0}for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=o[d];h.fn.apply(h.context,l)}else for(var c,p=h.length,d=0;d<p;d++)switch(h[d].once&&this.removeListener(t,h[d].fn,void 0,!0),u){case 1:h[d].fn.call(h[d].context);break;case 2:h[d].fn.call(h[d].context,e);break;case 3:h[d].fn.call(h[d].context,e,i);break;case 4:h[d].fn.call(h[d].context,e,i,r);break;default:if(!l)for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=o[c];h[d].fn.apply(h[d].context,l)}return!0},e.prototype.on=function(t,e,i){return n(this,t,e,i,!1)},e.prototype.once=function(t,e,i){return n(this,t,e,i,!0)},e.prototype.removeListener=function(t,e,i,r){t=f?f+t:t;if(this._events[t])if(e){var n=this._events[t];if(n.fn)n.fn!==e||r&&!n.once||i&&n.context!==i||l(this,t);else{for(var s=0,o=[],a=n.length;s<a;s++)(n[s].fn!==e||r&&!n[s].once||i&&n[s].context!==i)&&o.push(n[s]);o.length?this._events[t]=1===o.length?o[0]:o:l(this,t)}}else l(this,t);return this},e.prototype.removeAllListeners=function(t){return t?(t=f?f+t:t,this._events[t]&&l(this,t)):(this._events=new i,this._eventsCount=0),this},e.prototype.off=e.prototype.removeListener,e.prototype.addListener=e.prototype.on,e.prefixed=f,t.exports=e.EventEmitter=e}),pp(function(t,e){var i=cp,r=e&&!e.nodeType&&e,e=t&&!t.nodeType&&t,n="object"==typeof cp&&cp;n.global!==n&&n.window!==n&&n.self!==n||(i=n);var s,o,_=2147483647,g=36,v=26,a=38,l=700,h=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=g-1,y=Math.floor,b=String.fromCharCode;function x(t){throw RangeError(p[t])}function f(t,e){for(var i=t.length,r=[];i--;)r[i]=e(t[i]);return r}function m(t,e){var i=t.split("@"),r="",i=(1<i.length&&(r=i[0]+"@",t=i[1]),(t=t.replace(c,".")).split("."));return r+f(i,e).join(".")}function T(t){for(var e,i,r=[],n=0,s=t.length;n<s;)55296<=(e=t.charCodeAt(n++))&&e<=56319&&n<s?56320==(64512&(i=t.charCodeAt(n++)))?r.push(((1023&e)<<10)+(1023&i)+65536):(r.push(e),n--):r.push(e);return r}function w(t){return f(t,function(t){var e="";return 65535<t&&(e+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=b(t)}).join("")}function E(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function S(t,e,i){var r=0;for(t=i?y(t/l):t>>1,t+=y(t/e);d*v>>1<t;r+=g)t=y(t/d);return y(r+(d+1)*t/(t+a))}function A(t){var e,i,r,n,s,o,a,l=[],h=t.length,u=0,c=128,p=72,d=t.lastIndexOf("-");for(d<0&&(d=0),i=0;i<d;++i)128<=t.charCodeAt(i)&&x("not-basic"),l.push(t.charCodeAt(i));for(r=0<d?d+1:0;r<h;){for(n=u,s=1,o=g;h<=r&&x("invalid-input"),a=t.charCodeAt(r++),(g<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:g)||a>y((_-u)/s))&&x("overflow"),u+=a*s,!(a<(a=o<=p?1:p+v<=o?v:o-p));o+=g)s>y(_/(a=g-a))&&x("overflow"),s*=a;p=S(u-n,e=l.length+1,0==n),y(u/e)>_-c&&x("overflow"),c+=y(u/e),u%=e,l.splice(u++,0,c)}return w(l)}function O(t){for(var e,i,r,n,s,o,a,l,h,u,c=[],p=(t=T(t)).length,d=128,f=72,m=e=0;m<p;++m)(a=t[m])<128&&c.push(b(a));for(i=r=c.length,r&&c.push("-");i<p;){for(n=_,m=0;m<p;++m)d<=(a=t[m])&&a<n&&(n=a);for(n-d>y((_-e)/(l=i+1))&&x("overflow"),e+=(n-d)*l,d=n,m=0;m<p;++m)if((a=t[m])<d&&++e>_&&x("overflow"),a==d){for(s=e,o=g;!(s<(h=o<=f?1:f+v<=o?v:o-f));o+=g)c.push(b(E(h+(u=s-h)%(h=g-h),0))),s=y(u/h);c.push(b(E(s,0))),f=S(e,l,i==r),e=0,++i}++e,++d}return c.join("")}if(s={version:"1.3.2",ucs2:{decode:T,encode:w},decode:A,encode:O,toASCII:function(t){return m(t,function(t){return u.test(t)?"xn--"+O(t):t})},toUnicode:function(t){return m(t,function(t){return h.test(t)?A(t.slice(4).toLowerCase()):t})}},r&&e)if(t.exports==r)e.exports=s;else for(o in s)s.hasOwnProperty(o)&&(r[o]=s[o]);else i.punycode=s});function dp(t,e,i,r){e=e||"&",i=i||"=";var n={};if("string"==typeof t&&0!==t.length){var s=/\+/g,e=(t=t.split(e),1e3),o=(r&&"number"==typeof r.maxKeys&&(e=r.maxKeys),t.length);0<e&&e<o&&(o=e);for(var a=0;a<o;++a){var l,h=t[a].replace(s,"%20"),u=h.indexOf(i),u=0<=u?(l=h.substr(0,u),h.substr(u+1)):(l=h,""),h=decodeURIComponent(l),u=decodeURIComponent(u);Object.prototype.hasOwnProperty.call(n,h)?Array.isArray(n[h])?n[h].push(u):n[h]=[n[h],u]:n[h]=u}}return n}function fp(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function mp(i,r,n,t){return r=r||"&",n=n||"=","object"==typeof(i=null===i?void 0:i)?Object.keys(i).map(function(t){var e=encodeURIComponent(fp(t))+n;return Array.isArray(i[t])?i[t].map(function(t){return e+encodeURIComponent(fp(t))}).join(r):e+encodeURIComponent(fp(i[t]))}).join(r):t?encodeURIComponent(fp(t))+n+encodeURIComponent(fp(i)):""}var _p,gp;pp(function(t,e){e.decode=e.parse=dp,e.encode=e.stringify=mp}),(P=_p=_p||{})[P.NORMAL=0]="NORMAL",P[P.ADD=1]="ADD",P[P.MULTIPLY=2]="MULTIPLY",P[P.SCREEN=3]="SCREEN",P[P.OVERLAY=4]="OVERLAY",P[P.DARKEN=5]="DARKEN",P[P.LIGHTEN=6]="LIGHTEN",P[P.COLOR_DODGE=7]="COLOR_DODGE",P[P.COLOR_BURN=8]="COLOR_BURN",P[P.HARD_LIGHT=9]="HARD_LIGHT",P[P.SOFT_LIGHT=10]="SOFT_LIGHT",P[P.DIFFERENCE=11]="DIFFERENCE",P[P.EXCLUSION=12]="EXCLUSION",P[P.HUE=13]="HUE",P[P.SATURATION=14]="SATURATION",P[P.COLOR=15]="COLOR",P[P.LUMINOSITY=16]="LUMINOSITY",P[P.NORMAL_NPM=17]="NORMAL_NPM",P[P.ADD_NPM=18]="ADD_NPM",P[P.SCREEN_NPM=19]="SCREEN_NPM",P[P.NONE=20]="NONE",P[P.SRC_OVER=0]="SRC_OVER",P[P.SRC_IN=21]="SRC_IN",P[P.SRC_OUT=22]="SRC_OUT",P[P.SRC_ATOP=23]="SRC_ATOP",P[P.DST_OVER=24]="DST_OVER",P[P.DST_IN=25]="DST_IN",P[P.DST_OUT=26]="DST_OUT",P[P.DST_ATOP=27]="DST_ATOP",P[P.ERASE=26]="ERASE",P[P.SUBTRACT=28]="SUBTRACT",P[P.XOR=29]="XOR",(gp={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",gp[gp.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",gp[gp.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",gp[gp.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(Jc={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",Jc[Jc.CLEAR=1]="CLEAR",Jc[Jc.BLIT=2]="BLIT",up.RETINA_PREFIX=/@([0-9\.]+)x/,up.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;for(var vp=[],yp=[],bp=0;bp<32;bp++)yp[vp[bp]=bp]=bp;vp[_p.NORMAL_NPM]=_p.NORMAL,vp[_p.ADD_NPM]=_p.ADD,vp[_p.SCREEN_NPM]=_p.SCREEN,yp[_p.NORMAL]=_p.NORMAL_NPM,yp[_p.ADD]=_p.ADD_NPM,yp[_p.SCREEN]=_p.SCREEN_NPM;var tp=[],xp=(tp.push(yp),tp.push(vp),{});function Tp(t,e,i){this.canvas=up.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||up.RESOLUTION,this.resize(t,e)}Tp.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},Tp.prototype.resize=function(t,e){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(e*this.resolution)},Tp.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(Tp.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(Tp.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0});wp.registerPlugin=function(t){var e,i,r,n;e="6.5.0",void 0===r&&(r=3),xp[i="Application.registerPlugin() is deprecated, use extensions.add()"]||(void 0===(n=(new Error).stack)?console.warn("PixiJS Deprecation Warning: ",i+"\nDeprecated since v"+e):(n=n.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",i+"\nDeprecated since v"+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",i+"\nDeprecated since v"+e),console.warn(n))),xp[i]=!0),ji.add({type:J.ExtensionType.Application,ref:t})},wp.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(wp.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(wp.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),wp.prototype.destroy=function(t,e){var i=this,r=wp._plugins.slice(0);r.reverse(),r.forEach(function(t){t.destroy.call(i)}),this.stage.destroy(e),this.stage=null,this.renderer.destroy(t),this.renderer=null},wp._plugins=[];Qc=wp;function wp(e){var i=this;this.stage=new zi,e=Object.assign({forceCanvas:!1},e),this.renderer=po(e),wp._plugins.forEach(function(t){t.init.call(i,e)})}ji.handleByList(J.ExtensionType.Application,Qc._plugins),ji.add(A);var Ep=function(t,e){return(Ep=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function Sp(t,e){function i(){this.constructor=t}Ep(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}Sp(Pp,Ap=Su),Pp.prototype.build=function(){for(var t=this.segWidth*this.segHeight,e=[],i=[],r=[],n=this.segWidth-1,s=this.segHeight-1,o=this.width/n,a=this.height/s,l=0;l<t;l++){var h=l%this.segWidth,u=l/this.segWidth|0;e.push(h*o,u*a),i.push(h/n,u/s)}for(var c=n*s,l=0;l<c;l++){var p=l%n,d=l/n|0,f=d*this.segWidth+p,m=d*this.segWidth+p+1,_=(1+d)*this.segWidth+p,d=(1+d)*this.segWidth+p+1;r.push(f,m,_,m,d,_)}this.buffers[0].data=new Float32Array(e),this.buffers[1].data=new Float32Array(i),this.indexBuffer.data=new Uint16Array(r),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()};var Ap,Op=Pp;function Pp(t,e,i,r){void 0===t&&(t=100),void 0===e&&(e=100),void 0===i&&(i=10),void 0===r&&(r=10);var n=Ap.call(this)||this;return n.segWidth=i,n.segHeight=r,n.width=t,n.height=e,n.build(),n}Sp(Mp,Rp=Su),Object.defineProperty(Mp.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Mp.prototype.build=function(){var t=this.points;if(t){var e=this.getBuffer("aVertexPosition"),i=this.getBuffer("aTextureCoord"),r=this.getIndex();if(!(t.length<1)){e.data.length/4!==t.length&&(e.data=new Float32Array(4*t.length),i.data=new Float32Array(4*t.length),r.data=new Uint16Array(6*(t.length-1)));for(var n=i.data,s=r.data,o=(n[0]=0,n[1]=0,n[2]=0,n[3]=1,0),a=t[0],l=this._width*this.textureScale,h=t.length,u=0;u<h;u++){var c,p,d=4*u;0<this.textureScale?(p=a.x-t[u].x,c=a.y-t[u].y,p=Math.sqrt(p*p+c*c),a=t[u],o+=p/l):o=u/(h-1),n[d]=o,n[d+1]=0,n[d+2]=o,n[d+3]=1}for(var f=0,u=0;u<h-1;u++){d=2*u;s[f++]=d,s[f++]=d+1,s[f++]=d+2,s[f++]=d+2,s[f++]=d+1,s[f++]=d+3}i.update(),r.update(),this.updateVertices()}}},Mp.prototype.updateVertices=function(){var t=this.points;if(!(t.length<1)){for(var e=t[0],i=0,r=0,n=this.buffers[0].data,s=t.length,o=0;o<s;o++){var a=t[o],l=4*o,r=-((h=o<t.length-1?t[o+1]:a).x-e.x),i=h.y-e.y,h=Math.sqrt(i*i+r*r),u=0<this.textureScale?this.textureScale*this._width/2:this._width/2;r=r/h*u,n[l]=a.x+(i=i/h*u),n[1+l]=a.y+r,n[2+l]=a.x-i,n[3+l]=a.y-r,e=a}this.buffers[0].update()}},Mp.prototype.update=function(){0<this.textureScale?this.build():this.updateVertices()};var Rp,Cp=Mp;function Mp(t,e,i){void 0===t&&(t=200),void 0===i&&(i=0);var r=Rp.call(this,new Float32Array(4*e.length),new Float32Array(4*e.length),new Uint16Array(6*(e.length-1)))||this;return r.points=e,r._width=t,r.textureScale=i,r.build(),r}Sp(Ip,kp=yu),Ip.prototype._render=function(t){var e=this.geometry;!this.autoUpdate&&e._width===this.shader.texture.height||(e._width=this.shader.texture.height,e.update()),kp.prototype._render.call(this,t)};var kp,$c=Ip;function Ip(t,e,i){var r=this,e=new Cp(t.height,e,i=void 0===i?0:i),n=new Tu(t);return 0<i&&(t.baseTexture.wrapMode=J.WRAP_MODES.REPEAT),(r=kp.call(this,e,n)||this).autoUpdate=!0,r}Sp(Fp,Dp=yu),Fp.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var t=this.geometry,e=this.shader.texture,i=e.width,e=e.height;!this.autoResize||t.width===i&&t.height===e||(t.width=this.shader.texture.width,t.height=this.shader.texture.height,t.build())},Object.defineProperty(Fp.prototype,"texture",{get:function(){return this.shader.texture},set:function(t){this.shader.texture!==t&&(this.shader.texture=t,this._textureID=-1,t.baseTexture.valid?this.textureUpdated():t.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),Fp.prototype._render=function(t){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),Dp.prototype._render.call(this,t)},Fp.prototype.destroy=function(t){this.shader.texture.off("update",this.textureUpdated,this),Dp.prototype.destroy.call(this,t)};var Dp,ep=Fp;function Fp(t,e,i){var r=this,e=new Op(t.width,t.height,e,i),i=new Tu(et.WHITE);return(r=Dp.call(this,e,i)||this).texture=t,r.autoResize=!0,r}Sp(Np,Lp=yu),Object.defineProperty(Np.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),Np.prototype._render=function(t){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),Lp.prototype._render.call(this,t)};var Lp,ip=Np;function Np(t,e,i,r,n){void 0===t&&(t=et.EMPTY);var s=this,e=new Su(e,i,r),i=(e.getBuffer("aVertexPosition").static=!1,new Tu(t));return(s=Lp.call(this,e,i,null,n)||this).autoUpdate=!0,s}Sp(Bp,zp=ep),Bp.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(Bp.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),Bp.prototype.updateHorizontalVertices=function(){var t=this.vertices,e=this._getMinScale();t[9]=t[11]=t[13]=t[15]=this._topHeight*e,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight*e,t[25]=t[27]=t[29]=t[31]=this._height},Bp.prototype.updateVerticalVertices=function(){var t=this.vertices,e=this._getMinScale();t[2]=t[10]=t[18]=t[26]=this._leftWidth*e,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth*e,t[6]=t[14]=t[22]=t[30]=this._width},Bp.prototype._getMinScale=function(){var t=this._leftWidth+this._rightWidth,t=this._width>t?1:this._width/t,e=this._topHeight+this._bottomHeight,e=this._height>e?1:this._height/e;return Math.min(t,e)},Object.defineProperty(Bp.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(Bp.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(Bp.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(Bp.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(Bp.prototype,"topHeight",{get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(Bp.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Bp.prototype._refresh=function(){var t=this.texture,e=this.geometry.buffers[1].data,t=(this._origWidth=t.orig.width,this._origHeight=t.orig.height,1/this._origWidth),i=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=t*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-t*this._rightWidth,e[9]=e[11]=e[13]=e[15]=i*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-i*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()};var zp,rp=Bp;function Bp(t,e,i,r,n){void 0===e&&(e=10),void 0===i&&(i=10),void 0===r&&(r=10),void 0===n&&(n=10);var s=zp.call(this,et.WHITE,4,4)||this;return s._origWidth=t.orig.width,s._origHeight=t.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=e,s._rightWidth=r,s._topHeight=i,s._bottomHeight=n,s.texture=t,s}var Up=function(t,e){return(Up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};Up(Gp=Hp,np=jp=fh),Gp.prototype=null===np?Object.create(np):(Xp.prototype=np.prototype,new Xp),Hp.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1))},Hp.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Wi.shared.add(this.update,this,J.UPDATE_PRIORITY.HIGH),this._isConnectedToTicker=!0))},Hp.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},Hp.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},Hp.prototype.update=function(t){if(this._playing){var e=this.animationSpeed*t,i=this.currentFrame;if(null!==this._durations){var r=this._currentTime%1*this._durations[this.currentFrame];for(r+=e/60*1e3;r<0;)this._currentTime--,r+=this._durations[this.currentFrame];var n=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);r>=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=e;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()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(0<this.animationSpeed&&this.currentFrame<i||this.animationSpeed<0&&this.currentFrame>i)&&this.onLoop(),this.updateTexture())}},Hp.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],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))},Hp.prototype.destroy=function(t){this.stop(),jp.prototype.destroy.call(this,t),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},Hp.fromFrames=function(t){for(var e=[],i=0;i<t.length;++i)e.push(et.from(t[i]));return new Hp(e)},Hp.fromImages=function(t){for(var e=[],i=0;i<t.length;++i)e.push(et.from(t[i]));return new Hp(e)},Object.defineProperty(Hp.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(Hp.prototype,"textures",{get:function(){return this._textures},set:function(t){if(t[0]instanceof et)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(Hp.prototype,"currentFrame",{get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t},enumerable:!1,configurable:!0}),Object.defineProperty(Hp.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(Hp.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(Wi.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0});var jp,Gp,sp=Hp;function Xp(){this.constructor=Gp}function Hp(t,e){void 0===e&&(e=!0);var i=jp.call(this,t[0]instanceof et?t[0]:t[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=e,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=t,i}ji.add(r,s,n,Tl,kl,Xt,uu,Zu,o,v,pl,Jh,ot,it);ap={AlphaFilter:ec,BlurFilter:T,BlurFilterPass:cc,ColorMatrixFilter:vc,DisplacementFilter:wc,FXAAFilter:Rc,NoiseFilter:Fc};return J.AbstractBatchRenderer=Eo,J.AbstractMultiResource=a,J.AbstractRenderer=no,J.AccessibilityManager=r,J.AnimatedSprite=sp,J.AppLoaderPlugin=it,J.Application=Qc,J.ArrayResource=lt,J.Attribute=Wr,J.BaseImageResource=ur,J.BasePrepare=Fl,J.BaseRenderTexture=Dr,J.BaseTexture=M,J.BatchDrawCall=vo,J.BatchGeometry=Ro,J.BatchPluginFactory=Io,J.BatchRenderer=Xt,J.BatchShaderGenerator=Ao,J.BatchSystem=xn,J.BatchTextureArray=yo,J.BitmapFont=Uu,J.BitmapFontData=Pu,J.BitmapFontLoader=Zu,J.BitmapText=Vu,J.BlobResource=e,J.Bounds=Oi,J.BrowserAdapter=t,J.Buffer=Kr,J.BufferResource=er,J.CanvasResource=d,J.Circle=Ze,J.CompressedTextureLoader=o,J.CompressedTextureResource=Ma,J.Container=zi,J.ContextSystem=En,J.CountLimiter=kh,J.CubeResource=at,J.DDSLoader=v,J.DEG_TO_RAD=We,J.DisplayObject=i,J.Ellipse=$e,J.Extract=s,J.FORMATS_TO_COMPONENTS=ll,J.FillStyle=Sl,J.Filter=$,J.FilterState=dn,J.FilterSystem=gn,J.Framebuffer=Mr,J.FramebufferSystem=Pn,J.GLFramebuffer=An,J.GLProgram=js,J.GLTexture=$s,J.GRAPHICS_CURVES=El,J.Geometry=en,J.GeometrySystem=Mn,J.Graphics=ah,J.GraphicsData=Zl,J.GraphicsGeometry=th,J.IGLUniformData=Us,J.INSTALLED=qi,J.INTERNAL_FORMAT_TO_BYTES_PER_PIXEL=wa,J.ImageBitmapResource=Sr,J.ImageResource=gr,J.InteractionData=Bo,J.InteractionEvent=Go,J.InteractionManager=n,J.InteractionTrackingData=Ho,J.KTXLoader=pl,J.LineStyle=ih,J.Loader=_a,J.MaskData=In,J.MaskSystem=gs,J.Matrix=oi,J.Mesh=yu,J.MeshBatchUvs=fu,J.MeshGeometry=Su,J.MeshMaterial=Tu,J.NineSlicePlane=rp,J.ObjectRenderer=yn,J.ObservablePoint=ni,J.PI_2=He,J.ParticleContainer=gl,J.ParticleRenderer=Tl,J.PlaneGeometry=Op,J.Point=tt,J.Polygon=ti,J.Prepare=kl,J.Program=rs,J.ProjectionSystem=Ps,J.Quad=sn,J.QuadUv=ln,J.RAD_TO_DEG=Ye,J.Rectangle=w,J.RenderTexture=Gr,J.RenderTexturePool=Hr,J.RenderTextureSystem=ks,J.Renderer=uo,J.ResizePlugin=A,J.Resource=$i,J.RopeGeometry=Cp,J.RoundedRectangle=ii,J.Runner=Gi,J.SVGResource=f,J.ScissorSystem=ws,J.Shader=ss,J.ShaderSystem=Ws,J.SimpleMesh=ip,J.SimplePlane=ep,J.SimpleRope=$c,J.Sprite=fh,J.SpriteMaskFilter=ms,J.Spritesheet=Qh,J.SpritesheetLoader=Jh,J.State=as,J.StateSystem=qs,J.StencilSystem=As,J.System=_o,J.TYPES_TO_BYTES_PER_COMPONENT=al,J.TYPES_TO_BYTES_PER_PIXEL=hl,J.TemporaryDisplayObject=Di,J.Text=Ph,J.TextFormat=Ru,J.TextMetrics=Eh,J.TextStyle=bh,J.Texture=et,J.TextureGCSystem=Zs,J.TextureLoader=st,J.TextureMatrix=ps,J.TextureSystem=Js,J.TextureUvs=Lr,J.Ticker=Wi,J.TickerPlugin=ot,J.TilingSprite=su,J.TilingSpriteRenderer=uu,J.TimeLimiter=Kh,J.Transform=Si,J.UniformGroup=cn,J.VERSION="6.5.5",J.VideoResource=Tr,J.ViewableBuffer=xo,J.XMLFormat=Mu,J.XMLStringFormat=Iu,J.accessibleTarget=rt,J.autoDetectFormat=Lu,J.autoDetectRenderer=po,J.autoDetectResource=Ki,J.checkMaxIfStatementsInShader=ts,J.createUBOElements=Ns,J.defaultFilterVertex=mo,J.defaultVertex=fo,J.extensions=ji,J.filters=ap,J.generateProgram=Xs,J.generateUniformBufferSync=Bs,J.getTestContext=Gn,J.getUBOData=zs,J.graphicsUtils=lh,J.groupD8=Ei,J.interactiveTarget=nt,J.isMobile=ut,J.parseDDS=Va,J.parseKTX=ul,J.resources=Fo,J.settings=C,J.systems=No,J.uniformParsers=Kn,J.utils=Xe,Object.defineProperty(J,"__esModule",{value:!0}),J}({}),__filters=function(t,a,l,h,u,c,L,N){"use strict";var z=function(t,e){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function e(t,e){function i(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var B,U,j,G,X,H,Y,W,V,q,K,Z,Q,$,J,tt,et,it,rt,nt,st,ot,at,lt,ht,ut,ct,pt,dt,ft,mt,_t,gt,vt,yt,bt,xt=function(){return(xt=Object.assign||function(t){for(var e,i=arguments,r=1,n=arguments.length;r<n;r++)for(var s in e=i[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},p=(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}"),Tt=(e(ce,bt=a.Filter),ce.prototype.apply=function(t,e,i,r){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,t.applyFilter(this,e,i,r)},ce),wt=(e(ue,yt=a.Filter),Object.defineProperty(ue.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(t){this.uniforms.threshold=t},enumerable:!1,configurable:!0}),ue),d=(e(F,vt=a.Filter),F.prototype.apply=function(t,e,i,r){var n,s=this._pixelSize.x/e._frame.width,o=this._pixelSize.y/e._frame.height;if(1===this._quality||0===this._blur)n=this._kernels[0]+.5,this.uniforms.uOffset[0]=n*s,this.uniforms.uOffset[1]=n*o,t.applyFilter(this,e,i,r);else{for(var a,l=t.getFilterTexture(),h=e,u=l,c=this._quality-1,p=0;p<c;p++)n=this._kernels[p]+.5,this.uniforms.uOffset[0]=n*s,this.uniforms.uOffset[1]=n*o,t.applyFilter(this,h,u,1),a=h,h=u,u=a;n=this._kernels[c]+.5,this.uniforms.uOffset[0]=n*s,this.uniforms.uOffset[1]=n*o,t.applyFilter(this,h,i,r),t.returnFilterTexture(l)}},F.prototype._updatePadding=function(){this.padding=Math.ceil(this._kernels.reduce(function(t,e){return t+e+.5},0))},F.prototype._generateKernels=function(){var t=this._blur,e=this._quality,i=[t];if(0<t)for(var r=t,n=t/e,s=1;s<e;s++)i.push(r-=n);this._kernels=i,this._updatePadding()},Object.defineProperty(F.prototype,"kernels",{get:function(){return this._kernels},set:function(t){Array.isArray(t)&&0<t.length?(this._kernels=t,this._quality=t.length,this._blur=Math.max.apply(Math,t)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(t){"number"==typeof t?(this._pixelSize.x=t,this._pixelSize.y=t):Array.isArray(t)?(this._pixelSize.x=t[0],this._pixelSize.y=t[1]):t instanceof l.Point?(this._pixelSize.x=t.x,this._pixelSize.y=t.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Math.max(1,Math.round(t)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"blur",{get:function(){return this._blur},set:function(t){this._blur=t,this._generateKernels()},enumerable:!1,configurable:!0}),F),Et=(e(D,gt=a.Filter),D.prototype.apply=function(t,e,i,r,n){var s=t.getFilterTexture(),n=(this._extractFilter.apply(t,e,s,1,n),t.getFilterTexture());this._blurFilter.apply(t,s,n,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=n,t.applyFilter(this,e,i,r),t.returnFilterTexture(n),t.returnFilterTexture(s)},Object.defineProperty(D.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._resolution=t,this._extractFilter&&(this._extractFilter.resolution=t),this._blurFilter&&(this._blurFilter.resolution=t)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(t){this._extractFilter.threshold=t},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(t){this._blurFilter.kernels=t},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(t){this._blurFilter.blur=t},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(t){this._blurFilter.quality=t},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(t){this._blurFilter.pixelSize=t},enumerable:!1,configurable:!0}),D.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:h.settings.FILTER_RESOLUTION},D),St=(e(he,_t=a.Filter),Object.defineProperty(he.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(t){this.uniforms.pixelSize=t},enumerable:!1,configurable:!0}),he),At=(e(I,mt=a.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(t){this._angle=t*l.DEG_TO_RAD,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"thickness",{get:function(){return this._thickness},set:function(t){this._thickness=t,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"lightColor",{get:function(){return u.rgb2hex(this.uniforms.lightColor)},set:function(t){u.hex2rgb(t,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(t){this.uniforms.lightAlpha=t},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"shadowColor",{get:function(){return u.rgb2hex(this.uniforms.shadowColor)},set:function(t){u.hex2rgb(t,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(t){this.uniforms.shadowAlpha=t},enumerable:!1,configurable:!0}),I),Ot=(e(k,ft=a.Filter),k.prototype.apply=function(t,e,i,r){var n=t.getFilterTexture();this.defaultFilter.apply(t,e,i,r),this.blurXFilter.apply(t,e,n,1),this.blurYFilter.apply(t,n,i,0),t.returnFilterTexture(n)},Object.defineProperty(k.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYFilter.blur=t},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t},enumerable:!1,configurable:!0}),k),Pt=(e(M,dt=a.Filter),M.prototype.apply=function(t,e,i,r){var n=e.filterFrame,s=n.width,n=n.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,t.applyFilter(this,e,i,r)},Object.defineProperty(M.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(t){this.uniforms.radius=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(t){this.uniforms.strength=t},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"center",{get:function(){return this.uniforms.center},set:function(t){this.uniforms.center=t},enumerable:!1,configurable:!0}),M.defaults={center:[.5,.5],radius:100,strength:1},M),Rt=(e(C,pt=a.Filter),C.prototype.apply=function(t,e,i,r){this.uniforms._mix=this.mix,t.applyFilter(this,e,i,r)},Object.defineProperty(C.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"colorMap",{get:function(){return this._colorMap},set:function(t){var e;t&&(null!=(e=t=t instanceof a.Texture?t:a.Texture.from(t))&&e.baseTexture&&(t.baseTexture.scaleMode=this._scaleMode,t.baseTexture.mipmap=c.MIPMAP_MODES.OFF,this._size=t.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=t),this._colorMap=t)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"nearest",{get:function(){return this._nearest},set:function(t){this._nearest=t,this._scaleMode=t?c.SCALE_MODES.NEAREST:c.SCALE_MODES.LINEAR;t=this._colorMap;t&&t.baseTexture&&(t.baseTexture._glTextures={},t.baseTexture.scaleMode=this._scaleMode,t.baseTexture.mipmap=c.MIPMAP_MODES.OFF,t._updateID++,t.baseTexture.emit("update",t.baseTexture))},enumerable:!1,configurable:!0}),C.prototype.updateColorMap=function(){var t=this._colorMap;t&&t.baseTexture&&(t._updateID++,t.baseTexture.emit("update",t.baseTexture),this.colorMap=t)},C.prototype.destroy=function(t){void 0===t&&(t=!1),this._colorMap&&this._colorMap.destroy(t),pt.prototype.destroy.call(this)},C),Ct=(e(le,ct=a.Filter),Object.defineProperty(le.prototype,"color",{get:function(){return this._color},set:function(t){var e=this.uniforms.color;"number"==typeof t?(u.hex2rgb(t,e),this._color=t):(e[0]=t[0],e[1]=t[1],e[2]=t[2],this._color=u.rgb2hex(e))},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this.uniforms.alpha=t,this._alpha=t},enumerable:!1,configurable:!0}),le),Mt=(e(R,ut=a.Filter),Object.defineProperty(R.prototype,"originalColor",{get:function(){return this._originalColor},set:function(t){var e=this.uniforms.originalColor;"number"==typeof t?(u.hex2rgb(t,e),this._originalColor=t):(e[0]=t[0],e[1]=t[1],e[2]=t[2],this._originalColor=u.rgb2hex(e))},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"newColor",{get:function(){return this._newColor},set:function(t){var e=this.uniforms.newColor;"number"==typeof t?(u.hex2rgb(t,e),this._newColor=t):(e[0]=t[0],e[1]=t[1],e[2]=t[2],this._newColor=u.rgb2hex(e))},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(t){this.uniforms.epsilon=t},enumerable:!1,configurable:!0}),R),kt=(e(P,ht=a.Filter),Object.defineProperty(P.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(t){var i=this;t.forEach(function(t,e){i.uniforms.matrix[e]=t})},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(t){this.uniforms.texelSize[0]=1/t},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(t){this.uniforms.texelSize[1]=1/t},enumerable:!1,configurable:!0}),P),It=(e(ae,lt=a.Filter),ae),Dt=(e(O,at=a.Filter),O.prototype.apply=function(t,e,i,r){var n=e.filterFrame,s=n.width,n=n.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,this.uniforms.seed=this.seed,this.uniforms.time=this.time,t.applyFilter(this,e,i,r)},Object.defineProperty(O.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(t){this.uniforms.curvature=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(t){this.uniforms.lineWidth=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(t){this.uniforms.lineContrast=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(t){this.uniforms.verticalLine=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(t){this.uniforms.noise=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(t){this.uniforms.noiseSize=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(t){this.uniforms.vignetting=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(t){this.uniforms.vignettingAlpha=t},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(t){this.uniforms.vignettingBlur=t},enumerable:!1,configurable:!0}),O.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},O),Ft=(e(A,ot=a.Filter),Object.defineProperty(A.prototype,"scale",{get:function(){return this.uniforms.scale},set:function(t){this.uniforms.scale=t},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"angle",{get:function(){return this.uniforms.angle},set:function(t){this.uniforms.angle=t},enumerable:!1,configurable:!0}),A),Lt=(e(S,st=a.Filter),S.prototype.apply=function(t,e,i,r){var n=t.getFilterTexture();this._tintFilter.apply(t,e,n,1),this._blurFilter.apply(t,n,i,r),!0!==this.shadowOnly&&t.applyFilter(this,e,i,0),t.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(t){this._resolution=t,this._tintFilter&&(this._tintFilter.resolution=t),this._blurFilter&&(this._blurFilter.resolution=t)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=t,this._updatePadding(),this._updateShift()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rotation",{get:function(){return this.angle/l.DEG_TO_RAD},set:function(t){this.angle=t*l.DEG_TO_RAD,this._updateShift()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"alpha",{get:function(){return this._tintFilter.uniforms.alpha},set:function(t){this._tintFilter.uniforms.alpha=t},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"color",{get:function(){return u.rgb2hex(this._tintFilter.uniforms.color)},set:function(t){u.hex2rgb(t,this._tintFilter.uniforms.color)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(t){this._blurFilter.kernels=t},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(t){this._blurFilter.blur=t,this._updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(t){this._blurFilter.quality=t},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(t){this._blurFilter.pixelSize=t},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:h.settings.FILTER_RESOLUTION},S),Nt=(e(oe,nt=a.Filter),Object.defineProperty(oe.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(t){this.uniforms.strength=t},enumerable:!1,configurable:!0}),oe),zt=(e(E,rt=a.Filter),E.prototype.apply=function(t,e,i,r){var n=e.filterFrame,s=n.width,n=n.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,this.uniforms.aspect=n/s,this.uniforms.seed=this.seed,this.uniforms.offset=this.offset,this.uniforms.fillMode=this.fillMode,t.applyFilter(this,e,i,r)},E.prototype._randomizeSizes=function(){var t=this._sizes,e=this._slices-1,i=this.sampleSize,r=Math.min(this.minSize/i,.9/this._slices);if(this.average)for(var n=this._slices,s=1,o=0;o<e;o++){var a=Math.max(s/(n-o)*(1-.6*Math.random()),r);s-=t[o]=a}else for(var s=1,l=Math.sqrt(1/this._slices),o=0;o<e;o++)a=Math.max(l*s*Math.random(),r),s-=t[o]=a;t[e]=s,this.shuffle()},E.prototype.shuffle=function(){for(var t=this._sizes,e=this._slices-1;0<e;e--){var i=Math.random()*e>>0,r=t[e];t[e]=t[i],t[i]=r}},E.prototype._randomizeOffsets=function(){for(var t=0;t<this._slices;t++)this._offsets[t]=Math.random()*(Math.random()<.5?-1:1)},E.prototype.refresh=function(){this._randomizeSizes(),this._randomizeOffsets(),this.redraw()},E.prototype.redraw=function(){var t=this.sampleSize,e=this.texture,i=this._canvas.getContext("2d");i.clearRect(0,0,8,t);for(var r=0,n=0;n<this._slices;n++){var s=Math.floor(256*this._offsets[n]),o=this._sizes[n]*t;i.fillStyle="rgba("+(0<s?s:0)+", "+(s<0?-s:0)+", 0, 1)",i.fillRect(0,r>>0,t,1+o>>0),r+=o}e.baseTexture.update(),this.uniforms.displacementMap=e},Object.defineProperty(E.prototype,"sizes",{get:function(){return this._sizes},set:function(t){for(var e=Math.min(this._slices,t.length),i=0;i<e;i++)this._sizes[i]=t[i]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"offsets",{get:function(){return this._offsets},set:function(t){for(var e=Math.min(this._slices,t.length),i=0;i<e;i++)this._offsets[i]=t[i]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"slices",{get:function(){return this._slices},set:function(t){this._slices!==t&&(this._slices=t,this.uniforms.slices=t,this._sizes=this.uniforms.slicesWidth=new Float32Array(t),this._offsets=this.uniforms.slicesOffset=new Float32Array(t),this.refresh())},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction!==t&&(t=(this._direction=t)*l.DEG_TO_RAD,this.uniforms.sinDir=Math.sin(t),this.uniforms.cosDir=Math.cos(t))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"red",{get:function(){return this.uniforms.red},set:function(t){this.uniforms.red=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"green",{get:function(){return this.uniforms.green},set:function(t){this.uniforms.green=t},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"blue",{get:function(){return this.uniforms.blue},set:function(t){this.uniforms.blue=t},enumerable:!1,configurable:!0}),E.prototype.destroy=function(){var t;null!=(t=this.texture)&&t.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),Bt=(e(w,it=a.Filter),Object.defineProperty(w.prototype,"color",{get:function(){return u.rgb2hex(this.uniforms.glowColor)},set:function(t){u.hex2rgb(t,this.uniforms.glowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"outerStrength",{get:function(){return this.uniforms.outerStrength},set:function(t){this.uniforms.outerStrength=t},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"innerStrength",{get:function(){return this.uniforms.innerStrength},set:function(t){this.uniforms.innerStrength=t},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"knockout",{get:function(){return this.uniforms.knockout},set:function(t){this.uniforms.knockout=t},enumerable:!1,configurable:!0}),w.defaults={distance:10,outerStrength:4,innerStrength:0,color:16777215,quality:.1,knockout:!1},w),Ut=(e(T,et=a.Filter),T.prototype.apply=function(t,e,i,r){var n=e.filterFrame,s=n.width,n=n.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,this.uniforms.aspect=n/s,this.uniforms.time=this.time,this.uniforms.alpha=this.alpha,t.applyFilter(this,e,i,r)},Object.defineProperty(T.prototype,"angle",{get:function(){return this._angle},set:function(t){t=(this._angle=t)*l.DEG_TO_RAD;this._angleLight.x=Math.cos(t),this._angleLight.y=Math.sin(t)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"gain",{get:function(){return this.uniforms.gain},set:function(t){this.uniforms.gain=t},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"lacunarity",{get:function(){return this.uniforms.lacunarity},set:function(t){this.uniforms.lacunarity=t},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(t){this.uniforms.alpha=t},enumerable:!1,configurable:!0}),T.defaults={angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0],alpha:1},T),jt=(e(x,tt=a.Filter),x.prototype.apply=function(t,e,i,r){var n=this.velocity,s=n.x,n=n.y;this.uniforms.uKernelSize=0!==s||0!==n?this.kernelSize:0,t.applyFilter(this,e,i,r)},Object.defineProperty(x.prototype,"velocity",{get:function(){return this._velocity},set:function(t){this.setVelocity(t)},enumerable:!1,configurable:!0}),x.prototype.setVelocity=function(t){var e,i;Array.isArray(t)?(e=t[0],i=t[1],this._velocity.set(e,i)):this._velocity.copyFrom(t)},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(t){this.uniforms.uOffset=t},enumerable:!1,configurable:!0}),x),Gt=(e(b,J=a.Filter),Object.defineProperty(b.prototype,"replacements",{get:function(){return this._replacements},set:function(t){var e=this.uniforms.originalColors,i=this.uniforms.targetColors,r=t.length;if(r>this._maxColors)throw new Error("Length of replacements ("+r+") exceeds the maximum colors length ("+this._maxColors+")");e[3*r]=-1;for(var n=0;n<r;n++){var s=t[n],o=s[0],o=("number"==typeof o?o=u.hex2rgb(o):s[0]=u.rgb2hex(o),e[3*n]=o[0],e[3*n+1]=o[1],e[3*n+2]=o[2],s[1]);"number"==typeof o?o=u.hex2rgb(o):s[1]=u.rgb2hex(o),i[3*n]=o[0],i[3*n+1]=o[1],i[3*n+2]=o[2]}this._replacements=t},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(t){this.uniforms.epsilon=t},enumerable:!1,configurable:!0}),b),Xt=(e(y,$=a.Filter),y.prototype.apply=function(t,e,i,r){var n;this.uniforms.dimensions[0]=null==(n=e.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=e.filterFrame)?void 0:n.height,this.uniforms.seed=this.seed,t.applyFilter(this,e,i,r)},Object.defineProperty(y.prototype,"sepia",{get:function(){return this.uniforms.sepia},set:function(t){this.uniforms.sepia=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(t){this.uniforms.noise=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(t){this.uniforms.noiseSize=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratch",{get:function(){return this.uniforms.scratch},set:function(t){this.uniforms.scratch=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratchDensity",{get:function(){return this.uniforms.scratchDensity},set:function(t){this.uniforms.scratchDensity=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratchWidth",{get:function(){return this.uniforms.scratchWidth},set:function(t){this.uniforms.scratchWidth=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(t){this.uniforms.vignetting=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(t){this.uniforms.vignettingAlpha=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(t){this.uniforms.vignettingBlur=t},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),Ht=(e(v,Q=a.Filter),v.getAngleStep=function(t){t=Math.max(t*v.MAX_SAMPLES,v.MIN_SAMPLES);return(2*Math.PI/t).toFixed(7)},v.prototype.apply=function(t,e,i,r){this.uniforms.thickness[0]=this._thickness/e._frame.width,this.uniforms.thickness[1]=this._thickness/e._frame.height,t.applyFilter(this,e,i,r)},Object.defineProperty(v.prototype,"color",{get:function(){return u.rgb2hex(this.uniforms.outlineColor)},set:function(t){u.hex2rgb(t,this.uniforms.outlineColor)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"thickness",{get:function(){return this._thickness},set:function(t){this._thickness=t,this.padding=t},enumerable:!1,configurable:!0}),v.MIN_SAMPLES=1,v.MAX_SAMPLES=100,v),Yt=(e(se,Z=a.Filter),Object.defineProperty(se.prototype,"size",{get:function(){return this.uniforms.size},set:function(t){this.uniforms.size=t="number"==typeof t?[t,t]:t},enumerable:!1,configurable:!0}),se),Wt=(e(g,K=a.Filter),g.prototype.apply=function(t,e,i,r){this.uniforms.uKernelSize=0!==this._angle?this.kernelSize:0,t.applyFilter(this,e,i,r)},Object.defineProperty(g.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this.uniforms.uRadian=t*Math.PI/180},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"center",{get:function(){return this.uniforms.uCenter},set:function(t){this.uniforms.uCenter=t},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"radius",{get:function(){return this.uniforms.uRadius},set:function(t){this.uniforms.uRadius=t=t<0||t===1/0?-1:t},enumerable:!1,configurable:!0}),g),Vt=(e(_,q=a.Filter),_.prototype.apply=function(t,e,i,r){var n;this.uniforms.dimensions[0]=null==(n=e.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=e.filterFrame)?void 0:n.height,this.uniforms.time=this.time,t.applyFilter(this,e,i,r)},Object.defineProperty(_.prototype,"mirror",{get:function(){return this.uniforms.mirror},set:function(t){this.uniforms.mirror=t},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"boundary",{get:function(){return this.uniforms.boundary},set:function(t){this.uniforms.boundary=t},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"amplitude",{get:function(){return this.uniforms.amplitude},set:function(t){this.uniforms.amplitude[0]=t[0],this.uniforms.amplitude[1]=t[1]},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"waveLength",{get:function(){return this.uniforms.waveLength},set:function(t){this.uniforms.waveLength[0]=t[0],this.uniforms.waveLength[1]=t[1]},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(t){this.uniforms.alpha[0]=t[0],this.uniforms.alpha[1]=t[1]},enumerable:!1,configurable:!0}),_.defaults={mirror:!0,boundary:.5,amplitude:[0,20],waveLength:[30,100],alpha:[1,1],time:0},_),qt=(e(m,V=a.Filter),Object.defineProperty(m.prototype,"red",{get:function(){return this.uniforms.red},set:function(t){this.uniforms.red=t},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"green",{get:function(){return this.uniforms.green},set:function(t){this.uniforms.green=t},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"blue",{get:function(){return this.uniforms.blue},set:function(t){this.uniforms.blue=t},enumerable:!1,configurable:!0}),m),Kt=(e(f,W=a.Filter),f.prototype.apply=function(t,e,i,r){this.uniforms.time=this.time,t.applyFilter(this,e,i,r)},Object.defineProperty(f.prototype,"center",{get:function(){return this.uniforms.center},set:function(t){this.uniforms.center=t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"amplitude",{get:function(){return this.uniforms.amplitude},set:function(t){this.uniforms.amplitude=t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"wavelength",{get:function(){return this.uniforms.wavelength},set:function(t){this.uniforms.wavelength=t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"brightness",{get:function(){return this.uniforms.brightness},set:function(t){this.uniforms.brightness=t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"speed",{get:function(){return this.uniforms.speed},set:function(t){this.uniforms.speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(t){this.uniforms.radius=t},enumerable:!1,configurable:!0}),f.defaults={amplitude:30,wavelength:160,brightness:1,speed:500,radius:-1},f),Zt=(e(o,Y=a.Filter),o.prototype.apply=function(t,e,i,r){var n;this.uniforms.dimensions[0]=null==(n=e.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=e.filterFrame)?void 0:n.height,t.applyFilter(this,e,i,r)},Object.defineProperty(o.prototype,"texture",{get:function(){return this.uniforms.uLightmap},set:function(t){this.uniforms.uLightmap=t},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"color",{get:function(){return this._color},set:function(t){var e=this.uniforms.ambientColor;"number"==typeof t?(u.hex2rgb(t,e),this._color=t):(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this._color=u.rgb2hex(e))},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"alpha",{get:function(){return this.uniforms.ambientColor[3]},set:function(t){this.uniforms.ambientColor[3]=t},enumerable:!1,configurable:!0}),o),Qt=(e(s,H=a.Filter),s.prototype.updateDelta=function(){this.uniforms.delta.x=0,this.uniforms.delta.y=0},Object.defineProperty(s.prototype,"blur",{get:function(){return this.uniforms.blur},set:function(t){this.uniforms.blur=t},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"gradientBlur",{get:function(){return this.uniforms.gradientBlur},set:function(t){this.uniforms.gradientBlur=t},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"start",{get:function(){return this.uniforms.start},set:function(t){this.uniforms.start=t,this.updateDelta()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"end",{get:function(){return this.uniforms.end},set:function(t){this.uniforms.end=t,this.updateDelta()},enumerable:!1,configurable:!0}),s),$t=(e(ne,X=Qt),ne.prototype.updateDelta=function(){var t=this.uniforms.end.x-this.uniforms.start.x,e=this.uniforms.end.y-this.uniforms.start.y,i=Math.sqrt(t*t+e*e);this.uniforms.delta.x=t/i,this.uniforms.delta.y=e/i},ne),Jt=(e(re,G=Qt),re.prototype.updateDelta=function(){var t=this.uniforms.end.x-this.uniforms.start.x,e=this.uniforms.end.y-this.uniforms.start.y,i=Math.sqrt(t*t+e*e);this.uniforms.delta.x=-e/i,this.uniforms.delta.y=t/i},re),te=(e(n,j=a.Filter),n.prototype.apply=function(t,e,i,r){var n=t.getFilterTexture();this.tiltShiftXFilter.apply(t,e,n,1),this.tiltShiftYFilter.apply(t,n,i,r),t.returnFilterTexture(n)},Object.defineProperty(n.prototype,"blur",{get:function(){return this.tiltShiftXFilter.blur},set:function(t){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gradientBlur",{get:function(){return this.tiltShiftXFilter.gradientBlur},set:function(t){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"start",{get:function(){return this.tiltShiftXFilter.start},set:function(t){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"end",{get:function(){return this.tiltShiftXFilter.end},set:function(t){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=t},enumerable:!1,configurable:!0}),n),ee=(e(r,U=a.Filter),Object.defineProperty(r.prototype,"offset",{get:function(){return this.uniforms.offset},set:function(t){this.uniforms.offset=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(t){this.uniforms.radius=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.uniforms.angle},set:function(t){this.uniforms.angle=t},enumerable:!1,configurable:!0}),r.defaults={radius:200,angle:4,padding:20,offset:new l.Point},r),ie=(e(i,B=a.Filter),Object.defineProperty(i.prototype,"center",{get:function(){return this.uniforms.uCenter},set:function(t){this.uniforms.uCenter=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"strength",{get:function(){return this.uniforms.uStrength},set:function(t){this.uniforms.uStrength=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.uniforms.uInnerRadius},set:function(t){this.uniforms.uInnerRadius=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.uniforms.uRadius},set:function(t){this.uniforms.uRadius=t=t<0||t===1/0?-1:t},enumerable:!1,configurable:!0}),i.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32},i);function i(t){var t=Object.assign(i.defaults,t),e=t.maxKernelSize,t=function(t,e){var i={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i}(t,["maxKernelSize"]),e=B.call(this,p,"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}",e.toFixed(1)))||this;return Object.assign(e,t),e}function r(t){var e=U.call(this,p,"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(e,r.defaults,t),e}function n(t,e,i,r){void 0===t&&(t=100),void 0===e&&(e=600);var n=j.call(this)||this;return n.tiltShiftXFilter=new $t(t,e,i,r),n.tiltShiftYFilter=new Jt(t,e,i,r),n}function re(){return null!==G&&G.apply(this,arguments)||this}function ne(){return null!==X&&X.apply(this,arguments)||this}function s(t,e,i,r){void 0===t&&(t=100),void 0===e&&(e=600);var n=H.call(this,p,"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=t,n.uniforms.gradientBlur=e,n.uniforms.start=i||new l.Point(0,window.innerHeight/2),n.uniforms.end=r||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 o(t,e,i){void 0===e&&(e=0),void 0===i&&(i=1);var r=Y.call(this,p,"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 r._color=0,r.uniforms.dimensions=new Float32Array(2),r.uniforms.ambientColor=new Float32Array([0,0,0,i]),r.texture=t,r.color=e,r}function f(t,e,i){void 0===t&&(t=[0,0]),void 0===i&&(i=0);var r=W.call(this,p,"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 r.center=t,Object.assign(r,f.defaults,e),r.time=i,r}function m(t,e,i){void 0===t&&(t=[-10,0]),void 0===e&&(e=[0,10]),void 0===i&&(i=[0,0]);var r=V.call(this,p,"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 r.red=t,r.green=e,r.blue=i,r}function _(t){var e=q.call(this,p,"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 e.time=0,e.uniforms.amplitude=new Float32Array(2),e.uniforms.waveLength=new Float32Array(2),e.uniforms.alpha=new Float32Array(2),e.uniforms.dimensions=new Float32Array(2),Object.assign(e,_.defaults,t),e}function g(t,e,i,r){void 0===t&&(t=0),void 0===e&&(e=[0,0]),void 0===i&&(i=5),void 0===r&&(r=-1);var n=K.call(this,p,"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=t,n.center=e,n.kernelSize=i,n.radius=r,n}function se(t){void 0===t&&(t=10);var e=Z.call(this,p,"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 e.size=t,e}function v(t,e,i){void 0===t&&(t=1),void 0===e&&(e=0);var r=Q.call(this,p,"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(i=void 0===i?.1:i)))||this;return r._thickness=1,r.uniforms.thickness=new Float32Array([0,0]),r.uniforms.outlineColor=new Float32Array([0,0,0,1]),Object.assign(r,{thickness:t,color:e,quality:i}),r}function y(t,e){void 0===e&&(e=0);var i=$.call(this,p,"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 i.seed=0,i.uniforms.dimensions=new Float32Array(2),"number"==typeof t?(i.seed=t,t=void 0):i.seed=e,Object.assign(i,y.defaults,t),i}function b(t,e,i){void 0===e&&(e=.05),void 0===i&&(i=t.length);var r=J.call(this,p,"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,i.toFixed(0)))||this;return r._replacements=[],r._maxColors=0,r.epsilon=e,r._maxColors=i,r.uniforms.originalColors=new Float32Array(3*i),r.uniforms.targetColors=new Float32Array(3*i),r.replacements=t,r}function x(t,e,i){void 0===t&&(t=[0,0]),void 0===e&&(e=5),void 0===i&&(i=0);var r=tt.call(this,p,"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 r.kernelSize=5,r.uniforms.uVelocity=new Float32Array(2),r._velocity=new l.ObservablePoint(r.velocityChanged,r),r.setVelocity(t),r.kernelSize=e,r.offset=i,r}function T(t){var e=et.call(this,p,"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,t=(e.parallel=!0,e.time=0,e._angle=0,e.uniforms.dimensions=new Float32Array(2),Object.assign(T.defaults,t));return e._angleLight=new l.Point,e.angle=t.angle,e.gain=t.gain,e.lacunarity=t.lacunarity,e.alpha=t.alpha,e.parallel=t.parallel,e.center=t.center,e.time=t.time,e}function w(t){var e=this,t=Object.assign({},w.defaults,t),i=t.outerStrength,r=t.innerStrength,n=t.color,s=t.knockout,o=t.quality,t=Math.round(t.distance);return(e=it.call(this,p,"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/o/t).toFixed(7)).replace(/__DIST__/gi,t.toFixed(0)+".0"))||this).uniforms.glowColor=new Float32Array([0,0,0,1]),Object.assign(e,{color:n,outerStrength:i,innerStrength:r,padding:t,knockout:s}),e}function E(t){var e=rt.call(this,p,"// 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 e.offset=100,e.fillMode=E.TRANSPARENT,e.average=!1,e.seed=0,e.minSize=8,e.sampleSize=512,e._slices=0,e._offsets=new Float32Array(1),e._sizes=new Float32Array(1),e._direction=-1,e.uniforms.dimensions=new Float32Array(2),e._canvas=document.createElement("canvas"),e._canvas.width=4,e._canvas.height=e.sampleSize,e.texture=a.Texture.from(e._canvas,{scaleMode:c.SCALE_MODES.NEAREST}),Object.assign(e,E.defaults,t),e}function oe(t){void 0===t&&(t=5);var e=nt.call(this,p,"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 e.strength=t,e}function S(t){var e=st.call(this)||this,t=(e.angle=45,e._distance=5,e._resolution=h.settings.FILTER_RESOLUTION,t?xt(xt({},S.defaults),t):S.defaults),i=t.kernels,r=t.blur,n=t.quality,s=t.pixelSize,o=t.resolution,i=(e._tintFilter=new a.Filter(p,"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}"),e._tintFilter.uniforms.color=new Float32Array(4),e._tintFilter.uniforms.shift=new l.Point,e._tintFilter.resolution=o,e._blurFilter=i?new d(i):new d(r,n),e.pixelSize=s,e.resolution=o,t.shadowOnly),r=t.rotation,n=t.distance,s=t.alpha,o=t.color;return e.shadowOnly=i,e.rotation=r,e.distance=n,e.alpha=s,e.color=o,e._updatePadding(),e}function A(t,e){void 0===t&&(t=1),void 0===e&&(e=5);var i=ot.call(this,p,"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 i.scale=t,i.angle=e,i}function O(t){var e=at.call(this,p,"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 e.time=0,e.seed=0,e.uniforms.dimensions=new Float32Array(2),Object.assign(e,O.defaults,t),e}function ae(){return lt.call(this,p,"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 P(t,e,i){void 0===e&&(e=200),void 0===i&&(i=200);var r=ht.call(this,p,"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 r.uniforms.texelSize=new Float32Array(2),r.uniforms.matrix=new Float32Array(9),void 0!==t&&(r.matrix=t),r.width=e,r.height=i,r}function R(t,e,i){void 0===t&&(t=16711680),void 0===e&&(e=0),void 0===i&&(i=.4);var r=ut.call(this,p,"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 r._originalColor=16711680,r._newColor=0,r.uniforms.originalColor=new Float32Array(3),r.uniforms.newColor=new Float32Array(3),r.originalColor=t,r.newColor=e,r.epsilon=i,r}function le(t,e){void 0===t&&(t=0),void 0===e&&(e=1);var i=ct.call(this,p,"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 i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=t,i.alpha=e,i}function C(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=1);var r=pt.call(this,p,"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 r.mix=1,r._size=0,r._sliceSize=0,r._slicePixelSize=0,r._sliceInnerSize=0,r._nearest=!1,r._scaleMode=null,r._colorMap=null,r._scaleMode=null,r.nearest=e,r.mix=i,r.colorMap=t,r}function M(t){var e=dt.call(this,p,"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 e.uniforms.dimensions=new Float32Array(2),Object.assign(e,M.defaults,t),e}function k(t,e,i,r){void 0===t&&(t=2),void 0===e&&(e=4),void 0===i&&(i=h.settings.FILTER_RESOLUTION),void 0===r&&(r=5);var n,s,o=ft.call(this)||this;return"number"==typeof t?s=n=t:t instanceof l.Point?(n=t.x,s=t.y):Array.isArray(t)&&(n=t[0],s=t[1]),o.blurXFilter=new N.BlurFilterPass(!0,n,e,i,r),o.blurYFilter=new N.BlurFilterPass(!1,s,e,i,r),o.blurYFilter.blendMode=c.BLEND_MODES.SCREEN,o.defaultFilter=new L.AlphaFilter,o}function I(t){var e=mt.call(this,p,"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 e._thickness=2,e._angle=0,e.uniforms.lightColor=new Float32Array(3),e.uniforms.shadowColor=new Float32Array(3),Object.assign(e,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},t),e.padding=1,e}function he(t){void 0===t&&(t=8);var e=_t.call(this,p,"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 e.size=t,e}function D(t){var e=gt.call(this,p,"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,t=(e.bloomScale=1,e.brightness=1,e._resolution=h.settings.FILTER_RESOLUTION,"number"==typeof t&&(t={threshold:t}),Object.assign(D.defaults,t)),i=(e.bloomScale=t.bloomScale,e.brightness=t.brightness,t.kernels),r=t.blur,n=t.quality,s=t.pixelSize,o=t.resolution;return e._extractFilter=new wt(t.threshold),e._extractFilter.resolution=o,e._blurFilter=i?new d(i):new d(r,n),e.pixelSize=s,e.resolution=o,e}function F(t,e,i){void 0===t&&(t=4),void 0===e&&(e=3);var r=vt.call(this,p,(i=void 0===i?!1:i)?"\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 r._kernels=[],r._blur=4,r._quality=3,r.uniforms.uOffset=new Float32Array(2),r._pixelSize=new l.Point,r.pixelSize=1,r._clamp=i,Array.isArray(t)?r.kernels=t:(r._blur=t,r.quality=e),r}function ue(t){void 0===t&&(t=.5);var e=yt.call(this,p,"\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 e.threshold=t,e}function ce(t){var e=bt.call(this,p,"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 e.gamma=1,e.saturation=1,e.contrast=1,e.brightness=1,e.red=1,e.green=1,e.blue=1,e.alpha=1,Object.assign(e,t),e}return t.AdjustmentFilter=Tt,t.AdvancedBloomFilter=Et,t.AsciiFilter=St,t.BevelFilter=At,t.BloomFilter=Ot,t.BulgePinchFilter=Pt,t.CRTFilter=Dt,t.ColorMapFilter=Rt,t.ColorOverlayFilter=Ct,t.ColorReplaceFilter=Mt,t.ConvolutionFilter=kt,t.CrossHatchFilter=It,t.DotFilter=Ft,t.DropShadowFilter=Lt,t.EmbossFilter=Nt,t.GlitchFilter=zt,t.GlowFilter=Bt,t.GodrayFilter=Ut,t.KawaseBlurFilter=d,t.MotionBlurFilter=jt,t.MultiColorReplaceFilter=Gt,t.OldFilmFilter=Xt,t.OutlineFilter=Ht,t.PixelateFilter=Yt,t.RGBSplitFilter=qt,t.RadialBlurFilter=Wt,t.ReflectionFilter=Vt,t.ShockwaveFilter=Kt,t.SimpleLightmapFilter=Zt,t.TiltShiftAxisFilter=Qt,t.TiltShiftFilter=te,t.TiltShiftXFilter=$t,t.TiltShiftYFilter=Jt,t.TwistFilter=ee,t.ZoomBlurFilter=ie,Object.defineProperty(t,"__esModule",{value:!0}),t}({},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";h.createList=function(t){if("list"in t){var e=t.list,i=void 0,r=e[0],n=r.value,r=r.time,r=i=new h("string"==typeof n?l.ParticleUtils.hexToRGB(n):n,r,t.ease);if(2<e.length||2===e.length&&e[1].value!==n)for(var s=1;s<e.length;++s){var o=e[s],a=o.value,o=o.time;i.next=new h("string"==typeof a?l.ParticleUtils.hexToRGB(a):a,o),i=i.next}return r.isStepped=!!t.isStepped,r}n=new h("string"==typeof t.start?l.ParticleUtils.hexToRGB(t.start):t.start,0);return t.end!==t.start&&(n.next=new h("string"==typeof t.end?l.ParticleUtils.hexToRGB(t.end):t.end,1)),n};var e,c=h;function h(t,e,i){this.value=t,this.time=e,this.next=null,this.isStepped=!1,this.ease=i?"function"==typeof i?i:l.ParticleUtils.generateEase(i):null}var p,t=m;function u(t){return e(t)}e=parseInt(/^(\d+)\./.exec(m.VERSION)[1],10)<5?t.Texture.fromImage:t.Texture.from,(p=l.ParticleUtils||(l.ParticleUtils={})).verbose=!1,p.DEG_TO_RADS=Math.PI/180,p.rotatePoint=function(t,e){var i,r;t&&(t*=p.DEG_TO_RADS,r=Math.sin(t),t=Math.cos(t),i=e.x*t-e.y*r,r=e.x*r+e.y*t,e.x=i,e.y=r)},p.combineRGBComponents=function(t,e,i){return t<<16|e<<8|i},p.normalize=function(t){var e=1/p.length(t);t.x*=e,t.y*=e},p.scaleBy=function(t,e){t.x*=e,t.y*=e},p.length=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},p.hexToRGB=function(t,e){var i;return e=e||{},"#"===t.charAt(0)?t=t.substr(1):0===t.indexOf("0x")&&(t=t.substr(2)),8===t.length&&(i=t.substr(0,2),t=t.substr(2)),e.r=parseInt(t.substr(0,2),16),e.g=parseInt(t.substr(2,2),16),e.b=parseInt(t.substr(4,2),16),i&&(e.a=parseInt(i,16)),e},p.generateEase=function(i){var r=i.length,n=1/r;return function(t){var e=r*t|0,t=(t-e*n)*r,e=i[e]||i[r-1];return e.s+t*(2*(1-t)*(e.cp-e.s)+t*(e.e-e.s))}},p.getBlendMode=function(t){if(!t)return m.BLEND_MODES.NORMAL;for(t=t.toUpperCase();0<=t.indexOf(" ");)t=t.replace(" ","_");return m.BLEND_MODES[t]||m.BLEND_MODES.NORMAL},p.createSteppedGradient=function(t,e){("number"!=typeof(e=void 0===e?10:e)||e<=0)&&(e=10);for(var i=new c(p.hexToRGB(t[0].value),t[0].time),r=(i.isStepped=!0,i),n=t[0],s=1,o=t[s],a=1;a<e;++a){for(var l=a/e;l>o.time;)n=o,o=t[++s];var l=(l-n.time)/(o.time-n.time),h=p.hexToRGB(n.value),u=p.hexToRGB(o.value),u={r:(u.r-h.r)*l+h.r,g:(u.g-h.g)*l+h.g,b:(u.b-h.b)*l+h.b};r.next=new c(u,a/e),r=r.next}return i};var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function i(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function n(t){return this.ease&&(t=this.ease(t)),(this.next.value-this.current.value)*t+this.current.value}function s(t){this.ease&&(t=this.ease(t));var e=this.current.value,i=this.next.value,r=(i.r-e.r)*t+e.r,n=(i.g-e.g)*t+e.g,i=(i.b-e.b)*t+e.b;return l.ParticleUtils.combineRGBComponents(r,n,i)}function o(t){for(this.ease&&(t=this.ease(t));t>this.next.time;)this.current=this.next,this.next=this.next.next;return t=(t-this.current.time)/(this.next.time-this.current.time),(this.next.value-this.current.value)*t+this.current.value}function a(t){for(this.ease&&(t=this.ease(t));t>this.next.time;)this.current=this.next,this.next=this.next.next;t=(t-this.current.time)/(this.next.time-this.current.time);var e=this.current.value,i=this.next.value,r=(i.r-e.r)*t+e.r,n=(i.g-e.g)*t+e.g,i=(i.b-e.b)*t+e.b;return l.ParticleUtils.combineRGBComponents(r,n,i)}function d(t){for(this.ease&&(t=this.ease(t));this.next&&t>this.next.time;)this.current=this.next,this.next=this.next.next;return this.current.value}function f(t){for(this.ease&&(t=this.ease(t));this.next&&t>this.next.time;)this.current=this.next,this.next=this.next.next;var e=this.current.value;return l.ParticleUtils.combineRGBComponents(e.r,e.g,e.b)}g.prototype.reset=function(t){this.current=t,this.next=t.next,this.next&&1<=this.next.time?this.interpolate=this.isColor?s:n:t.isStepped?this.interpolate=this.isColor?f:d:this.interpolate=this.isColor?a:o,this.ease=this.current.ease};var _=g;function g(t){void 0===t&&(t=!1),this.current=null,this.next=null,this.isColor=!!t,this.interpolate=null,this.ease=null}i(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 t=this.colorList.current.value;this.tint=l.ParticleUtils.combineRGBComponents(t.r,t.g,t.b),this.visible=!0},b.prototype.applyArt=function(t){this.texture=t||m.Texture.EMPTY},b.prototype.update=function(t){var e,i,r,n,s,o;return this.age+=t,this.age>=this.maxLife||this.age<0?(this.kill(),-1):(e=this.age*this._oneOverLife,this.ease&&(e=4===this.ease.length?this.ease(e,0,1,1):this.ease(e)),this._doAlpha&&(this.alpha=this.alphaList.interpolate(e)),this._doScale&&(i=this.scaleList.interpolate(e)*this.scaleMultiplier,this.scale.x=this.scale.y=i),this._doNormalMovement&&(s=i=void 0,s=this._doSpeed?(r=this.speedList.interpolate(e)*this.speedMultiplier,l.ParticleUtils.normalize(this.velocity),l.ParticleUtils.scaleBy(this.velocity,r),i=this.velocity.x*t,this.velocity.y*t):this._doAcceleration?(r=this.velocity.x,n=this.velocity.y,this.velocity.x+=this.acceleration.x*t,this.velocity.y+=this.acceleration.y*t,this.maxSpeed&&(o=l.ParticleUtils.length(this.velocity))>this.maxSpeed&&l.ParticleUtils.scaleBy(this.velocity,this.maxSpeed/o),i=(r+this.velocity.x)/2*t,(n+this.velocity.y)/2*t):(i=this.velocity.x*t,this.velocity.y*t),this.position.x+=i,this.position.y+=s),this._doColor&&(this.tint=this.colorList.interpolate(e)),0!==this.rotationAcceleration?(o=this.rotationSpeed+this.rotationAcceleration*t,this.rotation+=(this.rotationSpeed+o)/2*t,this.rotationSpeed=o):0!==this.rotationSpeed?this.rotation+=this.rotationSpeed*t:this.acceleration&&!this.noRotation&&(this.rotation=Math.atan2(this.velocity.y,this.velocity.x)),e)},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(t){for(var e=t.length;0<=e;--e)"string"==typeof t[e]&&(t[e]=u(t[e]));if(l.ParticleUtils.verbose)for(e=t.length-1;0<e;--e)if(t[e].baseTexture!==t[e-1].baseTexture){window.console&&console.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL");break}return t},b.parseData=function(t){return t};var v,y=b;function b(t){var e=v.call(this)||this;return e.prevChild=e.nextChild=null,e.emitter=t,e.anchor.x=e.anchor.y=.5,e.velocity=new m.Point,e.rotationSpeed=0,e.rotationAcceleration=0,e.maxLife=0,e.age=0,e.ease=null,e.extraData=null,e.alphaList=new _,e.speedList=new _,e.speedMultiplier=1,e.acceleration=new m.Point,e.maxSpeed=NaN,e.scaleList=new _,e.scaleMultiplier=1,e.colorList=new _(!0),e._doAlpha=!1,e._doScale=!1,e._doSpeed=!1,e._doAcceleration=!1,e._doColor=!1,e._doNormalMovement=!1,e._oneOverLife=0,e.next=null,e.prev=null,e.init=e.init,e.Particle_init=b.prototype.init,e.update=e.update,e.Particle_update=b.prototype.update,e.Sprite_destroy=v.prototype.destroy,e.Particle_destroy=b.prototype.destroy,e.applyArt=e.applyArt,e.kill=e.kill,e}T.prototype.init=function(t){if(t&&t.length)if(Array.isArray(t[0]))for(var e=0;e<t.length;++e)for(var i=t[e],r=i[0],n=1;n<i.length;++n){var s=i[n];this.segments.push({p1:r,p2:s,l:0}),r=s}else for(r=t[0],e=1;e<t.length;++e){s=t[e];this.segments.push({p1:r,p2:s,l:0}),r=s}else this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});for(e=0;e<this.segments.length;++e){var o=this.segments[e],a=o.p1,o=o.p2,o=Math.sqrt((o.x-a.x)*(o.x-a.x)+(o.y-a.y)*(o.y-a.y));this.segments[e].l=o,this.totalLength+=o,this.countingLengths.push(this.totalLength)}},T.prototype.getRandomPoint=function(t){var e,i,r=Math.random()*this.totalLength;if(1===this.segments.length)e=this.segments[0],i=r;else for(var n=0;n<this.countingLengths.length;++n)if(r<this.countingLengths[n]){e=this.segments[n],i=0===n?r:r-this.countingLengths[n-1];break}i/=e.l||1;var s=e.p1,o=e.p2;t.x=s.x+i*(o.x-s.x),t.y=s.y+i*(o.y-s.y)};var x=T;function T(t){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(t)}var t=m,w=(parseInt(/^(\d+)\./.exec(m.VERSION)[1],10)<5?t.ticker:t.Ticker).shared,E=new m.Point,t=(Object.defineProperty(S.prototype,"orderedArt",{get:function(){return-1!==this._currentImageIndex},set:function(t){this._currentImageIndex=t?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"frequency",{get:function(){return this._frequency},set:function(t){this._frequency="number"==typeof t&&0<t?t:1},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"particleConstructor",{get:function(){return this._particleConstructor},set:function(t){if(t!==this._particleConstructor){this._particleConstructor=t,this.cleanup();for(var e=this._poolFirst;e;e=e.next)e.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(t){this.cleanup(),this._parent=t},enumerable:!0,configurable:!0}),S.prototype.init=function(t,e){var i,r;t&&e&&(this.cleanup(),this._origConfig=e,this._origArt=t,t=Array.isArray(t)?t.slice():[t],i=this._particleConstructor,this.particleImages=i.parseArt?i.parseArt(t):t,e.alpha?this.startAlpha=c.createList(e.alpha):this.startAlpha=new c(1,0),e.speed?(this.startSpeed=c.createList(e.speed),this.minimumSpeedMultiplier=("minimumSpeedMultiplier"in e?e:e.speed).minimumSpeedMultiplier||1):(this.minimumSpeedMultiplier=1,this.startSpeed=new c(0,0)),(r=e.acceleration)&&(r.x||r.y)?(this.startSpeed.next=null,this.acceleration=new m.Point(r.x,r.y),this.maxSpeed=e.maxSpeed||NaN):this.acceleration=new m.Point,e.scale?(this.startScale=c.createList(e.scale),this.minimumScaleMultiplier=("minimumScaleMultiplier"in e?e:e.scale).minimumScaleMultiplier||1):(this.startScale=new c(1,0),this.minimumScaleMultiplier=1),e.color?this.startColor=c.createList(e.color):this.startColor=new c({r:255,g:255,b:255},0),e.startRotation?(this.minStartRotation=e.startRotation.min,this.maxStartRotation=e.startRotation.max):this.minStartRotation=this.maxStartRotation=0,e.noRotation&&(this.minStartRotation||this.maxStartRotation)?this.noRotation=!!e.noRotation:this.noRotation=!1,e.rotationSpeed?(this.minRotationSpeed=e.rotationSpeed.min,this.maxRotationSpeed=e.rotationSpeed.max):this.minRotationSpeed=this.maxRotationSpeed=0,this.rotationAcceleration=e.rotationAcceleration||0,this.minLifetime=e.lifetime.min,this.maxLifetime=e.lifetime.max,this.particleBlendMode=l.ParticleUtils.getBlendMode(e.blendMode),e.ease?this.customEase="function"==typeof e.ease?e.ease:l.ParticleUtils.generateEase(e.ease):this.customEase=null,i.parseData?this.extraData=i.parseData(e.extraData):this.extraData=e.extraData||null,this.spawnRect=this.spawnCircle=null,this.particlesPerWave=1,e.particlesPerWave&&1<e.particlesPerWave&&(this.particlesPerWave=e.particlesPerWave),this.particleSpacing=0,this.angleStart=0,this.parseSpawnType(e),this.frequency=e.frequency,this.spawnChance="number"==typeof e.spawnChance&&0<e.spawnChance?e.spawnChance:1,this.emitterLifetime=e.emitterLifetime||-1,this.maxParticles=0<e.maxParticles?e.maxParticles:1e3,this.addAtBack=!!e.addAtBack,this.rotation=0,this.ownerPos=new m.Point,this.spawnPos=new m.Point(e.pos.x,e.pos.y),this.initAdditional(t,e),this._prevEmitterPos=this.spawnPos.clone(),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=void 0===e.emit||!!e.emit,this.autoUpdate=!!e.autoUpdate,this.orderedArt=!!e.orderedArt)},S.prototype.initAdditional=function(t,e){},S.prototype.parseSpawnType=function(t){var e;switch(t.spawnType){case"rect":this.spawnType="rect",this._spawnFunc=this._spawnRect;var i=t.spawnRect;this.spawnRect=new m.Rectangle(i.x,i.y,i.w,i.h);break;case"circle":this.spawnType="circle",this._spawnFunc=this._spawnCircle,e=t.spawnCircle,this.spawnCircle=new m.Circle(e.x,e.y,e.r);break;case"ring":this.spawnType="ring",this._spawnFunc=this._spawnRing,e=t.spawnCircle,this.spawnCircle=new m.Circle(e.x,e.y,e.r),this.spawnCircle.minRadius=e.minR;break;case"burst":this.spawnType="burst",this._spawnFunc=this._spawnBurst,this.particleSpacing=t.particleSpacing,this.angleStart=t.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(t.spawnPolygon);break;default:this.spawnType="point",this._spawnFunc=this._spawnPoint}},S.prototype.recycle=function(t){t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===this._activeParticlesLast&&(this._activeParticlesLast=t.prev),t===this._activeParticlesFirst&&(this._activeParticlesFirst=t.next),t.prev=null,t.next=this._poolFirst,(this._poolFirst=t).parent&&t.parent.removeChild(t),--this.particleCount},S.prototype.rotate=function(t){var e;this.rotation!==t&&(e=t-this.rotation,this.rotation=t,l.ParticleUtils.rotatePoint(e,this.spawnPos),this._posChanged=!0)},S.prototype.updateSpawnPos=function(t,e){this._posChanged=!0,this.spawnPos.x=t,this.spawnPos.y=e},S.prototype.updateOwnerPos=function(t,e){this._posChanged=!0,this.ownerPos.x=t,this.ownerPos.y=e},S.prototype.resetPositionTracking=function(){this._prevPosIsValid=!1},Object.defineProperty(S.prototype,"emit",{get:function(){return this._emit},set:function(t){this._emit=!!t,this._emitterLife=this.emitterLifetime},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){this._autoUpdate&&!t?w.remove(this.update,this):!this._autoUpdate&&t&&w.add(this.update,this),this._autoUpdate=!!t},enumerable:!0,configurable:!0}),S.prototype.playOnceAndDestroy=function(t){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=t},S.prototype.playOnce=function(t){this.emit=!0,this._completeCallback=t},S.prototype.update=function(t){if(this._autoUpdate&&(t=t/m.settings.TARGET_FPMS/1e3),this._parent){for(var e,i,r,n=this._activeParticlesFirst;n;n=e)e=n.next,n.update(t);this._prevPosIsValid&&(i=this._prevEmitterPos.x,r=this._prevEmitterPos.y);var s,o=this.ownerPos.x+this.spawnPos.x,a=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=t<0?0:t;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 h,u=void 0,c=void 0;c=this._prevPosIsValid&&this._posChanged?(u=(o-i)*(h=1+this._spawnTimer/t)+i,(a-r)*h+r):(u=o,a);for(var p,d=0,f=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount);d<f;++d)this.spawnChance<1&&Math.random()>=this.spawnChance||(p=void 0,this._poolFirst?(p=this._poolFirst,this._poolFirst=this._poolFirst.next,p.next=null):p=new this.particleConstructor(this),1<this.particleImages.length?-1!==this._currentImageIndex?(p.applyArt(this.particleImages[this._currentImageIndex++]),(this._currentImageIndex<0||this._currentImageIndex>=this.particleImages.length)&&(this._currentImageIndex=0)):p.applyArt(this.particleImages[Math.floor(Math.random()*this.particleImages.length)]):p.applyArt(this.particleImages[0]),p.alphaList.reset(this.startAlpha),1!==this.minimumSpeedMultiplier&&(p.speedMultiplier=Math.random()*(1-this.minimumSpeedMultiplier)+this.minimumSpeedMultiplier),p.speedList.reset(this.startSpeed),p.acceleration.x=this.acceleration.x,p.acceleration.y=this.acceleration.y,p.maxSpeed=this.maxSpeed,1!==this.minimumScaleMultiplier&&(p.scaleMultiplier=Math.random()*(1-this.minimumScaleMultiplier)+this.minimumScaleMultiplier),p.scaleList.reset(this.startScale),p.colorList.reset(this.startColor),this.minRotationSpeed===this.maxRotationSpeed?p.rotationSpeed=this.minRotationSpeed:p.rotationSpeed=Math.random()*(this.maxRotationSpeed-this.minRotationSpeed)+this.minRotationSpeed,p.rotationAcceleration=this.rotationAcceleration,p.noRotation=this.noRotation,p.maxLife=l,p.blendMode=this.particleBlendMode,p.ease=this.customEase,p.extraData=this.extraData,this.applyAdditionalProperties(p),this._spawnFunc(p,u,c,d),p.init(),this.addAtBack?this._parent.addChildAt(p,0):this._parent.addChild(p),this._activeParticlesLast?((this._activeParticlesLast.next=p).prev=this._activeParticlesLast,this._activeParticlesLast=p):this._activeParticlesLast=this._activeParticlesFirst=p,++this.particleCount,p.update(-this._spawnTimer))}}this._spawnTimer+=this._frequency}this._posChanged&&(this._prevEmitterPos.x=o,this._prevEmitterPos.y=a,this._prevPosIsValid=!0,this._posChanged=!1),this._emit||this._activeParticlesFirst||(this._completeCallback&&(s=this._completeCallback,this._completeCallback=null,s()),this._destroyWhenComplete&&this.destroy())}},S.prototype.applyAdditionalProperties=function(t){},S.prototype._spawnPoint=function(t,e,i){this.minStartRotation===this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,t.position.x=e,t.position.y=i},S.prototype._spawnRect=function(t,e,i){this.minStartRotation===this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.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),t.position.x=e+E.x,t.position.y=i+E.y},S.prototype._spawnCircle=function(t,e,i){this.minStartRotation===this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.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),t.position.x=e+E.x,t.position.y=i+E.y},S.prototype._spawnRing=function(t,e,i){var r=this.spawnCircle,r=(this.minStartRotation===this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,r.minRadius!==r.radius?E.x=Math.random()*(r.radius-r.minRadius)+r.minRadius:E.x=r.radius,E.y=0,360*Math.random());t.rotation+=r,l.ParticleUtils.rotatePoint(r,E),E.x+=this.spawnCircle.x,E.y+=this.spawnCircle.y,0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),t.position.x=e+E.x,t.position.y=i+E.y},S.prototype._spawnPolygonalChain=function(t,e,i){this.minStartRotation===this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,this.spawnPolygonalChain.getRandomPoint(E),0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),t.position.x=e+E.x,t.position.y=i+E.y},S.prototype._spawnBurst=function(t,e,i,r){0===this.particleSpacing?t.rotation=360*Math.random():t.rotation=this.angleStart+this.particleSpacing*r+this.rotation,t.position.x=e,t.position.y=i},S.prototype.cleanup=function(){for(var t,e=this._activeParticlesFirst;e;e=t)t=e.next,this.recycle(e),e.parent&&e.parent.removeChild(e);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0},S.prototype.destroy=function(){var t;this.autoUpdate=!1,this.cleanup();for(var e=this._poolFirst;e;e=t)t=e.next,e.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(t,e,i){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=t,e&&i&&this.init(e,i),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,O=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],P=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(O).join("|"),"g");i(M,R=y),M.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},M.prototype.update=function(t){var e,i=this.Particle_update(t);return 0<=i&&this.path&&(e=this._doSpeed?this.speedList.interpolate(i)*this.speedMultiplier:this.speedList.current.value*this.speedMultiplier,this.movement+=e*t,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),i},M.prototype.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},M.parseArt=function(t){return y.parseArt(t)},M.parseData=function(t){var e={};if(t&&t.path)try{e.path=function(t){for(var e=t.match(P),i=e.length-1;0<=i;--i)0<=O.indexOf(e[i])&&(e[i]="Math."+e[i]);return t=e.join(""),new Function("x","return "+t+";")}(t.path)}catch(t){l.ParticleUtils.verbose&&console.error("PathParticle: error in parsing path expression"),e.path=null}else l.ParticleUtils.verbose&&console.error("PathParticle requires a path string in extraData!"),e.path=null;return e};var R,C=M;function M(t){t=R.call(this,t)||this;return t.path=null,t.initialRotation=0,t.initialPosition=new m.Point,t.movement=0,t}i(I,k=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(t){this.textures=t.textures,this.framerate=t.framerate,this.duration=t.duration,this.loop=t.loop},I.prototype.update=function(t){var e=this.Particle_update(t);return 0<=e&&(this.elapsed+=t,this.elapsed>=this.duration&&(this.loop?this.elapsed=this.elapsed%this.duration:this.elapsed=this.duration-1e-6),t=this.elapsed*this.framerate+1e-7|0,this.texture=this.textures[t]||this.textures[this.textures.length-1]||m.Texture.EMPTY),e},I.prototype.destroy=function(){this.Particle_destroy(),this.textures=null},I.parseArt=function(t){for(var e=[],i=0;i<t.length;++i){for(var r=t[i],n=e[i]={},s=n.textures=[],o=r.textures,a=0;a<o.length;++a)if("string"==typeof(h=o[a]))s.push(u(h));else if(h instanceof m.Texture)s.push(h);else for(var l=h.count||1,h="string"==typeof h.texture?u(h.texture):h.texture;0<l;--l)s.push(h);"matchLife"===r.framerate?(n.framerate=-1,n.duration=0,n.loop=!1):(n.loop=!!r.loop,n.framerate=0<r.framerate?r.framerate:60,n.duration=s.length/n.framerate)}return e};var k,L=I;function I(t){t=k.call(this,t)||this;return t.textures=null,t.duration=0,t.framerate=0,t.elapsed=0,t.loop=!1,t}i(F,D=m.Container),Object.defineProperty(F.prototype,"firstChild",{get:function(){return this._firstChild},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"lastChild",{get:function(){return this._lastChild},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"childCount",{get:function(){return this._childCount},enumerable:!0,configurable:!0}),F.prototype.addChild=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1<t.length)for(var i=0;i<t.length;i++)this.addChild(t[i]);else{var r=t[0];r.parent&&r.parent.removeChild(r),(r.parent=this).sortDirty=!0,r.transform._parentID=-1,this._lastChild?((this._lastChild.nextChild=r).prevChild=this._lastChild,this._lastChild=r):this._firstChild=this._lastChild=r,++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",r,this,this._childCount),r.emit("added",this)}return t[0]},F.prototype.addChildAt=function(t,e){if(e<0||e>this._childCount)throw new Error("addChildAt: The index "+e+" supplied is out of bounds "+this._childCount);t.parent&&t.parent.removeChild(t),(t.parent=this).sortDirty=!0,t.transform._parentID=-1;var i=t;if(this._firstChild)if(0===e)(this._firstChild.prevChild=i).nextChild=this._firstChild,this._firstChild=i;else if(e===this._childCount)(this._lastChild.nextChild=i).prevChild=this._lastChild,this._lastChild=i;else{for(var r=0,n=this._firstChild;r<e;)n=n.nextChild,++r;(n.prevChild.nextChild=i).prevChild=n.prevChild,(i.nextChild=n).prevChild=i}else this._firstChild=this._lastChild=i;return++this._childCount,this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},F.prototype.addChildBelow=function(t,e){if(e.parent!==this)throw new Error("addChildBelow: The relative target must be a child of this parent");return t.parent&&t.parent.removeChild(t),(t.parent=this).sortDirty=!0,t.transform._parentID=-1,(e.prevChild.nextChild=t).prevChild=e.prevChild,(t.nextChild=e).prevChild=t,this._firstChild===e&&(this._firstChild=t),++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",t,this,this._childCount),t.emit("added",this),t},F.prototype.addChildAbove=function(t,e){if(e.parent!==this)throw new Error("addChildBelow: The relative target must be a child of this parent");return t.parent&&t.parent.removeChild(t),(t.parent=this).sortDirty=!0,t.transform._parentID=-1,(e.nextChild.prevChild=t).nextChild=e.nextChild,(t.prevChild=e).nextChild=t,this._lastChild===e&&(this._lastChild=t),++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",t,this,this._childCount),t.emit("added",this),t},F.prototype.swapChildren=function(t,e){var i,r;t!==e&&t.parent===this&&e.parent===this&&(i=t.prevChild,r=t.nextChild,t.prevChild=e.prevChild,t.nextChild=e.nextChild,e.prevChild=i,e.nextChild=r,this._firstChild===t?this._firstChild=e:this._firstChild===e&&(this._firstChild=t),this._lastChild===t?this._lastChild=e:this._lastChild===e&&(this._lastChild=t),this.onChildrenChange())},F.prototype.getChildIndex=function(t){for(var e=0,i=this._firstChild;i&&i!==t;)i=i.nextChild,++e;if(i)return e;throw new Error("The supplied DisplayObject must be a child of the caller")},F.prototype.setChildIndex=function(t,e){if(e<0||e>=this._childCount)throw new Error("The index "+e+" supplied is out of bounds "+this._childCount);if(t.parent!==this)throw new Error("The supplied DisplayObject must be a child of the caller");if(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._firstChild)if(0===e)(this._firstChild.prevChild=t).nextChild=this._firstChild,this._firstChild=t;else if(e===this._childCount)(this._lastChild.nextChild=t).prevChild=this._lastChild,this._lastChild=t;else{for(var i=0,r=this._firstChild;i<e;)r=r.nextChild,++i;(r.prevChild.nextChild=t).prevChild=r.prevChild,(t.nextChild=r).prevChild=t}else this._firstChild=this._lastChild=t;this.onChildrenChange(e)},F.prototype.removeChild=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1<t.length)for(var i=0;i<t.length;i++)this.removeChild(t[i]);else{var r=t[0];if(r.parent!==this)return null;r.parent=null,r.transform._parentID=-1,r.nextChild&&(r.nextChild.prevChild=r.prevChild),r.prevChild&&(r.prevChild.nextChild=r.nextChild),this._firstChild===r&&(this._firstChild=r.nextChild),this._lastChild===r&&(this._lastChild=r.prevChild),r.nextChild=null,r.prevChild=null,--this._childCount,this._boundsID++,this.onChildrenChange(),r.emit("removed",this),this.emit("childRemoved",r,this)}return t[0]},F.prototype.getChildAt=function(t){if(t<0||t>=this._childCount)throw new Error("getChildAt: Index ("+t+") does not exist.");if(0===t)return this._firstChild;if(t===this._childCount)return this._lastChild;for(var e=0,i=this._firstChild;e<t;)i=i.nextChild,++e;return i},F.prototype.removeChildAt=function(t){var e=this.getChildAt(t);return e.parent=null,e.transform._parentID=-1,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._childCount,this._boundsID++,this.onChildrenChange(t),e.emit("removed",this),this.emit("childRemoved",e,this,t),e},F.prototype.removeChildren=function(t,e){var i=t=void 0===t?0:t,r=e=void 0===e?this._childCount:e,e=r-i;if(0<e&&e<=r){for(var n=[],s=this._firstChild,o=0;o<=r&&s;++o,s=s.nextChild)i<=o&&n.push(s);var a=n[0].prevChild,l=n[n.length-1].nextChild;l?l.prevChild=a:this._lastChild=a,a?a.nextChild=l:this._firstChild=l;for(o=0;o<n.length;++o)n[o].parent=null,n[o].transform&&(n[o].transform._parentID=-1),n[o].nextChild=null,n[o].prevChild=null;this._boundsID++,this.onChildrenChange(t);for(o=0;o<n.length;++o)n[o].emit("removed",this),this.emit("childRemoved",n[o],this,o);return n}if(0==e&&0===this._childCount)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},F.prototype.updateTransform=function(){var t,e;for(this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,t=this._firstChild;t;t=e)e=t.nextChild,t.visible&&t.updateTransform()},F.prototype.calculateBounds=function(){var t;for(this._bounds.clear(),this._calculateBounds(),t=this._firstChild;t;t=i){var e,i=t.nextChild;t.visible&&t.renderable&&(t.calculateBounds(),t._mask?((e=t._mask.maskObject||t._mask).calculateBounds(),this._bounds.addBoundsMask(t._bounds,e._bounds)):t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds))}this._bounds.updateID=this._boundsID},F.prototype.getLocalBounds=function(t,e){void 0===e&&(e=!1);t=m.DisplayObject.prototype.getLocalBounds.call(this,t);if(!e)for(var i,r=void 0,r=this._firstChild;r;r=i)i=r.nextChild,r.visible&&r.updateTransform();return t},F.prototype.render=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(t);else{this._render(t);for(var e,i=void 0,i=this._firstChild;i;i=e)e=i.nextChild,i.render(t)}},F.prototype.renderAdvanced=function(t){t.batch.flush();var e,i,r=this.filters,n=this._mask;if(r){this._enabledFilters||(this._enabledFilters=[]);for(var s=this._enabledFilters.length=0;s<r.length;s++)r[s].enabled&&this._enabledFilters.push(r[s]);this._enabledFilters.length&&t.filter.push(this,this._enabledFilters)}for(n&&t.mask.push(this,this._mask),this._render(t),e=this._firstChild;e;e=i)i=e.nextChild,e.render(t);t.batch.flush(),n&&t.mask.pop(this),r&&this._enabledFilters&&this._enabledFilters.length&&t.filter.pop()},F.prototype.renderWebGL=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvancedWebGL(t);else{this._renderWebGL(t);for(var e,i=void 0,i=this._firstChild;i;i=e)e=i.nextChild,i.renderWebGL(t)}},F.prototype.renderAdvancedWebGL=function(t){t.flush();var e,i,r=this._filters,n=this._mask;if(r){this._enabledFilters||(this._enabledFilters=[]);for(var s=this._enabledFilters.length=0;s<r.length;s++)r[s].enabled&&this._enabledFilters.push(r[s]);this._enabledFilters.length&&t.filterManager.pushFilter(this,this._enabledFilters)}for(n&&t.maskManager.pushMask(this,this._mask),this._renderWebGL(t),e=this._firstChild;e;e=i)i=e.nextChild,e.renderWebGL(t);t.flush(),n&&t.maskManager.popMask(this,this._mask),r&&this._enabledFilters&&this._enabledFilters.length&&t.filterManager.popFilter()},F.prototype.renderCanvas=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){var e,i;for(this._mask&&t.maskManager.pushMask(this._mask),this._renderCanvas(t),e=this._firstChild;e;e=i)i=e.nextChild,e.renderCanvas(t);this._mask&&t.maskManager.popMask(t)}};var D,N=F;function F(){var t=null!==D&&D.apply(this,arguments)||this;return t._firstChild=null,t._lastChild=null,t._childCount=0,t}l.AnimatedParticle=L,l.Emitter=t,l.GetTextureFromString=u,l.LinkedListContainer=N,l.Particle=y,l.PathParticle=C,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(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(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"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).pixi_projection={},t.PIXI,t.PIXI,t.PIXI.utils,t.PIXI,t.PIXI,t.PIXI,t.PIXI,t.PIXI,t.PIXI,t.PIXI,t.PIXI)}(this,function(a,_,u,g,d,t,L,s,N,e,z,B){"use strict";class U extends _.Geometry{constructor(t=!1){super(),this._buffer=new _.Buffer(null,t,!1),this._indexBuffer=new _.Buffer(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,3,!1,u.TYPES.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,u.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,u.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,u.TYPES.FLOAT).addIndex(this._indexBuffer)}}class j{static create(t){const{vertex:e,fragment:i,vertexSize:r,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:U,vertexSize:7},t);return class extends _.AbstractBatchRenderer{constructor(t){super(t),this.shaderGenerator=new _.BatchShaderGenerator(e,i),this.geometryClass=n,this.vertexSize=r}packInterleavedGeometry(t,e,i,r,n){var{uint32View:s,float32View:o}=e,a=r/this.vertexSize,l=t.uvs,h=t.indices,u=t.vertexData,c=t.vertexData2d,p=t._texture.baseTexture._batchLocation,e=Math.min(t.worldAlpha,1),d=e<1&&t._texture.baseTexture.alphaMode?g.premultiplyTint(t._tintRGB,e):t._tintRGB+(255*e<<24);if(c){let e=0;for(let t=0;t<c.length;t+=3,e+=2)o[r++]=c[t],o[r++]=c[t+1],o[r++]=c[t+2],o[r++]=l[e],o[r++]=l[e+1],s[r++]=d,o[r++]=p}else for(let t=0;t<u.length;t+=2)o[r++]=u[t],o[r++]=u[t+1],o[r++]=1,o[r++]=l[t],o[r++]=l[t+1],s[r++]=d,o[r++]=p;for(let t=0;t<h.length;t++)i[n++]=a+h[t]}}}}class G{constructor(t,e=!0){G.prototype.__init.call(this),this.legacy=t,e&&(this.enabled=!0),this.legacy.proj=this}__init(){this._enabled=!1}get enabled(){return this._enabled}set enabled(t){this._enabled=t}clear(){}}a.TRANSFORM_STEP=void 0;var X,i=a.TRANSFORM_STEP||(a.TRANSFORM_STEP={}),i=(i[i.NONE=0]="NONE",i[i.BEFORE_PROJ=4]="BEFORE_PROJ",i[i.PROJ=5]="PROJ",i[i.ALL=9]="ALL",a.AFFINE=void 0,a.AFFINE||(a.AFFINE={}));function H(t){var e=this.proj,i=this,r=t._worldID,n=i.localTransform,s=e.scaleAfterAffine&&2<=e.affine,o=(i._localID!==i._currentLocalID&&(s?(n.a=i._cx,n.b=i._sx,n.c=i._cy,n.d=i._sy,n.tx=i.position._x,n.ty=i.position._y):(n.a=i._cx*i.scale._x,n.b=i._sx*i.scale._x,n.c=i._cy*i.scale._y,n.d=i._sy*i.scale._y,n.tx=i.position._x-(i.pivot._x*n.a+i.pivot._y*n.c),n.ty=i.position._y-(i.pivot._x*n.b+i.pivot._y*n.d)),i._currentLocalID=i._localID,e._currentProjID=-1),e._projID);e._currentProjID!==o&&(e._currentProjID=o,e.updateLocalTransform(n),i._parentID=-1),i._parentID!==r&&((o=t.proj)&&!o._affine?e.world.setToMult(o.world,e.local):e.world.setToMultLegacy(t.worldTransform,e.local),n=i.worldTransform,e.world.copyTo(n,e._affine,e.affinePreserveOrientation),s&&(n.a*=i.scale._x,n.b*=i.scale._x,n.c*=i.scale._y,n.d*=i.scale._y,n.tx-=i.pivot._x*n.a+i.pivot._y*n.c,n.ty-=i.pivot._x*n.b+i.pivot._y*n.d),i._parentID=r,i._worldID++)}i[i.NONE=0]="NONE",i[i.FREE=1]="FREE",i[i.AXIS_X=2]="AXIS_X",i[i.AXIS_Y=3]="AXIS_Y",i[i.POINT=4]="POINT",i[i.AXIS_XR=5]="AXIS_XR";class r extends G{constructor(...t){super(...t),r.prototype.__init.call(this),r.prototype.__init2.call(this),r.prototype.__init3.call(this),r.prototype.__init4.call(this),r.prototype.__init5.call(this)}updateLocalTransform(t){}__init(){this._projID=0}__init2(){this._currentProjID=-1}__init3(){this._affine=a.AFFINE.NONE}__init4(){this.affinePreserveOrientation=!1}__init5(){this.scaleAfterAffine=!0}set affine(t){this._affine!==t&&(this._affine=t,this._currentProjID=-1,this.legacy._currentLocalID=-1)}get affine(){return this._affine}set enabled(t){t!==this._enabled&&(this._enabled=t,this.legacy.updateTransform=t?H:d.Transform.prototype.updateTransform,this.legacy._parentID=-1)}clear(){this._currentProjID=-1,this._projID=0}}class Y extends _.AbstractBatchRenderer{constructor(...t){super(...t),Y.prototype.__init.call(this),Y.prototype.__init2.call(this)}__init(){this.forceMaxTextures=0}getUniforms(t){return this.defUniforms}syncUniforms(t){if(t){var e=this._shader;for(const i in t)e.uniforms[i]=t[i]}}__init2(){this.defUniforms={}}buildDrawCalls(e,i,r){var{_bufferedElements:n,_attributeBuffer:s,_indexBuffer:o,vertexSize:a}=this,l=_.AbstractBatchRenderer._drawCallPool;let h=this._dcIndex,u=this._aIndex,c=this._iIndex,p=l[h];p.start=this._iIndex,p.texArray=e;for(let t=i;t<r;++t){var d=n[t],f=d._texture.baseTexture,f=g.premultiplyBlendMode[f.alphaMode?1:0][d.blendMode],m=this.getUniforms(d);n[t]=null,i<t&&(p.blend!==f||p.uniforms!==m)&&(p.size=c-p.start,i=t,(p=l[++h]).texArray=e,p.start=c),this.packInterleavedGeometry(d,s,o,u,c),u+=d.vertexData.length/2*a,c+=d.indices.length,p.blend=f,p.uniforms=m}i<r&&(p.size=c-p.start,++h),this._dcIndex=h,this._aIndex=u,this._iIndex=c}drawBatches(){var e=this._dcIndex,{gl:i,state:r,shader:n}=this.renderer,s=_.AbstractBatchRenderer._drawCallPool;let o=null,a=null;for(let t=0;t<e;t++){var{texArray:l,type:h,size:u,start:c,blend:p,uniforms:d}=s[t];a!==l&&(a=l,this.bindAndClearTexArray(l)),o!==d&&(o=d,this.syncUniforms(d),n.syncUniformGroup(this._shader.uniformGroup)),this.state.blendMode=p,r.set(this.state),i.drawElements(h,u,i.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 t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}else super.contextChange(),this.syncUniforms(this.defUniforms)}}function W(t,e,i,r,n){var s=e.x-t.x,o=i.x-r.x,a=i.x-t.x,l=e.y-t.y,r=i.y-r.y,i=i.y-t.y,h=s*r-l*o;return Math.abs(h)<1e-7?(n.x=s,n.y=l,0):(r=(a*r-i*o)/h,(o=(s*i-l*a)/h)<1e-6||-1e-6<o-1?-1:(n.x=t.x+r*(e.x-t.x),n.y=t.y+r*(e.y-t.y),1))}_.Renderer.registerPlugin("batch2d",j.create({}));const V=[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(t){n.prototype.__init.call(this),this.mat3=new Float64Array(t||V)}get a(){return this.mat3[0]/this.mat3[8]}set a(t){this.mat3[0]=t*this.mat3[8]}get b(){return this.mat3[1]/this.mat3[8]}set b(t){this.mat3[1]=t*this.mat3[8]}get c(){return this.mat3[3]/this.mat3[8]}set c(t){this.mat3[3]=t*this.mat3[8]}get d(){return this.mat3[4]/this.mat3[8]}set d(t){this.mat3[4]=t*this.mat3[8]}get tx(){return this.mat3[6]/this.mat3[8]}set tx(t){this.mat3[6]=t*this.mat3[8]}get ty(){return this.mat3[7]/this.mat3[8]}set ty(t){this.mat3[7]=t*this.mat3[8]}set(t,e,i,r,n,s){var o=this.mat3;return o[0]=t,o[1]=e,o[2]=0,o[3]=i,o[4]=r,o[5]=0,o[6]=n,o[7]=s,o[8]=1,this}toArray(t,e){this.floatArray||(this.floatArray=new Float32Array(9));var e=e||this.floatArray,i=this.mat3;return t?(e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7]):(e[0]=i[0],e[1]=i[3],e[2]=i[6],e[3]=i[1],e[4]=i[4],e[5]=i[7],e[6]=i[2],e[7]=i[5]),e[8]=i[8],e}apply(t,e){e=e||new d.Point;var i=this.mat3,r=t.x,t=t.y,n=1/(i[2]*r+i[5]*t+i[8]);return e.x=n*(i[0]*r+i[3]*t+i[6]),e.y=n*(i[1]*r+i[4]*t+i[7]),e}translate(t,e){var i=this.mat3;return i[0]+=t*i[2],i[1]+=e*i[2],i[3]+=t*i[5],i[4]+=e*i[5],i[6]+=t*i[8],i[7]+=e*i[8],this}scale(t,e){var i=this.mat3;return i[0]*=t,i[1]*=e,i[3]*=t,i[4]*=e,i[6]*=t,i[7]*=e,this}scaleAndTranslate(t,e,i,r){var n=this.mat3;n[0]=t*n[0]+i*n[2],n[1]=e*n[1]+r*n[2],n[3]=t*n[3]+i*n[5],n[4]=e*n[4]+r*n[5],n[6]=t*n[6]+i*n[8],n[7]=e*n[7]+r*n[8]}applyInverse(t,e){e=e||new d.Point;var i=this.mat3,r=t.x,t=t.y,n=i[0],s=i[3],o=i[6],a=i[1],l=i[4],h=i[7],u=i[2],c=i[5],i=i[8],p=(-i*a+h*u)*r+(i*n-o*u)*t+(-h*n+o*a),u=(c*a-l*u)*r+(-c*n+s*u)*t+(l*n-s*a);return e.x=((i*l-h*c)*r+(-i*s+o*c)*t+(h*s-o*l))/u,e.y=p/u,e}invert(){var t=this.mat3,e=t[0],i=t[1],r=t[2],n=t[3],s=t[4],o=t[5],a=t[6],l=t[7],h=t[8],u=h*s-o*l,c=-h*n+o*a,p=l*n-s*a,d=e*u+i*c+r*p;return d&&(t[0]=u*(d=1/d),t[1]=(-h*i+r*l)*d,t[2]=(o*i-r*s)*d,t[3]=c*d,t[4]=(h*e-r*a)*d,t[5]=(-o*e+r*n)*d,t[6]=p*d,t[7]=(-l*e+i*a)*d,t[8]=(s*e-i*n)*d),this}identity(){var t=this.mat3;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this}clone(){return new n(this.mat3)}copyTo2dOr3d(t){var e=this.mat3,i=t.mat3;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],t}copyTo(e,i,r){var t=this.mat3,n=1/t[8],s=t[6]*n,o=t[7]*n;if(e.a=(t[0]-t[2]*s)*n,e.b=(t[1]-t[2]*o)*n,e.c=(t[3]-t[5]*s)*n,e.d=(t[4]-t[5]*o)*n,e.tx=s,e.ty=o,2<=i){let t=e.a*e.d-e.b*e.c;r||(t=Math.abs(t)),i===a.AFFINE.POINT?(t=0<t?1:-1,e.a=t,e.b=0,e.c=0,e.d=t):i===a.AFFINE.AXIS_X?(t/=Math.sqrt(e.b*e.b+e.d*e.d),e.c=0,e.d=t):i===a.AFFINE.AXIS_Y?(t/=Math.sqrt(e.a*e.a+e.c*e.c),e.a=t,e.c=0):i===a.AFFINE.AXIS_XR&&(e.a=e.d*t,e.c=-e.b*t)}return e}copyFrom(t){var e=this.mat3;return e[0]=t.a,e[1]=t.b,e[2]=0,e[3]=t.c,e[4]=t.d,e[5]=0,e[6]=t.tx,e[7]=t.ty,e[8]=1,this}setToMultLegacy(t,e){var i=this.mat3,e=e.mat3,r=t.a,n=t.b,s=t.c,o=t.d,a=t.tx,t=t.ty,l=e[0],h=e[1],u=e[2],c=e[3],p=e[4],d=e[5],f=e[6],m=e[7],e=e[8];return i[0]=l*r+h*s+u*a,i[1]=l*n+h*o+u*t,i[2]=u,i[3]=c*r+p*s+d*a,i[4]=c*n+p*o+d*t,i[5]=d,i[6]=f*r+m*s+e*a,i[7]=f*n+m*o+e*t,i[8]=e,this}setToMultLegacy2(t,e){var i=this.mat3,t=t.mat3,r=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],h=t[6],u=t[7],t=t[8],c=e.a,p=e.b,d=e.c,f=e.d,m=e.tx,e=e.ty;return i[0]=c*r+p*o,i[1]=c*n+p*a,i[2]=c*s+p*l,i[3]=d*r+f*o,i[4]=d*n+f*a,i[5]=d*s+f*l,i[6]=m*r+e*o+h,i[7]=m*n+e*a+u,i[8]=m*s+e*l+t,this}setToMult(t,e){var i=this.mat3,t=t.mat3,e=e.mat3,r=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],h=t[6],u=t[7],t=t[8],c=e[0],p=e[1],d=e[2],f=e[3],m=e[4],_=e[5],g=e[6],v=e[7],e=e[8];return i[0]=c*r+p*o+d*h,i[1]=c*n+p*a+d*u,i[2]=c*s+p*l+d*t,i[3]=f*r+m*o+_*h,i[4]=f*n+m*a+_*u,i[5]=f*s+m*l+_*t,i[6]=g*r+v*o+e*h,i[7]=g*n+v*a+e*u,i[8]=g*s+v*l+e*t,this}prepend(t){return t.mat3?this.setToMult(t,this):this.setToMultLegacy(t,this)}}n.__initStatic(),n.__initStatic2();const q=`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(t){super(t),K.prototype.__init.call(this);t={globals:this.renderer.globalUniforms};this.shader=_.Shader.from(q,`
|
||
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;
|
||
}
|
||
`,t),this.simpleShader=_.Shader.from(q,`
|
||
varying vec3 vTextureCoord;
|
||
|
||
uniform sampler2D uSampler;
|
||
uniform vec4 uColor;
|
||
|
||
void main(void)
|
||
{
|
||
vec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);
|
||
gl_FragColor = sample * uColor;
|
||
}
|
||
`,t)}__init(){this.quad=new _.QuadUv}render(t){var e=this.renderer,i=this.quad;let r=i.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y),t.uvRespectAnchor&&((r=i.uvs)[0]=r[6]=-t.anchor.x,r[1]=r[3]=-t.anchor.y,r[2]=r[4]=1-t.anchor.x,r[5]=r[7]=1-t.anchor.y),i.invalidate();var n=t._texture,s=n.baseTexture,o=t.tileProj.world,a=t.uvMatrix;let l=s.isPowerOfTwo&&n.frame.width===s.width&&n.frame.height===s.height;l&&(s._glTextures[e.CONTEXT_UID]?l=s.wrapMode!==u.WRAP_MODES.CLAMP:s.wrapMode===u.WRAP_MODES.CLAMP&&(s.wrapMode=u.WRAP_MODES.REPEAT));var h=l?this.simpleShader:this.shader;c.identity(),c.scale(n.width,n.height),c.prepend(o),c.scale(1/t._width,1/t._height),c.invert(),l?c.prepend(a.mapCoord):(h.uniforms.uMapCoord=a.mapCoord.toArray(!0),h.uniforms.uClampFrame=a.uClampFrame,h.uniforms.uClampOffset=a.uClampOffset),h.uniforms.uTransform=c.toArray(!0),h.uniforms.uColor=g.premultiplyTintToRgba(t.tint,t.worldAlpha,h.uniforms.uColor,s.premultiplyAlpha),h.uniforms.translationMatrix=t.worldTransform.toArray(!0),h.uniforms.uSampler=n,e.shader.bind(h,!1),e.geometry.bind(i,void 0),e.state.setBlendMode(g.correctBlendMode(t.blendMode,s.premultiplyAlpha)),e.geometry.draw(u.DRAW_MODES.TRIANGLES,6,0)}}const h=new d.Point,p=[new d.Point,new d.Point,new d.Point,new d.Point],o=new d.Rectangle,Z=new n;class l extends r{constructor(t,e){super(t,e),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 d.ObservablePoint(this.onChange,this,0,0)}__init3(){this.reverseLocalOrder=!1}onChange(){var t=this.pivot,e=this.matrix.mat3;e[6]=-(t._x*e[0]+t._y*e[3]),e[7]=-(t._x*e[1]+t._y*e[4]),this._projID++}setAxisX(t,e=1){var i=t.x,t=t.y,r=Math.sqrt(i*i+t*t),n=this.matrix.mat3;n[0]=i/r,n[1]=t/r,n[2]=e/r,this.onChange()}setAxisY(t,e=1){var i=t.x,t=t.y,r=Math.sqrt(i*i+t*t),n=this.matrix.mat3;n[3]=i/r,n[4]=t/r,n[5]=e/r,this.onChange()}mapSprite(t,e){var i=t.texture;o.x=-t.anchor.x*i.orig.width,o.y=-t.anchor.y*i.orig.height,o.width=i.orig.width,o.height=i.orig.height,this.mapQuad(o,e)}mapQuad(e,i){p[0].set(e.x,e.y),p[1].set(e.x+e.width,e.y),p[2].set(e.x+e.width,e.y+e.height),p[3].set(e.x,e.y+e.height);let r=1,n=2,s=3;e=W(i[0],i[2],i[1],i[3],h);if(0!==e){r=1,n=3,s=2;var e=Math.sqrt((i[0].x-h.x)*(i[0].x-h.x)+(i[0].y-h.y)*(i[0].y-h.y)),o=Math.sqrt((i[r].x-h.x)*(i[r].x-h.x)+(i[r].y-h.y)*(i[r].y-h.y)),a=Math.sqrt((i[n].x-h.x)*(i[n].x-h.x)+(i[n].y-h.y)*(i[n].y-h.y)),l=Math.sqrt((i[s].x-h.x)*(i[s].x-h.x)+(i[s].y-h.y)*(i[s].y-h.y)),e=(e+l)/l,l=(o+a)/a,a=(o+a)/o;let t=this.matrix.mat3;t[0]=p[0].x*e,t[1]=p[0].y*e,t[2]=e,t[3]=p[r].x*l,t[4]=p[r].y*l,t[5]=l,t[6]=p[n].x*a,t[7]=p[n].y*a,t[8]=a,this.matrix.invert(),(t=Z.mat3)[0]=i[0].x,t[1]=i[0].y,t[2]=1,t[3]=i[r].x,t[4]=i[r].y,t[5]=1,t[6]=i[n].x,t[7]=i[n].y,t[8]=1,this.matrix.setToMult(Z,this.matrix),this._projID++}}updateLocalTransform(t){0!==this._projID?this.reverseLocalOrder?this.local.setToMultLegacy2(this.matrix,t):this.local.setToMultLegacy(t,this.matrix):this.local.copyFrom(t)}clear(){super.clear(),this.matrix.identity(),this.pivot.set(0,0)}}function Q(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class $ extends t.Container{constructor(){super(),this.proj=new l(this.transform)}toLocal(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return e&&(t=e.toGlobal(t,i,r)),r||this._recursivePostUpdateTransform(),n>=a.TRANSFORM_STEP.PROJ?(r||this.displayObjectUpdateTransform(),(this.proj.affine?this.transform.worldTransform:this.proj.world).applyInverse(t,i)):(this.parent?i=this.parent.worldTransform.applyInverse(t,i):(i.x=t.x,i.y=t.y),n===a.TRANSFORM_STEP.NONE?i:this.transform.localTransform.applyInverse(i,i))}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const J=$.prototype.toLocal;class f extends s.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(t,e,i,r){super(t,e,i,r),f.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 t=this.geometry,e=t.buffers[0].data;if(t.vertexDirtyId!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length)),this.vertexData2d&&this.vertexData2d.length===3*e.length/2||(this.vertexData2d=new Float32Array(3*e.length));var i=this.proj.world.mat3,r=this.vertexData2d,n=this.vertexData;for(let t=0;t<n.length/2;t++){var s=e[2*t],o=e[2*t+1],a=i[0]*s+i[3]*o+i[6],l=i[1]*s+i[4]*o+i[7],s=i[2]*s+i[5]*o+i[8];r[3*t]=a,r[3*t+1]=l,r[3*t+2]=s,n[2*t]=a/s,n[2*t+1]=l/s}this.vertexDirty=t.vertexDirtyId}}}_renderDefault(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),function(t){let e=void 0,i=t[0],r=1;for(;r<t.length;){var n=t[r],s=t[r+1];if(r+=2,("optionalAccess"===n||"optionalCall"===n)&&null==i)return;"access"===n||"optionalAccess"===n?i=s(e=i):"call"!==n&&"optionalCall"!==n||(i=s((...t)=>i.call(e,...t)),e=void 0)}return i}([e,"access",t=>t.program,"access",t=>t.uniformData,"optionalAccess",t=>t.translationMatrix])&&(e.uniforms.translationMatrix=this.worldTransform.toArray(!0)),t.shader.bind(e,!1),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)}toLocal(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return J.call(this,t,e,i,r,n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}f.__initStatic(),f.__initStatic2();class tt extends f{constructor(t,e,i,r,n){super(new s.MeshGeometry(e,i,r),new s.MeshMaterial(t,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"}),null,n),tt.prototype.__init2.call(this),this.geometry.getBuffer("aVertexPosition").static=!1}__init2(){this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(t){this.geometry.getBuffer("aVertexPosition").data=t}_render(t){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(t)}}class m extends e.Sprite{constructor(t){super(t),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 s=this.transform._worldID,o=n._updateID;if(this._transformID!==s||this._textureID!==o){this._textureID!==o&&(this.uvs=n._uvs.uvsFloat32),this._transformID=s,this._textureID=o;var s=this.proj.world.mat3,o=this.vertexData2d,a=this.vertexData,l=n.trim,n=n.orig,h=this._anchor;let t,e,i,r;i=l?(e=l.x-h._x*n.width,t=e+l.width,(r=l.y-h._y*n.height)+l.height):(e=-h._x*n.width,t=e+n.width,(r=-h._y*n.height)+n.height),o[0]=s[0]*e+s[3]*r+s[6],o[1]=s[1]*e+s[4]*r+s[7],o[2]=s[2]*e+s[5]*r+s[8],o[3]=s[0]*t+s[3]*r+s[6],o[4]=s[1]*t+s[4]*r+s[7],o[5]=s[2]*t+s[5]*r+s[8],o[6]=s[0]*t+s[3]*i+s[6],o[7]=s[1]*t+s[4]*i+s[7],o[8]=s[2]*t+s[5]*i+s[8],o[9]=s[0]*e+s[3]*i+s[6],o[10]=s[1]*e+s[4]*i+s[7],o[11]=s[2]*e+s[5]*i+s[8],a[0]=o[0]/o[2],a[1]=o[1]/o[2],a[2]=o[3]/o[5],a[3]=o[4]/o[5],a[4]=o[6]/o[8],a[5]=o[7]/o[8],a[6]=o[9]/o[11],a[7]=o[10]/o[11]}}}calculateTrimmedVertices(){if(this.proj._affine)super.calculateTrimmedVertices();else{var t=this.transform._worldID,e=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===t&&this._textureTrimmedID===e)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=t,this._textureTrimmedID=e;var t=this._texture,e=this.vertexTrimmedData,t=t.orig,i=this.tileProj?this._width:t.width,t=this.tileProj?this._height:t.height,r=this._anchor,n=this.proj.world.mat3,s=-r._x*i,i=s+i,r=-r._y*t,t=r+t,o=1/(n[2]*s+n[5]*r+n[8]);e[0]=o*(n[0]*s+n[3]*r+n[6]),e[1]=o*(n[1]*s+n[4]*r+n[7]),o=1/(n[2]*i+n[5]*r+n[8]),e[2]=o*(n[0]*i+n[3]*r+n[6]),e[3]=o*(n[1]*i+n[4]*r+n[7]),o=1/(n[2]*i+n[5]*t+n[8]),e[4]=o*(n[0]*i+n[3]*t+n[6]),e[5]=o*(n[1]*i+n[4]*t+n[7]),o=1/(n[2]*s+n[5]*t+n[8]),e[6]=o*(n[0]*s+n[3]*t+n[6]),e[7]=o*(n[1]*s+n[4]*t+n[7])}}toLocal(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return J.call(this,t,e,i,r,n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const et=new d.Transform;class it extends L.TilingSprite{constructor(t,e,i){super(t,e,i),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(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return J.call(this,t,e,i,r,n)}_render(t){var e=this._texture;e&&e.valid&&(this.tileTransform.updateTransform(et),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}}function rt(){this.proj||(this.proj=new l(this.transform),this.toLocal=$.prototype.toLocal,Object.defineProperty(this,"worldTransform",{get:Q,enumerable:!0,configurable:!0}))}t.Container.prototype.convertTo2d=rt,e.Sprite.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=m.prototype.calculateVertices,this.calculateTrimmedVertices=m.prototype.calculateTrimmedVertices,this._calculateBounds=m.prototype._calculateBounds,this.pluginName="batch2d",rt.call(this))},t.Container.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2d()},N.SimpleMesh.prototype.convertTo2d=N.SimpleRope.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=f.prototype.calculateVertices,this._renderDefault=f.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new s.MeshMaterial(this.material.texture,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"})),rt.call(this))},L.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=it.prototype._render,this.pluginName="tilingSprite2d",rt.call(this))};class v extends z.Text{constructor(t,e,i){super(t,e,i),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 nt=new n;class st extends _.Filter{constructor(t){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;
|
||
}
|
||
`),st.prototype.__init.call(this),t.renderable=!1,this.maskSprite=t}__init(){this.maskMatrix=new n}apply(t,e,i,r){var n=this.maskSprite,s=this.maskSprite.texture;s.valid&&(s.uvMatrix||(s.uvMatrix=new _.TextureMatrix(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=n.texture,this.uniforms.otherMatrix=st.calculateSpriteMatrix(e,this.maskMatrix,n).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,t.applyFilter(this,e,i,r))}static calculateSpriteMatrix(t,e,i){var r=i.proj,n=t.filterFrame,r=r&&!r._affine?r.world.copyTo2dOr3d(nt):nt.copyFrom(i.transform.worldTransform),s=i.texture.orig;return e.set(t.width,0,0,t.height,n.x,n.y),r.invert(),e.setToMult(r,e),e.scaleAndTranslate(1/s.width,1/s.height,i.anchor.x,i.anchor.y),e}}_.MaskSystem.prototype.pushSpriteMask=function(t){var e=t["maskObject"],t=t._target;let i=this.alphaMaskPool[this.alphaMaskIndex];(i=i||(this.alphaMaskPool[this.alphaMaskIndex]=[new st(e)]))[0].resolution=this.renderer.resolution,i[0].maskSprite=e;var r=t.filterArea;t.filterArea=e.getBounds(!0),this.renderer.filter.push(t,i),t.filterArea=r,this.alphaMaskIndex++},_.Renderer.registerPlugin("tilingSprite2d",K);class ot extends d.Point{constructor(t,e,i){super(t,e),this.z=i}set(t,e,i){return this.x=t||0,this.y=void 0===e?this.x:e||0,this.z=void 0===e?this.x:i||0,this}copyFrom(t){return this.set(t.x,t.y,t.z||0),this}copyTo(t){return t.set(this.x,this.y,this.z),t}}class y extends d.ObservablePoint{constructor(...t){super(...t),y.prototype.__init.call(this)}__init(){this._z=0}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this.cb.call(this.scope))}set(t,e,i){var t=t||0,r=void 0===e?t:e||0,e=void 0===e?t:i||0;return this._x===t&&this._y===r&&this._z===e||(this._x=t,this._y=r,this._z=e,this.cb.call(this.scope)),this}copyFrom(t){return this.set(t.x,t.y,t.z||0),this}copyTo(t){return t.set(this._x,this._y,this._z),t}}class b{constructor(t,e,i){b.prototype.__init.call(this),b.prototype.__init2.call(this),b.prototype.__init3.call(this),this._x=t||0,this._y=e||0,this._z=i||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(t){this._x!==t&&(this._x=t,this._quatDirtyId++)}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._quatDirtyId++)}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this._quatDirtyId++)}get pitch(){return this._x}set pitch(t){this._x!==t&&(this._x=t,this._quatDirtyId++)}get yaw(){return this._y}set yaw(t){this._y!==t&&(this._y=t,this._quatDirtyId++)}get roll(){return this._z}set roll(t){this._z!==t&&(this._z=t,this._quatDirtyId++)}set(t,e,i){t=t||0,e=e||0,i=i||0;this._x===t&&this._y===e&&this._z===i||(this._x=t,this._y=e,this._z=i,this._quatDirtyId++)}copyFrom(t){var e=t.x,i=t.y,t=t.z;return this._x===e&&this._y===i&&this._z===t||(this._x=e,this._y=i,this._z=t,this._quatDirtyId++),this}copyTo(t){return t.set(this._x,this._y,this._z),t}equals(t){return this._x===t.x&&this._y===t.y&&this._z===t.z}clone(){return new b(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var t=Math.cos(this._x/2),e=Math.cos(this._y/2),i=Math.cos(this._z/2),r=this._sign,n=r*Math.sin(this._x/2),s=r*Math.sin(this._y/2),r=r*Math.sin(this._z/2),o=this.quaternion;return o[0]=n*e*i+t*s*r,o[1]=t*s*i-n*e*r,o[2]=t*e*r+n*s*i,o[3]=t*e*i-n*s*r,!0}}class x{constructor(t,e,i,r,n){this.cb=t,this.scope=e,x.prototype.__init.call(this),x.prototype.__init2.call(this),x.prototype.__init3.call(this),this._x=i||0,this._y=r||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(t){this._x!==t&&(this._x=t,this._quatDirtyId++,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._quatDirtyId++,this.cb.call(this.scope))}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this._quatDirtyId++,this.cb.call(this.scope))}get pitch(){return this._x}set pitch(t){this._x!==t&&(this._x=t,this._quatDirtyId++,this.cb.call(this.scope))}get yaw(){return this._y}set yaw(t){this._y!==t&&(this._y=t,this._quatDirtyId++,this.cb.call(this.scope))}get roll(){return this._z}set roll(t){this._z!==t&&(this._z=t,this._quatDirtyId++,this.cb.call(this.scope))}set(t,e,i){t=t||0,e=e||0,i=i||0;return this._x===t&&this._y===e&&this._z===i||(this._x=t,this._y=e,this._z=i,this._quatDirtyId++,this.cb.call(this.scope)),this}copyFrom(t){var e=t.x,i=t.y,t=t.z;return this._x===e&&this._y===i&&this._z===t||(this._x=e,this._y=i,this._z=t,this._quatDirtyId++,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y,this._z),t}equals(t){return this._x===t.x&&this._y===t.y&&this._z===t.z}clone(){return new b(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var t=Math.cos(this._x/2),e=Math.cos(this._y/2),i=Math.cos(this._z/2),r=this._sign,n=r*Math.sin(this._x/2),s=r*Math.sin(this._y/2),r=r*Math.sin(this._z/2),o=this.quaternion;return o[0]=n*e*i+t*s*r,o[1]=t*s*i-n*e*r,o[2]=t*e*r+n*s*i,o[3]=t*e*i-n*s*r,!0}}const at=[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(t){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(t||at)}get a(){return this.mat4[0]/this.mat4[15]}set a(t){this.mat4[0]=t*this.mat4[15]}get b(){return this.mat4[1]/this.mat4[15]}set b(t){this.mat4[1]=t*this.mat4[15]}get c(){return this.mat4[4]/this.mat4[15]}set c(t){this.mat4[4]=t*this.mat4[15]}get d(){return this.mat4[5]/this.mat4[15]}set d(t){this.mat4[5]=t*this.mat4[15]}get tx(){return this.mat4[12]/this.mat4[15]}set tx(t){this.mat4[12]=t*this.mat4[15]}get ty(){return this.mat4[13]/this.mat4[15]}set ty(t){this.mat4[13]=t*this.mat4[15]}set(t,e,i,r,n,s){var o=this.mat4;return o[0]=t,o[1]=e,o[2]=0,o[3]=0,o[4]=i,o[5]=r,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=n,o[13]=s,o[14]=0,o[15]=1,this}toArray(t,e){this.floatArray||(this.floatArray=new Float32Array(9));var e=e||this.floatArray,i=this.mat4;return t?(e[0]=i[0],e[1]=i[1],e[2]=i[3],e[3]=i[4],e[4]=i[5],e[5]=i[7],e[6]=i[12],e[7]=i[13]):(e[0]=i[0],e[1]=i[4],e[2]=i[12],e[3]=i[2],e[4]=i[6],e[5]=i[13],e[6]=i[3],e[7]=i[7]),e[8]=i[15],e}setToTranslation(t,e,i){var r=this.mat4;r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=t,r[13]=e,r[14]=i,r[15]=1}setToRotationTranslationScale(t,e,i,r,n,s,o){var a=this.mat4,l=t[0],h=t[1],u=t[2],t=t[3],c=l+l,p=h+h,d=u+u,f=l*c,m=l*p,l=l*d,_=h*p,h=h*d,u=u*d,c=t*c,p=t*p,t=t*d;return a[0]=(1-(_+u))*n,a[1]=(m+t)*n,a[2]=(l-p)*n,a[3]=0,a[4]=(m-t)*s,a[5]=(1-(f+u))*s,a[6]=(h+c)*s,a[7]=0,a[8]=(l+p)*o,a[9]=(h-c)*o,a[10]=(1-(f+_))*o,a[11]=0,a[12]=e,a[13]=i,a[14]=r,a[15]=1,a}apply(t,e){e=e||new ot;var i=this.mat4,r=t.x,n=t.y,t=t.z||0,s=1/(i[3]*r+i[7]*n+i[11]*t+i[15]);return e.x=s*(i[0]*r+i[4]*n+i[8]*t+i[12]),e.y=s*(i[1]*r+i[5]*n+i[9]*t+i[13]),e.z=s*(i[2]*r+i[6]*n+i[10]*t+i[14]),e}translate(t,e,i){var r=this.mat4;return r[12]=r[0]*t+r[4]*e+r[8]*i+r[12],r[13]=r[1]*t+r[5]*e+r[9]*i+r[13],r[14]=r[2]*t+r[6]*e+r[10]*i+r[14],r[15]=r[3]*t+r[7]*e+r[11]*i+r[15],this}scale(t,e,i){var r=this.mat4;return r[0]*=t,r[1]*=t,r[2]*=t,r[3]*=t,r[4]*=e,r[5]*=e,r[6]*=e,r[7]*=e,void 0!==i&&(r[8]*=i,r[9]*=i,r[10]*=i,r[11]*=i),this}scaleAndTranslate(t,e,i,r,n,s){var o=this.mat4;o[0]=t*o[0]+r*o[3],o[1]=e*o[1]+n*o[3],o[2]=i*o[2]+s*o[3],o[4]=t*o[4]+r*o[7],o[5]=e*o[5]+n*o[7],o[6]=i*o[6]+s*o[7],o[8]=t*o[8]+r*o[11],o[9]=e*o[9]+n*o[11],o[10]=i*o[10]+s*o[11],o[12]=t*o[12]+r*o[15],o[13]=e*o[13]+n*o[15],o[14]=i*o[14]+s*o[15]}applyInverse(t,e){e=e||new ot,this._mat4inv||(this._mat4inv=new Float64Array(16));var i=this._mat4inv,r=this.mat4,n=t.x,s=t.y,t=t.z||0,r=(this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,T.glMatrixMat4Invert(i,r)),1/(i[3]*n+i[7]*s+i[11]*t+i[15])),o=r*(i[0]*n+i[4]*s+i[8]*t+i[12]),a=r*(i[1]*n+i[5]*s+i[9]*t+i[13]),r=r*(i[2]*n+i[6]*s+i[10]*t+i[14]),l=1/(i[3]*n+i[7]*s+i[11]*(t+=1)+i[15]),h=l*(i[0]*n+i[4]*s+i[8]*t+i[12]),u=l*(i[1]*n+i[5]*s+i[9]*t+i[13]),l=l*(i[2]*n+i[6]*s+i[10]*t+i[14]),n=(Math.abs(r-l)<1e-10&&e.set(NaN,NaN,0),(0-r)/(l-r));return e.set((h-o)*n+o,(u-a)*n+a,0),e}invert(){return T.glMatrixMat4Invert(this.mat4,this.mat4),this}invertCopyTo(t){this._mat4inv||(this._mat4inv=new Float64Array(16));var e=this._mat4inv,i=this.mat4;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,T.glMatrixMat4Invert(e,i)),t.mat4.set(e)}identity(){var t=this.mat4;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}clone(){return new T(this.mat4)}copyTo3d(t){var e=this.mat4,i=t.mat4;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],t}copyTo2d(t){var e=this.mat4,i=t.mat3;return i[0]=e[0],i[1]=e[1],i[2]=e[3],i[3]=e[4],i[4]=e[5],i[5]=e[7],i[6]=e[12],i[7]=e[13],i[8]=e[15],t}copyTo2dOr3d(t){return t instanceof n?this.copyTo2d(t):this.copyTo3d(t)}copyTo(e,i,r){var t=this.mat4,n=1/t[15],s=t[12]*n,o=t[13]*n;if(e.a=(t[0]-t[3]*s)*n,e.b=(t[1]-t[3]*o)*n,e.c=(t[4]-t[7]*s)*n,e.d=(t[5]-t[7]*o)*n,e.tx=s,e.ty=o,2<=i){let t=e.a*e.d-e.b*e.c;r||(t=Math.abs(t)),i===a.AFFINE.POINT?(t=0<t?1:-1,e.a=t,e.b=0,e.c=0,e.d=t):i===a.AFFINE.AXIS_X?(t/=Math.sqrt(e.b*e.b+e.d*e.d),e.c=0,e.d=t):i===a.AFFINE.AXIS_Y&&(t/=Math.sqrt(e.a*e.a+e.c*e.c),e.a=t,e.c=0)}return e}copyFrom(t){var e=this.mat4;return e[0]=t.a,e[1]=t.b,e[2]=0,e[3]=0,e[4]=t.c,e[5]=t.d,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t.tx,e[13]=t.ty,e[14]=0,e[15]=1,this._dirtyId++,this}setToMultLegacy(t,e){var i=this.mat4,e=e.mat4,r=t.a,n=t.b,s=t.c,o=t.d,a=t.tx,t=t.ty,l=e[0],h=e[1],u=e[2],c=e[3];return i[0]=l*r+h*s+c*a,i[1]=l*n+h*o+c*t,i[2]=u,i[3]=c,l=e[4],h=e[5],u=e[6],c=e[7],i[4]=l*r+h*s+c*a,i[5]=l*n+h*o+c*t,i[6]=u,i[7]=c,l=e[8],h=e[9],u=e[10],c=e[11],i[8]=l*r+h*s+c*a,i[9]=l*n+h*o+c*t,i[10]=u,i[11]=c,l=e[12],h=e[13],u=e[14],c=e[15],i[12]=l*r+h*s+c*a,i[13]=l*n+h*o+c*t,i[14]=u,i[15]=c,this._dirtyId++,this}setToMultLegacy2(t,e){var i=this.mat4,t=t.mat4,r=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],h=t[6],u=t[7],c=e.a,p=e.b,d=e.c,f=e.d,m=e.tx,e=e.ty;return i[0]=c*r+p*a,i[1]=c*n+p*l,i[2]=c*s+p*h,i[3]=c*o+p*u,i[4]=d*r+f*a,i[5]=d*n+f*l,i[6]=d*s+f*h,i[7]=d*o+f*u,i[8]=t[8],i[9]=t[9],i[10]=t[10],i[11]=t[11],i[12]=m*r+e*a+t[12],i[13]=m*n+e*l+t[13],i[14]=m*s+e*h+t[14],i[15]=m*o+e*u+t[15],this._dirtyId++,this}setToMult(t,e){return T.glMatrixMat4Multiply(this.mat4,t.mat4,e.mat4),this._dirtyId++,this}prepend(t){t.mat4?this.setToMult(t,this):this.setToMultLegacy(t,this)}static glMatrixMat4Invert(t,e){var i=e[0],r=e[1],n=e[2],s=e[3],o=e[4],a=e[5],l=e[6],h=e[7],u=e[8],c=e[9],p=e[10],d=e[11],f=e[12],m=e[13],_=e[14],e=e[15],g=i*a-r*o,v=i*l-n*o,y=i*h-s*o,b=r*l-n*a,x=r*h-s*a,T=n*h-s*l,w=u*m-c*f,E=u*_-p*f,S=u*e-d*f,A=c*_-p*m,O=c*e-d*m,P=p*e-d*_,R=g*P-v*O+y*A+b*S-x*E+T*w;return R?(t[0]=(a*P-l*O+h*A)*(R=1/R),t[1]=(n*O-r*P-s*A)*R,t[2]=(m*T-_*x+e*b)*R,t[3]=(p*x-c*T-d*b)*R,t[4]=(l*S-o*P-h*E)*R,t[5]=(i*P-n*S+s*E)*R,t[6]=(_*y-f*T-e*v)*R,t[7]=(u*T-p*y+d*v)*R,t[8]=(o*O-a*S+h*w)*R,t[9]=(r*S-i*O-s*w)*R,t[10]=(f*x-m*y+e*g)*R,t[11]=(c*y-u*x-d*g)*R,t[12]=(a*E-o*A-l*w)*R,t[13]=(i*A-r*E+n*w)*R,t[14]=(m*v-f*b-_*g)*R,t[15]=(u*b-c*v+p*g)*R,t):null}static glMatrixMat4Multiply(t,e,i){var r=e[0],n=e[1],s=e[2],o=e[3],a=e[4],l=e[5],h=e[6],u=e[7],c=e[8],p=e[9],d=e[10],f=e[11],m=e[12],_=e[13],g=e[14],e=e[15],v=i[0],y=i[1],b=i[2],x=i[3];return t[0]=v*r+y*a+b*c+x*m,t[1]=v*n+y*l+b*p+x*_,t[2]=v*s+y*h+b*d+x*g,t[3]=v*o+y*u+b*f+x*e,v=i[4],y=i[5],b=i[6],x=i[7],t[4]=v*r+y*a+b*c+x*m,t[5]=v*n+y*l+b*p+x*_,t[6]=v*s+y*h+b*d+x*g,t[7]=v*o+y*u+b*f+x*e,v=i[8],y=i[9],b=i[10],x=i[11],t[8]=v*r+y*a+b*c+x*m,t[9]=v*n+y*l+b*p+x*_,t[10]=v*s+y*h+b*d+x*g,t[11]=v*o+y*u+b*f+x*e,v=i[12],y=i[13],b=i[14],x=i[15],t[12]=v*r+y*a+b*c+x*m,t[13]=v*n+y*l+b*p+x*_,t[14]=v*s+y*h+b*d+x*g,t[15]=v*o+y*u+b*f+x*e,t}}T.__initStatic(),T.__initStatic2();const lt=new T;class w extends r{constructor(t,e){super(t,e),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(t){this._cameraMode!==t&&(this._cameraMode=t,this.euler._sign=this._cameraMode?-1:1,this.euler._quatDirtyId++,t&&(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(t){var e,i,r,n,s;0===this._projID?this.local.copyFrom(t):(e=this.local,i=this.euler,r=this.position,n=this.scale,s=this.pivot,i.update(),this.cameraMode?(e.setToMultLegacy(t,this.cameraMatrix),e.translate(s._x,s._y,s._z),e.scale(1/n._x,1/n._y,1/n._z),lt.setToRotationTranslationScale(i.quaternion,0,0,0,1,1,1),e.setToMult(e,lt),e.translate(-r._x,-r._y,-r._z),this.local._dirtyId++):(e.setToRotationTranslationScale(i.quaternion,r._x,r._y,r._z,n._x,n._y,n._z),e.translate(-s._x,-s._y,-s._z),e.setToMultLegacy(t,e)))}}function ht(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class E extends t.Container{constructor(){super(),this.proj=new w(this.transform)}isFrontFace(t=!1){t&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());var t=this.proj.world.mat4,e=t[0]*t[15]-t[3]*t[12],i=t[1]*t[15]-t[3]*t[13],r=t[4]*t[15]-t[7]*t[12];return 0<e*(t[5]*t[15]-t[7]*t[13])-r*i}getDepth(t=!1){t&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());t=this.proj.world.mat4;return t[14]/t[15]}toLocal(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return e&&(t=e.toGlobal(t,i,r)),r||this._recursivePostUpdateTransform(),n===a.TRANSFORM_STEP.ALL?(r||this.displayObjectUpdateTransform(),(this.proj.affine?this.transform.worldTransform:this.proj.world).applyInverse(t,i)):(this.parent?i=this.parent.worldTransform.applyInverse(t,i):(i.x=t.x,i.y=t.y,i.z=t.z),n!==a.TRANSFORM_STEP.NONE&&(i=this.transform.localTransform.applyInverse(i,i),n===a.TRANSFORM_STEP.PROJ&&this.proj.cameraMode&&(i=this.proj.cameraMatrix.applyInverse(i,i))),i)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}const ut=E.prototype.toLocal,ct=E.prototype.getDepth,pt=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(t,e=10,i=1e4,r=!1){this._focus=t,this._near=e,this._far=i,this._orthographic=r;var r=this.proj,n=r.cameraMatrix.mat4;r._projID++,n[10]=1/(i-e),n[14]=(t-e)/(i-e),this._orthographic?n[11]=0:n[11]=1/t}}class A extends s.Mesh{constructor(t,e,i,r){super(t,e,i,r),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 t=this.geometry,e=t.buffers[0].data;if(t.vertexDirtyId!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length)),this.vertexData2d&&this.vertexData2d.length===3*e.length/2||(this.vertexData2d=new Float32Array(3*e.length));var i=this.proj.world.mat4,r=this.vertexData2d,n=this.vertexData;for(let t=0;t<n.length/2;t++){var s=e[2*t],o=e[2*t+1],a=i[0]*s+i[4]*o+i[12],l=i[1]*s+i[5]*o+i[13],s=i[3]*s+i[7]*o+i[15];r[3*t]=a,r[3*t+1]=l,r[3*t+2]=s,n[2*t]=a/s,n[2*t+1]=l/s}this.vertexDirty=t.vertexDirtyId}}}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return ut.call(this,t,e,i,r,n)}isFrontFace(t){return pt.call(this,t)}getDepth(t){return ct.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}A.prototype._renderDefault=f.prototype._renderDefault;class dt extends A{constructor(t,e,i,r,n){super(new s.MeshGeometry(e,i,r),new s.MeshMaterial(t,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"}),null,n),dt.prototype.__init2.call(this),this.geometry.getBuffer("aVertexPosition").static=!1}__init2(){this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(t){this.geometry.getBuffer("aVertexPosition").data=t}_render(t){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(t)}}class O extends e.Sprite{constructor(t){super(t),O.prototype.__init.call(this),O.prototype.__init2.call(this),O.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 s=this.transform._worldID,o=n._updateID;if(this._transformID!==s||this._textureID!==o){this._textureID!==o&&(this.uvs=n._uvs.uvsFloat32),this._transformID=s,this._textureID=o;var s=this.proj.world.mat4,o=this.vertexData2d,a=this.vertexData,l=n.trim,n=n.orig,h=this._anchor;let t,e,i,r;i=l?(e=l.x-h._x*n.width,t=e+l.width,(r=l.y-h._y*n.height)+l.height):(e=-h._x*n.width,t=e+n.width,(r=-h._y*n.height)+n.height);o[0]=s[0]*e+s[4]*r+s[12],o[1]=s[1]*e+s[5]*r+s[13],l=s[2]*e+s[6]*r+s[14],o[2]=s[3]*e+s[7]*r+s[15],h=l<0,o[3]=s[0]*t+s[4]*r+s[12],o[4]=s[1]*t+s[5]*r+s[13],l=s[2]*t+s[6]*r+s[14],o[5]=s[3]*t+s[7]*r+s[15],h=h||l<0,o[6]=s[0]*t+s[4]*i+s[12],o[7]=s[1]*t+s[5]*i+s[13],l=s[2]*t+s[6]*i+s[14],o[8]=s[3]*t+s[7]*i+s[15],h=h||l<0,o[9]=s[0]*e+s[4]*i+s[12],o[10]=s[1]*e+s[5]*i+s[13],l=s[2]*e+s[6]*i+s[14],o[11]=s[3]*e+s[7]*i+s[15],this.culledByFrustrum=h||l<0,a[0]=o[0]/o[2],a[1]=o[1]/o[2],a[2]=o[3]/o[5],a[3]=o[4]/o[5],a[4]=o[6]/o[8],a[5]=o[7]/o[8],a[6]=o[9]/o[11],a[7]=o[10]/o[11]}}}calculateTrimmedVertices(){if(this.proj._affine)super.calculateTrimmedVertices();else{var t=this.transform._worldID,e=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===t&&this._textureTrimmedID===e)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=t,this._textureTrimmedID=e;var i,t=this._texture,e=this.vertexTrimmedData,t=t.orig,r=this._anchor,n=this.proj.world.mat4,s=-r._x*t.width,o=s+t.width,r=-r._y*t.height,t=r+t.height,a=1/(n[3]*s+n[7]*r+n[15]);e[0]=a*(n[0]*s+n[4]*r+n[12]),e[1]=a*(n[1]*s+n[5]*r+n[13]),i=n[2]*s+n[6]*r+n[14]<0,a=1/(n[3]*o+n[7]*r+n[15]),e[2]=a*(n[0]*o+n[4]*r+n[12]),e[3]=a*(n[1]*o+n[5]*r+n[13]),r=n[2]*o+n[6]*r+n[14],i=i||r<0,a=1/(n[3]*o+n[7]*t+n[15]),e[4]=a*(n[0]*o+n[4]*t+n[12]),e[5]=a*(n[1]*o+n[5]*t+n[13]),r=n[2]*o+n[6]*t+n[14],i=i||r<0,a=1/(n[3]*s+n[7]*t+n[15]),e[6]=a*(n[0]*s+n[4]*t+n[12]),e[7]=a*(n[1]*s+n[5]*t+n[13]),r=n[2]*s+n[6]*t+n[14],this.culledByFrustrum=i||r<0}}_calculateBounds(){var t,e;this.calculateVertices(),this.culledByFrustrum||(t=this._texture.trim,e=this._texture.orig,!t||t.width===e.width&&t.height===e.height?this._bounds.addQuad(this.vertexData):(this.calculateTrimmedVertices(),this.trimmedCulledByFrustrum||this._bounds.addQuad(this.vertexTrimmedData)))}_render(t){this.calculateVertices(),this.culledByFrustrum||(t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}containsPoint(t){return!this.culledByFrustrum&&super.containsPoint(t)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return ut.call(this,t,e,i,r,n)}isFrontFace(t){return pt.call(this,t)}getDepth(t){return ct.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}const ft={worldTransform:{get:ht,enumerable:!0,configurable:!0},position3d:{get(){return this.proj.position},set(t){this.proj.position.copy(t)}},scale3d:{get(){return this.proj.scale},set(t){this.proj.scale.copy(t)}},pivot3d:{get(){return this.proj.pivot},set(t){this.proj.pivot.copy(t)}},euler:{get(){return this.proj.euler},set(t){this.proj.euler.copy(t)}}};function mt(){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,ft))}t.Container.prototype.convertTo3d=mt,e.Sprite.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=O.prototype.calculateVertices,this.calculateTrimmedVertices=O.prototype.calculateTrimmedVertices,this._calculateBounds=O.prototype._calculateBounds,this.containsPoint=O.prototype.containsPoint,this.pluginName="batch2d",mt.call(this))},t.Container.prototype.convertSubtreeTo3d=function(){this.convertTo3d();for(let t=0;t<this.children.length;t++)this.children[t].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 s.MeshMaterial(this.material.texture,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"})),mt.call(this))};class P extends z.Text{constructor(t,e,i){super(t,e,i),P.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(t,e,i,r,n=a.TRANSFORM_STEP.ALL){return ut.call(this,t,e,i,r,n)}isFrontFace(t){return pt.call(this,t)}getDepth(t){return ct.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}P.prototype.calculateVertices=O.prototype.calculateVertices,P.prototype.calculateTrimmedVertices=O.prototype.calculateTrimmedVertices,P.prototype._calculateBounds=O.prototype._calculateBounds,P.prototype.containsPoint=O.prototype.containsPoint,P.prototype._render=O.prototype._render;class _t extends _.Geometry{constructor(t=!1){super(),this._buffer=new _.Buffer(null,t,!1),this._indexBuffer=new _.Buffer(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,u.TYPES.FLOAT).addAttribute("aTrans1",this._buffer,3,!1,u.TYPES.FLOAT).addAttribute("aTrans2",this._buffer,3,!1,u.TYPES.FLOAT).addAttribute("aSamplerSize",this._buffer,2,!1,u.TYPES.FLOAT).addAttribute("aFrame",this._buffer,4,!1,u.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,u.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,u.TYPES.FLOAT).addIndex(this._indexBuffer)}}class gt{static create(t){const{vertex:e,fragment:i,vertexSize:r,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:_t,vertexSize:16},t);return X=class extends Y{constructor(t){super(t),X.prototype.__init.call(this),X.prototype.__init2.call(this),X.prototype.__init3.call(this),this.shaderGenerator=new _.BatchShaderGenerator(e,i),this.geometryClass=n,this.vertexSize=r}__init(){this.defUniforms={translationMatrix:new d.Matrix,distortion:new Float32Array([0,0,1/0,1/0])}}__init2(){this.size=1e3}__init3(){this.forceMaxTextures=1}getUniforms(t){t=t.proj;return null!==t.surface?t.uniforms:null!==t._activeProjection?t._activeProjection.uniforms:this.defUniforms}packInterleavedGeometry(t,e,i,r,n){var{uint32View:s,float32View:o}=e,a=r/this.vertexSize,l=t.indices,h=t.vertexData,u=t._texture._frame,c=t.aTrans,{_batchLocation:p,realWidth:d,realHeight:f,resolution:m}=t._texture.baseTexture,e=Math.min(t.worldAlpha,1),_=e<1&&t._texture.baseTexture.alphaMode?g.premultiplyTint(t._tintRGB,e):t._tintRGB+(255*e<<24);for(let t=0;t<h.length;t+=2)o[r]=h[t],o[r+1]=h[t+1],o[r+2]=c.a,o[r+3]=c.c,o[r+4]=c.tx,o[r+5]=c.b,o[r+6]=c.d,o[r+7]=c.ty,o[r+8]=d,o[r+9]=f,o[r+10]=u.x*m,o[r+11]=u.y*m,o[r+12]=(u.x+u.width)*m,o[r+13]=(u.y+u.height)*m,s[r+14]=_,o[r+15]=p,r+=16;for(let t=0;t<l.length;t++)i[n++]=a+l[t]}}}}const R=[new d.Point,new d.Point,new d.Point,new d.Point],C=[0,0,0,0];class M{constructor(){M.prototype.__init.call(this),M.prototype.__init2.call(this),M.prototype.__init3.call(this),M.prototype.__init4.call(this)}__init(){this.surfaceID="default"}__init2(){this._updateID=0}__init3(){this.vertexSrc=""}__init4(){this.fragmentSrc=""}fillUniforms(t){}clear(){}boundsQuad(t,e,i){let r=e[0],n=e[1],s=e[0],o=e[1];for(let t=2;t<8;t+=2)r>e[t]&&(r=e[t]),s<e[t]&&(s=e[t]),n>e[t+1]&&(n=e[t+1]),o<e[t+1]&&(o=e[t+1]);if(R[0].set(r,n),this.apply(R[0],R[0]),R[1].set(s,n),this.apply(R[1],R[1]),R[2].set(s,o),this.apply(R[2],R[2]),R[3].set(r,o),this.apply(R[3],R[3]),i)i.apply(R[0],R[0]),i.apply(R[1],R[1]),i.apply(R[2],R[2]),i.apply(R[3],R[3]),e[0]=R[0].x,e[1]=R[0].y,e[2]=R[1].x,e[3]=R[1].y,e[4]=R[2].x,e[5]=R[2].y,e[6]=R[3].x,e[7]=R[3].y;else{for(let t=1;t<=3;t++){var a;(R[t].y<R[0].y||R[t].y===R[0].y&&R[t].x<R[0].x)&&(a=R[0],R[0]=R[t],R[t]=a)}for(let t=1;t<=3;t++)C[t]=Math.atan2(R[t].y-R[0].y,R[t].x-R[0].x);for(let e=1;e<=3;e++)for(let t=e+1;t<=3;t++){var l;C[e]>C[t]&&(l=R[e],R[e]=R[t],R[t]=l,l=C[e],C[e]=C[t],C[t]=l)}e[0]=R[0].x,e[1]=R[0].y,e[2]=R[1].x,e[3]=R[1].y,e[4]=R[2].x,e[5]=R[2].y,e[6]=R[3].x,e[7]=R[3].y,(R[3].x-R[2].x)*(R[1].y-R[2].y)-(R[1].x-R[2].x)*(R[3].y-R[2].y)<0&&(e[4]=R[3].x,e[5]=R[3].y)}}}const vt=new d.Matrix,k=new d.Rectangle,I=new d.Point;class yt extends M{constructor(...t){super(...t),yt.prototype.__init.call(this)}__init(){this.distortion=new d.Point}clear(){this.distortion.set(0,0)}apply(t,e){e=e||new d.Point;var i=this.distortion,r=t.x*t.y;return e.x=t.x+i.x*r,e.y=t.y+i.y*r,e}applyInverse(t,e){e=e||new d.Point;var i=t.x,t=t.y,r=this.distortion.x,n=this.distortion.y;if(0===r)e.x=i,e.y=t/(1+n*i);else if(0===n)e.y=t,e.x=i/(1+r*t);else{var t=.5*(t*r-i*n+1)/n,s=t*t+i/n;if(s<=1e-5)return e.set(NaN,NaN),e;e.x=0<n?-t+Math.sqrt(s):-t-Math.sqrt(s),e.y=(i/e.x-1)/r}return e}mapSprite(t,e,i){var r=t.texture;return k.x=-t.anchor.x*r.orig.width,k.y=-t.anchor.y*r.orig.height,k.width=r.orig.width,k.height=r.orig.height,this.mapQuad(k,e,i||t.transform)}mapQuad(t,e,i){var r=-t.x/t.width,n=-t.y/t.height,s=(1-t.x)/t.width,t=(1-t.y)/t.height,o=e[0].x*(1-r)+e[1].x*r,a=e[0].y*(1-r)+e[1].y*r,l=e[0].x*(1-s)+e[1].x*s,h=e[0].y*(1-s)+e[1].y*s,u=e[3].x*(1-r)+e[2].x*r,r=e[3].y*(1-r)+e[2].y*r,c=e[3].x*(1-s)+e[2].x*s,e=e[3].y*(1-s)+e[2].y*s,s=o*(1-n)+u*n,p=a*(1-n)+r*n,d=l*(1-n)+c*n,n=h*(1-n)+e*n,o=o*(1-t)+u*t,u=a*(1-t)+r*t,a=l*(1-t)+c*t,r=h*(1-t)+e*t,l=vt;return l.tx=s,l.ty=p,l.a=d-s,l.b=n-p,l.c=o-s,l.d=u-p,I.set(a,r),l.applyInverse(I,I),this.distortion.set(I.x-1,I.y-1),i.setFromMatrix(l),this}fillUniforms(t){t.distortion=t.distortion||new Float32Array([0,0,0,0]);var e=Math.abs(this.distortion.x),i=Math.abs(this.distortion.y);t.distortion[0]=1e4*e<=i?0:this.distortion.x,t.distortion[1]=1e4*i<=e?0:this.distortion.y,t.distortion[2]=1/t.distortion[0],t.distortion[3]=1/t.distortion[1]}}const bt=d.Transform.prototype.updateTransform;function xt(t){var e=this.proj,i=t.proj;i?i._surface?(e._activeProjection=i,this.updateLocalTransform(),this.localTransform.copyTo(this.worldTransform),this._parentID<0&&++this._worldID):(bt.call(this,t),e._activeProjection=i._activeProjection):(bt.call(this,t),e._activeProjection=null)}class D extends G{constructor(...t){super(...t),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(t){t!==this._enabled&&(this._enabled=t,this.legacy.updateTransform=t?xt:d.Transform.prototype.updateTransform,this.legacy._parentID=-1)}get surface(){return this._surface}set surface(t){this._surface!==t&&(this._surface=t||null,this.legacy._parentID=-1)}applyPartial(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e)):(null!==this._surface?this.surface:this.legacy.worldTransform).apply(t,e)}apply(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e),this._activeProjection.legacy.worldTransform.apply(e,e)):null!==this._surface?(e=this.surface.apply(t,e),this.legacy.worldTransform.apply(e,e)):this.legacy.worldTransform.apply(t,e)}applyInverse(t,e){return null!==this._activeProjection?(e=this._activeProjection.legacy.worldTransform.applyInverse(t,e),this._activeProjection._surface.applyInverse(e,e),this.legacy.worldTransform.applyInverse(e,e)):null!==this._surface?(e=this.legacy.worldTransform.applyInverse(t,e),this._surface.applyInverse(e,e)):this.legacy.worldTransform.applyInverse(t,e)}mapBilinearSprite(t,e){this._surface instanceof yt||(this.surface=new yt),this.surface.mapSprite(t,e,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 F extends e.Sprite{constructor(t){super(t),F.prototype.__init.call(this),this.proj=new D(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new d.Matrix}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){var n=this.transform._worldID,s=this._texture._updateID;if(this._transformID!==n||this._textureID!==s){this._transformID=n,this._textureID=s;var o,a,l,h,n=this._texture,s=this.vertexData,u=n.trim,c=n.orig,p=this._anchor;let t,e,i,r;i=u?(e=u.x-p._x*c.width,t=e+u.width,(r=u.y-p._y*c.height)+u.height):(e=-p._x*c.width,t=e+c.width,(r=-p._y*c.height)+c.height),this.proj._surface?(s[0]=e,s[1]=r,s[2]=t,s[3]=r,s[4]=t,s[5]=i,s[6]=e,s[7]=i,this.proj._surface.boundsQuad(s,s)):(p=(u=this.transform.worldTransform).a,o=u.b,a=u.c,l=u.d,h=u.tx,u=u.ty,s[0]=p*e+a*r+h,s[1]=l*r+o*e+u,s[2]=p*t+a*r+h,s[3]=l*r+o*t+u,s[4]=p*t+a*i+h,s[5]=l*i+o*t+u,s[6]=p*e+a*i+h,s[7]=l*i+o*e+u,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(s,s)),n.uvMatrix||(n.uvMatrix=new _.TextureMatrix(n)),n.uvMatrix.update();p=this.aTrans;p.set(c.width,0,0,c.height,e,r),null===this.proj._surface&&p.prepend(this.transform.worldTransform),p.invert(),p.prepend(n.uvMatrix.mapCoord)}}calculateTrimmedVertices(){var t=this.transform._worldID,e=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===t&&this._textureTrimmedID===e)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=t,this._textureTrimmedID=e;var i,r,n,s,o,a,t=this._texture,e=this.vertexTrimmedData,t=t.orig,l=this._anchor,h=-l._x*t.width,u=h+t.width,l=-l._y*t.height,t=l+t.height;this.proj._surface?(e[0]=h,e[1]=l,e[2]=u,e[3]=l,e[4]=u,e[5]=t,e[6]=h,e[7]=t,this.proj._surface.boundsQuad(e,e,this.transform.worldTransform)):(i=(a=this.transform.worldTransform).a,r=a.b,n=a.c,s=a.d,o=a.tx,a=a.ty,e[0]=i*h+n*l+o,e[1]=s*l+r*h+a,e[2]=i*u+n*l+o,e[3]=s*l+r*u+a,e[4]=i*u+n*t+o,e[5]=s*t+r*u+a,e[6]=i*h+n*t+o,e[7]=s*t+r*h+a,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(e,e,this.proj._activeProjection.legacy.worldTransform))}get worldTransform(){return this.proj}}e.Sprite.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new d.Matrix,this.calculateVertices=F.prototype.calculateVertices,this.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,this._calculateBounds=F.prototype._calculateBounds,t.Container.prototype.convertTo2s.call(this))},t.Container.prototype.convertTo2s=function(){this.proj||(this.proj=new D(this.transform),Object.defineProperty(this,"worldTransform",{get(){return this.proj},enumerable:!0,configurable:!0}))},t.Container.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2s()};class Tt extends z.Text{constructor(t,e,i){super(t,e,i),Tt.prototype.__init.call(this),this.proj=new D(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new d.Matrix}get worldTransform(){return this.proj}}Tt.prototype.calculateVertices=F.prototype.calculateVertices,Tt.prototype.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,Tt.prototype._calculateBounds=F.prototype._calculateBounds,_.Renderer.registerPlugin("batch_bilinear",gt.create({})),a.AbstractProjection=G,a.Batch2dPluginFactory=j,a.Batch3dGeometry=U,a.BatchBilinearPluginFactory=gt,a.BatchBilineardGeometry=_t,a.BilinearSurface=yt,a.Camera3d=S,a.Container2d=$,a.Container3d=E,a.Euler=b,a.LinearProjection=r,a.Matrix2d=n,a.Matrix3d=T,a.Mesh2d=f,a.Mesh3d2d=A,a.ObservableEuler=x,a.ObservablePoint3d=y,a.Point3d=ot,a.Projection2d=l,a.Projection3d=w,a.ProjectionSurface=D,a.SimpleMesh2d=tt,a.SimpleMesh3d2d=dt,a.Sprite2d=m,a.Sprite2s=F,a.Sprite3d=O,a.SpriteMaskFilter2d=st,a.Surface=M,a.Text2d=v,a.Text2s=Tt,a.Text3d=P,a.TilingSprite2d=it,a.TilingSprite2dRenderer=K,a.UniformBatchRenderer=Y,a.applySpine2dMixin=function(t){t.newMesh=function(t,e,i,r,n){return new tt(t,e,i,r,n)},t.newContainer=function(){return this.proj||this.convertTo2d(),new $},t.newSprite=function(t){return new m(t)},t.newGraphics=function(){var t=new B.Graphics;return t.convertTo2d(),t},t.transformHack=function(){return 2}},a.applySpine3dMixin=function(t){t.newMesh=function(t,e,i,r,n){return new dt(t,e,i,r,n)},t.newContainer=function(){return this.proj||this.convertTo3d(),new E},t.newSprite=function(t){return new O(t)},t.newGraphics=function(){var t=new B.Graphics;return t.convertTo3d(),t},t.transformHack=function(){return 2}},a.container2dToLocal=J,a.container2dWorldTransform=Q,a.container3dGetDepth=ct,a.container3dIsFrontFace=pt,a.container3dToLocal=ut,a.container3dWorldTransform=ht,a.getIntersectionFactor=W,a.getPositionFromQuad=function(t,e,i){i=i||new d.Point;var r=1-e.x,n=1-r,s=1-(e=1-e.y);return i.x=(t[0].x*r+t[1].x*n)*e+(t[3].x*r+t[2].x*n)*s,i.y=(t[0].y*r+t[1].y*n)*e+(t[3].y*r+t[2].y*n)*s,i},a.transformHack=H,Object.defineProperty(a,"__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._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function p(t,e,i,r,n,s){var o,a,l,h,u,c,p,d,f={},m=[],_=s||t[0];for(a 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==e&&(e=1),t[0])m.push(a);if(1<t.length){for(d=t[t.length-1],p=!0,o=m.length;-1<--o;)if(a=m[o],.05<Math.abs(_[a]-d[a])){p=!1;break}p&&(t=t.concat(),s&&t.unshift(s),t.push(t[1]),s=t[t.length-3])}for(F.length=L.length=N.length=0,o=m.length;-1<--o;)z[a=m[o]]=-1!==n.indexOf(","+a+","),f[a]=function(t,e,i,r){var n,s,o,a,l,h,u=[];if(r)for(s=(t=[r].concat(t)).length;-1<--s;)"string"==typeof(h=t[s][e])&&"="===h.charAt(1)&&(t[s][e]=r[e]+Number(h.charAt(0)+h.substr(2)));if((n=t.length-2)<0)u[0]=new B(t[0][e],0,0,t[0][e]);else{for(s=0;s<n;s++)o=t[s][e],a=t[s+1][e],u[s]=new B(o,0,0,a),i&&(l=t[s+2][e],F[s]=(F[s]||0)+(a-o)*(a-o),L[s]=(L[s]||0)+(l-a)*(l-a));u[s]=new B(t[s][e],0,0,t[s+1][e])}return u}(t,a,z[a],s);for(o=F.length;-1<--o;)F[o]=Math.sqrt(F[o]),L[o]=Math.sqrt(L[o]);if(!r){for(o=m.length;-1<--o;)if(z[a])for(c=(l=f[m[o]]).length-1,h=0;h<c;h++)u=l[h+1].da/L[h]+l[h].da/F[h]||0,N[h]=(N[h]||0)+u*u;for(o=N.length;-1<--o;)N[o]=Math.sqrt(N[o])}for(o=m.length,h=i?4:1;-1<--o;){l=f[a=m[o]],S=E=w=T=E=w=S=x=b=y=v=g=D=I=k=M=void 0;for(var g,v,y,b,x,T,w,E,S,A=l,O=e,P=i,R=r,C=z[a],M=A.length-1,k=0,I=A[0].a,D=0;D<M;D++)g=(b=A[k]).a,v=b.d,y=A[k+1].d,w=C?(w=F[D],S=((E=L[D])+w)*O*.25/(!R&&N[D]||.5),v-((x=v-(v-g)*(R?.5*O:0!==w?S/w:0))+(((S=v+(y-v)*(R?.5*O:0!==E?S/E:0))-x)*(3*w/(w+E)+.5)/4||0))):v-((x=v-(v-g)*O*.5)+(S=v+(y-v)*O*.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,P?(T=U(g,I,E,v),A.splice(k,1,T[0],T[1],T[2],T[3]),k+=4):k++,I=S;(b=A[k]).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,P&&(T=U(b.a,I,b.c,b.d),A.splice(k,1,T[0],T[1],T[2],T[3])),p&&(l.splice(0,h),l.splice(l.length-h,h))}return f}var E,F,L,N,z,e,B,U,_,t;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(r,u,g){function m(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}function _(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function v(t){var d,f,m,_,g,v,y,b;return"function"==typeof t?t:(f=(d="object"==typeof t?t:{each:t}).ease,m=d.from||0,_=d.base||0,g={},v=isNaN(m),y=d.axis,b={center:.5,end:1}[m]||0,function(t,e,i){var r,n,s,o,a,l,h,u,c=(i||d).length,p=g[c];if(!p){if(!(u="auto"===d.grid?0:(d.grid||[1/0])[0])){for(l=-1/0;l<(l=i[u++].getBoundingClientRect().left)&&u<c;);u--}for(p=g[c]=[],r=v?Math.min(u,c)*b-.5:m%u,n=v?c*b/u-.5:m/u|0,h=1/(l=0),a=0;a<c;a++)o=a%u-r,s=n-(a/u|0),p[a]=o=y?Math.abs("y"===y?s:o):Math.sqrt(o*o+s*s),l<o&&(l=o),o<h&&(h=o);p.max=l-h,p.min=h,p.v=c=d.amount||d.each*(c<u?c-1:y?"y"===y?c/u:u:Math.max(u,c/u))||0,p.b=c<0?_-c:_}return c=(p[t]-p.min)/p.max,p.b+(f?f.getRatio(c):c)*p.v})}function y(t,e,i){g.call(this,t,e,i),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 s(t,e){for(var i=[],r=0,n=t._first;n;)n instanceof g?i[r++]=n:(e&&(i[r++]=n),r=(i=i.concat(s(n,e))).length),n=n._next;return i}function n(t,e,i,r){e=!1!==e,i=!1!==i;for(var n,s,o=c(r=!1!==r),a=e&&i&&r,l=o.length;-1<--l;)s=o[l],(a||s instanceof u||(n=s.target===s.vars.onComplete)&&i||e&&!n)&&s.paused(t)}var b=1e-8,x=g._internals,T=x.isSelector,w=x.isArray,t=y.prototype=g.to({},.1,{}),E=[],c=(y.version="2.1.3",t.constructor=y,t.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,t.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)},t.updateTo=function(t,e){var i,r=this,n=r.ratio,s=r.vars.immediateRender||t.immediateRender;for(i in e&&r._startTime<r._timeline._time&&(r._startTime=r._timeline._time,r._uncache(!1),r._gc?r._enabled(!0,!1):r._timeline.insert(r,r._startTime-r._delay)),t)r.vars[i]=t[i];if(r._initted||s)if(e)r._initted=!1,s&&r.render(0,!0,!0);else if(r._gc&&r._enabled(!0,!1),r._notifyPluginsOfEnabled&&r._firstPT&&g._onPluginEvent("_onDisable",r),.998<r._time/r._duration){e=r._totalTime;r.render(0,!0,!1),r._initted=!1,r.render(e,!0,!1)}else if(r._initted=!1,r._init(),0<r._time||s)for(var o,a=1/(1-n),l=r._firstPT;l;)o=l.s+l.c,l.c*=a,l.s=o-l.c,l=l._next;return r},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,s,o,a,l,h,u=this,c=u._dirty?u.totalDuration():u._totalDuration,p=u._time,d=u._totalTime,f=u._cycle,m=u._duration,_=u._rawPrevTime;if(c-b<=t&&0<=t?(u._totalTime=c,u._cycle=u._repeat,u._yoyo&&0!=(1&u._cycle)?(u._time=0,u.ratio=u._ease._calcEnd?u._ease.getRatio(0):0):(u._time=m,u.ratio=u._ease._calcEnd?u._ease.getRatio(1):1),u._reversed||(r=!0,n="onComplete",i=i||u._timeline.autoRemoveChildren),0!==m||!u._initted&&u.vars.lazy&&!i||(u._startTime===u._timeline._duration&&(t=0),(_<0||t<=0&&-b<=t||_===b&&"isPause"!==u.data)&&_!==t&&(i=!0,b<_&&(n="onReverseComplete")),u._rawPrevTime=l=!e||t||_===t?t:b)):t<b?(u._totalTime=u._time=u._cycle=0,u.ratio=u._ease._calcEnd?u._ease.getRatio(0):0,(0!==d||0===m&&0<_)&&(n="onReverseComplete",r=u._reversed),-b<t?t=0:t<0&&(u._active=!1,0!==m||!u._initted&&u.vars.lazy&&!i||(0<=_&&(i=!0),u._rawPrevTime=l=!e||t||_===t?t:b)),u._initted||(i=!0)):(u._totalTime=u._time=t,0!==u._repeat&&(c=m+u._repeatDelay,u._cycle=u._totalTime/c>>0,0!==u._cycle&&u._cycle===u._totalTime/c&&d<=t&&u._cycle--,u._time=u._totalTime-u._cycle*c,u._yoyo&&0!=(1&u._cycle)&&(u._time=m-u._time,(h=u._yoyoEase||u.vars.yoyoEase)&&(u._yoyoEase||(!0!==h||u._initted?u._yoyoEase=h=!0===h?u._ease:h instanceof Ease?h:Ease.map[h]:(h=u.vars.ease,u._yoyoEase=h=h?h instanceof Ease?h:"function"==typeof h?new Ease(h,u.vars.easeParams):Ease.map[h]||g.defaultEase:g.defaultEase)),u.ratio=h?1-h.getRatio((m-u._time)/m):0)),u._time>m?u._time=m:u._time<0&&(u._time=0)),u._easeType&&!h?(c=u._time/m,(1===(o=u._easeType)||3===o&&.5<=c)&&(c=1-c),3===o&&(c*=2),1===(a=u._easePower)?c*=c:2===a?c*=c*c:3===a?c*=c*c*c:4===a&&(c*=c*c*c*c),u.ratio=1===o?1-c:2===o?c:u._time/m<.5?c/2:1-c/2):h||(u.ratio=u._ease.getRatio(u._time/m))),p!==u._time||i||f!==u._cycle){if(!u._initted){if(u._init(),!u._initted||u._gc)return;if(!i&&u._firstPT&&(!1!==u.vars.lazy&&u._duration||u.vars.lazy&&!u._duration))return u._time=p,u._totalTime=d,u._rawPrevTime=_,u._cycle=f,x.lazyTweens.push(u),void(u._lazy=[t,e]);!u._time||r||h?r&&this._ease._calcEnd&&!h&&(u.ratio=u._ease.getRatio(0===u._time?0:1)):u.ratio=u._ease.getRatio(u._time/m)}for(!1!==u._lazy&&(u._lazy=!1),u._active||!u._paused&&u._time!==p&&0<=t&&(u._active=!0),0===d&&(2===u._initted&&0<t&&u._init(),u._startAt&&(0<=t?u._startAt.render(t,!0,i):n=n||"_dummyGS"),!u.vars.onStart||0===u._totalTime&&0!==m||e||u._callback("onStart")),s=u._firstPT;s;)s.f?s.t[s.p](s.c*u.ratio+s.s):s.t[s.p]=s.c*u.ratio+s.s,s=s._next;u._onUpdate&&(t<0&&u._startAt&&u._startTime&&u._startAt.render(t,!0,i),e||u._totalTime===d&&!n||u._callback("onUpdate")),u._cycle===f||e||u._gc||u.vars.onRepeat&&u._callback("onRepeat"),!n||u._gc&&!i||(t<0&&u._startAt&&!u._onUpdate&&u._startTime&&u._startAt.render(t,!0,i),r&&(u._timeline.autoRemoveChildren&&u._enabled(!1,!1),u._active=!1),!e&&u.vars[n]&&u._callback(n),0===m&&u._rawPrevTime===b&&l!==b&&(u._rawPrevTime=0))}else d!==u._totalTime&&u._onUpdate&&!e&&u._callback("onUpdate")},y.to=function(t,e,i){return new y(t,e,i)},y.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new y(t,e,i)},y.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new y(t,e,r)},y.staggerTo=y.allTo=function(t,e,i,r,n,s,o){var a,l,h,u,c=[],p=v(i.stagger||r),d=i.cycle,f=(i.startAt||E).cycle;for(w(t)||("string"==typeof t&&(t=g.selector(t)||t),T(t)&&(t=m(t))),a=(t=t||[]).length-1,h=0;h<=a;h++){for(u in l={},i)l[u]=i[u];if(d&&(_(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),f){for(u in f=l.startAt={},i.startAt)f[u]=i.startAt[u];_(l.startAt,t,h)}l.delay=p(h,t[h],t)+(l.delay||0),h===a&&n&&(l.onComplete=function(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),n.apply(o||i.callbackScope||this,s||E)}),c[h]=new y(t[h],e,l)}return c},y.staggerFrom=y.allFrom=function(t,e,i,r,n,s,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,y.staggerTo(t,e,i,r,n,s,o)},y.staggerFromTo=y.allFromTo=function(t,e,i,r,n,s,o,a){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,y.staggerTo(t,e,r,n,s,o,a)},y.delayedCall=function(t,e,i,r,n){return new y(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},y.set=function(t,e){return new y(t,0,e)},y.isTweening=function(t){return 0<g.getTweensOf(t,!0).length},y.getAllTweens=function(t){return s(r._rootTimeline,t).concat(s(r._rootFramesTimeline,t))});y.killAll=function(t,e,i,r){null==e&&(e=!0),null==i&&(i=!0);for(var n,s,o=c(0!=r),a=o.length,l=e&&i&&r,h=0;h<a;h++)s=o[h],(l||s instanceof u||(n=s.target===s.vars.onComplete)&&i||e&&!n)&&(t?s.totalTime(s._reversed?0:s.totalDuration()):s._enabled(!1,!1))},y.killChildTweensOf=function(t,e){if(null!=t){var i,r,n,s,o,a=x.tweenLookup;if("string"==typeof t&&(t=g.selector(t)||t),T(t)&&(t=m(t)),w(t))for(s=t.length;-1<--s;)y.killChildTweensOf(t[s],e);else{for(n in i=[],a)for(r=a[n].target.parentNode;r;)r===t&&(i=i.concat(a[n].tweens)),r=r.parentNode;for(o=i.length,s=0;s<o;s++)e&&i[s].totalTime(i[s].totalDuration()),i[s]._enabled(!1,!1)}}};return y.pauseAll=function(t,e,i){n(!0,t,e,i)},y.resumeAll=function(t,e,i){n(!1,t,e,i)},y.globalTimeScale=function(t){var e=r._rootTimeline,i=g.ticker.time;return arguments.length?(e._startTime=i-(i-e._startTime)*e._timeScale/(t=t||b),e=r._rootFramesTimeline,i=g.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=r._rootTimeline._timeScale=t):e._timeScale},t.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},t.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},t.duration=function(t){return arguments.length?r.prototype.duration.call(this,t):this._duration},t.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-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)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},y},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(c,p,f){function m(t){p.call(this,t);var e,i,r=this.vars;for(i in this._labels={},this.autoRemoveChildren=!!r.autoRemoveChildren,this.smoothChildTiming=!!r.smoothChildTiming,this._sortChildren=!0,this._onUpdate=r.onUpdate,r)e=r[i],d(e)&&-1!==e.join("").indexOf("{self}")&&(r[i]=this._swapSelfInParams(e));d(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)}function _(t){var e,i={};for(e in t)i[e]=t[e];return i}function g(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function h(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e}function v(t){var d,f,m,_,g,v,y,b;return"function"==typeof t?t:(f=(d="object"==typeof t?t:{each:t}).ease,m=d.from||0,_=d.base||0,g={},v=isNaN(m),y=d.axis,b={center:.5,end:1}[m]||0,function(t,e,i){var r,n,s,o,a,l,h,u,c=(i||d).length,p=g[c];if(!p){if(!(u="auto"===d.grid?0:(d.grid||[1/0])[0])){for(l=-1/0;l<(l=i[u++].getBoundingClientRect().left)&&u<c;);u--}for(p=g[c]=[],r=v?Math.min(u,c)*b-.5:m%u,n=v?c*b/u-.5:m/u|0,h=1/(l=0),a=0;a<c;a++)o=a%u-r,s=n-(a/u|0),p[a]=o=y?Math.abs("y"===y?s:o):Math.sqrt(o*o+s*s),l<o&&(l=o),o<h&&(h=o);p.max=l-h,p.min=h,p.v=c=d.amount||d.each*(c<u?c-1:y?"y"===y?c/u:u:Math.max(u,c/u))||0,p.b=c<0?_-c:_}return c=(p[t]-p.min)/p.max,p.b+(f?f.getRatio(c):c)*p.v})}var t=f._internals,e=m._internals={},y=t.isSelector,d=t.isArray,b=t.lazyTweens,x=t.lazyRender,o=_gsScope._gsDefine.globals,n=e.pauseCallback=function(){},t=m.prototype=new p;return m.version="2.1.3",m.distribute=v,t.constructor=m,t.kill()._gc=t._forcingPlayhead=t._hasPause=!1,t.to=function(t,e,i,r){var n=i.repeat&&o.TweenMax||f;return e?this.add(new n(t,e,i),r):this.set(t,i,r)},t.from=function(t,e,i,r){return this.add((i.repeat&&o.TweenMax||f).from(t,e,h(0,i)),r)},t.fromTo=function(t,e,i,r,n){var s=r.repeat&&o.TweenMax||f;return r=h(0,r,i),e?this.add(s.fromTo(t,e,i,r),n):this.set(t,r,n)},t.staggerTo=function(t,e,i,r,n,s,o,a){var l,h,u=new m({onComplete:s,onCompleteParams:o,callbackScope:a,smoothChildTiming:this.smoothChildTiming}),c=v(i.stagger||r),p=i.startAt,d=i.cycle;for("string"==typeof t&&(t=f.selector(t)||t),y(t=t||[])&&(t=function(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}(t)),h=0;h<t.length;h++)l=_(i),p&&(l.startAt=_(p),p.cycle&&g(l.startAt,t,h)),d&&(g(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),u.to(t[h],e,l,c(h,t[h],t));return this.add(u,n)},t.staggerFrom=function(t,e,i,r,n,s,o,a){return i.runBackwards=!0,this.staggerTo(t,e,h(0,i),r,n,s,o,a)},t.staggerFromTo=function(t,e,i,r,n,s,o,a,l){return r.startAt=i,this.staggerTo(t,e,h(0,r,i),n,s,o,a,l)},t.call=function(t,e,i,r){return this.add(f.delayedCall(0,t,e,i),r)},t.set=function(t,e,i){return this.add(new f(t,0,h(0,e,null,!0)),i)},m.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,r,n,s,o=new m(t),t=o._timeline;for(null==e&&(e=!0),t._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=t._time,n=t._first;n;)s=n._next,e&&n instanceof f&&n.target===n.vars.onComplete||((r=n._startTime-n._delay)<0&&(i=1),o.add(n,r)),n=s;return t.add(o,0),i&&o.totalDuration(),o},t.add=function(t,e,i,r){var n,s,o,a,l,h,u=this;if("number"!=typeof e&&(e=u._parseTimeOrLabel(e,0,!0,t)),!(t instanceof c)){if(t instanceof Array||t&&t.push&&d(t)){for(i=i||"normal",r=r||0,n=e,s=t.length,o=0;o<s;o++)d(a=t[o])&&(a=new m({tweens:a})),u.add(a,n),"string"!=typeof a&&"function"!=typeof a&&("sequence"===i?n=a._startTime+a.totalDuration()/a._timeScale:"start"===i&&(a._startTime-=a.delay())),n+=r;return u._uncache(!0)}if("string"==typeof t)return u.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=f.delayedCall(0,t)}if(p.prototype.add.call(u,t,e),(t._time||!t._duration&&t._initted)&&(n=(u.rawTime()-t._startTime)*t._timeScale,(!t._duration||1e-5<Math.abs(Math.max(0,Math.min(t.totalDuration(),n)))-t._totalTime)&&t.render(n,!1,!1)),(u._gc||u._time===u._duration)&&!u._paused&&u._duration<u.duration())for(h=(l=u).rawTime()>t._startTime;l._timeline;)h&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return u},t.remove=function(t){var e;if(t instanceof c)return this._remove(t,!1),e=t._timeline=t.vars.useFrames?c._rootFramesTimeline:c._rootTimeline,t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this;if(t instanceof Array||t&&t.push&&d(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},t._remove=function(t,e){return p.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},t.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},t.insert=t.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},t.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},t.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},t.addPause=function(t,e,i,r){i=f.delayedCall(0,n,i,r||this);return i.vars.onComplete=i.vars.onReverseComplete=e,i.data="isPause",this._hasPause=!0,this.add(i,t)},t.removeLabel=function(t){return delete this._labels[t],this},t.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},t._parseTimeOrLabel=function(t,e,i,r){var n,s;if(r instanceof c&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&d(r)))for(s=r.length;-1<--s;)r[s]instanceof c&&r[s].timeline===this&&this.remove(r[s]);if(n="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-n:0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(-1===(s=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=n+e:e:this._labels[t]+e;e=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=1<s?this._parseTimeOrLabel(t.substr(0,s-1),0,i):n}return Number(t)+e},t.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},t.stop=function(){return this.paused(!0)},t.gotoAndPlay=function(t,e){return this.play(t,e)},t.gotoAndStop=function(t,e){return this.pause(t,e)},t.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,h,u,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._startTime,m=c._timeScale,_=c._paused;if(p!==c._time&&(t+=c._time-p),c._hasPause&&!c._forcingPlayhead&&!e){if(p<t)for(r=c._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(c._time=c._totalTime=t=l._startTime,u=c._startTime+(c._reversed?c._duration-t:t)/c._timeScale)}if(d-1e-8<=t&&0<=t)c._totalTime=c._time=d,c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(t<=0&&-1e-8<=t||c._rawPrevTime<0||1e-8===c._rawPrevTime)&&c._rawPrevTime!==t&&c._first&&(a=!0,1e-8<c._rawPrevTime&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:1e-8,t=d+1e-4;else if(t<1e-8)if(-1e-8<t&&(t=0),((c._totalTime=c._time=0)!==p||0===c._duration&&1e-8!==c._rawPrevTime&&(0<c._rawPrevTime||t<0&&0<=c._rawPrevTime))&&(o="onReverseComplete",n=c._reversed),t<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=c._rawPrevTime&&c._first&&(a=!0),c._rawPrevTime=t;else{if(c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:1e-8,0===t&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,c._initted||(a=!0)}else c._totalTime=c._time=c._rawPrevTime=t;if(c._time!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._time!==p&&0<t&&(c._active=!0),0!==p||!c.vars.onStart||0===c._time&&c._duration||e||c._callback("onStart"),p<=(h=c._time))for(r=c._first;r&&(s=r._next,h===c._time&&(!c._paused||_));)(r._active||r._startTime<=h&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=u),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=c._last;r&&(s=r._prev,h===c._time&&(!c._paused||_));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,c.pause(),c._pauseTime=u}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}!c._onUpdate||e||(b.length&&x(),c._callback("onUpdate")),!o||c._gc||f!==c._startTime&&m===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(b.length&&x(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!e&&c.vars[o]&&c._callback(o))}},t._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof m&&t._hasPausedChild())return!0;t=t._next}return!1},t.getChildren=function(t,e,i,r){r=r||-9999999999;for(var n=[],s=this._first,o=0;s;)s._startTime<r||(s instanceof f?!1!==e&&(n[o++]=s):(!1!==i&&(n[o++]=s),!1!==t&&(o=(n=n.concat(s.getChildren(!0,e,i))).length))),s=s._next;return n},t.getTweensOf=function(t,e){var i,r,n=this._gc,s=[],o=0;for(n&&this._enabled(!0,!0),r=(i=f.getTweensOf(t)).length;-1<--r;)(i[r].timeline===this||e&&this._contains(i[r]))&&(s[o++]=i[r]);return n&&this._enabled(!1,!0),s},t.recent=function(){return this._recent},t._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},t.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},t._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(t,e)&&(n=!0);return n},t.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},t.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return c.prototype.invalidate.call(this)},t._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return p.prototype._enabled.call(this,t,e)},t.totalTime=function(t,e,i){this._forcingPlayhead=!0;var r=c.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},t.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},t.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,r=0,n=this,s=n._last,o=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>o&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):o=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),o=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},t.paused=function(t){if(!1===t&&this._paused)for(var e=this._first;e;)e._startTime===this._time&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return c.prototype.paused.apply(this,arguments)},t.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===c._rootFramesTimeline},t.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},m},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,a,t){function i(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0}var O=1e-8,r=a._internals,P=r.lazyTweens,R=r.lazyRender,l=_gsScope._gsDefine.globals,h=new t(null,null,1,0),r=i.prototype=new e;return r.constructor=i,r.kill()._gc=!1,i.version="2.1.3",r.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},r.addCallback=function(t,e,i,r){return this.add(a.delayedCall(0,t,i,r),e)},r.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);-1<--r;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},r.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},r.tweenTo=function(t,e){e=e||{};var i,r,n,s={ease:h,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=e.repeat&&l.TweenMax||a;for(r in e)s[r]=e[r];return s.time=this._parseTimeOrLabel(t),i=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,n=new o(this,i,s),s.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||i!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||n,e.onStartParams||[])},n},r.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;e=this.tweenTo(e,i);return e.isFromTo=1,e.duration(Math.abs(e.vars.time-t)/this._timeScale||.001)},r.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,h,u,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._duration,m=c._totalTime,_=c._startTime,g=c._timeScale,v=c._rawPrevTime,y=c._paused,b=c._cycle;if(p!==c._time&&(t+=c._time-p),d-O<=t&&0<=t)c._locked||(c._totalTime=d,c._cycle=c._repeat),c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(t<=0&&-O<=t||v<0||v===O)&&v!==t&&c._first&&(a=!0,O<v&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:O,c._yoyo&&1&c._cycle?c._time=t=0:t=(c._time=f)+1e-4;else if(t<O)if(c._locked||(c._totalTime=c._cycle=0),c._time=0,-O<t&&(t=0),(0!==p||0===f&&v!==O&&(0<v||t<0&&0<=v)&&!c._locked)&&(o="onReverseComplete",n=c._reversed),t<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=v&&c._first&&(a=!0),c._rawPrevTime=t;else{if(c._rawPrevTime=f||!e||t||c._rawPrevTime===t?t:O,0===t&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,c._initted||(a=!0)}else 0===f&&v<0&&(a=!0),c._time=c._rawPrevTime=t,c._locked||(c._totalTime=t,0!==c._repeat&&(x=f+c._repeatDelay,c._cycle=c._totalTime/x>>0,c._cycle&&c._cycle===c._totalTime/x&&m<=t&&c._cycle--,c._time=c._totalTime-c._cycle*x,c._yoyo&&1&c._cycle&&(c._time=f-c._time),c._time>f?t=(c._time=f)+1e-4:c._time<0?c._time=t=0:t=c._time));if(c._hasPause&&!c._forcingPlayhead&&!e){if(p<(t=c._time)||c._repeat&&b!==c._cycle)for(r=c._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(u=c._startTime+(c._reversed?c._duration-l._startTime:l._startTime)/c._timeScale,l._startTime<f&&(c._time=c._rawPrevTime=t=l._startTime,c._totalTime=t+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*f,c._cycle<b?x=!x:c._totalTime+=f,c._time=p,c._rawPrevTime=0===f?v-1e-4:v,c._cycle=b,c._locked=!0,c.render(p=x?0:f,e,0===f),e||c._gc||c.vars.onRepeat&&(c._cycle=E,c._locked=!1,c._callback("onRepeat")),p!==c._time)return;if(T&&(c._cycle=b,c._locked=!0,c.render(p=x?f+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!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._totalTime!==m&&0<t&&(c._active=!0),0!==m||!c.vars.onStart||0===c._totalTime&&c._totalDuration||e||c._callback("onStart"),p<=(h=c._time))for(r=c._first;r&&(s=r._next,h===c._time&&(!c._paused||y));)(r._active||r._startTime<=c._time&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=u),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=c._last;r&&(s=r._prev,h===c._time&&(!c._paused||y));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,c.pause(),c._pauseTime=u}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}!c._onUpdate||e||(P.length&&R(),c._callback("onUpdate")),!o||c._locked||c._gc||_!==c._startTime&&g===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(P.length&&R(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!e&&c.vars[o]&&c._callback(o))}else m!==c._totalTime&&c._onUpdate&&!e&&c._callback("onUpdate")},r.getActive=function(t,e,i){for(var r,n=[],s=this.getChildren(t||null==t,e||null==t,!!i),o=0,a=s.length,l=0;l<a;l++)(r=s[l]).isActive()&&(n[o++]=r);return n},r.getLabelAfter=function(t){t||0!==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length,r=0;r<i;r++)if(e[r].time>t)return e[r].name;return null},r.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].time<t)return e[i].name;return null},r.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},r.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},r.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},r.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},r.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},r.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},r.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},r.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+O)},i},!0),E=180/Math.PI,F=[],L=[],N=[],z={},e=_gsScope._gsDefine.globals,B=function(t,e,i,r){i===r&&(i=r-(r-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t},U=function(t,e,i,r){var n={a:t},s={},o={},a={c:r},l=(t+e)/2,e=(e+i)/2,i=(i+r)/2,h=(l+e)/2,e=(e+i)/2,u=(e-h)/8;return n.b=l+(t-l)/4,s.b=h+u,n.c=s.a=(n.b+s.b)/2,s.c=o.a=(h+e)/2,o.b=e-u,a.b=i+(r-i)/4,o.c=a.a=(o.b+a.b)/2,[n,s,o,a]},_=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var r,n,s,o,a,l=e.values||[],h={},u=l[0],c=e.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=c?c instanceof Array?c:[["x","y","rotation",!0!==c&&Number(c)||0]]:null,u)this._props.push(r);for(s=this._props.length;-1<--s;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],h[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),a||h[r]!==l[0][r]&&(a=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?p(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):function(t,e,i){var r,n,s,o,a,l,h,u,c,p,d,f={},m="cubic"===(e=e||"soft")?3:2,_="soft"===e,g=[];if(null==(t=_&&i?[i].concat(t):t)||t.length<1+m)throw"invalid Bezier data";for(c in t[0])g.push(c);for(l=g.length;-1<--l;){for(f[c=g[l]]=a=[],u=t.length,h=p=0;h<u;h++)r=null==i?t[h][c]:"string"==typeof(d=t[h][c])&&"="===d.charAt(1)?i[c]+Number(d.charAt(0)+d.substr(2)):Number(d),_&&1<h&&h<u-1&&(a[p++]=(r+a[p-2])/2),a[p++]=r;for(u=p-m+1,h=p=0;h<u;h+=m)r=a[h],n=a[h+1],s=a[h+2],o=2==m?0:a[h+3],a[p++]=d=3==m?new B(r,n,s,o):new B(r,(2*n+r)/3,(2*n+s)/3,s);a.length=p}return f}(l,e.type,h),this._segCount=this._beziers[r].length,this._timeRes&&(u=function(t,e){var i,r,n,s,o=[],a=[],l=0,h=0,u=(e=e>>0||6)-1,c=[],p=[];for(i in t){x=b=y=v=x=g=_=m=f=d=y=A=S=void 0;for(var d,f,m,_,g,v,y,b,x,T=t[i],w=o,E=e,S=1/E,A=T.length;-1<--A;)for(f=(b=T[A]).a,m=b.d-f,_=b.c-f,g=b.b-f,d=0,v=1;v<=E;v++)y=d-(d=((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=o.length,r=0;r<n;r++)l+=Math.sqrt(o[r]),p[s=r%e]=l,s==u&&(h+=l,c[s=r/e>>0]=p,a[s]=h,l=0,p=[]);return{length:h,lengths:a,segments:c}}(this._beziers,this._timeRes),this._length=u.length,this._lengths=u.lengths,this._segments=u.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]),s=c.length;-1<--s;){for(o=0;o<3;o++)r=c[s][o],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=c[s][2],this._initialRotations[s]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,r,n,s,o,a,l,h,u,c=this._segCount,p=this._func,d=this._target,f=t!==this._startRatio;if(this._timeRes){if(l=this._lengths,h=this._curSeg,u=t*this._length,w=this._li,u>this._l2&&w<c-1){for(a=c-1;w<a&&(this._l2=l[++w])<=u;);this._l1=l[w-1],this._li=w,this._curSeg=h=this._segments[w],this._s2=h[this._s1=this._si=0]}else if(u<this._l1&&0<w){for(;0<w&&(this._l1=l[--w])>=u;);0===w&&u<this._l1?this._l1=0:w++,this._l2=l[w],this._li=w,this._curSeg=h=this._segments[w],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(e=w,u-=this._l1,w=this._si,u>this._s2&&w<h.length-1){for(a=h.length-1;w<a&&(this._s2=h[++w])<=u;);this._s1=h[w-1],this._si=w}else if(u<this._s1&&0<w){for(;0<w&&(this._s1=h[--w])>=u;);0===w&&u<this._s1?this._s1=0:w++,this._s2=h[w],this._si=w}s=1===t?1:(w+(u-this._s1)/(this._s2-this._s1))*this._prec||0}else s=(t-(e=t<0?0:1<=t?c-1:c*t>>0)*(1/c))*c;for(i=1-s,w=this._props.length;-1<--w;)r=this._props[w],o=(s*s*(n=this._beziers[r][e]).da+3*i*(s*n.ca+i*n.ba))*s+n.a,this._mod[r]&&(o=this._mod[r](o,d)),p[r]?d[r](o):d[r]=o;if(this._autoRotate)for(var m,_,g,v,y,b,x,T=this._autoRotate,w=T.length;-1<--w;)r=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[e],m=m[e],_=n.a+(n.b-n.a)*s,_+=((v=n.b+(n.c-n.b)*s)-_)*s,v+=(n.c+(n.d-n.c)*s-v)*s,g=m.a+(m.b-m.a)*s,g+=((y=m.b+(m.c-m.b)*s)-g)*s,y+=(m.c+(m.d-m.c)*s-y)*s,o=f?Math.atan2(y-g,v-_)*x+b:this._initialRotations[w],this._mod[r]&&(o=this._mod[r](o,d)),p[r]?d[r](o):d[r]=o)}}),t=_.prototype,_.bezierThrough=p,_.cubicToQuadratic=U,_._autoCSS=!0,_.quadraticToCubic=function(t,e,i){return new B(t,(2*e+t)/3,(2*e+i)/3,i)},_._cssRegister=function(){var d,f,m,t=e.CSSPlugin;t&&(t=t._internals,d=t._parseToProxy,f=t._setPluginRatio,m=t.CSSPropTween,t._registerComplexSpecialProp("bezier",{parser:function(t,e,i,r,n,s){e instanceof Array&&(e={values:e}),s=new _;var o,a,l,h=e.values,u=h.length-1,c=[],p={};if(!(u<0)){for(o=0;o<=u;o++)l=d(t,h[o],r,n,s,u!==o),c[o]=l.end;for(a in e)p[a]=e[a];p.values=c,(n=new m(t,"bezier",0,0,l.pt,2)).data=l,n.plugin=s,n.setRatio=f,0===p.autoRotate&&(p.autoRotate=!0),!p.autoRotate||p.autoRotate instanceof Array||(o=!0===p.autoRotate?0:Number(p.autoRotate),p.autoRotate=null!=l.end.left?[["left","top","rotation",o,!1]]:null!=l.end.x&&[["x","y","rotation",o,!1]]),p.autoRotate&&(r._transform||r._enableTransforms(!1),l.autoRotate=r._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,r._overwriteProps.push("rotation")),s._onInitTween(l.proxy,p,r._tween)}return n}}))},t._mod=function(t){for(var e,i=this._overwriteProps,r=i.length;-1<--r;)(e=t[i[r]])&&"function"==typeof e&&(this._mod[i[r]]=e)},t._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;-1<--i;)r[i]===e&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;-1<--i;)t[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(o,C){function M(){o.call(this,"css"),this._overwriteProps.length=0,this.setRatio=M.prototype.setRatio}function a(t,e){return e.toUpperCase()}function l(t,e){return(e=F.createElementNS?F.createElementNS(e||"http://www.w3.org/1999/xhtml",t):F.createElement(t)).style?e:F.createElement(t)}function h(t){return nt.test("string"==typeof t?t:(t.currentStyle||t.style).filter||"")?parseFloat(RegExp.$1)/100:1}function _(t){_gsScope.console&&console.log(t)}function T(t,e){var i,r,n=(e=e||L).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;-1<--r&&void 0===n[i[r]+t];);return 0<=r?(vt="-"+(yt=3===r?"ms":i[r]).toLowerCase()+"-",yt+t):null}function f(t){return bt.getComputedStyle(t)}function p(t,e){var i,r,n={};if(e=e||f(t))if(i=e.length)for(;-1<--i;)-1!==(r=e[i]).indexOf("-transform")&&Gt!==r||(n[r.replace(ht,a)]=e.getPropertyValue(r));else for(i in e)-1!==i.indexOf("Transform")&&H!==i||(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(ht,a)]=e[i]);return N||(n.opacity=h(t)),t=Zt(t,e,!1),n.rotation=t.rotation,n.skewX=t.skewX,n.scaleX=t.scaleX,n.scaleY=t.scaleY,n.x=t.x,n.y=t.y,Y&&(n.z=t.z,n.rotationX=t.rotationX,n.rotationY=t.rotationY,n.scaleZ=t.scaleZ),n.filters&&delete n.filters,n}function g(t,e,i,r,n){var s,o,a,l={},h=t.style;for(o in i)"cssText"===o||"length"!==o&&isNaN(o)&&(e[o]!==(s=i[o])||n&&n[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[o]||""===e[o].replace(it,"")?s:0:xt(t,o),void 0!==h[o]&&(a=new Pt(h,o,h[o],a)));if(r)for(o in r)"className"!==o&&(l[o]=r[o]);return{difs:l,firstMPT:a}}function A(t,e){return"string"==typeof(t="function"==typeof t?t(R,P):t)&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function E(t,e){var i="string"==typeof(t="function"==typeof t?t(R,P):t)&&"="===t.charAt(1);return null==(t="string"==typeof t&&"v"===t.charAt(t.length-2)?(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100):t)?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function S(t,e,i,r){var n,s;return n=(n=null==(t="function"==typeof t?t(R,P):t)?e:"number"==typeof t?t:(n=t.split("_"),s=((s="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===t.indexOf("rad")?1:D)-(s?0:e),n.length&&(r&&(r[i]=e+s),-1!==t.indexOf("short")&&(s%=360)!==s%180&&(s=s<0?s+360:s-360),-1!==t.indexOf("_cw")&&s<0?s=(s+3599999999640)%360-360*(s/360|0):-1!==t.indexOf("ccw")&&0<s&&(s=(s-3599999999640)%360-360*(s/360|0))),e+s))<1e-6&&-1e-6<n?0:n}function u(t,e,i){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0}function v(t,e){var i,r,n,s=t.match(U)||[],o=0,a="";if(!s.length)return t;for(i=0;i<s.length;i++)r=s[i],o+=(n=t.substr(o,t.indexOf(r,o)-o)).length+r.length,3===(r=St(r,e)).length&&r.push(1),a+=n+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return a+t.substr(o)}var d,W,O,y,V,b,q,K,Z,x,P,R,Q=_gsScope._gsDefine.globals,m={},t=M.prototype=new o("css"),$=((t.constructor=M).version="2.1.3",M.API=2,M.defaultTransformPerspective=0,M.defaultSkewType="compensated",M.defaultSmoothOrigin=!0,M.suffixMap={top:t="px",right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""},/(?:\-|\.|\b)(\d|\.|e\-)+/g),J=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,tt=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,et=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,it=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,rt=/(?:\d|\-|\+|=|#|\.)*/g,nt=/opacity *= *([^)]*)/i,st=/opacity:([^;]*)/i,ot=/alpha\(opacity *=.+?\)/i,at=/^(rgb|hsl)/,lt=/([A-Z])/g,ht=/-([a-z])/gi,ut=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,ct=/(?:Left|Right|Width)/i,pt=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,dt=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,k=/,(?=[^\)]*(?:\(|$))/gi,ft=/[\s,\(]/i,I=Math.PI/180,D=180/Math.PI,mt={},_t={style:{}},F=_gsScope.document||{createElement:function(){return _t}},L=l("div"),gt=l("img"),e=M._internals={_specialProps:m},i=(_gsScope.navigator||{}).userAgent||"",N=(n=i.indexOf("Android"),r=l("a"),q=-1!==i.indexOf("Safari")&&-1===i.indexOf("Chrome")&&(-1===n||3<parseFloat(i.substr(n+8,2))),Z=q&&parseFloat(i.substr(i.indexOf("Version/")+8,2))<6,K=-1!==i.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(i)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(i))&&(x=parseFloat(RegExp.$1)),!!r&&(r.style.cssText="top:1px;opacity:.55;",/^0.55/.test(r.style.opacity))),vt="",yt="",bt="undefined"!=typeof window?window:F.defaultView||{getComputedStyle:function(){}},z=M.getStyle=function(t,e,i,r,n){var s;return N||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||f(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(lt,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):h(t)},w=e.convertToPixels=function(t,e,i,r,n){if("px"===r||!r&&"lineHeight"!==e)return i;if("auto"===r||!i)return 0;var s,o,a,l=ct.test(e),h=t,u=L.style,c=i<0,p=1===i;if(c&&(i=-i),p&&(i*=100),"lineHeight"!==e||r)if("%"===r&&-1!==e.indexOf("border"))s=i/100*(l?t.clientWidth:t.clientHeight);else{if(u.cssText="border:0 solid red;position:"+z(t,"position")+";line-height:0;","%"!==r&&h.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)u[l?"borderLeftWidth":"borderTopWidth"]=i+r;else{if(h=t.parentNode||F.body,-1!==z(h,"display").indexOf("flex")&&(u.position="absolute"),o=h._gsCache,a=C.ticker.frame,o&&l&&o.time===a)return o.width*i/100;u[l?"width":"height"]=i+r}h.appendChild(L),s=parseFloat(L[l?"offsetWidth":"offsetHeight"]),h.removeChild(L),l&&"%"===r&&!1!==M.cacheWidths&&((o=h._gsCache=h._gsCache||{}).time=a,o.width=s/i*100),0!==s||n||(s=w(t,e,i,r,!0))}else o=f(t).lineHeight,t.style.lineHeight=i,s=parseFloat(f(t).lineHeight),t.style.lineHeight=o;return p&&(s/=100),c?-s:s},xt=e.calculateOffset=function(t,e,i){var r;return"absolute"!==z(t,"position",i)?0:(i=z(t,"margin"+(r="left"===e?"Left":"Top"),i),t["offset"+r]-(w(t,e,parseFloat(i),i.replace(rt,""))||0))},Tt={width:["Left","Right"],height:["Top","Bottom"]},wt=["marginLeft","marginRight","marginTop","marginBottom"],B=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";var i,r=(t=null!=t&&""!==t?t:"0 0").split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(3<r.length&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(B(r[i]));return t.join(",")}return null==s?s="center"===n?"50%":"0":"center"===s&&(s="50%"),t=(n="center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("=")?"50%":n)+" "+s+(2<r.length?" "+r[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(n.replace(it,"")),e.oy=parseFloat(s.replace(it,"")),e.v=t),e||t},Et={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]},St=M.parseColor=function(t,e){var i,r,n,s,o,a,l,h;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),Et[t])i=Et[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=h=t.match($),e){if(-1!==t.indexOf("="))return t.match(J)}else o=Number(i[0])%360/360,a=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(a+1):l+a-l*a),3<i.length&&(i[3]=Number(i[3])),i[0]=u(o+1/3,r,n),i[1]=u(o,r,n),i[2]=u(o-1/3,r,n);else i=t.match($)||Et.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=Et.black;return e&&!h&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((t=Math.max(r,n,s))+(e=Math.min(r,n,s)))/2,t===e?o=a=0:(h=t-e,a=.5<l?h/(2-t-e):h/(t+e),o=t===r?(n-s)/h+(n<s?6:0):t===n?(s-r)/h+2:(r-n)/h+4,o*=60),i[0]=o+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},U="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in Et)U+="|"+t+"\\b";U=new RegExp(U+")","gi"),M.colorStringFilter=function(t){var e=t[0]+" "+t[1];U.test(e)&&(e=-1!==e.indexOf("hsl(")||-1!==e.indexOf("hsla("),t[0]=v(t[0],e),t[1]=v(t[1],e)),U.lastIndex=0},C.defaultStringFilter||(C.defaultStringFilter=M.colorStringFilter);function At(t,e,s,o){var a,l,h,u,c,p,d,f;return null==t?function(t){return t}:(a=e?(t.match(U)||[""])[0]:"",l=t.split(a).join("").match(tt)||[],h=t.substr(0,t.indexOf(l[0])),u=")"===t.charAt(t.length-1)?")":"",c=-1!==t.indexOf(" ")?" ":",",p=l.length,d=0<p?l[0].replace($,""):"",p?f=e?function(t){var e,i,r,n;if("number"==typeof t)t+=d;else if(o&&k.test(t)){for(n=t.replace(k,"|").split("|"),r=0;r<n.length;r++)n[r]=f(n[r]);return n.join(",")}if(e=(t.match(U)||[a])[0],r=(i=t.split(e).join("").match(tt)||[]).length,p>r--)for(;++r<p;)i[r]=s?i[(r-1)/2|0]:l[r];return h+i.join(c)+c+e+u+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,r;if("number"==typeof t)t+=d;else if(o&&k.test(t)){for(i=t.replace(k,"|").split("|"),r=0;r<i.length;r++)i[r]=f(i[r]);return i.join(",")}if(r=(e=t.match(","==c?tt:et)||[]).length,p>r--)for(;++r<p;)e[r]=s?e[(r-1)/2|0]:l[r];return(h&&"none"!==t&&t.substr(0,t.indexOf(e[0]))||h)+e.join(c)+u}:function(t){return t})}function Ot(h){return h=h.split(","),function(t,e,i,r,n,s,o){var a,l=(e+"").split(" ");for(o={},a=0;a<4;a++)o[h[a]]=l[a]=l[a]||l[(a-1)/2>>0];return r.parse(t,o,n,s)}}function Pt(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&((r._prev=this)._next=r)}e._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s,o=this.data,a=o.proxy,l=o.firstMPT;l;)e=a[l.v],l.r?e=l.r(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(o.autoRotate&&(o.autoRotate.rotation=o.mod?o.mod.call(this._tween,a.rotation,this.t,this._tween):a.rotation),1===t||0===t)for(l=o.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i[s]=n}}else i[s]=i.s+i.xs0;l=l._next}},e._parseToProxy=function(t,e,i,r,n,s){var o,a,l,h,u=r,c={},p={},d=i._transform,f=mt;for(i._transform=null,mt=e,r=t=i.parse(t,e,r,n),mt=f,s&&(i._transform=d,u&&(u._prev=null,u._prev&&(u._prev._next=null)));r&&r!==u;){if(r.type<=1&&(p[a=r.p]=r.s+r.c,c[a]=r.s,s||(h=new Pt(r,"s",a,h,r.r),r.c=0),1===r.type))for(o=r.l;0<--o;)p[a=r.p+"_"+(l="xn"+o)]=r.data[l],c[a]=r[l],s||(h=new Pt(r,l,a,h,r.rxp[l]));r=r._next}return{proxy:c,end:p,firstMPT:h,pt:t}};function Rt(t,e,i,r,n,s){return(t=new j(t,e,i,r-i,n,-1,s)).b=i,t.e=t.xs0=r,t}var j=e.CSSPropTween=function(t,e,i,r,n,s,o,a,l,h,u){this.t=t,this.p=e,this.s=i,this.c=r,this.n=o||e,t instanceof j||y.push(this.n),this.r=a&&("function"==typeof a?a:Math.round),this.type=s||0,l&&(this.pr=l,d=!0),this.b=void 0===h?i:h,this.e=void 0===u?i+r:u,n&&((this._next=n)._prev=this)},Ct=M.parseComplex=function(t,e,i,r,n,s,o,a,l,h){i=i||s||"","function"==typeof r&&(r=r(R,P)),o=new j(t,e,0,0,o,h?2:1,null,!1,a,i,r),r+="",n&&U.test(r+i)&&(M.colorStringFilter(r=[i,r]),i=r[0],r=r[1]);var u,c,p,d,f,m,_,g,v,y,b,x,T=i.split(", ").join(",").split(" "),w=r.split(", ").join(",").split(" "),E=T.length,S=!1!==V;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(w=(-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(T=T.join(" ").replace(k,", ").split(" "),w.join(" ").replace(k,", ")):(T=T.join(" ").split(",").join(", ").split(" "),w.join(" ").split(",").join(", "))).split(" "),E=T.length),E!==w.length&&(E=(T=(s||"").split(" ")).length),o.plugin=l,o.setRatio=h,u=U.lastIndex=0;u<E;u++)if(d=T[u],f=w[u]+"",(x=parseFloat(d))||0===x)o.appendXtra("",x,A(f,x),f.replace(J,""),S&&-1!==f.indexOf("px")&&Math.round,!0);else if(n&&U.test(d))b=")"+((b=f.indexOf(")")+1)?f.substr(b):""),x=-1!==f.indexOf("hsl")&&N,v=f,d=St(d,x),f=St(f,x),(g=6<d.length+f.length)&&!N&&0===f[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(w[u]).join("transparent")):(N||(g=!1),x?o.appendXtra(v.substr(0,v.indexOf("hsl"))+(g?"hsla(":"hsl("),d[0],A(f[0],d[0]),",",!1,!0).appendXtra("",d[1],A(f[1],d[1]),"%,",!1).appendXtra("",d[2],A(f[2],d[2]),g?"%,":"%"+b,!1):o.appendXtra(v.substr(0,v.indexOf("rgb"))+(g?"rgba(":"rgb("),d[0],f[0]-d[0],",",Math.round,!0).appendXtra("",d[1],f[1]-d[1],",",Math.round).appendXtra("",d[2],f[2]-d[2],g?",":b,Math.round),g&&(d=d.length<4?1:d[3],o.appendXtra("",d,(f.length<4?1:f[3])-d,b,!1))),U.lastIndex=0;else if(m=d.match($)){if(!(_=f.match(J))||_.length!==m.length)return o;for(c=p=0;c<m.length;c++)y=m[c],v=d.indexOf(y,p),o.appendXtra(d.substr(p,v-p),Number(y),A(_[c],y),"",S&&"px"===d.substr(v+y.length,2)&&Math.round,0===c),p=v+y.length;o["xs"+o.l]+=d.substr(p)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+f:f;if(-1!==r.indexOf("=")&&o.data){for(b=o.xs0+o.data.s,u=1;u<o.l;u++)b+=o["xs"+u]+o.data["xn"+u];o.e=b+o["xs"+u]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},G=9;for((t=j.prototype).l=t.pr=0;0<--G;)t["xn"+G]=0,t["xs"+G]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,r,n,s){var o=this,a=o.l;return o["xs"+a]+=s&&(a||o["xs"+a])?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=r||"",0<a?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=n,o["xn"+a]=e,o.plugin||(o.xfirst=new j(o,"xn"+a,e,i,o.xfirst||o,0,o.n,n,o.pr),o.xfirst.xs0=0)):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=n)):o["xs"+a]+=e+(r||""),o};function Mt(t,e){this.p=(e=e||{}).prefix&&T(t)||t,(m[t]=m[this.p]=this).format=e.formatter||At(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0}function kt(t,e,i){var r,n=F.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n}function It(t,e,i,r,n,s){var o,a,l,h,u,c,p,d,f,m,_,g,v=t._gsTransform,y=Dt(t,!0);v&&(_=v.xOrigin,g=v.yOrigin),(!r||(o=r.split(" ")).length<2)&&(0===(u=t.getBBox()).x&&0===u.y&&u.width+u.height===0&&(u={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),o=[(-1!==(e=B(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*u.width:parseFloat(e[0]))+u.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*u.height:parseFloat(e[1]))+u.y]),i.xOrigin=e=parseFloat(o[0]),i.yOrigin=h=parseFloat(o[1]),r&&y!==Kt&&(r=y[0],u=y[1],c=y[2],p=y[3],d=y[4],f=y[5],(m=r*p-u*c)&&(l=e*(-u/m)+h*(r/m)-(r*f-u*d)/m,e=i.xOrigin=o[0]=a=e*(p/m)+h*(-c/m)+(c*f-p*d)/m,h=i.yOrigin=o[1]=l)),v&&(s&&(i.xOffset=v.xOffset,i.yOffset=v.yOffset,v=i),n||!1!==n&&!1!==M.defaultSmoothOrigin?(v.xOffset+=(a=e-_)*y[0]+(l=h-g)*y[2]-a,v.yOffset+=a*y[1]+l*y[3]-l):v.xOffset=v.yOffset=0),s||t.setAttribute("data-svg-origin",o.join(" "))}function Dt(t,e){var i,r,n,s,o,a,l,h=t._gsTransform||new Ht,u=t.style;if(H?r=z(t,Gt,null,!0):t.currentStyle&&(r=(r=t.currentStyle.filter.match(pt))&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),h.x||0,h.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,H&&i&&!t.offsetParent&&t!==c&&(s=u.display,u.display="block",(l=t.parentNode)&&t.offsetParent||(o=1,a=t.nextSibling,c.appendChild(t)),i=!(r=z(t,Gt,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?u.display=s:$t(u,"display"),o&&(a?l.insertBefore(t,a):l?l.appendChild(t):c.removeChild(t))),(h.svg||t.getCTM&&qt(t))&&(i&&-1!==(u[H]+"").indexOf("matrix")&&(r=u[H],i=0),n=t.getAttribute("transform"),i&&n&&(r="matrix("+(n=t.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0)),i)return Kt;for(n=(r||"").match($)||[],G=n.length;-1<--G;)s=Number(n[G]),n[G]=(o=s-(s|=0))?(1e5*o+(o<0?-.5:.5)|0)/1e5+s:s;return e&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n}function Ft(t){var e,i,r=this.data,n=(o=-r.rotation*I)+r.skewX*I,s=(Math.cos(o)*r.scaleX*1e5|0)/1e5,o=(Math.sin(o)*r.scaleX*1e5|0)/1e5,a=(Math.sin(n)*-r.scaleY*1e5|0)/1e5,n=(Math.cos(n)*r.scaleY*1e5|0)/1e5,l=this.t.style,h=this.t.currentStyle;if(h){i=o,o=-a,a=-i,e=h.filter,l.filter="";var u=this.t.offsetWidth,c=this.t.offsetHeight,p="absolute"!==h.position,d="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+o+", M21="+a+", M22="+n,f=r.x+u*r.xPercent/100,m=r.y+c*r.yPercent/100;if(null!=r.ox&&(f+=(y=(r.oxp?u*r.ox*.01:r.ox)-u/2)-(y*s+(b=(r.oyp?c*r.oy*.01:r.oy)-c/2)*o),m+=b-(y*a+b*n)),d+=p?", Dx="+((y=u/2)-(y*s+(b=c/2)*o)+f)+", Dy="+(b-(y*a+b*n)+m)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=e.replace(dt,d):l.filter=d+" "+e,0!==t&&1!==t||1!=s||0!=o||0!=a||1!=n||p&&-1===d.indexOf("Dx=0, Dy=0")||nt.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&l.removeAttribute("filter"),!p){var _,g,v=x<8?1:-1,y=r.ieOffsetX||0,b=r.ieOffsetY||0;for(r.ieOffsetX=Math.round((u-((s<0?-s:s)*u+(o<0?-o:o)*c))/2+f),r.ieOffsetY=Math.round((c-((n<0?-n:n)*c+(a<0?-a:a)*u))/2+m),G=0;G<4;G++)g=(i=-1!==(g=h[_=wt[G]]).indexOf("px")?parseFloat(g):w(this.t,_,parseFloat(g),g.replace(rt,""))||0)!==r[_]?G<2?-r.ieOffsetX:-r.ieOffsetY:G<2?y-r.ieOffsetX:b-r.ieOffsetY,l[_]=(r[_]=Math.round(i-g*(0===G||2===G?1:v)))+"px"}}}function Lt(t){var e,i=this.t,r=i.filter||z(this.data,"filter")||"",t=this.s+this.c*t|0;(e=100==t?-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),!z(this.data,"filter")):(i.filter=r.replace(ot,""),!0):e)||(this.xn1&&(i.filter=r=r||"alpha(opacity="+t+")"),-1===r.indexOf("pacity")?0==t&&this.xn1||(i.filter=r+" alpha(opacity="+t+")"):i.filter=r.replace(nt,"opacity="+t))}function Nt(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:$t(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}function zt(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s=this.t.style,o=m.transform.parse;if("all"===this.e)n=!(s.cssText="");else for(r=(e=this.e.split(" ").join("").split(",")).length;-1<--r;)i=e[r],m[i]&&(m[i].parse===o?n=!0:i="transformOrigin"===i?Xt:m[i].p),$t(s,i);n&&($t(s,H),(t=this.t._gsTransform)&&(t.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}var X,r,Bt,n,s=e._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n=t.split(","),s=e.defaultValue;for(i=i||[s],r=0;r<n.length;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||s,new Mt(n[r],e)},Ut=e._registerPluginProp=function(t){var l;m[t]||(l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",s(t,{parser:function(t,e,i,r,n,s,o){var a=Q.com.greensock.plugins[l];return a?(a._cssRegister(),m[i].parse(t,e,i,r,n,s,o)):(_("Error: "+l+" js file not loaded."),n)}}))},jt=((t=Mt.prototype).parseComplex=function(t,e,i,r,n,s){var o,a,l,h,u,c,p=this.keyword;if(this.multi&&(k.test(i)||k.test(e)?(a=e.replace(k,"|").split("|"),l=i.replace(k,"|").split("|")):p&&(a=[e],l=[i])),l){for(h=(l.length>a.length?l:a).length,o=0;o<h;o++)e=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,p&&(u=e.indexOf(p))!==(c=i.indexOf(p))&&(-1===c?a[o]=a[o].split(p).join(""):-1===u&&(a[o]+=" "+p));e=a.join(", "),i=l.join(", ")}return Ct(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},t.parse=function(t,e,i,r,n,s,o){return this.parseComplex(t.style,this.format(z(t,this.p,O,!1,this.dflt)),this.format(e),n,s)},M.registerSpecialProp=function(t,a,l){s(t,{parser:function(t,e,i,r,n,s,o){n=new j(t,i,0,0,n,2,i,!1,l);return n.plugin=s,n.setRatio=a(t,e,r._tween,i),n},priority:l})},M.useSVGTransformAttr=!0,"scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(",")),H=T("transform"),Gt=vt+"transform",Xt=T("transformOrigin"),Y=null!==T("perspective"),Ht=e.Transform=function(){this.perspective=parseFloat(M.defaultTransformPerspective)||0,this.force3D=!1!==M.defaultForce3D&&Y&&(M.defaultForce3D||"auto")},Yt=_gsScope.SVGElement,c=F.documentElement||{},Wt=(n=x||/Android/i.test(i)&&!_gsScope.chrome,F.createElementNS&&c.appendChild&&!n&&(r=kt("svg",c),Bt=(i=kt("rect",r,{width:100,height:50,x:100})).getBoundingClientRect().width,i.style[Xt]="50% 50%",i.style[H]="scaleX(0.5)",n=Bt===i.getBoundingClientRect().width&&!(K&&Y),c.removeChild(r)),n),Vt=function(t){var e,i=l("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(c.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Vt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),c.removeChild(i),this.style.cssText=s,e},qt=function(t){return!(!Yt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Vt.call(e,!0)}}(t))},Kt=[1,0,0,1,0,0],Zt=e.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,s,o,a,l,h,u,c,p,d,f,m,_,g,v,y,b,x,T,w,E,S,A=i&&t._gsTransform||new Ht,O=A.scaleX<0,P=Y&&(parseFloat(z(t,Xt,e,!1,"0 0 0").split(" ")[2])||A.zOrigin)||0,R=parseFloat(M.defaultTransformPerspective)||0;if(A.svg=!(!t.getCTM||!qt(t)),A.svg&&(It(t,z(t,Xt,e,!1,"50% 50%")+"",A,t.getAttribute("data-svg-origin")),X=M.useSVGTransformAttr||Wt),(e=Dt(t))!==Kt)for(n in 16===e.length?(s=e[0],o=e[1],a=e[2],T=e[3],l=e[4],h=e[5],u=e[6],x=e[7],c=e[8],p=e[9],d=e[10],f=e[12],m=e[13],_=e[14],g=e[11],v=Math.atan2(u,d),A.zOrigin&&(f=c*(_=-A.zOrigin)-e[12],m=p*_-e[13],_=d*_+A.zOrigin-e[14]),A.rotationX=v*D,v&&(S=l*(w=Math.cos(-v))+c*(E=Math.sin(-v)),y=h*w+p*E,b=u*w+d*E,c=l*-E+c*w,p=h*-E+p*w,d=u*-E+d*w,g=x*-E+g*w,l=S,h=y,u=b),v=Math.atan2(-a,d),A.rotationY=v*D,v&&(y=o*(w=Math.cos(-v))-p*(E=Math.sin(-v)),b=a*w-d*E,p=o*E+p*w,d=a*E+d*w,g=T*E+g*w,s=S=s*w-c*E,o=y,a=b),v=Math.atan2(o,s),A.rotation=v*D,v&&(S=s*(w=Math.cos(v))+o*(E=Math.sin(v)),y=l*w+h*E,b=c*w+p*E,o=o*w-s*E,h=h*w-l*E,p=p*w-c*E,s=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,h),A.scaleX=(1e5*Math.sqrt(s*s+o*o+a*a)+.5|0)/1e5,A.scaleY=(1e5*Math.sqrt(h*h+u*u)+.5|0)/1e5,A.scaleZ=(1e5*Math.sqrt(c*c+p*p+d*d)+.5|0)/1e5,s/=A.scaleX,l/=A.scaleY,o/=A.scaleX,h/=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=f,A.y=m,A.z=_,A.svg&&(A.x-=A.xOrigin-(A.xOrigin*s-A.yOrigin*l),A.y-=A.yOrigin-(A.yOrigin*o-A.xOrigin*h))):Y&&!r&&e.length&&A.x===e[4]&&A.y===e[5]&&(A.rotationX||A.rotationY)||(T=(x=6<=e.length)?e[0]:1,w=e[1]||0,E=e[2]||0,S=x?e[3]:1,A.x=e[4]||0,A.y=e[5]||0,y=Math.sqrt(T*T+w*w),b=Math.sqrt(S*S+E*E),a=T||w?Math.atan2(w,T)*D:A.rotation||0,u=E||S?Math.atan2(E,S)*D+a:A.skewX||0,A.scaleX=y,A.scaleY=b,A.rotation=a,A.skewX=u,Y&&(A.rotationX=A.rotationY=A.z=0,A.perspective=R,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&&(O?(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=P,A)A[n]<2e-5&&-2e-5<A[n]&&(A[n]=0);return i&&(t._gsTransform=A).svg&&(X&&t.style[H]?C.delayedCall(.001,function(){$t(t.style,H)}):!X&&t.getAttribute("transform")&&C.delayedCall(.001,function(){t.removeAttribute("transform")})),A},Qt=e.set3DTransformRatio=e.setTransformRatio=function(t){var e,i,r,n,s,o,a,l,h,u,c,p,d,f,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,O=g.z,P=g.svg,R=g.perspective,C=g.force3D,M=g.skewY,k=g.skewX;if(M&&(k+=M,y+=M),((1!==t&&0!==t||"auto"!==C||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&C||O||R||x||b||1!==E)&&(!X||!P)&&Y){if(K&&(T<(d=1e-4)&&-d<T&&(T=E=2e-5),w<d&&-d<w&&(w=E=2e-5),!R||g.z||g.rotationX||g.rotationY||(R=0)),y||k)y*=I,_=i=Math.cos(y),m=s=Math.sin(y),k&&(y-=k*I,_=Math.cos(y),m=Math.sin(y),"simple"===g.skewType&&(e=Math.tan((k-M)*I),_*=e=Math.sqrt(1+e*e),m*=e,g.skewY&&(e=Math.tan(M*I),i*=e=Math.sqrt(1+e*e),s*=e))),r=-m,o=_;else{if(!(x||b||1!==E||R||P))return void(v[H]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) translate3d(":"translate3d(")+S+"px,"+A+"px,"+O+"px)"+(1!==T||1!==w?" scale("+T+","+w+")":""));i=o=1,r=s=0}t=1,n=a=l=h=u=C=0,c=R?-1/R:0,p=g.zOrigin,d=1e-6,(y=x*I)&&(_=Math.cos(y),u=c*(l=-(m=Math.sin(y))),n=i*m,a=s*m,c*=t=_,i*=_,s*=_),(y=b*I)&&(e=r*(_=Math.cos(y))+n*(m=Math.sin(y)),f=o*_+a*m,h=t*m,C=c*m,n=r*-m+n*_,a=o*-m+a*_,t*=_,c*=_,r=e,o=f),1!==E&&(n*=E,a*=E,t*=E,c*=E),1!==w&&(r*=w,o*=w,h*=w,C*=w),1!==T&&(i*=T,s*=T,l*=T,u*=T),(p||P)&&(p&&(S+=n*-p,A+=a*-p,O+=t*-p+p),P&&(S+=g.xOrigin-(g.xOrigin*i+g.yOrigin*r)+g.xOffset,A+=g.yOrigin-(g.xOrigin*s+g.yOrigin*o)+g.yOffset),S<d&&-d<S&&(S="0"),A<d&&-d<A&&(A="0"),O<d&&-d<O&&(O=0)),m=(m=g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix3d(":"matrix3d(")+((i<d&&-d<i?"0":i)+","+(s<d&&-d<s?"0":s)+","+(l<d&&-d<l?"0":l))+(","+(u<d&&-d<u?"0":u)+","+(r<d&&-d<r?"0":r)+","+(o<d&&-d<o?"0":o)),b||x||1!==E?m=m+","+(h<d&&-d<h?"0":h)+","+(C<d&&-d<C?"0":C)+","+(n<d&&-d<n?"0":n)+","+(a<d&&-d<a?"0":a)+","+(t<d&&-d<t?"0":t)+","+(c<d&&-d<c?"0":c)+",":m+=",0,0,0,0,1,0,",v[H]=m+=S+","+A+","+O+","+(R?1+-O/R:1)+")"}else y||k||P?(y*=I,_=k*I,i=Math.cos(y)*T,s=Math.sin(y)*T,r=Math.sin(y-_)*-w,o=Math.cos(y-_)*w,_&&"simple"===g.skewType&&(e=Math.tan(_-M*I),r*=e=Math.sqrt(1+e*e),o*=e,M&&(e=Math.tan(M*I),i*=e=Math.sqrt(1+e*e),s*=e)),P&&(S+=g.xOrigin-(g.xOrigin*i+g.yOrigin*r)+g.xOffset,A+=g.yOrigin-(g.xOrigin*s+g.yOrigin*o)+g.yOffset,X&&(g.xPercent||g.yPercent)&&(d=this.t.getBBox(),S+=.01*g.xPercent*d.width,A+=.01*g.yPercent*d.height),S<(d=1e-6)&&-d<S&&(S=0),A<d&&-d<A&&(A=0)),m=(1e5*i|0)/1e5+","+(1e5*s|0)/1e5+","+(1e5*r|0)/1e5+","+(1e5*o|0)/1e5+","+S+","+A+")",P&&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+")"},$t=((t=Ht.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,s("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(t,e,i,r,n,s,o){if(r._lastParsedTransform!==o){var a,l,h,u,c,p,d,f,m=(r._lastParsedTransform=o).scale&&"function"==typeof o.scale?o.scale:0,_=(m&&(o.scale=m(R,t)),t._gsTransform),g=t.style,v=jt.length,y=o,b={},x="transformOrigin",T=Zt(t,O,!0,y.parseTransform),w=y.transform&&("function"==typeof y.transform?y.transform(R,P):y.transform);if(T.skewType=y.skewType||T.skewType||M.defaultSkewType,r._transform=T,"rotationZ"in y&&(y.rotation=y.rotationZ),w&&"string"==typeof w&&H)(l=L.style)[H]=w,l.display="block",l.position="absolute",-1!==w.indexOf("%")&&(l.width=z(t,"width"),l.height=z(t,"height")),F.body.appendChild(L),a=Zt(L,null,!1),"simple"===T.skewType&&(a.scaleY*=Math.cos(a.skewX*I)),T.svg&&(c=T.xOrigin,p=T.yOrigin,a.x-=T.xOffset,a.y-=T.yOffset,(y.transformOrigin||y.svgOrigin)&&(w={},It(t,B(y.transformOrigin),w,y.svgOrigin,y.smoothOrigin,!0),c=w.xOrigin,p=w.yOrigin,a.x-=w.xOffset-T.xOffset,a.y-=w.yOffset-T.yOffset),(c||p)&&(d=Dt(L,!0),a.x-=c-(c*d[0]+p*d[2]),a.y-=p-(c*d[1]+p*d[3]))),F.body.removeChild(L),a.perspective||(a.perspective=T.perspective),null!=y.xPercent&&(a.xPercent=E(y.xPercent,T.xPercent)),null!=y.yPercent&&(a.yPercent=E(y.yPercent,T.yPercent));else if("object"==typeof y){if(a={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!=(u=y.directionalRotation))if("object"==typeof u)for(l in u)y[l]=u[l];else y.rotation=u;"string"==typeof y.x&&-1!==y.x.indexOf("%")&&(a.x=0,a.xPercent=E(y.x,T.xPercent)),"string"==typeof y.y&&-1!==y.y.indexOf("%")&&(a.y=0,a.yPercent=E(y.y,T.yPercent)),a.rotation=S("rotation"in y?y.rotation:"shortRotation"in y?y.shortRotation+"_short":T.rotation,T.rotation,"rotation",b),Y&&(a.rotationX=S("rotationX"in y?y.rotationX:"shortRotationX"in y?y.shortRotationX+"_short":T.rotationX||0,T.rotationX,"rotationX",b),a.rotationY=S("rotationY"in y?y.rotationY:"shortRotationY"in y?y.shortRotationY+"_short":T.rotationY||0,T.rotationY,"rotationY",b)),a.skewX=S(y.skewX,T.skewX),a.skewY=S(y.skewY,T.skewY)}for(Y&&null!=y.force3D&&(T.force3D=y.force3D,h=!0),(d=T.force3D||T.z||T.rotationX||T.rotationY||a.z||a.rotationX||a.rotationY||a.perspective)||null==y.scale||(a.scaleZ=1);-1<--v;)(1e-6<(w=a[f=jt[v]]-T[f])||w<-1e-6||null!=y[f]||null!=mt[f])&&(h=!0,n=new j(T,f,T[f],w,n),f in b&&(n.e=b[f]),n.xs0=0,n.plugin=s,r._overwriteProps.push(n.n));w="function"==typeof y.transformOrigin?y.transformOrigin(R,P):y.transformOrigin,T.svg&&(w||y.svgOrigin)&&(c=T.xOffset,p=T.yOffset,It(t,B(w),a,y.svgOrigin,y.smoothOrigin),n=Rt(T,"xOrigin",(_?T:a).xOrigin,a.xOrigin,n,x),n=Rt(T,"yOrigin",(_?T:a).yOrigin,a.yOrigin,n,x),c===T.xOffset&&p===T.yOffset||(n=Rt(T,"xOffset",_?c:T.xOffset,T.xOffset,n,x),n=Rt(T,"yOffset",_?p:T.yOffset,T.yOffset,n,x)),w="0px 0px"),(w||Y&&d&&T.zOrigin)&&(H?(h=!0,f=Xt,w=w||(w=(z(t,f,O,!1,"50% 50%")+"").split(" "))[0]+" "+w[1]+" "+T.zOrigin+"px",w+="",(n=new j(g,f,0,0,n,-1,x)).b=g[f],n.plugin=s,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 j(T,"zOrigin",0,0,n,-1,n.n)).b=l,n.xs0=n.e=T.zOrigin):n.xs0=n.e=w):B(w+"",T)),h&&(r._transformType=T.svg&&X||!d&&3!==this._transformType?2:3),m&&(o.scale=m)}return n},allowFunc:!0,prefix:!0}),s("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),s("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:At("inset(0% 0% 0% 0%)",!1,!0)}),s("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){e=this.format(e);for(var o,a,l,h,u,c,p,d,f,m,_=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],g=t.style,v=parseFloat(t.offsetWidth),y=parseFloat(t.offsetHeight),b=e.split(" "),x=0;x<_.length;x++)this.p.indexOf("border")&&(_[x]=T(_[x])),-1!==(l=a=z(t,_[x],O,!1,"0px")).indexOf(" ")&&(l=(a=l.split(" "))[0],a=a[1]),h=o=b[x],f=parseFloat(l),m=l.substr((f+"").length),(c=""===(c=(p="="===h.charAt(1))?(u=parseInt(h.charAt(0)+"1",10),h=h.substr(2),u*=parseFloat(h),h.substr((u+"").length-(u<0?1:0))||""):(u=parseFloat(h),h.substr((u+"").length)))?W[i]||m:c)!==m&&(d=w(t,"borderLeft",f,m),f=w(t,"borderTop",f,m),a="%"===c?(l=d/v*100+"%",f/y*100+"%"):"em"===c?(l=d/(m=w(t,"borderLeft",1,"em"))+"em",f/m+"em"):(l=d+"px",f+"px"),p&&(h=parseFloat(l)+u+c,o=parseFloat(a)+u+c)),n=Ct(g,_[x],l+" "+a,h+" "+o,!1,"0px",n);return n},prefix:!0,formatter:At("0px 0px 0px 0px",!1,!0)}),s("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){return Ct(t.style,i,this.format(z(t,i,O,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:At("0px 0px",!1,!0)}),s("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,s){var o,a,l,h,u,c="background-position",p=O||f(t),d=this.format((p?x?p.getPropertyValue(c+"-x")+" "+p.getPropertyValue(c+"-y"):p.getPropertyValue(c):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),p=this.format(e);if(-1!==d.indexOf("%")!=(-1!==p.indexOf("%"))&&p.split(",").length<2&&(c=z(t,"backgroundImage").replace(ut,""))&&"none"!==c){for(o=d.split(" "),a=p.split(" "),gt.setAttribute("src",c),l=2;-1<--l;)(h=-1!==(d=o[l]).indexOf("%"))!=(-1!==a[l].indexOf("%"))&&(u=0===l?t.offsetWidth-gt.width:t.offsetHeight-gt.height,o[l]=h?parseFloat(d)/100*u+"px":parseFloat(d)/u*100+"%");d=o.join(" ")}return this.parseComplex(t.style,d,p,n,s)},formatter:B}),s("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:B(-1===t.indexOf(" ")?t+" "+t:t)}}),s("perspective",{defaultValue:"0px",prefix:!0}),s("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),s("transformStyle",{prefix:!0}),s("backfaceVisibility",{prefix:!0}),s("userSelect",{prefix:!0}),s("margin",{parser:Ot("marginTop,marginRight,marginBottom,marginLeft")}),s("padding",{parser:Ot("paddingTop,paddingRight,paddingBottom,paddingLeft")}),s("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,s){var o,a;return e=x<9?(o=t.currentStyle,a=x<8?" ":",",o="rect("+o.clipTop+a+o.clipRight+a+o.clipBottom+a+o.clipLeft+")",this.format(e).split(",").join(a)):(o=this.format(z(t,this.p,O,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,o,e,n,s)}}),s("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),s("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),s("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,s){var o=z(t,"borderTopWidth",O,!1,"0px"),e=this.format(e).split(" "),a=e[0].replace(rt,"");return"px"!==a&&(o=parseFloat(o)/w(t,"borderTopWidth",1,a)+a),this.parseComplex(t.style,this.format(o+" "+z(t,"borderTopStyle",O,!1,"solid")+" "+z(t,"borderTopColor",O,!1,"#000")),e.join(" "),n,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(U)||["#000"])[0]}}),s("borderWidth",{parser:Ot("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),s("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var t=t.style,o="cssFloat"in t?"cssFloat":"styleFloat";return new j(t,o,0,0,n,-1,i,!1,0,t[o],e)}}),s("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,s){var o=parseFloat(z(t,"opacity",O,!1,"1")),a=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),l&&1===o&&"hidden"===z(t,"visibility",O)&&0!==e&&(o=0),N?n=new j(a,"opacity",o,e-o,n):((n=new j(a,"opacity",100*o,100*(e-o),n)).xn1=l?1:0,a.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=s,n.setRatio=Lt),l&&((n=new j(a,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}}),function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(lt,"-$1").toLowerCase())):t.removeAttribute(e))});s("className",{parser:function(t,e,i,r,n,s,o){var a,l,h,u=t.getAttribute("class")||"",c=t.style.cssText;if((n=r._classNamePT=new j(t,i,0,0,n,2)).setRatio=Nt,n.pr=-11,d=!0,n.b=u,i=p(t,O),a=t._gsClassPT){for(l={},h=a.data;h;)l[h.p]=1,h=h._next;a.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:u.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),a=g(t,i,p(t),o,l),t.setAttribute("class",u),n.data=a.firstMPT,t.style.cssText!==c&&(t.style.cssText=c),n=n.xfirst=r.parse(t,a.difs,n,s)}});for(s("clearProps",{parser:function(t,e,i,r,n){return(n=new j(t,i,0,0,n,2)).setRatio=zt,n.e=e,n.pr=-10,n.data=r._tween,d=!0,n}}),t="bezier,throwProps,physicsProps,physics2D".split(","),G=t.length;G--;)Ut(t[G]);(t=M.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i,r){if(!t.nodeType)return!1;this._target=P=t,this._tween=i,this._vars=e,R=r,V=e.autoRound,d=!1,W=e.suffixMap||M.suffixMap,O=f(t),y=this._overwriteProps;var n,s,o,a,l,h,r=t.style;if(!b||""!==r.zIndex||"auto"!==(h=z(t,"zIndex",O))&&""!==h||this._addLazySet(r,"zIndex",0),"string"==typeof e&&(o=r.cssText,h=p(t,O),r.cssText=o+";"+e,h=g(t,h,p(t)).difs,!N&&st.test(e)&&(h.opacity=parseFloat(RegExp.$1)),e=h,r.cssText=o),e.className?this._firstPT=n=m.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=n=this.parse(t,e,null),this._transformType){for(h=3===this._transformType,H?q&&(b=!0,""!==r.zIndex||"auto"!==(e=z(t,"zIndex",O))&&""!==e||this._addLazySet(r,"zIndex",0),Z&&this._addLazySet(r,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))):r.zoom=1,s=n;s&&s._next;)s=s._next;e=new j(t,"transform",0,0,null,2),this._linkCSSP(e,null,s),e.setRatio=H?Qt:Ft,e.data=this._transform||Zt(t,O,!0),e.tween=i,e.pr=-1,y.pop()}if(d){for(;n;){for(l=n._next,s=o;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:a)?n._prev._next=n:o=n,(n._next=s)?s._prev=n:a=n,n=l}this._firstPT=o}return!0},t.parse=function(t,e,i,r){var n,s,o,a,l,h,u,c,p=t.style;for(n in e){if(l=e[n],a=m[n],"function"!=typeof l||a&&a.allowFunc||(l=l(R,P)),a)i=a.parse(t,l,n,this,i,r,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",f(t).getPropertyValue(n)+"",l+"",n,!1,n);continue}a=z(t,n,O)+"",u="string"==typeof l,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||u&&at.test(l)?(u||(l=(3<(l=St(l)).length?"rgba(":"rgb(")+l.join(",")+")"),i=Ct(p,n,a,l,!0,"transparent",i,0,r)):u&&ft.test(l)?i=Ct(p,n,a,l,!0,null,i,0,r):(h=(s=parseFloat(a))||0===s?a.substr((s+"").length):"",""!==a&&"auto"!==a||(h="width"===n||"height"===n?(s=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||f(t))[e]||0;if(t.getCTM&&qt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=Tt[e],s=n.length;for(i=i||f(t);-1<--s;)r=(r-=parseFloat(z(t,"padding"+n[s],i,!0))||0)-(parseFloat(z(t,"border"+n[s]+"Width",i,!0))||0);return r}(t,n,O),"px"):"left"===n||"top"===n?(s=xt(t,n,O),"px"):(s="opacity"!==n?0:1,"")),""===(u=(c=u&&"="===l.charAt(1))?(o=parseInt(l.charAt(0)+"1",10),l=l.substr(2),o*=parseFloat(l),l.replace(rt,"")):(o=parseFloat(l),u?l.replace(rt,""):""))&&(u=n in W?W[n]:h),l=o||0===o?(c?o+s:o)+u:e[n],h===u||""===u&&"lineHeight"!==n||(o||0===o)&&s&&(s=w(t,n,s,h),"%"===u?(s/=w(t,n,100,"%")/100,!0!==e.strictUnits&&(a=s+"%")):"em"===u||"rem"===u||"vw"===u||"vh"===u?s/=w(t,n,1,u):"px"!==u&&(o=w(t,n,o,u),u="px"),c&&(o||0===o)&&(l=o+s+u)),c&&(o+=s),!s&&0!==s||!o&&0!==o?void 0!==p[n]&&(l||l+""!="NaN"&&null!=l)?(i=new j(p,n,o||s||0,0,i,-1,n,!1,0,a,l)).xs0="none"!==l||"display"!==n&&-1===n.indexOf("Style")?l:a:_("invalid "+n+" tween value: "+e[n]):(i=new j(p,n,s,o-s,i,0,n,!1!==V&&("px"===u||"zIndex"===n),0,a,l)).xs0=u)}r&&i&&!i.plugin&&(i.plugin=r)}return i},t.setRatio=function(t){var e,i,r,n=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):e<1e-6&&-1e-6<e&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=n.r(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},t._enableTransforms=function(t){this._transform=this._transform||Zt(this._target,O,!0),this._transformType=this._transform.svg&&X||!t&&3!==this._transformType?2:3};function Jt(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}function te(t,e,i){var r,n,s,o;if(t.slice)for(n=t.length;-1<--n;)te(t[n],e,i);else for(n=(r=t.childNodes).length;-1<--n;)o=(s=r[n]).type,s.style&&(e.push(p(s)),i&&i.push(s)),1!==o&&9!==o&&11!==o||!s.childNodes.length||te(s,e,i)}t._addLazySet=function(t,e,i){t=this._firstPT=new j(t,e,0,0,this._firstPT,2);t.e=i,t.setRatio=Jt,t.data=this},t._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},t._kill=function(t){var e,i,r,n=t;if(t.autoAlpha||t.alpha){for(i in n={},t)n[i]=t[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(t.className&&(e=this._classNamePT)&&((r=e.xfirst)&&r._prev?this._linkCSSP(r._prev,e._next,r._prev._prev):r===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,r._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==i&&e.plugin._kill&&(e.plugin._kill(t),i=e.plugin),e=e._next;return o.prototype._kill.call(this,n)};return M.cascadeTo=function(t,e,i){var r,n,s,o,a=C.to(t,e,i),l=[a],h=[],u=[],c=[],p=C._internals.reservedProps;for(t=a._targets||a.target,te(t,h,c),a.render(e,!0,!0),te(t,u),a.render(0,!0,!0),a._enabled(!0),r=c.length;-1<--r;)if((n=g(c[r],h[r],u[r])).firstMPT){for(s in n=n.difs,i)p[s]&&(n[s]=i[s]);for(s in o={},n)o[s]=h[r][s];l.push(C.fromTo(c[r],e,o,n))}return l},o.activate([M]),M},!0),(t=(t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}})).prototype)._onInitAllProps=function(){var t,e,i,r,n=this._tween,s=n.vars.roundProps,o={},a=n._propLookup.roundProps;if("object"!=typeof s||s.push)for(i=(s="string"==typeof s?s.split(","):s).length;-1<--i;)o[s[i]]=Math.round;else for(r in s)o[r]=function(e){var i=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return(Math.round(t/e)*e*i|0)/i}}(s[r]);for(r in o)for(t=n._firstPT;t;){if(e=t._next,t.pg)t.t._mod(o);else if(t.n===r)if(2===t.f&&t.t)for(var l=t.t._firstPT,h=o[r];l;)l.f||l.blob||(l.m=h||Math.round),l=l._next;else this._add(t.t,r,t.s,t.c,o[r]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:n._firstPT===t&&(n._firstPT=e),t._next=t._prev=null,n._propLookup[r]=a;t=e}return!1},t._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||Math.round),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,r){var n,s;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(s=e[n])&&(s=s(r,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",s+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,r){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n,s,o,a,l,h=!0===e.useRadians?2*Math.PI:360;for(n in e)"useRadians"!==n&&(s=(l=((a="function"==typeof(a=e[n])?a(r,t):a)+"").split("_"))[0],o=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),a=(a=this.finals[n]="string"==typeof s&&"="===s.charAt(1)?o+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0)-o,l.length&&(-1!==(s=l.join("_")).indexOf("short")&&(a%=h)!==a%(h/2)&&(a=a<0?a+h:a-h),-1!==s.indexOf("_cw")&&a<0?a=(a+9999999999*h)%h-(a/h|0)*h:-1!==s.indexOf("ccw")&&0<a&&(a=(a-9999999999*h)%h-(a/h|0)*h)),(1e-6<a||a<-1e-6)&&(this._addTween(t,n,o,o+a,n),this._overwriteProps.push(n)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(_){function t(t,e){var i=(t=u("easing."+t,function(){},!0)).prototype=new _;return i.constructor=t,i.getRatio=e,t}function e(t,e,i,r,n){return e=u("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0),c(e,t),e}function g(t,e,i){this.t=t,this.v=e,i&&(((this.next=i).prev=this).c=i.v-e,this.gap=i.t-t)}function i(t,e){var i=u("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0);return(t=i.prototype=new _).constructor=i,t.getRatio=e,t.config=function(t){return new i(t)},i}var r,n,s,o=_gsScope.GreenSockGlobals||_gsScope,a=o.com.greensock,l=2*Math.PI,h=Math.PI/2,u=a._class,c=_.register||function(){},a=e("Back",i("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),i("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),i("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),p=u("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:1<t&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),d=p.prototype=new _;return d.constructor=p,d.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},p.ease=new p(.7,.7),d.config=p.config=function(t,e,i){return new p(t,e,i)},(d=(r=u("easing.SteppedEase",function(t,e){this._p1=1/(t=t||1),this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new _).constructor=r,d.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},d.config=r.config=function(t,e){return new r(t,e)},(d=(n=u("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0)).prototype=new _).constructor=n,d.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},d.config=n.config=function(t,e,i){return new n(t,e,i)},(d=(s=u("easing.RoughEase",function(t){for(var e,i,r,n,s,o,a=(t=t||{}).taper||"none",l=[],h=0,u=0|(t.points||20),c=u,p=!1!==t.randomize,d=!0===t.clamp,f=t.template instanceof _?t.template:null,m="number"==typeof t.strength?.4*t.strength:.4;-1<--c;)e=p?Math.random():1/u*c,i=f?f.getRatio(e):e,r="none"===a?m:"out"===a?(n=1-e)*n*m:"in"===a?e*e*m:e<.5?(n=2*e)*n*.5*m:(n=2*(1-e))*n*.5*m,p?i+=Math.random()*r-.5*r:c%2?i+=.5*r:i-=.5*r,d&&(1<i?i=1:i<0&&(i=0)),l[h++]={x:e,y:i};for(l.sort(function(t,e){return t.x-e.x}),o=new g(1,1,null),c=u;-1<--c;)o=new g((s=l[c]).x,s.y,o);this._prev=new g(0,0,0!==o.t?o:o.next)},!0)).prototype=new _).constructor=s,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},d.config=function(t){return new s(t)},s.ease=new s,e("Bounce",t("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),t("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),t("BounceInOut",function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(d=function(t,e,i){var r=u("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/l*(Math.asin(1/this._p1)||0),this._p2=l/this._p2},!0),t=r.prototype=new _;return t.constructor=r,t.getRatio=e,t.config=function(t,e){return new r(t,e)},r})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),d("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2))},.3),d("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--t)*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*h)}),t("SineIn",function(t){return 1-Math.cos(t*h)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),u("easing.EaseLookup",{find:function(t){return _.map[t]}},!0),c(o.SlowMo,"SlowMo","ease,"),c(s,"RoughEase","ease,"),c(r,"SteppedEase","ease,"),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(m,p){"use strict";var d={},f=m.document,_=m.GreenSockGlobals=m.GreenSockGlobals||m,t=_[p];if(t)"undefined"!=typeof module&&module.exports&&(module.exports=t);else{var g,e,L,N=function(t){for(var e=t.split("."),i=_,r=0;r<e.length;r++)i[e[r]]=i=i[e[r]]||{};return i},c=N("com.greensock"),v=1e-8,z=function(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e},B=function(){},y=(e=Object.prototype.toString,L=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&e.call(t)===L)}),b={},U=function(a,l,h,u){this.sc=b[a]?b[a].sc:[],(b[a]=this).gsClass=null,this.func=h;var c=[];this.check=function(t){for(var e,i,r,n,s=l.length,o=s;-1<--s;)(e=b[l[s]]||new U(l[s],[])).gsClass?(c[s]=e.gsClass,o--):t&&e.sc.push(this);if(0===o&&h){if(r=(i=("com.greensock."+a).split(".")).pop(),n=N(i.join("."))[r]=this.gsClass=h.apply(h,c),u)if(_[r]=d[r]=n,"undefined"!=typeof module&&module.exports)if(a===p)for(s in module.exports=d[p]=n,d)n[s]=d[s];else d[p]&&(d[p][r]=n);else"function"==typeof define&&define.amd&&define((m.GreenSockAMDPath?m.GreenSockAMDPath+"/":"")+a.split(".").pop(),[],function(){return n});for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},r=m._gsDefine=function(t,e,i,r){return new U(t,e,i,r)},x=c._class=function(t,e,i){return e=e||function(){},r(t,[],function(){return e},i),e},j=(r.globals=_,[0,0,1,1]),T=x("easing.Ease",function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?j.concat(e):j},!0),w=T.map={},i=T.register=function(t,e,i,r){for(var n,s,o,a,l=e.split(","),h=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");-1<--h;)for(s=l[h],n=r?x("easing."+s,null,!0):c.easing[s]||{},o=u.length;-1<--o;)a=u[o],w[s+"."+a]=w[a+s]=n[a]=t.getRatio?t:t[a]||new t},n=T.prototype;for(n._calcEnd=!1,n.getRatio=function(t){var e,i,r;return this._func?(this._params[0]=t,this._func.apply(null,this._params)):(r=1===(e=this._type)?1-t:2===e?t:t<.5?2*t:2*(1-t),1===(i=this._power)?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:t<.5?r/2:1-r/2)},o=(s=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--o;)n=s[o]+",Power"+o,i(new T(null,null,1,o),n,"easeOut",!0),i(new T(null,null,2,o),n,"easeIn"+(0===o?",easeNone":"")),i(new T(null,null,3,o),n,"easeInOut");w.linear=c.easing.Linear.easeIn,w.swing=c.easing.Quad.easeInOut;for(var s,G=x("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this}),E=((n=G.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,o,a=this._listeners[t],l=0;for(this!==P||g||P.wake(),null==a&&(this._listeners[t]=a=[]),o=a.length;-1<--o;)(s=a[o]).c===e&&s.s===i?a.splice(o,1):0===l&&s.pr<n&&(l=o+1);a.splice(l,0,{c:e,s:i,up:r,pr:n})},n.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;-1<--i;)if(r[i].c===e)return void r.splice(i,1)},n.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(1<(e=n.length)&&(n=n.slice(0)),i=this._eventTarget;-1<--e;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))},m.requestAnimationFrame),S=m.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},O=A(),o=(s=["ms","moz","webkit","o"]).length;-1<--o&&!E;)E=m[s[o]+"RequestAnimationFrame"],S=m[s[o]+"CancelAnimationFrame"]||m[s[o]+"CancelRequestAnimationFrame"];x("Ticker",function(t,e){var r,n,s,o,a,l=this,h=A(),i=!(!1===e||!E)&&"auto",u=500,c=33,p="tick",d=function(t){var e,i=A()-O;u<i&&(h+=i-c),O+=i,l.time=(O-h)/1e3,i=l.time-a,(!r||0<i||!0===t)&&(l.frame++,a+=i+(o<=i?.004:o-i),e=!0),!0!==t&&(s=n(d)),e&&l.dispatchEvent(p)};G.call(l),l.time=l.frame=0,l.tick=function(){d(!0)},l.lagSmoothing=function(t,e){if(!arguments.length)return u<1e8;u=t||1e8,c=Math.min(e,u,0)},l.sleep=function(){null!=s&&((i&&S?S:clearTimeout)(s),n=B,s=null,l===P&&(g=!1))},l.wake=function(t){null!==s?l.sleep():t?h+=-O+(O=A()):10<l.frame&&(O=A()-u+5),n=0===r?B:i&&E?E:function(t){return setTimeout(t,1e3*(a-l.time)+1|0)},l===P&&(g=!0),d(2)},l.fps=function(t){if(!arguments.length)return r;o=1/((r=t)||60),a=this.time+o,l.wake()},l.useRAF=function(t){if(!arguments.length)return i;l.sleep(),i=t,l.fps(r)},l.fps(t),setTimeout(function(){"auto"===i&&l.frame<5&&"hidden"!==(f||{}).visibilityState&&l.useRAF(!1)},1500)}),(n=c.Ticker.prototype=new c.events.EventDispatcher).constructor=c.Ticker;var a=x("core.Animation",function(t,e){this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,u&&(g||P.wake(),(t=this.vars.useFrames?h:u).add(this,t._time),this.vars.paused&&this.paused(!0))}),P=a.ticker=new c.Ticker,X=((n=a.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()-O&&("hidden"!==(f||{}).visibilityState||!P.lagSmoothing())&&P.wake();var t=setTimeout(X,2e3);t.unref&&t.unref()}),t=(X(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(t,e,i){},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 t=this._timeline,e=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(t=t.rawTime(!0))>=e&&t<e+this.totalDuration()/this._timeScale-v},n._enabled=function(t,e){return g||P.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(t,e){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},n._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},n.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=y(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(g||P.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(r<t&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/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===t&&0!==this._duration||(M.length&&I(),this.render(t,e,!1),M.length&&I())}return this},n.progress=n.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||v,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){var e,i,r;return arguments.length?(e=this._timeline,t!=this._paused&&e&&(g||t||P.wake(),r=(i=e.rawTime())-this._pauseTime,!t&&e.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!=r&&this._initted&&this.duration()&&(i=e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,this.render(i,i===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this):this._paused},x("core.SimpleTimeline",function(t){a.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0})),R=((n=t.prototype=new a).constructor=t,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e,i,r){var n,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(s=t._startTime;n&&n._startTime>s;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},n.rawTime=function(){return g||P.wake(),this._totalTime},x("TweenLite",function(t,e,i){if(a.call(this,e,i),this.render=R.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&R.selector(t)||t;var r,n,s,i=t.jquery||t.length&&t!==m&&t[0]&&(t[0]===m||t[0].nodeType&&t[0].style&&!t.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?tt[R.defaultOverwrite]:"number"==typeof o?o>>0:tt[o],(i||t instanceof Array||t.push&&y(t))&&"number"!=typeof t[0])for(this._targets=s=z(t),this._propLookup=[],this._siblings=[],r=0;r<s.length;r++)(n=s[r])?"string"==typeof n?"string"==typeof(n=s[r--]=R.selector(n))&&s.splice(r+1,1):n.length&&n!==m&&n[0]&&(n[0]===m||n[0].nodeType&&n[0].style&&!n.nodeType)?(s.splice(r--,1),this._targets=s=s.concat(z(n))):(this._siblings[r]=D(n,this,!1),1===o&&1<this._siblings[r].length&&rt(n,this,null,1,this._siblings[r])):s.splice(r--,1);else this._propLookup={},this._siblings=D(t,this,!1),1===o&&1<this._siblings.length&&rt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-v,this.render(Math.min(0,-this._delay)))},!0)),C=function(t){return t&&t.length&&t!==m&&t[0]&&(t[0]===m||t[0].nodeType&&t[0].style&&!t.nodeType)},M=((n=R.prototype=new a).constructor=R,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,R.version="2.1.3",R.defaultEase=n._ease=new T(null,null,1,1),R.defaultOverwrite="auto",R.ticker=P,R.autoSleep=120,R.lagSmoothing=function(t,e){P.lagSmoothing(t,e)},R.selector=m.$||m.jQuery||function(t){var e=m.$||m.jQuery;return e?(R.selector=e)(t):(f=f||m.document)?f.querySelectorAll?f.querySelectorAll(t):f.getElementById("#"===t.charAt(0)?t.substr(1):t):t},[]),H={},Y=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,W=/[\+-]=-?[\.\d]/,V=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&-1e-6<e&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},q=function(t){return(1e3*t|0)/1e3+""},K=function(t,e,i,r){var n,s,o,a,l,h,u=[],c=0,p="",d=0;for(u.start=t,u.end=e,t=u[0]=t+"",e=u[1]=e+"",i&&(i(u),t=u[0],e=u[1]),u.length=0,n=t.match(Y)||[],s=e.match(Y)||[],r&&(r._next=null,r.blob=1,u._firstPT=u._applyPT=r),a=s.length,o=0;o<a;o++)h=s[o],p+=(l=e.substr(c,e.indexOf(h,c)-c))||!o?l:",",c+=l.length,d?d=(d+1)%5:"rgba("===l.substr(-5)&&(d=1),h===n[o]||n.length<=o?p+=h:(p&&(u.push(p),p=""),l=parseFloat(n[o]),u.push(l),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:l,c:("="===h.charAt(1)?parseInt(h.charAt(0)+"1",10)*parseFloat(h.substr(2)):parseFloat(h)-l)||0,f:0,m:d&&d<4?Math.round:q}),c+=h.length;return(p+=e.substr(c))&&u.push(p),u.setRatio=V,W.test(e)&&(u.end=null),u},Z=function(t,e,i,r,n,s,o,a,l){"function"==typeof r&&(r=r(l||0,t));var l=typeof t[e],h="function"!=l?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),i="get"!==i?i:h?o?t[h](o):t[h]():t[e],h="string"==typeof r&&"="===r.charAt(1),t={t:t,p:e,s:i,f:"function"==l,pg:0,n:n||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:h?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-i||0};if("number"==typeof i&&("number"==typeof r||h)||(o||isNaN(i)||!h&&isNaN(r)||"boolean"==typeof i||"boolean"==typeof r?(t.fp=o,t={t:K(i,h?parseFloat(t.s)+t.c+(t.s+"").replace(/[0-9\-\.]/g,""):r,a||R.defaultStringFilter,t),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(t.s=parseFloat(i),h||(t.c=parseFloat(r)-t.s||0))),t.c)return(t._next=this._firstPT)&&(t._next._prev=t),this._firstPT=t},Q=R._internals={isArray:y,isSelector:C,lazyTweens:M,blobDif:K},k=R._plugins={},l=Q.tweenLookup={},$=0,J=Q.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},tt={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},h=a._rootFramesTimeline=new t,u=a._rootTimeline=new t,et=30,I=Q.lazyRender=function(){var t,e,i=M.length;for(H={},t=0;t<i;t++)(e=M[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);M.length=0},D=(u._startTime=P.time,h._startTime=P.frame,u._active=h._active=!0,setTimeout(I,1),a._updateRoot=R.render=function(){var t,e,i;if(M.length&&I(),u.render((P.time-u._startTime)*u._timeScale,!1,!1),h.render((P.frame-h._startTime)*h._timeScale,!1,!1),M.length&&I(),P.frame>=et){for(i in et=P.frame+(parseInt(R.autoSleep,10)||120),l){for(t=(e=l[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete l[i]}if((!(i=u._first)||i._paused)&&R.autoSleep&&!h._first&&1===P._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||P.sleep()}}},P.addEventListener("tick",a._updateRoot),function(t,e,i){var r,n,s=t._gsTweenID;if(l[s||(t._gsTweenID=s="t"+$++)]||(l[s]={target:t,tweens:[]}),e&&((r=l[s].tweens)[n=r.length]=e,i))for(;-1<--n;)r[n]===e&&r.splice(n,1);return l[s].tweens}),it=function(t,e,i,r){var n,s,o=t.vars.onOverwrite;return o&&(n=o(t,e,i,r)),(o=R.onOverwrite)&&(s=o(t,e,i,r)),!1!==n&&!1!==s},rt=function(t,e,i,r,n){var s,o,a;if(1===r||4<=r){for(a=n.length,d=0;d<a;d++)if((o=n[d])!==e)o._gc||o._kill(null,t,e)&&(s=!0);else if(5===r)break}else{for(var l,h=e._startTime+v,u=[],c=0,p=0===e._duration,d=n.length;-1<--d;)(o=n[d])===e||o._gc||o._paused||(o._timeline!==e._timeline?(l=l||nt(e,0,p),0===nt(o,l,p)&&(u[c++]=o)):o._startTime<=h&&o._startTime+o.totalDuration()/o._timeScale>h&&((p||!o._initted)&&h-o._startTime<=2e-8||(u[c++]=o)));for(d=c;-1<--d;)a=(o=u[d])._firstPT,2===r&&o._kill(i,t,e)&&(s=!0),(2!==r||!o._firstPT&&o._initted&&a)&&(2===r||it(o,e))&&o._enabled(!1,!1)&&(s=!0)}return s},nt=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return e<(s/=n)?s-e:i&&s===e||!t._initted&&s-e<2e-8?v:(s+=t.totalDuration()/t._timeScale/n)>e+v?0:s-e-v},F=(n._init=function(){var t,e,i,r,n,s,o=this.vars,a=this._overwrittenProps,l=this._duration,h=!!o.immediateRender,u=o.ease,c=this._startAt;if(o.startAt){for(r in c&&(c.render(-1,!0),c.kill()),n={},o.startAt)n[r]=o.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=h&&!1!==o.lazy,n.startAt=n.delay=null,n.onUpdate=o.onUpdate,n.onUpdateParams=o.onUpdateParams,n.onUpdateScope=o.onUpdateScope||o.callbackScope||this,this._startAt=R.to(this.target||{},0,n),h)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(o.runBackwards&&0!==l)if(c)c.render(-1,!0),c.kill(),this._startAt=null;else{for(r in 0!==this._time&&(h=!1),i={},o)J[r]&&"autoCSS"!==r||(i[r]=o[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==o.lazy,i.immediateRender=h,this._startAt=R.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof T?u:"function"==typeof u?new T(u,o.easeParams):w[u]||R.defaultEase:R.defaultEase,o.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,o.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;t<s;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(e&&R._onPluginEvent("_onInitAllProps",this),!a||this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1),o.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=o.onUpdate,this._initted=!0},n._initProps=function(t,e,i,r,n){var s,o,a,l,h,u;if(null==t)return!1;if(H[t._gsTweenID]&&I(),!this.vars.css&&t.style&&t!==m&&t.nodeType&&k.css&&!1!==this.vars.autoCSS){var c,p=this.vars,d=t,f={};for(c in p)J[c]||c in d&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!k[c]||k[c]&&k[c]._autoCSS)||(f[c]=p[c],delete p[c]);p.css=f}for(s in this.vars)if(u=this.vars[s],J[s])u&&(u instanceof Array||u.push&&y(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(k[s]&&(l=new k[s])._onInitTween(t,this.vars[s],this,n)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority,m:0},o=l._overwriteProps.length;-1<--o;)e[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else e[s]=Z.call(this,t,s,"get",u,s,0,null,this.vars.stringFilter,n);return r&&this._kill(r,t)?this._initProps(t,e,i,r,n):1<this._overwrite&&this._firstPT&&1<i.length&&rt(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(H[t._gsTweenID]=!0),a)},n.render=function(t,e,i){var r,n,s,o,a,l,h,u=this,c=u._time,p=u._duration,d=u._rawPrevTime;if(p-v<=t&&0<=t?(u._totalTime=u._time=p,u.ratio=u._ease._calcEnd?u._ease.getRatio(1):1,u._reversed||(r=!0,n="onComplete",i=i||u._timeline.autoRemoveChildren),0!==p||!u._initted&&u.vars.lazy&&!i||(u._startTime===u._timeline._duration&&(t=0),(d<0||t<=0&&-v<=t||d===v&&"isPause"!==u.data)&&d!==t&&(i=!0,v<d&&(n="onReverseComplete")),u._rawPrevTime=o=!e||t||d===t?t:v)):t<v?(u._totalTime=u._time=0,u.ratio=u._ease._calcEnd?u._ease.getRatio(0):0,(0!==c||0===p&&0<d)&&(n="onReverseComplete",r=u._reversed),-v<t?t=0:t<0&&(u._active=!1,0!==p||!u._initted&&u.vars.lazy&&!i||(0<=d&&(d!==v||"isPause"!==u.data)&&(i=!0),u._rawPrevTime=o=!e||t||d===t?t:v)),(!u._initted||u._startAt&&u._startAt.progress())&&(i=!0)):(u._totalTime=u._time=t,u._easeType?(a=t/p,(1===(l=u._easeType)||3===l&&.5<=a)&&(a=1-a),3===l&&(a*=2),1===(h=u._easePower)?a*=a:2===h?a*=a*a:3===h?a*=a*a*a:4===h&&(a*=a*a*a*a),u.ratio=1===l?1-a:2===l?a:t/p<.5?a/2:1-a/2):u.ratio=u._ease.getRatio(t/p)),u._time!==c||i){if(!u._initted){if(u._init(),!u._initted||u._gc)return;if(!i&&u._firstPT&&(!1!==u.vars.lazy&&u._duration||u.vars.lazy&&!u._duration))return u._time=u._totalTime=c,u._rawPrevTime=d,M.push(u),void(u._lazy=[t,e]);u._time&&!r?u.ratio=u._ease.getRatio(u._time/p):r&&u._ease._calcEnd&&(u.ratio=u._ease.getRatio(0===u._time?0:1))}for(!1!==u._lazy&&(u._lazy=!1),u._active||!u._paused&&u._time!==c&&0<=t&&(u._active=!0),0===c&&(u._startAt&&(0<=t?u._startAt.render(t,!0,i):n=n||"_dummyGS"),!u.vars.onStart||0===u._time&&0!==p||e||u._callback("onStart")),s=u._firstPT;s;)s.f?s.t[s.p](s.c*u.ratio+s.s):s.t[s.p]=s.c*u.ratio+s.s,s=s._next;u._onUpdate&&(t<0&&u._startAt&&-1e-4!==t&&u._startAt.render(t,!0,i),e||(u._time!==c||r||i)&&u._callback("onUpdate")),!n||u._gc&&!i||(t<0&&u._startAt&&!u._onUpdate&&-1e-4!==t&&u._startAt.render(t,!0,i),r&&(u._timeline.autoRemoveChildren&&u._enabled(!1,!1),u._active=!1),!e&&u.vars[n]&&u._callback(n),0===p&&u._rawPrevTime===v&&o!==v&&(u._rawPrevTime=0))}},n._kill=function(t,e,i){if(null==(t="all"===t?null:t)&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:R.selector(e)||e;var r,n,s,o,a,l,h,u,c,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,d=this._firstPT;if((y(e)||C(e))&&"number"!=typeof e[0])for(r=e.length;-1<--r;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;-1<--r;)if(e===this._targets[r]){a=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(h=t||a,u=t!==n&&"all"!==n&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(R.onOverwrite||this.vars.onOverwrite)){for(s in h)a[s]&&(c=c||[]).push(s);if((c||!t)&&!it(this,i,e,c))return!1}for(s in h)(o=a[s])&&(p&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(h)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),u&&(n[s]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return l},n.invalidate=function(){this._notifyPluginsOfEnabled&&R._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],a.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-v,this.render(t,!1,!1!==this.vars.lazy)),this},n._enabled=function(t,e){if(g||P.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=D(r[i],this,!0);else this._siblings=D(this.target,this,!0)}return a.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&R._onPluginEvent(t?"_onEnable":"_onDisable",this)},R.to=function(t,e,i){return new R(t,e,i)},R.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new R(t,e,i)},R.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new R(t,e,r)},R.delayedCall=function(t,e,i,r,n){return new R(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},R.set=function(t,e){return new R(t,0,e)},R.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"==typeof t&&R.selector(t)||t,(y(t)||C(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];-1<--i;)r=r.concat(R.getTweensOf(t[i],e));for(i=r.length;-1<--i;)for(s=r[i],n=i;-1<--n;)s===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(i=(r=D(t).concat()).length;-1<--i;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},R.killTweensOf=R.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=R.getTweensOf(t,e),n=r.length;-1<--n;)r[n]._kill(i,t)},x("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=F.prototype},!0));if(n=F.prototype,F.version="1.19.0",F.API=2,n._firstPT=null,n._addTween=Z,n.setRatio=V,n._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;-1<--e;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},n._mod=n._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},R._onPluginEvent=function(t,e){var i,r,n,s,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:s)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:s=a,a=o}a=e._firstPT=n}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},F.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===F.API&&(k[(new t[e])._propName]=t[e]);return!0},r.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},o=x("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){F.call(this,i,r),this._overwriteProps=n||[]},!0===t.global),a=o.prototype=new F(i);for(e in(a.constructor=o).API=t.API,s)"function"==typeof t[e]&&(a[s[e]]=t[e]);return o.version=t.version,F.activate([o]),o},s=m._gsQueue){for(o=0;o<s.length;o++)s[o]();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"),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,a,t){function i(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0}var O=1e-8,r=a._internals,P=r.lazyTweens,R=r.lazyRender,l=_gsScope._gsDefine.globals,h=new t(null,null,1,0),r=i.prototype=new e;return r.constructor=i,r.kill()._gc=!1,i.version="2.1.3",r.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},r.addCallback=function(t,e,i,r){return this.add(a.delayedCall(0,t,i,r),e)},r.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);-1<--r;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},r.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},r.tweenTo=function(t,e){e=e||{};var i,r,n,s={ease:h,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=e.repeat&&l.TweenMax||a;for(r in e)s[r]=e[r];return s.time=this._parseTimeOrLabel(t),i=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,n=new o(this,i,s),s.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||i!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||n,e.onStartParams||[])},n},r.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;e=this.tweenTo(e,i);return e.isFromTo=1,e.duration(Math.abs(e.vars.time-t)/this._timeScale||.001)},r.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,h,u,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._duration,m=c._totalTime,_=c._startTime,g=c._timeScale,v=c._rawPrevTime,y=c._paused,b=c._cycle;if(p!==c._time&&(t+=c._time-p),d-O<=t&&0<=t)c._locked||(c._totalTime=d,c._cycle=c._repeat),c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(t<=0&&-O<=t||v<0||v===O)&&v!==t&&c._first&&(a=!0,O<v&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:O,c._yoyo&&1&c._cycle?c._time=t=0:t=(c._time=f)+1e-4;else if(t<O)if(c._locked||(c._totalTime=c._cycle=0),c._time=0,-O<t&&(t=0),(0!==p||0===f&&v!==O&&(0<v||t<0&&0<=v)&&!c._locked)&&(o="onReverseComplete",n=c._reversed),t<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=v&&c._first&&(a=!0),c._rawPrevTime=t;else{if(c._rawPrevTime=f||!e||t||c._rawPrevTime===t?t:O,0===t&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,c._initted||(a=!0)}else 0===f&&v<0&&(a=!0),c._time=c._rawPrevTime=t,c._locked||(c._totalTime=t,0!==c._repeat&&(x=f+c._repeatDelay,c._cycle=c._totalTime/x>>0,c._cycle&&c._cycle===c._totalTime/x&&m<=t&&c._cycle--,c._time=c._totalTime-c._cycle*x,c._yoyo&&1&c._cycle&&(c._time=f-c._time),c._time>f?t=(c._time=f)+1e-4:c._time<0?c._time=t=0:t=c._time));if(c._hasPause&&!c._forcingPlayhead&&!e){if(p<(t=c._time)||c._repeat&&b!==c._cycle)for(r=c._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(u=c._startTime+(c._reversed?c._duration-l._startTime:l._startTime)/c._timeScale,l._startTime<f&&(c._time=c._rawPrevTime=t=l._startTime,c._totalTime=t+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*f,c._cycle<b?x=!x:c._totalTime+=f,c._time=p,c._rawPrevTime=0===f?v-1e-4:v,c._cycle=b,c._locked=!0,c.render(p=x?0:f,e,0===f),e||c._gc||c.vars.onRepeat&&(c._cycle=E,c._locked=!1,c._callback("onRepeat")),p!==c._time)return;if(T&&(c._cycle=b,c._locked=!0,c.render(p=x?f+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!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._totalTime!==m&&0<t&&(c._active=!0),0!==m||!c.vars.onStart||0===c._totalTime&&c._totalDuration||e||c._callback("onStart"),p<=(h=c._time))for(r=c._first;r&&(s=r._next,h===c._time&&(!c._paused||y));)(r._active||r._startTime<=c._time&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=u),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=c._last;r&&(s=r._prev,h===c._time&&(!c._paused||y));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,c.pause(),c._pauseTime=u}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}!c._onUpdate||e||(P.length&&R(),c._callback("onUpdate")),!o||c._locked||c._gc||_!==c._startTime&&g===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(P.length&&R(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!e&&c.vars[o]&&c._callback(o))}else m!==c._totalTime&&c._onUpdate&&!e&&c._callback("onUpdate")},r.getActive=function(t,e,i){for(var r,n=[],s=this.getChildren(t||null==t,e||null==t,!!i),o=0,a=s.length,l=0;l<a;l++)(r=s[l]).isActive()&&(n[o++]=r);return n},r.getLabelAfter=function(t){t||0!==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length,r=0;r<i;r++)if(e[r].time>t)return e[r].name;return null},r.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].time<t)return e[i].name;return null},r.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},r.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},r.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},r.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},r.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},r.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},r.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},r.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+O)},i},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(c,p,f){function m(t){p.call(this,t);var e,i,r=this.vars;for(i in this._labels={},this.autoRemoveChildren=!!r.autoRemoveChildren,this.smoothChildTiming=!!r.smoothChildTiming,this._sortChildren=!0,this._onUpdate=r.onUpdate,r)e=r[i],d(e)&&-1!==e.join("").indexOf("{self}")&&(r[i]=this._swapSelfInParams(e));d(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)}function _(t){var e,i={};for(e in t)i[e]=t[e];return i}function g(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function h(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e}function v(t){var d,f,m,_,g,v,y,b;return"function"==typeof t?t:(f=(d="object"==typeof t?t:{each:t}).ease,m=d.from||0,_=d.base||0,g={},v=isNaN(m),y=d.axis,b={center:.5,end:1}[m]||0,function(t,e,i){var r,n,s,o,a,l,h,u,c=(i||d).length,p=g[c];if(!p){if(!(u="auto"===d.grid?0:(d.grid||[1/0])[0])){for(l=-1/0;l<(l=i[u++].getBoundingClientRect().left)&&u<c;);u--}for(p=g[c]=[],r=v?Math.min(u,c)*b-.5:m%u,n=v?c*b/u-.5:m/u|0,h=1/(l=0),a=0;a<c;a++)o=a%u-r,s=n-(a/u|0),p[a]=o=y?Math.abs("y"===y?s:o):Math.sqrt(o*o+s*s),l<o&&(l=o),o<h&&(h=o);p.max=l-h,p.min=h,p.v=c=d.amount||d.each*(c<u?c-1:y?"y"===y?c/u:u:Math.max(u,c/u))||0,p.b=c<0?_-c:_}return c=(p[t]-p.min)/p.max,p.b+(f?f.getRatio(c):c)*p.v})}var t=f._internals,e=m._internals={},y=t.isSelector,d=t.isArray,b=t.lazyTweens,x=t.lazyRender,o=_gsScope._gsDefine.globals,n=e.pauseCallback=function(){},t=m.prototype=new p;return m.version="2.1.3",m.distribute=v,t.constructor=m,t.kill()._gc=t._forcingPlayhead=t._hasPause=!1,t.to=function(t,e,i,r){var n=i.repeat&&o.TweenMax||f;return e?this.add(new n(t,e,i),r):this.set(t,i,r)},t.from=function(t,e,i,r){return this.add((i.repeat&&o.TweenMax||f).from(t,e,h(0,i)),r)},t.fromTo=function(t,e,i,r,n){var s=r.repeat&&o.TweenMax||f;return r=h(0,r,i),e?this.add(s.fromTo(t,e,i,r),n):this.set(t,r,n)},t.staggerTo=function(t,e,i,r,n,s,o,a){var l,h,u=new m({onComplete:s,onCompleteParams:o,callbackScope:a,smoothChildTiming:this.smoothChildTiming}),c=v(i.stagger||r),p=i.startAt,d=i.cycle;for("string"==typeof t&&(t=f.selector(t)||t),y(t=t||[])&&(t=function(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}(t)),h=0;h<t.length;h++)l=_(i),p&&(l.startAt=_(p),p.cycle&&g(l.startAt,t,h)),d&&(g(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),u.to(t[h],e,l,c(h,t[h],t));return this.add(u,n)},t.staggerFrom=function(t,e,i,r,n,s,o,a){return i.runBackwards=!0,this.staggerTo(t,e,h(0,i),r,n,s,o,a)},t.staggerFromTo=function(t,e,i,r,n,s,o,a,l){return r.startAt=i,this.staggerTo(t,e,h(0,r,i),n,s,o,a,l)},t.call=function(t,e,i,r){return this.add(f.delayedCall(0,t,e,i),r)},t.set=function(t,e,i){return this.add(new f(t,0,h(0,e,null,!0)),i)},m.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,r,n,s,o=new m(t),t=o._timeline;for(null==e&&(e=!0),t._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=t._time,n=t._first;n;)s=n._next,e&&n instanceof f&&n.target===n.vars.onComplete||((r=n._startTime-n._delay)<0&&(i=1),o.add(n,r)),n=s;return t.add(o,0),i&&o.totalDuration(),o},t.add=function(t,e,i,r){var n,s,o,a,l,h,u=this;if("number"!=typeof e&&(e=u._parseTimeOrLabel(e,0,!0,t)),!(t instanceof c)){if(t instanceof Array||t&&t.push&&d(t)){for(i=i||"normal",r=r||0,n=e,s=t.length,o=0;o<s;o++)d(a=t[o])&&(a=new m({tweens:a})),u.add(a,n),"string"!=typeof a&&"function"!=typeof a&&("sequence"===i?n=a._startTime+a.totalDuration()/a._timeScale:"start"===i&&(a._startTime-=a.delay())),n+=r;return u._uncache(!0)}if("string"==typeof t)return u.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=f.delayedCall(0,t)}if(p.prototype.add.call(u,t,e),(t._time||!t._duration&&t._initted)&&(n=(u.rawTime()-t._startTime)*t._timeScale,(!t._duration||1e-5<Math.abs(Math.max(0,Math.min(t.totalDuration(),n)))-t._totalTime)&&t.render(n,!1,!1)),(u._gc||u._time===u._duration)&&!u._paused&&u._duration<u.duration())for(h=(l=u).rawTime()>t._startTime;l._timeline;)h&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return u},t.remove=function(t){var e;if(t instanceof c)return this._remove(t,!1),e=t._timeline=t.vars.useFrames?c._rootFramesTimeline:c._rootTimeline,t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this;if(t instanceof Array||t&&t.push&&d(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},t._remove=function(t,e){return p.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},t.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},t.insert=t.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},t.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},t.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},t.addPause=function(t,e,i,r){i=f.delayedCall(0,n,i,r||this);return i.vars.onComplete=i.vars.onReverseComplete=e,i.data="isPause",this._hasPause=!0,this.add(i,t)},t.removeLabel=function(t){return delete this._labels[t],this},t.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},t._parseTimeOrLabel=function(t,e,i,r){var n,s;if(r instanceof c&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&d(r)))for(s=r.length;-1<--s;)r[s]instanceof c&&r[s].timeline===this&&this.remove(r[s]);if(n="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-n:0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(-1===(s=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=n+e:e:this._labels[t]+e;e=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=1<s?this._parseTimeOrLabel(t.substr(0,s-1),0,i):n}return Number(t)+e},t.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},t.stop=function(){return this.paused(!0)},t.gotoAndPlay=function(t,e){return this.play(t,e)},t.gotoAndStop=function(t,e){return this.pause(t,e)},t.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,h,u,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._startTime,m=c._timeScale,_=c._paused;if(p!==c._time&&(t+=c._time-p),c._hasPause&&!c._forcingPlayhead&&!e){if(p<t)for(r=c._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(c._time=c._totalTime=t=l._startTime,u=c._startTime+(c._reversed?c._duration-t:t)/c._timeScale)}if(d-1e-8<=t&&0<=t)c._totalTime=c._time=d,c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(t<=0&&-1e-8<=t||c._rawPrevTime<0||1e-8===c._rawPrevTime)&&c._rawPrevTime!==t&&c._first&&(a=!0,1e-8<c._rawPrevTime&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:1e-8,t=d+1e-4;else if(t<1e-8)if(-1e-8<t&&(t=0),((c._totalTime=c._time=0)!==p||0===c._duration&&1e-8!==c._rawPrevTime&&(0<c._rawPrevTime||t<0&&0<=c._rawPrevTime))&&(o="onReverseComplete",n=c._reversed),t<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=c._rawPrevTime&&c._first&&(a=!0),c._rawPrevTime=t;else{if(c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:1e-8,0===t&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,c._initted||(a=!0)}else c._totalTime=c._time=c._rawPrevTime=t;if(c._time!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._time!==p&&0<t&&(c._active=!0),0!==p||!c.vars.onStart||0===c._time&&c._duration||e||c._callback("onStart"),p<=(h=c._time))for(r=c._first;r&&(s=r._next,h===c._time&&(!c._paused||_));)(r._active||r._startTime<=h&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=u),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=c._last;r&&(s=r._prev,h===c._time&&(!c._paused||_));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,c.pause(),c._pauseTime=u}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}!c._onUpdate||e||(b.length&&x(),c._callback("onUpdate")),!o||c._gc||f!==c._startTime&&m===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(b.length&&x(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!e&&c.vars[o]&&c._callback(o))}},t._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof m&&t._hasPausedChild())return!0;t=t._next}return!1},t.getChildren=function(t,e,i,r){r=r||-9999999999;for(var n=[],s=this._first,o=0;s;)s._startTime<r||(s instanceof f?!1!==e&&(n[o++]=s):(!1!==i&&(n[o++]=s),!1!==t&&(o=(n=n.concat(s.getChildren(!0,e,i))).length))),s=s._next;return n},t.getTweensOf=function(t,e){var i,r,n=this._gc,s=[],o=0;for(n&&this._enabled(!0,!0),r=(i=f.getTweensOf(t)).length;-1<--r;)(i[r].timeline===this||e&&this._contains(i[r]))&&(s[o++]=i[r]);return n&&this._enabled(!1,!0),s},t.recent=function(){return this._recent},t._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},t.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},t._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(t,e)&&(n=!0);return n},t.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},t.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return c.prototype.invalidate.call(this)},t._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return p.prototype._enabled.call(this,t,e)},t.totalTime=function(t,e,i){this._forcingPlayhead=!0;var r=c.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},t.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},t.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,r=0,n=this,s=n._last,o=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>o&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):o=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),o=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},t.paused=function(t){if(!1===t&&this._paused)for(var e=this._first;e;)e._startTime===this._time&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return c.prototype.paused.apply(this,arguments)},t.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===c._rootFramesTimeline},t.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";function t(){return(_gsScope.GreenSockGlobals||_gsScope).TimelineMax}"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}(),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(x,L){"use strict";function v(t){return"function"==typeof t&&"number"!=typeof t.nodeType}function m(t){return null!=t&&t===t.window}var t=[],T=x.document,N=Object.getPrototypeOf,a=t.slice,z=t.concat,B=t.push,U=t.indexOf,j={},G=j.toString,X=j.hasOwnProperty,H=X.toString,Y=H.call(Object),_={},W={type:!0,src:!0,noModule:!0};function V(t,e,i){var r,n=(e=e||T).createElement("script");if(n.text=t,i)for(r in W)i[r]&&(n[r]=i[r]);e.head.appendChild(n).parentNode.removeChild(n)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?j[G.call(t)]||"object":typeof t}var w=function(t,e){return new w.fn.init(t,e)},q=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function K(t){var e=!!t&&"length"in t&&t.length,i=f(t);return!v(t)&&!m(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=w.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return w.each(this,t)},map:function(i){return this.pushStack(w.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:B,sort:t.sort,splice:t.splice},w.extend=w.fn.extend=function(){var t,e,i,r,n,s=arguments[0]||{},o=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[o]||{},o++),"object"==typeof s||v(s)||(s={}),o===a&&(s=this,o--);o<a;o++)if(null!=(t=arguments[o]))for(e in t)n=s[e],s!==(i=t[e])&&(l&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(n=r?(r=!1,n&&Array.isArray(n)?n:[]):n&&w.isPlainObject(n)?n:{},s[e]=w.extend(l,n,i)):void 0!==i&&(s[e]=i));return s},w.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==G.call(t))&&(!(t=N(t))||"function"==typeof(t=X.call(t,"constructor")&&t.constructor)&&H.call(t)===Y)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t){V(t)},each:function(t,e){var i,r=0;if(K(t))for(i=t.length;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(q,"")},makeArray:function(t,e){e=e||[];return null!=t&&(K(Object(t))?w.merge(e,"string"==typeof t?[t]:t):B.call(e,t)),e},inArray:function(t,e,i){return null==e?-1:U.call(e,t,i)},merge:function(t,e){for(var i=+e.length,r=0,n=t.length;r<i;r++)t[n++]=e[r];return t.length=n,t},grep:function(t,e,i){for(var r=[],n=0,s=t.length,o=!i;n<s;n++)!e(t[n],n)!=o&&r.push(t[n]);return r},map:function(t,e,i){var r,n,s=0,o=[];if(K(t))for(r=t.length;s<r;s++)null!=(n=e(t[s],s,i))&&o.push(n);else for(s in t)null!=(n=e(t[s],s,i))&&o.push(n);return z.apply([],o)},guid:1,support:_}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=t[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){j["[object "+e+"]"]=e.toLowerCase()});function r(t,e,i){for(var r=[],n=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(n&&w(t).is(i))break;r.push(t)}return r}function Z(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}var t=function(L){function c(t,e,i){var r="0x"+e-65536;return r!=r||i?e:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function N(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function z(){T()}var t,d,b,s,B,f,U,j,x,l,h,T,w,i,E,m,r,n,_,S="sizzle"+ +new Date,g=L.document,A=0,G=0,X=ct(),H=ct(),v=ct(),Y=function(t,e){return t===e&&(h=!0),0},W={}.hasOwnProperty,e=[],V=e.pop,q=e.push,O=e.push,K=e.slice,y=function(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",o="[\\x20\\t\\r\\n\\f]",a="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",Q="\\["+o+"*("+a+")(?:"+o+"*([*^$|!~]?=)"+o+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+o+"*\\]",$=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Q+")*)|.*)\\)|)",J=new RegExp(o+"+","g"),P=new RegExp("^"+o+"+|((?:^|[^\\\\])(?:\\\\.)*)"+o+"+$","g"),tt=new RegExp("^"+o+"*,"+o+"*"),et=new RegExp("^"+o+"*([>+~]|"+o+")"+o+"*"),it=new RegExp("="+o+"*([^\\]'\"]*?)"+o+"*\\]","g"),rt=new RegExp($),nt=new RegExp("^"+a+"$"),p={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+Q),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+o+"*(even|odd|(([+-]|)(\\d*)n|)"+o+"*(?:([+-]|)"+o+"*(\\d+)|))"+o+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+o+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+o+"*((?:-\\d)?\\d*)"+o+"*\\)|)(?=[^-]|$)","i")},st=/^(?:input|select|textarea|button)$/i,ot=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,at=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,lt=/[+~]/,R=new RegExp("\\\\([\\da-f]{1,6}"+o+"?|("+o+")|.)","ig"),ht=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ut=F(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{O.apply(e=K.call(g.childNodes),g.childNodes),e[g.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){q.apply(t,K.call(e))}:function(t,e){for(var i=t.length,r=0;t[i++]=e[r++];);t.length=i-1}}}function C(t,e,i,r){var n,s,o,a,l,h,u,c=e&&e.ownerDocument,p=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return i;if(!r&&((e?e.ownerDocument||e:g)!==w&&T(e),e=e||w,E)){if(11!==p&&(l=at.exec(t)))if(n=l[1]){if(9===p){if(!(o=e.getElementById(n)))return i;if(o.id===n)return i.push(o),i}else if(c&&(o=c.getElementById(n))&&_(e,o)&&o.id===n)return i.push(o),i}else{if(l[2])return O.apply(i,e.getElementsByTagName(t)),i;if((n=l[3])&&d.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(n)),i}if(d.qsa&&!v[t+" "]&&(!m||!m.test(t))){if(1!==p)c=e,u=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(ht,N):e.setAttribute("id",a=S),s=(h=f(t)).length;s--;)h[s]="#"+a+" "+D(h[s]);u=h.join(","),c=lt.test(t)&&mt(e.parentNode)||e}if(u)try{return O.apply(i,c.querySelectorAll(u)),i}catch(t){}finally{a===S&&e.removeAttribute("id")}}}return j(t.replace(P,"$1"),e,i,r)}function ct(){var i=[];function r(t,e){return i.push(t+" ")>b.cacheLength&&delete r[i.shift()],r[t+" "]=e}return r}function M(t){return t[S]=!0,t}function k(t){var e=w.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function pt(t,e){for(var i=t.split("|"),r=i.length;r--;)b.attrHandle[i[r]]=e}function dt(t,e){var i=e&&t,r=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ft(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ut(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function I(o){return M(function(s){return s=+s,M(function(t,e){for(var i,r=o([],t.length,s),n=r.length;n--;)t[i=r[n]]&&(t[i]=!(e[i]=t[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=C.support={},B=C.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},T=C.setDocument=function(t){var t=t?t.ownerDocument||t:g;return t!==w&&9===t.nodeType&&t.documentElement&&(i=(w=t).documentElement,E=!B(w),g!==w&&(t=w.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",z,!1):t.attachEvent&&t.attachEvent("onunload",z)),d.attributes=k(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=k(function(t){return t.appendChild(w.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=u.test(w.getElementsByClassName),d.getById=k(function(t){return i.appendChild(t).id=S,!w.getElementsByName||!w.getElementsByName(S).length}),d.getById?(b.filter.ID=function(t){var e=t.replace(R,c);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&E)return(e=e.getElementById(t))?[e]:[]}):(b.filter.ID=function(t){var e=t.replace(R,c);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&E){var i,r,n,s=e.getElementById(t);if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s];for(n=e.getElementsByName(t),r=0;s=n[r++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),b.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,r=[],n=0,s=e.getElementsByTagName(t);if("*"!==t)return s;for(;i=s[n++];)1===i.nodeType&&r.push(i);return r},b.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&E)return e.getElementsByClassName(t)},r=[],m=[],(d.qsa=u.test(w.querySelectorAll))&&(k(function(t){i.appendChild(t).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+o+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+o+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+S+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+S+"+*").length||m.push(".#.+[+~]")}),k(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=w.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+o+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),i.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=u.test(n=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&k(function(t){d.disconnectedMatch=n.call(t,"*"),n.call(t,"[s!='']:x"),r.push("!=",$)}),m=m.length&&new RegExp(m.join("|")),r=r.length&&new RegExp(r.join("|")),t=u.test(i.compareDocumentPosition),_=t||u.test(i.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(i.contains?i.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},Y=t?function(t,e){var i;return t===e?(h=!0,0):(i=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===i?t===w||t.ownerDocument===g&&_(g,t)?-1:e===w||e.ownerDocument===g&&_(g,e)?1:l?y(l,t)-y(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,r=0,n=t.parentNode,s=e.parentNode,o=[t],a=[e];if(!n||!s)return t===w?-1:e===w?1:n?-1:s?1:l?y(l,t)-y(l,e):0;if(n===s)return dt(t,e);for(i=t;i=i.parentNode;)o.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;o[r]===a[r];)r++;return r?dt(o[r],a[r]):o[r]===g?-1:a[r]===g?1:0}),w},C.matches=function(t,e){return C(t,null,null,e)},C.matchesSelector=function(t,e){if((t.ownerDocument||t)!==w&&T(t),e=e.replace(it,"='$1']"),d.matchesSelector&&E&&!v[e+" "]&&(!r||!r.test(e))&&(!m||!m.test(e)))try{var i=n.call(t,e);if(i||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0<C(e,w,null,[t]).length},C.contains=function(t,e){return(t.ownerDocument||t)!==w&&T(t),_(t,e)},C.attr=function(t,e){(t.ownerDocument||t)!==w&&T(t);var i=b.attrHandle[e.toLowerCase()],i=i&&W.call(b.attrHandle,e.toLowerCase())?i(t,e,!E):void 0;return void 0!==i?i:d.attributes||!E?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},C.escape=function(t){return(t+"").replace(ht,N)},C.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},C.uniqueSort=function(t){var e,i=[],r=0,n=0;if(h=!d.detectDuplicates,l=!d.sortStable&&t.slice(0),t.sort(Y),h){for(;e=t[n++];)e===t[n]&&(r=i.push(n));for(;r--;)t.splice(i[r],1)}return l=null,t},s=C.getText=function(t){var e,i="",r=0,n=t.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=s(t)}else if(3===n||4===n)return t.nodeValue}else for(;e=t[r++];)i+=s(e);return i},(b=C.selectors={cacheLength:50,createPseudo:M,match:p,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(R,c),t[3]=(t[3]||t[4]||t[5]||"").replace(R,c),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||C.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&C.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return p.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&rt.test(i)&&(e=f(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(R,c).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=X[t+" "];return e||(e=new RegExp("(^|"+o+")"+t+"("+o+"|$)"))&&X(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,i,r){return function(t){t=C.attr(t,e);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(J," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(f,t,e,m,_){var g="nth"!==f.slice(0,3),v="last"!==f.slice(-4),y="of-type"===t;return 1===m&&0===_?function(t){return!!t.parentNode}:function(t,e,i){var r,n,s,o,a,l,h=g!=v?"nextSibling":"previousSibling",u=t.parentNode,c=y&&t.nodeName.toLowerCase(),p=!i&&!y,d=!1;if(u){if(g){for(;h;){for(o=t;o=o[h];)if(y?o.nodeName.toLowerCase()===c:1===o.nodeType)return!1;l=h="only"===f&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&p){for(d=(a=(r=(n=(s=(o=u)[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]||[])[0]===A&&r[1])&&r[2],o=a&&u.childNodes[a];o=++a&&o&&o[h]||(d=a=0)||l.pop();)if(1===o.nodeType&&++d&&o===t){n[f]=[A,a,d];break}}else if(!1===(d=p?a=(r=(n=(s=(o=t)[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]||[])[0]===A&&r[1]:d))for(;(o=++a&&o&&o[h]||(d=a=0)||l.pop())&&((y?o.nodeName.toLowerCase()!==c:1!==o.nodeType)||!++d||(p&&((n=(s=o[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]=[A,d]),o!==t)););return(d-=_)===m||d%m==0&&0<=d/m}}},PSEUDO:function(t,s){var e,o=b.pseudos[t]||b.setFilters[t.toLowerCase()]||C.error("unsupported pseudo: "+t);return o[S]?o(s):1<o.length?(e=[t,t,"",s],b.setFilters.hasOwnProperty(t.toLowerCase())?M(function(t,e){for(var i,r=o(t,s),n=r.length;n--;)t[i=y(t,r[n])]=!(e[i]=r[n])}):function(t){return o(t,0,e)}):o}},pseudos:{not:M(function(t){var r=[],n=[],a=U(t.replace(P,"$1"));return a[S]?M(function(t,e,i,r){for(var n,s=a(t,null,r,[]),o=t.length;o--;)(n=s[o])&&(t[o]=!(e[o]=n))}):function(t,e,i){return r[0]=t,a(r,null,i,n),r[0]=null,!n.pop()}}),has:M(function(e){return function(t){return 0<C(e,t).length}}),contains:M(function(e){return e=e.replace(R,c),function(t){return-1<(t.textContent||t.innerText||s(t)).indexOf(e)}}),lang:M(function(i){return nt.test(i||"")||C.error("unsupported lang: "+i),i=i.replace(R,c).toLowerCase(),function(t){var e;do{if(e=E?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=L.location&&L.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===i},focus:function(t){return t===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return ot.test(t.nodeName)},input:function(t){return st.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:I(function(){return[0]}),last:I(function(t,e){return[e-1]}),eq:I(function(t,e,i){return[i<0?i+e:i]}),even:I(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:I(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:I(function(t,e,i){for(var r=i<0?i+e:i;0<=--r;)t.push(r);return t}),gt:I(function(t,e,i){for(var r=i<0?i+e:i;++r<e;)t.push(r);return t})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})b.pseudos[t]=function(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}(t);function _t(){}function D(t){for(var e=0,i=t.length,r="";e<i;e++)r+=t[e].value;return r}function F(o,t,e){var a=t.dir,l=t.next,h=l||a,u=e&&"parentNode"===h,c=G++;return t.first?function(t,e,i){for(;t=t[a];)if(1===t.nodeType||u)return o(t,e,i);return!1}:function(t,e,i){var r,n,s=[A,c];if(i){for(;t=t[a];)if((1===t.nodeType||u)&&o(t,e,i))return!0}else for(;t=t[a];)if(1===t.nodeType||u)if(n=(n=t[S]||(t[S]={}))[t.uniqueID]||(n[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[a]||t;else{if((r=n[h])&&r[0]===A&&r[1]===c)return s[2]=r[2];if((n[h]=s)[2]=o(t,e,i))return!0}return!1}}function gt(n){return 1<n.length?function(t,e,i){for(var r=n.length;r--;)if(!n[r](t,e,i))return!1;return!0}:n[0]}function vt(t,e,i,r,n){for(var s,o=[],a=0,l=t.length,h=null!=e;a<l;a++)!(s=t[a])||i&&!i(s,r,n)||(o.push(s),h&&e.push(a));return o}function yt(d,f,m,_,g,t){return _&&!_[S]&&(_=yt(_)),g&&!g[S]&&(g=yt(g,t)),M(function(t,e,i,r){var n,s,o,a=[],l=[],h=e.length,u=t||function(t,e,i){for(var r=0,n=e.length;r<n;r++)C(t,e[r],i);return i}(f||"*",i.nodeType?[i]:i,[]),c=!d||!t&&f?u:vt(u,a,d,i,r),p=m?g||(t?d:h||_)?[]:e:c;if(m&&m(c,p,i,r),_)for(n=vt(p,l),_(n,[],i,r),s=n.length;s--;)(o=n[s])&&(p[l[s]]=!(c[l[s]]=o));if(t){if(g||d){if(g){for(n=[],s=p.length;s--;)(o=p[s])&&n.push(c[s]=o);g(null,p=[],n,r)}for(s=p.length;s--;)(o=p[s])&&-1<(n=g?y(t,o):a[s])&&(t[n]=!(e[n]=o))}}else p=vt(p===e?p.splice(h,p.length):p),g?g(null,e,p,r):O.apply(e,p)})}function bt(_,g){function t(t,e,i,r,n){var s,o,a,l=0,h="0",u=t&&[],c=[],p=x,d=t||y&&b.find.TAG("*",n),f=A+=null==p?1:Math.random()||.1,m=d.length;for(n&&(x=e===w||e||n);h!==m&&null!=(s=d[h]);h++){if(y&&s){for(o=0,e||s.ownerDocument===w||(T(s),i=!E);a=_[o++];)if(a(s,e||w,i)){r.push(s);break}n&&(A=f)}v&&((s=!a&&s)&&l--,t&&u.push(s))}if(l+=h,v&&h!==l){for(o=0;a=g[o++];)a(u,c,e,i);if(t){if(0<l)for(;h--;)u[h]||c[h]||(c[h]=V.call(r));c=vt(c)}O.apply(r,c),n&&!t&&0<c.length&&1<l+g.length&&C.uniqueSort(r)}return n&&(A=f,x=p),u}var v=0<g.length,y=0<_.length;return v?M(t):t}return _t.prototype=b.filters=b.pseudos,b.setFilters=new _t,f=C.tokenize=function(t,e){var i,r,n,s,o,a,l,h=H[t+" "];if(h)return e?0:h.slice(0);for(o=t,a=[],l=b.preFilter;o;){for(s in i&&!(r=tt.exec(o))||(r&&(o=o.slice(r[0].length)||o),a.push(n=[])),i=!1,(r=et.exec(o))&&(i=r.shift(),n.push({value:i,type:r[0].replace(P," ")}),o=o.slice(i.length)),b.filter)!(r=p[s].exec(o))||l[s]&&!(r=l[s](r))||(i=r.shift(),n.push({value:i,type:s,matches:r}),o=o.slice(i.length));if(!i)break}return e?o.length:o?C.error(t):H(t,a).slice(0)},U=C.compile=function(t,e){var i,r=[],n=[],s=v[t+" "];if(!s){for(i=(e=e||f(t)).length;i--;)((s=function t(e){for(var r,i,n,s=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],l=o?1:0,h=F(function(t){return t===r},a,!0),u=F(function(t){return-1<y(r,t)},a,!0),c=[function(t,e,i){return t=!o&&(i||e!==x)||((r=e).nodeType?h:u)(t,e,i),r=null,t}];l<s;l++)if(i=b.relative[e[l].type])c=[F(gt(c),i)];else{if((i=b.filter[e[l].type].apply(null,e[l].matches))[S]){for(n=++l;n<s&&!b.relative[e[n].type];n++);return yt(1<l&>(c),1<l&&D(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(P,"$1"),i,l<n&&t(e.slice(l,n)),n<s&&t(e=e.slice(n)),n<s&&D(e))}c.push(i)}return gt(c)}(e[i]))[S]?r:n).push(s);(s=v(t,bt(n,r))).selector=t}return s},j=C.select=function(t,e,i,r){var n,s,o,a,l,h="function"==typeof t&&t,u=!r&&f(t=h.selector||t);if(i=i||[],1===u.length){if(2<(s=u[0]=u[0].slice(0)).length&&"ID"===(o=s[0]).type&&9===e.nodeType&&E&&b.relative[s[1].type]){if(!(e=(b.find.ID(o.matches[0].replace(R,c),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(n=p.needsContext.test(t)?0:s.length;n--&&(o=s[n],!b.relative[a=o.type]);)if((l=b.find[a])&&(r=l(o.matches[0].replace(R,c),lt.test(s[0].type)&&mt(e.parentNode)||e))){if(s.splice(n,1),t=r.length&&D(s))break;return O.apply(i,r),i}}return(h||U(t,u))(r,e,!E,i,!e||lt.test(t)&&mt(e.parentNode)||e),i},d.sortStable=S.split("").sort(Y).join("")===S,d.detectDuplicates=!!h,T(),d.sortDetached=k(function(t){return 1&t.compareDocumentPosition(w.createElement("fieldset"))}),k(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||pt("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&k(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||pt("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),k(function(t){return null==t.getAttribute("disabled")})||pt(Z,function(t,e,i){if(!i)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),C}(x),Q=(w.find=t,w.expr=t.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=t.uniqueSort,w.text=t.getText,w.isXMLDoc=t.isXML,w.contains=t.contains,w.escapeSelector=t.escape,w.expr.match.needsContext);function l(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var $=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(t,i,r){return v(i)?w.grep(t,function(t,e){return!!i.call(t,e,t)!==r}):i.nodeType?w.grep(t,function(t){return t===i!==r}):"string"!=typeof i?w.grep(t,function(t){return-1<U.call(i,t)!==r}):w.filter(i,t,r)}w.filter=function(t,e,i){var r=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?w.find.matchesSelector(r,t)?[r]:[]:w.find.matches(t,w.grep(e,function(t){return 1===t.nodeType}))},w.fn.extend({find:function(t){var e,i,r=this.length,n=this;if("string"!=typeof t)return this.pushStack(w(t).filter(function(){for(e=0;e<r;e++)if(w.contains(n[e],this))return!0}));for(i=this.pushStack([]),e=0;e<r;e++)w.find(t,n[e],i);return 1<r?w.uniqueSort(i):i},filter:function(t){return this.pushStack(J(this,t||[],!1))},not:function(t){return this.pushStack(J(this,t||[],!0))},is:function(t){return!!J(this,"string"==typeof t&&Q.test(t)?w(t):t||[],!1).length}});var tt,et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,it=((w.fn.init=function(t,e,i){if(t){if(i=i||tt,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this);if(!(r="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:et.exec(t))||!r[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(r[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:T,!0)),$.test(r[1])&&w.isPlainObject(e))for(var r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r])}else(i=T.getElementById(r[2]))&&(this[0]=i,this.length=1)}return this}).prototype=w.fn,tt=w(T),/^(?:parents|prev(?:Until|All))/),rt={children:!0,contents:!0,next:!0,prev:!0};function nt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0})},closest:function(t,e){var i,r=0,n=this.length,s=[],o="string"!=typeof t&&w(t);if(!Q.test(t))for(;r<n;r++)for(i=this[r];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?-1<o.index(i):1===i.nodeType&&w.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(1<s.length?w.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?U.call(w(t),this[0]):U.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return r(t,"parentNode")},parentsUntil:function(t,e,i){return r(t,"parentNode",i)},next:function(t){return nt(t,"nextSibling")},prev:function(t){return nt(t,"previousSibling")},nextAll:function(t){return r(t,"nextSibling")},prevAll:function(t){return r(t,"previousSibling")},nextUntil:function(t,e,i){return r(t,"nextSibling",i)},prevUntil:function(t,e,i){return r(t,"previousSibling",i)},siblings:function(t){return Z((t.parentNode||{}).firstChild,t)},children:function(t){return Z(t.firstChild)},contents:function(t){return l(t,"iframe")?t.contentDocument:(l(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},function(r,n){w.fn[r]=function(t,e){var i=w.map(this,n,t);return(e="Until"!==r.slice(-5)?t:e)&&"string"==typeof e&&(i=w.filter(e,i)),1<this.length&&(rt[r]||w.uniqueSort(i),it.test(r)&&i.reverse()),this.pushStack(i)}});var E=/[^\x20\t\r\n\f]+/g;function u(t){return t}function st(t){throw t}function ot(t,e,i,r){var n;try{t&&v(n=t.promise)?n.call(t).done(e).fail(i):t&&v(n=t.then)?n.call(t,e,i):e.apply(void 0,[t].slice(r))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(r){var t,i;r="string"==typeof r?(t=r,i={},w.each(t.match(E)||[],function(t,e){i[e]=!0}),i):w.extend({},r);function n(){for(a=a||r.once,o=s=!0;h.length;u=-1)for(e=h.shift();++u<l.length;)!1===l[u].apply(e[0],e[1])&&r.stopOnFalse&&(u=l.length,e=!1);r.memory||(e=!1),s=!1,a&&(l=e?[]:"")}var s,e,o,a,l=[],h=[],u=-1,c={add:function(){return l&&(e&&!s&&(u=l.length-1,h.push(e)),function i(t){w.each(t,function(t,e){v(e)?r.unique&&c.has(e)||l.push(e):e&&e.length&&"string"!==f(e)&&i(e)})}(arguments),e&&!s&&n()),this},remove:function(){return w.each(arguments,function(t,e){for(var i;-1<(i=w.inArray(e,l,i));)l.splice(i,1),i<=u&&u--}),this},has:function(t){return t?-1<w.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=h=[],l=e="",this},disabled:function(){return!l},lock:function(){return a=h=[],e||s||(l=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],h.push(e),s||n()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},w.extend({Deferred:function(t){var s=[["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",o={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var n=arguments;return w.Deferred(function(r){w.each(s,function(t,e){var i=v(n[e[4]])&&n[e[4]];a[e[1]](function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[e[0]+"With"](this,i?[t]:arguments)})}),n=null}).promise()},then:function(e,i,r){var l=0;function h(n,s,o,a){return function(){function t(){var t,e;if(!(n<l)){if((t=o.apply(i,r))===s.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,v(e)?a?e.call(t,h(l,s,u,a),h(l,s,st,a)):(l++,e.call(t,h(l,s,u,a),h(l,s,st,a),h(l,s,u,s.notifyWith))):(o!==u&&(i=void 0,r=[t]),(a||s.resolveWith)(i,r))}}var i=this,r=arguments,e=a?t:function(){try{t()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,e.stackTrace),l<=n+1&&(o!==st&&(i=void 0,r=[t]),s.rejectWith(i,r))}};n?e():(w.Deferred.getStackHook&&(e.stackTrace=w.Deferred.getStackHook()),x.setTimeout(e))}}return w.Deferred(function(t){s[0][3].add(h(0,t,v(r)?r:u,t.notifyWith)),s[1][3].add(h(0,t,v(e)?e:u)),s[2][3].add(h(0,t,v(i)?i:st))}).promise()},promise:function(t){return null!=t?w.extend(t,o):o}},a={};return w.each(s,function(t,e){var i=e[2],r=e[5];o[e[1]]=i.add,r&&i.add(function(){n=r},s[3-t][2].disable,s[3-t][3].disable,s[0][2].lock,s[0][3].lock),i.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=i.fireWith}),o.promise(a),t&&t.call(a,a),a},when:function(t){function e(e){return function(t){n[e]=this,s[e]=1<arguments.length?a.call(arguments):t,--i||o.resolveWith(n,s)}}var i=arguments.length,r=i,n=Array(r),s=a.call(arguments),o=w.Deferred();if(i<=1&&(ot(t,o.done(e(r)).resolve,o.reject,!i),"pending"===o.state()||v(s[r]&&s[r].then)))return o.then();for(;r--;)ot(s[r],e(r),o.reject);return o.promise()}});var at=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,lt=(w.Deferred.exceptionHook=function(t,e){x.console&&x.console.warn&&t&&at.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},w.readyException=function(t){x.setTimeout(function(){throw t})},w.Deferred());function ht(){T.removeEventListener("DOMContentLoaded",ht),x.removeEventListener("load",ht),w.ready()}w.fn.ready=function(t){return lt.then(t).catch(function(t){w.readyException(t)}),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0)!==t&&0<--w.readyWait||lt.resolveWith(T,[w])}}),w.ready.then=lt.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?x.setTimeout(w.ready):(T.addEventListener("DOMContentLoaded",ht),x.addEventListener("load",ht));function c(t,e,i,r,n,s,o){var a=0,l=t.length,h=null==i;if("object"===f(i))for(a in n=!0,i)c(t,e,a,i[a],!0,s,o);else if(void 0!==r&&(n=!0,v(r)||(o=!0),e=h?o?(e.call(t,r),null):(h=e,function(t,e,i){return h.call(w(t),i)}):e))for(;a<l;a++)e(t[a],i,o?r:r.call(t[a],a,e(t[a],i)));return n?t:h?e.call(t):l?e(t[0],i):s}var ut=/^-ms-/,ct=/-([a-z])/g;function pt(t,e){return e.toUpperCase()}function y(t){return t.replace(ut,"ms-").replace(ct,pt)}function dt(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function e(){this.expando=w.expando+e.uid++}e.uid=1,e.prototype={cache:function(t){var e=t[this.expando];return e||(e={},dt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var r,n=this.cache(t);if("string"==typeof e)n[y(e)]=i;else for(r in e)n[y(r)]=e[r];return n},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][y(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,r=t[this.expando];if(void 0!==r){if(void 0!==e){i=(e=Array.isArray(e)?e.map(y):(e=y(e))in r?[e]:e.match(E)||[]).length;for(;i--;)delete r[e[i]]}void 0!==e&&!w.isEmptyObject(r)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var g=new e,h=new e,ft=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,mt=/[A-Z]/g;function _t(t,e,i){var r,n;if(void 0===i&&1===t.nodeType)if(r="data-"+e.replace(mt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(r))){try{i="true"===(n=i)||"false"!==n&&("null"===n?null:n===+n+""?+n:ft.test(n)?JSON.parse(n):n)}catch(t){}h.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return h.hasData(t)||g.hasData(t)},data:function(t,e,i){return h.access(t,e,i)},removeData:function(t,e){h.remove(t,e)},_data:function(t,e,i){return g.access(t,e,i)},_removeData:function(t,e){g.remove(t,e)}}),w.fn.extend({data:function(i,t){var e,r,n,s=this[0],o=s&&s.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){h.set(this,i)}):c(this,function(t){var e;if(s&&void 0===t)return void 0!==(e=h.get(s,i))||void 0!==(e=_t(s,i))?e:void 0;this.each(function(){h.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(n=h.get(s),1===s.nodeType&&!g.get(s,"hasDataAttrs"))){for(e=o.length;e--;)o[e]&&0===(r=o[e].name).indexOf("data-")&&(r=y(r.slice(5)),_t(s,r,n[r]));g.set(s,"hasDataAttrs",!0)}return n},removeData:function(t){return this.each(function(){h.remove(this,t)})}}),w.extend({queue:function(t,e,i){var r;if(t)return r=g.get(t,e=(e||"fx")+"queue"),i&&(!r||Array.isArray(i)?r=g.access(t,e,w.makeArray(i)):r.push(i)),r||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),r=i.length,n=i.shift(),s=w._queueHooks(t,e);"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===e&&i.unshift("inprogress"),delete s.stop,n.call(t,function(){w.dequeue(t,e)},s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return g.get(t,i)||g.access(t,i,{empty:w.Callbacks("once memory").add(function(){g.remove(t,[e+"queue",i])})})}}),w.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?w.queue(this[0],e):void 0===i?this:this.each(function(){var t=w.queue(this,e,i);w._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&w.dequeue(this,e)})},dequeue:function(t){return this.each(function(){w.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function i(){--n||s.resolveWith(o,[o])}var r,n=1,s=w.Deferred(),o=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(r=g.get(o[a],t+"queueHooks"))&&r.empty&&(n++,r.empty.add(i));return i(),s.promise(e)}});function gt(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&w.contains(t.ownerDocument,t)&&"none"===w.css(t,"display")}function vt(t,e,i,r){var n,s={};for(n in e)s[n]=t.style[n],t.style[n]=e[n];for(n in i=i.apply(t,r||[]),e)t.style[n]=s[n];return i}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),d=["Top","Right","Bottom","Left"];function yt(t,e,i,r){var n,s,o=20,a=r?function(){return r.cur()}:function(){return w.css(t,e,"")},l=a(),h=i&&i[3]||(w.cssNumber[e]?"":"px"),u=(w.cssNumber[e]||"px"!==h&&+l)&&p.exec(w.css(t,e));if(u&&u[3]!==h){for(h=h||u[3],u=+(l/=2)||1;o--;)w.style(t,e,u+h),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),u/=s;w.style(t,e,(u*=2)+h),i=i||[]}return i&&(u=+u||+l||0,n=i[1]?u+(i[1]+1)*i[2]:+i[2],r&&(r.unit=h,r.start=u,r.end=n)),n}var bt={};function b(t,e){for(var i,r,n,s,o,a=[],l=0,h=t.length;l<h;l++)(r=t[l]).style&&(i=r.style.display,e?("none"===i&&(a[l]=g.get(r,"display")||null,a[l]||(r.style.display="")),""===r.style.display&>(r)&&(a[l]=(o=s=void 0,s=(n=r).ownerDocument,n=n.nodeName,(o=bt[n])||(s=s.body.appendChild(s.createElement(n)),o=w.css(s,"display"),s.parentNode.removeChild(s),bt[n]=o="none"===o?"block":o),o))):"none"!==i&&(a[l]="none",g.set(r,"display",i)));for(l=0;l<h;l++)null!=a[l]&&(t[l].style.display=a[l]);return t}w.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){gt(this)?w(this).show():w(this).hide()})}});var xt=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,wt=/^$|^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(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&l(t,e)?w.merge([t],i):i}function Et(t,e){for(var i=0,r=t.length;i<r;i++)g.set(t[i],"globalEval",!e||g.get(e[i],"globalEval"))}S.optgroup=S.option,S.tbody=S.tfoot=S.colgroup=S.caption=S.thead,S.th=S.td;var St=/<|&#?\w+;/;function At(t,e,i,r,n){for(var s,o,a,l,h,u=e.createDocumentFragment(),c=[],p=0,d=t.length;p<d;p++)if((s=t[p])||0===s)if("object"===f(s))w.merge(c,s.nodeType?[s]:s);else if(St.test(s)){for(o=o||u.appendChild(e.createElement("div")),a=(Tt.exec(s)||["",""])[1].toLowerCase(),a=S[a]||S._default,o.innerHTML=a[1]+w.htmlPrefilter(s)+a[2],h=a[0];h--;)o=o.lastChild;w.merge(c,o.childNodes),(o=u.firstChild).textContent=""}else c.push(e.createTextNode(s));for(u.textContent="",p=0;s=c[p++];)if(r&&-1<w.inArray(s,r))n&&n.push(s);else if(l=w.contains(s.ownerDocument,s),o=A(u.appendChild(s),"script"),l&&Et(o),i)for(h=0;s=o[h++];)wt.test(s.type||"")&&i.push(s);return u}M=T.createDocumentFragment().appendChild(T.createElement("div")),(o=T.createElement("input")).setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),M.appendChild(o),_.checkClone=M.cloneNode(!0).cloneNode(!0).lastChild.checked,M.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!M.cloneNode(!0).lastChild.defaultValue;var Ot=T.documentElement,Pt=/^key/,Rt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ct=/^([^.]*)(?:\.(.+)|)/;function Mt(){return!0}function O(){return!1}function kt(){try{return T.activeElement}catch(t){}}function It(t,e,i,r,n,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof i&&(r=r||i,i=void 0),e)It(t,a,i,r,e[a],s);return t}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=O;else if(!n)return t;return 1===s&&(o=n,(n=function(t){return w().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=w.guid++)),t.each(function(){w.event.add(this,e,n,r,i)})}w.event={global:{},add:function(e,t,i,r,n){var s,o,a,l,h,u,c,p,d,f=g.get(e);if(f)for(i.handler&&(i=(s=i).handler,n=s.selector),n&&w.find.matchesSelector(Ot,n),i.guid||(i.guid=w.guid++),(a=f.events)||(a=f.events={}),(o=f.handle)||(o=f.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(E)||[""]).length;l--;)c=d=(p=Ct.exec(t[l])||[])[1],p=(p[2]||"").split(".").sort(),c&&(h=w.event.special[c]||{},c=(n?h.delegateType:h.bindType)||c,h=w.event.special[c]||{},d=w.extend({type:c,origType:d,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&w.expr.match.needsContext.test(n),namespace:p.join(".")},s),(u=a[c])||((u=a[c]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,o)||e.addEventListener&&e.addEventListener(c,o)),h.add&&(h.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),n?u.splice(u.delegateCount++,0,d):u.push(d),w.event.global[c]=!0)},remove:function(t,e,i,r,n){var s,o,a,l,h,u,c,p,d,f,m,_=g.hasData(t)&&g.get(t);if(_&&(l=_.events)){for(h=(e=(e||"").match(E)||[""]).length;h--;)if(d=m=(a=Ct.exec(e[h])||[])[1],f=(a[2]||"").split(".").sort(),d){for(c=w.event.special[d]||{},p=l[d=(r?c.delegateType:c.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=p.length;s--;)u=p[s],!n&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(s,1),u.selector&&p.delegateCount--,c.remove&&c.remove.call(t,u));o&&!p.length&&(c.teardown&&!1!==c.teardown.call(t,f,_.handle)||w.removeEvent(t,d,_.handle),delete l[d])}else for(d in l)w.event.remove(t,d+e[h],i,r,!0);w.isEmptyObject(l)&&g.remove(t,"handle events")}},dispatch:function(t){var e,i,r,n,s,o=w.event.fix(t),a=new Array(arguments.length),t=(g.get(this,"events")||{})[o.type]||[],l=w.event.special[o.type]||{};for(a[0]=o,e=1;e<arguments.length;e++)a[e]=arguments[e];if(o.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,o)){for(s=w.event.handlers.call(this,o,t),e=0;(r=s[e++])&&!o.isPropagationStopped();)for(o.currentTarget=r.elem,i=0;(n=r.handlers[i++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!o.rnamespace.test(n.namespace)||(o.handleObj=n,o.data=n.data,void 0!==(n=((w.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,a))&&!1===(o.result=n)&&(o.preventDefault(),o.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,o),o.result}},handlers:function(t,e){var i,r,n,s,o,a=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&1<=t.button))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},i=0;i<l;i++)void 0===o[n=(r=e[i]).selector+" "]&&(o[n]=r.needsContext?-1<w(n,this).index(h):w.find(n,this,null,[h]).length),o[n]&&s.push(r);s.length&&a.push({elem:h,handlers:s})}return h=this,l<e.length&&a.push({elem:h,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==kt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===kt()&&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(t){return l(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Mt:O,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:O,isPropagationStopped:O,isImmediatePropagationStopped:O,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Mt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Mt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Mt,t&&!this.isSimulated&&t.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(t){var e=t.button;return null==t.which&&Pt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Rt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},w.event.addProp),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,n){w.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||w.contains(this,i))||(t.type=r.origType,e=r.handler.apply(this,arguments),t.type=n),e}}}),w.fn.extend({on:function(t,e,i,r){return It(this,t,e,i,r)},one:function(t,e,i,r){return It(this,t,e,i,r,1)},off:function(t,e,i){var r,n;if(t&&t.preventDefault&&t.handleObj)r=t.handleObj,w(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=O),this.each(function(){w.event.remove(this,t,i,e)});for(n in t)this.off(n,e,t[n])}return this}});var Dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ft=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function zt(t,e){return l(t,"table")&&l(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Bt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var i,r,n,s,o,a;if(1===e.nodeType){if(g.hasData(t)&&(s=g.access(t),o=g.set(e,s),a=s.events))for(n in delete o.handle,o.events={},a)for(i=0,r=a[n].length;i<r;i++)w.event.add(e,n,a[n][i]);h.hasData(t)&&(s=h.access(t),o=w.extend({},s),h.set(e,o))}}function P(i,r,n,s){r=z.apply([],r);var t,e,o,a,l,h,u=0,c=i.length,p=c-1,d=r[0],f=v(d);if(f||1<c&&"string"==typeof d&&!_.checkClone&&Lt.test(d))return i.each(function(t){var e=i.eq(t);f&&(r[0]=d.call(this,t,e.html())),P(e,r,n,s)});if(c&&(e=(t=At(r,i[0].ownerDocument,!1,i,s)).firstChild,1===t.childNodes.length&&(t=e),e||s)){for(a=(o=w.map(A(t,"script"),Bt)).length;u<c;u++)l=t,u!==p&&(l=w.clone(l,!0,!0),a&&w.merge(o,A(l,"script"))),n.call(i[u],l,u);if(a)for(h=o[o.length-1].ownerDocument,w.map(o,Ut),u=0;u<a;u++)l=o[u],wt.test(l.type||"")&&!g.access(l,"globalEval")&&w.contains(h,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&w._evalUrl(l.src):V(l.textContent.replace(Nt,""),h,l))}return i}function Gt(t,e,i){for(var r,n=e?w.filter(e,t):t,s=0;null!=(r=n[s]);s++)i||1!==r.nodeType||w.cleanData(A(r)),r.parentNode&&(i&&w.contains(r.ownerDocument,r)&&Et(A(r,"script")),r.parentNode.removeChild(r));return t}w.extend({htmlPrefilter:function(t){return t.replace(Dt,"<$1></$2>")},clone:function(t,e,i){var r,n,s,o,a,l,h,u=t.cloneNode(!0),c=w.contains(t.ownerDocument,t);if(!(_.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(o=A(u),r=0,n=(s=A(t)).length;r<n;r++)a=s[r],l=o[r],h=void 0,"input"===(h=l.nodeName.toLowerCase())&&xt.test(a.type)?l.checked=a.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=a.defaultValue);if(e)if(i)for(s=s||A(t),o=o||A(u),r=0,n=s.length;r<n;r++)jt(s[r],o[r]);else jt(t,u);return 0<(o=A(u,"script")).length&&Et(o,!c&&A(t,"script")),u},cleanData:function(t){for(var e,i,r,n=w.event.special,s=0;void 0!==(i=t[s]);s++)if(dt(i)){if(e=i[g.expando]){if(e.events)for(r in e.events)n[r]?w.event.remove(i,r):w.removeEvent(i,r,e.handle);i[g.expando]=void 0}i[h.expando]&&(i[h.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return c(this,function(t){return void 0===t?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return P(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)})},prepend:function(){return P(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=zt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return P(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return P(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(A(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return c(this,function(t){var e=this[0]||{},i=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ft.test(t)&&!S[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<r;i++)1===(e=this[i]||{}).nodeType&&(w.cleanData(A(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return P(this,arguments,function(t){var e=this.parentNode;w.inArray(this,i)<0&&(w.cleanData(A(this)),e&&e.replaceChild(t,this))},i)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,o){w.fn[t]=function(t){for(var e,i=[],r=w(t),n=r.length-1,s=0;s<=n;s++)e=s===n?this:this.clone(!0),w(r[s])[o](e),B.apply(i,e.get());return this.pushStack(i)}});function Xt(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:x).getComputedStyle(t)}var Ht,Yt,Wt,Vt,qt,Kt,i,Zt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Qt=new RegExp(d.join("|"),"i");function n(){var t;i&&(Kt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",i.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ot.appendChild(Kt).appendChild(i),t=x.getComputedStyle(i),Ht="1%"!==t.top,qt=12===$t(t.marginLeft),i.style.right="60%",Vt=36===$t(t.right),Yt=36===$t(t.width),i.style.position="absolute",Wt=36===i.offsetWidth||"absolute",Ot.removeChild(Kt),i=null)}function $t(t){return Math.round(parseFloat(t))}function R(t,e,i){var r,n,s=t.style;return(i=i||Xt(t))&&(""!==(n=i.getPropertyValue(e)||i[e])||w.contains(t.ownerDocument,t)||(n=w.style(t,e)),!_.pixelBoxStyles()&&Zt.test(n)&&Qt.test(e)&&(t=s.width,e=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=n,n=i.width,s.width=t,s.minWidth=e,s.maxWidth=r)),void 0!==n?n+"":n}function Jt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Kt=T.createElement("div"),(i=T.createElement("div")).style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===i.style.backgroundClip,w.extend(_,{boxSizingReliable:function(){return n(),Yt},pixelBoxStyles:function(){return n(),Vt},pixelPosition:function(){return n(),Ht},reliableMarginLeft:function(){return n(),qt},scrollboxSize:function(){return n(),Wt}}));var te=/^(none|table(?!-c[ea]).+)/,ee=/^--/,ie={position:"absolute",visibility:"hidden",display:"block"},re={letterSpacing:"0",fontWeight:"400"},ne=["Webkit","Moz","ms"],se=T.createElement("div").style;function oe(t){return w.cssProps[t]||(w.cssProps[t]=function(t){if(t in se)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=ne.length;i--;)if((t=ne[i]+e)in se)return t}(t)||t)}function ae(t,e,i){var r=p.exec(e);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):e}function le(t,e,i,r,n,s){var o="width"===e?1:0,a=0,l=0;if(i===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(l+=w.css(t,i+d[o],!0,n)),r?("content"===i&&(l-=w.css(t,"padding"+d[o],!0,n)),"margin"!==i&&(l-=w.css(t,"border"+d[o]+"Width",!0,n))):(l+=w.css(t,"padding"+d[o],!0,n),"padding"!==i?l+=w.css(t,"border"+d[o]+"Width",!0,n):a+=w.css(t,"border"+d[o]+"Width",!0,n));return!r&&0<=s&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))),l}function he(t,e,i){var r=Xt(t),n=R(t,e,r),s="border-box"===w.css(t,"boxSizing",!1,r),o=s;if(Zt.test(n)){if(!i)return n;n="auto"}return o=o&&(_.boxSizingReliable()||n===t.style[e]),"auto"!==n&&(parseFloat(n)||"inline"!==w.css(t,"display",!1,r))||(n=t["offset"+e[0].toUpperCase()+e.slice(1)],o=!0),(n=parseFloat(n)||0)+le(t,e,i||(s?"border":"content"),o,r,n)+"px"}function s(t,e,i,r,n){return new s.prototype.init(t,e,i,r,n)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=R(t,"opacity"))?"1":e}}},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(t,e,i,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var n,s,o,a=y(e),l=ee.test(e),h=t.style;if(l||(e=oe(a)),o=w.cssHooks[e]||w.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(n=o.get(t,!1,r))?n:h[e];"string"===(s=typeof i)&&(n=p.exec(i))&&n[1]&&(i=yt(t,e,n),s="number"),null!=i&&i==i&&("number"===s&&(i+=n&&n[3]||(w.cssNumber[a]?"":"px")),_.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,r))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,r){var n,s=y(e);return ee.test(e)||(e=oe(s)),"normal"===(n=void 0===(n=(s=w.cssHooks[e]||w.cssHooks[s])&&"get"in s?s.get(t,!0,i):n)?R(t,e,r):n)&&e in re&&(n=re[e]),(""===i||i)&&(s=parseFloat(n),!0===i||isFinite(s))?s||0:n}}),w.each(["height","width"],function(t,s){w.cssHooks[s]={get:function(t,e,i){if(e)return!te.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?he(t,s,i):vt(t,ie,function(){return he(t,s,i)})},set:function(t,e,i){var r=Xt(t),n="border-box"===w.css(t,"boxSizing",!1,r),i=i&&le(t,s,i,n,r);return n&&_.scrollboxSize()===r.position&&(i-=Math.ceil(t["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(r[s])-le(t,s,"border",!1,r)-.5)),i&&(n=p.exec(e))&&"px"!==(n[3]||"px")&&(t.style[s]=e,e=w.css(t,s)),ae(0,e,i)}}}),w.cssHooks.marginLeft=Jt(_.reliableMarginLeft,function(t,e){if(e)return(parseFloat(R(t,"marginLeft"))||t.getBoundingClientRect().left-vt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(n,s){w.cssHooks[n+s]={expand:function(t){for(var e=0,i={},r="string"==typeof t?t.split(" "):[t];e<4;e++)i[n+d[e]+s]=r[e]||r[e-2]||r[0];return i}},"margin"!==n&&(w.cssHooks[n+s].set=ae)}),w.fn.extend({css:function(t,e){return c(this,function(t,e,i){var r,n,s={},o=0;if(Array.isArray(e)){for(r=Xt(t),n=e.length;o<n;o++)s[e[o]]=w.css(t,e[o],!1,r);return s}return void 0!==i?w.style(t,e,i):w.css(t,e)},t,e,1<arguments.length)}}),((w.Tween=s).prototype={constructor:s,init:function(t,e,i,r,n,s){this.elem=t,this.prop=i,this.easing=n||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(w.cssNumber[i]?"":"px")},cur:function(){var t=s.propHooks[this.prop];return(t&&t.get?t:s.propHooks._default).get(this)},run:function(t){var e,i=s.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:s.propHooks._default).set(this),this}}).init.prototype=s.prototype,(s.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=w.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[w.cssProps[t.prop]]&&!w.cssHooks[t.prop]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=s.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=s.prototype.init,w.fx.step={};var C,ue,o,M,ce=/^(?:toggle|show|hide)$/,pe=/queueHooks$/;function de(){ue&&(!1===T.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(de):x.setTimeout(de,w.fx.interval),w.fx.tick())}function fe(){return x.setTimeout(function(){C=void 0}),C=Date.now()}function me(t,e){var i,r=0,n={height:t};for(e=e?1:0;r<4;r+=2-e)n["margin"+(i=d[r])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function _e(t,e,i){for(var r,n=(k.tweeners[e]||[]).concat(k.tweeners["*"]),s=0,o=n.length;s<o;s++)if(r=n[s].call(i,e,t))return r}function k(n,t,e){var i,s,r,o,a,l,h,u=0,c=k.prefilters.length,p=w.Deferred().always(function(){delete d.elem}),d=function(){if(!s){for(var t=C||fe(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),i=0,r=f.tweens.length;i<r;i++)f.tweens[i].run(e);if(p.notifyWith(n,[f,e,t]),e<1&&r)return t;r||p.notifyWith(n,[f,1,0]),p.resolveWith(n,[f])}return!1},f=p.promise({elem:n,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},e),originalProperties:t,originalOptions:e,startTime:C||fe(),duration:e.duration,tweens:[],createTween:function(t,e){e=w.Tween(n,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,i=t?f.tweens.length:0;if(!s){for(s=!0;e<i;e++)f.tweens[e].run(1);t?(p.notifyWith(n,[f,1,0]),p.resolveWith(n,[f,t])):p.rejectWith(n,[f,t])}return this}}),m=f.props,_=m,g=f.opts.specialEasing;for(r in _)if(a=g[o=y(r)],l=_[r],Array.isArray(l)&&(a=l[1],l=_[r]=l[0]),r!==o&&(_[o]=l,delete _[r]),(h=w.cssHooks[o])&&"expand"in h)for(r in l=h.expand(l),delete _[o],l)r in _||(_[r]=l[r],g[r]=a);else g[o]=a;for(;u<c;u++)if(i=k.prefilters[u].call(f,n,m,f.opts))return v(i.stop)&&(w._queueHooks(f.elem,f.opts.queue).stop=i.stop.bind(i)),i;return w.map(m,_e,f),v(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),w.fx.timer(w.extend(d,{elem:n,anim:f,queue:f.opts.queue})),f}w.Animation=w.extend(k,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return yt(i.elem,t,p.exec(e),i),i}]},tweener:function(t,e){for(var i,r=0,n=(t=v(t)?(e=t,["*"]):t.match(E)).length;r<n;r++)i=t[r],k.tweeners[i]=k.tweeners[i]||[],k.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var r,n,s,o,a,l,h,u="width"in e||"height"in e,c=this,p={},d=t.style,f=t.nodeType&>(t),m=g.get(t,"fxshow");for(r in i.queue||(null==(o=w._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,c.always(function(){c.always(function(){o.unqueued--,w.queue(t,"fx").length||o.empty.fire()})})),e)if(n=e[r],ce.test(n)){if(delete e[r],s=s||"toggle"===n,n===(f?"hide":"show")){if("show"!==n||!m||void 0===m[r])continue;f=!0}p[r]=m&&m[r]||w.style(t,r)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(p))for(r in u&&1===t.nodeType&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],null==(h=m&&m.display)&&(h=g.get(t,"display")),"none"===(u=w.css(t,"display"))&&(h?u=h:(b([t],!0),h=t.style.display||h,u=w.css(t,"display"),b([t]))),("inline"===u||"inline-block"===u&&null!=h)&&"none"===w.css(t,"float")&&(l||(c.done(function(){d.display=h}),null==h&&(u=d.display,h="none"===u?"":u)),d.display="inline-block")),i.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(f=m.hidden):m=g.access(t,"fxshow",{display:h}),s&&(m.hidden=!f),f&&b([t],!0),c.done(function(){for(r in f||b([t]),g.remove(t,"fxshow"),p)w.style(t,r,p[r])})),l=_e(f?m[r]:0,r,c),r in m||(m[r]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?k.prefilters.unshift(t):k.prefilters.push(t)}}),w.speed=function(t,e,i){var r=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(t,e,i,r){return this.filter(gt).css("opacity",0).show().end().animate({opacity:e},t,i,r)},animate:function(e,t,i,r){function n(){var t=k(this,w.extend({},e),o);(s||g.get(this,"finish"))&&t.stop(!0)}var s=w.isEmptyObject(e),o=w.speed(t,i,r);return n.finish=n,s||!1===o.queue?this.each(n):this.queue(o.queue,n)},stop:function(n,t,s){function o(t){var e=t.stop;delete t.stop,e(s)}return"string"!=typeof n&&(s=t,t=n,n=void 0),t&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var t=!0,e=null!=n&&n+"queueHooks",i=w.timers,r=g.get(this);if(e)r[e]&&r[e].stop&&o(r[e]);else for(e in r)r[e]&&r[e].stop&&pe.test(e)&&o(r[e]);for(e=i.length;e--;)i[e].elem!==this||null!=n&&i[e].queue!==n||(i[e].anim.stop(s),t=!1,i.splice(e,1));!t&&s||w.dequeue(this,n)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var t,e=g.get(this),i=e[o+"queue"],r=e[o+"queueHooks"],n=w.timers,s=i?i.length:0;for(e.finish=!0,w.queue(this,o,[]),r&&r.stop&&r.stop.call(this,!0),t=n.length;t--;)n[t].elem===this&&n[t].queue===o&&(n[t].anim.stop(!0),n.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),w.each(["toggle","show","hide"],function(t,r){var n=w.fn[r];w.fn[r]=function(t,e,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(me(r,!0),t,e,i)}}),w.each({slideDown:me("show"),slideUp:me("hide"),slideToggle:me("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){w.fn[t]=function(t,e,i){return this.animate(r,t,e,i)}}),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(C=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),C=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ue||(ue=!0,de())},w.fx.stop=function(){ue=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(r,t){return r=w.fx&&w.fx.speeds[r]||r,this.queue(t=t||"fx",function(t,e){var i=x.setTimeout(t,r);e.stop=function(){x.clearTimeout(i)}})},o=T.createElement("input"),M=T.createElement("select").appendChild(T.createElement("option")),o.type="checkbox",_.checkOn=""!==o.value,_.optSelected=M.selected,(o=T.createElement("input")).value="t",o.type="radio",_.radioValue="t"===o.value;var ge,I=w.expr.attrHandle,ve=(w.fn.extend({attr:function(t,e){return c(this,w.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){w.removeAttr(this,t)})}}),w.extend({attr:function(t,e,i){var r,n,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?w.prop(t,e,i):(1===s&&w.isXMLDoc(t)||(n=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?ge:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):!(n&&"get"in n&&null!==(r=n.get(t,e)))&&null==(r=w.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){var i;if(!_.radioValue&&"radio"===e&&l(t,"input"))return i=t.value,t.setAttribute("type",e),i&&(t.value=i),e}}},removeAttr:function(t,e){var i,r=0,n=e&&e.match(E);if(n&&1===t.nodeType)for(;i=n[r++];)t.removeAttribute(i)}}),ge={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),function(t,e){var o=I[e]||w.find.attr;I[e]=function(t,e,i){var r,n,s=e.toLowerCase();return i||(n=I[s],I[s]=r,r=null!=o(t,e,i)?s:null,I[s]=n),r}}),/^(?:input|select|textarea|button)$/i),ye=/^(?:a|area)$/i;function D(t){return(t.match(E)||[]).join(" ")}function F(t){return t.getAttribute&&t.getAttribute("class")||""}function be(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(E)||[]}w.fn.extend({prop:function(t,e){return c(this,w.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[w.propFix[t]||t]})}}),w.extend({prop:function(t,e,i){var r,n,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&w.isXMLDoc(t)||(e=w.propFix[e]||e,n=w.propHooks[e]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:t[e]=i:n&&"get"in n&&null!==(r=n.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):ve.test(t.nodeName)||ye.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.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(e){var t,i,r,n,s,o,a=0;if(v(e))return this.each(function(t){w(this).addClass(e.call(this,t,F(this)))});if((t=be(e)).length)for(;i=this[a++];)if(o=F(i),r=1===i.nodeType&&" "+D(o)+" "){for(s=0;n=t[s++];)r.indexOf(" "+n+" ")<0&&(r+=n+" ");o!==(o=D(r))&&i.setAttribute("class",o)}return this},removeClass:function(e){var t,i,r,n,s,o,a=0;if(v(e))return this.each(function(t){w(this).removeClass(e.call(this,t,F(this)))});if(!arguments.length)return this.attr("class","");if((t=be(e)).length)for(;i=this[a++];)if(o=F(i),r=1===i.nodeType&&" "+D(o)+" "){for(s=0;n=t[s++];)for(;-1<r.indexOf(" "+n+" ");)r=r.replace(" "+n+" "," ");o!==(o=D(r))&&i.setAttribute("class",o)}return this},toggleClass:function(n,e){var s=typeof n,o="string"==s||Array.isArray(n);return"boolean"==typeof e&&o?e?this.addClass(n):this.removeClass(n):v(n)?this.each(function(t){w(this).toggleClass(n.call(this,t,F(this),e),e)}):this.each(function(){var t,e,i,r;if(o)for(e=0,i=w(this),r=be(n);t=r[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==n&&"boolean"!=s||((t=F(this))&&g.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==n&&g.get(this,"__className__")||""))})},hasClass:function(t){for(var e,i=0,r=" "+t+" ";e=this[i++];)if(1===e.nodeType&&-1<(" "+D(F(e))+" ").indexOf(r))return!0;return!1}});function xe(t){t.stopPropagation()}var Te=/\r/g,we=(w.fn.extend({val:function(e){var i,t,r,n=this[0];return arguments.length?(r=v(e),this.each(function(t){1===this.nodeType&&(null==(t=r?e.call(this,t,w(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=w.map(t,function(t){return null==t?"":t+""})),(i=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):n?(i=w.valHooks[n.type]||w.valHooks[n.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(n,"value"))?t:"string"==typeof(t=n.value)?t.replace(Te,""):null==t?"":t:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:D(w.text(t))}},select:{get:function(t){for(var e,i=t.options,r=t.selectedIndex,n="select-one"===t.type,s=n?null:[],o=n?r+1:i.length,a=r<0?o:n?r:0;a<o;a++)if(((e=i[a]).selected||a===r)&&!e.disabled&&(!e.parentNode.disabled||!l(e.parentNode,"optgroup"))){if(e=w(e).val(),n)return e;s.push(e)}return s},set:function(t,e){for(var i,r,n=t.options,s=w.makeArray(e),o=n.length;o--;)((r=n[o]).selected=-1<w.inArray(w.valHooks.option.get(r),s))&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<w.inArray(w(t).val(),e)}},_.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),_.focusin="onfocusin"in x,/^(?:focusinfocus|focusoutblur)$/),Ee=(w.extend(w.event,{trigger:function(t,e,i,r){var n,s,o,a,l,h,u,c=[i||T],p=X.call(t,"type")?t.type:t,d=X.call(t,"namespace")?t.namespace.split("."):[],f=u=s=i=i||T;if(3!==i.nodeType&&8!==i.nodeType&&!we.test(p+w.event.triggered)&&(-1<p.indexOf(".")&&(p=(d=p.split(".")).shift(),d.sort()),a=p.indexOf(":")<0&&"on"+p,(t=t[w.expando]?t:new w.Event(p,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:w.makeArray(e,[t]),h=w.event.special[p]||{},r||!h.trigger||!1!==h.trigger.apply(i,e))){if(!r&&!h.noBubble&&!m(i)){for(o=h.delegateType||p,we.test(o+p)||(f=f.parentNode);f;f=f.parentNode)c.push(f),s=f;s===(i.ownerDocument||T)&&c.push(s.defaultView||s.parentWindow||x)}for(n=0;(f=c[n++])&&!t.isPropagationStopped();)u=f,t.type=1<n?o:h.bindType||p,(l=(g.get(f,"events")||{})[t.type]&&g.get(f,"handle"))&&l.apply(f,e),(l=a&&f[a])&&l.apply&&dt(f)&&(t.result=l.apply(f,e),!1===t.result&&t.preventDefault());return t.type=p,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(c.pop(),e)||!dt(i)||a&&v(i[p])&&!m(i)&&((s=i[a])&&(i[a]=null),w.event.triggered=p,t.isPropagationStopped()&&u.addEventListener(p,xe),i[p](),t.isPropagationStopped()&&u.removeEventListener(p,xe),w.event.triggered=void 0,s&&(i[a]=s)),t.result}},simulate:function(t,e,i){i=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(i,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each(function(){w.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),_.focusin||w.each({focus:"focusin",blur:"focusout"},function(i,r){function n(t){w.event.simulate(r,t.target,w.event.fix(t))}w.event.special[r]={setup:function(){var t=this.ownerDocument||this,e=g.access(t,r);e||t.addEventListener(i,n,!0),g.access(t,r,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=g.access(t,r)-1;e?g.access(t,r,e):(t.removeEventListener(i,n,!0),g.remove(t,r))}}}),x.location),Se=Date.now(),Ae=/\?/,Oe=(w.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),e},/\[\]$/),Pe=/\r?\n/g,Re=/^(?:submit|button|image|reset|file)$/i,Ce=/^(?:input|select|textarea|keygen)/i;w.param=function(t,e){function i(t,e){e=v(e)?e():e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var r,n=[];if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,function(){i(this.name,this.value)});else for(r in t)!function i(r,t,n,s){if(Array.isArray(t))w.each(t,function(t,e){n||Oe.test(r)?s(r,e):i(r+"["+("object"==typeof e&&null!=e?t:"")+"]",e,n,s)});else if(n||"object"!==f(t))s(r,t);else for(var e in t)i(r+"["+e+"]",t[e],n,s)}(r,t[r],e,i);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ce.test(this.nodeName)&&!Re.test(t)&&(this.checked||!xt.test(t))}).map(function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:i.replace(Pe,"\r\n")}}).get()}});var Me=/%20/g,ke=/#.*$/,Ie=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fe=/^(?:GET|HEAD)$/,Le=/^\/\//,Ne={},ze={},Be="*/".concat("*"),Ue=T.createElement("a");function je(s){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,r=0,n=t.toLowerCase().match(E)||[];if(v(e))for(;i=n[r++];)"+"===i[0]?(i=i.slice(1)||"*",(s[i]=s[i]||[]).unshift(e)):(s[i]=s[i]||[]).push(e)}}function Ge(e,r,n,s){var o={},a=e===ze;function l(t){var i;return o[t]=!0,w.each(e[t]||[],function(t,e){e=e(r,n,s);return"string"!=typeof e||a||o[e]?a?!(i=e):void 0:(r.dataTypes.unshift(e),l(e),!1)}),i}return l(r.dataTypes[0])||!o["*"]&&l("*")}function Xe(t,e){var i,r,n=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((n[i]?t:r=r||{})[i]=e[i]);return r&&w.extend(!0,t,r),t}Ue.href=Ee.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,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(t,e){return e?Xe(Xe(t,w.ajaxSettings),e):Xe(w.ajaxSettings,t)},ajaxPrefilter:je(Ne),ajaxTransport:je(ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,h,u,i,c,p,d,r,f=w.ajaxSetup({},e=e||{}),m=f.context||f,_=f.context&&(m.nodeType||m.jquery)?w(m):w.event,g=w.Deferred(),v=w.Callbacks("once memory"),y=f.statusCode||{},n={},s={},o="canceled",b={readyState:0,getResponseHeader:function(t){var e;if(p){if(!i)for(i={};e=De.exec(u);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return p?u:null},setRequestHeader:function(t,e){return null==p&&(t=s[t.toLowerCase()]=s[t.toLowerCase()]||t,n[t]=e),this},overrideMimeType:function(t){return null==p&&(f.mimeType=t),this},statusCode:function(t){if(t)if(p)b.always(t[b.status]);else for(var e in t)y[e]=[y[e],t[e]];return this},abort:function(t){t=t||o;return l&&l.abort(t),a(0,t),this}};if(g.promise(b),f.url=((t||f.url||Ee.href)+"").replace(Le,Ee.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(E)||[""],null==f.crossDomain){t=T.createElement("a");try{t.href=f.url,t.href=t.href,f.crossDomain=Ue.protocol+"//"+Ue.host!=t.protocol+"//"+t.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),Ge(Ne,f,e,b),!p){for(r in(d=w.event&&f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Fe.test(f.type),h=f.url.replace(ke,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Me,"+")):(t=f.url.slice(h.length),f.data&&(f.processData||"string"==typeof f.data)&&(h+=(Ae.test(h)?"&":"?")+f.data,delete f.data),!1===f.cache&&(h=h.replace(Ie,"$1"),t=(Ae.test(h)?"&":"?")+"_="+Se+++t),f.url=h+t),f.ifModified&&(w.lastModified[h]&&b.setRequestHeader("If-Modified-Since",w.lastModified[h]),w.etag[h]&&b.setRequestHeader("If-None-Match",w.etag[h])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&b.setRequestHeader("Content-Type",f.contentType),b.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Be+"; q=0.01":""):f.accepts["*"]),f.headers)b.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(!1===f.beforeSend.call(m,b,f)||p))return b.abort();if(o="abort",v.add(f.complete),b.done(f.success),b.fail(f.error),l=Ge(ze,f,e,b)){if(b.readyState=1,d&&_.trigger("ajaxSend",[b,f]),p)return b;f.async&&0<f.timeout&&(c=x.setTimeout(function(){b.abort("timeout")},f.timeout));try{p=!1,l.send(n,a)}catch(t){if(p)throw t;a(-1,t)}}else a(-1,"No Transport")}return b;function a(t,e,i,r){var n,s,o,a=e;p||(p=!0,c&&x.clearTimeout(c),l=void 0,u=r||"",b.readyState=0<t?4:0,r=200<=t&&t<300||304===t,i&&(o=function(t,e,i){for(var r,n,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(n in a)if(a[n]&&a[n].test(r)){l.unshift(n);break}if(l[0]in i)s=l[0];else{for(n in i){if(!l[0]||t.converters[n+" "+l[0]]){s=n;break}o=o||n}s=s||o}if(s)return s!==l[0]&&l.unshift(s),i[s]}(f,b,i)),o=function(t,e,i,r){var n,s,o,a,l,h={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=h[l+" "+s]||h["* "+s]))for(n in h)if((a=n.split(" "))[1]===s&&(o=h[l+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[n]:!0!==h[n]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(f,o,b,r),r?(f.ifModified&&((i=b.getResponseHeader("Last-Modified"))&&(w.lastModified[h]=i),(i=b.getResponseHeader("etag"))&&(w.etag[h]=i)),204===t||"HEAD"===f.type?a="nocontent":304===t?a="notmodified":(a=o.state,n=o.data,r=!(s=o.error))):(s=a,!t&&a||(a="error",t<0&&(t=0))),b.status=t,b.statusText=(e||a)+"",r?g.resolveWith(m,[n,a,b]):g.rejectWith(m,[b,a,s]),b.statusCode(y),y=void 0,d&&_.trigger(r?"ajaxSuccess":"ajaxError",[b,f,r?n:s]),v.fireWith(m,[b,a]),d&&(_.trigger("ajaxComplete",[b,f]),--w.active||w.event.trigger("ajaxStop")))}},getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],function(t,n){w[n]=function(t,e,i,r){return v(e)&&(r=r||i,i=e,e=void 0),w.ajax(w.extend({url:t,type:n,dataType:r,data:e,success:i},w.isPlainObject(t)&&t))}}),w._evalUrl=function(t){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(t){return this[0]&&(v(t)&&(t=t.call(this[0])),t=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(i){return v(i)?this.each(function(t){w(this).wrapInner(i.call(this,t))}):this.each(function(){var t=w(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=v(e);return this.each(function(t){w(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var He={0:200,1223:204},Ye=w.ajaxSettings.xhr(),We=(_.cors=!!Ye&&"withCredentials"in Ye,_.ajax=Ye=!!Ye,w.ajaxTransport(function(n){var s,o;if(_.cors||Ye&&!n.crossDomain)return{send:function(t,e){var i,r=n.xhr();if(r.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(i in n.xhrFields)r[i]=n.xhrFields[i];for(i in n.mimeType&&r.overrideMimeType&&r.overrideMimeType(n.mimeType),n.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)r.setRequestHeader(i,t[i]);s=function(t){return function(){s&&(s=o=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===t?r.abort():"error"===t?"number"!=typeof r.status?e(0,"error"):e(r.status,r.statusText):e(He[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=s(),o=r.onerror=r.ontimeout=s("error"),void 0!==r.onabort?r.onabort=o:r.onreadystatechange=function(){4===r.readyState&&x.setTimeout(function(){s&&o()})},s=s("abort");try{r.send(n.hasContent&&n.data||null)}catch(t){if(s)throw t}},abort:function(){s&&s()}}}),w.ajaxPrefilter(function(t){t.crossDomain&&(t.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(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),w.ajaxTransport("script",function(i){var r,n;if(i.crossDomain)return{send:function(t,e){r=w("<script>").prop({charset:i.scriptCharset,src:i.url}).on("load error",n=function(t){r.remove(),n=null,t&&e("error"===t.type?404:200,t.type)}),T.head.appendChild(r[0])},abort:function(){n&&n()}}}),[]),Ve=/(=)\?(?=&|$)|\?\?/,qe=(w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||w.expando+"_"+Se++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",function(t,e,i){var r,n,s,o=!1!==t.jsonp&&(Ve.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ve.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Ve,"$1"+r):!1!==t.jsonp&&(t.url+=(Ae.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||w.error(r+" was not called"),s[0]},t.dataTypes[0]="json",n=x[r],x[r]=function(){s=arguments},i.always(function(){void 0===n?w(x).removeProp(r):x[r]=n,t[r]&&(t.jsonpCallback=e.jsonpCallback,We.push(r)),s&&v(n)&&n(s[0]),s=n=void 0}),"script"}),_.createHTMLDocument=((t=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===t.childNodes.length),w.parseHTML=function(t,e,i){var r;return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(_.createHTMLDocument?((r=(e=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,e.head.appendChild(r)):e=T),r=!i&&[],(i=$.exec(t))?[e.createElement(i[1])]:(i=At([t],e,r),r&&r.length&&w(r).remove(),w.merge([],i.childNodes)))},w.fn.load=function(t,e,i){var r,n,s,o=this,a=t.indexOf(" ");return-1<a&&(r=D(t.slice(a)),t=t.slice(0,a)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(n="POST"),0<o.length&&w.ajax({url:t,type:n||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(r?w("<div>").append(w.parseHTML(t)).find(r):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,s||[t.responseText,e,t])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(t,e,i){var r,n,s,o,a=w.css(t,"position"),l=w(t),h={};"static"===a&&(t.style.position="relative"),s=l.offset(),r=w.css(t,"top"),o=w.css(t,"left"),a=("absolute"===a||"fixed"===a)&&-1<(r+o).indexOf("auto")?(n=(a=l.position()).top,a.left):(n=parseFloat(r)||0,parseFloat(o)||0),null!=(e=v(e)?e.call(t,i,w.extend({},s)):e).top&&(h.top=e.top-s.top+n),null!=e.left&&(h.left=e.left-s.left+a),"using"in e?e.using.call(t,h):l.css(h)}},w.fn.extend({offset:function(e){var t,i;return arguments.length?void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)}):(i=this[0])?i.getClientRects().length?(t=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,r=this[0],n={top:0,left:0};if("fixed"===w.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),i=r.ownerDocument,t=r.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((n=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),n.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-n.top-w.css(r,"marginTop",!0),left:e.left-n.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||Ot})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var s="pageYOffset"===n;w.fn[e]=function(t){return c(this,function(t,e,i){var r;if(m(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===i)return r?r[n]:t[e];r?r.scrollTo(s?r.pageXOffset:i,s?i:r.pageYOffset):t[e]=i},e,t,arguments.length)}}),w.each(["top","left"],function(t,i){w.cssHooks[i]=Jt(_.pixelPosition,function(t,e){if(e)return e=R(t,i),Zt.test(e)?w(t).position()[i]+"px":e})}),w.each({Height:"height",Width:"width"},function(o,a){w.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,s){w.fn[s]=function(t,e){var i=arguments.length&&(r||"boolean"!=typeof t),n=r||(!0===t||!0===e?"margin":"border");return c(this,function(t,e,i){var r;return m(t)?0===s.indexOf("outer")?t["inner"+o]:t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):void 0===i?w.css(t,e,n):w.style(t,e,i,n)},a,i?t:void 0,i)}})}),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(t,i){w.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),w.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,r){return this.on(e,t,i,r)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),w.proxy=function(t,e){var i,r;if("string"==typeof e&&(r=t[e],e=t,t=r),v(t))return i=a.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(a.call(arguments)))}).guid=t.guid=t.guid||w.guid++,r},w.holdReady=function(t){t?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=f,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}),x.jQuery),Ke=x.$;return w.noConflict=function(t){return x.$===w&&(x.$=Ke),t&&x.jQuery===w&&(x.jQuery=qe),w},L||(x.jQuery=x.$=w),w}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Ease={})}(this,function(t){"use strict";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=e(function(e,t){!function(){var n,t;t=n={linear:function(t,e,i,r){return i*t/r+e},easeInQuad:function(t,e,i,r){return i*(t/=r)*t+e},easeOutQuad:function(t,e,i,r){return-i*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,r){return i*(t/=r)*t*t+e},easeOutCubic:function(t,e,i,r){return i*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,r){return i*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,i,r){return-i*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,r){return i*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,i,r){return i*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e},easeOutSine:function(t,e,i,r){return i*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,i,r){return 0===t?e:i*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,i,r){return t===r?e+i:i*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,i,r){return(t/=r/2)<1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,i,r){return(t/=r/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,i,r){var n,s,o=1.70158;return 0!==t&&(t/=r),s=0,s=.3*r,o=(n=i)<Math.abs(i)?(n=i,s/4):s/(2*Math.PI)*Math.asin(i/n),-n*Math.pow(2,10*--t)*Math.sin((t*r-o)*(2*Math.PI)/s)+e},easeOutElastic:function(t,e,i,r){var n,s,o=1.70158;return 0!==t&&(t/=r),s=0,s=.3*r,o=(n=i)<Math.abs(i)?(n=i,s/4):s/(2*Math.PI)*Math.asin(i/n),n*Math.pow(2,-10*t)*Math.sin((t*r-o)*(2*Math.PI)/s)+i+e},easeInOutElastic:function(t,e,i,r){var n,s,o=1.70158;return 0!==t&&(t/=r/2),s=0,s=r*(.3*1.5),o=(n=i)<Math.abs(i)?(n=i,s/4):s/(2*Math.PI)*Math.asin(i/n),t<1?n*Math.pow(2,10*--t)*Math.sin((t*r-o)*(2*Math.PI)/s)*-.5+e:n*Math.pow(2,-10*--t)*Math.sin((t*r-o)*(2*Math.PI)/s)*.5+i+e},easeInBack:function(t,e,i,r,n){return i*(t/=r)*t*(((n=void 0===n?1.70158:n)+1)*t-n)+e},easeOutBack:function(t,e,i,r,n){return i*((t=t/r-1)*t*(((n=void 0===n?1.70158:n)+1)*t+n)+1)+e},easeInOutBack:function(t,e,i,r,n){return void 0===n&&(n=1.70158),(t/=r/2)<1?i/2*(t*t*((1+(n*=1.525))*t-n))+e:i/2*((t-=2)*t*((1+(n*=1.525))*t+n)+2)+e},easeInBounce:function(t,e,i,r){return i-n.easeOutBounce(r-t,0,i,r)+e},easeOutBounce:function(t,e,i,r){return(t/=r)<1/2.75?i*(7.5625*t*t)+e:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,e,i,r){return t<r/2?.5*n.easeInBounce(2*t,0,i,r)+e:.5*n.easeOutBounce(2*t-r,0,i,r)+.5*i+e}},e.exports=t}.call(i)}),n=e(function(t){var r=Object.prototype.hasOwnProperty,d="~";function i(){}function s(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new s(i,r||t,n),r=d?d+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],i]:t._events[r].push(i):(t._events[r]=i,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function e(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(d=!1)),e.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)r.call(t,e)&&i.push(d?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},e.prototype.listeners=function(t){var t=d?d+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,r=e.length,n=new Array(r);i<r;i++)n[i]=e[i].fn;return n},e.prototype.listenerCount=function(t){t=d?d+t:t,t=this._events[t];return t?t.fn?1:t.length:0},e.prototype.emit=function(t,e,i,r,n,s){var o=d?d+t:t;if(!this._events[o])return!1;var a,l=this._events[o],h=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,r),!0;case 5:return l.fn.call(l.context,e,i,r,n),!0;case 6:return l.fn.call(l.context,e,i,r,n,s),!0}for(p=1,a=new Array(h-1);p<h;p++)a[p-1]=arguments[p];l.fn.apply(l.context,a)}else for(var u,c=l.length,p=0;p<c;p++)switch(l[p].once&&this.removeListener(t,l[p].fn,void 0,!0),h){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,e);break;case 3:l[p].fn.call(l[p].context,e,i);break;case 4:l[p].fn.call(l[p].context,e,i,r);break;default:if(!a)for(u=1,a=new Array(h-1);u<h;u++)a[u-1]=arguments[u];l[p].fn.apply(l[p].context,a)}return!0},e.prototype.on=function(t,e,i){return n(this,t,e,i,!1)},e.prototype.once=function(t,e,i){return n(this,t,e,i,!0)},e.prototype.removeListener=function(t,e,i,r){t=d?d+t:t;if(this._events[t])if(e){var n=this._events[t];if(n.fn)n.fn!==e||r&&!n.once||i&&n.context!==i||l(this,t);else{for(var s=0,o=[],a=n.length;s<a;s++)(n[s].fn!==e||r&&!n[s].once||i&&n[s].context!==i)&&o.push(n[s]);o.length?this._events[t]=1===o.length?o[0]:o:l(this,t)}}else l(this,t);return this},e.prototype.removeAllListeners=function(t){return t?(t=d?d+t:t,this._events[t]&&l(this,t)):(this._events=new i,this._eventsCount=0),this},e.prototype.off=e.prototype.removeListener,e.prototype.addListener=e.prototype.on,e.prefixed=d,t.exports=e.EventEmitter=e});class h extends n{constructor(t,e,i){for(var r in super(),this.elements=Array.isArray(t)?t:[t],this.eases=[],this.options=i||{},this.time=0,e)for(var n of this.elements)this.addParam(n,r,e[r])}addParam(t,e,i){let r,n,s,o,a=e;switch(e){case"scaleX":case"skewX":n=i,s=i-(r=t[a=e.substr(0,e.length-1)].x),o=t=>this.updateCoord(t,a,"x");break;case"scaleY":case"skewY":n=i,s=i-(r=t[a=e.substr(0,e.length-1)].y),o=t=>this.updateCoord(t,a,"y");break;case"tint":case"blend":const l=Array.isArray(i)?i:[t.tint,i];r=0,s=n=l.length,o="tint"===e?t=>this.updateTint(t,l):t=>this.updateBlend(t,l);break;case"shake":r={x:t.x,y:t.y},n=i,o=t=>this.updateShake(t);break;case"position":r={x:t.x,y:t.y},s={x:(n={x:i.x,y:i.y}).x-r.x,y:n.y-r.y},o=t=>this.updatePosition(t);break;case"skew":case"scale":n=i,s=i-(r=t[e].x),o=t=>this.updatePoint(t,e);break;case"face":r=t.rotation,s=(n=h.shortestAngle(r,Math.atan2(i.y-t.y,i.x-t.x)))-r,o=t=>this.updateOne(t,"rotation");break;default:n=i,s=i-(r=t[e]),o=t=>this.updateOne(t,e)}this.eases.push({element:t,entry:e,update:o,start:r,to:n,delta:s})}static shortestAngle(t,e){var i=2*Math.PI,r=Math.abs(t-e)%i;return(r>Math.PI?i-r:r)*(0<((e-t+Math.PI)%i+i)%i-Math.PI?1:-1)}remove(e,i){if(0===arguments.length)this.eases=[];else{"string"==typeof i&&(i=[i]);for(let t=0;t<this.eases.length;t++){var r=this.eases[t];e&&r.element!==e||i&&-1===i.indexOf(r.entry)||(this.eases.splice(t,1),t--)}}if(0===this.eases.length)return!0}updateOne(t,e){t.element[e]=this.options.ease(this.time,t.start,t.delta,this.options.duration)}updatePoint(t,e){t.element[e].x=t.element[e].y=this.options.ease(this.time,t.start,t.delta,this.options.duration)}updatePosition(t){t.element.x=this.options.ease(this.time,t.start.x,t.delta.x,this.options.duration),t.element.y=this.options.ease(this.time,t.start.y,t.delta.y,this.options.duration)}updateCoord(t,e,i){t.element[e][i]=this.options.ease(this.time,t.start,t.delta,this.options.duration)}updateTint(t,e){let i=Math.floor(this.options.ease(this.time,t.start,t.delta,this.options.duration));i===e.length&&(i=e.length-1),t.element.tint=e[i]}updateBlend(t,e){var i=this.options.ease(this.time,t.start,t.delta,this.options.duration);let r=Math.floor(i),n=(r=r===e.length?e.length-1:r)+1;n===e.length&&(n=this.options.reverse?r-1:this.options.repeat?0:r);var i=i-r,s=e[r],e=e[n],o=1-i;t.element.tint=o*(s>>16)+i*(e>>16)<<16|o*(s>>8&255)+i*(e>>8&255)<<8|o*(255&s)+i*(255&e)}updateShake(t){function e(t){return Math.floor(Math.random()*t)-Math.floor(t/2)}t.element.x=t.start.x+e(t.to),t.element.y=t.start.y+e(t.to)}complete(t){"shake"===t.entry&&(t.element.x=t.start.x,t.element.y=t.start.y)}reverse(t){var e,i;"position"===t.entry?(i=t.to.x,e=t.to.y,t.to.x=t.start.x,t.to.y=t.start.y,t.start.x=i,t.start.y=e,t.delta.x=-t.delta.x,t.delta.y=-t.delta.y):(i=t.to,t.to=t.start,t.start=i,t.delta=-t.delta)}repeat(t){switch(t.entry){case"skewX":t.element.skew.x=t.start;break;case"skewY":t.element.skew.y=t.start;break;case"skew":t.element.skew.x=t.start,t.element.skew.y=t.start;break;case"scaleX":t.element.scale.x=t.start;break;case"scaleY":t.element.scale.y=t.start;break;case"scale":t.element.scale.x=t.start,t.element.scale.y=t.start;break;case"position":t.element.x=t.start.x,t.element.y=t.start.y;break;default:t.element[t.entry]=t.start}}update(t){if(0===this.eases.length)return!0;if(this.options.wait){if(this.options.wait-=t,0<this.options.wait)return void this.emit("wait",this);t=-this.options.wait,this.options.wait=0,this.emit("wait-end",this)}this.time+=t;let e=0;this.time>=this.options.duration&&(e=this.time-this.options.duration,this.time=this.options.duration);for(let t=0;t<this.eases.length;t++){const e=this.eases[t];e.element._destroyed?(this.eases.splice(t,1),t--):e.update(e)}if(this.emit("each",this),this.time>=this.options.duration)if(this.options.reverse)this.eases.forEach(t=>this.reverse(t)),(this.time=e)&&this.eases.forEach(t=>t.update(t)),this.emit("reverse",this),this.options.repeat?!0!==this.options.repeat&&this.options.repeat--:this.options.reverse=!1;else{if(!this.options.repeat)return this.eases.forEach(t=>this.complete(t)),this.emit("complete",this),!0;this.eases.forEach(t=>this.repeat(t)),(this.time=e)&&this.eases.forEach(t=>t.update(t)),!0!==this.options.repeat&&this.options.repeat--,this.emit("repeat",this)}}get count(){return this.eases.length}}const s={duration:1e3,ease:r.easeInOutSine,maxFrame:1e3/60,ticker:null,useRAF:!0};class o extends n{constructor(t){super(),this.options=Object.assign({},s,t),this.easings=[],this.empty=!0,this.options.ticker&&this.options.ticker.add(this.update,this)}destroy(){this.removeAll(),this.options.useTicker?this.ticker.remove(this.update,this):this.options.useRAF&&(cancelAnimationFrame(this.handleRAF),this.handleRAF=null)}add(t,e,i){(i=i||{}).duration=(void 0!==i.duration?i:this.options).duration,i.ease=i.ease||this.options.ease,"string"==typeof i.ease&&(i.ease=r[i.ease]);t=new h(t,e,i);return this.easings.push(t),this.empty&&this.options.useRAF&&(this.handleRAF=requestAnimationFrame(()=>this.update()),this.lastTime=Date.now()),this.empty=!1,t}target(t,e,i,r){i=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))/i;return(r=r||{}).duration=i,this.add(t,{x:e.x,y:e.y},r)}face(t,e,i,r){e=h.shortestAngle(t.rotation,Math.atan2(e.y-t.y,e.x-t.x)),i=Math.abs(e-t.rotation)/i;return(r=r||{}).duration=i,this.add(t,{rotation:e},r)}removeEase(e,i){for(let t=0;t<this.easings.length;t++)this.easings[t].remove(e,i)&&(this.easings.splice(t,1),t--);0===this.easings.length&&(this.empty=!0,this.options.useRAF&&this.handleRAF&&(cancelAnimationFrame(this.handleRAF),this.handleRAF=null))}removeAll(){this.easings=[],this.empty=!0,this.options.useRAF&&this.handleRAF&&(cancelAnimationFrame(this.handleRAF),this.handleRAF=null)}update(t){var e,i;if(this.options.useTicker?t=this.ticker.elapsedMS:this.options.useRAF&&(t=(e=Date.now())-this.lastTime,this.lastTime=e),t=Math.min(t,this.options.maxFrame),!this.empty){for(i of this.easings.slice(0))i.update(t)&&this.easings.splice(this.easings.indexOf(i),1);this.emit("each",this),0===this.easings.length&&(this.empty=!0,this.emit("complete",this))}this.options.useRAF&&this.easings.length?this.handleRAF=requestAnimationFrame(()=>this.update()):this.handleRAF=null}get count(){return this.easings.length}countRunning(){let t=0;for(var e of this.easings)t+=e.count;return t}set duration(t){this.options.duration=t}get duration(){return this.options.duration}set ease(t){this.options.ease=t}get ease(){return this.options.ease}}o.id=0;n=new o;o.ease=n,t.Ease=o,t.List=class{constructor(){console.warn("Ease.List was deprecated. Use new Ease() instead.")}},t.ease=n,Object.defineProperty(t,"__esModule",{value:!0})}),this.PIXI=this.PIXI||{},function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@pixi/math"),require("@pixi/display"),require("@pixi/ticker")):"function"==typeof define&&define.amd?define(["exports","@pixi/math","@pixi/display","@pixi/ticker"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).pixi_viewport={},t.PIXI,t.PIXI,t.PIXI)}(this,function(t,a,e,i){"use strict";class r{constructor(t){this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(e){!function(){var n={linear:function(t,e,i,r){return i*t/r+e},easeInQuad:function(t,e,i,r){return i*(t/=r)*t+e},easeOutQuad:function(t,e,i,r){return-i*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,r){return i*(t/=r)*t*t+e},easeOutCubic:function(t,e,i,r){return i*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,r){return i*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,i,r){return-i*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,r){return i*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,i,r){return i*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,r){return(t/=r/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e},easeOutSine:function(t,e,i,r){return i*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,i,r){return 0===t?e:i*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,i,r){return t===r?e+i:i*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,i,r){return(t/=r/2)<1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,i,r){return(t/=r/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,i,r){var n=1.70158,s=0,o=i;return 0!==t&&(t/=r),s=s||.3*r,n=o<Math.abs(i)?(o=i,s/4):s/(2*Math.PI)*Math.asin(i/o),-(o*Math.pow(2,10*--t)*Math.sin((t*r-n)*(2*Math.PI)/s))+e},easeOutElastic:function(t,e,i,r){var n=1.70158,s=0,o=i;return 0!==t&&(t/=r),s=s||.3*r,n=o<Math.abs(i)?(o=i,s/4):s/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*t)*Math.sin((t*r-n)*(2*Math.PI)/s)+i+e},easeInOutElastic:function(t,e,i,r){var n=1.70158,s=0,o=i;return 0!==t&&(t/=r/2),s=s||r*(.3*1.5),n=o<Math.abs(i)?(o=i,s/4):s/(2*Math.PI)*Math.asin(i/o),t<1?o*Math.pow(2,10*--t)*Math.sin((t*r-n)*(2*Math.PI)/s)*-.5+e:o*Math.pow(2,-10*--t)*Math.sin((t*r-n)*(2*Math.PI)/s)*.5+i+e},easeInBack:function(t,e,i,r,n){return i*(t/=r)*t*(((n=void 0===n?1.70158:n)+1)*t-n)+e},easeOutBack:function(t,e,i,r,n){return i*((t=t/r-1)*t*(((n=void 0===n?1.70158:n)+1)*t+n)+1)+e},easeInOutBack:function(t,e,i,r,n){return void 0===n&&(n=1.70158),(t/=r/2)<1?i/2*(t*t*((1+(n*=1.525))*t-n))+e:i/2*((t-=2)*t*((1+(n*=1.525))*t+n)+2)+e},easeInBounce:function(t,e,i,r){return i-n.easeOutBounce(r-t,0,i,r)+e},easeOutBounce:function(t,e,i,r){return(t/=r)<1/2.75?i*(7.5625*t*t)+e:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,e,i,r){return t<r/2?.5*n.easeInBounce(2*t,0,i,r)+e:.5*n.easeOutBounce(2*t-r,0,i,r)+.5*i+e}},t=n;e.exports=t}.call(n)})(o={path:s,exports:{},require:function(t,e){throw null==e&&o.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},o.exports);var s,o,l=o.exports;function h(t,e){return t?"function"==typeof t?t:"string"==typeof t?l[t]:void 0:l[e]}const u={removeOnInterrupt:!1,ease:"linear",time:1e3};class c extends r{__init(){this.startWidth=null}__init2(){this.startHeight=null}__init3(){this.deltaWidth=null}__init4(){this.deltaHeight=null}__init5(){this.width=null}__init6(){this.height=null}__init7(){this.time=0}constructor(t,e={}){super(t),c.prototype.__init.call(this),c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),c.prototype.__init7.call(this),this.options=Object.assign({},u,e),this.options.ease=h(this.options.ease),this.setupPosition(),this.setupZoom(),this.time=0}setupPosition(){void 0!==this.options.position?(this.startX=this.parent.center.x,this.startY=this.parent.center.y,this.deltaX=this.options.position.x-this.parent.center.x,this.deltaY=this.options.position.y-this.parent.center.y,this.keepCenter=!1):this.keepCenter=!0}setupZoom(){this.width=null,this.height=null,void 0!==this.options.scale?this.width=this.parent.screenWidth/this.options.scale:void 0!==this.options.scaleX||void 0!==this.options.scaleY?(void 0!==this.options.scaleX&&(this.width=this.parent.screenWidth/this.options.scaleX),void 0!==this.options.scaleY&&(this.height=this.parent.screenHeight/this.options.scaleY)):(void 0!==this.options.width&&(this.width=this.options.width),void 0!==this.options.height&&(this.height=this.options.height)),null!==this.width&&(this.startWidth=this.parent.screenWidthInWorldPixels,this.deltaWidth=this.width-this.startWidth),null!==this.height&&(this.startHeight=this.parent.screenHeightInWorldPixels,this.deltaHeight=this.height-this.startHeight)}down(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("animate"),!1}complete(){this.parent.plugins.remove("animate"),null!==this.width&&this.parent.fitWidth(this.width,this.keepCenter,null===this.height),null!==this.height&&this.parent.fitHeight(this.height,this.keepCenter,null===this.width),this.keepCenter||this.parent.moveCenter(this.options.position),this.parent.emit("animate-end",this.parent),this.options.callbackOnComplete&&this.options.callbackOnComplete(this.parent)}update(t){var e,i,r,n,s,o;this.paused||(this.time+=t,t=new a.Point(this.parent.scale.x,this.parent.scale.y),this.time>=this.options.time?(e=this.parent.width,i=this.parent.height,this.complete(),e===this.parent.width&&i===this.parent.height||this.parent.emit("zoomed",{viewport:this.parent,original:t,type:"animate"})):(e=this.options.ease(this.time,0,1,this.options.time),null!==this.width&&(i=this.startWidth,r=this.deltaWidth,this.parent.fitWidth(i+r*e,this.keepCenter,null===this.height)),null!==this.height&&(i=this.startHeight,r=this.deltaHeight,this.parent.fitHeight(i+r*e,this.keepCenter,null===this.width)),null===this.width?this.parent.scale.x=this.parent.scale.y:null===this.height&&(this.parent.scale.y=this.parent.scale.x),this.keepCenter||(i=this.startX,r=this.startY,n=this.deltaX,s=this.deltaY,o=new a.Point(this.parent.x,this.parent.y),this.parent.moveCenter(i+n*e,r+s*e),this.parent.emit("moved",{viewport:this.parent,original:o,type:"animate"})),(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:t,type:"animate"})))}}function p(t){let e=void 0,i=t[0],r=1;for(;r<t.length;){var n=t[r],s=t[r+1];if(r+=2,("optionalAccess"===n||"optionalCall"===n)&&null==i)return;"access"===n||"optionalAccess"===n?i=s(e=i):"call"!==n&&"optionalCall"!==n||(i=s((...t)=>i.call(e,...t)),e=void 0)}return i}const d={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class f extends r{constructor(t,e={}){super(t),this.options=Object.assign({},d,e),this.ease=h(this.options.ease,"easeInOutSine"),this.options.sides?"all"===this.options.sides?this.top=this.bottom=this.left=this.right=!0:"horizontal"===this.options.sides?(this.right=this.left=!0,this.top=this.bottom=!1):"vertical"===this.options.sides?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=-1!==this.options.sides.indexOf("top"),this.bottom=-1!==this.options.sides.indexOf("bottom"),this.left=-1!==this.options.sides.indexOf("left"),this.right=-1!==this.options.sides.indexOf("right")):this.left=this.top=this.right=this.bottom=!1;t=this.options.underflow.toLowerCase();"center"===t?(this.underflowX=0,this.underflowY=0):(this.underflowX=-1!==t.indexOf("left")?-1:-1!==t.indexOf("right")?1:0,this.underflowY=-1!==t.indexOf("top")?-1:-1!==t.indexOf("bottom")?1:0),this.reset()}isActive(){return null!==this.toX||null!==this.toY}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){var e;this.paused||(this.bounce(),this.toX&&((e=this.toX).time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),e.time>=this.options.time?(this.parent.x=e.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(e.time,e.start,e.delta,this.options.time)),this.toY&&((e=this.toY).time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),e.time>=this.options.time?(this.parent.y=e.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(e.time,e.start,e.delta,this.options.time)))}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){var t,e,i,r=this.options.bounceBox;return r?(t=void 0===r.x?0:r.x,e=void 0===r.y?0:r.y,i=void 0===r.width?this.parent.worldWidth:r.width,r=void 0===r.height?this.parent.worldHeight:r.height,{left:this.parent.left<t,right:this.parent.right>i,top:this.parent.top<e,bottom:this.parent.bottom>r,topLeft:new a.Point(t*this.parent.scale.x,e*this.parent.scale.y),bottomRight:new a.Point(i*this.parent.scale.x-this.parent.screenWidth,r*this.parent.scale.y-this.parent.screenHeight)}):{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new a.Point(0,0),bottomRight:new a.Point(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){if(!this.paused){let e,t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.x&&t.percentChangeX===p([t,"access",t=>t.options,"optionalAccess",t=>t.friction])||t.y&&t.percentChangeY===p([t,"access",t=>t.options,"optionalAccess",t=>t.friction]))&&(((e=this.oob()).left&&this.left||e.right&&this.right)&&(t.percentChangeX=this.options.friction),(e.top&&this.top||e.bottom&&this.bottom)&&(t.percentChangeY=this.options.friction));var i=this.parent.plugins.get("drag",!0)||{},r=this.parent.plugins.get("pinch",!0)||{};if(t=t||{},!(p([i,"optionalAccess",t=>t.active])||p([r,"optionalAccess",t=>t.active])||this.toX&&this.toY||t.x&&t.y)){i=(e=e||this.oob()).topLeft,r=e.bottomRight;if(!this.toX&&!t.x){let t=null;e.left&&this.left?t=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-i.x:e.right&&this.right&&(t=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-r.x),null!==t&&this.parent.x!==t&&(this.toX={time:0,start:this.parent.x,delta:t-this.parent.x,end:t},this.parent.emit("bounce-x-start",this.parent))}if(!this.toY&&!t.y){let t=null;e.top&&this.top?t=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-i.y:e.bottom&&this.bottom&&(t=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-r.y),null!==t&&this.parent.y!==t&&(this.toY={time:0,start:this.parent.y,delta:t-this.parent.y,end:t},this.parent.emit("bounce-y-start",this.parent))}}}}reset(){this.toX=this.toY=null,this.bounce()}}const m={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class _ extends r{constructor(t,e={}){super(t),this.options=Object.assign({},m,e),this.options.direction&&(this.options.left="x"===this.options.direction||"all"===this.options.direction||null,this.options.right="x"===this.options.direction||"all"===this.options.direction||null,this.options.top="y"===this.options.direction||"all"===this.options.direction||null,this.options.bottom="y"===this.options.direction||"all"===this.options.direction||null),this.parseUnderflow(),this.last={x:null,y:null,scaleX:null,scaleY:null},this.update()}parseUnderflow(){var t=this.options.underflow.toLowerCase();"none"===t?this.noUnderflow=!0:("center"===t?this.underflowX=this.underflowY=0:(this.underflowX=-1!==t.indexOf("left")?-1:-1!==t.indexOf("right")?1:0,this.underflowY=-1!==t.indexOf("top")?-1:-1!==t.indexOf("bottom")?1:0),this.noUnderflow=!1)}move(){return this.update(),!1}update(){if(!this.paused&&(this.parent.x!==this.last.x||this.parent.y!==this.last.y||this.parent.scale.x!==this.last.scaleX||this.parent.scale.y!==this.last.scaleY)){var e={x:this.parent.x,y:this.parent.y},i=this.parent.plugins.decelerate||{};if(null!==this.options.left||null!==this.options.right){let t=!1;if(!this.noUnderflow&&this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:0!==this.parent.x&&(this.parent.x=0,t=!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.options.left&&this.parent.left<(!0===this.options.left?0:this.options.left)&&(this.parent.x=-(!0===this.options.left?0:this.options.left)*this.parent.scale.x,i.x=0,t=!0),null!==this.options.right&&this.parent.right>(!0===this.options.right?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(!0===this.options.right?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,i.x=0,t=!0);t&&this.parent.emit("moved",{viewport:this.parent,original:e,type:"clamp-x"})}if(null!==this.options.top||null!==this.options.bottom){let t=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:0!==this.parent.y&&(this.parent.y=0,t=!0);break;case 1:this.parent.y!==this.parent.screenHeight-this.parent.screenWorldHeight&&(this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight,t=!0);break;default:this.parent.y!==(this.parent.screenHeight-this.parent.screenWorldHeight)/2&&(this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2,t=!0)}else null!==this.options.top&&this.parent.top<(!0===this.options.top?0:this.options.top)&&(this.parent.y=-(!0===this.options.top?0:this.options.top)*this.parent.scale.y,i.y=0,t=!0),null!==this.options.bottom&&this.parent.bottom>(!0===this.options.bottom?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(!0===this.options.bottom?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,i.y=0,t=!0);t&&this.parent.emit("moved",{viewport:this.parent,original:e,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}}reset(){this.update()}}const g={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class v extends r{constructor(t,e={}){super(t),this.options=Object.assign({},g,e),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused)if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight;null!==this.options.minWidth&&t<this.options.minWidth&&(r=this.parent.scale.x,this.parent.fitWidth(this.options.minWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),null!==this.options.maxWidth&&t>this.options.maxWidth&&(r=this.parent.scale.x,this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),null!==this.options.minHeight&&e<this.options.minHeight&&(r=this.parent.scale.y,this.parent.fitHeight(this.options.minHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),null!==this.options.maxHeight&&e>this.options.maxHeight&&(r=this.parent.scale.y,this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}else if(this.options.minScale||this.options.maxScale){var i,r={x:null,y:null},n={x:null,y:null};"number"==typeof this.options.minScale?(r.x=this.options.minScale,r.y=this.options.minScale):null!==this.options.minScale&&(i=this.options.minScale,r.x=void 0===i.x?null:i.x,r.y=void 0===i.y?null:i.y),"number"==typeof this.options.maxScale?(n.x=this.options.maxScale,n.y=this.options.maxScale):null!==this.options.maxScale&&(i=this.options.maxScale,n.x=void 0===i.x?null:i.x,n.y=void 0===i.y?null:i.y);let t=this.parent.scale.x,e=this.parent.scale.y;null!==r.x&&t<r.x&&(t=r.x),null!==n.x&&t>n.x&&(t=n.x),null!==r.y&&e<r.y&&(e=r.y),null!==n.y&&e>n.y&&(e=n.y),t===this.parent.scale.x&&e===this.parent.scale.y||(this.parent.scale.set(t,e),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}reset(){this.clamp()}}const y={friction:.98,bounce:.8,minSpeed:.01};class b extends r{constructor(t,e={}){super(t),this.options=Object.assign({},y,e),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",t=>this.moved(t))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!(!this.x&&!this.y)}move(){var t;return this.paused||(1===(t=this.parent.input.count())||1<t&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),60<this.saved.length&&this.saved.splice(0,30)),!1}moved(t){var e;this.saved.length&&(e=this.saved[this.saved.length-1],"clamp-x"===t.type?e.x===t.original.x&&(e.x=this.parent.x):"clamp-y"===t.type&&e.y===t.original.y&&(e.y=this.parent.y))}up(){if(0===this.parent.input.count()&&this.saved.length){var t=performance.now();for(const i of this.saved)if(i.time>=t-100){var e=t-i.time;this.x=(this.parent.x-i.x)/e,this.y=(this.parent.y-i.y)/e,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){void 0!==(t=t||{}).x&&(this.x=t.x,this.percentChangeX=this.options.friction),void 0!==t.y&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){var e,i,r,n,s;this.paused||(e=this.x||this.y,i=this.timeSinceRelease,r=this.timeSinceRelease+t,this.x&&(s=this.percentChangeX,n=Math.log(s),this.parent.x+=16*this.x/n*(Math.pow(s,r/16)-Math.pow(s,i/16)),this.x*=Math.pow(this.percentChangeX,t/16)),this.y&&(n=this.percentChangeY,s=Math.log(n),this.parent.y+=16*this.y/s*(Math.pow(n,r/16)-Math.pow(n,i/16)),this.y*=Math.pow(this.percentChangeY,t/16)),this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x)<this.options.minSpeed&&Math.abs(this.y)<this.options.minSpeed&&(this.x=0,this.y=0):(Math.abs(this.x||0)<this.options.minSpeed&&(this.x=0),Math.abs(this.y||0)<this.options.minSpeed&&(this.y=0)),e&&this.parent.emit("moved",{viewport:this.parent,type:"decelerate"}))}reset(){this.x=this.y=null}}const x={direction:"all",pressDrag:!0,wheel:!0,wheelScroll:1,reverse:!1,clampWheel:!1,underflow:"center",factor:1,mouseButtons:"all",keyToPress:null,ignoreKeyToPressOnTouch:!1,lineHeight:20};class T extends r{constructor(t,e={}){super(t),this.options=Object.assign({},x,e),this.moved=!1,this.reverse=this.options.reverse?1:-1,this.xDirection=!this.options.direction||"all"===this.options.direction||"x"===this.options.direction,this.yDirection=!this.options.direction||"all"===this.options.direction||"y"===this.options.direction,this.keyIsPressed=!1,this.parseUnderflow(),this.mouseButtons(this.options.mouseButtons),this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(e){window.addEventListener("keydown",t=>{e.includes(t.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",t=>{e.includes(t.code)&&(this.keyIsPressed=!1)})}mouseButtons(t){this.mouse=t&&"all"!==t?[-1!==t.indexOf("left"),-1!==t.indexOf("middle"),-1!==t.indexOf("right")]:[!0,!0,!0]}parseUnderflow(){var t=this.options.underflow.toLowerCase();"center"===t?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){var e="mouse"===t.data.pointerType,i=this.parent.input.count();return!(!(1===i||1<i&&!this.parent.plugins.get("pinch",!0))||e&&!this.mouse[t.data.button])}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&"touch"===t.data.pointerType}down(t){if(!this.paused&&this.options.pressDrag){if(this.checkButtons(t)&&this.checkKeyPress(t))return this.last={x:t.data.global.x,y:t.data.global.y},this.current=t.data.pointerId,!0;this.last=null}return!1}get active(){return this.moved}move(t){if(!this.paused&&this.options.pressDrag&&this.last&&this.current===t.data.pointerId){var e=t.data.global.x,i=t.data.global.y,r=this.parent.input.count();if(1===r||1<r&&!this.parent.plugins.get("pinch",!0)){var r=e-this.last.x,n=i-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(r)||this.yDirection&&this.parent.input.checkThreshold(n))return r={x:e,y:i},this.xDirection&&(this.parent.x+=(r.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(r.y-this.last.y)*this.options.factor),this.last=r,this.moved||this.parent.emit("drag-start",{event:t,screen:new a.Point(this.last.x,this.last.y),world:this.parent.toWorld(new a.Point(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}else this.moved=!1}return!1}up(t){var e;return!this.paused&&(1===(e=this.parent.input.touches).length?((e=e[0]).last&&(this.last={x:e.last.x,y:e.last.y},this.current=e.id),!(this.moved=!1)):!(!this.last||!this.moved)&&(e=new a.Point(this.last.x,this.last.y),this.parent.emit("drag-end",{event:t,screen:e,world:this.parent.toWorld(e),viewport:this.parent}),this.last=null,!(this.moved=!1)))}wheel(t){if(!this.paused&&this.options.wheel){var e=this.parent.plugins.get("wheel",!0);if(!e||!e.options.wheelZoom&&!t.ctrlKey)return e=t.deltaMode?this.options.lineHeight:1,this.xDirection&&(this.parent.x+=t.deltaX*e*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=t.deltaY*e*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}return!1}resume(){this.last=null,this.paused=!1}clamp(){var t=this.parent.plugins.get("decelerate",!0)||{};if("y"!==this.options.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,t.x=0):this.parent.right>this.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if("x"!==this.options.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,t.y=0),this.parent.bottom>this.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}}const w={speed:0,acceleration:null,radius:null};class E extends r{constructor(t,e,i={}){super(t),this.target=e,this.options=Object.assign({},w,i),this.velocity={x:0,y:0}}update(i){if(!this.paused){var r=this.parent.center;let t=this.target.x,e=this.target.y;if(this.options.radius){if(!(Math.sqrt(Math.pow(this.target.y-r.y,2)+Math.pow(this.target.x-r.x,2))>this.options.radius))return;var n=Math.atan2(this.target.y-r.y,this.target.x-r.x);t=this.target.x-Math.cos(n)*this.options.radius,e=this.target.y-Math.sin(n)*this.options.radius}var s,o,a,n=t-r.x,l=e-r.y;(n||l)&&(this.options.speed?this.options.acceleration?(o=Math.atan2(e-r.y,t-r.x),(s=Math.sqrt(Math.pow(n,2)+Math.pow(l,2)))&&(a=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration),this.velocity=a<s?{x:Math.min(this.velocity.x+this.options.acceleration*i,this.options.speed),y:Math.min(this.velocity.y+this.options.acceleration*i,this.options.speed)}:{x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)},a=Math.cos(o)*this.velocity.x,s=Math.sin(o)*this.velocity.y,i=Math.abs(a)>Math.abs(n)?t:r.x+a,o=Math.abs(s)>Math.abs(l)?e:r.y+s,this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"follow"}))):(a=Math.atan2(e-r.y,t-r.x),s=Math.cos(a)*this.options.speed,i=Math.sin(a)*this.options.speed,o=Math.abs(s)>Math.abs(n)?t:r.x+s,a=Math.abs(i)>Math.abs(l)?e:r.y+i,this.parent.moveCenter(o,a),this.parent.emit("moved",{viewport:this.parent,type:"follow"})):(this.parent.moveCenter(t,e),this.parent.emit("moved",{viewport:this.parent,type:"follow"})))}}}const S={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class A extends r{constructor(t,e={}){super(t),this.options=Object.assign({},S,e),this.reverse=this.options.reverse?1:-1,this.radiusSquared="number"==typeof this.options.radius?Math.pow(this.options.radius,2):null,this.resize()}resize(){var t=this.options.distance;null!==t?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=null===this.options.right?null:this.parent.screenWidth-this.options.right,this.bottom=null===this.options.bottom?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){var e,i;return this.paused||"mouse"!==t.data.pointerType&&1!==t.data.identifier||!this.options.allowButtons&&0!==t.data.buttons||(e=t.data.global.x,t=t.data.global.y,this.radiusSquared?(i=this.parent.toScreen(this.parent.center),Math.pow(i.x-e,2)+Math.pow(i.y-t,2)>=this.radiusSquared?(i=Math.atan2(i.y-t,i.x-e),this.options.linear?(this.horizontal=Math.round(Math.cos(i))*this.options.speed*this.reverse*.06,this.vertical=Math.round(Math.sin(i))*this.options.speed*this.reverse*.06):(this.horizontal=Math.cos(i)*this.options.speed*this.reverse*.06,this.vertical=Math.sin(i)*this.options.speed*this.reverse*.06)):(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0)):(null!==this.left&&e<this.left?this.horizontal=Number(this.reverse)*this.options.speed*.06:null!==this.right&&e>this.right?this.horizontal=-1*this.reverse*this.options.speed*.06:(this.decelerateHorizontal(),this.horizontal=0),null!==this.top&&t<this.top?this.vertical=Number(this.reverse)*this.options.speed*.06:null!==this.bottom&&t>this.bottom?this.vertical=-1*this.reverse*this.options.speed*.06:(this.decelerateVertical(),this.vertical=0))),!1}decelerateHorizontal(){var t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){var t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){var t;this.paused||(this.horizontal||this.vertical)&&(t=this.parent.center,this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"}))}}const L={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};class O extends r{__init(){this.active=!1}__init2(){this.pinching=!1}__init3(){this.moved=!1}constructor(t,e={}){super(t),O.prototype.__init.call(this),O.prototype.__init2.call(this),O.prototype.__init3.call(this),this.options=Object.assign({},L,e)}down(){return 2<=this.parent.input.count()&&(this.active=!0)}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(i){if(!this.paused&&this.active){var r=i.data.global.x,n=i.data.global.y,s=this.parent.input.touches;if(2<=s.length){var o=s[0],s=s[1],a=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===i.data.pointerId?o.last={x:r,y:n,data:i.data}:s.id===i.data.pointerId&&(s.last={x:r,y:n,data:i.data}),a){let t;r={x:o.last.x+(s.last.x-o.last.x)/2,y:o.last.y+(s.last.y-o.last.y)/2};this.options.center||(t=this.parent.toLocal(r));let e=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));n=(1-a/(e=0===e?e=1e-10:e))*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y),i=(this.isAxisX()&&(this.parent.scale.x+=n),this.isAxisY()&&(this.parent.scale.y+=n),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:r}),this.parent.plugins.get("clamp-zoom",!0));i&&i.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(s=this.parent.toGlobal(t),this.parent.x+=(r.x-s.x)*this.options.factor,this.parent.y+=(r.y-s.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(r.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(r.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=r,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}}return!1}up(){return!!(this.pinching&&this.parent.input.touches.length<=1)&&(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0)}}const N={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class P extends r{constructor(t,e,i,r={}){super(t),this.options=Object.assign({},N,r),this.ease=h(r.ease,"easeInOutSine"),this.x=e,this.y=i,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};var t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){var t;return 0===this.parent.input.count()&&(t=this.parent.plugins.get("decelerate",!0))&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction),!1}update(r){if(!(this.paused||this.options.interrupt&&0!==this.parent.input.count()))if(this.snapping){var n=this.snapping;n.time+=r;let t,e,i;var r=this.startX,s=this.startY,o=this.deltaX,a=this.deltaY;i=n.time>this.options.time?(t=!0,e=r+o,s+a):(n=this.ease(n.time,0,1,this.options.time),e=r+o*n,s+a*n),this.options.topLeft?this.parent.moveCorner(e,i):this.parent.moveCenter(e,i),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),t&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{r=this.options.topLeft?this.parent.corner:this.parent.center;r.x===this.x&&r.y===this.y||this.snapStart()}}}const z={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class R extends r{constructor(t,e={}){super(t),this.options=Object.assign({},z,e),this.ease=h(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,(this.yScale=0)<this.options.width&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),0<this.options.height&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,0===this.options.time?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):e.forceStart&&this.createSnapping()}createSnapping(){var t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,i=this.parent.screenWidth/this.xScale,r=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:e,deltaX:i-t,deltaY:r-e},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,0<this.options.width&&(this.xScale=this.parent.screenWidth/this.options.width),0<this.options.height&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(e){if(!(this.paused||this.options.interrupt&&0!==this.parent.input.count())){let t;var i;this.options.center||this.options.noMove||(t=this.parent.center),this.snapping?this.snapping&&((i=this.snapping).time+=e,i.time>=this.options.time?(this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null):(e=this.snapping,i=this.ease(e.time,e.startX,e.deltaX,this.options.time),e=this.ease(e.time,e.startY,e.deltaY,this.options.time),this.parent.scale.x=this.parent.screenWidth/i,this.parent.scale.y=this.parent.screenHeight/e),(i=this.parent.plugins.get("clamp-zoom",!0))&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(t))):this.parent.scale.x===this.xScale&&this.parent.scale.y===this.yScale||this.createSnapping()}}resume(){this.snapping=null,super.resume()}}const B={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class C extends r{constructor(t,e={}){super(t),this.options=Object.assign({},B,e),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(e){window.addEventListener("keydown",t=>{e.includes(t.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",t=>{e.includes(t.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){var e=this.smoothingCenter,i=this.smoothing;let t;this.options.center||(t=this.parent.toLocal(e)),this.isAxisX()&&(this.parent.scale.x+=i.x),this.isAxisY()&&(this.parent.scale.y+=i.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});var i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(i=this.parent.toGlobal(t),this.parent.x+=e.x-i.x,this.parent.y+=e.y-i.y),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(e){if(!this.paused){var i=this.parent.input.getPointerPosition(e),r=-e.deltaY*(e.deltaMode?this.options.lineHeight:1)/200,r=Math.pow(2,(1+this.options.percent)*r);let t;this.options.center||(t=this.parent.toLocal(i)),this.isAxisX()&&(this.parent.scale.x*=r),this.isAxisY()&&(this.parent.scale.y*=r),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});r=this.parent.plugins.get("clamp-zoom",!0);r&&r.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(r=this.parent.toGlobal(t),this.parent.x+=i.x-r.x,this.parent.y+=i.y-r.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})}}wheel(t){if(this.paused)return!1;if(!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){var e=this.parent.input.getPointerPosition(t),i=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*i);if(this.options.smooth){var r={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+r.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+r.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=e}else{let t;this.options.center||(t=this.parent.toLocal(e)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});r=this.parent.plugins.get("clamp-zoom",!0);r&&r.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(i=this.parent.toGlobal(t),this.parent.x+=e.x-i.x,this.parent.y+=e.y-i.y)}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel",{wheel:{dx:t.deltaX,dy:t.deltaY,dz:t.deltaZ},event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}}class M{constructor(t){this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new a.Rectangle(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.on("pointerout",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.divWheel.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.divWheel.removeEventListener("wheel",this.wheelFunction)}down(t){var e,i;!this.viewport.pause&&this.viewport.worldVisible&&("mouse"===t.data.pointerType?this.isMouseDown=!0:this.get(t.data.pointerId)||this.touches.push({id:t.data.pointerId,last:null}),1!==this.count()||(this.last=t.data.global.clone(),e=this.viewport.plugins.get("decelerate",!0),i=this.viewport.plugins.get("bounce",!0),e&&e.isActive()||i&&i.isActive())?this.clickedAvailable=!1:this.clickedAvailable=!0,this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation())}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){var e,i,r;!this.viewport.pause&&this.viewport.worldVisible&&(e=this.viewport.plugins.move(t),this.clickedAvailable&&this.last&&(i=t.data.global.x-this.last.x,r=t.data.global.y-this.last.y,(this.checkThreshold(i)||this.checkThreshold(r))&&(this.clickedAvailable=!1)),e&&this.viewport.options.stopPropagation&&t.stopPropagation())}up(t){var e;!this.viewport.pause&&this.viewport.worldVisible&&("mouse"===t.data.pointerType&&(this.isMouseDown=!1),"mouse"!==t.data.pointerType&&this.remove(t.data.pointerId),e=this.viewport.plugins.up(t),this.clickedAvailable&&0===this.count()&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this}),this.clickedAvailable=!1),e&&this.viewport.options.stopPropagation&&t.stopPropagation())}getPointerPosition(t){var e,i=new a.Point;return this.viewport.options.interaction?this.viewport.options.interaction.mapPositionToPoint(i,t.clientX,t.clientY):this.viewport.options.useDivWheelForInputManager&&this.viewport.options.divWheel?(e=this.viewport.options.divWheel.getBoundingClientRect(),i.x=t.clientX-e.left,i.y=t.clientY-e.top):(i.x=t.clientX,i.y=t.clientY),i}handleWheel(t){var e;this.viewport.pause||!this.viewport.worldVisible||this.viewport.options.interaction&&this.viewport.options.interaction.interactionDOMElement!==t.target||(e=this.viewport.toLocal(this.getPointerPosition(t)),this.viewport.left<=e.x&&e.x<=this.viewport.right&&this.viewport.top<=e.y&&e.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault())}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const e of this.touches)if(e.id===t)return e;return null}remove(e){for(let t=0;t<this.touches.length;t++)if(this.touches[t].id===e)return void this.touches.splice(t,1)}count(){return(this.isMouseDown?1:0)+this.touches.length}}function k(t){let e=void 0,i=t[0],r=1;for(;r<t.length;){var n=t[r],s=t[r+1];if(r+=2,("optionalAccess"===n||"optionalCall"===n)&&null==i)return;"access"===n||"optionalAccess"===n?i=s(e=i):"call"!==n&&"optionalCall"!==n||(i=s((...t)=>i.call(e,...t)),e=void 0)}return i}const I=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class D{constructor(t){this.viewport=t,this.list=[],this.plugins={}}add(t,e,i=I.length){this.plugins[t]=e;e=I.indexOf(t);-1!==e&&I.splice(e,1),I.splice(i,0,t),this.sort()}get(e,t){return t&&k([this,"access",t=>t.plugins,"access",t=>t[e],"optionalAccess",t=>t.paused])?null:this.plugins[e]}update(t){for(const e of this.list)e.update(t)}resize(){for(const t of this.list)t.resize()}reset(){for(const t of this.list)t.reset()}removeAll(){this.plugins={},this.sort()}remove(t){this.plugins[t]&&(delete this.plugins[t],this.viewport.emit(t+"-remove"),this.sort())}pause(e){k([this,"access",t=>t.plugins,"access",t=>t[e],"optionalAccess",t=>t.pause,"call",t=>t()])}resume(e){k([this,"access",t=>t.plugins,"access",t=>t[e],"optionalAccess",t=>t.resume,"call",t=>t()])}sort(){this.list=[];for(const t of I)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let e=!1;for(const i of this.list)i.down(t)&&(e=!0);return e}move(t){let e=!1;for(const i of this.viewport.plugins.list)i.move(t)&&(e=!0);return e}up(t){let e=!1;for(const i of this.list)i.up(t)&&(e=!0);return e}wheel(t){let e=!1;for(const i of this.list)i.wheel(t)&&(e=!0);return e}}const U={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,interaction:null,disableOnContextMenu:!1,ticker:i.Ticker.shared};class F extends e.Container{__init(){this._disableOnContextMenu=t=>t.preventDefault()}constructor(t={}){super(),F.prototype.__init.call(this),this.options=Object.assign({},{divWheel:document.body},U,t),this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.divWheel=this.options.divWheel||document.body,this.options.disableOnContextMenu&&this.options.divWheel.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new M(this),this.plugins=new D(this)}destroy(t){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.divWheel.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new a.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=window.innerWidth,e=window.innerHeight,i,r){this.screenWidth=t,this.screenHeight=e,void 0!==i&&(this._worldWidth=i),void 0!==r&&(this._worldHeight=r),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth||this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight||this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new a.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,e){return 2===arguments.length?this.toLocal(new a.Point(t,e)):this.toLocal(t)}toScreen(t,e){return 2===arguments.length?this.toGlobal(new a.Point(t,e)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new a.Point(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let e,i;i="number"==typeof t[0]?(e=t[0],t[1]):(e=t[0].x,t[0].y);var t=(this.worldScreenWidth/2-e)*this.scale.x,r=(this.worldScreenHeight/2-i)*this.scale.y;return this.x===t&&this.y===r||(this.position.set(t,r),this.plugins.reset(),this.dirty=!0),this}get corner(){return new a.Point(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let e,i;return i=1===t.length?(e=-t[0].x*this.scale.x,-t[0].y*this.scale.y):(e=-t[0]*this.scale.x,-t[1]*this.scale.y),e===this.x&&i===this.y||(this.position.set(e,i),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,e){t=this.screenWidth/t,e=this.screenHeight/e;return Math.min(t,e)}findCover(t,e){t=this.screenWidth/t,e=this.screenHeight/e;return Math.max(t,e)}fitWidth(t=this.worldWidth,e,i=!0,r){let n;e&&(n=this.center),this.scale.x=this.screenWidth/t,i&&(this.scale.y=this.scale.x);t=this.plugins.get("clamp-zoom",!0);return!r&&t&&t.clamp(),e&&n&&this.moveCenter(n),this}fitHeight(t=this.worldHeight,e,i=!0,r){let n;e&&(n=this.center),this.scale.y=this.screenHeight/t,i&&(this.scale.x=this.scale.y);t=this.plugins.get("clamp-zoom",!0);return!r&&t&&t.clamp(),e&&n&&this.moveCenter(n),this}fitWorld(t){let e;t&&(e=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;var i=this.plugins.get("clamp-zoom",!0);return i&&i.clamp(),t&&e&&this.moveCenter(e),this}fit(t,e=this.worldWidth,i=this.worldHeight){let r;t&&(r=this.center),this.scale.x=this.screenWidth/e,this.scale.y=this.screenHeight/i,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;e=this.plugins.get("clamp-zoom",!0);return e&&e.clamp(),t&&r&&this.moveCenter(r),this}setZoom(t,e){let i;e&&(i=this.center),this.scale.set(t);t=this.plugins.get("clamp-zoom",!0);return t&&t.clamp(),e&&i&&this.moveCenter(i),this}zoomPercent(t,e){return this.setZoom(this.scale.x+this.scale.x*t,e)}zoom(t,e){return this.fitWidth(t+this.worldScreenWidth,e),this}get scaled(){return this.scale.x}set scaled(t){this.setZoom(t,!0)}snapZoom(t){return this.plugins.add("snap-zoom",new R(this,t)),this}OOB(){return{left:this.left<0,right:this.right>this.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new a.Point(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new a.Rectangle(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new T(this,t)),this}clamp(t){return this.plugins.add("clamp",new _(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new b(this,t)),this}bounce(t){return this.plugins.add("bounce",new f(this,t)),this}pinch(t){return this.plugins.add("pinch",new O(this,t)),this}snap(t,e,i){return this.plugins.add("snap",new P(this,t,e,i)),this}follow(t,e){return this.plugins.add("follow",new E(this,t,e)),this}wheel(t){return this.plugins.add("wheel",new C(this,t)),this}animate(t){return this.plugins.add("animate",new c(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new v(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new A(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,e,i,r,n){n&&(i>this.worldScreenWidth||r>this.worldScreenHeight)&&(this.fit(!0,i,r),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;t<this.left?(this.left=t,s=!0):t+i>this.right&&(this.right=t+i,s=!0),e<this.top?(this.top=e,s=!0):e+r>this.bottom&&(this.bottom=e+r,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}t.Animate=c,t.Bounce=f,t.Clamp=_,t.ClampZoom=v,t.Decelerate=b,t.Drag=T,t.Follow=E,t.InputManager=M,t.MouseEdges=A,t.Pinch=O,t.Plugin=r,t.PluginManager=D,t.Snap=P,t.SnapZoom=R,t.Viewport=F,t.Wheel=C,Object.defineProperty(t,"__esModule",{value:!0})}),"undefined"!=typeof pixi_viewport&&Object.assign(this.PIXI,pixi_viewport),function(){"use strict";var u=new("undefined"==typeof WebKitCSSMatrix?DOMMatrix:WebKitCSSMatrix);function c(t,e,i){this.x=t,this.y=e,this.z=i}function r(t){for(var e=u,i=t;null!=i&&i!==i.ownerDocument.documentElement;)var r=window.getComputedStyle(i,void 0).transform||"none",e=("none"===r?u:function(e){try{return new("undefined"==typeof WebKitCSSMatrix?DOMMatrix:WebKitCSSMatrix)(e)}catch(t){return console.warn(e),console.warn(t.toString()),u}}(r)).multiply(e),i=i.parentNode;for(var n=t.offsetWidth,s=t.offsetHeight,o=4,a=1/0,l=1/0;0<=--o;){var h=new c(0===o||1===o?0:n,0===o||3===o?0:s,0).transformBy(e);h.x<a&&(a=h.x),h.y<l&&(l=h.y)}t=t.getBoundingClientRect();return e=u.translate(window.pageXOffset+t.left-a,window.pageYOffset+t.top-l,0).multiply(e)}c.prototype.transformBy=function(t){t=t.multiply(u.translate(this.x,this.y,this.z));return new c(t.m41,t.m42,t.m43)},window.convertPointFromPageToNode=function(t,e,i){return new c(e,i,0).transformBy(r(t).inverse())},window.convertPointFromNodeToPage=function(t,e,i){return new c(e,i,0).transformBy(r(t))}}(),function(){var t={exports:null};function e(t){var e=[],i=0;if(this.trie=this.createTrie(t.patterns),this.leftMin=t.leftmin,this.rightMin=t.rightmin,this.exceptions={},t.exceptions)for(e=t.exceptions.split(/,\s?/g);i<e.length;i+=1)this.exceptions[e[i].replace(/\u2027/g,"").toLowerCase()]=new RegExp("("+e[i].split("‧").join(")(")+")","i")}e.prototype.createTrie=function(t){var e,i,r,n=0,s=0,o=0,a=0,l=null,h=null,u={_points:[]};for(n in t)if(t.hasOwnProperty(n))for(r=t[n].match(new RegExp(".{1,"+ +n+"}","g")),s=0;s<r.length;s+=1){for(l=r[s].replace(/[0-9]/g,"").split(""),e=r[s].split(/\D/),h=u,o=0;o<l.length;o+=1)h[i=l[o].charCodeAt(0)]||(h[i]={}),h=h[i];for(h._points=[],a=0;a<e.length;a+=1)h._points[a]=e[a]||0}return u},e.prototype.hyphenateText=function(t,e){e=e||4;for(var i=t.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),r=0;r<i.length;r+=1)-1!==i[r].indexOf("/")?0===r||r===i.length-1||/\s+\/|\/\s+/.test(i[r])||(i[r]+=""):i[r].length>e&&(i[r]=this.hyphenate(i[r]).join(""));return i.join("")},e.prototype.hyphenate=function(t){var e,i,r,n,s,o,a,l,h,u=[],c=[],p=t.toLowerCase(),d=Math.max,f=this.trie,m=[""];if(this.exceptions.hasOwnProperty(p))return t.match(this.exceptions[p]).slice(1);if(-1!==t.indexOf(""))return[t];for(e=(t="_"+t+"_").toLowerCase().split(""),i=t.split(""),a=e.length,r=0;r<a;r+=1)u[r]=e[r].charCodeAt(c[r]=0);for(r=0;r<a;r+=1)for(o=f,n=r;n<a&&(o=o[u[n]]);n+=1)if(l=o._points)for(s=0,h=l.length;s<h;s+=1)c[r+s]=d(c[r+s],l[s]);for(r=1;r<a-1;r+=1)r>this.leftMin&&r<a-this.rightMin&&c[r]%2?m.push(i[r]):m[m.length-1]+=i[r];return m},t.exports=e,window.Hypher=t.exports,window.Hypher.languages={}}(),jQuery.fn.hyphenate=function(i){if(window.Hypher.languages[i])return this.each(function(){for(var t=0,e=this.childNodes.length;t<e;t+=1)3===this.childNodes[t].nodeType&&(this.childNodes[t].nodeValue=window.Hypher.languages[i].hyphenateText(this.childNodes[t].nodeValue))})},function(){var t={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"}}},e=new window.Hypher(t.exports);"string"==typeof t.exports.id&&(t.exports.id=[t.exports.id]);for(var i=0;i<t.exports.id.length;i+=1)window.Hypher.languages[t.exports.id[i]]=e}(),function(){var t={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"}}},e=new window.Hypher(t.exports);"string"==typeof t.exports.id&&(t.exports.id=[t.exports.id]);for(var i=0;i<t.exports.id.length;i+=1)window.Hypher.languages[t.exports.id[i]]=e}(); |