/*! Copyright (c) 2020 WhatsApp Inc. All Rights Reserved. */ webpackJsonp([129],{bacehaajgh:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e=0)throw new Error("Cyclic dependency: "+JSON.stringify(o));if(!~t.indexOf(o))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(o));if(!r[a]){r[a]=!0;var c=e.filter(function(t){return t[0]===o});if(a=c.length){var h=u.concat(o);do{var l=c[--a][1];s(l,t.indexOf(l),h)}while(a)}i[--n]=o}}}t.exports=e=function(t){return n(function(t){for(var e=[],n=0,i=t.length;n0&&c>u&&(c=u);for(var h=0;h=0?(l=m.substr(0,g),f=m.substr(g+1)):(l=m,f=""),d=decodeURIComponent(l),p=decodeURIComponent(f),i(s,d)?r(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},bdeiidaeje:function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},bdhjjchdia:function(t,e,n){var i=n("cjedcdbdii"),r=n("bedeadcjdb"),o=n("bdeiidaeje"),s=n("bcdieeaibb");function a(e){var n="function"==typeof Map?new Map:void 0;return t.exports=a=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return s(t,arguments,i(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r(e,t)},a(e)}t.exports=a},bedeadcjdb:function(t,e){function n(e,i){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,i)}t.exports=n},bejbgbhigd:function(t,e,n){var i=n("gafbbdcia");function r(t){return t.replace(/[^A-Za-z0-9]/g,function(t){return i[t]||t})}r.isLatin=function(t){return t===r(t)},t.exports=r},bfejacaeaj:function(t,e,n){t.exports=n("gfijjdfhe")()},bfejgijfbh:function(t,e){t.exports=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};i.get||i.set?Object.defineProperty(e,n,i):e[n]=t[n]}return e.default=t,e}},bfgaaiicei:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n("ecdgejbdee"),o=(i=r)&&i.__esModule?i:{default:i};e.default={pauseVideo:{acceptableStates:[o.default.ENDED,o.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[o.default.ENDED,o.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[o.default.ENDED,o.default.PLAYING,o.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},t.exports=e.default},bgdcbafaaj:function(t,e,n){"use strict";var i=function(){};t.exports=i},bgdiiijdd:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},bgjhiaabcf:function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n("bcdgbaaibb"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n("bgdiiijdd"))},bhabhhjdch:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},bhcgcgjaec:function(t,e,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u=this._APP0_MARKER&&n<=this._APP15_MARKER},t.prototype._hasExifData=function(){return 0!==this._tiffHeaderOffset},t.prototype._readTags=function(){return this._setByteOrder(),this._read0thIfd(),this._readExifIfd(),this._readGpsIfd(),this._readInteroperabilityIfd()},t.prototype._setByteOrder=function(){if(this._dataView.getUint16(this._tiffHeaderOffset)===this._BYTE_ORDER_BIG_ENDIAN)return this._littleEndian=!0;if(this._dataView.getUint16(this._tiffHeaderOffset)===this._BYTE_ORDER_LITTLE_ENDIAN)return this._littleEndian=!1;throw new Error("Illegal byte order value. Faulty image.")},t.prototype._read0thIfd=function(){var t;return t=this._getIfdOffset(),this._readIfd("0th",t)},t.prototype._getIfdOffset=function(){return this._tiffHeaderOffset+this._getLongAt(this._tiffHeaderOffset+4)},t.prototype._readExifIfd=function(){var t;if(null!=this._tags["Exif IFD Pointer"])return t=this._tiffHeaderOffset+this._tags["Exif IFD Pointer"].value,this._readIfd("exif",t)},t.prototype._readGpsIfd=function(){var t;if(null!=this._tags["GPS Info IFD Pointer"])return t=this._tiffHeaderOffset+this._tags["GPS Info IFD Pointer"].value,this._readIfd("gps",t)},t.prototype._readInteroperabilityIfd=function(){var t;if(null!=this._tags["Interoperability IFD Pointer"])return t=this._tiffHeaderOffset+this._tags["Interoperability IFD Pointer"].value,this._readIfd("interoperability",t)},t.prototype._readIfd=function(t,e){var n,i,r,o;for(n=this._getShortAt(e),e+=2,o=[],r=0;0<=n?rn;0<=n?++r:--r)i=this._readTag(t,e),this._tags[i.name]={value:i.value,description:i.description},o.push(e+=12);return o},t.prototype._readTag=function(t,e){var n,i,r,o,s,a,u;return n=this._getShortAt(e),s=this._getShortAt(e+2),i=this._getLongAt(e+4),this._typeSizes[s]*i<=4?a=this._getTagValue(e+8,s,i):(u=this._getLongAt(e+8),a=this._getTagValue(this._tiffHeaderOffset+u,s,i)),s===this._tagTypes.ASCII&&(a=this._splitNullSeparatedAsciiString(a)),null!=this._tagNames[t][n]?(null!=this._tagNames[t][n].name&&null!=this._tagNames[t][n].description?(o=this._tagNames[t][n].name,r=this._tagNames[t][n].description(a)):(o=this._tagNames[t][n],r=a instanceof Array?a.join(", "):a),{name:o,value:a,description:r}):{name:"undefined-"+n,value:a,description:a}},t.prototype._getTagValue=function(t,e,n){var i,r;return 1===(r=function(){var r,o;for(o=[],r=0;0<=n?rn;0<=n?++r:--r)i=this._getTagValueAt[e](t),t+=this._typeSizes[e],o.push(i);return o}.call(this)).length?r=r[0]:e===this._tagTypes.ASCII&&(r=this._getAsciiValue(r)),r},t.prototype._getAsciiValue=function(t){var e;return function(){var n,i,r;for(r=[],n=0,i=t.length;nn;0<=n?++e:--e)i.push("0");return i}()+t},t.map(e).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(t){switch(t.join("")){case"A":return"Measurement in progress";case"V":return"Measurement Interoperability";default:return"Unknown"}}},10:{name:"GPSMeasureMode",description:function(t){switch(t.join("")){case"2":return"2-dimensional measurement";case"3":return"3-dimensional measurement";default:return"Unknown"}}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(t){switch(t.join("")){case"K":return"Kilometers per hour";case"M":return"Miles per hour";case"N":return"Knots";default:return"Unknown"}}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(t){switch(t.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(t){switch(t.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(t){switch(t.join("")){case"N":return"North latitude";case"S":return"South latitude";default:return"Unknown"}}},20:{name:"GPSDestLatitude",description:function(t){return t[0]+t[1]/60+t[2]/3600}},21:{name:"GPSDestLongitudeRef",description:function(t){switch(t.join("")){case"E":return"East longitude";case"W":return"West longitude";default:return"Unknown"}}},22:{name:"GPSDestLongitude",description:function(t){return t[0]+t[1]/60+t[2]/3600}},23:{name:"GPSDestBearingRef",description:function(t){switch(t.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(t){switch(t.join("")){case"K":return"Kilometers";case"M":return"Miles";case"N":return"Knots";default:return"Unknown"}}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:function(t){switch(t.slice(0,8).map(function(t){return String.fromCharCode(t)}).join("")){case"ASCII\0\0\0":return t.slice(8,t.length).map(function(t){return String.fromCharCode(t)}).join("");case"JIS\0\0\0\0\0":return"[JIS encoded text]";case"UNICODE\0":return"[Unicode encoded text]";case"\0\0\0\0\0\0\0\0":return"[Undefined encoding]"}}},28:{name:"GPSAreaInformation",description:function(t){switch(t.slice(0,8).map(function(t){return String.fromCharCode(t)}).join("")){case"ASCII\0\0\0":return t.slice(8,t.length).map(function(t){return String.fromCharCode(t)}).join("");case"JIS\0\0\0\0\0":return"[JIS encoded text]";case"UNICODE\0":return"[Unicode encoded text]";case"\0\0\0\0\0\0\0\0":return"[Undefined encoding]"}}},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(t){switch(t){case 0:return"Measurement without differential correction";case 1:return"Differential correction applied";default:return"Unknown"}}}},interoperability:{1:"InteroperabilityIndex",2:"UnknownInteroperabilityTag0x0002",4097:"UnknownInteroperabilityTag0x1001",4098:"UnknownInteroperabilityTag0x1002"}},t.prototype.getTagValue=function(t){return null!=this._tags[t]?this._tags[t].value:void 0},t.prototype.getTagDescription=function(t){return null!=this._tags[t]?this._tags[t].description:void 0},t.prototype.getAllTags=function(){return this._tags},t}()}).call(this)},cbfbgdgfjc:function(t,e){t.exports=function(t){if("function"!=typeof t){var e=Array.isArray(t)?t:Object.keys(this.columns);n=e.map(function(t){var e="asc",n=/(.*)\|\s*(asc|des)\s*$/.exec(t);return n&&(t=n[1],e=n[2]),function(n,i){var r=function t(e,n){if(e===n)return 0;if(void 0===e)return 1;if(void 0===n)return-1;if(null===e)return 1;if(null===n)return-1;if(e>n)return 1;if(e0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===c&&!1===isNaN(t))return e.long?a(u=t,o,"day")||a(u,r,"hour")||a(u,i,"minute")||a(u,n,"second")||u+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=r)return Math.round(t/r)+"h";if(t>=i)return Math.round(t/i)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},ccacajdfje:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},ccddaicfff:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,n){var i=Object.keys,r=Array.isArray,o="undefined"!=typeof self?self:"undefined"!=typeof window?window:t;function s(t,e){return"object"!=typeof e?t:(i(e).forEach(function(n){t[n]=e[n]}),t)}var a=Object.getPrototypeOf,u={}.hasOwnProperty;function c(t,e){return u.call(t,e)}function h(t,e){"function"==typeof e&&(e=e(a(t))),i(e).forEach(function(n){f(t,n,e[n])})}var l=Object.defineProperty;function f(t,e,n,i){l(t,e,s(n&&c(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},i))}function d(t){return{from:function(e){return t.prototype=Object.create(e.prototype),f(t.prototype,"constructor",t),{extend:h.bind(null,t.prototype)}}}}var p=Object.getOwnPropertyDescriptor;var m=[].slice;function g(t,e,n){return m.call(t,e,n)}function v(t,e){return e(t)}function _(t){if(!t)throw new Error("Assertion Failed")}function y(t){o.setImmediate?n(t):setTimeout(t,0)}function w(t,e){return t.reduce(function(t,n,i){var r=e(n,i);return r&&(t[r[0]]=r[1]),t},{})}function b(t,e){return function(){try{t.apply(this,arguments)}catch(t){e(t)}}}function x(t,e,n){try{t.apply(null,n)}catch(t){e&&e(t)}}function E(t,e){if(c(t,e))return t[e];if(!e)return t;if("string"!=typeof e){for(var n=[],i=0,r=e.length;i=0)e=t;else for(var o in e=t.constructor?Object.create(t.constructor.prototype):{},t)c(t,o)&&(e[o]=P(t[o]));return e}function I(t,e,n,r){return n=n||{},r=r||"",i(t).forEach(function(i){if(c(e,i)){var o=t[i],s=e[i];"object"==typeof o&&"object"==typeof s&&o&&s&&""+o.constructor==""+s.constructor?I(o,s,n,r+i+"."):o!==s&&(n[r+i]=e[i])}else n[r+i]=void 0}),i(e).forEach(function(i){c(t,i)||(n[r+i]=e[i])}),n}var C="undefined"!=typeof Symbol&&Symbol.iterator,D=C?function(t){var e;return null!=t&&(e=t[C])&&e.apply(t)}:function(){return null},j={};function R(t){var e,n,i,o;if(1===arguments.length){if(r(t))return t.slice();if(this===j&&"string"==typeof t)return[t];if(o=D(t)){for(n=[];!(i=o.next()).done;)n.push(i.value);return n}if(null==t)return[t];if("number"==typeof(e=t.length)){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}var M="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function N(t,e){M=t,F=e}var F=function(){return!0},L=!new Error("").stack;function U(){if(L)try{throw U.arguments,new Error}catch(t){return t}return new Error}function B(t,e){var n=t.stack;return n?(e=e||0,0===n.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),n.split("\n").slice(e).filter(F).map(function(t){return"\n"+t}).join("")):""}var G=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Y=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(G),V={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function z(t,e){this._e=U(),this.name=t,this.message=e}function H(t,e,n,i){this._e=U(),this.failures=e,this.failedKeys=i,this.successCount=n}function X(t,e){this._e=U(),this.name="BulkError",this.failures=e,this.message=function(t,e){return t+". Errors: "+e.map(function(t){return t.toString()}).filter(function(t,e,n){return n.indexOf(t)===e}).join("\n")}(t,e)}d(z).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+B(this._e,2))}},toString:function(){return this.name+": "+this.message}}),d(H).from(z),d(X).from(z);var W=Y.reduce(function(t,e){return t[e]=e+"Error",t},{}),q=z,K=Y.reduce(function(t,e){var n=e+"Error";function i(t,i){this._e=U(),this.name=n,t?"string"==typeof t?(this.message=t,this.inner=i||null):"object"==typeof t&&(this.message=t.name+" "+t.message,this.inner=t):(this.message=V[e]||n,this.inner=null)}return d(i).from(q),t[e]=i,t},{});K.Syntax=SyntaxError,K.Type=TypeError,K.Range=RangeError;var Q=G.reduce(function(t,e){return t[e+"Error"]=K[e],t},{});var J=Y.reduce(function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=K[e]),t},{});function Z(){}function $(t){return t}function tt(t,e){return null==t||t===$?e:function(n){return e(t(n))}}function et(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function nt(t,e){return t===Z?e:function(){var n=t.apply(this,arguments);void 0!==n&&(arguments[0]=n);var i=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var o=e.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?et(i,this.onsuccess):i),r&&(this.onerror=this.onerror?et(r,this.onerror):r),void 0!==o?o:n}}function it(t,e){return t===Z?e:function(){t.apply(this,arguments);var n=this.onsuccess,i=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?et(n,this.onsuccess):n),i&&(this.onerror=this.onerror?et(i,this.onerror):i)}}function rt(t,e){return t===Z?e:function(n){var i=t.apply(this,arguments);s(n,i);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?et(r,this.onsuccess):r),o&&(this.onerror=this.onerror?et(o,this.onerror):o),void 0===i?void 0===a?void 0:a:s(i,a)}}function ot(t,e){return t===Z?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function st(t,e){return t===Z?e:function(){var n=t.apply(this,arguments);if(n&&"function"==typeof n.then){for(var i=this,r=arguments.length,o=new Array(r);r--;)o[r]=arguments[r];return n.then(function(){return e.apply(i,o)})}return e.apply(this,arguments)}}J.ModifyError=H,J.DexieError=z,J.BulkError=X;var at={},ut=100,ct=7,ht=function(){try{return new Function("let F=async ()=>{},p=F();return [p,Object.getPrototypeOf(p),Promise.resolve(),F.constructor];")()}catch(e){var t=o.Promise;return t?[t.resolve(),t.prototype,t.resolve()]:[]}}(),lt=ht[0],ft=ht[1],dt=ht[2],pt=ft&&ft.then,mt=lt&<.constructor,gt=ht[3],vt=!!dt,_t=!1,yt=dt?function(){dt.then(Bt)}:o.setImmediate?n.bind(null,Bt):o.MutationObserver?function(){var t=document.createElement("div");new MutationObserver(function(){Bt(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:function(){setTimeout(Bt,0)},wt=function(t,e){Pt.push([t,e]),xt&&(yt(),xt=!1)},bt=!0,xt=!0,Et=[],St=[],At=null,Tt=$,Ot={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ce,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(t){try{ce(t[0],t[1])}catch(t){}})}},kt=Ot,Pt=[],It=0,Ct=[];function Dt(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Z,this._lib=!1;var e=this._PSD=kt;if(M&&(this._stackHolder=U(),this._prev=null,this._numPrev=0),"function"!=typeof t){if(t!==at)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Mt(this,this._value))}this._state=null,this._value=null,++e.ref,function t(e,n){try{n(function(n){if(null===e._state){if(n===e)throw new TypeError("A promise cannot be resolved with itself.");var i=e._lib&&Gt();n&&"function"==typeof n.then?t(e,function(t,e){n instanceof Dt?n._then(t,e):n.then(t,e)}):(e._state=!0,e._value=n,Nt(e)),i&&Yt()}},Mt.bind(null,e))}catch(t){Mt(e,t)}}(this,t)}var jt={get:function(){var t=kt,e=Qt;function n(n,i){var r=this,o=!t.global&&(t!==kt||e!==Qt);o&&te();var s=new Dt(function(e,s){Ft(r,new Rt(se(n,t,o),se(i,t,o),e,s,t))});return M&&Ut(s,this),s}return n.prototype=at,n},set:function(t){f(this,"then",t&&t.prototype===at?jt:{get:function(){return t},set:jt.set})}};function Rt(t,e,n,i,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.resolve=n,this.reject=i,this.psd=r}function Mt(t,e){if(St.push(e),null===t._state){var n=t._lib&&Gt();e=Tt(e),t._state=!1,t._value=e,M&&null!==e&&"object"==typeof e&&!e._promise&&x(function(){var n=function t(e,n){var i;return p(e,n)||(i=a(e))&&t(i,n)}(e,"stack");e._promise=t,f(e,"stack",{get:function(){return _t?n&&(n.get?n.get.apply(e):n.value):t.stack}})}),function(t){Et.some(function(e){return e._value===t._value})||Et.push(t)}(t),Nt(t),n&&Yt()}}function Nt(t){var e=t._listeners;t._listeners=[];for(var n=0,i=e.length;n0;)for(t=Pt,Pt=[],n=t.length,e=0;e0);bt=!0,xt=!0}function Vt(){var t=Et;Et=[],t.forEach(function(t){t._PSD.onunhandled.call(null,t._value,t)});for(var e=Ct.slice(0),n=e.length;n;)e[--n]()}function zt(t){return new Dt(at,!1,t)}function Ht(t,e){var n=kt;return function(){var i=Gt(),r=kt;try{return ie(n,!0),t.apply(this,arguments)}catch(t){e&&e(t)}finally{ie(r,!1),i&&Yt()}}}h(Dt.prototype,{then:jt,_then:function(t,e){Ft(this,new Rt(null,null,t,e,kt))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],n=arguments[1];return"function"==typeof e?this.then(null,function(t){return t instanceof e?n(t):zt(t)}):this.then(null,function(t){return t&&t.name===e?n(t):zt(t)})},finally:function(t){return this.then(function(e){return t(),e},function(e){return t(),zt(e)})},stack:{get:function(){if(this._stack)return this._stack;try{_t=!0;var t=function t(e,n,i){if(n.length===i)return n;var r="";if(!1===e._state){var o,s,a=e._value;null!=a?(o=a.name||"Error",s=a.message||a,r=B(a,0)):(o=a,s=""),n.push(o+(s?": "+s:"")+r)}M&&((r=B(e._stackHolder,2))&&-1===n.indexOf(r)&&n.push(r),e._prev&&t(e._prev,n,i));return n}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=t),t}finally{_t=!1}}},timeout:function(t,e){var n=this;return t<1/0?new Dt(function(i,r){var o=setTimeout(function(){return r(new K.Timeout(e))},t);n.then(i,r).finally(clearTimeout.bind(null,o))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&f(Dt.prototype,Symbol.toStringTag,"Promise"),Ot.env=re(),h(Dt,{all:function(){var t=R.apply(null,arguments).map(ee);return new Dt(function(e,n){0===t.length&&e([]);var i=t.length;t.forEach(function(r,o){return Dt.resolve(r).then(function(n){t[o]=n,--i||e(t)},n)})})},resolve:function(t){if(t instanceof Dt)return t;if(t&&"function"==typeof t.then)return new Dt(function(e,n){t.then(e,n)});var e=new Dt(at,!0,t);return Ut(e,At),e},reject:zt,race:function(){var t=R.apply(null,arguments).map(ee);return new Dt(function(e,n){t.map(function(t){return Dt.resolve(t).then(e,n)})})},PSD:{get:function(){return kt},set:function(t){return kt=t}},newPSD:Zt,usePSD:oe,scheduler:{get:function(){return wt},set:function(t){wt=t}},rejectionMapper:{get:function(){return Tt},set:function(t){Tt=t}},follow:function(t,e){return new Dt(function(n,i){return Zt(function(e,n){var i=kt;i.unhandleds=[],i.onunhandled=n,i.finalize=et(function(){var t=this;!function(t){Ct.push(function e(){t();Ct.splice(Ct.indexOf(e),1)}),++It,wt(function(){0==--It&&Vt()},[])}(function(){0===t.unhandleds.length?e():n(t.unhandleds[0])})},i.finalize),t()},e,n,i)})}});var Xt={awaits:0,echoes:0,id:0},Wt=0,qt=[],Kt=0,Qt=0,Jt=0;function Zt(t,e,n,i){var r=kt,o=Object.create(r);o.parent=r,o.ref=0,o.global=!1,o.id=++Jt;var a=Ot.env;o.env=vt?{Promise:Dt,PromiseProp:{value:Dt,configurable:!0,writable:!0},all:Dt.all,race:Dt.race,resolve:Dt.resolve,reject:Dt.reject,nthen:ae(a.nthen,o),gthen:ae(a.gthen,o)}:{},e&&s(o,e),++r.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=oe(o,t,n,i);return 0===o.ref&&o.finalize(),u}function $t(){return Xt.id||(Xt.id=++Wt),++Xt.awaits,Xt.echoes+=ct,Xt.id}function te(t){!Xt.awaits||t&&t!==Xt.id||(0==--Xt.awaits&&(Xt.id=0),Xt.echoes=Xt.awaits*ct)}function ee(t){return Xt.echoes&&t&&t.constructor===mt?($t(),t.then(function(t){return te(),t},function(t){return te(),he(t)})):t}function ne(){var t=qt[qt.length-1];qt.pop(),ie(t,!1)}function ie(t,e){var n,i=kt;if((e?!Xt.echoes||Kt++&&t===kt:!Kt||--Kt&&t===kt)||(n=e?function(t){++Qt,Xt.echoes&&0!=--Xt.echoes||(Xt.echoes=Xt.id=0),qt.push(kt),ie(t,!0)}.bind(null,t):ne,pt.call(lt,n)),t!==kt&&(kt=t,i===Ot&&(Ot.env=re()),vt)){var r=Ot.env.Promise,s=t.env;ft.then=s.nthen,r.prototype.then=s.gthen,(i.global||t.global)&&(Object.defineProperty(o,"Promise",s.PromiseProp),r.all=s.all,r.race=s.race,r.resolve=s.resolve,r.reject=s.reject)}}function re(){var t=o.Promise;return vt?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:t.all,race:t.race,resolve:t.resolve,reject:t.reject,nthen:ft.then,gthen:t.prototype.then}:{}}function oe(t,e,n,i,r){var o=kt;try{return ie(t,!0),e(n,i,r)}finally{ie(o,!1)}}function se(t,e,n){return"function"!=typeof t?t:function(){var i=kt;n&&$t(),ie(e,!0);try{return t.apply(this,arguments)}finally{ie(i,!1)}}}function ae(t,e){return function(n,i){return t.call(this,se(n,e,!1),se(i,e,!1))}}var ue="unhandledrejection";function ce(t,e){var n;try{n=e.onuncatched(t)}catch(t){}if(!1!==n)try{var i,r={promise:e,reason:t};if(o.document&&document.createEvent?((i=document.createEvent("Event")).initEvent(ue,!0,!0),s(i,r)):o.CustomEvent&&s(i=new CustomEvent(ue,{detail:r}),r),i&&o.dispatchEvent&&(dispatchEvent(i),!o.PromiseRejectionEvent&&o.onunhandledrejection))try{o.onunhandledrejection(i)}catch(t){}i.defaultPrevented||console.warn("Unhandled rejection: "+(t.stack||t))}catch(t){}}var he=Dt.reject;function le(t){var e={},n=function(n,i){if(i){for(var r=arguments.length,o=new Array(r-1);--r;)o[r-1]=arguments[r];return e[n].subscribe.apply(null,o),t}if("string"==typeof n)return e[n]};n.addEventType=a;for(var o=1,s=arguments.length;o.",ve="String expected.",_e=[],ye="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),we=ye,be=ye,xe=function(t){return!/(dexie\.js|dexie\.min\.js)/.test(t)};function Ee(t,e){var n,a,u,l,d,p=Ee.dependencies,m=s({addons:Ee.addons,autoOpen:!0,indexedDB:p.indexedDB,IDBKeyRange:p.IDBKeyRange},e),y=m.addons,T=m.autoOpen,k=m.indexedDB,C=m.IDBKeyRange,D=this._dbSchema={},N=[],F=[],L={},G=null,Y=null,V=!1,z=null,W=!1,q="readwrite",Q=this,J=new Dt(function(t){n=t}),et=new Dt(function(t,e){a=e}),ot=!0,at=!!Re(k);function ut(t){this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null},this.stores({})}function ct(t,e,n){var r=Q._createTransaction(q,F,D);r.create(e),r._completion.catch(n);var o=r._reject.bind(r);Zt(function(){kt.trans=r,0===t?(i(D).forEach(function(t){ht(e,t,D[t].primKey,D[t].indexes)}),Dt.follow(function(){return Q.on.populate.fire(r)}).catch(o)):function(t,e,n){var r=[],o=N.filter(function(e){return e._cfg.version===t})[0];if(!o)throw new K.Upgrade("Dexie specification of currently installed DB version is missing");D=Q._dbSchema=o._cfg.dbschema;var s=!1;return N.filter(function(e){return e._cfg.version>t}).forEach(function(t){r.push(function(){var i=D,r=t._cfg.dbschema;jt(i,n),jt(r,n),D=Q._dbSchema=r;var o=function(t,e){var n={del:[],add:[],change:[]};for(var i in t)e[i]||n.del.push(i);for(i in e){var r=t[i],o=e[i];if(r){var s={name:i,def:o,recreate:!1,del:[],add:[],change:[]};if(r.primKey.src!==o.primKey.src)s.recreate=!0,n.change.push(s);else{var a=r.idxByName,u=o.idxByName;for(var c in a)u[c]||s.del.push(c);for(c in u){var h=a[c],l=u[c];h?h.src!==l.src&&s.change.push(l):s.add.push(l)}(s.del.length>0||s.add.length>0||s.change.length>0)&&n.change.push(s)}}else n.add.push([i,o])}return n}(i,r);if(o.add.forEach(function(t){ht(n,t[0],t[1].primKey,t[1].indexes)}),o.change.forEach(function(t){if(t.recreate)throw new K.Upgrade("Not yet support for changing primary key");var e=n.objectStore(t.name);t.add.forEach(function(t){lt(e,t)}),t.change.forEach(function(t){e.deleteIndex(t.name),lt(e,t)}),t.del.forEach(function(t){e.deleteIndex(t)})}),t._cfg.contentUpgrade)return s=!0,Dt.follow(function(){t._cfg.contentUpgrade(e)})}),r.push(function(e){s&&we||function(t,e){for(var n=0;n0?t:e}function Tt(t,e){return k.cmp(t,e)}function Ot(t,e){return k.cmp(e,t)}function Pt(t,e){return te?-1:t===e?0:1}function Ct(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}function jt(t,e){for(var n=e.db.objectStoreNames,i=0;iMath.pow(2,62)?0:e.oldVersion)/10,r,n)}},n),o.onsuccess=Ht(function(){if(r=null,G=o.result,_e.push(Q),ot)!function(){if(Q.verno=G.version/10,Q._dbSchema=D={},0===(F=g(G.objectStoreNames,0)).length)return;var t=G.transaction(je(F),"readonly");F.forEach(function(e){for(var n=t.objectStore(e),i=n.keyPath,r=i&&"string"==typeof i&&-1!==i.indexOf("."),o=new Ce(i,i||"",!1,!1,!!n.autoIncrement,i&&"string"!=typeof i,r),s=[],a=0;a0)try{jt(D,G.transaction(je(G.objectStoreNames),"readonly"))}catch(t){}G.onversionchange=Ht(function(t){Q._vcFired=!0,Q.on("versionchange").fire(t)}),at||"__dbnames"===t||fe.dbnames.put({name:t}).catch(Z),e()},n)})]).then(function(){return z=[],Dt.resolve(Ee.vip(Q.on.ready.fire)).then(function t(){if(z.length>0){var e=z.reduce(st,Z);return z=[],Dt.resolve(Ee.vip(e)).then(t)}})}).finally(function(){z=null}).then(function(){return V=!1,Q}).catch(function(t){try{r&&r.abort()}catch(t){}return V=!1,Q.close(),he(Y=t)}).finally(function(){W=!0,e()})},this.close=function(){var t=_e.indexOf(Q);if(t>=0&&_e.splice(t,1),G){try{G.close()}catch(t){}G=null}T=!1,Y=new K.DatabaseClosed,V&&a(Y),J=new Dt(function(t){n=t}),et=new Dt(function(t,e){a=e})},this.delete=function(){var e=arguments.length>0;return new Dt(function(n,i){if(e)throw new K.InvalidArgument("Arguments not allowed in db.delete()");function r(){Q.close();var e=k.deleteDatabase(t);e.onsuccess=Ht(function(){at||fe.dbnames.delete(t).catch(Z),n()}),e.onerror=Te(i),e.onblocked=Rt}V?J.then(r):r()})},this.backendDB=function(){return G},this.isOpen=function(){return null!==G},this.hasBeenClosed=function(){return Y&&Y instanceof K.DatabaseClosed},this.hasFailed=function(){return null!==Y},this.dynamicallyOpened=function(){return ot},this.name=t,h(this,{tables:{get:function(){return i(L).map(function(t){return L[t]})}}}),this.on=le(this,"populate","blocked","versionchange",{ready:[st,Z]}),this.on.ready.subscribe=v(this.on.ready.subscribe,function(t){return function(e,n){Ee.vip(function(){W?(Y||Dt.resolve().then(e),n&&t(e)):z?(z.push(e),n&&t(e)):(t(e),n||t(function t(){Q.on.ready.unsubscribe(e),Q.on.ready.unsubscribe(t)}))})}}),this.transaction=function(){var t=function(t,e,n){var i=arguments.length;if(i<2)throw new K.InvalidArgument("Too few arguments");var r=new Array(i-1);for(;--i;)r[i-1]=arguments[i];n=r.pop();var o=O(r);return[t,o,n]}.apply(this,arguments);return this._transaction.apply(this,t)},this._transaction=function(t,e,n){var i=kt.trans;i&&i.db===Q&&-1===t.indexOf("!")||(i=null);var r=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{var o=e.map(function(t){var e=t instanceof ft?t.name:t;if("string"!=typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e});if("r"==t||"readonly"==t)t="readonly";else{if("rw"!=t&&t!=q)throw new K.InvalidArgument("Invalid transaction mode: "+t);t=q}if(i){if("readonly"===i.mode&&t===q){if(!r)throw new K.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i=null}i&&o.forEach(function(t){if(i&&-1===i.storeNames.indexOf(t)){if(!r)throw new K.SubTransaction("Table "+t+" not included in parent transaction.");i=null}}),r&&i&&!i.active&&(i=null)}}catch(t){return i?i._promise(null,function(e,n){n(t)}):he(t)}return i?i._promise(t,s,"lock"):kt.trans?oe(kt.transless,function(){return Q._whenReady(s)}):Q._whenReady(s);function s(){return Dt.resolve().then(function(){var e,r=kt.transless||kt,s=Q._createTransaction(t,o,D,i),a={trans:s,transless:r};i?s.idbtrans=i.idbtrans:s.create(),n.constructor===gt&&$t();var u=Dt.follow(function(){if(e=n.call(s,s))if(e.constructor===mt){var t=te.bind(null,null);e.then(t,t)}else"function"==typeof e.next&&"function"==typeof e.throw&&(e=Ie(e))},a);return(e&&"function"==typeof e.then?Dt.resolve(e).then(function(t){return s.active?t:he(new K.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):u.then(function(){return e})).then(function(t){return i&&s._resolve(),s._completion.then(function(){return t})}).catch(function(t){return s._reject(t),he(t)})})}},this.table=function(t){if(!c(L,t))throw new K.InvalidTable("Table "+t+" does not exist");return L[t]},h(ft.prototype,{_trans:function(t,e,n){var i=this._tx||kt.trans;return i&&i.db===Q?i===kt.trans?i._promise(t,e,n):Zt(function(){return i._promise(t,e,n)},{trans:i,transless:kt.transless||kt}):function t(e,n,i){if(W||kt.letThrough){var r=Q._createTransaction(e,n,D);try{r.create()}catch(t){return he(t)}return r._promise(e,function(t,e){return Zt(function(){return kt.trans=r,i(t,e,r)})}).then(function(t){return r._completion.then(function(){return t})})}if(!V){if(!T)return he(new K.DatabaseClosed);Q.open().catch(Z)}return J.then(function(){return t(e,n,i)})}(t,[this.name],e)},_idbstore:function(t,e,n){var i=this.name;return this._trans(t,function(t,n,r){if(-1===r.storeNames.indexOf(i))throw new K.NotFound("Table"+i+" not part of transaction");return e(t,n,r.idbtrans.objectStore(i),r)},n)},get:function(t,e){if(t&&t.constructor===Object)return this.where(t).first(e);var n=this;return this._idbstore("readonly",function(e,i,r){var o=r.get(t);o.onerror=Te(i),o.onsuccess=Ht(function(){e(n.hook.reading.fire(o.result))},i)}).then(e)},where:function(t){if("string"==typeof t)return new _t(this,t);if(r(t))return new _t(this,"["+t.join("+")+"]");var e=i(t);if(1===e.length)return this.where(e[0]).equals(t[e[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(t){return t.compound&&e.every(function(e){return t.keyPath.indexOf(e)>=0})&&t.keyPath.every(function(t){return e.indexOf(t)>=0})})[0];if(n&&pe!==de)return this.where(n.name).equals(n.keyPath.map(function(e){return t[e]}));n||console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a compound index ["+e.join("+")+"]");var o=this.schema.idxByName,s=e.reduce(function(e,n){return[e[0]||o[n],e[0]||!o[n]?Ct(e[1],function(e){return""+E(e,n)==""+t[n]}):e[1]]},[null,null]),a=s[0];return a?this.where(a.name).equals(t[a.keyPath]).filter(s[1]):n?this.filter(s[1]):this.where(e).equals("")},count:function(t){return this.toCollection().count(t)},offset:function(t){return this.toCollection().offset(t)},limit:function(t){return this.toCollection().limit(t)},reverse:function(){return this.toCollection().reverse()},filter:function(t){return this.toCollection().and(t)},each:function(t){return this.toCollection().each(t)},toArray:function(t){return this.toCollection().toArray(t)},orderBy:function(t){return new yt(new _t(this,r(t)?"["+t.join("+")+"]":t))},toCollection:function(){return new yt(new _t(this))},mapToClass:function(t,e){this.schema.mappedClass=t;var n=Object.create(t.prototype);e&&Se(n,e),this.schema.instanceTemplate=n;var i=function(e){if(!e)return e;var n=Object.create(t.prototype);for(var i in e)if(c(e,i))try{n[i]=e[i]}catch(t){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=i,this.hook("reading",i),t},defineClass:function(t){return this.mapToClass(Ee.defineClass(t),t)},bulkDelete:function(t){return this.hook.deleting.fire===Z?this._idbstore(q,function(e,n,i,r){e(pt(i,r,t,!1,Z))}):this.where(":id").anyOf(t).delete().then(function(){})},bulkPut:function(t,e){var n=this;return this._idbstore(q,function(i,r,o){if(!o.keyPath&&!n.schema.primKey.auto&&!e)throw new K.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(o.keyPath&&e)throw new K.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(e&&e.length!==t.length)throw new K.InvalidArgument("Arguments objects and keys must have the same length");if(0===t.length)return i();var s,a,u=function(t){0===c.length?i(t):r(new X(n.name+".bulkPut(): "+c.length+" of "+h+" operations failed",c))},c=[],h=t.length,l=n;if(n.hook.creating.fire===Z&&n.hook.updating.fire===Z){a=dt(c);for(var f=0,d=t.length;f=0;--r){var o=p[r];(null==o||m[o])&&(n.push(t[r]),e&&i.push(o),null!=o&&(m[o]=null))}return n.reverse(),e&&i.reverse(),l.bulkAdd(n,i)}).then(function(t){var e=p[p.length-1];return null!=e?e:t}):l.bulkAdd(t)).then(u).catch(X,function(t){c=c.concat(t.failures),u()}).catch(r)}},"locked")},bulkAdd:function(t,e){var n=this,i=this.hook.creating.fire;return this._idbstore(q,function(r,o,s,a){if(!s.keyPath&&!n.schema.primKey.auto&&!e)throw new K.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(s.keyPath&&e)throw new K.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(e&&e.length!==t.length)throw new K.InvalidArgument("Arguments objects and keys must have the same length");if(0===t.length)return r();function u(t){0===f.length?r(t):o(new X(n.name+".bulkAdd(): "+f.length+" of "+d+" operations failed",f))}var c,h,l,f=[],d=t.length;if(i!==Z){var p,m=s.keyPath;h=dt(f,null,!0),l=Ae(null),x(function(){for(var n=0,r=t.length;n0&&!this._locked();){var t=this._blockedFuncs.shift();try{oe(t[1],t[0])}catch(t){}}return this},_locked:function(){return this._reculock&&kt.lockOwnerFor!==this},create:function(t){var e=this;if(!this.mode)return this;if(_(!this.idbtrans),!t&&!G)switch(Y&&Y.name){case"DatabaseClosedError":throw new K.DatabaseClosed(Y);case"MissingAPIError":throw new K.MissingAPI(Y.message,Y);default:throw new K.OpenFailed(Y)}if(!this.active)throw new K.TransactionInactive;return _(null===this._completion._state),(t=this.idbtrans=t||G.transaction(je(this.storeNames),this.mode)).onerror=Ht(function(n){Pe(n),e._reject(t.error)}),t.onabort=Ht(function(n){Pe(n),e.active&&e._reject(new K.Abort(t.error)),e.active=!1,e.on("abort").fire(n)}),t.oncomplete=Ht(function(){e.active=!1,e._resolve()}),this},_promise:function(t,e,n){var i=this;if(t===q&&this.mode!==q)return he(new K.ReadOnly("Transaction is readonly"));if(!this.active)return he(new K.TransactionInactive);if(this._locked())return new Dt(function(r,o){i._blockedFuncs.push([function(){i._promise(t,e,n).then(r,o)},kt])});if(n)return Zt(function(){var t=new Dt(function(t,n){i._lock();var r=e(t,n,i);r&&r.then&&r.then(t,n)});return t.finally(function(){return i._unlock()}),t._lib=!0,t});var r=new Dt(function(t,n){var r=e(t,n,i);r&&r.then&&r.then(t,n)});return r._lib=!0,r},_root:function(){return this.parent?this.parent._root():this},waitFor:function(t){var e=this._root();if(t=Dt.resolve(t),e._waitingFor)e._waitingFor=e._waitingFor.then(function(){return t});else{e._waitingFor=t,e._waitingQueue=[];var n=e.idbtrans.objectStore(e.storeNames[0]);!function t(){for(++e._spinCount;e._waitingQueue.length;)e._waitingQueue.shift()();e._waitingFor&&(n.get(-1/0).onsuccess=t)}()}var i=e._waitingFor;return new Dt(function(n,r){t.then(function(t){return e._waitingQueue.push(Ht(n.bind(null,t)))},function(t){return e._waitingQueue.push(Ht(r.bind(null,t)))}).finally(function(){e._waitingFor===i&&(e._waitingFor=null)})})},abort:function(){this.active&&this._reject(new K.Abort),this.active=!1},tables:{get:(l="Transaction.tables",d=function(){return L},function(){return console.warn(l+" is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. "+B(U(),1)),d.apply(this,arguments)})},table:function(t){return new ft(t,Q.table(t).schema,this)}}),h(_t.prototype,function(){function t(t,e,n){var i=t instanceof _t?new yt(t):t;return i._ctx.error=n?new n(e):new TypeError(e),i}function e(t){return new yt(t,function(){return C.only("")}).limit(0)}function n(t,e,n,i,r,o){for(var s=Math.min(t.length,i.length),a=-1,u=0;u=0?t.substr(0,a)+e[a]+n.substr(a+1):null;r(t[u],c)<0&&(a=u)}return s0)&&(p=v)}return e(null!==p?function(){t.continue(p+f)}:r),!1}),m}return{between:function(n,i,r,o){r=!1!==r,o=!0===o;try{return St(n,i)>0||0===St(n,i)&&(r||o)&&(!r||!o)?e(this):new yt(this,function(){return C.bound(n,i,!r,!o)})}catch(e){return t(this,ge)}},equals:function(t){return new yt(this,function(){return C.only(t)})},above:function(t){return new yt(this,function(){return C.lowerBound(t,!0)})},aboveOrEqual:function(t){return new yt(this,function(){return C.lowerBound(t)})},below:function(t){return new yt(this,function(){return C.upperBound(t,!0)})},belowOrEqual:function(t){return new yt(this,function(){return C.upperBound(t)})},startsWith:function(e){return"string"!=typeof e?t(this,ve):this.between(e,e+de,!0,!0)},startsWithIgnoreCase:function(t){return""===t?this.startsWith(t):i(this,function(t,e){return 0===t.indexOf(e[0])},[t],de)},equalsIgnoreCase:function(t){return i(this,function(t,e){return t===e[0]},[t],"")},anyOfIgnoreCase:function(){var t=R.apply(j,arguments);return 0===t.length?e(this):i(this,function(t,e){return-1!==e.indexOf(t)},t,"")},startsWithAnyOfIgnoreCase:function(){var t=R.apply(j,arguments);return 0===t.length?e(this):i(this,function(t,e){return e.some(function(e){return 0===t.indexOf(e)})},t,de)},anyOf:function(){var n=R.apply(j,arguments),i=Tt;try{n.sort(i)}catch(e){return t(this,ge)}if(0===n.length)return e(this);var r=new yt(this,function(){return C.bound(n[0],n[n.length-1])});r._ondirectionchange=function(t){i="next"===t?Tt:Ot,n.sort(i)};var o=0;return r._addAlgorithm(function(t,e,r){for(var s=t.key;i(s,n[o])>0;)if(++o===n.length)return e(r),!1;return 0===i(s,n[o])||(e(function(){t.continue(n[o])}),!1)}),r},notEqual:function(t){return this.inAnyRange([[me,t],[t,pe]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var e=R.apply(j,arguments);if(0===e.length)return new yt(this);try{e.sort(Tt)}catch(e){return t(this,ge)}var n=e.reduce(function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[me,e]]},null);return n.push([e[e.length-1],pe]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(n,i){if(0===n.length)return e(this);if(!n.every(function(t){return void 0!==t[0]&&void 0!==t[1]&&Tt(t[0],t[1])<=0}))return t(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",K.InvalidArgument);var r=!i||!1!==i.includeLowers,o=i&&!0===i.includeUppers;var s,a=Tt;function u(t,e){return a(t[0],e[0])}try{(s=n.reduce(function(t,e){for(var n=0,i=t.length;n0){r[0]=(o=r[0],s=e[0],St(o,s)<0?o:s),r[1]=At(r[1],e[1]);break}}var o,s;return n===i&&t.push(e),t},[])).sort(u)}catch(e){return t(this,ge)}var c=0,h=o?function(t){return Tt(t,s[c][1])>0}:function(t){return Tt(t,s[c][1])>=0},l=r?function(t){return Ot(t,s[c][0])>0}:function(t){return Ot(t,s[c][0])>=0};var f=h,d=new yt(this,function(){return C.bound(s[0][0],s[s.length-1][1],!r,!o)});return d._ondirectionchange=function(t){"next"===t?(f=h,a=Tt):(f=l,a=Ot),s.sort(u)},d._addAlgorithm(function(t,e,n){for(var i=t.key;f(i);)if(++c===s.length)return e(n),!1;return!!function(t){return!h(t)&&!l(t)}(i)||0!==St(i,s[c][1])&&0!==St(i,s[c][0])&&(e(function(){a===Tt?t.continue(s[c][0]):t.continue(s[c][1])}),!1)}),d},startsWithAnyOf:function(){var n=R.apply(j,arguments);return n.every(function(t){return"string"==typeof t})?0===n.length?e(this):this.inAnyRange(n.map(function(t){return[t,t+de]})):t(this,"startsWithAnyOf() only works with strings")}}}),h(yt.prototype,function(){function t(t,e){t.filter=Ct(t.filter,e)}function e(t,e,n){var i=t.replayFilter;t.replayFilter=i?function(){return Ct(i(),e())}:e,t.justLimit=n&&!i}function n(t,e){if(t.isPrimKey)return e;var n=t.table.schema.idxByName[t.index];if(!n)throw new K.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return e.index(n.name)}function r(t,e){var i=n(t,e);return t.keysOnly&&"openKeyCursor"in i?i.openKeyCursor(t.range||null,t.dir+t.unique):i.openCursor(t.range||null,t.dir+t.unique)}function o(t,e,n,i,o){var s=t.replayFilter?Ct(t.filter,t.replayFilter()):t.filter;t.or?function(){var a={},u=0;function h(){2==++u&&n()}function l(t,n,r){if(!s||s(n,r,h,i)){var o=n.primaryKey,u=""+o;"[object ArrayBuffer]"===u&&(u=""+new Uint8Array(o)),c(a,u)||(a[u]=!0,e(t,n,r))}}t.or._iterate(l,h,i,o),Et(r(t,o),t.algorithm,l,h,i,!t.keysOnly&&t.valueMapper)}():Et(r(t,o),Ct(t.algorithm,s),e,n,i,!t.keysOnly&&t.valueMapper)}return{_read:function(t,e){var n=this._ctx;return n.error?n.table._trans(null,he.bind(null,n.error)):n.table._idbstore("readonly",t).then(e)},_write:function(t){var e=this._ctx;return e.error?e.table._trans(null,he.bind(null,e.error)):e.table._idbstore(q,t,"locked")},_addAlgorithm:function(t){var e=this._ctx;e.algorithm=Ct(e.algorithm,t)},_iterate:function(t,e,n,i){return o(this._ctx,t,e,n,i)},clone:function(t){var e=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&s(n,t),e._ctx=n,e},raw:function(){return this._ctx.valueMapper=null,this},each:function(t){var e=this._ctx;return this._read(function(n,i,r){o(e,t,n,i,r)})},count:function(t){var e=this._ctx;if(wt(e,!0))return this._read(function(t,i,r){var o=n(e,r),s=e.range?o.count(e.range):o.count();s.onerror=Te(i),s.onsuccess=function(n){t(Math.min(n.target.result,e.limit))}},t);var i=0;return this._read(function(t,n,r){o(e,function(){return++i,!1},function(){t(i)},n,r)},t)},sortBy:function(t,e){var n=t.split(".").reverse(),i=n[0],r=n.length-1;function o(t,e){return e?o(t[n[e]],e-1):t[i]}var s="next"===this._ctx.dir?1:-1;function a(t,e){var n=o(t,r),i=o(e,r);return ni?s:0}return this.toArray(function(t){return t.sort(a)}).then(e)},toArray:function(t){var e=this._ctx;return this._read(function(t,i,r){if(u&&"next"===e.dir&&wt(e,!0)&&e.limit>0){var s=e.table.hook.reading.fire,a=n(e,r),c=e.limit<1/0?a.getAll(e.range,e.limit):a.getAll(e.range);c.onerror=Te(i),c.onsuccess=Oe(s===$?t:function(e){try{t(e.map(s))}catch(t){i(t)}})}else{var h=[];o(e,function(t){h.push(t)},function(){t(h)},i,r)}},t)},offset:function(t){var n=this._ctx;return t<=0?this:(n.offset+=t,wt(n)?e(n,function(){var e=t;return function(t,n){return 0===e||(1===e?(--e,!1):(n(function(){t.advance(e),e=0}),!1))}}):e(n,function(){var e=t;return function(){return--e<0}}),this)},limit:function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),e(this._ctx,function(){var e=t;return function(t,n,i){return--e<=0&&n(i),e>=0}},!0),this},until:function(e,n){return t(this._ctx,function(t,i,r){return!e(t.value)||(i(r),n)}),this},first:function(t){return this.limit(1).toArray(function(t){return t[0]}).then(t)},last:function(t){return this.reverse().first(t)},filter:function(e){var n,i;return t(this._ctx,function(t){return e(t.value)}),n=this._ctx,i=e,n.isMatch=Ct(n.isMatch,i),this},and:function(t){return this.filter(t)},or:function(t){return new _t(this._ctx.table,t,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(e,n){t(n.key,n)})},eachUniqueKey:function(t){return this._ctx.unique="unique",this.eachKey(t)},eachPrimaryKey:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(e,n){t(n.primaryKey,n)})},keys:function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var n=[];return this.each(function(t,e){n.push(e.key)}).then(function(){return n}).then(t)},primaryKeys:function(t){var e=this._ctx;if(u&&"next"===e.dir&&wt(e,!0)&&e.limit>0)return this._read(function(t,i,r){var o=n(e,r),s=e.limit<1/0?o.getAllKeys(e.range,e.limit):o.getAllKeys(e.range);s.onerror=Te(i),s.onsuccess=Oe(t)}).then(t);e.keysOnly=!e.isMatch;var i=[];return this.each(function(t,e){i.push(e.primaryKey)}).then(function(){return i}).then(t)},uniqueKeys:function(t){return this._ctx.unique="unique",this.keys(t)},firstKey:function(t){return this.limit(1).keys(function(t){return t[0]}).then(t)},lastKey:function(t){return this.reverse().firstKey(t)},distinct:function(){var e=this._ctx,n=e.index&&e.table.schema.idxByName[e.index];if(!n||!n.multi)return this;var i={};return t(this._ctx,function(t){var e=t.primaryKey.toString(),n=c(i,e);return i[e]=!0,!n}),this},modify:function(t){var e=this,n=this._ctx.table.hook,r=n.updating.fire,o=n.deleting.fire;return this._write(function(n,a,u,h){var l;if("function"==typeof t)l=r===Z&&o===Z?t:function(e){var n=P(e);if(!1===t.call(this,e,this))return!1;if(c(this,"value")){var s=I(n,this.value),a=r.call(this,s,this.primKey,n,h);a&&(e=this.value,i(a).forEach(function(t){S(e,t,a[t])}))}else o.call(this,this.primKey,e,h)};else if(r===Z){var f=i(t),d=f.length;l=function(e){for(var n=!1,i=0;i0?b():n(g))}e.clone().raw()._iterate(function(t,e){w=e.primaryKey;var n={primKey:e.primaryKey,value:t,onsuccess:null,onerror:null};function i(t){return _.push(t),y.push(n.primKey),T(),!0}if(!1!==l.call(n,t,n)){var r=!c(n,"value");++m,x(function(){var t=r?e.delete():e.update(n.value);t._hookCtx=n,t.onerror=ke(i),t.onsuccess=Ae(function(){++g,T()})},i)}else n.onsuccess&&n.onsuccess(n.value)},function(){v=!0,T()},b,u)})},delete:function(){var t=this,e=this._ctx,n=e.range,i=e.table.hook.deleting.fire,r=i!==Z;if(!r&&wt(e)&&(e.isPrimKey&&!be||!n))return this._write(function(t,e,i){var r=Te(e),o=n?i.count(n):i.count();o.onerror=r,o.onsuccess=function(){var s=o.result;x(function(){var e=n?i.delete(n):i.clear();e.onerror=r,e.onsuccess=function(){return t(s)}},function(t){return e(t)})}});var o=r?2e3:1e4;return this._write(function(n,s,a,u){var c=0,h=t.clone({keysOnly:!e.isMatch&&!r}).distinct().limit(o).raw(),l=[],f=function(){return h.each(r?function(t,e){l.push([e.primaryKey,e.value])}:function(t,e){l.push(e.primaryKey)}).then(function(){return r?l.sort(function(t,e){return Tt(t[0],e[0])}):l.sort(Tt),pt(a,u,l,r,i)}).then(function(){var t=l.length;return c+=t,l=[],t0?console.warn("Another connection wants to upgrade database '"+Q.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+Q.name+"'. Closing db now to resume the delete request."),Q.close()}),Q.on("blocked",function(t){!t.newVersion||t.newVersion * Licensed under MIT License */ /*! * UAParser.js v0.7.20 * Lightweight JavaScript-based User-Agent string parser * https://github.com/faisalman/ua-parser-js * * Copyright © 2012-2019 Faisal Salman * Licensed under MIT License */ !function(r,o){"use strict";var s="model",a="name",u="type",c="vendor",h="version",l="mobile",f="tablet",d={extend:function(t,e){var n={};for(var i in t)e[i]&&e[i].length%2==0?n[i]=e[i].concat(t[i]):n[i]=t[i];return n},has:function(t,e){return"string"==typeof t&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},major:function(t){return"string"==typeof t?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(t,e){for(var n,i,r,o,s,a,u=0;u0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;u+=2}},str:function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2];if("string"!=typeof t)throw new Error("Input must be a string");var o=r(t);"number"!=typeof e&&(e=parseInt(e,10));if(e>=o)return"";e<0&&(e+=o);var s=void 0;void 0===n?s=o:("number"!=typeof n&&(n=parseInt(n,10)),s=n>=0?n+e:e);return t.match(i.astralRange).slice(e,s).join("")},e.limit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"right";if("string"!=typeof t||"number"!=typeof e)throw new Error("Invalid arguments specified");if(-1===["left","right"].indexOf(i))throw new Error("Pad position should be either left or right");"string"!=typeof n&&(n=String(n));var s=r(t);if(s>e)return o(t,0,e);if(s=r.length)return""===e?r.length:-1;if(""===e)return n;var o=e.match(i.astralRange),s=!1,a=void 0;for(a=n;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2];if("string"!=typeof t)throw new Error("Input must be a string");return("number"!=typeof e||e<0)&&(e=0),"number"==typeof n&&n<0&&(n=0),t.match(i.astralRange).slice(e,n).join("")}},cdjbgfgiig:function(t,e,n){function i(t){return t=t||{},function(e,n){for(var i in e)if(e.hasOwnProperty(i)){var r=t[i];n(r&&r.name||i,e[i],r&&r.printer,r&&r.width)}}}function r(){Object.defineProperties(this,{__printers:{value:{},enumerable:!1},__cell:{value:function(t,e,n){this[t]=e,this.__printers[t]=n},enumerable:!1}})}function o(t,e,n){var i=s.RightPadder(),r={};function o(t,n){if(null!=e[t].width)r[t]=e[t].width;else{if(r[t]>n)return;r[t]=n}}function a(t,e){return t.__printers&&t.__printers[e]||s.string}function u(t,e){return t.length<=e?i(t,e):(t=t.slice(0,e),e>3&&(t=t.slice(0,-3).concat("...")),t)}return t.forEach(function(t){for(var n in e)o(n,a(t,n).call(t,t[n]).length)}),t.map(function(t){return function(t){var i="",o=!0;for(var s in e){o||(i+=n),o=!1;var a=r[s];i+=u(t(s,a),a)}return i+="\n"}(function(e,n){return a(t,e).call(t,t[e],n)})}).join("")}function s(){this.columns={},this.rows=[],this._row=new r}t.exports=s,s.string=function(t){return void 0===t?"":String(t)},s.Number=function(t){return function(e,n){if(void 0===e)return"";if("number"!=typeof e)throw new Error(String(e)+" is not a number");var i=null==t?String(e):e.toFixed(t).toString();return s.padLeft(i,n)}},s.RightPadder=function(t){return t=t||" ",function(e,n){for(var i=String(e),r=i.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=(0,r.default)();if(u||(u=(0,o.default)(a)),e.events)throw new Error("Event handlers cannot be overwritten.");if("string"==typeof t&&!document.getElementById(t))throw new Error('Element "'+t+'" does not exist.');e.events=s.default.proxyEvents(a);var c=new Promise(function(n){if("string"==typeof t||t instanceof HTMLElement)u.then(function(i){var r=new i.Player(t,e);return a.on("ready",function(){n(r)}),null});else{if(!("object"===(void 0===t?"undefined":i(t))&&t.playVideo instanceof Function))throw new TypeError("Unexpected state.");n(t)}}),h=s.default.promisifyPlayer(c,n);return h.on=a.on,h.off=a.off,h},t.exports=e.default},cfabbaghh:function(t,e){ /*! * @license EaselJS * Visit http://createjs.com/ for documentation, updates and examples. * * Copyright (c) 2011-2015 gskinner.com, inc. * * Distributed under the terms of the MIT license. * http://www.opensource.org/licenses/mit-license.html * * This notice shall be included in all copies or substantial portions of the Software. */ var n=n||{};n.extend=function(t,e){"use strict";function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n},(n=n||{}).promote=function(t,e){"use strict";var n=t.prototype,i=Object.getPrototypeOf&&Object.getPrototypeOf(n)||n.__proto__;if(i)for(var r in n[(e+="_")+"constructor"]=i.constructor,i)n.hasOwnProperty(r)&&"function"==typeof i[r]&&(n[e+r]=i[r]);return t},(n=n||{}).indexOf=function(t,e){"use strict";for(var n=0,i=t.length;i>n;n++)if(e===t[n])return n;return-1},n=n||{},function(){"use strict";function t(t,e,n){this.type=t,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!e,this.cancelable=!!n,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e=t.prototype;e.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},e.stopPropagation=function(){this.propagationStopped=!0},e.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.remove=function(){this.removed=!0},e.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[Event (type="+this.type+")]"},n.Event=t}(),n=n||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var e=t.prototype;t.initialize=function(t){t.addEventListener=e.addEventListener,t.on=e.on,t.removeEventListener=t.off=e.removeEventListener,t.removeAllEventListeners=e.removeAllEventListeners,t.hasEventListener=e.hasEventListener,t.dispatchEvent=e.dispatchEvent,t._dispatchEvent=e._dispatchEvent,t.willTrigger=e.willTrigger},e.addEventListener=function(t,e,n){var i,r=(i=n?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{})[t];return r&&this.removeEventListener(t,e,n),(r=i[t])?r.push(e):i[t]=[e],e},e.on=function(t,e,n,i,r,o){return e.handleEvent&&(n=n||e,e=e.handleEvent),n=n||this,this.addEventListener(t,function(t){e.call(n,t,r),i&&t.remove()},o)},e.removeEventListener=function(t,e,n){var i=n?this._captureListeners:this._listeners;if(i){var r=i[t];if(r)for(var o=0,s=r.length;s>o;o++)if(r[o]==e){1==s?delete i[t]:r.splice(o,1);break}}},e.off=e.removeEventListener,e.removeAllEventListeners=function(t){t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null},e.dispatchEvent=function(t,e,i){if("string"==typeof t){var r=this._listeners;if(!(e||r&&r[t]))return!0;t=new n.Event(t,e,i)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var o=this,s=[o];o.parent;)s.push(o=o.parent);var a,u=s.length;for(a=u-1;a>=0&&!t.propagationStopped;a--)s[a]._dispatchEvent(t,1+(0==a));for(a=1;u>a&&!t.propagationStopped;a++)s[a]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return!t.defaultPrevented},e.hasEventListener=function(t){var e=this._listeners,n=this._captureListeners;return!!(e&&e[t]||n&&n[t])},e.willTrigger=function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1},e.toString=function(){return"[EventDispatcher]"},e._dispatchEvent=function(t,e){var n,i=1==e?this._captureListeners:this._listeners;if(t&&i){var r=i[t.type];if(!r||!(n=r.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,r=r.slice();for(var o=0;n>o&&!t.immediatePropagationStopped;o++){var s=r[o];s.handleEvent?s.handleEvent(t):s(t),t.removed&&(this.off(t.type,s,1==e),t.removed=!1)}}},n.EventDispatcher=t}(),n=n||{},function(){"use strict";function t(){throw"Ticker cannot be instantiated."}t.RAF_SYNCHED="synched",t.RAF="raf",t.TIMEOUT="timeout",t.useRAF=!1,t.timingMode=null,t.maxDelta=0,t.paused=!1,t.removeEventListener=null,t.removeAllEventListeners=null,t.dispatchEvent=null,t.hasEventListener=null,t._listeners=null,n.EventDispatcher.initialize(t),t._addEventListener=t.addEventListener,t.addEventListener=function(){return!t._inited&&t.init(),t._addEventListener.apply(t,arguments)},t._inited=!1,t._startTime=0,t._pausedTime=0,t._ticks=0,t._pausedTicks=0,t._interval=50,t._lastTime=0,t._times=null,t._tickTimes=null,t._timerId=null,t._raf=!0,t.setInterval=function(e){t._interval=e,t._inited&&t._setupTick()},t.getInterval=function(){return t._interval},t.setFPS=function(e){t.setInterval(1e3/e)},t.getFPS=function(){return 1e3/t._interval};try{Object.defineProperties(t,{interval:{get:t.getInterval,set:t.setInterval},framerate:{get:t.getFPS,set:t.setFPS}})}catch(t){console.log(t)}t.init=function(){t._inited||(t._inited=!0,t._times=[],t._tickTimes=[],t._startTime=t._getTime(),t._times.push(t._lastTime=0),t.interval=t._interval)},t.reset=function(){if(t._raf){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;e&&e(t._timerId)}else clearTimeout(t._timerId);t.removeAllEventListeners("tick"),t._timerId=t._times=t._tickTimes=null,t._startTime=t._lastTime=t._ticks=0,t._inited=!1},t.getMeasuredTickTime=function(e){var n=0,i=t._tickTimes;if(!i||i.length<1)return-1;e=Math.min(i.length,e||0|t.getFPS());for(var r=0;e>r;r++)n+=i[r];return n/e},t.getMeasuredFPS=function(e){var n=t._times;return!n||n.length<2?-1:(e=Math.min(n.length-1,e||0|t.getFPS()),1e3/((n[0]-n[e])/e))},t.setPaused=function(e){t.paused=e},t.getPaused=function(){return t.paused},t.getTime=function(e){return t._startTime?t._getTime()-(e?t._pausedTime:0):-1},t.getEventTime=function(e){return t._startTime?(t._lastTime||t._startTime)-(e?t._pausedTime:0):-1},t.getTicks=function(e){return t._ticks-(e?t._pausedTicks:0)},t._handleSynch=function(){t._timerId=null,t._setupTick(),t._getTime()-t._lastTime>=.97*(t._interval-1)&&t._tick()},t._handleRAF=function(){t._timerId=null,t._setupTick(),t._tick()},t._handleTimeout=function(){t._timerId=null,t._setupTick(),t._tick()},t._setupTick=function(){if(null==t._timerId){var e=t.timingMode||t.useRAF&&t.RAF_SYNCHED;if(e==t.RAF_SYNCHED||e==t.RAF){var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(n)return t._timerId=n(e==t.RAF?t._handleRAF:t._handleSynch),void(t._raf=!0)}t._raf=!1,t._timerId=setTimeout(t._handleTimeout,t._interval)}},t._tick=function(){var e=t.paused,i=t._getTime(),r=i-t._lastTime;if(t._lastTime=i,t._ticks++,e&&(t._pausedTicks++,t._pausedTime+=r),t.hasEventListener("tick")){var o=new n.Event("tick"),s=t.maxDelta;o.delta=s&&r>s?s:r,o.paused=e,o.time=i,o.runTime=i-t._pausedTime,t.dispatchEvent(o)}for(t._tickTimes.unshift(t._getTime()-i);t._tickTimes.length>100;)t._tickTimes.pop();for(t._times.unshift(i);t._times.length>100;)t._times.pop()};var e=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);t._getTime=function(){return(e&&e.call(performance)||(new Date).getTime())-t._startTime},n.Ticker=t}(),n=n||{},function(){"use strict";function t(){throw"UID cannot be instantiated"}t._nextID=0,t.get=function(){return t._nextID++},n.UID=t}(),n=n||{},function(){"use strict";function t(t,e,n,i,r,o,s,a,u,c,h){this.Event_constructor(t,e,n),this.stageX=i,this.stageY=r,this.rawX=null==u?i:u,this.rawY=null==c?r:c,this.nativeEvent=o,this.pointerID=s,this.primary=!!a,this.relatedTarget=h}var e=n.extend(t,n.Event);e._get_localX=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).x},e._get_localY=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).y},e._get_isTouch=function(){return-1!==this.pointerID};try{Object.defineProperties(e,{localX:{get:e._get_localX},localY:{get:e._get_localY},isTouch:{get:e._get_isTouch}})}catch(t){}e.clone=function(){return new t(this.type,this.bubbles,this.cancelable,this.stageX,this.stageY,this.nativeEvent,this.pointerID,this.primary,this.rawX,this.rawY)},e.toString=function(){return"[MouseEvent (type="+this.type+" stageX="+this.stageX+" stageY="+this.stageY+")]"},n.MouseEvent=n.promote(t,"Event")}(),n=n||{},function(){"use strict";function t(t,e,n,i,r,o){this.setValues(t,e,n,i,r,o)}var e=t.prototype;t.DEG_TO_RAD=Math.PI/180,t.identity=null,e.setValues=function(t,e,n,i,r,o){return this.a=null==t?1:t,this.b=e||0,this.c=n||0,this.d=null==i?1:i,this.tx=r||0,this.ty=o||0,this},e.append=function(t,e,n,i,r,o){var s=this.a,a=this.b,u=this.c,c=this.d;return(1!=t||0!=e||0!=n||1!=i)&&(this.a=s*t+u*e,this.b=a*t+c*e,this.c=s*n+u*i,this.d=a*n+c*i),this.tx=s*r+u*o+this.tx,this.ty=a*r+c*o+this.ty,this},e.prepend=function(t,e,n,i,r,o){var s=this.a,a=this.c,u=this.tx;return this.a=t*s+n*this.b,this.b=e*s+i*this.b,this.c=t*a+n*this.d,this.d=e*a+i*this.d,this.tx=t*u+n*this.ty+r,this.ty=e*u+i*this.ty+o,this},e.appendMatrix=function(t){return this.append(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.prependMatrix=function(t){return this.prepend(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.appendTransform=function(e,n,i,r,o,s,a,u,c){if(o%360)var h=o*t.DEG_TO_RAD,l=Math.cos(h),f=Math.sin(h);else l=1,f=0;return s||a?(s*=t.DEG_TO_RAD,a*=t.DEG_TO_RAD,this.append(Math.cos(a),Math.sin(a),-Math.sin(s),Math.cos(s),e,n),this.append(l*i,f*i,-f*r,l*r,0,0)):this.append(l*i,f*i,-f*r,l*r,e,n),(u||c)&&(this.tx-=u*this.a+c*this.c,this.ty-=u*this.b+c*this.d),this},e.prependTransform=function(e,n,i,r,o,s,a,u,c){if(o%360)var h=o*t.DEG_TO_RAD,l=Math.cos(h),f=Math.sin(h);else l=1,f=0;return(u||c)&&(this.tx-=u,this.ty-=c),s||a?(s*=t.DEG_TO_RAD,a*=t.DEG_TO_RAD,this.prepend(l*i,f*i,-f*r,l*r,0,0),this.prepend(Math.cos(a),Math.sin(a),-Math.sin(s),Math.cos(s),e,n)):this.prepend(l*i,f*i,-f*r,l*r,e,n),this},e.rotate=function(e){e*=t.DEG_TO_RAD;var n=Math.cos(e),i=Math.sin(e),r=this.a,o=this.b;return this.a=r*n+this.c*i,this.b=o*n+this.d*i,this.c=-r*i+this.c*n,this.d=-o*i+this.d*n,this},e.skew=function(e,n){return e*=t.DEG_TO_RAD,n*=t.DEG_TO_RAD,this.append(Math.cos(n),Math.sin(n),-Math.sin(e),Math.cos(e),0,0),this},e.scale=function(t,e){return this.a*=t,this.b*=t,this.c*=e,this.d*=e,this},e.translate=function(t,e){return this.tx+=this.a*t+this.c*e,this.ty+=this.b*t+this.d*e,this},e.identity=function(){return this.a=this.d=1,this.b=this.c=this.tx=this.ty=0,this},e.invert=function(){var t=this.a,e=this.b,n=this.c,i=this.d,r=this.tx,o=t*i-e*n;return this.a=i/o,this.b=-e/o,this.c=-n/o,this.d=t/o,this.tx=(n*this.ty-i*r)/o,this.ty=-(t*this.ty-e*r)/o,this},e.isIdentity=function(){return 0===this.tx&&0===this.ty&&1===this.a&&0===this.b&&0===this.c&&1===this.d},e.equals=function(t){return this.tx===t.tx&&this.ty===t.ty&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d},e.transformPoint=function(t,e,n){return(n=n||{}).x=t*this.a+e*this.c+this.tx,n.y=t*this.b+e*this.d+this.ty,n},e.decompose=function(e){null==e&&(e={}),e.x=this.tx,e.y=this.ty,e.scaleX=Math.sqrt(this.a*this.a+this.b*this.b),e.scaleY=Math.sqrt(this.c*this.c+this.d*this.d);var n=Math.atan2(-this.c,this.d),i=Math.atan2(this.b,this.a);return 1e-5>Math.abs(1-n/i)?(e.rotation=i/t.DEG_TO_RAD,this.a<0&&this.d>=0&&(e.rotation+=e.rotation<=0?180:-180),e.skewX=e.skewY=0):(e.skewX=n/t.DEG_TO_RAD,e.skewY=i/t.DEG_TO_RAD),e},e.copy=function(t){return this.setValues(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.tx,this.ty)},e.toString=function(){return"[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"},t.identity=new t,n.Matrix2D=t}(),n=n||{},function(){"use strict";function t(t,e,n,i,r){this.setValues(t,e,n,i,r)}var e=t.prototype;e.setValues=function(t,e,i,r,o){return this.visible=null==t||!!t,this.alpha=null==e?1:e,this.shadow=i,this.compositeOperation=r,this.matrix=o||this.matrix&&this.matrix.identity()||new n.Matrix2D,this},e.append=function(t,e,n,i,r){return this.alpha*=e,this.shadow=n||this.shadow,this.compositeOperation=i||this.compositeOperation,this.visible=this.visible&&t,r&&this.matrix.appendMatrix(r),this},e.prepend=function(t,e,n,i,r){return this.alpha*=e,this.shadow=this.shadow||n,this.compositeOperation=this.compositeOperation||i,this.visible=this.visible&&t,r&&this.matrix.prependMatrix(r),this},e.identity=function(){return this.visible=!0,this.alpha=1,this.shadow=this.compositeOperation=null,this.matrix.identity(),this},e.clone=function(){return new t(this.alpha,this.shadow,this.compositeOperation,this.visible,this.matrix.clone())},n.DisplayProps=t}(),n=n||{},function(){"use strict";function t(t,e){this.setValues(t,e)}var e=t.prototype;e.setValues=function(t,e){return this.x=t||0,this.y=e||0,this},e.copy=function(t){return this.x=t.x,this.y=t.y,this},e.clone=function(){return new t(this.x,this.y)},e.toString=function(){return"[Point (x="+this.x+" y="+this.y+")]"},n.Point=t}(),n=n||{},function(){"use strict";function t(t,e,n,i){this.setValues(t,e,n,i)}var e=t.prototype;e.setValues=function(t,e,n,i){return this.x=t||0,this.y=e||0,this.width=n||0,this.height=i||0,this},e.extend=function(t,e,n,i){return i=i||0,t+(n=n||0)>this.x+this.width&&(this.width=t+n-this.x),e+i>this.y+this.height&&(this.height=e+i-this.y),t=this.x&&t+n<=this.x+this.width&&e>=this.y&&e+i<=this.y+this.height},e.union=function(t){return this.clone().extend(t.x,t.y,t.width,t.height)},e.intersection=function(e){var n=e.x,i=e.y,r=n+e.width,o=i+e.height;return this.x>n&&(n=this.x),this.y>i&&(i=this.y),this.x+this.width=r||i>=o?null:new t(n,i,r-n,o-i)},e.intersects=function(t){return t.x<=this.x+this.width&&this.x<=t.x+t.width&&t.y<=this.y+this.height&&this.y<=t.y+t.height},e.isEmpty=function(){return this.width<=0||this.height<=0},e.clone=function(){return new t(this.x,this.y,this.width,this.height)},e.toString=function(){return"[Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")]"},n.Rectangle=t}(),n=n||{},function(){"use strict";function t(t,e,n,i,r,o,s){t.addEventListener&&(this.target=t,this.overLabel=null==n?"over":n,this.outLabel=null==e?"out":e,this.downLabel=null==i?"down":i,this.play=r,this._isPressed=!1,this._isOver=!1,this._enabled=!1,t.mouseChildren=!1,this.enabled=!0,this.handleEvent({}),o&&(s&&(o.actionsEnabled=!1,o.gotoAndStop&&o.gotoAndStop(s)),t.hitArea=o))}var e=t.prototype;e.setEnabled=function(t){if(t!=this._enabled){var e=this.target;this._enabled=t,t?(e.cursor="pointer",e.addEventListener("rollover",this),e.addEventListener("rollout",this),e.addEventListener("mousedown",this),e.addEventListener("pressup",this),e._reset&&(e.__reset=e._reset,e._reset=this._reset)):(e.cursor=null,e.removeEventListener("rollover",this),e.removeEventListener("rollout",this),e.removeEventListener("mousedown",this),e.removeEventListener("pressup",this),e.__reset&&(e._reset=e.__reset,delete e.__reset))}},e.getEnabled=function(){return this._enabled};try{Object.defineProperties(e,{enabled:{get:e.getEnabled,set:e.setEnabled}})}catch(t){}e.toString=function(){return"[ButtonHelper]"},e.handleEvent=function(t){var e,n=this.target,i=t.type;"mousedown"==i?(this._isPressed=!0,e=this.downLabel):"pressup"==i?(this._isPressed=!1,e=this._isOver?this.overLabel:this.outLabel):"rollover"==i?(this._isOver=!0,e=this._isPressed?this.downLabel:this.overLabel):(this._isOver=!1,e=this._isPressed?this.overLabel:this.outLabel),this.play?n.gotoAndPlay&&n.gotoAndPlay(e):n.gotoAndStop&&n.gotoAndStop(e)},e._reset=function(){var t=this.paused;this.__reset(),this.paused=t},n.ButtonHelper=t}(),n=n||{},function(){"use strict";function t(t,e,n,i){this.color=t||"black",this.offsetX=e||0,this.offsetY=n||0,this.blur=i||0}var e=t.prototype;t.identity=new t("transparent",0,0,0),e.toString=function(){return"[Shadow]"},e.clone=function(){return new t(this.color,this.offsetX,this.offsetY,this.blur)},n.Shadow=t}(),n=n||{},function(){"use strict";function t(t){this.EventDispatcher_constructor(),this.complete=!0,this.framerate=0,this._animations=null,this._frames=null,this._images=null,this._data=null,this._loadCount=0,this._frameHeight=0,this._frameWidth=0,this._numFrames=0,this._regX=0,this._regY=0,this._spacing=0,this._margin=0,this._parseData(t)}var e=n.extend(t,n.EventDispatcher);e.getAnimations=function(){return this._animations.slice()};try{Object.defineProperties(e,{animations:{get:e.getAnimations}})}catch(t){}e.getNumFrames=function(t){if(null==t)return this._frames?this._frames.length:this._numFrames||0;var e=this._data[t];return null==e?0:e.frames.length},e.getAnimation=function(t){return this._data[t]},e.getFrame=function(t){var e;return this._frames&&(e=this._frames[t])?e:null},e.getFrameBounds=function(t,e){var i=this.getFrame(t);return i?(e||new n.Rectangle).setValues(-i.regX,-i.regY,i.rect.width,i.rect.height):null},e.toString=function(){return"[SpriteSheet]"},e.clone=function(){throw"SpriteSheet cannot be cloned."},e._parseData=function(t){var e,i,r,o;if(null!=t){if(this.framerate=t.framerate||0,t.images&&(i=t.images.length)>0)for(o=this._images=[],e=0;i>e;e++){var s=t.images[e];if("string"==typeof s){var a=s;(s=document.createElement("img")).src=a}o.push(s),s.getContext||s.naturalWidth||(this._loadCount++,this.complete=!1,function(t,e){s.onload=function(){t._handleImageLoad(e)}}(this,a),function(t,e){s.onerror=function(){t._handleImageError(e)}}(this,a))}if(null==t.frames);else if(Array.isArray(t.frames))for(this._frames=[],e=0,i=(o=t.frames).length;i>e;e++){var u=o[e];this._frames.push({image:this._images[u[4]?u[4]:0],rect:new n.Rectangle(u[0],u[1],u[2],u[3]),regX:u[5]||0,regY:u[6]||0})}else r=t.frames,this._frameWidth=r.width,this._frameHeight=r.height,this._regX=r.regX||0,this._regY=r.regY||0,this._spacing=r.spacing||0,this._margin=r.margin||0,this._numFrames=r.count,0==this._loadCount&&this._calculateFrames();var c;if(this._animations=[],null!=(r=t.animations))for(c in this._data={},r){var h={name:c},l=r[c];if("number"==typeof l)o=h.frames=[l];else if(Array.isArray(l))if(1==l.length)h.frames=[l[0]];else for(h.speed=l[3],h.next=l[2],o=h.frames=[],e=l[0];e<=l[1];e++)o.push(e);else{h.speed=l.speed,h.next=l.next;var f=l.frames;o=h.frames="number"==typeof f?[f]:f.slice(0)}(!0===h.next||void 0===h.next)&&(h.next=c),(!1===h.next||o.length<2&&h.next==c)&&(h.next=null),h.speed||(h.speed=1),this._animations.push(c),this._data[c]=h}}},e._handleImageLoad=function(){0==--this._loadCount&&(this._calculateFrames(),this.complete=!0,this.dispatchEvent("complete"))},e._handleImageError=function(t){var e=new n.Event("error");e.src=t,this.dispatchEvent(e),0==--this._loadCount&&this.dispatchEvent("complete")},e._calculateFrames=function(){if(!this._frames&&0!=this._frameWidth){this._frames=[];var t=this._numFrames||1e5,e=0,i=this._frameWidth,r=this._frameHeight,o=this._spacing,s=this._margin;t:for(var a=0,u=this._images;a=f;){for(var d=s;h-s-i>=d;){if(e>=t)break t;e++,this._frames.push({image:c,rect:new n.Rectangle(d,f,i,r),regX:this._regX,regY:this._regY}),d+=i+o}f+=r+o}this._numFrames=e}},n.SpriteSheet=n.promote(t,"EventDispatcher")}(),n=n||{},function(){"use strict";function t(){this.command=null,this._stroke=null,this._strokeStyle=null,this._oldStrokeStyle=null,this._strokeDash=null,this._oldStrokeDash=null,this._strokeIgnoreScale=!1,this._fill=null,this._instructions=[],this._commitIndex=0,this._activeInstructions=[],this._dirty=!1,this._storeIndex=0,this.clear()}var e=t.prototype,i=t;t.getRGB=function(t,e,n,i){return null!=t&&null==n&&(i=e,n=255&t,e=t>>8&255,t=t>>16&255),null==i?"rgb("+t+","+e+","+n+")":"rgba("+t+","+e+","+n+","+i+")"},t.getHSL=function(t,e,n,i){return null==i?"hsl("+t%360+","+e+"%,"+n+"%)":"hsla("+t%360+","+e+"%,"+n+"%,"+i+")"},t.BASE_64={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63},t.STROKE_CAPS_MAP=["butt","round","square"],t.STROKE_JOINTS_MAP=["miter","round","bevel"];var r=n.createCanvas?n.createCanvas():document.createElement("canvas");r.getContext&&(t._ctx=r.getContext("2d"),r.width=r.height=1),e.getInstructions=function(){return this._updateInstructions(),this._instructions};try{Object.defineProperties(e,{instructions:{get:e.getInstructions}})}catch(t){}e.isEmpty=function(){return!(this._instructions.length||this._activeInstructions.length)},e.draw=function(t,e){this._updateInstructions();for(var n=this._instructions,i=this._storeIndex,r=n.length;r>i;i++)n[i].exec(t,e)},e.drawAsPath=function(t){this._updateInstructions();for(var e,n=this._instructions,i=this._storeIndex,r=n.length;r>i;i++)!1!==(e=n[i]).path&&e.exec(t)},e.moveTo=function(t,e){return this.append(new i.MoveTo(t,e),!0)},e.lineTo=function(t,e){return this.append(new i.LineTo(t,e))},e.arcTo=function(t,e,n,r,o){return this.append(new i.ArcTo(t,e,n,r,o))},e.arc=function(t,e,n,r,o,s){return this.append(new i.Arc(t,e,n,r,o,s))},e.quadraticCurveTo=function(t,e,n,r){return this.append(new i.QuadraticCurveTo(t,e,n,r))},e.bezierCurveTo=function(t,e,n,r,o,s){return this.append(new i.BezierCurveTo(t,e,n,r,o,s))},e.rect=function(t,e,n,r){return this.append(new i.Rect(t,e,n,r))},e.closePath=function(){return this._activeInstructions.length?this.append(new i.ClosePath):this},e.clear=function(){return this._instructions.length=this._activeInstructions.length=this._commitIndex=0,this._strokeStyle=this._oldStrokeStyle=this._stroke=this._fill=this._strokeDash=this._oldStrokeDash=null,this._dirty=this._strokeIgnoreScale=!1,this},e.beginFill=function(t){return this._setFill(t?new i.Fill(t):null)},e.beginLinearGradientFill=function(t,e,n,r,o,s){return this._setFill((new i.Fill).linearGradient(t,e,n,r,o,s))},e.beginRadialGradientFill=function(t,e,n,r,o,s,a,u){return this._setFill((new i.Fill).radialGradient(t,e,n,r,o,s,a,u))},e.beginBitmapFill=function(t,e,n){return this._setFill(new i.Fill(null,n).bitmap(t,e))},e.endFill=function(){return this.beginFill()},e.setStrokeStyle=function(t,e,n,r,o){return this._updateInstructions(!0),this._strokeStyle=this.command=new i.StrokeStyle(t,e,n,r,o),this._stroke&&(this._stroke.ignoreScale=o),this._strokeIgnoreScale=o,this},e.setStrokeDash=function(t,e){return this._updateInstructions(!0),this._strokeDash=this.command=new i.StrokeDash(t,e),this},e.beginStroke=function(t){return this._setStroke(t?new i.Stroke(t):null)},e.beginLinearGradientStroke=function(t,e,n,r,o,s){return this._setStroke((new i.Stroke).linearGradient(t,e,n,r,o,s))},e.beginRadialGradientStroke=function(t,e,n,r,o,s,a,u){return this._setStroke((new i.Stroke).radialGradient(t,e,n,r,o,s,a,u))},e.beginBitmapStroke=function(t,e){return this._setStroke((new i.Stroke).bitmap(t,e))},e.endStroke=function(){return this.beginStroke()},e.curveTo=e.quadraticCurveTo,e.drawRect=e.rect,e.drawRoundRect=function(t,e,n,i,r){return this.drawRoundRectComplex(t,e,n,i,r,r,r,r)},e.drawRoundRectComplex=function(t,e,n,r,o,s,a,u){return this.append(new i.RoundRect(t,e,n,r,o,s,a,u))},e.drawCircle=function(t,e,n){return this.append(new i.Circle(t,e,n))},e.drawEllipse=function(t,e,n,r){return this.append(new i.Ellipse(t,e,n,r))},e.drawPolyStar=function(t,e,n,r,o,s){return this.append(new i.PolyStar(t,e,n,r,o,s))},e.append=function(t,e){return this._activeInstructions.push(t),this.command=t,e||(this._dirty=!0),this},e.decodePath=function(e){for(var n=[this.moveTo,this.lineTo,this.quadraticCurveTo,this.bezierCurveTo,this.closePath],i=[2,2,4,6,0],r=0,o=e.length,s=[],a=0,u=0,c=t.BASE_64;o>r;){var h=e.charAt(r),l=c[h],f=l>>3,d=n[f];if(!d||3&l)throw"bad path data (@"+r+"): "+h;var p=i[f];f||(a=u=0),s.length=0,r++;for(var m=2+(l>>2&1),g=0;p>g;g++){var v=c[e.charAt(r)],_=v>>5?-1:1;v=(31&v)<<6|c[e.charAt(r+1)],3==m&&(v=v<<6|c[e.charAt(r+2)]),v=_*v/10,g%2?a=v+=a:u=v+=u,s[g]=v,r+=m}d.apply(this,s)}return this},e.store=function(){return this._updateInstructions(!0),this._storeIndex=this._instructions.length,this},e.unstore=function(){return this._storeIndex=0,this},e.clone=function(){var e=new t;return e.command=this.command,e._stroke=this._stroke,e._strokeStyle=this._strokeStyle,e._strokeDash=this._strokeDash,e._strokeIgnoreScale=this._strokeIgnoreScale,e._fill=this._fill,e._instructions=this._instructions.slice(),e._commitIndex=this._commitIndex,e._activeInstructions=this._activeInstructions.slice(),e._dirty=this._dirty,e._storeIndex=this._storeIndex,e},e.toString=function(){return"[Graphics]"},e.mt=e.moveTo,e.lt=e.lineTo,e.at=e.arcTo,e.bt=e.bezierCurveTo,e.qt=e.quadraticCurveTo,e.a=e.arc,e.r=e.rect,e.cp=e.closePath,e.c=e.clear,e.f=e.beginFill,e.lf=e.beginLinearGradientFill,e.rf=e.beginRadialGradientFill,e.bf=e.beginBitmapFill,e.ef=e.endFill,e.ss=e.setStrokeStyle,e.sd=e.setStrokeDash,e.s=e.beginStroke,e.ls=e.beginLinearGradientStroke,e.rs=e.beginRadialGradientStroke,e.bs=e.beginBitmapStroke,e.es=e.endStroke,e.dr=e.drawRect,e.rr=e.drawRoundRect,e.rc=e.drawRoundRectComplex,e.dc=e.drawCircle,e.de=e.drawEllipse,e.dp=e.drawPolyStar,e.p=e.decodePath,e._updateInstructions=function(e){var n=this._instructions,i=this._activeInstructions,r=this._commitIndex;if(this._dirty&&i.length){n.length=r,n.push(t.beginCmd);var o=i.length,s=n.length;n.length=s+o;for(var a=0;o>a;a++)n[a+s]=i[a];this._fill&&n.push(this._fill),this._stroke&&(this._strokeDash!==this._oldStrokeDash&&(this._oldStrokeDash=this._strokeDash,n.push(this._strokeDash)),this._strokeStyle!==this._oldStrokeStyle&&(this._oldStrokeStyle=this._strokeStyle,n.push(this._strokeStyle)),n.push(this._stroke)),this._dirty=!1}e&&(i.length=0,this._commitIndex=n.length)},e._setFill=function(t){return this._updateInstructions(!0),this.command=this._fill=t,this},e._setStroke=function(t){return this._updateInstructions(!0),(this.command=this._stroke=t)&&(t.ignoreScale=this._strokeIgnoreScale),this},(i.LineTo=function(t,e){this.x=t,this.y=e}).prototype.exec=function(t){t.lineTo(this.x,this.y)},(i.MoveTo=function(t,e){this.x=t,this.y=e}).prototype.exec=function(t){t.moveTo(this.x,this.y)},(i.ArcTo=function(t,e,n,i,r){this.x1=t,this.y1=e,this.x2=n,this.y2=i,this.radius=r}).prototype.exec=function(t){t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)},(i.Arc=function(t,e,n,i,r,o){this.x=t,this.y=e,this.radius=n,this.startAngle=i,this.endAngle=r,this.anticlockwise=!!o}).prototype.exec=function(t){t.arc(this.x,this.y,this.radius,this.startAngle,this.endAngle,this.anticlockwise)},(i.QuadraticCurveTo=function(t,e,n,i){this.cpx=t,this.cpy=e,this.x=n,this.y=i}).prototype.exec=function(t){t.quadraticCurveTo(this.cpx,this.cpy,this.x,this.y)},(i.BezierCurveTo=function(t,e,n,i,r,o){this.cp1x=t,this.cp1y=e,this.cp2x=n,this.cp2y=i,this.x=r,this.y=o}).prototype.exec=function(t){t.bezierCurveTo(this.cp1x,this.cp1y,this.cp2x,this.cp2y,this.x,this.y)},(i.Rect=function(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}).prototype.exec=function(t){t.rect(this.x,this.y,this.w,this.h)},(i.ClosePath=function(){}).prototype.exec=function(t){t.closePath()},(i.BeginPath=function(){}).prototype.exec=function(t){t.beginPath()},(e=(i.Fill=function(t,e){this.style=t,this.matrix=e}).prototype).exec=function(t){if(this.style){t.fillStyle=this.style;var e=this.matrix;e&&(t.save(),t.transform(e.a,e.b,e.c,e.d,e.tx,e.ty)),t.fill(),e&&t.restore()}},e.linearGradient=function(e,n,i,r,o,s){for(var a=this.style=t._ctx.createLinearGradient(i,r,o,s),u=0,c=e.length;c>u;u++)a.addColorStop(n[u],e[u]);return a.props={colors:e,ratios:n,x0:i,y0:r,x1:o,y1:s,type:"linear"},this},e.radialGradient=function(e,n,i,r,o,s,a,u){for(var c=this.style=t._ctx.createRadialGradient(i,r,o,s,a,u),h=0,l=e.length;l>h;h++)c.addColorStop(n[h],e[h]);return c.props={colors:e,ratios:n,x0:i,y0:r,r0:o,x1:s,y1:a,r1:u,type:"radial"},this},e.bitmap=function(e,n){(e.naturalWidth||e.getContext||e.readyState>=2)&&((this.style=t._ctx.createPattern(e,n||"")).props={image:e,repetition:n,type:"bitmap"});return this},e.path=!1,(e=(i.Stroke=function(t,e){this.style=t,this.ignoreScale=e}).prototype).exec=function(t){this.style&&(t.strokeStyle=this.style,this.ignoreScale&&(t.save(),t.setTransform(1,0,0,1,0,0)),t.stroke(),this.ignoreScale&&t.restore())},e.linearGradient=i.Fill.prototype.linearGradient,e.radialGradient=i.Fill.prototype.radialGradient,e.bitmap=i.Fill.prototype.bitmap,e.path=!1,(e=(i.StrokeStyle=function(t,e,n,i,r){this.width=t,this.caps=e,this.joints=n,this.miterLimit=i,this.ignoreScale=r}).prototype).exec=function(e){e.lineWidth=null==this.width?"1":this.width,e.lineCap=null==this.caps?"butt":isNaN(this.caps)?this.caps:t.STROKE_CAPS_MAP[this.caps],e.lineJoin=null==this.joints?"miter":isNaN(this.joints)?this.joints:t.STROKE_JOINTS_MAP[this.joints],e.miterLimit=null==this.miterLimit?"10":this.miterLimit,e.ignoreScale=null!=this.ignoreScale&&this.ignoreScale},e.path=!1,(i.StrokeDash=function(t,e){this.segments=t,this.offset=e||0}).prototype.exec=function(t){t.setLineDash&&(t.setLineDash(this.segments||i.StrokeDash.EMPTY_SEGMENTS),t.lineDashOffset=this.offset||0)},i.StrokeDash.EMPTY_SEGMENTS=[],(i.RoundRect=function(t,e,n,i,r,o,s,a){this.x=t,this.y=e,this.w=n,this.h=i,this.radiusTL=r,this.radiusTR=o,this.radiusBR=s,this.radiusBL=a}).prototype.exec=function(t){var e=(c>u?u:c)/2,n=0,i=0,r=0,o=0,s=this.x,a=this.y,u=this.w,c=this.h,h=this.radiusTL,l=this.radiusTR,f=this.radiusBR,d=this.radiusBL;0>h&&(h*=n=-1),h>e&&(h=e),0>l&&(l*=i=-1),l>e&&(l=e),0>f&&(f*=r=-1),f>e&&(f=e),0>d&&(d*=o=-1),d>e&&(d=e),t.moveTo(s+u-l,a),t.arcTo(s+u+l*i,a-l*i,s+u,a+l,l),t.lineTo(s+u,a+c-f),t.arcTo(s+u+f*r,a+c+f*r,s+u-f,a+c,f),t.lineTo(s+d,a+c),t.arcTo(s-d*o,a+c+d*o,s,a+c-d,d),t.lineTo(s,a+h),t.arcTo(s-h*n,a-h*n,s+h,a,h),t.closePath()},(i.Circle=function(t,e,n){this.x=t,this.y=e,this.radius=n}).prototype.exec=function(t){t.arc(this.x,this.y,this.radius,0,2*Math.PI)},(i.Ellipse=function(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}).prototype.exec=function(t){var e=this.x,n=this.y,i=this.w,r=this.h,o=.5522848,s=i/2*o,a=r/2*o,u=e+i,c=n+r,h=e+i/2,l=n+r/2;t.moveTo(e,l),t.bezierCurveTo(e,l-a,h-s,n,h,n),t.bezierCurveTo(h+s,n,u,l-a,u,l),t.bezierCurveTo(u,l+a,h+s,c,h,c),t.bezierCurveTo(h-s,c,e,l+a,e,l)},(i.PolyStar=function(t,e,n,i,r,o){this.x=t,this.y=e,this.radius=n,this.sides=i,this.pointSize=r,this.angle=o}).prototype.exec=function(t){var e=this.x,n=this.y,i=this.radius,r=(this.angle||0)/180*Math.PI,o=this.sides,s=1-(this.pointSize||0),a=Math.PI/o;t.moveTo(e+Math.cos(r)*i,n+Math.sin(r)*i);for(var u=0;o>u;u++)r+=a,1!=s&&t.lineTo(e+Math.cos(r)*i*s,n+Math.sin(r)*i*s),r+=a,t.lineTo(e+Math.cos(r)*i,n+Math.sin(r)*i);t.closePath()},t.beginCmd=new i.BeginPath,n.Graphics=t}(),n=n||{},function(){"use strict";function t(){this.EventDispatcher_constructor(),this.alpha=1,this.cacheCanvas=null,this.cacheID=0,this.id=n.UID.get(),this.mouseEnabled=!0,this.tickEnabled=!0,this.name=null,this.parent=null,this.regX=0,this.regY=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.skewX=0,this.skewY=0,this.shadow=null,this.visible=!0,this.x=0,this.y=0,this.transformMatrix=null,this.compositeOperation=null,this.snapToPixel=!0,this.filters=null,this.mask=null,this.hitArea=null,this.cursor=null,this._cacheOffsetX=0,this._cacheOffsetY=0,this._filterOffsetX=0,this._filterOffsetY=0,this._cacheScale=1,this._cacheDataURLID=0,this._cacheDataURL=null,this._props=new n.DisplayProps,this._rectangle=new n.Rectangle,this._bounds=null}var e=n.extend(t,n.EventDispatcher);t._MOUSE_EVENTS=["click","dblclick","mousedown","mouseout","mouseover","pressmove","pressup","rollout","rollover"],t.suppressCrossDomainErrors=!1,t._snapToPixelEnabled=!1;var i=n.createCanvas?n.createCanvas():document.createElement("canvas");i.getContext&&(t._hitTestCanvas=i,t._hitTestContext=i.getContext("2d"),i.width=i.height=1),t._nextCacheID=1,e.getStage=function(){for(var t=this,e=n.Stage;t.parent;)t=t.parent;return t instanceof e?t:null};try{Object.defineProperties(e,{stage:{get:e.getStage}})}catch(t){}e.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},e.draw=function(t,e){var n=this.cacheCanvas;if(e||!n)return!1;var i=this._cacheScale;return t.drawImage(n,this._cacheOffsetX+this._filterOffsetX,this._cacheOffsetY+this._filterOffsetY,n.width/i,n.height/i),!0},e.updateContext=function(e){var n=this,i=n.mask,r=n._props.matrix;i&&i.graphics&&!i.graphics.isEmpty()&&(i.getMatrix(r),e.transform(r.a,r.b,r.c,r.d,r.tx,r.ty),i.graphics.drawAsPath(e),e.clip(),r.invert(),e.transform(r.a,r.b,r.c,r.d,r.tx,r.ty)),this.getMatrix(r);var o=r.tx,s=r.ty;t._snapToPixelEnabled&&n.snapToPixel&&(o=o+(0>o?-.5:.5)|0,s=s+(0>s?-.5:.5)|0),e.transform(r.a,r.b,r.c,r.d,o,s),e.globalAlpha*=n.alpha,n.compositeOperation&&(e.globalCompositeOperation=n.compositeOperation),n.shadow&&this._applyShadow(e,n.shadow)},e.cache=function(t,e,i,r,o){o=o||1,this.cacheCanvas||(this.cacheCanvas=n.createCanvas?n.createCanvas():document.createElement("canvas")),this._cacheWidth=i,this._cacheHeight=r,this._cacheOffsetX=t,this._cacheOffsetY=e,this._cacheScale=o,this.updateCache()},e.updateCache=function(e){var n=this.cacheCanvas;if(!n)throw"cache() must be called before updateCache()";var i=this._cacheScale,r=this._cacheOffsetX*i,o=this._cacheOffsetY*i,s=this._cacheWidth,a=this._cacheHeight,u=n.getContext("2d"),c=this._getFilterBounds();r+=this._filterOffsetX=c.x,o+=this._filterOffsetY=c.y,s=Math.ceil(s*i)+c.width,a=Math.ceil(a*i)+c.height,s!=n.width||a!=n.height?(n.width=s,n.height=a):e||u.clearRect(0,0,s+1,a+1),u.save(),u.globalCompositeOperation=e,u.setTransform(i,0,0,i,-r,-o),this.draw(u,!0),this._applyFilters(),u.restore(),this.cacheID=t._nextCacheID++},e.uncache=function(){this._cacheDataURL=this.cacheCanvas=null,this.cacheID=this._cacheOffsetX=this._cacheOffsetY=this._filterOffsetX=this._filterOffsetY=0,this._cacheScale=1},e.getCacheDataURL=function(){return this.cacheCanvas?(this.cacheID!=this._cacheDataURLID&&(this._cacheDataURL=this.cacheCanvas.toDataURL()),this._cacheDataURL):null},e.localToGlobal=function(t,e,i){return this.getConcatenatedMatrix(this._props.matrix).transformPoint(t,e,i||new n.Point)},e.globalToLocal=function(t,e,i){return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(t,e,i||new n.Point)},e.localToLocal=function(t,e,n,i){return i=this.localToGlobal(t,e,i),n.globalToLocal(i.x,i.y,i)},e.setTransform=function(t,e,n,i,r,o,s,a,u){return this.x=t||0,this.y=e||0,this.scaleX=null==n?1:n,this.scaleY=null==i?1:i,this.rotation=r||0,this.skewX=o||0,this.skewY=s||0,this.regX=a||0,this.regY=u||0,this},e.getMatrix=function(t){var e=this,i=t&&t.identity()||new n.Matrix2D;return e.transformMatrix?i.copy(e.transformMatrix):i.appendTransform(e.x,e.y,e.scaleX,e.scaleY,e.rotation,e.skewX,e.skewY,e.regX,e.regY)},e.getConcatenatedMatrix=function(t){for(var e=this,n=this.getMatrix(t);e=e.parent;)n.prependMatrix(e.getMatrix(e._props.matrix));return n},e.getConcatenatedDisplayProps=function(t){t=t?t.identity():new n.DisplayProps;var e=this,i=e.getMatrix(t.matrix);do{t.prepend(e.visible,e.alpha,e.shadow,e.compositeOperation),e!=this&&i.prependMatrix(e.getMatrix(e._props.matrix))}while(e=e.parent);return t},e.hitTest=function(e,n){var i=t._hitTestContext;i.setTransform(1,0,0,1,-e,-n),this.draw(i);var r=this._testHit(i);return i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,2,2),r},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.getBounds=function(){if(this._bounds)return this._rectangle.copy(this._bounds);var t=this.cacheCanvas;if(t){var e=this._cacheScale;return this._rectangle.setValues(this._cacheOffsetX,this._cacheOffsetY,t.width/e,t.height/e)}return null},e.getTransformedBounds=function(){return this._getBounds()},e.setBounds=function(t,e,i,r){null==t&&(this._bounds=t),this._bounds=(this._bounds||new n.Rectangle).setValues(t,e,i,r)},e.clone=function(){return this._cloneProps(new t)},e.toString=function(){return"[DisplayObject (name="+this.name+")]"},e._cloneProps=function(t){return t.alpha=this.alpha,t.mouseEnabled=this.mouseEnabled,t.tickEnabled=this.tickEnabled,t.name=this.name,t.regX=this.regX,t.regY=this.regY,t.rotation=this.rotation,t.scaleX=this.scaleX,t.scaleY=this.scaleY,t.shadow=this.shadow,t.skewX=this.skewX,t.skewY=this.skewY,t.visible=this.visible,t.x=this.x,t.y=this.y,t.compositeOperation=this.compositeOperation,t.snapToPixel=this.snapToPixel,t.filters=null==this.filters?null:this.filters.slice(0),t.mask=this.mask,t.hitArea=this.hitArea,t.cursor=this.cursor,t._bounds=this._bounds,t},e._applyShadow=function(t,e){e=e||Shadow.identity,t.shadowColor=e.color,t.shadowOffsetX=e.offsetX,t.shadowOffsetY=e.offsetY,t.shadowBlur=e.blur},e._tick=function(t){var e=this._listeners;e&&e.tick&&(t.target=null,t.propagationStopped=t.immediatePropagationStopped=!1,this.dispatchEvent(t))},e._testHit=function(e){try{var n=e.getImageData(0,0,1,1).data[3]>1}catch(e){if(!t.suppressCrossDomainErrors)throw"An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."}return n},e._applyFilters=function(){if(this.filters&&0!=this.filters.length&&this.cacheCanvas)for(var t=this.filters.length,e=this.cacheCanvas.getContext("2d"),n=this.cacheCanvas.width,i=this.cacheCanvas.height,r=0;t>r;r++)this.filters[r].applyFilter(e,0,0,n,i)},e._getFilterBounds=function(){var t,e=this.filters,n=this._rectangle.setValues(0,0,0,0);if(!e||!(t=e.length))return n;for(var i=0;t>i;i++){var r=this.filters[i];r.getBounds&&r.getBounds(n)}return n},e._getBounds=function(t,e){return this._transformBounds(this.getBounds(),t,e)},e._transformBounds=function(t,e,n){if(!t)return t;var i=t.x,r=t.y,o=t.width,s=t.height,a=this._props.matrix;a=n?a.identity():this.getMatrix(a),(i||r)&&a.appendTransform(0,0,1,1,0,0,0,-i,-r),e&&a.prependMatrix(e);var u=o*a.a,c=o*a.b,h=s*a.c,l=s*a.d,f=a.tx,d=a.ty,p=f,m=f,g=d,v=d;return(i=u+f)m&&(m=i),(i=u+h+f)m&&(m=i),(i=h+f)m&&(m=i),(r=c+d)v&&(v=r),(r=c+l+d)v&&(v=r),(r=l+d)v&&(v=r),t.setValues(p,g,m-p,v-g)},e._hasMouseEventListener=function(){for(var e=t._MOUSE_EVENTS,n=0,i=e.length;i>n;n++)if(this.hasEventListener(e[n]))return!0;return!!this.cursor},n.DisplayObject=n.promote(t,"EventDispatcher")}(),n=n||{},function(){"use strict";function t(){this.DisplayObject_constructor(),this.children=[],this.mouseChildren=!0,this.tickChildren=!0}var e=n.extend(t,n.DisplayObject);e.getNumChildren=function(){return this.children.length};try{Object.defineProperties(e,{numChildren:{get:e.getNumChildren}})}catch(t){}e.initialize=t,e.isVisible=function(){var t=this.cacheCanvas||this.children.length;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;for(var n=this.children.slice(),i=0,r=n.length;r>i;i++){var o=n[i];o.isVisible()&&(t.save(),o.updateContext(t),o.draw(t),t.restore())}return!0},e.addChild=function(t){if(null==t)return t;var e=arguments.length;if(e>1){for(var n=0;e>n;n++)this.addChild(arguments[n]);return arguments[e-1]}return t.parent&&t.parent.removeChild(t),t.parent=this,this.children.push(t),t.dispatchEvent("added"),t},e.addChildAt=function(t,e){var n=arguments.length,i=arguments[n-1];if(0>i||i>this.children.length)return arguments[n-2];if(n>2){for(var r=0;n-1>r;r++)this.addChildAt(arguments[r],i+r);return arguments[n-2]}return t.parent&&t.parent.removeChild(t),t.parent=this,this.children.splice(e,0,t),t.dispatchEvent("added"),t},e.removeChild=function(t){var e=arguments.length;if(e>1){for(var i=!0,r=0;e>r;r++)i=i&&this.removeChild(arguments[r]);return i}return this.removeChildAt(n.indexOf(this.children,t))},e.removeChildAt=function(t){var e=arguments.length;if(e>1){for(var n=[],i=0;e>i;i++)n[i]=arguments[i];n.sort(function(t,e){return e-t});var r=!0;for(i=0;e>i;i++)r=r&&this.removeChildAt(n[i]);return r}if(0>t||t>this.children.length-1)return!1;var o=this.children[t];return o&&(o.parent=null),this.children.splice(t,1),o.dispatchEvent("removed"),!0},e.removeAllChildren=function(){for(var t=this.children;t.length;)this.removeChildAt(0)},e.getChildAt=function(t){return this.children[t]},e.getChildByName=function(t){for(var e=this.children,n=0,i=e.length;i>n;n++)if(e[n].name==t)return e[n];return null},e.sortChildren=function(t){this.children.sort(t)},e.getChildIndex=function(t){return n.indexOf(this.children,t)},e.swapChildrenAt=function(t,e){var n=this.children,i=n[t],r=n[e];i&&r&&(n[t]=r,n[e]=i)},e.swapChildren=function(t,e){for(var n,i,r=this.children,o=0,s=r.length;s>o&&(r[o]==t&&(n=o),r[o]==e&&(i=o),null==n||null==i);o++);o!=s&&(r[n]=e,r[i]=t)},e.setChildIndex=function(t,e){var n=this.children,i=n.length;if(!(t.parent!=this||0>e||e>=i)){for(var r=0;i>r&&n[r]!=t;r++);r!=i&&r!=e&&(n.splice(r,1),n.splice(e,0,t))}},e.contains=function(t){for(;t;){if(t==this)return!0;t=t.parent}return!1},e.hitTest=function(t,e){return null!=this.getObjectUnderPoint(t,e)},e.getObjectsUnderPoint=function(t,e,n){var i=[],r=this.localToGlobal(t,e);return this._getObjectsUnderPoint(r.x,r.y,i,n>0,1==n),i},e.getObjectUnderPoint=function(t,e,n){var i=this.localToGlobal(t,e);return this._getObjectsUnderPoint(i.x,i.y,null,n>0,1==n)},e.getBounds=function(){return this._getBounds(null,!0)},e.getTransformedBounds=function(){return this._getBounds()},e.clone=function(e){var n=this._cloneProps(new t);return e&&this._cloneChildren(n),n},e.toString=function(){return"[Container (name="+this.name+")]"},e._tick=function(t){if(this.tickChildren)for(var e=this.children.length-1;e>=0;e--){var n=this.children[e];n.tickEnabled&&n._tick&&n._tick(t)}this.DisplayObject__tick(t)},e._cloneChildren=function(t){t.children.length&&t.removeAllChildren();for(var e=t.children,n=0,i=this.children.length;i>n;n++){var r=this.children[n].clone(!0);r.parent=t,e.push(r)}},e._getObjectsUnderPoint=function(e,i,r,o,s,a){if(!(a=a||0)&&!this._testMask(this,e,i))return null;var u,c=n.DisplayObject._hitTestContext;s=s||o&&this._hasMouseEventListener();for(var h=this.children,l=h.length-1;l>=0;l--){var f=h[l],d=f.hitArea;if(f.visible&&(d||f.isVisible())&&(!o||f.mouseEnabled)&&(d||this._testMask(f,e,i)))if(!d&&f instanceof t){var p=f._getObjectsUnderPoint(e,i,r,o,s,a+1);if(!r&&p)return o&&!this.mouseChildren?this:p}else{if(o&&!s&&!f._hasMouseEventListener())continue;var m=f.getConcatenatedDisplayProps(f._props);if(u=m.matrix,d&&(u.appendMatrix(d.getMatrix(d._props.matrix)),m.alpha=d.alpha),c.globalAlpha=m.alpha,c.setTransform(u.a,u.b,u.c,u.d,u.tx-e,u.ty-i),(d||f).draw(c),!this._testHit(c))continue;if(c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,2,2),!r)return o&&!this.mouseChildren?this:f;r.push(f)}}return null},e._testMask=function(t,e,i){var r=t.mask;if(!r||!r.graphics||r.graphics.isEmpty())return!0;var o=this._props.matrix,s=t.parent;o=s?s.getConcatenatedMatrix(o):o.identity(),o=r.getMatrix(r._props.matrix).prependMatrix(o);var a=n.DisplayObject._hitTestContext;return a.setTransform(o.a,o.b,o.c,o.d,o.tx-e,o.ty-i),r.graphics.drawAsPath(a),a.fillStyle="#000",a.fill(),!!this._testHit(a)&&(a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,2,2),!0)},e._getBounds=function(t,e){var n=this.DisplayObject_getBounds();if(n)return this._transformBounds(n,t,e);var i=this._props.matrix;i=e?i.identity():this.getMatrix(i),t&&i.prependMatrix(t);for(var r=this.children.length,o=null,s=0;r>s;s++){var a=this.children[s];a.visible&&(n=a._getBounds(i))&&(o?o.extend(n.x,n.y,n.width,n.height):o=n.clone())}return o},n.Container=n.promote(t,"DisplayObject")}(),n=n||{},function(){"use strict";function t(t){this.Container_constructor(),this.autoClear=!0,this.canvas="string"==typeof t?document.getElementById(t):t,this.mouseX=0,this.mouseY=0,this.drawRect=null,this.snapToPixelEnabled=!1,this.mouseInBounds=!1,this.tickOnUpdate=!0,this.mouseMoveOutside=!1,this.preventSelection=!0,this._pointerData={},this._pointerCount=0,this._primaryPointerID=null,this._mouseOverIntervalID=null,this._nextStage=null,this._prevStage=null,this.enableDOMEvents(!0)}var e=n.extend(t,n.Container);e._get_nextStage=function(){return this._nextStage},e._set_nextStage=function(t){this._nextStage&&(this._nextStage._prevStage=null),t&&(t._prevStage=this),this._nextStage=t};try{Object.defineProperties(e,{nextStage:{get:e._get_nextStage,set:e._set_nextStage}})}catch(t){}e.update=function(t){if(this.canvas&&(this.tickOnUpdate&&this.tick(t),!1!==this.dispatchEvent("drawstart",!1,!0))){n.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var e=this.drawRect,i=this.canvas.getContext("2d");i.setTransform(1,0,0,1,0,0),this.autoClear&&(e?i.clearRect(e.x,e.y,e.width,e.height):i.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)),i.save(),this.drawRect&&(i.beginPath(),i.rect(e.x,e.y,e.width,e.height),i.clip()),this.updateContext(i),this.draw(i,!1),i.restore(),this.dispatchEvent("drawend")}},e.tick=function(t){if(this.tickEnabled&&!1!==this.dispatchEvent("tickstart",!1,!0)){var e=new n.Event("tick");if(t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);this._tick(e),this.dispatchEvent("tickend")}},e.handleEvent=function(t){"tick"==t.type&&this.update(t)},e.clear=function(){if(this.canvas){var t=this.canvas.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)}},e.toDataURL=function(t,e){var n,i=this.canvas.getContext("2d"),r=this.canvas.width,o=this.canvas.height;if(t){n=i.getImageData(0,0,r,o);var s=i.globalCompositeOperation;i.globalCompositeOperation="destination-over",i.fillStyle=t,i.fillRect(0,0,r,o)}var a=this.canvas.toDataURL(e||"image/png");return t&&(i.putImageData(n,0,0),i.globalCompositeOperation=s),a},e.enableMouseOver=function(t){if(this._mouseOverIntervalID&&(clearInterval(this._mouseOverIntervalID),this._mouseOverIntervalID=null,0==t&&this._testMouseOver(!0)),null==t)t=20;else if(0>=t)return;var e=this;this._mouseOverIntervalID=setInterval(function(){e._testMouseOver()},1e3/Math.min(50,t))},e.enableDOMEvents=function(t){null==t&&(t=!0);var e,n,i=this._eventListeners;if(!t&&i){for(e in i)(n=i[e]).t.removeEventListener(e,n.f,!1);this._eventListeners=null}else if(t&&!i&&this.canvas){var r=window.addEventListener?window:document,o=this;for(e in(i=this._eventListeners={}).mouseup={t:r,f:function(t){o._handleMouseUp(t)}},i.mousemove={t:r,f:function(t){o._handleMouseMove(t)}},i.dblclick={t:this.canvas,f:function(t){o._handleDoubleClick(t)}},i.mousedown={t:this.canvas,f:function(t){o._handleMouseDown(t)}},i)(n=i[e]).t.addEventListener(e,n.f,!1)}},e.clone=function(){throw"Stage cannot be cloned."},e.toString=function(){return"[Stage (name="+this.name+")]"},e._getElementRect=function(t){var e;try{e=t.getBoundingClientRect()}catch(n){e={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}var n=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||document.body.clientLeft||0),i=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||document.body.clientTop||0),r=window.getComputedStyle?getComputedStyle(t,null):t.currentStyle,o=parseInt(r.paddingLeft)+parseInt(r.borderLeftWidth),s=parseInt(r.paddingTop)+parseInt(r.borderTopWidth),a=parseInt(r.paddingRight)+parseInt(r.borderRightWidth),u=parseInt(r.paddingBottom)+parseInt(r.borderBottomWidth);return{left:e.left+n+o,right:e.right+n-a,top:e.top+i+s,bottom:e.bottom+i-u}},e._getPointerData=function(t){var e=this._pointerData[t];return e||(e=this._pointerData[t]={x:0,y:0}),e},e._handleMouseMove=function(t){t||(t=window.event),this._handlePointerMove(-1,t,t.pageX,t.pageY)},e._handlePointerMove=function(t,e,n,i,r){if((!this._prevStage||void 0!==r)&&this.canvas){var o=this._nextStage,s=this._getPointerData(t),a=s.inBounds;this._updatePointerPosition(t,e,n,i),(a||s.inBounds||this.mouseMoveOutside)&&(-1===t&&s.inBounds==!a&&this._dispatchMouseEvent(this,a?"mouseleave":"mouseenter",!1,t,s,e),this._dispatchMouseEvent(this,"stagemousemove",!1,t,s,e),this._dispatchMouseEvent(s.target,"pressmove",!0,t,s,e)),o&&o._handlePointerMove(t,e,n,i,null)}},e._updatePointerPosition=function(t,e,n,i){var r=this._getElementRect(this.canvas);n-=r.left,i-=r.top;var o=this.canvas.width,s=this.canvas.height;n/=(r.right-r.left)/o,i/=(r.bottom-r.top)/s;var a=this._getPointerData(t);(a.inBounds=n>=0&&i>=0&&o-1>=n&&s-1>=i)?(a.x=n,a.y=i):this.mouseMoveOutside&&(a.x=0>n?0:n>o-1?o-1:n,a.y=0>i?0:i>s-1?s-1:i),a.posEvtObj=e,a.rawX=n,a.rawY=i,(t===this._primaryPointerID||-1===t)&&(this.mouseX=a.x,this.mouseY=a.y,this.mouseInBounds=a.inBounds)},e._handleMouseUp=function(t){this._handlePointerUp(-1,t,!1)},e._handlePointerUp=function(t,e,n,i){var r=this._nextStage,o=this._getPointerData(t);if(!this._prevStage||void 0!==i){var s=null,a=o.target;i||!a&&!r||(s=this._getObjectsUnderPoint(o.x,o.y,null,!0)),o.down&&(this._dispatchMouseEvent(this,"stagemouseup",!1,t,o,e,s),o.down=!1),s==a&&this._dispatchMouseEvent(a,"click",!0,t,o,e),this._dispatchMouseEvent(a,"pressup",!0,t,o,e),n?(t==this._primaryPointerID&&(this._primaryPointerID=null),delete this._pointerData[t]):o.target=null,r&&r._handlePointerUp(t,e,n,i||s&&this)}},e._handleMouseDown=function(t){this._handlePointerDown(-1,t,t.pageX,t.pageY)},e._handlePointerDown=function(t,e,n,i,r){this.preventSelection&&e.preventDefault(),(null==this._primaryPointerID||-1===t)&&(this._primaryPointerID=t),null!=i&&this._updatePointerPosition(t,e,n,i);var o=null,s=this._nextStage,a=this._getPointerData(t);r||(o=a.target=this._getObjectsUnderPoint(a.x,a.y,null,!0)),a.inBounds&&(this._dispatchMouseEvent(this,"stagemousedown",!1,t,a,e,o),a.down=!0),this._dispatchMouseEvent(o,"mousedown",!0,t,a,e),s&&s._handlePointerDown(t,e,n,i,r||o&&this)},e._testMouseOver=function(t,e,n){if(!this._prevStage||void 0!==e){var i=this._nextStage;if(!this._mouseOverIntervalID)return void(i&&i._testMouseOver(t,e,n));var r=this._getPointerData(-1);if(r&&(t||this.mouseX!=this._mouseOverX||this.mouseY!=this._mouseOverY||!this.mouseInBounds)){var o,s,a,u=r.posEvtObj,c=n||u&&u.target==this.canvas,h=null,l=-1,f="";!e&&(t||this.mouseInBounds&&c)&&(h=this._getObjectsUnderPoint(this.mouseX,this.mouseY,null,!0),this._mouseOverX=this.mouseX,this._mouseOverY=this.mouseY);var d=this._mouseOverTarget||[],p=d[d.length-1],m=this._mouseOverTarget=[];for(o=h;o;)m.unshift(o),f||(f=o.cursor),o=o.parent;for(this.canvas.style.cursor=f,!e&&n&&(n.canvas.style.cursor=f),s=0,a=m.length;a>s&&m[s]==d[s];s++)l=s;for(p!=h&&this._dispatchMouseEvent(p,"mouseout",!0,-1,r,u,h),s=d.length-1;s>l;s--)this._dispatchMouseEvent(d[s],"rollout",!1,-1,r,u,h);for(s=m.length-1;s>l;s--)this._dispatchMouseEvent(m[s],"rollover",!1,-1,r,u,p);p!=h&&this._dispatchMouseEvent(h,"mouseover",!0,-1,r,u,p),i&&i._testMouseOver(t,e||h&&this,n||c&&this)}}},e._handleDoubleClick=function(t,e){var n=null,i=this._nextStage,r=this._getPointerData(-1);e||(n=this._getObjectsUnderPoint(r.x,r.y,null,!0),this._dispatchMouseEvent(n,"dblclick",!0,-1,r,t)),i&&i._handleDoubleClick(t,e||n&&this)},e._dispatchMouseEvent=function(t,e,i,r,o,s,a){if(t&&(i||t.hasEventListener(e))){var u=new n.MouseEvent(e,i,!1,o.x,o.y,s,r,r===this._primaryPointerID||-1===r,o.rawX,o.rawY,a);t.dispatchEvent(u)}},n.Stage=n.promote(t,"Container")}(),n=n||{},function(){function t(t){this.DisplayObject_constructor(),"string"==typeof t?(this.image=document.createElement("img"),this.image.src=t):this.image=t,this.sourceRect=null}var e=n.extend(t,n.DisplayObject);e.initialize=t,e.isVisible=function(){var t=this.image,e=this.cacheCanvas||t&&(t.naturalWidth||t.getContext||t.readyState>=2);return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&e)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e)||!this.image)return!0;var n=this.image,i=this.sourceRect;if(i){var r=i.x,o=i.y,s=r+i.width,a=o+i.height,u=0,c=0,h=n.width,l=n.height;0>r&&(u-=r,r=0),s>h&&(s=h),0>o&&(c-=o,o=0),a>l&&(a=l),t.drawImage(n,r,o,s-r,a-o,u,c,s-r,a-o)}else t.drawImage(n,0,0);return!0},e.getBounds=function(){var t=this.DisplayObject_getBounds();if(t)return t;var e=this.image,n=this.sourceRect||e;return e&&(e.naturalWidth||e.getContext||e.readyState>=2)?this._rectangle.setValues(0,0,n.width,n.height):null},e.clone=function(){var e=new t(this.image);return this.sourceRect&&(e.sourceRect=this.sourceRect.clone()),this._cloneProps(e),e},e.toString=function(){return"[Bitmap (name="+this.name+")]"},n.Bitmap=n.promote(t,"DisplayObject")}(),n=n||{},function(){"use strict";function t(t,e){this.DisplayObject_constructor(),this.currentFrame=0,this.currentAnimation=null,this.paused=!0,this.spriteSheet=t,this.currentAnimationFrame=0,this.framerate=0,this._animation=null,this._currentFrame=null,this._skipAdvance=!1,null!=e&&this.gotoAndPlay(e)}var e=n.extend(t,n.DisplayObject);e.initialize=t,e.isVisible=function(){var t=this.cacheCanvas||this.spriteSheet.complete;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;this._normalizeFrame();var n=this.spriteSheet.getFrame(0|this._currentFrame);if(!n)return!1;var i=n.rect;return i.width&&i.height&&t.drawImage(n.image,i.x,i.y,i.width,i.height,-n.regX,-n.regY,i.width,i.height),!0},e.play=function(){this.paused=!1},e.stop=function(){this.paused=!0},e.gotoAndPlay=function(t){this.paused=!1,this._skipAdvance=!0,this._goto(t)},e.gotoAndStop=function(t){this.paused=!0,this._goto(t)},e.advance=function(t){var e=this.framerate||this.spriteSheet.framerate,n=e&&null!=t?t/(1e3/e):1;this._normalizeFrame(n)},e.getBounds=function(){return this.DisplayObject_getBounds()||this.spriteSheet.getFrameBounds(this.currentFrame,this._rectangle)},e.clone=function(){return this._cloneProps(new t(this.spriteSheet))},e.toString=function(){return"[Sprite (name="+this.name+")]"},e._cloneProps=function(t){return this.DisplayObject__cloneProps(t),t.currentFrame=this.currentFrame,t.currentAnimation=this.currentAnimation,t.paused=this.paused,t.currentAnimationFrame=this.currentAnimationFrame,t.framerate=this.framerate,t._animation=this._animation,t._currentFrame=this._currentFrame,t._skipAdvance=this._skipAdvance,t},e._tick=function(t){this.paused||(this._skipAdvance||this.advance(t&&t.delta),this._skipAdvance=!1),this.DisplayObject__tick(t)},e._normalizeFrame=function(t){t=t||0;var e,n=this._animation,i=this.paused,r=this._currentFrame;if(n){var o=n.speed||1,s=this.currentAnimationFrame;if(s+t*o>=(e=n.frames.length)){var a=n.next;if(this._dispatchAnimationEnd(n,r,i,a,e-1))return;if(a)return this._goto(a,t-(e-s)/o);this.paused=!0,s=n.frames.length-1}else s+=t*o;this.currentAnimationFrame=s,this._currentFrame=n.frames[0|s]}else if((r=this._currentFrame+=t)>=(e=this.spriteSheet.getNumFrames())&&e>0&&!this._dispatchAnimationEnd(n,r,i,e-1)&&(this._currentFrame-=e)>=e)return this._normalizeFrame();r=0|this._currentFrame,this.currentFrame!=r&&(this.currentFrame=r,this.dispatchEvent("change"))},e._dispatchAnimationEnd=function(t,e,i,r,o){var s=t?t.name:null;if(this.hasEventListener("animationend")){var a=new n.Event("animationend");a.name=s,a.next=r,this.dispatchEvent(a)}var u=this._animation!=t||this._currentFrame!=e;return u||i||!this.paused||(this.currentAnimationFrame=o,u=!0),u},e._goto=function(t,e){if(this.currentAnimationFrame=0,isNaN(t)){var n=this.spriteSheet.getAnimation(t);n&&(this._animation=n,this.currentAnimation=t,this._normalizeFrame(e))}else this.currentAnimation=this._animation=null,this._currentFrame=t,this._normalizeFrame()},n.Sprite=n.promote(t,"DisplayObject")}(),n=n||{},function(){"use strict";function t(t){this.DisplayObject_constructor(),this.graphics=t||new n.Graphics}var e=n.extend(t,n.DisplayObject);e.isVisible=function(){var t=this.cacheCanvas||this.graphics&&!this.graphics.isEmpty();return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){return!!this.DisplayObject_draw(t,e)||(this.graphics.draw(t,this),!0)},e.clone=function(e){var n=e&&this.graphics?this.graphics.clone():this.graphics;return this._cloneProps(new t(n))},e.toString=function(){return"[Shape (name="+this.name+")]"},n.Shape=n.promote(t,"DisplayObject")}(),n=n||{},function(){"use strict";function t(t,e,n){this.DisplayObject_constructor(),this.text=t,this.font=e,this.color=n,this.textAlign="left",this.textBaseline="top",this.maxWidth=null,this.outline=0,this.lineHeight=0,this.lineWidth=null}var e=n.extend(t,n.DisplayObject),i=n.createCanvas?n.createCanvas():document.createElement("canvas");i.getContext&&(t._workingContext=i.getContext("2d"),i.width=i.height=1),t.H_OFFSETS={start:0,left:0,center:-.5,end:-1,right:-1},t.V_OFFSETS={top:0,hanging:-.01,middle:-.4,alphabetic:-.8,ideographic:-.85,bottom:-1},e.isVisible=function(){var t=this.cacheCanvas||null!=this.text&&""!==this.text;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;var n=this.color||"#000";return this.outline?(t.strokeStyle=n,t.lineWidth=1*this.outline):t.fillStyle=n,this._drawText(this._prepContext(t)),!0},e.getMeasuredWidth=function(){return this._getMeasuredWidth(this.text)},e.getMeasuredLineHeight=function(){return 1.2*this._getMeasuredWidth("M")},e.getMeasuredHeight=function(){return this._drawText(null,{}).height},e.getBounds=function(){var e=this.DisplayObject_getBounds();if(e)return e;if(null==this.text||""===this.text)return null;var n=this._drawText(null,{}),i=this.maxWidth&&this.maxWidthc;c++){var l=u[c],f=null;if(null!=this.lineWidth&&(f=e.measureText(l).width)>this.lineWidth){var d=l.split(/(\s)/);l=d[0],f=e.measureText(l).width;for(var p=1,m=d.length;m>p;p+=2){var g=e.measureText(d[p]+d[p+1]).width;f+g>this.lineWidth?(r&&this._drawTextLine(e,l,a*o),i&&i.push(l),f>s&&(s=f),l=d[p+1],f=e.measureText(l).width,a++):(l+=d[p]+d[p+1],f+=g)}}r&&this._drawTextLine(e,l,a*o),i&&i.push(l),n&&null==f&&(f=e.measureText(l).width),f>s&&(s=f),a++}return n&&(n.width=s,n.height=a*o),r||e.restore(),n},e._drawTextLine=function(t,e,n){this.outline?t.strokeText(e,0,n,this.maxWidth||65535):t.fillText(e,0,n,this.maxWidth||65535)},e._getMeasuredWidth=function(e){var n=t._workingContext;n.save();var i=this._prepContext(n).measureText(e).width;return n.restore(),i},n.Text=n.promote(t,"DisplayObject")}(),n=n||{},function(){"use strict";function t(t,e){this.Container_constructor(),this.text=t||"",this.spriteSheet=e,this.lineHeight=0,this.letterSpacing=0,this.spaceWidth=0,this._oldProps={text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0}}var e=n.extend(t,n.Container);t.maxPoolSize=100,t._spritePool=[],e.draw=function(t,e){this.DisplayObject_draw(t,e)||(this._updateText(),this.Container_draw(t,e))},e.getBounds=function(){return this._updateText(),this.Container_getBounds()},e.isVisible=function(){var t=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&this.text;return!!(this.visible&&this.alpha>0&&0!==this.scaleX&&0!==this.scaleY&&t)},e.clone=function(){return this._cloneProps(new t(this.text,this.spriteSheet))},e.addChild=e.addChildAt=e.removeChild=e.removeChildAt=e.removeAllChildren=function(){},e._cloneProps=function(t){return this.Container__cloneProps(t),t.lineHeight=this.lineHeight,t.letterSpacing=this.letterSpacing,t.spaceWidth=this.spaceWidth,t},e._getFrameIndex=function(t,e){var n,i=e.getAnimation(t);return i||(t!=(n=t.toUpperCase())||t!=(n=t.toLowerCase())||(n=null),n&&(i=e.getAnimation(n))),i&&i.frames[0]},e._getFrame=function(t,e){var n=this._getFrameIndex(t,e);return null==n?n:e.getFrame(n)},e._getLineHeight=function(t){var e=this._getFrame("1",t)||this._getFrame("T",t)||this._getFrame("L",t)||t.getFrame(0);return e?e.rect.height:1},e._getSpaceWidth=function(t){var e=this._getFrame("1",t)||this._getFrame("l",t)||this._getFrame("e",t)||this._getFrame("a",t)||t.getFrame(0);return e?e.rect.width:1},e._updateText=function(){var e,i=0,r=0,o=this._oldProps,s=!1,a=this.spaceWidth,u=this.lineHeight,c=this.spriteSheet,h=t._spritePool,l=this.children,f=0,d=l.length;for(var p in o)o[p]!=this[p]&&(o[p]=this[p],s=!0);if(s){var m=!!this._getFrame(" ",c);m||a||(a=this._getSpaceWidth(c)),u||(u=this._getLineHeight(c));for(var g=0,v=this.text.length;v>g;g++){var _=this.text.charAt(g);if(" "!=_||m)if("\n"!=_&&"\r"!=_){var y=this._getFrameIndex(_,c);null!=y&&(d>f?e=l[f]:(l.push(e=h.length?h.pop():new n.Sprite),e.parent=this,d++),e.spriteSheet=c,e.gotoAndStop(y),e.x=i,e.y=r,f++,i+=e.getBounds().width+this.letterSpacing)}else"\r"==_&&"\n"==this.text.charAt(g+1)&&g++,i=0,r+=u;else i+=a}for(;d>f;)h.push(e=l.pop()),e.parent=null,d--;h.length>t.maxPoolSize&&(h.length=t.maxPoolSize)}},n.BitmapText=n.promote(t,"Container")}(),n=n||{},function(){"use strict";function t(e,i,r,o){this.Container_constructor(),!t.inited&&t.init(),this.mode=e||t.INDEPENDENT,this.startPosition=i||0,this.loop=r,this.currentFrame=0,this.timeline=new n.Timeline(null,o,{paused:!0,position:i,useTicks:!0}),this.paused=!1,this.actionsEnabled=!0,this.autoReset=!0,this.frameBounds=this.frameBounds||null,this.framerate=null,this._synchOffset=0,this._prevPos=-1,this._prevPosition=0,this._t=0,this._managed={}}function e(){throw"MovieClipPlugin cannot be instantiated."}var i=n.extend(t,n.Container);t.INDEPENDENT="independent",t.SINGLE_FRAME="single",t.SYNCHED="synched",t.inited=!1,t.init=function(){t.inited||(e.install(),t.inited=!0)},i.getLabels=function(){return this.timeline.getLabels()},i.getCurrentLabel=function(){return this._updateTimeline(),this.timeline.getCurrentLabel()},i.getDuration=function(){return this.timeline.duration};try{Object.defineProperties(i,{labels:{get:i.getLabels},currentLabel:{get:i.getCurrentLabel},totalFrames:{get:i.getDuration},duration:{get:i.getDuration}})}catch(t){}i.initialize=t,i.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},i.draw=function(t,e){return!!this.DisplayObject_draw(t,e)||(this._updateTimeline(),this.Container_draw(t,e),!0)},i.play=function(){this.paused=!1},i.stop=function(){this.paused=!0},i.gotoAndPlay=function(t){this.paused=!1,this._goto(t)},i.gotoAndStop=function(t){this.paused=!0,this._goto(t)},i.advance=function(e){var n=t.INDEPENDENT;if(this.mode==n){for(var i=this,r=i.framerate;(i=i.parent)&&null==r;)i.mode==n&&(r=i._framerate);this._framerate=r;var o=null!=r&&-1!=r&&null!=e?e/(1e3/r)+this._t:1,s=0|o;for(this._t=o-s;!this.paused&&s--;)this._prevPosition=this._prevPos<0?0:this._prevPosition+1,this._updateTimeline()}},i.clone=function(){throw"MovieClip cannot be cloned."},i.toString=function(){return"[MovieClip (name="+this.name+")]"},i._tick=function(t){this.advance(t&&t.delta),this.Container__tick(t)},i._goto=function(t){var e=this.timeline.resolve(t);null!=e&&(-1==this._prevPos&&(this._prevPos=NaN),this._prevPosition=e,this._t=0,this._updateTimeline())},i._reset=function(){this._prevPos=-1,this._t=this.currentFrame=0,this.paused=!1},i._updateTimeline=function(){var e=this.timeline,i=this.mode!=t.INDEPENDENT;e.loop=null==this.loop||this.loop;var r=i?this.startPosition+(this.mode==t.SINGLE_FRAME?0:this._synchOffset):this._prevPos<0?0:this._prevPosition,o=i||!this.actionsEnabled?n.Tween.NONE:null;if(this.currentFrame=e._calcPosition(r),e.setPosition(r,o),this._prevPosition=e._prevPosition,this._prevPos!=e._prevPos){for(var s in this.currentFrame=this._prevPos=e._prevPos,this._managed)this._managed[s]=1;for(var a=e._tweens,u=0,c=a.length;c>u;u++){var h=a[u],l=h._target;if(l!=this&&!h.passive){var f=h._stepPosition;l instanceof n.DisplayObject?this._addManagedChild(l,f):this._setState(l.state,f)}}var d=this.children;for(u=d.length-1;u>=0;u--){var p=d[u].id;1==this._managed[p]&&(this.removeChildAt(u),delete this._managed[p])}}},i._setState=function(t,e){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n],r=i.t,o=i.p;for(var s in o)r[s]=o[s];this._addManagedChild(r,e)}},i._addManagedChild=function(e,n){e._off||(this.addChildAt(e,0),e instanceof t&&(e._synchOffset=n,e.mode==t.INDEPENDENT&&e.autoReset&&!this._managed[e.id]&&e._reset()),this._managed[e.id]=2)},i._getBounds=function(t,e){var n=this.DisplayObject_getBounds();return n||(this._updateTimeline(),this.frameBounds&&(n=this._rectangle.copy(this.frameBounds[this.currentFrame]))),n?this._transformBounds(n,t,e):this.Container__getBounds(t,e)},n.MovieClip=n.promote(t,"Container"),e.priority=100,e.install=function(){n.Tween.installPlugin(e,["startPosition"])},e.init=function(t,e,n){return n},e.step=function(){},e.tween=function(e,n,i,r,o,s){return e.target instanceof t?1==s?o[n]:r[n]:i}}(),n=n||{},function(){"use strict";function t(){throw"SpriteSheetUtils cannot be instantiated"}var e=n.createCanvas?n.createCanvas():document.createElement("canvas");e.getContext&&(t._workingCanvas=e,t._workingContext=e.getContext("2d"),e.width=e.height=1),t.addFlippedFrames=function(e,n,i,r){if(n||i||r){var o=0;n&&t._flip(e,++o,!0,!1),i&&t._flip(e,++o,!1,!0),r&&t._flip(e,++o,!0,!0)}},t.extractFrame=function(e,n){isNaN(n)&&(n=e.getAnimation(n).frames[0]);var i=e.getFrame(n);if(!i)return null;var r=i.rect,o=t._workingCanvas;o.width=r.width,o.height=r.height,t._workingContext.drawImage(i.image,r.x,r.y,r.width,r.height,0,0,r.width,r.height);var s=document.createElement("img");return s.src=o.toDataURL("image/png"),s},t.mergeAlpha=function(t,e,i){i||(i=n.createCanvas?n.createCanvas():document.createElement("canvas")),i.width=Math.max(e.width,t.width),i.height=Math.max(e.height,t.height);var r=i.getContext("2d");return r.save(),r.drawImage(t,0,0),r.globalCompositeOperation="destination-in",r.drawImage(e,0,0),r.restore(),i},t._flip=function(e,n,i,r){for(var o=e._images,s=t._workingCanvas,a=t._workingContext,u=o.length/n,c=0;u>c;c++){var h=o[c];h.__tmp=c,a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,s.width+1,s.height+1),s.width=h.width,s.height=h.height,a.setTransform(i?-1:1,0,0,r?-1:1,i?h.width:0,r?h.height:0),a.drawImage(h,0,0);var l=document.createElement("img");l.src=s.toDataURL("image/png"),l.width=h.width,l.height=h.height,o.push(l)}var f=e._frames,d=f.length/n;for(c=0;d>c;c++){var p=(h=f[c]).rect.clone(),m={image:l=o[h.image.__tmp+u*n],rect:p,regX:h.regX,regY:h.regY};i&&(p.x=l.width-p.x-p.width,m.regX=p.width-h.regX),r&&(p.y=l.height-p.y-p.height,m.regY=p.height-h.regY),f.push(m)}var g="_"+(i?"h":"")+(r?"v":""),v=e._animations,_=e._data,y=v.length/n;for(c=0;y>c;c++){var w=v[c],b={name:w+g,speed:(h=_[w]).speed,next:h.next,frames:[]};h.next&&(b.next+=g);for(var x=0,E=(f=h.frames).length;E>x;x++)b.frames.push(f[x]+d*n);_[b.name]=b,v.push(b.name)}},n.SpriteSheetUtils=t}(),n=n||{},function(){"use strict";function t(t){this.EventDispatcher_constructor(),this.maxWidth=2048,this.maxHeight=2048,this.spriteSheet=null,this.scale=1,this.padding=1,this.timeSlice=.3,this.progress=-1,this.framerate=t||0,this._frames=[],this._animations={},this._data=null,this._nextFrameIndex=0,this._index=0,this._timerID=null,this._scale=1}var e=n.extend(t,n.EventDispatcher);t.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions",t.ERR_RUNNING="a build is already running",e.addFrame=function(e,n,i,r,o){if(this._data)throw t.ERR_RUNNING;var s=n||e.bounds||e.nominalBounds;return!s&&e.getBounds&&(s=e.getBounds()),s?(i=i||1,this._frames.push({source:e,sourceRect:s,scale:i,funct:r,data:o,index:this._frames.length,height:s.height*i})-1):null},e.addAnimation=function(e,n,i,r){if(this._data)throw t.ERR_RUNNING;this._animations[e]={frames:n,next:i,speed:r}},e.addMovieClip=function(e,n,i,r,o,s){if(this._data)throw t.ERR_RUNNING;var a=e.frameBounds,u=n||e.bounds||e.nominalBounds;if(!u&&e.getBounds&&(u=e.getBounds()),u||a){var c,h,l=this._frames.length,f=e.timeline.duration;for(c=0;f>c;c++){var d=a&&a[c]?a[c]:u;this.addFrame(e,d,i,this._setupMovieClipFrame,{i:c,f:r,d:o})}var p=e.timeline._labels,m=[];for(var g in p)m.push({index:p[g],label:g});if(m.length)for(m.sort(function(t,e){return t.index-e.index}),c=0,h=m.length;h>c;c++){for(var v=m[c].label,_=l+m[c].index,y=l+(c==h-1?f:m[c+1].index),w=[],b=_;y>b;b++)w.push(b);(!s||(v=s(v,e,_,y)))&&this.addAnimation(v,w,!0)}}},e.build=function(){if(this._data)throw t.ERR_RUNNING;for(this._startBuild();this._drawNext(););return this._endBuild(),this.spriteSheet},e.buildAsync=function(e){if(this._data)throw t.ERR_RUNNING;this.timeSlice=e,this._startBuild();var n=this;this._timerID=setTimeout(function(){n._run()},50-50*Math.max(.01,Math.min(.99,this.timeSlice||.3)))},e.stopAsync=function(){clearTimeout(this._timerID),this._data=null},e.clone=function(){throw"SpriteSheetBuilder cannot be cloned."},e.toString=function(){return"[SpriteSheetBuilder]"},e._startBuild=function(){var e=this.padding||0;this.progress=0,this.spriteSheet=null,this._index=0,this._scale=this.scale;var i=[];this._data={images:[],frames:i,framerate:this.framerate,animations:this._animations};var r=this._frames.slice();if(r.sort(function(t,e){return t.height<=e.height?-1:1}),r[r.length-1].height+2*e>this.maxHeight)throw t.ERR_DIMENSIONS;for(var o=0,s=0,a=0;r.length;){var u=this._fillRow(r,o,a,i,e);if(u.w>s&&(s=u.w),o+=u.h,!u.h||!r.length){var c=n.createCanvas?n.createCanvas():document.createElement("canvas");c.width=this._getSize(s,this.maxWidth),c.height=this._getSize(o,this.maxHeight),this._data.images[a]=c,u.h||(s=o=0,a++)}}},e._setupMovieClipFrame=function(t,e){var n=t.actionsEnabled;t.actionsEnabled=!1,t.gotoAndStop(e.i),t.actionsEnabled=n,e.f&&e.f(t,e.d,e.i)},e._getSize=function(t,e){for(var n=4;Math.pow(2,++n)=0;l--){var f=e[l],d=this._scale*f.scale,p=f.sourceRect,m=f.source,g=Math.floor(d*p.x-s),v=Math.floor(d*p.y-s),_=Math.ceil(d*p.height+2*s),y=Math.ceil(d*p.width+2*s);if(y>a)throw t.ERR_DIMENSIONS;_>u||c+y>a||(f.img=r,f.rect=new n.Rectangle(c,i,y,_),h=h||_,e.splice(l,1),o[f.index]=[c,i,y,_,r,Math.round(-g+d*m.regX-s),Math.round(-v+d*m.regY-s)],c+=y)}return{w:c,h:h}},e._endBuild=function(){this.spriteSheet=new n.SpriteSheet(this._data),this._data=null,this.progress=1,this.dispatchEvent("complete")},e._run=function(){for(var t=50*Math.max(.01,Math.min(.99,this.timeSlice||.3)),e=(new Date).getTime()+t,i=!1;e>(new Date).getTime();)if(!this._drawNext()){i=!0;break}if(i)this._endBuild();else{var r=this;this._timerID=setTimeout(function(){r._run()},50-t)}var o=this.progress=this._index/this._frames.length;if(this.hasEventListener("progress")){var s=new n.Event("progress");s.progress=o,this.dispatchEvent(s)}},e._drawNext=function(){var t=this._frames[this._index],e=t.scale*this._scale,n=t.rect,i=t.sourceRect,r=this._data.images[t.img].getContext("2d");return t.funct&&t.funct(t.source,t.data),r.save(),r.beginPath(),r.rect(n.x,n.y,n.width,n.height),r.clip(),r.translate(Math.ceil(n.x-i.x*e),Math.ceil(n.y-i.y*e)),r.scale(e,e),t.source.draw(r),r.restore(),++this._indext)&&(t=0),(isNaN(e)||0>e)&&(e=0),(isNaN(n)||1>n)&&(n=1),this.blurX=0|t,this.blurY=0|e,this.quality=0|n}var e=n.extend(t,n.Filter);t.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1],t.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9],e.getBounds=function(t){var e=0|this.blurX,i=0|this.blurY;if(0>=e&&0>=i)return t;var r=Math.pow(this.quality,.2);return(t||new n.Rectangle).pad(e*r+1,i*r+1,e*r+1,i*r+1)},e.clone=function(){return new t(this.blurX,this.blurY,this.quality)},e.toString=function(){return"[BlurFilter]"},e._applyFilter=function(e){var n=this.blurX>>1;if(isNaN(n)||0>n)return!1;var i=this.blurY>>1;if(isNaN(i)||0>i)return!1;if(0==n&&0==i)return!1;var r=this.quality;(isNaN(r)||1>r)&&(r=1),(r|=0)>3&&(r=3),1>r&&(r=1);var o=e.data,s=0,a=0,u=0,c=0,h=0,l=0,f=0,d=0,p=0,m=0,g=0,v=0,_=0,y=0,w=0,b=n+n+1|0,x=i+i+1|0,E=0|e.width,S=0|e.height,A=E-1|0,T=S-1|0,O=n+1|0,k=i+1|0,P={r:0,b:0,g:0,a:0},I=P;for(u=1;b>u;u++)I=I.n={r:0,b:0,g:0,a:0};I.n=P;var C={r:0,b:0,g:0,a:0},D=C;for(u=1;x>u;u++)D=D.n={r:0,b:0,g:0,a:0};D.n=C;for(var j=null,R=0|t.MUL_TABLE[n],M=0|t.SHG_TABLE[n],N=0|t.MUL_TABLE[i],F=0|t.SHG_TABLE[i];r-- >0;){f=l=0;var L=R,U=M;for(a=S;--a>-1;){for(d=O*(v=o[0|l]),p=O*(_=o[l+1|0]),m=O*(y=o[l+2|0]),g=O*(w=o[l+3|0]),I=P,u=O;--u>-1;)I.r=v,I.g=_,I.b=y,I.a=w,I=I.n;for(u=1;O>u;u++)c=l+((u>A?A:u)<<2)|0,d+=I.r=o[c],p+=I.g=o[c+1],m+=I.b=o[c+2],g+=I.a=o[c+3],I=I.n;for(j=P,s=0;E>s;s++)o[l++]=d*L>>>U,o[l++]=p*L>>>U,o[l++]=m*L>>>U,o[l++]=g*L>>>U,c=f+((c=s+n+1)s;s++){for(d=k*(v=o[l=s<<2|0])|0,p=k*(_=o[l+1|0])|0,m=k*(y=o[l+2|0])|0,g=k*(w=o[l+3|0])|0,D=C,u=0;k>u;u++)D.r=v,D.g=_,D.b=y,D.a=w,D=D.n;for(h=E,u=1;i>=u;u++)l=h+s<<2,d+=D.r=o[l],p+=D.g=o[l+1],m+=D.b=o[l+2],g+=D.a=o[l+3],D=D.n,T>u&&(h+=E);if(l=s,j=C,r>0)for(a=0;S>a;a++)o[(c=l<<2)+3]=w=g*L>>>U,w>0?(o[c]=d*L>>>U,o[c+1]=p*L>>>U,o[c+2]=m*L>>>U):o[c]=o[c+1]=o[c+2]=0,c=s+((c=a+k)a;a++)o[(c=l<<2)+3]=w=g*L>>>U,w>0?(w=255/w,o[c]=(d*L>>>U)*w,o[c+1]=(p*L>>>U)*w,o[c+2]=(m*L>>>U)*w):o[c]=o[c+1]=o[c+2]=0,c=s+((c=a+k)i;i+=4)e[i+3]=n[i]||0;return!0},e._prepAlphaMap=function(){if(!this.alphaMap)return!1;if(this.alphaMap==this._alphaMap&&this._mapData)return!0;this._mapData=null;var t,e=this._alphaMap=this.alphaMap,i=e;e instanceof HTMLCanvasElement?t=i.getContext("2d"):((i=n.createCanvas?n.createCanvas():document.createElement("canvas")).width=e.width,i.height=e.height,(t=i.getContext("2d")).drawImage(e,0,0));try{var r=t.getImageData(0,0,e.width,e.height)}catch(t){return!1}return this._mapData=r.data,!0},n.AlphaMapFilter=n.promote(t,"Filter")}(),n=n||{},function(){"use strict";function t(t){this.mask=t}var e=n.extend(t,n.Filter);e.applyFilter=function(t,e,n,i,r,o,s,a){return!this.mask||(null==s&&(s=e),null==a&&(a=n),(o=o||t).save(),t==o&&(o.globalCompositeOperation="destination-in",o.drawImage(this.mask,s,a),o.restore(),!0))},e.clone=function(){return new t(this.mask)},e.toString=function(){return"[AlphaMaskFilter]"},n.AlphaMaskFilter=n.promote(t,"Filter")}(),n=n||{},function(){"use strict";function t(t,e,n,i,r,o,s,a){this.redMultiplier=null!=t?t:1,this.greenMultiplier=null!=e?e:1,this.blueMultiplier=null!=n?n:1,this.alphaMultiplier=null!=i?i:1,this.redOffset=r||0,this.greenOffset=o||0,this.blueOffset=s||0,this.alphaOffset=a||0}var e=n.extend(t,n.Filter);e.toString=function(){return"[ColorFilter]"},e.clone=function(){return new t(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},e._applyFilter=function(t){for(var e=t.data,n=e.length,i=0;n>i;i+=4)e[i]=e[i]*this.redMultiplier+this.redOffset,e[i+1]=e[i+1]*this.greenMultiplier+this.greenOffset,e[i+2]=e[i+2]*this.blueMultiplier+this.blueOffset,e[i+3]=e[i+3]*this.alphaMultiplier+this.alphaOffset;return!0},n.ColorFilter=n.promote(t,"Filter")}(),n=n||{},function(){"use strict";function t(t,e,n,i){this.setColor(t,e,n,i)}var e=t.prototype;t.DELTA_INDEX=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],t.IDENTITY_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],t.LENGTH=t.IDENTITY_MATRIX.length,e.setColor=function(t,e,n,i){return this.reset().adjustColor(t,e,n,i)},e.reset=function(){return this.copy(t.IDENTITY_MATRIX)},e.adjustColor=function(t,e,n,i){return this.adjustHue(i),this.adjustContrast(e),this.adjustBrightness(t),this.adjustSaturation(n)},e.adjustBrightness=function(t){return 0==t||isNaN(t)?this:(t=this._cleanValue(t,255),this._multiplyMatrix([1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1]),this)},e.adjustContrast=function(e){return 0==e||isNaN(e)?this:(0>(e=this._cleanValue(e,100))?n=127+e/100*127:n=127*(n=0==(n=e%1)?t.DELTA_INDEX[e]:t.DELTA_INDEX[e<<0]*(1-n)+t.DELTA_INDEX[1+(e<<0)]*n)+127,this._multiplyMatrix([n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1]),this);var n},e.adjustSaturation=function(t){if(0==t||isNaN(t))return this;var e=1+((t=this._cleanValue(t,100))>0?3*t/100:t/100),n=.3086,i=.6094,r=.082;return this._multiplyMatrix([n*(1-e)+e,i*(1-e),r*(1-e),0,0,n*(1-e),i*(1-e)+e,r*(1-e),0,0,n*(1-e),i*(1-e),r*(1-e)+e,0,0,0,0,0,1,0,0,0,0,0,1]),this},e.adjustHue=function(t){if(0==t||isNaN(t))return this;t=this._cleanValue(t,180)/180*Math.PI;var e=Math.cos(t),n=Math.sin(t),i=.213,r=.715,o=.072;return this._multiplyMatrix([i+e*(1-i)+n*-i,r+e*-r+n*-r,o+e*-o+n*(1-o),0,0,i+e*-i+.143*n,r+e*(1-r)+.14*n,o+e*-o+-.283*n,0,0,i+e*-i+-.787*n,r+e*-r+n*r,o+e*(1-o)+n*o,0,0,0,0,0,1,0,0,0,0,0,1]),this},e.concat=function(e){return(e=this._fixMatrix(e)).length!=t.LENGTH?this:(this._multiplyMatrix(e),this)},e.clone=function(){return(new t).copy(this)},e.toArray=function(){for(var e=[],n=0,i=t.LENGTH;i>n;n++)e[n]=this[n];return e},e.copy=function(e){for(var n=t.LENGTH,i=0;n>i;i++)this[i]=e[i];return this},e.toString=function(){return"[ColorMatrix]"},e._multiplyMatrix=function(t){var e,n,i,r=[];for(e=0;5>e;e++){for(n=0;5>n;n++)r[n]=this[n+5*e];for(n=0;5>n;n++){var o=0;for(i=0;5>i;i++)o+=t[n+5*i]*r[i];this[n+5*e]=o}}},e._cleanValue=function(t,e){return Math.min(e,Math.max(-e,t))},e._fixMatrix=function(e){return e instanceof t&&(e=e.toArray()),e.lengtht.LENGTH&&(e=e.slice(0,t.LENGTH)),e},n.ColorMatrix=t}(),n=n||{},function(){"use strict";function t(t){this.matrix=t}var e=n.extend(t,n.Filter);e.toString=function(){return"[ColorMatrixFilter]"},e.clone=function(){return new t(this.matrix)},e._applyFilter=function(t){for(var e,n,i,r,o=t.data,s=o.length,a=this.matrix,u=a[0],c=a[1],h=a[2],l=a[3],f=a[4],d=a[5],p=a[6],m=a[7],g=a[8],v=a[9],_=a[10],y=a[11],w=a[12],b=a[13],x=a[14],E=a[15],S=a[16],A=a[17],T=a[18],O=a[19],k=0;s>k;k+=4)e=o[k],n=o[k+1],i=o[k+2],r=o[k+3],o[k]=e*u+n*c+i*h+r*l+f,o[k+1]=e*d+n*p+i*m+r*g+v,o[k+2]=e*_+n*y+i*w+r*b+x,o[k+3]=e*E+n*S+i*A+r*T+O;return!0},n.ColorMatrixFilter=n.promote(t,"Filter")}(),n=n||{},function(){"use strict";function t(){throw"Touch cannot be instantiated"}t.isSupported=function(){return!!("ontouchstart"in window||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0)},t.enable=function(e,n,i){return!!(e&&e.canvas&&t.isSupported())&&(!!e.__touch||(e.__touch={pointers:{},multitouch:!n,preventDefault:!i,count:0},"ontouchstart"in window?t._IOS_enable(e):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&t._IE_enable(e),!0))},t.disable=function(e){e&&("ontouchstart"in window?t._IOS_disable(e):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&t._IE_disable(e),delete e.__touch)},t._IOS_enable=function(e){var n=e.canvas,i=e.__touch.f=function(n){t._IOS_handleEvent(e,n)};n.addEventListener("touchstart",i,!1),n.addEventListener("touchmove",i,!1),n.addEventListener("touchend",i,!1),n.addEventListener("touchcancel",i,!1)},t._IOS_disable=function(t){var e=t.canvas;if(e){var n=t.__touch.f;e.removeEventListener("touchstart",n,!1),e.removeEventListener("touchmove",n,!1),e.removeEventListener("touchend",n,!1),e.removeEventListener("touchcancel",n,!1)}},t._IOS_handleEvent=function(t,e){if(t){t.__touch.preventDefault&&e.preventDefault&&e.preventDefault();for(var n=e.changedTouches,i=e.type,r=0,o=n.length;o>r;r++){var s=n[r],a=s.identifier;s.target==t.canvas&&("touchstart"==i?this._handleStart(t,a,e,s.pageX,s.pageY):"touchmove"==i?this._handleMove(t,a,e,s.pageX,s.pageY):("touchend"==i||"touchcancel"==i)&&this._handleEnd(t,a,e))}}},t._IE_enable=function(e){var n=e.canvas,i=e.__touch.f=function(n){t._IE_handleEvent(e,n)};void 0===window.navigator.pointerEnabled?(n.addEventListener("MSPointerDown",i,!1),window.addEventListener("MSPointerMove",i,!1),window.addEventListener("MSPointerUp",i,!1),window.addEventListener("MSPointerCancel",i,!1),e.__touch.preventDefault&&(n.style.msTouchAction="none")):(n.addEventListener("pointerdown",i,!1),window.addEventListener("pointermove",i,!1),window.addEventListener("pointerup",i,!1),window.addEventListener("pointercancel",i,!1),e.__touch.preventDefault&&(n.style.touchAction="none")),e.__touch.activeIDs={}},t._IE_disable=function(t){var e=t.__touch.f;void 0===window.navigator.pointerEnabled?(window.removeEventListener("MSPointerMove",e,!1),window.removeEventListener("MSPointerUp",e,!1),window.removeEventListener("MSPointerCancel",e,!1),t.canvas&&t.canvas.removeEventListener("MSPointerDown",e,!1)):(window.removeEventListener("pointermove",e,!1),window.removeEventListener("pointerup",e,!1),window.removeEventListener("pointercancel",e,!1),t.canvas&&t.canvas.removeEventListener("pointerdown",e,!1))},t._IE_handleEvent=function(t,e){if(t){t.__touch.preventDefault&&e.preventDefault&&e.preventDefault();var n=e.type,i=e.pointerId,r=t.__touch.activeIDs;if("MSPointerDown"==n||"pointerdown"==n){if(e.srcElement!=t.canvas)return;r[i]=!0,this._handleStart(t,i,e,e.pageX,e.pageY)}else r[i]&&("MSPointerMove"==n||"pointermove"==n?this._handleMove(t,i,e,e.pageX,e.pageY):("MSPointerUp"==n||"MSPointerCancel"==n||"pointerup"==n||"pointercancel"==n)&&(delete r[i],this._handleEnd(t,i,e)))}},t._handleStart=function(t,e,n,i,r){var o=t.__touch;if(o.multitouch||!o.count){var s=o.pointers;s[e]||(s[e]=!0,o.count++,t._handlePointerDown(e,n,i,r))}},t._handleMove=function(t,e,n,i,r){t.__touch.pointers[e]&&t._handlePointerMove(e,n,i,r)},t._handleEnd=function(t,e,n){var i=t.__touch,r=i.pointers;r[e]&&(i.count--,t._handlePointerUp(e,n,!0),delete r[e])},n.Touch=t}(),n=n||{},function(){"use strict";var t=n.EaselJS=n.EaselJS||{};t.version="0.8.2",t.buildDate="Thu, 26 Nov 2015 20:44:34 GMT"}(),e.Easel=n},cffcffbicc:function(t,e,n){"use strict";var i; /** * @link https://github.com/gajus/sister for the canonical source repository * @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause */i=function(){var t={},e={};return t.on=function(t,n){var i={name:t,handler:n};return e[t]=e[t]||[],e[t].unshift(i),i},t.off=function(t){var n=e[t.name].indexOf(t);-1!==n&&e[t.name].splice(n,1)},t.trigger=function(t,n){var i,r=e[t];if(r)for(i=r.length;i--;)r[i].handler(n)},t},t.exports=i},cfjecfhbfg:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},cgeeeeddea:function(t,e,n){"use strict";t.exports=function(t,e,n,i,r,o,s,a){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,r,o,s,a],h=0;(u=new Error(e.replace(/%s/g,function(){return c[h++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},cjbedagefc:function(t,e,n){"use strict";var i=n("dddgijibah"),r=n("eajjhhhffe");function o(){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}e.parse=y,e.resolve=function(t,e){return y(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?y(t,!1,!0).resolveObject(e):e},e.format=function(t){r.isString(t)&&(t=y(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(c),l=["%","/","?",";","#"].concat(h),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n("hhfbfhbhh");function y(t,e,n){if(t&&r.isObject(t)&&t instanceof o)return t;var i=new o;return i.parse(t,e,n),i}o.prototype.parse=function(t,e,n){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o127?j+="x":j+=D[R];if(!j.match(d)){var N=I.slice(0,O),F=I.slice(O+1),L=D.match(p);L&&(N.push(L[1]),F.unshift(L[2])),F.length&&(y="/"+F.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.toASCII(this.hostname));var U=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+U,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[x])for(O=0,C=h.length;O0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift());return n.search=t.search,n.query=t.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=E.slice(-1)[0],T=(n.host||t.host||E.length>1)&&("."===A||".."===A)||""===A,O=0,k=E.length;k>=0;k--)"."===(A=E[k])?E.splice(k,1):".."===A?(E.splice(k,1),O++):O&&(E.splice(k,1),O--);if(!b&&!x)for(;O--;O)E.unshift("..");!b||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),T&&"/"!==E.join("/").substr(-1)&&E.push("");var P,I=""===E[0]||E[0]&&"/"===E[0].charAt(0);S&&(n.hostname=n.host=I?"":E.length?E.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift()));return(b=b||n.host&&E.length)&&!I&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},cjdbhgahjh:function(t,e,n){var i;function r(t){function n(){if(n.enabled){var t=n,r=+new Date,o=r-(i||r);t.diff=o,t.prev=i,t.curr=r,i=r;for(var s=new Array(arguments.length),a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},dbjagcfebh:function(t,e,n){var i=n("bedeadcjdb");t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}},dddgijibah:function(t,e,n){(function(t,i){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var s="object"==typeof i&&i;s.global!==s&&s.window!==s&&s.self;var a,u=2147483647,c=36,h=1,l=26,f=38,d=700,p=72,m=128,g="-",v=/^xn--/,_=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=c-h,x=Math.floor,E=String.fromCharCode;function S(t){throw new RangeError(w[t])}function A(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function T(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),i+A((t=t.replace(y,".")).split("."),e).join(".")}function O(t){for(var e,n,i=[],r=0,o=t.length;r=55296&&e<=56319&&r65535&&(e+=E((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=E(t)}).join("")}function P(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function I(t,e,n){var i=0;for(t=n?x(t/d):t>>1,t+=x(t/e);t>b*l>>1;i+=c)t=x(t/b);return x(i+(b+1)*t/(t+f))}function C(t){var e,n,i,r,o,s,a,f,d,v,_,y=[],w=t.length,b=0,E=m,A=p;for((n=t.lastIndexOf(g))<0&&(n=0),i=0;i=128&&S("not-basic"),y.push(t.charCodeAt(i));for(r=n>0?n+1:0;r=w&&S("invalid-input"),((f=(_=t.charCodeAt(r++))-48<10?_-22:_-65<26?_-65:_-97<26?_-97:c)>=c||f>x((u-b)/s))&&S("overflow"),b+=f*s,!(f<(d=a<=A?h:a>=A+l?l:a-A));a+=c)s>x(u/(v=c-d))&&S("overflow"),s*=v;A=I(b-o,e=y.length+1,0==o),x(b/e)>u-E&&S("overflow"),E+=x(b/e),b%=e,y.splice(b++,0,E)}return k(y)}function D(t){var e,n,i,r,o,s,a,f,d,v,_,y,w,b,A,T=[];for(y=(t=O(t)).length,e=m,n=0,o=p,s=0;s=e&&_x((u-n)/(w=i+1))&&S("overflow"),n+=(a-e)*w,e=a,s=0;su&&S("overflow"),_==e){for(f=n,d=c;!(f<(v=d<=o?h:d>=o+l?l:d-o));d+=c)A=f-v,b=c-v,T.push(E(P(v+A%b,0))),f=x(A/b);T.push(E(P(f,0))),o=I(n,w,i==r),n=0,++i}++n,++e}return T.join("")}a={version:"1.4.1",ucs2:{decode:O,encode:k},decode:C,encode:D,toASCII:function(t){return T(t,function(t){return _.test(t)?"xn--"+D(t):t})},toUnicode:function(t){return T(t,function(t){return v.test(t)?C(t.slice(4).toLowerCase()):t})}},void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()}).call(e,n("cdcbgjejja")(t),n("bgdiiijdd"))},ddeicfhhch:function(t,e,n){"use strict";t.exports=function(t){return t&&t.length>1?255===t[0]&&216===t[1]&&255===t[2]?{ext:"jpg",mime:"image/jpeg"}:137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?{ext:"png",mime:"image/png"}:71===t[0]&&73===t[1]&&70===t[2]?{ext:"gif",mime:"image/gif"}:87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?{ext:"webp",mime:"image/webp"}:(73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3])&&67===t[8]&&82===t[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]?{ext:"tif",mime:"image/tiff"}:66===t[0]&&77===t[1]?{ext:"bmp",mime:"image/bmp"}:73===t[0]&&73===t[1]&&188===t[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===t[0]&&66===t[1]&&80===t[2]&&83===t[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&109===t[30]&&105===t[31]&&109===t[32]&&101===t[33]&&116===t[34]&&121===t[35]&&112===t[36]&&101===t[37]&&97===t[38]&&112===t[39]&&112===t[40]&&108===t[41]&&105===t[42]&&99===t[43]&&97===t[44]&&116===t[45]&&105===t[46]&&111===t[47]&&110===t[48]&&47===t[49]&&101===t[50]&&112===t[51]&&117===t[52]&&98===t[53]&&43===t[54]&&122===t[55]&&105===t[56]&&112===t[57]?{ext:"epub",mime:"application/epub+zip"}:80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]&&77===t[30]&&69===t[31]&&84===t[32]&&65===t[33]&&45===t[34]&&73===t[35]&&78===t[36]&&70===t[37]&&47===t[38]&&109===t[39]&&111===t[40]&&122===t[41]&&105===t[42]&&108===t[43]&&108===t[44]&&97===t[45]&&46===t[46]&&114===t[47]&&115===t[48]&&97===t[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==t[0]||75!==t[1]||3!==t[2]&&5!==t[2]&&7!==t[2]||4!==t[3]&&6!==t[3]&&8!==t[3]?117===t[257]&&115===t[258]&&116===t[259]&&97===t[260]&&114===t[261]?{ext:"tar",mime:"application/x-tar"}:82!==t[0]||97!==t[1]||114!==t[2]||33!==t[3]||26!==t[4]||7!==t[5]||0!==t[6]&&1!==t[6]?31===t[0]&&139===t[1]&&8===t[2]?{ext:"gz",mime:"application/gzip"}:66===t[0]&&90===t[1]&&104===t[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===t[0]&&122===t[1]&&188===t[2]&&175===t[3]&&39===t[4]&&28===t[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===t[0]&&1===t[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===t[0]&&0===t[1]&&0===t[2]&&(24===t[3]||32===t[3])&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]||51===t[0]&&103===t[1]&&112===t[2]&&53===t[3]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&109===t[16]&&112===t[17]&&52===t[18]&&49===t[19]&&109===t[20]&&112===t[21]&&52===t[22]&&50===t[23]&&105===t[24]&&115===t[25]&&111===t[26]&&109===t[27]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&105===t[8]&&115===t[9]&&111===t[10]&&109===t[11]||0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&109===t[8]&&112===t[9]&&52===t[10]&&50===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&0===t[15]?{ext:"mp4",mime:"video/mp4"}:0===t[0]&&0===t[1]&&0===t[2]&&28===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&86===t[10]?{ext:"m4v",mime:"video/x-m4v"}:77===t[0]&&84===t[1]&&104===t[2]&&100===t[3]?{ext:"mid",mime:"audio/midi"}:109===t[31]&&97===t[32]&&116===t[33]&&114===t[34]&&111===t[35]&&115===t[36]&&107===t[37]&&97===t[38]?{ext:"mkv",mime:"video/x-matroska"}:26===t[0]&&69===t[1]&&223===t[2]&&163===t[3]?{ext:"webm",mime:"video/webm"}:0===t[0]&&0===t[1]&&0===t[2]&&20===t[3]&&102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]?{ext:"mov",mime:"video/quicktime"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&65===t[8]&&86===t[9]&&73===t[10]?{ext:"avi",mime:"video/x-msvideo"}:48===t[0]&&38===t[1]&&178===t[2]&&117===t[3]&&142===t[4]&&102===t[5]&&207===t[6]&&17===t[7]&&166===t[8]&&217===t[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===t[0]&&0===t[1]&&1===t[2]&&"b"===t[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===t[0]&&68===t[1]&&51===t[2]||255===t[0]&&251===t[1]?{ext:"mp3",mime:"audio/mpeg"}:102===t[4]&&116===t[5]&&121===t[6]&&112===t[7]&&77===t[8]&&52===t[9]&&65===t[10]||77===t[0]&&52===t[1]&&65===t[2]&&32===t[3]?{ext:"m4a",mime:"audio/m4a"}:79===t[28]&&112===t[29]&&117===t[30]&&115===t[31]&&72===t[32]&&101===t[33]&&97===t[34]&&100===t[35]?{ext:"opus",mime:"audio/opus"}:79===t[0]&&103===t[1]&&103===t[2]&&83===t[3]?{ext:"ogg",mime:"audio/ogg"}:102===t[0]&&76===t[1]&&97===t[2]&&67===t[3]?{ext:"flac",mime:"audio/x-flac"}:82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&65===t[9]&&86===t[10]&&69===t[11]?{ext:"wav",mime:"audio/x-wav"}:35===t[0]&&33===t[1]&&65===t[2]&&77===t[3]&&82===t[4]&&10===t[5]?{ext:"amr",mime:"audio/amr"}:37===t[0]&&80===t[1]&&68===t[2]&&70===t[3]?{ext:"pdf",mime:"application/pdf"}:77===t[0]&&90===t[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||87!==t[1]||83!==t[2]?123===t[0]&&92===t[1]&&114===t[2]&&116===t[3]&&102===t[4]?{ext:"rtf",mime:"application/rtf"}:119===t[0]&&79===t[1]&&70===t[2]&&70===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff",mime:"application/font-woff"}:119===t[0]&&79===t[1]&&70===t[2]&&50===t[3]&&(0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]||79===t[4]&&84===t[5]&&84===t[6]&&79===t[7])?{ext:"woff2",mime:"application/font-woff"}:76===t[34]&&80===t[35]&&(0===t[8]&&0===t[9]&&1===t[10]||1===t[8]&&0===t[9]&&2===t[10]||2===t[8]&&0===t[9]&&2===t[10])?{ext:"eot",mime:"application/octet-stream"}:0===t[0]&&1===t[1]&&0===t[2]&&0===t[3]&&0===t[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===t[0]&&84===t[1]&&84===t[2]&&79===t[3]&&0===t[4]?{ext:"otf",mime:"application/font-sfnt"}:0===t[0]&&0===t[1]&&1===t[2]&&0===t[3]?{ext:"ico",mime:"image/x-icon"}:70===t[0]&&76===t[1]&&86===t[2]&&1===t[3]?{ext:"flv",mime:"video/x-flv"}:37===t[0]&&33===t[1]?{ext:"ps",mime:"application/postscript"}:253===t[0]&&55===t[1]&&122===t[2]&&88===t[3]&&90===t[4]&&0===t[5]?{ext:"xz",mime:"application/x-xz"}:83===t[0]&&81===t[1]&&76===t[2]&&105===t[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===t[0]&&69===t[1]&&83===t[2]&&26===t[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===t[0]&&114===t[1]&&50===t[2]&&52===t[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===t[0]&&83===t[1]&&67===t[2]&&70===t[3]||73===t[0]&&83===t[1]&&99===t[2]&&40===t[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]&&10===t[7]&&100===t[8]&&101===t[9]&&98===t[10]&&105===t[11]&&97===t[12]&&110===t[13]&&45===t[14]&&98===t[15]&&105===t[16]&&110===t[17]&&97===t[18]&&114===t[19]&&121===t[20]?{ext:"deb",mime:"application/x-deb"}:33===t[0]&&60===t[1]&&97===t[2]&&114===t[3]&&99===t[4]&&104===t[5]&&62===t[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===t[0]&&171===t[1]&&238===t[2]&&219===t[3]?{ext:"rpm",mime:"application/x-rpm"}:31===t[0]&&160===t[1]||31===t[0]&&157===t[1]?{ext:"Z",mime:"application/x-compress"}:76===t[0]&&90===t[1]&&73===t[2]&&80===t[3]?{ext:"lz",mime:"application/x-lzip"}:208===t[0]&&207===t[1]&&17===t[2]&&224===t[3]&&161===t[4]&&177===t[5]&&26===t[6]&&225===t[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null}},ddghcccjbh:function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,c=[],h=!1,l=-1;function f(){h&&u&&(h=!1,u.length?c=u.concat(c):l=-1,c.length&&d())}function d(){if(!h){var t=a(f);h=!0;for(var e=c.length;e;){for(u=c,c=[];++l1)for(var n=1;nd;d++)if(m=t[d],g=k.style[m],s(m,"-")&&(m=h(m)),k.style[m]!==n){if(a||i(r,"undefined"))return u(),"pfx"!=e||m;try{k.style[m]=r}catch(t){}if(k.style[m]!=g)return u(),"pfx"!=e||m}return u(),!1}function f(t,e){return function(){return t.apply(e,arguments)}}function d(t,e,n,r,o){var s=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+T.join(s+" ")+s).split(" ");return i(e,"string")||i(e,"undefined")?l(a,e,r,o):function(t,e,n){var r;for(var o in t)if(t[o]in e)return!1===n?t[o]:i(r=e[t[o]],"function")?f(r,n||e):r;return!1}(a=(t+" "+E.join(s+" ")+s).split(" "),e,n)}function p(t,e,i){return d(t,n,n,e,i)}function m(t,e){if("object"==typeof t)for(var n in t)P(t,n)&&m(n,t[n]);else{var i=(t=t.toLowerCase()).split("."),o=_[i[0]];if(2==i.length&&(o=o[i[1]]),void 0!==o)return _;e="function"==typeof e?e():e,1==i.length?_[i[0]]=e:(!_[i[0]]||_[i[0]]instanceof Boolean||(_[i[0]]=new Boolean(_[i[0]])),_[i[0]][i[1]]=e),r([(e&&0!=e?"":"no-")+i.join("-")]),_._trigger(t,e)}return _}var g=[],v={_version:"3.2.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){g.push({name:t,fn:e,options:n})},addAsyncTest:function(t){g.push({name:null,fn:t})}},_=function(){};_.prototype=v,_=new _;var y=[],w=e.documentElement,b="svg"===w.nodeName.toLowerCase(),x="Moz O ms Webkit",E=v._config.usePrefixes?x.toLowerCase().split(" "):[];v._domPrefixes=E;var S=v._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];v._prefixes=S;var A=function(t){var n=!("onblur"in e.documentElement);return function(e,i){var r;return!!e&&(i&&"string"!=typeof i||(i=o(i||"div")),!(r=(e="on"+e)in i)&&n&&(i.setAttribute||(i=o("div")),i.setAttribute(e,""),r="function"==typeof i[e],i[e]!==t&&(i[e]=t),i.removeAttribute(e)),r)}}();v.hasEvent=A;var T=v._config.usePrefixes?x.split(" "):[];v._cssomPrefixes=T;var O={elem:o("modernizr")};_._q.push(function(){delete O.elem});var k={style:O.elem.style};_._q.unshift(function(){delete k.style}),v.testAllProps=d;var P,I=function(e){var i,r=S.length,o=t.CSSRule;if(void 0===o)return n;if(!e)return!1;if((i=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in o)return"@"+e;for(var s=0;r>s;s++){var a=S[s];if(a.toUpperCase()+"_"+i in o)return"@-"+a.toLowerCase()+"-"+e}return!1};v.atRule=I,v.prefixed=function(t,e,n){return 0===t.indexOf("@")?I(t):(-1!=t.indexOf("-")&&(t=h(t)),e?d(t,e,n):d(t,"pfx"))},v.testAllProps=p,v.testProp=function(t,e,i){return l([t],n,e,i)},function(){var t={}.hasOwnProperty;P=i(t,"undefined")||i(t.call,"undefined")?function(t,e){return e in t&&i(t.constructor.prototype[e],"undefined")}:function(e,n){return t.call(e,n)}}(),v._l={},v.on=function(t,e){this._l[t]||(this._l[t]=[]),this._l[t].push(e),_.hasOwnProperty(t)&&setTimeout(function(){_._trigger(t,_[t])},0)},v._trigger=function(t,e){if(this._l[t]){var n=this._l[t];setTimeout(function(){var t;for(t=0;t1&&void 0!==arguments[1]&&arguments[1],n={},i=function(i){e&&s.default[i]?n[i]=function(){for(var e=arguments.length,n=Array(e),r=0;r=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())}).call(e,n("ddghcccjbh"))},ffceefejc:function(t,e,n){var i=n("deaafaigjj"),r=n("djecdhecha");t.exports=function(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?r(t):e}},fgjjfddbd:function(t,e,n){(function(t){!function(t){"use strict";var e,n=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,i=n&&"a=1"===new n({a:1}).toString(),r=n&&"+"===new n("s=%2B").get("s"),o="__URLSearchParams__",s=!n||((e=new n).append("s"," &"),"s=+%26"===e.toString()),a=l.prototype,u=!(!t.Symbol||!t.Symbol.iterator);if(!(n&&i&&r&&s)){a.append=function(t,e){g(this[o],t,e)},a.delete=function(t){delete this[o][t]},a.get=function(t){var e=this[o];return t in e?e[t][0]:null},a.getAll=function(t){var e=this[o];return t in e?e[t].slice(0):[]},a.has=function(t){return t in this[o]},a.set=function(t,e){this[o][t]=[""+e]},a.toString=function(){var t,e,n,i,r=this[o],s=[];for(e in r)for(n=f(e),t=0,i=r[e];t=0||(r[n]=t[n]);return r}},gafbbdcia:function(t,e){t.exports={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","Dz":"D","Dž":"D","Đ":"D","Ƌ":"D","DZ":"DZ","DŽ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","Lj":"L","Ł":"L","LJ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","Nj":"N","Ñ":"N","NJ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","ẞ":"SS","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","IJ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","dz":"dz","dž":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","lj":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","nj":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ß":"ss","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ij":"ij","œ":"oe","st":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x","Ё":"YO","Й":"I","Ц":"TS","У":"U","К":"K","Е":"E","Н":"N","Г":"G","Ш":"SH","Щ":"SCH","З":"Z","Х":"H","Ъ":"","ё":"yo","й":"i","ц":"ts","у":"u","к":"k","е":"e","н":"n","г":"g","ш":"sh","щ":"sch","з":"z","х":"h","ъ":"","Ф":"F","Ы":"I","В":"V","А":"A","П":"P","Р":"R","О":"O","Л":"L","Д":"D","Ж":"ZH","Э":"E","ф":"f","ы":"i","в":"v","а":"a","п":"p","р":"r","о":"o","л":"l","д":"d","ж":"zh","э":"e","Я":"Ya","Ч":"CH","С":"S","М":"M","И":"I","Т":"T","Ь":"","Б":"B","Ю":"YU","я":"ya","ч":"ch","с":"s","м":"m","и":"i","т":"t","ь":"","б":"b","ю":"yu"}},gbegbigbg:function(t,e,n){"use strict";var i=function(t){};t.exports=function(t,e,n,r,o,s,a,u){if(i(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[n,r,o,s,a,u],l=0;(c=new Error(e.replace(/%s/g,function(){return h[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},gfijjdfhe:function(t,e,n){"use strict";var i=n("cceahacgcd");function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},hbddjfeei:function(t,e,n){var i=n("dijfaihfc"),r=n("djghaahgac"),o=n("ccacajdfje");t.exports=function(t,e){return i(t)||r(t,e)||o()}},hhfbfhbhh:function(t,e,n){"use strict";e.decode=e.parse=n("bddfchfhhe"),e.encode=e.stringify=n("biaheggadi")},hihjbfggf:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},ifcaeafgc:function(t,e,n){ /** * filesize * * @author Jason Mulligan * @copyright 2014 Jason Mulligan * @license BSD-3 * @link http://filesizejs.com * @module filesize * @version 2.0.4 */ !function(e){"use strict";var n=/b$/,i=10,r=/.*\./,o=/^0$/;function s(t,e){var s,u,c,h,l,f,d,p,m,g,v,_,y="",w=0;if(isNaN(t))throw new Error("Invalid arguments");return c=!0===(e=e||{}).bits,p=!0===e.unix,u=void 0!==e.base?e.base:p?2:10,d=void 0!==e.round?e.round:p?1:2,m=void 0!==e.spacer?e.spacer:p?"":" ",_=void 0!==e.suffixes?e.suffixes:{},h=u>2?1e3:1024,(l=(f=Number(t))<0)&&(f=-f),0===f?y=p?"0":"0"+m+(_[g="B"]||g):((s=Math.floor(Math.log(f)/Math.log(1e3)))>8&&(w*=1e3*(s-8),s=8),w=2===u?f/Math.pow(2,10*s):f/Math.pow(1e3,s),c&&(w*=8)>h&&(w/=h,s++),y=w.toFixed(s>0?d:0),g=a[c?"bits":"bytes"][s],p?(c&&n.test(g)&&(g=g.toLowerCase()),g=g.charAt(0),v=y.replace(r,""),"B"===g?g="":c||"k"!==g||(g="K"),o.test(v)&&(y=parseInt(y,i).toString()),y+=m+(_[g]||g)):p||(y+=m+(_[g]||g))),l&&(y="-"+y),y}var a={bits:["B","kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","kB","MB","GB","TB","PB","EB","ZB","YB"]};t.exports=s}()},ijgbgbfij:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n("cbfdbgdfih"),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(t){var e=new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)t(window.YT);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){e&&e(),t(window.YT)}}}),n="http:"===window.location.protocol?"http:":"https:";return(0,o.default)(n+"//www.youtube.com/iframe_api",function(e){e&&t.trigger("error",e)}),e},t.exports=e.default},jfjadidfi:function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},jgajhifae:function(t,e,n){var i;!function(){function r(t,e,n){return t.call.apply(t.bind,arguments)}function o(t,e,n){if(!t)throw Error();if(2=e.f?r():t.fonts.load(function(t){return A(t)+" "+t.f+"00 300px "+E(t.c)}(e.a),e.h).then(function(t){1<=t.length?i():setTimeout(o,25)},function(){r()})}()}),r=null,o=new Promise(function(t,n){r=setTimeout(n,e.f)});Promise.race([o,i]).then(function(){r&&(clearTimeout(r),r=null),e.g(e.a)},function(){e.j(e.a)})};var N={D:"serif",C:"sans-serif"},F=null;function L(){if(null===F){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);F=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return F}function U(t,e,n){for(var i in N)if(N.hasOwnProperty(i)&&e===t.f[N[i]]&&n===t.f[N[i]])return!0;return!1}function B(t){var e,n=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(e=n===t.f.serif&&i===t.f["sans-serif"])||(e=L()&&U(t,n,i)),e?a()-t.A>=t.w?L()&&U(t,n,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?G(t,t.v):G(t,t.B):function(t){setTimeout(s(function(){B(this)},t),50)}(t):G(t,t.v)}function G(t,e){setTimeout(s(function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),e(this.a)},t),0)}function Y(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),B(this)};var V=null;function z(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),P(t,"active")):k(t.a))}function H(t){this.j=t,this.a=new I,this.h=0,this.f=this.g=!0}function X(t,e,n,i,r){var o=0==--t.h;(t.f||t.g)&&setTimeout(function(){var t=r||null,a=i||{};if(0===n.length&&o)k(e.a);else{e.f+=n.length,o&&(e.j=o);var u,c=[];for(u=0;u