/*! * @name @waca/barejs * @version 1.1.20181003 * @license * Licenced Materials - Property of IBM * * (C) Copyright IBM Corp. 2016, 2018 * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("barejs",[],t):"object"==typeof exports?exports.barejs=t():e.barejs=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){n(1),n(13),n(16),e.exports=n(18)},function(e,t,n){!function(e,n,r,i,o,s,a,u,l,c){"use strict";function f(e){return this[e]}function h(e,t){return this[e]=t}function p(e){if(e&&"object"==typeof e){if(te.call(e,"value"))return e.value;if(te.call(e,"get"))return e.get}return e}function d(e,t,n,r){var i;if(e&&"object"==typeof e)if(te.call(e,"value"))i=e;else if(te.call(e,"get")||te.call(e,"set")){if(i=e,!s.propertyGetSetSupport)return null;"string"==typeof i.get&&(i.getterName=i.get,i.get=p(n[i.get]||r&&r[i.get])),"string"==typeof i.set&&(i.setterName=i.set,i.set=p(n[i.set]||r&&r[i.set]))}return i||(i={enumerable:s.shouldBeEnumerable(t),writable:!0,value:e}),i}function y(e,t){var n,r,i=!1;switch(e&&typeof e){case"function":i=!0;break;case"object":if(i=e===se||e===le,!i){if(n="allowGet"in e&&e.allowGet,r="allowSet"in e&&e.allowSet,"boolean"!=typeof n)throw new o("allowGet value is not a boolean");if("boolean"!=typeof r)throw new o("allowSet value is not a boolean");i=n||r}}if(!i)throw new o("Values on an interface prototype must be either a function or an object containing allowGet or allowSet boolean properties.");return{enumerable:!0,value:e}}function v(e,t,n,r){ne&&!te.call(e,"name")&&s.defineProperty(e,"name",{configurable:!0,value:n}),"displayName"in e||s.defineProperty(e,"displayName",{configurable:!0,value:t+"."+n+(r||"")})}function m(t,n,r,i){if(t){t=e(t);for(var o,a,u,c=e.keys(t),f=0,h=c.length;f=0;--o)switch(i[o].type){case"function":r="function"==typeof t[i[o].name];break;case"property":r=i[o].name in t}}return r}function K(t,n,r){if(!F(n))throw new o("hasInterface: _interface must be an interface defined with decl.declareInterface, but is "+M(n));if(!t)return!1;if(U(t))return K(t.as(ce),n,r);for(var i="function"==typeof t,s=i?t:t.constructor;s&&s!==e&&s!==j&&s!==T;s=C(s))if(s.interfaces&&z(s,n))return!0;return r!==!0&&H(i?t.prototype:t,n)}function W(t){var n=t.length;return n>0&&"function"!=typeof t[n-1]?e(t.pop()):null}function $(t,n,r){var i=n[0],o=null,a=null,u=null,l=null;return n.length>1&&(a=ee.call(n,1,n.length),(null===a[0]||"function"==typeof a[0]&&!F(a[0]))&&(o=a.shift()),l=W(a),u=W(a)),null===o&&(o=e),w(i,o,m(l,o&&o.prototype,d,(i.name||"(Class)")+".prototype")),N(i,a,o.interfaces),(o!==e||u)&&A(i,o,u),"as"in i.prototype||s.defineProperties(i.prototype,fe),i}function Z(e){return $("abstractClass",arguments)}function B(e){return $("declareClass",arguments,ue)}function q(e){var t=null,n=null,r=null;return arguments.length>1&&(t=ee.call(arguments,1,arguments.length),r=W(t),n=W(t)),w(e,j,m(r,j.prototype,y,e.name||"(Interface)")),N(e,t,null),n&&A(e,null,n),e}function V(e){return w(e,T,m(arguments[1],T.prototype,d,e.name||"(Enum)")),s.freeze(new e)}function X(e,t){if(!t)throw new i("Missing definition");return s.defineProperties(e,m(t,e,d,arguments.length>2?r(arguments[2]):e.name))}function Y(t,n,r){if(!F(n))throw new o(n+" is not an interface");var i=x.get(n),s=i.members[0];if(1!==i.members.length||"function"!==s.type)throw new o(n.prototype+" is not a functional interface, functional interfaces have a single method");if(null===t||void 0===t)return null;if("function"==typeof t){var a={};return a[s.name]={enumerable:!0,value:t},e.create(n.prototype,a)}if(K(t,n,r))return t;throw new o(t+" does not implement "+n.prototype)}var J=new u,Q=new a,ee=n.prototype.slice,te=e.prototype.hasOwnProperty,ne=!(!e.defineProperties||!e.getOwnPropertyDescriptor);ne&&(ne=e.getOwnPropertyDescriptor(Function.prototype,"name"),ne=!ne||ne.configurable);var re=/^(?:@@([a-zA-Z0-9_\$]+)|\[\[([a-zA-Z0-9_\$]+)\]\])$/,ie=/^(?:constructor|prototype|name|interfaces|superclass|\$private)$/,oe=new c,se=s.freeze({allowGet:!0,allowSet:!1}),ae=[e,n,Function,Boolean,Number,Math,Date,r,RegExp,l,i,EvalError,RangeError,ReferenceError,SyntaxError,o,URIError];"undefined"!=typeof ArrayBuffer&&ae.push(ArrayBuffer),"undefined"!=typeof Float32Array&&ae.push(Float32Array),"undefined"!=typeof Float64Array&&ae.push(Float64Array),"undefined"!=typeof Promise&&ae.push(Promise),"undefined"!=typeof Proxy&&ae.push(Proxy),"undefined"!=typeof Uint8Array&&ae.push(Uint8Array),"undefined"!=typeof Uint8ClampedArray&&ae.push(Uint8ClampedArray),"undefined"!=typeof Uint16Array&&ae.push(Uint16Array),"undefined"!=typeof Uint32Array&&ae.push(Uint32Array);var ue,le=s.freeze({allowGet:!0,allowSet:!0}),ce=g(e);w(b,e,{type:{value:"member"},toString:{value:function(){return this.type+' "'+r(this.name)+'" defined on '+this.interfaces.map(M).join(", ")}}}),w(_,b,{type:{value:"function"}}),w(S,b,{type:{value:"property"},merge:{value:function(e){if(e===this)return this;for(var t,n=this.interfaces.slice(0),r=0,i=e.interfaces.length;rt.name?1:-1})}},x.get=function(t){if(!F(t))throw new o("_interface is not an Interface");var n=oe.get(t);if(!n){oe.set(t,n=new x);var r=e.create(null);t.interfaces&&t.interfaces.forEach(function(e){for(var o,s,a=x.get(e).members,u=0,l=a.length;u=0;--n)if(t===this.names[n].toLowerCase())return this.names[n];return null},O.get=function(e){var t=oe.get(e.constructor);return t||oe.set(e.constructor,t=new O(e)),t},P.prototype=null,w(E,P,{hasOwnProperty:{value:te}}),w(j,E,{toString:{value:function(){return"[interface "+(this.constructor.name||"Interface")+"]"}}}),w(T,E,{nameOf:{writable:!0,value:function(e){var t=O.get(this);return t.names[t.values.indexOf(e)]||null}},valueOf:{writable:!0,value:function(e,t){return this.hasOwnProperty(e)?this[e]:t!==!0?null:(e=O.get(this).ciName(e),e&&this[e])}},hasName:{writable:!0,value:function(e,t){return this.hasOwnProperty(e)||t===!0&&null!==O.get(this).ciName(e)}},hasValue:{writable:!0,value:function(e){return O.get(this).values.indexOf(e)>=0}},parse:{writable:!0,value:function(e,t,n){var r=O.get(this);if(r.values.indexOf(e)>=0)return e;var i=e;if(this.hasOwnProperty(i)||t!==!0||(i=O.get(this).ciName(i)),i&&this.hasOwnProperty(i))return this[i];if(n===!0)throw new RangeError("Could not parse enum value "+e);return null}},names:{writable:!0,value:function(){return O.get(this).names}},values:{writable:!0,value:function(){return O.get(this).values}},forEach:{writable:!0,value:function(t){for(var n=O.get(this),r=0,i=n.names.length,o=(arguments[1]||null)&&e(arguments[1]);r1?arguments[1]:t},e.setIterator=o,e.getIterator=s;var y=!!t.defineProperties,v="__defineGetter__"in t.prototype&&"__defineSetter__"in t.prototype;e.propertyGetSetSupport=y||v,y&&(e.defineProperty=t.defineProperty,e.defineProperties=t.defineProperties,e.getOwnPropertyDescriptor=t.getOwnPropertyDescriptor,e.getOwnPropertyDescriptors=t.getOwnPropertyDescriptors),e.getPrototypeOf=t.getPrototypeOf,e.freeze=t.freeze,e.isFrozen=t.isFrozen,e.seal=t.seal,e.isSealed=t.isSealed,e.getOwnPropertyNames=t.getOwnPropertyNames,e.getOwnPropertySymbols=t.getOwnPropertySymbols,e.defineProperty||(e.defineProperty=function(t,n,i){if(!r(t))throw new TypeError("Object.defineProperty called on non-object");if("value"in i)t[n]=i.value;else if("get"in i||"set"in i){if(!e.propertyGetSetSupport)throw new Error("Property getters and setters are not supported in this environment");"get"in i&&t.__defineGetter__(n,i.get),"set"in i&&t.__defineSetter__(n,i.set)}return t}),e.defineProperties||(e.defineProperties=function(t,n){if(!r(t))throw new TypeError("Object.defineProperties called on non-object");n=i(n);for(var o in n)a.call(n,o)&&!l.test(o)&&e.defineProperty(t,o,n[o]);return t}),e.getPrototypeOf||(e.getPrototypeOf=function(e){switch(null===e?f:typeof e){case"undefined":throw new TypeError("Cannot convert undefined or null to object");case"boolean":return Boolean.prototype;case"number":return Number.prototype;case"string":return String.prototype;case"function":return Function.prototype;default:return"__proto__"in e?e.__proto__:a.call(e,"constructor")?e.constructor.superclass?e.constructor.superclass.prototype:Array.isArray(e)?Array.prototype:null:e.constructor.prototype}}),e.freeze||(e.freeze=function(e){return e}),e.isFrozen||(e.isFrozen=function(e){return!1}),e.seal||(e.seal=function(e){return e}),e.isSealed||(e.isSealed=function(e){return!1}),function(){var n,o=function(){};n={__proto__:null}instanceof t&&typeof document!==f?function(){function e(){}var t=function(){try{return!(!document.domain||!new ActiveXObject("htmlfile"))}catch(e){return!1}}();return t?e.prototype=function(e){e.write(""),e.close();var t=e.parentWindow.Object.prototype;return e=null,t}(new ActiveXObject("htmlfile")):e.prototype=function(e,t){t.style.display="none",e.appendChild(t),t.src="javascript:";var n=t.contentWindow.Object.prototype;return e.removeChild(t),t=null,n}(document.body||document.documentElement,document.createElement("iframe")),function(e){delete e.constructor,delete e.hasOwnProperty,delete e.propertyIsEnumerable,delete e.isPrototypeOf,delete e.toLocaleString,delete e.toString,delete e.valueOf}(e.prototype),(n=function(){return new e})()}:function(){return{__proto__:null}},d.create=function(t,s){var a;if(null===t)a=n();else{if(!r(t))throw new TypeError("Object prototype may only be an Object or null: "+t);o.prototype=t,a=new o,o.prototype=null}return typeof s!==f&&e.defineProperties(a,i(s)),a}}(),function(){var e=!{toString:null}.propertyIsEnumerable("toString"),t=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=t.length;d.keys=function(r){r=i(r);var o=[];for(var s in r)a.call(r,s)&&!l.test(s)&&o.push(s);if(e)for(var u=0;u=0}},delete:{value:function(e){var t=this._store.remove(e);return i&&(this.size=this._store.size),t}},clear:{value:function(){this._store.clear(),i&&(this.size=this._store.size)}},forEach:{value:function(e){this._store.forEach(this,e,arguments[1])}},keys:{value:function(){return new n("key",this._store)}},values:{value:function(){return new n("value",this._store)}},entries:{value:function(){return new n("entry",this._store)}}}),e.setIterator(r.prototype,r.prototype.entries),r}(n(2),n(5))},function(e,t,n){e.exports=function(e){"use strict";function t(e,t){this.entries=Object.create(null),this.entries.start=this.entries.end=1,this.clear(),e&&Array.from(e,t===!0?this._setPair:this._setValue,this)}function n(e,t){this._kind=e,this._next=t._nxt(),this._next>=0&&(this._store=t)}return e.polyfill(t,null,{_setPair:function(e){if("object"!=typeof e)throw new TypeError("Iterator value "+String(e)+" is not an entry object");this.set(e[0],e[1])},_setValue:function(e){this.set(e,e)},_nxt:function(e){for(var t=Math.max(e||0,this.entries.start),n=this.entries.end;t=0&&delete this._stringKeys[e];break;case"number":(t=this._numberKeys[String(e)]||-1)>=0&&delete this._numberKeys[String(e)];break;default:(t=this._otherKeys.indexOf(e))>=0&&(this._otherKeys.splice(t,1),t=this._otherKeyIds.splice(t,1)[0])}var n=t>=0;return n&&(delete this.entries[t],--this.size,t===this.entries.start&&(t=this._nxt(t+1),this.entries.start=t<0?this.entries.end:t)),n},clear:function(){this._numberKeys=Object.create(null),this._stringKeys=Object.create(null),this._otherKeys=[],this._otherKeyIds=[],this.size=0;for(var e=this.entries.start,t=this.entries.end;e=0;s=this._nxt(s+1))i=this.entries[s],n.call(o,i[1],i[0],t)}},null,"EntryStore"),e.polyfill(n,null,{next:function e(){var t,n={value:t,done:this._next<0};if(!n.done){var r=this._store,e=this._next=r._nxt(this._next);if(e<0)n.done=!0,this._store=null;else{switch(t=r.entries[e],this._kind){case"key":n.value=t[0];break;case"value":n.value=t[1];break;default:n.value=t.slice(0,2)}this._next=r._nxt(e+1)}}return n}},null,"Iterator"),e.defineProperty(t,"Iterator",{value:n}),e.setIterator(n.prototype,function(){return this}),t}(n(2))},function(e,t,n){e.exports="undefined"!=typeof Set?Set:n(7)},function(e,t,n){e.exports=function(e,t){"use strict";function n(e,n){t.Iterator.call(this,e,n)}function r(){e.defineProperty(this,"_store",{value:new t(arguments[0],!1)}),i&&(this.size=this._store.size)}var i=!e.propertyGetSetSupport;return n.prototype=Object.create(t.Iterator.prototype,{constructor:{writable:!0,value:n}}),e.defineProperties(r.prototype,{_store:{value:null},size:i?{writable:!0,value:null}:{get:function(){return this._store&&this._store.size}},add:{value:function(e){return this._store.set(e,e),i&&(this.size=this._store.size),this}},has:{value:function(e){return this._store.indexOf(e)>=0}},delete:{value:function(e){var t=this._store.remove(e);return i&&(this.size=this._store.size),t}},clear:{value:function(){this._store.clear(),i&&(this.size=this._store.size)}},forEach:{value:function(e){this._store.forEach(this,e,arguments[1])}},keys:{value:function(){return new n("key",this._store)}},values:{value:function(){return new n("value",this._store)}},entries:{value:function(){return new n("entry",this._store)}}}),e.setIterator(r.prototype,r.prototype.values),r}(n(2),n(5))},function(e,t,n){e.exports="undefined"!=typeof Symbol?Symbol:n(9)},function(e,t){e.exports=function(){"use strict";var e=0;return function t(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return"__"+ ++e+"Symbol("+(n||"")+")"}}()},function(e,t,n){e.exports="undefined"!=typeof WeakMap?WeakMap:n(11)},function(e,t,n){e.exports=function(e,t){"use strict";function n(t){if(e.defineProperty(this,"_map",{value:Object.create(null)}),t)for(var n=0;n>>0;a>>0);return o(r,u(n),arguments[1],function(e,t,n){i[t]=n}),i},f.indexOf=function e(t){var n=s(this,e),r=n.length>>>0,i=0;if(r<1)return-1;for(arguments.length>=2&&(i=arguments[1]>>0)<0&&(i=Math.max(0,r+i));i>>0,i=r-1;if(r<1)return-1;for(arguments.length>=2&&(i=Math.min(i,arguments[1]>>0))<0&&(i+=r);i>=0;--i)if(i in this&&this[i]===t)return i;return-1},f.reduce=function e(t){var n,r=s(this,e),i=r.length>>>0,o=u(t,0);if(arguments.length>=2)n=arguments[1];else{for(;o=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o>>0,o=u(t,i-1);if(arguments.length>=2)n=arguments[1];else{for(;o>=0&&!(o in r);)--o;if(o<0)throw new TypeError("Reduce of empty array with no initial value");n=r[o--]}for(;o>=0;--o)o in r&&(n=t(n,r[o],o,r));return n},c.isArray=function(e){return"[object Array]"===l.call(e)},f.find=function e(t){var n=void 0;return o(s(this,e),u(t),arguments[1],function(e,t,r){if(r)return n=e,!0}),n},f.findIndex=function e(t){var n=-1;return o(s(this,e),u(t),arguments[1],function(e,t,r){if(r)return n=t,!0}),n},f.fill=function e(t){var n=s(this,e),r=n.length>>>0,i=arguments[1]>>0,o=arguments[2];for(i<0&&(i=Math.max(0,i+r)),void 0===o?o=r:o<0&&(o=Math.max(0,o+r));i>>0,i=0;if(r<1)return!1;for(arguments.length>1&&(i=arguments[1]>>0)<0&&(i=Math.max(0,r+i));i=0&&this.splice(t,1),t>=0}function u(e){e&&(e=Object(e),"destroy"in e?e.destroy():"remove"in e&&e.remove())}function l(e,t){this.owner=e,this.target=t,e.addDestroyListener(this._owner_destroyed=this._owner_destroyed.bind(this)),this.target instanceof c&&this.target.addDestroyListener(this._target_destroyed=this._target_destroyed.bind(this))}function c(){}function f(e){var t=i(e);if(!t||!("destroy"in t||"remove"in t))throw new TypeError("Cannot own; invalid value");if(t===this)throw new Error("An object cannot own itself");return new l(this,t),e}var h=null,p=new r,d=Array.prototype.map;return t.declareClass(s,{listeners:null,references:null,referenceHandlers:null}),function(e){s.get=function(t,n){var r=e.get(t)||null;return r||n!==!0||e.set(t,r=new s),r},s.remove=function(t){var n=e.get(t)||null;return n&&e.delete(t),n}}(new n),t.declareClass(l,{owner:null,target:null,_owner_destroyed:function(){this.target&&(delete this.owner,this.target instanceof c&&this.target.removeDestroyListener(this._target_destroyed),u(this.target),delete this._owner_destroyed,delete this._target_destroyed,delete this.target)},_target_destroyed:function(){this.owner&&(this.owner.removeDestroyListener(this._owner_destroyed),delete this._owner_destroyed,delete this._target_destroyed,delete this.owner,delete this.target)}}),h=t.preventCast(c),t.declareClass(c,{$private:{value:function(e){return"isDestroyed"===e||"alive"===e}},isDestroyed:{value:o}},{destroy:{writable:!0,value:function(){if(!o(this)){var e,t,n=s.remove(this);if(n){if(n.listeners.length>0){for(e=0,t=n.listeners.length;e0){for(e=0,t=n.references.length;e=0&&(n=this[r.references[o]],u&&!t.is(n,u)?n=void 0:(delete this[r.references.splice(o,1)[0]],(a=r.referenceHandlers.splice(o,1)[0])&&!u&&i(n).removeDestroyListener(a))),n}},ownMember:{value:function(e,t){return this.ref(e,f.call(this,t))}},destroyAll:{value:function(e){var t=Object(e);if("forEach"in t)t.forEach(u,null);else{if(!("length"in t))throw new TypeError("_collection must either have a forEach method or a length property.");Array.prototype.forEach.call(t,u,null)}}}})}(n(2),n(1),n(10),n(14))},function(e,t,n){e.exports="undefined"!=typeof WeakSet?WeakSet:n(15)},function(e,t,n){e.exports=function(e,t){"use strict";function n(t){if(t)for(var n=0;n=0}},delete:{value:function(t){var n=-1;return e.isObject(t)&&i.call(t,r)&&(n=this._values.indexOf(t[r])),!(n<0)&&(this._values.splice(n,1),!0)}}}),n}(n(2),n(8))},function(e,t,n){e.exports=function(e,t,n,r,i,o){"use strict";function s(e,t,i){r.call(this),l.set(this,e),n.defineProperties(this,{eventName:{enumerable:!0,value:t},listener:{configurable:!0,enumerable:!0,value:i},_attached:{writable:!0,value:!1}}),this.attach()}function a(){r.call(this)}var u=n.freeze(new i),l=new o,c=new o,f=t.ensureCallable;return n.declareClass(s,r,{eventName:null,listener:null,_attached:null,destroy:function(){this.remove(),delete this.listener,l.delete(this),r.prototype.destroy.call(this)},remove:function(){var e;if(this._attached&&this.listener&&(e=l.get(this))){var t=e.lastIndexOf(this);return t>=e.length-1?e.pop():t>=0&&e.splice(t,1),this._attached=!1,!0}return!1},attach:function(){var e;return!this._attached&&this.listener&&(e=l.get(this))&&(e.push(this),this._attached=!0),this._attached},isAttached:function(){return this._attached}}),n.preventCast(a),n.declareClass(a,r,{destroy:function(){var e=c.get(this)||null;if(e){c.delete(this);for(var t=e.length-1;t>=0;--t)e[t].destroy()}r.prototype.destroy.call(this)},on:function(t,n){var i;if(r.isDestroyed(f(n,this)))throw new e("The target object has been destroyed, cannot attach an event listener to it");if(!("on"+t in this))throw new e("The target object does not have a(n) "+t+" event");return(i=c.get(this))||c.set(this,i=[]),new s(i,t,n)},once:function(e,t){var n=f(t,null);return n=this.on(e,function(){return n&&(n.destroy(),n=null),t.apply(this,arguments)})},emit:function(t,n){if(r.isDestroyed(this))throw new e("The target object has been destroyed, cannot emit an event from it");var i,o=n||u,s="on"+t;if(!(s in this))throw new e("The "+t+" event being emitted is not defined. Is this class missing an "+s+" event definition?");if(this[s](o,this),(i=c.get(this))&&i.length>0)for(var a,l=i.filter(function(e){return e.eventName===t}),f=0,h=l.length;f1&&(o=s.call(arguments,1,arguments.length)),a.prototype=i.prototype||e.prototype,n=o&&o.length?function(){var e=arguments.length;return i.apply(this instanceof a?this:t,e?o.concat(s.call(arguments,0,e)):o)}:function(){return i.apply(this instanceof a?this:t,arguments)},n.prototype=new a,n},function(){function t(){if(this===o)return"";var t=n.call(this).match(/function\s*([a-zA-Z0-9_$]*)\s*\(/);return e.defineProperty(this,"name",{configurable:!0,value:t&&t[1]||""}),this.name}var n=o.toString;!t.name&&e.defineProperties&&"name"===t.call(t)&&e.defineProperty(o,"name",{configurable:!0,get:t})}(),r.polyfill(n,null,i,t,"Function")}(Object,Function,n(2))},function(e,t,n){!function(e,n){"use strict";var r={};r.cbrt=function(t){var n=e.pow(e.abs(t),1/3);return t<0?-n:n},r.expm1=function(t){return e.exp(t)-1},r.hypot=function(t,n){for(var r,i=0,o=arguments.length,s=0;i>>16&65535,r=65535&e,i=t>>>16&65535,o=65535&t;return r*o+(n*o+r*i<<16>>>0)|0},function(){var t=[32,31,0,16,0,30,3,0,15,0,0,0,29,10,2,0,0,0,12,14,21,0,19,0,0,28,0,25,0,9,1,0,17,0,4,void 0,0,0,11,0,13,22,20,0,26,0,0,18,5,0,0,23,0,27,0,6,0,24,7,0,8,0,0,0];r.clz32=function(n){var r=n>>>0;return r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,t[e.imul(r,116069625)>>>26]}}(),r.log1p=function(t){return e.log(1+t)},r.log2=function(t){return e.log(t)/e.LN2},r.log10=function(t){return e.log(t)/e.LN10},r.cosh=function(t){var n=e.exp(t);return(n+1/n)/2},r.acosh=function(t){return e.log(t+e.sqrt(t*t-1))},r.sinh=function(t){var n=e.exp(t);return(n-1/n)/2},r.asinh=function(t){return t===-(1/0)?t:e.log(t+e.sqrt(t*t+1))},r.tanh=function(t){var n;return t===1/0?1:t===-(1/0)?-1:((n=e.exp(2*t))-1)/(n+1)},r.atanh=function(t){return e.log((1+t)/(1-t))/2},r.sign=function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},r.trunc=function(t){return t<0?e.ceil(t):e.floor(t)},n.polyfill(e,r,null,t,"Math")}(Math,n(2))},function(e,t,n){!function(e,n){"use strict";var r={};r.parseInt=parseInt,r.parseFloat=parseFloat,r.MAX_SAFE_INTEGER=9007199254740991,r.MIN_SAFE_INTEGER=-r.MAX_SAFE_INTEGER,r.EPSILON=Math.pow(2,-52),function(e){r.isFinite=function(t){return"number"==typeof t&&e(t)}}(isFinite),r.isInteger=function(t){return e.isFinite(t)&&Math.floor(t)===t},r.isSafeInteger=function(t){return e.isInteger(t)&&t>=e.MIN_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER},function(e){r.isNaN=function(t){return"number"==typeof t&&e(t)}}(isNaN),n.polyfill(e,r,null,t,"Number")}(Number,n(2))},function(e,t,n){!function(e,n,r,i){"use strict";function o(e,t){if(typeof e===u||null===e)throw new TypeError("String.prototype."+t+" called on null or undefined");return r(e)}function s(e,t){if(e instanceof n)throw new TypeError("First argument to String.prototype."+t+" must not be a regular expression");return r(e)}function a(t,n,r,i){return isNaN(t=e.trunc(t))?r:ti?i:t}var u="undefined",l={},c={};c.startsWith=function(e){var t=o(this,"startsWith"),n=a(arguments[1],0,0,t.length);return t.lastIndexOf(s(e,"startsWith"),n)===n},c.endsWith=function(e){var t=o(this,"endsWith"),n=a(arguments[1],0,t.length,t.length)-(e=s(e,"endsWith")).length;return n>=0&&t.indexOf(e,n)===n},function(e){var t=/^\s+|\s+$/g,r=/^\s+/,i=/\s+$/;e.match(/[^\s]/)&&(t=new n("^[\\s"+e+"]+|[\\s"+e+"]+$","g"),r=new n("^[\\s"+e+"]+"),i=new n("[\\s"+e+"]+$")),c.trim=function(){return o(this,"trim").replace(t,"")},c.trimStart=c.trimLeft=function(){return o(this,"trimStart").replace(r,"")},c.trimEnd=c.trimRight=function(){return o(this,"trimEnd").replace(i,"")}}(r.fromCharCode(160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288)),function(){var t=1<<28;c.repeat=function(n){var r="",i=o(this,"repeat"),s=e.floor(n)||0;if(s<0)throw new RangeError("repeat count must be non-negative");if(s===1/0)throw new RangeError("repeat count must be less than infinity");var a=i.length*s;if(a>=t)throw new RangeError("repeat count must not overflow maximum string size");if(a>0)for(;1===(1&s)&&(r+=i),s>>>=1,0!==s;)i+=i;return r}}(),c.codePointAt=function(t){var n,r=o(this,"codePointAt"),i=r.length,s=e.floor(t)||0;if(s>=0&&s=55296&&n<=56319&&s=56320&&a<=57343&&(n=1024*(n-55296)+a-56320+65536)}return n},l.fromCodePoint=function(t){for(var n=[],i="",o=0,s=arguments.length;o1114111||e.floor(a)!==a)throw new RangeError("Invalid code point: "+a);if(a<=65535)n.push(a);else{a-=65536;var u=(a>>10)+55296,l=a%1024+56320;n.push(u,l)}(o+1===s||n.length>16384)&&(i+=r.fromCharCode.apply(r,n),n.length=0)}return i},c.includes=function(e){var t=o(this,"includes"),n=a(arguments[1],0,0,t.length);return t.indexOf(s(e,"includes"),n)>=0},c.padStart=function(t){var n,i,s=o(this,"padStart"),a=arguments[1],l=e.trunc(t)||0,c=l-s.length;return a=typeof a===u?" ":r(a),n=a.length,c>0&&n>0&&(i=a.repeat(e.floor(c/n)),c%=n,c>0&&(i+=a.substr(0,c)),s=i+s),s},c.padEnd=function(t){var n,i,s=o(this,"padEnd"),a=arguments[1],l=e.trunc(t)||0,c=l-s.length;return a=typeof a===u?" ":r(a),n=a.length,c>0&&n>0&&(i=a.repeat(e.floor(c/n)),c%=n,c>0&&(i+=a.substr(0,c)),s+=i),s},i.polyfill(r,l,c,t,"String")}(Math,RegExp,String,n(2))},function(e,t,n){e.exports=function(e,t){"use strict";function n(n){return!e[n]||t[n]}var r=["Collator","DateTimeformat","NumberFormat","PluralRules","getCanonicalLocales"],i=e||t;return e&&r.some(n)&&(i=Object.create(e,r.reduce(function(n,r){var i=e[r]||t[r];return i&&(n[r]={value:i}),n},{}))),i}("undefined"!=typeof Intl?Intl:null,n(26))},function(e,t,n){e.exports=function(e,t,n,r){"use strict";function i(){e.defineProperties(this,{DateTimeFormat:{value:t},NumberFormat:{value:n},getCanonicalLocales:{value:r.getCanonicalLocales}})}return new i}(n(2),n(27),n(30),n(29))},function(e,t,n){e.exports=function(e,t){"use strict";function n(e){this._conditionalSet(e,"year",s),this._conditionalSet(e,"month",u),this._conditionalSet(e,"day",s),this._conditionalSet(e,"weekday",a),this._conditionalSet(e,"hour",s),this._conditionalSet(e,"minute",s),this._conditionalSet(e,"second",s),this._conditionalSet(e,"weekday",a),this._conditionalSet(e,"hour12",l),this._conditionalSet(e,"timeZoneName",o)}function r(e,t,n){return h.setTime(e||Date.now()),n=n===!0,String(t).replace(f,function(e){var t,r=e.charAt(0),i=e.length;switch(r){case"y":t=n?h.getUTCFullYear():h.getFullYear(),2===i&&(t%=100);break;case"M":t=(n?h.getUTCMonth():h.getMonth())+1;break;case"d":t=n?h.getUTCDate():h.getDate();break;case"D":t=new Date(Date.UTC(h.getUTCFullYear(),0,1,h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds())),t=Math.round((h.getTime()-t.getTime())/864e5)+1;break;case"E":t=(n?h.getUTCDay():h.getDay())+1;break;case"H":case"h":case"K":case"k":switch(t=n?h.getUTCHours():h.getHours(),r){case"h":t=t%12||12;break;case"K":t%=12;break;case"k":t=t||24}break;case"m":t=n?h.getUTCMinutes():h.getMinutes();break;case"s":t=n?h.getUTCSeconds():h.getSeconds();break;case"S":t=Math.round((n?h.getUTCMilliseconds():h.getMilliseconds())*Math.pow(10,i-3));break;case"a":if(i>1)throw new RangeError("Invalid pattern: "+e+", a maximum of 1 character is allowed");return t=n?h.getUTCHours():h.getHours(),t<12?"am":"pm";case"Z":if(i>2)throw new RangeError("Invalid pattern: "+e+", a maximum of 2 characters is allowed");return n&&2===i?"Z":(t=n?0:-h.getTimezoneOffset(),t=(t<0?"-":"+")+c(Math.floor(t/60),2,"0")+":"+c(t%60,2,"0"),1===i?"GMT"+t:t);default:throw new Error("format identifier "+e.charAt(0)+"is not supported by this method")}switch(r){case"H":case"h":case"K":case"k":case"m":case"s":if(i>2)throw new RangeError("Invalid pattern: "+e+", a maximum of 2 characters is allowed");break;case"D":if(i>3)throw new RangeError("Invalid pattern: "+e+", a maximum of 3 characters is allowed");break;case"M":case"d":case"E":if(i>5)throw new RangeError("Invalid pattern: "+e+", a maximum of 5 characters is allowed");if(i>2)throw new RangeError("Pattern: "+e+", requires localisation, which is not supported by format")}return i>1?c(t,i,"0"):t})}function i(e,r){t.call(this,e,new n(Object(r)))}var o=["short","long"],s=["numeric","2-digit"],a=["narrow"].concat(o),u=s.concat(a),l=[!0,!1],c=Function.prototype.call.bind(String.prototype.padStart),f=/A+|a+|D+|d+|E+|e+|F+|G+|g+|H+|h+|K+|k+|M+|m+|S+|s+|u+|W+|w+|Y+|y+|Z+|z+/g,h=new Date;return e.defineProperties(n.prototype,{localeMatcher:{writable:!0,value:null},timeZone:{writable:!0,value:null},hour12:{writable:!0,value:null},formatMatcher:{writable:!0,value:null},weekday:{writable:!0,value:null},era:{writable:!0,value:null},year:{writable:!0,value:null},month:{writable:!0,value:null},day:{writable:!0,value:null},hour:{writable:!0,value:null},minute:{writable:!0,value:null},second:{writable:!0,value:null},timeZoneName:{writable:!0,value:null},_conditionalSet:{value:function(e,t,n){if("undefined"!=typeof e[t]&&!n.includes(this[t]=e[t]))throw new RangeError("Invalid value for "+t+": "+e[t])}}}),i.prototype=Object.create(t.prototype,{format:{enumerable:!0,value:function(e){var t=[],n=[];switch(this._options.year){case"2-digit":t.push("yy");break;case"numeric":t.push("yyyy")}switch(this._options.month){case"narrow":case"short":case"long":case"2-digit":t.push("MM");break;case"numeric":t.push("M")}switch(this._options.day){case"2-digit":t.push("dd");break;case"numeric":t.push("d")}switch(t.length>0&&(n.push(t.join("-")),t.length=0),this._options.hour){case"2-digit":t.push("HH");break;case"numeric":t.push("H")}switch(this._options.minute){case"2-digit":t.push("mm");break;case"numeric":t.push("m")}switch(this._options.second){case"2-digit":t.push("ss");break;case"numeric":t.push("s")}return t.length>0&&n.push(t.join(":")),n.length<1&&n.push("yyyy-MM-dd"),r(e,n.join(" "))}}}),i}(n(2),n(28))},function(e,t,n){e.exports=function(e,t){"use strict";function n(t,n){e.defineProperties(this,{_locale:{value:r},_options:{value:n}})}var r=function(e){try{return t.getCanonicalLocales(e&&(e.language||e.userLanguage)||"en-US")[0]}catch(e){return"en-US"}}("undefined"!=typeof navigator?navigator:null);return e.defineProperties(n.prototype,{_locale:{value:null},_options:{value:null},resolvedOptions:{value:function(){return Object.assign({locale:this._locale},this._options)}},format:{enumerable:!0,value:function(e){return e?e.toLocaleString():""}}}),e.defineProperty(n,"envLocale",{value:r})}(n(2),n(29))},function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=t?e.length:0;return 3===n?e.toUpperCase():5===n?e.substr(0,2).toUpperCase()+e.substr(2).toLowerCase():e.toLowerCase()}function r(e){return o.test(e)}function i(e){var t=String(e);if(!r(t))throw new RangeError("Invalid language tag: "+t);return t.replace(s,n)}var o=/^(i|[a-zA-Z]{2,3})((?:\-[a-zA-Z0-9]+)*)$/,s=/^[a-zA-Z]+|\-\w+/g;e.getCanonicalLocales=function(e){var n;if(void 0===e)n=new Array(0);else if("string"==typeof e)n=new Array(1),n[0]=i(e);else{n=[];for(var r=t.toObject(e),o=r.length||0,s=0;s=o.length&&(e(o),o=null))}for(var o=new Array(t.length),s=0,a=0,u=t.length;a=c.length-1&&(u=-1)}else u=1===c.length?-1:0;u>=0&&(c=c.slice(u+1),l=n(c[0]),l&&(o=l[1],s=l[2],a=l[3])),t.defineProperty(e,"stack",{configurable:!0,value:c.join("\n")}),o&&t.defineProperties(e,{fileName:{configurable:!0,value:o},lineNumber:{configurable:!0,value:s},columnNumber:{configurable:!0,value:a}})}function i(e,t,n){"stack"in n&&r(e,t,n)}function o(n){if(!(this&&this instanceof o))throw new TypeError("Invalid context for Exception. Did you forget the new keyword?");var r=arguments[1]||this.constructor;if("function"!=typeof r)throw new TypeError("_creatorFn must be omitted, null or a function.");e.captureStackTrace?e.captureStackTrace(this,r):i(this,r,new e),t.defineProperty(this,"message",{configurable:!0,writable:!0,value:n})}return t.declareClass(o,e,{name:{configurable:!0,writable:!0,value:"Exception"}})}(Error,n(1))}])});