@imposium-hub/components 1.42.2 → 1.42.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -277,5 +277,5 @@ e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月
277
277
  *
278
278
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
279
279
  * Released under the MIT license
280
- */!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var i=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=i,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,!0!==a[u]&&(s+="="+a[u].split(";")[0]));return document.cookie=t+"="+n+s}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=t(s[0]);if(u=(r.read||r)(u,l)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[l]=u,e===l)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Authentication",(function(){return Rt})),n.d(t,"Management",(function(){return Ft})),n.d(t,"WebAuth",(function(){return Ht})),n.d(t,"version",(function(){return se}));var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function a(e,t){return e(t={exports:{}},t.exports),t.exports}var i=a((function(e){var t,n;t=o,n=function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var a=t.join("/"),i=(a=a.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i.shift()+(i.length>0?"?":"")+i.join("&")}return function(){return e("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()})),s=Object.prototype.hasOwnProperty,u=Array.isArray,l=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},d={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var l=i[s],c=a[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(u(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var i=r.charCodeAt(a);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?o+=r.charAt(a):i<128?o+=l[i]:i<2048?o+=l[192|i>>6]+l[128|63&i]:i<55296||i>=57344?o+=l[224|i>>12]+l[128|i>>6&63]+l[128|63&i]:(a+=1,i=65536+((1023&i)<<10|1023&r.charCodeAt(a)),o+=l[240|i>>18]+l[128|i>>12&63]+l[128|i>>6&63]+l[128|63&i])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(u(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(u(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!s.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return u(t)&&!u(n)&&(o=c(t,r)),u(t)&&u(n)?(n.forEach((function(n,o){if(s.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return s.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),o)}},p=String.prototype.replace,f=/%20/g,h={RFC1738:"RFC1738",RFC3986:"RFC3986"},m=d.assign({default:h.RFC3986,formatters:{RFC1738:function(e){return p.call(e,f,"+")},RFC3986:function(e){return String(e)}}},h),_=Object.prototype.hasOwnProperty,y={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},g=Array.isArray,v=Array.prototype.push,b=function(e,t){v.apply(e,g(t)?t:[t])},w=Date.prototype.toISOString,M=m.default,L={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:d.encode,encodeValuesOnly:!1,format:M,formatter:m.formatters[M],indices:!1,serializeDate:function(e){return w.call(e)},skipNulls:!1,strictNullHandling:!1},T=function e(t,n,r,o,a,i,s,u,l,c,p,f,h){var m=t;if("function"==typeof s?m=s(n,m):m instanceof Date?m=c(m):"comma"===r&&g(m)&&(m=d.maybeMap(m,(function(e){return e instanceof Date?c(e):e})).join(",")),null===m){if(o)return i&&!f?i(n,L.encoder,h,"key"):n;m=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(m)||d.isBuffer(m))return i?[p(f?n:i(n,L.encoder,h,"key"))+"="+p(i(m,L.encoder,h,"value"))]:[p(n)+"="+p(String(m))];var _,y=[];if(void 0===m)return y;if(g(s))_=s;else{var v=Object.keys(m);_=u?v.sort(u):v}for(var w=0;w<_.length;++w){var M=_[w],T=m[M];if(!a||null!==T){var k=g(m)?"function"==typeof r?r(n,M):n:n+(l?"."+M:"["+M+"]");b(y,e(T,k,r,o,a,i,s,u,l,c,p,f,h))}}return y},k=Object.prototype.hasOwnProperty,x=Array.isArray,E={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},S=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},D=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},O=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=i?o.slice(0,i.index):o,u=[];if(s){if(!n.plainObjects&&k.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var l=0;n.depth>0&&null!==(i=a.exec(o))&&l<n.depth;){if(l+=1,!n.plainObjects&&k.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(i[1])}return i&&u.push("["+o.slice(i.index)+"]"),function(e,t,n,r){for(var o=r?t:D(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=o:i[u]=o:i={0:o}}o=i}return o}(u,t,n,r)}},Y=function(e,t){var n,r=e,o=function(e){if(!e)return L;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||L.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=m.default;if(void 0!==e.format){if(!_.call(m.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=m.formatters[n],o=L.filter;return("function"==typeof e.filter||g(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:L.addQueryPrefix,allowDots:void 0===e.allowDots?L.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:L.charsetSentinel,delimiter:void 0===e.delimiter?L.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:L.encode,encoder:"function"==typeof e.encoder?e.encoder:L.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:L.encodeValuesOnly,filter:o,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:L.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:L.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:L.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):g(o.filter)&&(n=o.filter);var a,i=[];if("object"!=typeof r||null===r)return"";a=t&&t.arrayFormat in y?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=y[a];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var u=0;u<n.length;++u){var l=n[u];o.skipNulls&&null===r[l]||b(i,T(r[l],l,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var c=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),c.length>0?d+c:""},C=a((function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}})),A=H;H.default=H,H.stable=N,H.stableStringify=N;var j=[],P=[];function H(e,t,n){var r;for(function e(t,n,r,o){var a;if("object"==typeof t&&null!==t){for(a=0;a<r.length;a++)if(r[a]===t){var i=Object.getOwnPropertyDescriptor(o,n);return void(void 0!==i.get?i.configurable?(Object.defineProperty(o,n,{value:"[Circular]"}),j.push([o,n,t,i])):P.push([t,n]):(o[n]="[Circular]",j.push([o,n,t])))}if(r.push(t),Array.isArray(t))for(a=0;a<t.length;a++)e(t[a],a,r,t);else{var s=Object.keys(t);for(a=0;a<s.length;a++){var u=s[a];e(t[u],u,r,t)}}r.pop()}}(e,"",[],void 0),r=0===P.length?JSON.stringify(e,t,n):JSON.stringify(e,R(t),n);0!==j.length;){var o=j.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}return r}function I(e,t){return e<t?-1:e>t?1:0}function N(e,t,n){var r,o=function e(t,n,r,o){var a;if("object"==typeof t&&null!==t){for(a=0;a<r.length;a++)if(r[a]===t){var i=Object.getOwnPropertyDescriptor(o,n);return void(void 0!==i.get?i.configurable?(Object.defineProperty(o,n,{value:"[Circular]"}),j.push([o,n,t,i])):P.push([t,n]):(o[n]="[Circular]",j.push([o,n,t])))}if("function"==typeof t.toJSON)return;if(r.push(t),Array.isArray(t))for(a=0;a<t.length;a++)e(t[a],a,r,t);else{var s={},u=Object.keys(t).sort(I);for(a=0;a<u.length;a++){var l=u[a];e(t[l],l,r,t),s[l]=t[l]}if(void 0===o)return s;j.push([o,n,t]),o[n]=s}r.pop()}}(e,"",[],void 0)||e;for(r=0===P.length?JSON.stringify(o,t,n):JSON.stringify(o,R(t),n);0!==j.length;){var a=j.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return r}function R(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(P.length>0)for(var r=0;r<P.length;r++){var o=P[r];if(o[1]===t&&o[0]===n){n="[Circular]",P.splice(r,1);break}}return e.call(this,t,n)}}function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var z=function(e){return null!==e&&"object"===F(e)};function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var W=B;function B(e){if(e)return function(e){for(var t in B.prototype)Object.prototype.hasOwnProperty.call(B.prototype,t)&&(e[t]=B.prototype[t]);return e}(e)}B.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},B.prototype.parse=function(e){return this._parser=e,this},B.prototype.responseType=function(e){return this._responseType=e,this},B.prototype.serialize=function(e){return this._serializer=e,this},B.prototype.timeout=function(e){if(!e||"object"!==U(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},B.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var V=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];B.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&V.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},B.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},B.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},B.prototype.catch=function(e){return this.then(void 0,e)},B.prototype.use=function(e){return e(this),this},B.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},B.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},B.prototype.get=function(e){return this._header[e.toLowerCase()]},B.prototype.getHeader=B.prototype.get,B.prototype.set=function(e,t){if(z(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},B.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},B.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(z(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},B.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},B.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},B.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},B.prototype.redirects=function(e){return this._maxRedirects=e,this},B.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},B.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},B.prototype.send=function(e){var t=z(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&z(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},B.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},B.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},B.prototype._appendQueryString=function(){console.warn("Unsupported")},B.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},B.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var q=G;function G(e){if(e)return function(e){for(var t in G.prototype)Object.prototype.hasOwnProperty.call(G.prototype,t)&&(e[t]=G.prototype[t]);return e}(e)}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K(){this._defaults=[]}G.prototype.get=function(e){return this.header[e.toLowerCase()]},G.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=t.split(/ *; */).shift();var n=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})}(t);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(this[r]=n[r]);this.links={};try{e.link&&(this.links=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})}(e.link))}catch(e){}},G.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){K.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),K.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,function(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return J(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args))}))};for(var $=K,X=a((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;function o(){}"undefined"!=typeof window?r=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),r=void 0):r=self,e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var a=t=e.exports;t.Request=p,a.getXHR=function(){if(r.XMLHttpRequest&&(!r.location||"file:"!==r.location.protocol||!r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var i="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function s(e){if(!z(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&u(t,n,e[n]);return t.join("&")}function u(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){u(e,t,n)}));else if(z(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&u(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function l(e){for(var t,n,r={},o=e.split("&"),a=0,i=o.length;a<i;++a)-1===(n=(t=o[a]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function c(e){return/[/+]json($|[^-\w])/.test(e)}function d(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,a=e.split(/\r?\n/),s={},u=0,l=a.length;u<l;++u)-1!==(t=(n=a[u]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=i(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function p(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new d(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function f(e,t,n){var r=a("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}a.serializeObject=s,a.parseString=l,a.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},a.serialize={"application/x-www-form-urlencoded":s,"application/json":A},a.parse={"application/x-www-form-urlencoded":l,"application/json":JSON.parse},q(d.prototype),d.prototype._parseBody=function(e){var t=a.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&c(this.type)&&(t=a.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},d.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},a.Response=d,C(p.prototype),W(p.prototype),p.prototype.type=function(e){return this.set("Content-Type",a.types[e]||e),this},p.prototype.accept=function(e){return this.set("Accept",a.types[e]||e),this},p.prototype.auth=function(e,t,r){1===arguments.length&&(t=""),"object"===n(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,r,o)},p.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},p.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},p.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},p.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},p.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},p.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},p.prototype.ca=p.prototype.agent,p.prototype.buffer=p.prototype.ca,p.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},p.prototype.pipe=p.prototype.write,p.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},p.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||o,this._finalizeQueryString(),this._end()},p.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},p.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=a.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||a.serialize[o?o.split(";")[0]:""];!i&&c(o)&&(i=a.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},a.agent=function(){return new $},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){$.prototype[e.toLowerCase()]=function(t,n){var r=new a.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),$.prototype.del=$.prototype.delete,a.get=function(e,t,n){var r=a("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},a.head=function(e,t,n){var r=a("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},a.options=function(e,t,n){var r=a("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},a.del=f,a.delete=f,a.patch=function(e,t,n){var r=a("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},a.post=function(e,t,n){var r=a("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},a.put=function(e,t,n){var r=a("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}})),Z=(X.Request,[]),Q=[],ee=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),te=0,ne=ee.length;te<ne;++te)Z[te]=ee[te],Q[ee.charCodeAt(te)]=te;function re(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&t,[n,n===t?0:4-n%4]}function oe(e,t,n){for(var r,o,a=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(Z[(o=r)>>18&63]+Z[o>>12&63]+Z[o>>6&63]+Z[63&o]);return a.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63;var ae=function(e){for(var t,n=e.length,r=n%3,o=[],a=0,i=n-r;a<i;a+=16383)o.push(oe(e,a,a+16383>i?i:a+16383));return 1===r?(t=e[n-1],o.push(Z[t>>2]+Z[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(Z[t>>10]+Z[t>>4&63]+Z[t<<2&63]+"=")),o.join("")},ie=function(e){return ae(function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)).replace(/\+/g,"-").replace(/\//g,"_")},se={raw:"9.16.2"},ue=Object.prototype.toString;function le(e,t,n,r){if(n="array"===n?"object":n,e&&typeof e[t]!==n)throw new Error(r)}function ce(e,t,n){if(typeof e!==t)throw new Error(n)}function de(e,t,n){if(-1===t.indexOf(e))throw new Error(n)}var pe={check:function(e,t,n){if(t.optional&&!e||ce(e,t.type,t.message),"object"===t.type&&n)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o];n[a].optional&&!e[a]||n[a].condition&&!n[a].condition(e)||(le(e,a,n[a].type,n[a].message),n[a].values&&de(e[a],n[a].values,n[a].value_message))}},attribute:le,variable:ce,value:de,isArray:function(e){return this.supportsIsArray()?Array.isArray(e):"[object Array]"===ue.call(e)},supportsIsArray:function(){return null!=Array.isArray}};function fe(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o=Object.keys(Object(r)),a=0,i=o.length;a<i;a++){var s=o[a],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(t[s]=r[s])}}return t}var he=function(){return Object.assign?Object.assign:fe};function me(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}function _e(e){var t=[];for(var n in e)t.push(e[n]);return t}function ye(){var e=_e(arguments);return e.unshift({}),he().apply(void 0,e)}function ge(e){var t=e.match(/^(https?:|file:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}}function ve(e,t){var n=ye(e);return e[t]&&(n[t]=e[t].trim()),n}var be={toSnakeCase:function e(t,n){return"object"!=typeof t||pe.isArray(t)||null===t?t:(n=n||[],Object.keys(t).reduce((function(r,o){return r[-1===n.indexOf(o)?function(e){for(var t,n="",r=0,o=!0,a=!0;r<e.length;)t=e.charCodeAt(r),!a&&t>=65&&t<=90||!o&&t>=48&&t<=57?(n+="_",n+=e[r].toLowerCase()):n+=e[r].toLowerCase(),o=t>=48&&t<=57,a=t>=65&&t<=90,r++;return n}(o):o]=e(t[o]),r}),{}))},toCamelCase:function e(t,n,r){return"object"!=typeof t||pe.isArray(t)||null===t?t:(n=n||[],r=r||{},Object.keys(t).reduce((function(o,a){var i,s=-1===n.indexOf(a)?(i=a.split("_")).reduce((function(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}),i.shift()):a;return o[s]=e(t[s]||t[a],[],r),r.keepOriginal&&(o[a]=e(t[a],[],r)),o}),{}))},blacklist:function(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})},merge:function(e,t){return{base:t?me(e,t):e,with:function(e,t){return e=t?me(e,t):e,ye(this.base,e)}}},pick:me,getKeysNotIn:function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(r);return n},extend:ye,getOriginFromUrl:function(e){if(e){var t=ge(e);if(!t)return null;var n=t.protocol+"//"+t.hostname;return t.port&&(n+=":"+t.port),n}},getLocationFromUrl:ge,trimUserDetails:function(e){return function(e,t){return["username","email","phoneNumber"].reduce(ve,e)}(e)},updatePropertyOn:function e(t,n,r){"string"==typeof n&&(n=n.split("."));var o=n[0];t.hasOwnProperty(o)&&(1===n.length?t[o]=r:e(t[o],n.slice(1),r))}};function we(e){this.request=e,this.method=e.method,this.url=e.url,this.body=e._data,this.headers=e._header}function Me(e){this.request=e}function Le(e){this._sendTelemetry=!1!==e._sendTelemetry||e._sendTelemetry,this._telemetryInfo=e._telemetryInfo||null,this._timesToRetryFailedRequests=e._timesToRetryFailedRequests,this.headers=e.headers||{},this._universalLoginPage=e.universalLoginPage}function Te(){return window}we.prototype.abort=function(){this.request.abort()},we.prototype.getMethod=function(){return this.method},we.prototype.getBody=function(){return this.body},we.prototype.getUrl=function(){return this.url},we.prototype.getHeaders=function(){return this.headers},Me.prototype.set=function(e,t){return this.request=this.request.set(e,t),this},Me.prototype.send=function(e){return this.request=this.request.send(be.trimUserDetails(e)),this},Me.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},Me.prototype.end=function(e){return this.request.end(e),new we(this.request)},Le.prototype.setCommonConfiguration=function(e,t){if(t=t||{},this._timesToRetryFailedRequests>0&&(e=e.retry(this._timesToRetryFailedRequests)),t.noHeaders)return e;var n=this.headers;e=e.set("Content-Type","application/json");for(var r=Object.keys(this.headers),o=0;o<r.length;o++)e=e.set(r[o],n[r[o]]);return this._sendTelemetry&&(e=e.set("Auth0-Client",this.getTelemetryData())),e},Le.prototype.getTelemetryData=function(){var e=this._universalLoginPage?"auth0.js-ulp":"auth0.js",t={name:e,version:se.raw};this._telemetryInfo&&((t=be.extend({},this._telemetryInfo)).env=be.extend({},this._telemetryInfo.env),t.env[e]=se.raw);var n=JSON.stringify(t);return ie(n)},Le.prototype.get=function(e,t){return new Me(this.setCommonConfiguration(X.get(e),t))},Le.prototype.post=function(e,t){return new Me(this.setCommonConfiguration(X.post(e),t))},Le.prototype.patch=function(e,t){return new Me(this.setCommonConfiguration(X.patch(e),t))};var ke={redirect:function(e){Te().location=e},getDocument:function(){return Te().document},getWindow:Te,getOrigin:function(){var e=Te().location,t=e.origin;return t||(t=be.getOriginFromUrl(e.href)),t}};function xe(){}xe.prototype.getItem=function(){return null},xe.prototype.removeItem=function(){},xe.prototype.setItem=function(){};var Ee=a((function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,!0!==a[u]&&(s+="="+a[u].split(";")[0]));return document.cookie=t+"="+n+s}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=t(s[0]);if(u=(r.read||r)(u,l)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[l]=u,e===l)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},e.exports=n()}));function Se(){}function De(e){this.disableWarnings=e.disableWarnings}function Oe(e){if(this.warn=new De({}),this.storage=new Se,!0===e.__tryLocalStorageFirst)try{var t=ke.getWindow().localStorage;t&&(this.storage=t)}catch(e){this.warn.warning(e),this.warn.warning("Can't use localStorage. Using CookieStorage instead.")}}function Ye(e){this.handler=new Oe(e)}function Ce(e){this.storage=new Ye(e)}function Ae(e,t){return{error:e,errorDescription:t}}Se.prototype.getItem=function(e){return Ee.get(e)},Se.prototype.removeItem=function(e){Ee.remove(e)},Se.prototype.setItem=function(e,t,n){var r=be.extend({expires:1},n);"https:"===ke.getWindow().location.protocol&&(r.secure=!0),Ee.set(e,t,r)},De.prototype.warning=function(e){this.disableWarnings||console.warn(e)},Oe.prototype.failover=function(){this.storage instanceof xe?this.warn.warning("DummyStorage: ignore failover"):this.storage instanceof Se?(this.warn.warning("CookieStorage: failing over DummyStorage"),this.storage=new xe):(this.warn.warning("LocalStorage: failing over CookieStorage"),this.storage=new Se)},Oe.prototype.getItem=function(e){try{return this.storage.getItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.getItem(e)}},Oe.prototype.removeItem=function(e){try{return this.storage.removeItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.removeItem(e)}},Oe.prototype.setItem=function(e,t,n){try{return this.storage.setItem(e,t,n)}catch(r){return this.warn.warning(r),this.failover(),this.setItem(e,t,n)}},Ye.prototype.getItem=function(e){var t=this.handler.getItem(e);try{return JSON.parse(t)}catch(e){return t}},Ye.prototype.removeItem=function(e){return this.handler.removeItem(e)},Ye.prototype.setItem=function(e,t,n){var r=JSON.stringify(t);return this.handler.setItem(e,r,n)},Ce.prototype.set=function(e,t){var n={lastUsedConnection:e,lastUsedSub:t};this.storage.setItem("auth0.ssodata",JSON.stringify(n))},Ce.prototype.get=function(){var e=this.storage.getItem("auth0.ssodata");if(e)return JSON.parse(e)};var je={buildResponse:Ae,invalidToken:function(e){return Ae("invalid_token",e)}};function Pe(e,t){return(t=t||{}).ignoreCasing=!!t.ignoreCasing&&t.ignoreCasing,function(n,r){var o;return n||r?(!n&&r.err&&(n=r.err,r=null),!n&&r.error&&(n=r,r=null),n?(o={original:n},be.updatePropertyOn(o,"original.response.req._data.password","*****"),n.response&&n.response.statusCode&&(o.statusCode=n.response.statusCode),n.response&&n.response.statusText&&(o.statusText=n.response.statusText),n.response&&n.response.body&&(n=n.response.body),n.err&&(n=n.err),o.code=n.code||n.error||n.error_code||n.status||null,o.description=n.errorDescription||n.error_description||n.description||n.error||n.details||n.err||null,t.forceLegacyError&&(o.error=o.code,o.error_description=o.description),n.error_codes&&n.error_details&&(o.errorDetails={codes:n.error_codes,details:n.error_details}),n.name&&(o.name=n.name),n.policy&&(o.policy=n.policy),e(o)):!r.type||"text/html"!==r.type&&"text/plain"!==r.type?t.ignoreCasing?e(null,r.body||r):e(null,be.toCamelCase(r.body||r,[],{keepOriginal:t.keepOriginalCasing})):e(null,r.text)):e(je.buildResponse("generic_error","Something went wrong"))}}var He=["realm","audience","otp","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier"],Ie=["connection","connection_scope","auth0Client","owp","device","realm","organization","invitation","protocol","_csrf","_intstate","login_ticket","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","screen_hint","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method","access_type","display"],Ne=function(e,t){return be.pick(t,He)},Re=function(e,t){var n=be.getKeysNotIn(t,Ie);return n.length>0&&e.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),t},Fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function ze(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ue=ze((function(e,t){e.exports=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,o=void 0,a=void 0,i=function(e,t){f[n]=e,f[n+1]=t,2===(n+=2)&&(a?a(h):v())},s="undefined"!=typeof window?window:void 0,u=s||{},l=u.MutationObserver||u.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(h,1)}}var f=new Array(1e3);function h(){for(var e=0;e<n;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;n=0}var m,_,y,g,v=void 0;function b(e,t){var n=this,r=new this.constructor(L);void 0===r[M]&&j(r);var o=n._state;if(o){var a=arguments[o-1];i((function(){return C(o,r,a,n._result)}))}else O(n,r,e,t);return r}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(L);return x(t,e),t}v=c?function(){return r.nextTick(h)}:l?(_=0,y=new l(h),g=document.createTextNode(""),y.observe(g,{characterData:!0}),function(){g.data=_=++_%2}):d?((m=new MessageChannel).port1.onmessage=h,function(){return m.port2.postMessage(0)}):void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(h)}:p()}catch(e){return p()}}():p();var M=Math.random().toString(36).substring(2);function L(){}var T=void 0;function k(t,n,r){n.constructor===t.constructor&&r===b&&n.constructor.resolve===w?function(e,t){1===t._state?S(e,t._result):2===t._state?D(e,t._result):O(t,void 0,(function(t){return x(e,t)}),(function(t){return D(e,t)}))}(t,n):void 0===r?S(t,n):e(r)?function(e,t,n){i((function(e){var r=!1,o=function(n,o,a,i){try{n.call(o,(function(n){r||(r=!0,t!==n?x(e,n):S(e,n))}),(function(t){r||(r=!0,D(e,t))}))}catch(e){return e}}(n,t);!r&&o&&(r=!0,D(e,o))}),e)}(t,n,r):S(t,n)}function x(e,t){if(e===t)D(e,new TypeError("You cannot resolve a promise with itself"));else if(o=typeof(r=t),null===r||"object"!==o&&"function"!==o)S(e,t);else{var n=void 0;try{n=t.then}catch(t){return void D(e,t)}k(e,t,n)}var r,o}function E(e){e._onerror&&e._onerror(e._result),Y(e)}function S(e,t){e._state===T&&(e._result=t,e._state=1,0!==e._subscribers.length&&i(Y,e))}function D(e,t){e._state===T&&(e._state=2,e._result=t,i(E,e))}function O(e,t,n,r){var o=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+1]=n,o[a+2]=r,0===a&&e._state&&i(Y,e)}function Y(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,a=e._result,i=0;i<t.length;i+=3)o=t[i+n],(r=t[i])?C(n,r,o,a):o(a);e._subscribers.length=0}}function C(t,n,r,o){var a=e(r),i=void 0,s=void 0,u=!0;if(a){try{i=r(o)}catch(t){u=!1,s=t}if(n===i)return void D(n,new TypeError("A promises callback cannot return that same promise."))}else i=o;n._state!==T||(a&&u?x(n,i):!1===u?D(n,s):1===t?S(n,i):2===t&&D(n,i))}var A=0;function j(e){e[M]=A++,e._state=void 0,e._result=void 0,e._subscribers=[]}var P=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(L),this.promise[M]||j(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&S(this.promise,this._result))):D(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===T&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===w){var o=void 0,a=void 0,i=!1;try{o=e.then}catch(e){i=!0,a=e}if(o===b&&e._state!==T)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===H){var s=new n(L);i?D(s,a):k(s,e,o),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===T&&(this._remaining--,2===e?D(r,n):this._result[t]=n),0===this._remaining&&S(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),H=function(){function t(e){this[M]=A++,this._result=this._state=void 0,this._subscribers=[],L!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){x(e,t)}),(function(t){D(e,t)}))}catch(t){D(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return H.prototype.then=b,H.all=function(e){return new P(this,e).promise},H.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var o=e.length,a=0;a<o;a++)n.resolve(e[a]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},H.resolve=w,H.reject=function(e){var t=new this(L);return D(t,e),t},H._setScheduler=function(e){a=e},H._setAsap=function(e){i=e},H._asap=i,H.polyfill=function(){var e=void 0;if(void 0!==Fe)e=Fe;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=H},H.Promise=H,H}()})),We=ze((function(e,t){var n;e.exports=n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},a=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++)t[r+a>>>2]|=(n[a>>>2]>>>24-a%4*8&255)<<24-(r+a)%4*8;else for(a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},a=0;a<t;a+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new i.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new i.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++)r.push(String.fromCharCode(t[o>>>2]>>>24-o%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new i.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*u,o);if(u){for(var c=0;c<u;c+=a)this._doProcessBlock(r,c);var d=r.splice(0,u);n.sigBytes-=l}return new i.init(d,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=r.algo={};return r}(Math)})),Be=ze((function(e,t){var n;e.exports=(n=We,function(e){var t=n,r=t.lib,o=r.WordArray,a=r.Hasher,i=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],c=i.SHA256=a.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)l[f]=0|e[t+f];else{var h=l[f-15],m=l[f-2];l[f]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+l[f-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+l[f-16]}var _=r&o^r&a^o&a,y=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&d)+u[f]+l[f];p=d,d=c,c=s,s=i+y|0,i=a,a=o,o=r,r=y+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+i|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(c),t.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)})),Ve=ze((function(e,t){var n,r;e.exports=(r=(n=We).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var i=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)o.push(r.charAt(i>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var i=n.charAt(64);if(i){var s=e.indexOf(i);-1!==s&&(t=s)}return function(e,t,n){for(var o=[],a=0,i=0;i<t;i++)if(i%4){var s=n[e.charCodeAt(i-1)]<<i%4*2,u=n[e.charCodeAt(i)]>>>6-i%4*2;o[a>>>2]|=(s|u)<<24-a%4*8,a++}return r.create(o,a)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),qe=ze((function(e,t){e.exports=We.enc.Hex})),Ge=ze((function(e,t){(function(){var t;function n(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):this.fromString(e,null==t&&"string"!=typeof e?256:t))}function r(){return new n(null)}var o="undefined"!=typeof navigator;o&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,n,r,o,a){for(var i=32767&t,s=t>>15;--a>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*i;o=((u=i*u+((32767&c)<<15)+n[r]+(1073741823&o))>>>30)+(c>>>15)+s*l+(o>>>30),n[r++]=1073741823&u}return o},t=30):o&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,o,a){for(;--a>=0;){var i=t*this[e++]+n[r]+o;o=Math.floor(i/67108864),n[r++]=67108863&i}return o},t=26):(n.prototype.am=function(e,t,n,r,o,a){for(var i=16383&t,s=t>>14;--a>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*i;o=((u=i*u+((16383&c)<<14)+n[r]+o)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return o},t=28),n.prototype.DB=t,n.prototype.DM=(1<<t)-1,n.prototype.DV=1<<t,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-t,n.prototype.F2=2*t-52;var a,i,s=new Array;for(a="0".charCodeAt(0),i=0;i<=9;++i)s[a++]=i;for(a="a".charCodeAt(0),i=10;i<36;++i)s[a++]=i;for(a="A".charCodeAt(0),i=10;i<36;++i)s[a++]=i;function u(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function l(e,t){var n=s[e.charCodeAt(t)];return null==n?-1:n}function c(e){var t=r();return t.fromInt(e),t}function d(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function p(e){this.m=e}function f(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function h(e,t){return e&t}function m(e,t){return e|t}function _(e,t){return e^t}function y(e,t){return e&~t}function g(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function v(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function b(){}function w(e){return e}function M(e){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}p.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},p.prototype.revert=function(e){return e},p.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},p.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},f.prototype.convert=function(e){var t=r();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t},f.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t},f.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},f.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},f.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var o=e.length,a=!1,i=0;--o>=0;){var s=8==r?255&e[o]:l(e,o);s<0?"-"==e.charAt(o)&&(a=!0):(a=!1,0==i?this[this.t++]=s:i+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-i)-1)<<i,this[this.t++]=s>>this.DB-i):this[this.t-1]|=s<<i,(i+=r)>=this.DB&&(i-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),a&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,o=this.DB-r,a=(1<<o)-1,i=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+i+1]=this[n]>>o|s,s=(this[n]&a)<<r;for(n=i-1;n>=0;--n)t[n]=0;t[i]=s,t.t=this.t+i+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,a=(1<<r)-1;t[0]=this[n]>>r;for(var i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&a)<<o,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<o),t.t=this.t-n,t.clamp()}},n.prototype.subTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),o=e.abs(),a=r.t;for(t.t=a+o.t;--a>=0;)t[a]=0;for(a=0;a<o.t;++a)t[a+r.t]=r.am(0,o[a],t,a,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,o){var a=e.abs();if(!(a.t<=0)){var i=this.abs();if(i.t<a.t)return null!=t&&t.fromInt(0),void(null!=o&&this.copyTo(o));null==o&&(o=r());var s=r(),u=this.s,l=e.s,c=this.DB-d(a[a.t-1]);c>0?(a.lShiftTo(c,s),i.lShiftTo(c,o)):(a.copyTo(s),i.copyTo(o));var p=s.t,f=s[p-1];if(0!=f){var h=f*(1<<this.F1)+(p>1?s[p-2]>>this.F2:0),m=this.FV/h,_=(1<<this.F1)/h,y=1<<this.F2,g=o.t,v=g-p,b=null==t?r():t;for(s.dlShiftTo(v,b),o.compareTo(b)>=0&&(o[o.t++]=1,o.subTo(b,o)),n.ONE.dlShiftTo(p,b),b.subTo(s,s);s.t<p;)s[s.t++]=0;for(;--v>=0;){var w=o[--g]==f?this.DM:Math.floor(o[g]*m+(o[g-1]+y)*_);if((o[g]+=s.am(0,w,o,v,0,p))<w)for(s.dlShiftTo(v,b),o.subTo(b,o);o[g]<--w;)o.subTo(b,o)}null!=t&&(o.drShiftTo(p,t),u!=l&&n.ZERO.subTo(t,t)),o.t=p,o.clamp(),c>0&&o.rShiftTo(c,o),u<0&&n.ZERO.subTo(o,o)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var o=r(),a=r(),i=t.convert(this),s=d(e)-1;for(i.copyTo(o);--s>=0;)if(t.sqrTo(o,a),(e&1<<s)>0)t.mulTo(a,i,o);else{var u=o;o=a,a=u}return t.revert(o)},n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,o=!1,a="",i=this.t,s=this.DB-i*this.DB%t;if(i-- >0)for(s<this.DB&&(n=this[i]>>s)>0&&(o=!0,a=u(n));i>=0;)s<t?(n=(this[i]&(1<<s)-1)<<t-s,n|=this[--i]>>(s+=this.DB-t)):(n=this[i]>>(s-=t)&r,s<=0&&(s+=this.DB,--i)),n>0&&(o=!0),o&&(a+=u(n));return o?a:"0"},n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+d(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=r();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new p(t):new f(t),this.exp(e,n)},n.ZERO=c(0),n.ONE=c(1),b.prototype.convert=w,b.prototype.revert=w,b.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},b.prototype.sqrTo=function(e,t){e.squareTo(t)},M.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=r();return e.copyTo(t),this.reduce(t),t},M.prototype.revert=function(e){return e},M.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},M.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},M.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var L,T,k,x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],E=(1<<26)/x[x.length-1];function S(){var e;e=(new Date).getTime(),T[k++]^=255&e,T[k++]^=e>>8&255,T[k++]^=e>>16&255,T[k++]^=e>>24&255,k>=P&&(k-=P)}if(n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),o=c(n),a=r(),i=r(),s="";for(this.divRemTo(o,a,i);a.signum()>0;)s=(n+i.intValue()).toString(e).substr(1)+s,a.divRemTo(o,a,i);return i.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),o=Math.pow(t,r),a=!1,i=0,s=0,u=0;u<e.length;++u){var c=l(e,u);c<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(s=t*s+c,++i>=r&&(this.dMultiply(o),this.dAddOffset(s,0),i=0,s=0))}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(s,0)),a&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var o=new Array,a=7&e;o.length=1+(e>>3),t.nextBytes(o),a>0?o[0]&=(1<<a)-1:o[0]=0,this.fromString(o,256)}},n.prototype.bitwiseTo=function(e,t,n){var r,o,a=Math.min(e.t,this.t);for(r=0;r<a;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(o=e.s&this.DM,r=a;r<this.t;++r)n[r]=t(this[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=a;r<e.t;++r)n[r]=t(o,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,n){var r,o=Math.min(this.t+e.t,t);for(n.s=0,n.t=o;o>0;)n[--o]=0;for(r=n.t-this.t;o<r;++o)n[o+this.t]=this.am(0,e[o],n,o,0,this.t);for(r=Math.min(e.t,t);o<r;++o)this.am(0,e[o],n,o,0,t-o);n.clamp()},n.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var a=t.shiftRight(o);(e=e+1>>1)>x.length&&(e=x.length);for(var i=r(),s=0;s<e;++s){i.fromInt(x[Math.floor(Math.random()*x.length)]);var u=i.modPow(a,this);if(0!=u.compareTo(n.ONE)&&0!=u.compareTo(t)){for(var l=1;l++<o&&0!=u.compareTo(t);)if(0==(u=u.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=u.compareTo(t))return!1}}return!0},n.prototype.clone=function(){var e=r();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=r();return this.bitwiseTo(e,h,t),t},n.prototype.or=function(e){var t=r();return this.bitwiseTo(e,m,t),t},n.prototype.xor=function(e){var t=r();return this.bitwiseTo(e,_,t),t},n.prototype.andNot=function(e){var t=r();return this.bitwiseTo(e,y,t),t},n.prototype.not=function(){for(var e=r(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=r();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=r();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+g(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=v(this[n]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},n.prototype.setBit=function(e){return this.changeBit(e,m)},n.prototype.clearBit=function(e){return this.changeBit(e,y)},n.prototype.flipBit=function(e){return this.changeBit(e,_)},n.prototype.add=function(e){var t=r();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=r();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=r();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=r();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=r();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=r(),n=r();return this.divRemTo(e,t,n),new Array(t,n)},n.prototype.modPow=function(e,t){var n,o,a=e.bitLength(),i=c(1);if(a<=0)return i;n=a<18?1:a<48?3:a<144?4:a<768?5:6,o=a<8?new p(t):t.isEven()?new M(t):new f(t);var s=new Array,u=3,l=n-1,h=(1<<n)-1;if(s[1]=o.convert(this),n>1){var m=r();for(o.sqrTo(s[1],m);u<=h;)s[u]=r(),o.mulTo(m,s[u-2],s[u]),u+=2}var _,y,g=e.t-1,v=!0,b=r();for(a=d(e[g])-1;g>=0;){for(a>=l?_=e[g]>>a-l&h:(_=(e[g]&(1<<a+1)-1)<<l-a,g>0&&(_|=e[g-1]>>this.DB+a-l)),u=n;0==(1&_);)_>>=1,--u;if((a-=u)<0&&(a+=this.DB,--g),v)s[_].copyTo(i),v=!1;else{for(;u>1;)o.sqrTo(i,b),o.sqrTo(b,i),u-=2;u>0?o.sqrTo(i,b):(y=i,i=b,b=y),o.mulTo(b,s[_],i)}for(;g>=0&&0==(e[g]&1<<a);)o.sqrTo(i,b),y=i,i=b,b=y,--a<0&&(a=this.DB-1,--g)}return o.revert(i)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return n.ZERO;for(var r=e.clone(),o=this.clone(),a=c(1),i=c(0),s=c(0),u=c(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(a.isEven()&&i.isEven()||(a.addTo(this,a),i.subTo(e,i)),a.rShiftTo(1,a)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);for(;o.isEven();)o.rShiftTo(1,o),t?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(o)>=0?(r.subTo(o,r),t&&a.subTo(s,a),i.subTo(u,i)):(o.subTo(r,o),t&&s.subTo(a,s),u.subTo(i,u))}return 0!=o.compareTo(n.ONE)?n.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},n.prototype.pow=function(e){return this.exp(e,new b)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return t;for(o<a&&(a=o),a>0&&(t.rShiftTo(a,t),n.rShiftTo(a,n));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},n.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=x[x.length-1]){for(t=0;t<x.length;++t)if(n[0]==x[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<x.length;){for(var r=x[t],o=t+1;o<x.length&&r<E;)r*=x[o++];for(r=n.modInt(r);t<o;)if(r%x[t++]==0)return!1}return n.millerRabin(e)},n.prototype.square=function(){var e=r();return this.squareTo(e),e},n.prototype.Barrett=M,null==T){var D;if(T=new Array,k=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var O=new Uint8Array(32);for(window.crypto.getRandomValues(O),D=0;D<32;++D)T[k++]=O[D]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var Y=window.crypto.random(32);for(D=0;D<Y.length;++D)T[k++]=255&Y.charCodeAt(D)}for(;k<P;)D=Math.floor(65536*Math.random()),T[k++]=D>>>8,T[k++]=255&D;k=0,S()}function C(){if(null==L){for(S(),(L=new j).init(T),k=0;k<T.length;++k)T[k]=0;k=0}return L.next()}function A(){}function j(){this.i=0,this.j=0,this.S=new Array}A.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=C()},j.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)r=this.S[t],this.S[t]=this.S[n=n+this.S[t]+e[t%e.length]&255],this.S[n]=r;this.i=0,this.j=0},j.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var P=256;e.exports={default:n,BigInteger:n,SecureRandom:A}}).call(Fe)})),Je={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},Ke={sha256:Be};function $e(e,t){if(this.n=null,this.e=0,!(null!=e&&null!=t&&e.length>0&&t.length>0))throw new Error("Invalid key data");this.n=new Ge.BigInteger(e,16),this.e=parseInt(t,16)}$e.prototype.verify=function(e,t){t=t.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new Ge.BigInteger(t,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=function(e){for(var t in Je){var n=Je[t],r=n.length;if(e.substring(0,r)===n)return{alg:t,hash:e.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!Ke.hasOwnProperty(r.alg))throw new Error("Hashing algorithm is not supported.");var o=Ke[r.alg](e).toString();return r.hash===o};for(var Xe=[],Ze=[],Qe="undefined"!=typeof Uint8Array?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,nt=et.length;tt<nt;++tt)Xe[tt]=et[tt],Ze[et.charCodeAt(tt)]=tt;Ze["-".charCodeAt(0)]=62,Ze["_".charCodeAt(0)]=63;var rt=function(e){var t,n,r=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}(e),o=r[0],a=r[1],i=new Qe(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),s=0,u=a>0?o-4:o;for(n=0;n<u;n+=4)t=Ze[e.charCodeAt(n)]<<18|Ze[e.charCodeAt(n+1)]<<12|Ze[e.charCodeAt(n+2)]<<6|Ze[e.charCodeAt(n+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=255&t;return 2===a&&(t=Ze[e.charCodeAt(n)]<<2|Ze[e.charCodeAt(n+1)]>>4,i[s++]=255&t),1===a&&(t=Ze[e.charCodeAt(n)]<<10|Ze[e.charCodeAt(n+1)]<<4|Ze[e.charCodeAt(n+2)]>>2,i[s++]=t>>8&255,i[s++]=255&t),i};function ot(e){var t=e.length%4;return 0===t?e:e+new Array(4-t+1).join("=")}function at(e){return e=ot(e).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}(rt(e)).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function it(e){return function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);t+=2===r.length?r:"0"+r}return t}(rt(ot(e)))}var st=ze((function(e){var t,n;t=Fe,n=function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=o.replace(/[\/]+$/,r<e.length-1?"":"/"),t.push(o))}var a=t.join("/"),i=(a=a.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i.shift()+(i.length>0?"?":"")+i.join("&")}return function(){return e("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()}));function ut(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,a=[],i=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return a},entries:function(){return i},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){a.push(t=t.toLowerCase()),i.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(u())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}function lt(e){if(e.ok)return e.json();var t=new Error(e.statusText);return t.response=e,Promise.reject(t)}function ct(e){this.name="ConfigurationError",this.message=e||""}function dt(e){this.name="TokenValidationError",this.message=e||""}ct.prototype=Error.prototype,dt.prototype=Error.prototype;var pt=function(){function e(){}var t=e.prototype;return t.get=function(){return null},t.has=function(){return null},t.set=function(){return null},e}();Ue.polyfill();var ft=function(e){return"number"==typeof e},ht=function(){return new Date};function mt(e){var t=e||{};if(this.jwksCache=t.jwksCache||new pt,this.expectedAlg=t.expectedAlg||"RS256",this.issuer=t.issuer,this.audience=t.audience,this.leeway=0===t.leeway?0:t.leeway||60,this.jwksURI=t.jwksURI,this.maxAge=t.maxAge,this.__clock="function"==typeof t.__clock?t.__clock:ht,this.leeway<0||this.leeway>300)throw new ct("The leeway should be positive and lower than five minutes.");if("RS256"!==this.expectedAlg)throw new ct('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "RS256".')}function _t(e,t){this.plugins=t;for(var n=0;n<this.plugins.length;n++){if(this.plugins[n].version!==se.raw){var r="";throw this.plugins[n].constructor&&this.plugins[n].constructor.name&&(r=this.plugins[n].constructor.name),new Error("Plugin "+r+" version ("+this.plugins[n].version+") is not compatible with the SDK version ("+se.raw+")")}this.plugins[n].setWebAuth(e)}}mt.prototype.verify=function(e,t,n){if(!n&&t&&"function"==typeof t&&(n=t,t=void 0),!e)return n(new dt("ID token is required but missing"),null);var r=this.decode(e);if(r instanceof Error)return n(new dt("ID token could not be decoded"),null);var o=r.encoded.header+"."+r.encoded.payload,a=it(r.encoded.signature),i=r.header.alg,s=r.header.kid,u=r.payload.aud,l=r.payload.sub,c=r.payload.iss,d=r.payload.exp,p=r.payload.nbf,f=r.payload.iat,h=r.payload.azp,m=r.payload.auth_time,_=r.payload.nonce,y=this.__clock(),g=this;if(g.expectedAlg!==i)return n(new dt('Signature algorithm of "'+i+'" is not supported. Expected the ID token to be signed with "RS256".'),null);this.getRsaVerifier(c,s,(function(e,i){if(e)return n(e,null);if(!i.verify(o,a))return n(new dt("Invalid ID token signature."),null);if(!c||"string"!=typeof c)return n(new dt("Issuer (iss) claim must be a string present in the ID token"),null);if(g.issuer!==c)return n(new dt('Issuer (iss) claim mismatch in the ID token, expected "'+g.issuer+'", found "'+c+'"'),null);if(!l||"string"!=typeof l)return n(new dt("Subject (sub) claim must be a string present in the ID token"),null);if(!u||"string"!=typeof u&&!Array.isArray(u))return n(new dt("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(u)&&!u.includes(g.audience))return n(new dt('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but was not one of "'+u.join(", ")+'"'),null);if("string"==typeof u&&g.audience!==u)return n(new dt('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but found "'+u+'"'),null);if(t){if(!_||"string"!=typeof _)return n(new dt("Nonce (nonce) claim must be a string present in the ID token"),null);if(_!==t)return n(new dt('Nonce (nonce) claim value mismatch in the ID token; expected "'+t+'", found "'+_+'"'),null)}if(Array.isArray(u)&&u.length>1){if(!h||"string"!=typeof h)return n(new dt("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(h!==g.audience)return n(new dt('Authorized Party (azp) claim mismatch in the ID token; expected "'+g.audience+'", found "'+h+'"'),null)}if(!d||!ft(d))return n(new dt("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!f||!ft(f))return n(new dt("Issued At (iat) claim must be a number present in the ID token"),null);var s=d+g.leeway,v=new Date(0);if(v.setUTCSeconds(s),y>v)return n(new dt('Expiration Time (exp) claim error in the ID token; current time "'+y+'" is after expiration time "'+v+'"'),null);if(p&&ft(p)){var b=p-g.leeway,w=new Date(0);if(w.setUTCSeconds(b),y<w)return n(new dt('Not Before Time (nbf) claim error in the ID token; current time "'+y+'" is before the not before time "'+w+'"'),null)}if(g.maxAge){if(!m||!ft(m))return n(new dt("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var M=m+g.maxAge+g.leeway,L=new Date(0);if(L.setUTCSeconds(M),y>L)return n(new dt('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+y+'" is after last auth time at "'+L+'"'),null)}return n(null,r.payload)}))},mt.prototype.getRsaVerifier=function(e,t,n){var r=this,o=e+t;Promise.resolve(this.jwksCache.has(o)).then((function(n){return n?r.jwksCache.get(o):(a={jwksURI:r.jwksURI,iss:e,kid:t},("undefined"==typeof fetch?ut:fetch)(a.jwksURI||st(a.iss,".well-known","jwks.json")).then(lt).then((function(e){var t,n,r,o=null;for(t=0;t<e.keys.length&&null===o;t++)(n=e.keys[t]).kid===a.kid&&(o=n);if(!o)throw new Error('Could not find a public key for Key ID (kid) "'+a.kid+'"');return{modulus:it((r=o).n),exp:it(r.e)}})).catch((function(e){throw e})));var a})).then((function(e){if(!e||!e.modulus||!e.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(r.jwksCache.set(o,e)).then((function(){n&&n(null,new $e(e.modulus,e.exp))}))})).catch((function(e){n&&n(e)}))},mt.prototype.decode=function(e){var t,n,r=e.split(".");if(3!==r.length)return new dt("Cannot decode a malformed JWT");try{t=JSON.parse(at(r[0])),n=JSON.parse(at(r[1]))}catch(e){return new dt("Token header or payload is not valid JSON")}return{header:t,payload:n,encoded:{header:r[0],payload:r[1],signature:r[2]}}},mt.prototype.validateAccessToken=function(e,t,n,r){if(this.expectedAlg!==t)return r(new dt('Signature algorithm of "'+t+'" is not supported. Expected "'+this.expectedAlg+'"'));var o,a=Be(e),i=qe.stringify(a),s=i.substring(0,i.length/2),u=qe.parse(s),l=Ve.stringify(u);return r((o={"+":"-","/":"_","=":""},l.replace(/[+/=]/g,(function(e){return o[e]}))!==n?new dt("Invalid access_token"):null))},_t.prototype.get=function(e){for(var t=0;t<this.plugins.length;t++)if(this.plugins[t].supports(e))return this.plugins[t].init();return null};var yt=function(e){var t=new Uint8Array(e),n=[],r="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~",o=ke.getWindow().crypto||ke.getWindow().msCrypto;if(!o)return null;for(var a=o.getRandomValues(t),i=0;i<a.length;i++)n.push(r[a[i]%r.length]);return n.join("")};function gt(e){var t=e.transaction||{};this.namespace=t.namespace||"com.auth0.auth.",this.keyLength=t.keyLength||32,this.storage=new Ye(e),this.options=e}function vt(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout||6e4,this.timeoutCallback=e.timeoutCallback||null,this.eventListenerType=e.eventListenerType||"message",this.iframe=null,this.timeoutHandle=null,this._destroyTimeout=null,this.transientMessageEventListener=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator||{isValid:function(){return!0}},"function"!=typeof this.callback)throw new Error("options.callback must be a function")}function bt(e){this.webAuth=e,this.warn=new De(e.baseOptions)}function wt(e,t){this.webAuth=e,this.baseOptions=t,this.request=new Le(t),this.webMessageHandler=new bt(e),this.storage=new Ye(t)}function Mt(e,t){return["co/verifier",encodeURIComponent(e),encodeURIComponent(t)].join("/")}function Lt(e,t){this.webAuth=e,this.baseOptions=t,this.crossOriginAuthentication=new wt(e,this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings})}gt.prototype.process=function(e){if(!e.responseType)throw new Error("responseType is required");var t=e.realm||e.connection,n=-1!==e.responseType.indexOf("id_token"),r=this.generateTransaction(e.appState,e.state,e.nonce,t,n,e.organization);return e.state||(e.state=r.state),n&&!e.nonce&&(e.nonce=r.nonce),e},gt.prototype.generateTransaction=function(e,t,n,r,o,a){if(t=t||yt(this.keyLength),n=n||(o?yt(this.keyLength):null),ke.getWindow().location.host!==this.options.domain){var i={nonce:n,appState:e,state:t,lastUsedConnection:r};a&&(i.organization=a),this.storage.setItem(this.namespace+t,i,{expires:1/48})}return{state:t,nonce:n}},gt.prototype.getStoredTransaction=function(e){var t;return t=this.storage.getItem(this.namespace+e),this.clearTransaction(e),t},gt.prototype.clearTransaction=function(e){this.storage.removeItem(this.namespace+e)},vt.prototype.init=function(){var e=this,t=ke.getWindow();switch(this.iframe=t.document.createElement("iframe"),this.iframe.style.display="none",this.proxyEventListener=function(t){e.eventListener(t)},this.eventListenerType){case"message":this.eventSourceObject=t;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error("Unsupported event listener type: "+this.eventListenerType)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),t.document.body.appendChild(this.iframe),this.iframe.src=this.url,this.timeoutHandle=setTimeout((function(){e.timeoutHandler()}),this.timeout)},vt.prototype.eventListener=function(e){var t={event:e,sourceObject:this.eventSourceObject};this.eventValidator.isValid(t)&&(this.destroy(),this.callback(t))},vt.prototype.timeoutHandler=function(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()},vt.prototype.destroy=function(){var e=this;clearTimeout(this.timeoutHandle),this._destroyTimeout=setTimeout((function(){e.eventSourceObject.removeEventListener(e.eventListenerType,e.proxyEventListener,!1),e.iframe.parentNode&&e.iframe.parentNode.removeChild(e.iframe)}),0)},bt.prototype.run=function(e,t){var n=this;e.responseMode="web_message",e.prompt="none";var r=ke.getOrigin(),o=be.getOriginFromUrl(e.redirectUri);if(o&&r!==o)return t({error:"origin_mismatch",error_description:"The redirectUri's origin ("+o+") should match the window's origin ("+r+")."});!function(e,t,n){new vt({url:e,eventListenerType:"message",callback:function(e){n(null,e)},timeout:t.timeout,eventValidator:{isValid:function(e){return"authorization_response"===e.event.data.type&&t.state===e.event.data.response.state}},timeoutCallback:function(){n({error:"timeout",error_description:"Timeout during executing web_message communication",state:t.state})}}).init()}(this.webAuth.client.buildAuthorizeUrl(e),e,(function(r,o){var a=r;if(!r&&o.event.data.response.error&&(a=o.event.data.response),!a){var i=o.event.data.response;return n.webAuth.validateAuthenticationResponse(e,i,t)}return"consent_required"===a.error&&"localhost"===ke.getWindow().location.hostname&&n.warn.warning("Consent Required. Consent can't be skipped on localhost. Read more here: https://auth0.com/docs/api-auth/user-consent#skipping-consent-for-first-party-clients"),n.webAuth.transactionManager.clearTransaction(a.state),t(be.pick(a,["error","error_description"]))}))},wt.prototype.login=function(e,t){var n=this,r=i(this.baseOptions.rootUrl,"/co/authenticate");e.username=e.username||e.email,delete e.email;var o={client_id:e.clientID||this.baseOptions.clientID,username:e.username};e.password&&(o.password=e.password),e.otp&&(o.otp=e.otp);var a=e.realm||this.baseOptions.realm;if(a){var s=e.credentialType||this.baseOptions.credentialType||"http://auth0.com/oauth/grant-type/password-realm";o.realm=a,o.credential_type=s}else o.credential_type="password";this.request.post(r).withCredentials().send(o).end((function(r,o){if(r){var a=r.response&&r.response.body||{error:"request_error",error_description:JSON.stringify(r)};return Pe(t,{forceLegacyError:!0})(a)}function i(){var r=!0===e.popup;e=be.blacklist(e,["password","credentialType","otp","popup","onRedirecting"]);var a=be.merge(e).with({loginTicket:o.body.login_ticket}),i=Mt(n.baseOptions.rootUrl,o.body.co_id);n.storage.setItem(i,o.body.co_verifier,{expires:1/96}),r?n.webMessageHandler.run(a,Pe(t,{forceLegacyError:!0})):n.webAuth.authorize(a)}"function"==typeof e.onRedirecting?e.onRedirecting(i):i()}))},wt.prototype.callback=function(){var e=decodeURIComponent(function(e){var t=("&"+ke.getWindow().location.hash.substring(1)).split("&origin=");if(2===t.length)return t.pop().split("&").shift()}()),t=ke.getWindow(),n=this;t.addEventListener("message",(function(e){if("co_verifier_request"===e.data.type){var t=Mt(e.origin,e.data.request.id),r=function(e,t){try{var n=e.getItem(t);return e.removeItem(t),n||""}catch(e){return""}}(n.storage,t);e.source.postMessage({type:"co_verifier_response",response:{verifier:r}},e.origin)}})),t.parent.postMessage({type:"ready"},e)},Lt.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,delete e.connection,this.crossOriginAuthentication.login(e,t)},Lt.prototype.signupAndLogin=function(e,t){var n=this;return this.webAuth.client.dbConnection.signup(e,(function(r){return r?t(r):(e.realm=e.realm||e.connection,delete e.connection,n.webAuth.login(e,t))}))};var Tt=a((function(e){var t=function(){function e(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function t(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function n(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}var r=function(){if("undefined"==typeof navigator)return!1;var e=-1,t=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)):t.indexOf("Trident")>-1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)),e>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(o,a){if(!a)throw"missing required callback argument";var i,s;o.url||(i="missing required 'url' parameter"),o.relay_url||(i="missing required 'relay_url' parameter"),i&&setTimeout((function(){a(i)}),0),o.window_name||(o.window_name=null),o.window_features&&!function(){try{var e=navigator.userAgent;return-1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(e){}return!1}()||(o.window_features=void 0);var u,l=o.origin||n(o.url);if(l!==n(o.relay_url))return setTimeout((function(){a("invalid arguments: origin of url and relay_url must match")}),0);r&&((s=document.createElement("iframe")).setAttribute("src",o.relay_url),s.style.display="none",s.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(s),u=s.contentWindow);var c=o.popup||window.open(o.url,o.window_name,o.window_features);o.popup&&(c.location.href=o.url),u||(u=c);var d=setInterval((function(){c&&c.closed&&(f(),a&&(a("User closed the popup window"),a=null))}),500),p=JSON.stringify({a:"request",d:o.params});function f(){if(s&&document.body.removeChild(s),s=void 0,d&&(d=clearInterval(d)),t(window,"message",h),t(window,"unload",f),c)try{c.close()}catch(e){u.postMessage("die",l)}c=u=void 0}function h(e){if(e.origin===l){try{var t=JSON.parse(e.data)}catch(e){if(a)return a(e);throw e}"ready"===t.a?u.postMessage(p,l):"error"===t.a?(f(),a&&(a(t.d),a=null)):"response"===t.a&&(f(),a&&(a(null,t.d),a=null))}}return e(window,"unload",f),e(window,"message",h),{originalPopup:c,close:f,focus:function(){if(c)try{c.focus()}catch(e){}}}},onOpen:function(n){var o="*",a=r?function(){for(var e=window.opener.frames,t=e.length-1;t>=0;t--)try{if(e[t].location.protocol===window.location.protocol&&e[t].location.host===window.location.host&&"__winchan_relay_frame"===e[t].name)return e[t]}catch(e){}}():window.opener;if(!a)throw"can't find relay frame";function i(e){e=JSON.stringify(e),r?a.doPost(e,o):a.postMessage(e,o)}function s(e){if("die"===e.data)try{window.close()}catch(e){}}e(r?a:window,"message",(function e(r){var a;try{a=JSON.parse(r.data)}catch(e){}a&&"request"===a.a&&(t(window,"message",e),o=r.origin,n&&setTimeout((function(){n(o,a.d,(function(e){n=void 0,i({a:"response",d:e})}))}),0))})),e(r?a:window,"message",s);try{i({a:"ready"})}catch(t){e(a,"load",(function(e){i({a:"ready"})}))}var u=function(){try{t(r?a:window,"message",s)}catch(e){}n&&i({a:"error",d:"client closed window"}),n=void 0;try{window.close()}catch(e){}};return e(window,"unload",u),{detach:function(){t(window,"unload",u)}}}}:{open:function(e,t,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(e){setTimeout((function(){e("unsupported browser")}),0)}}}();e.exports&&(e.exports=t)})),kt=function(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(e);return t?t[1]:e};function xt(){this._current_popup=null}function Et(e,t){this.baseOptions=t,this.baseOptions.popupOrigin=t.popupOrigin,this.client=e.client,this.webAuth=e,this.transactionManager=new gt(this.baseOptions),this.crossOriginAuthentication=new wt(e,this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings})}function St(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout||6e4,this.handler=null,this.postMessageDataType=e.postMessageDataType||!1,this.postMessageOrigin=e.postMessageOrigin||ke.getWindow().location.origin||ke.getWindow().location.protocol+"//"+ke.getWindow().location.hostname+(ke.getWindow().location.port?":"+ke.getWindow().location.port:"")}function Dt(e){this.baseOptions=e,this.request=new Le(e),this.transactionManager=new gt(this.baseOptions)}function Ot(e,t){this.baseOptions=t,this.client=e,this.baseOptions.universalLoginPage=!0,this.request=new Le(this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings})}xt.prototype.calculatePosition=function(e){var t=e.width||500,n=e.height||600,r=ke.getWindow(),o=void 0!==r.screenX?r.screenX:r.screenLeft,a=void 0!==r.screenY?r.screenY:r.screenTop,i=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,s=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:t,height:n,left:e.left||o+(i-t)/2,top:e.top||a+(s-n)/2}},xt.prototype.preload=function(e){var t=this,n=ke.getWindow(),r=this.calculatePosition(e.popupOptions||{}),o=be.merge(r).with(e.popupOptions),a=e.url||"about:blank",i=Y(o,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=n.open(a,"auth0_signup_popup",i),this._current_popup.kill=function(){this.close(),t._current_popup=null}),this._current_popup},xt.prototype.load=function(e,t,n,r){var o=this,a=this.calculatePosition(n.popupOptions||{}),i=be.merge(a).with(n.popupOptions),s=be.merge({url:e,relay_url:t,window_features:Y(i,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),u=Tt.open(s,(function(e,t){if(!e||"SyntaxError"!==e.name)return o._current_popup=null,r(e,t)}));return u.focus(),u},Et.prototype.buildPopupHandler=function(){var e=this.baseOptions.plugins.get("popup.getPopupHandler");return e?e.getPopupHandler():new xt},Et.prototype.preload=function(e){e=e||{};var t=this.buildPopupHandler();return t.preload(e),t},Et.prototype.getPopupHandler=function(e,t){return e.popupHandler?e.popupHandler:t?this.preload(e):this.buildPopupHandler()},Et.prototype.callback=function(e){var t=this,n=ke.getWindow(),r=(e=e||{}).popupOrigin||this.baseOptions.popupOrigin||ke.getOrigin();n.opener?Tt.onOpen((function(n,o,a){if(n!==r)return a({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});t.webAuth.parseHash(e||{},(function(e,t){return a(e||t)}))})):n.doPost=function(e){n.parent&&n.parent.postMessage(e,r)}},Et.prototype.authorize=function(e,t){var n,r,o={},a=this.baseOptions.plugins.get("popup.authorize"),s=be.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(be.blacklist(e,["popupHandler"]));return pe.check(s,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=i(this.baseOptions.rootUrl,"relay.html"),e.owp?s.owp=!0:(o.origin=kt(s.redirectUri),r=s.redirectUri),e.popupOptions&&(o.popupOptions=be.pick(e.popupOptions,["width","height","top","left"])),a&&(s=a.processParams(s)),(s=this.transactionManager.process(s)).scope=s.scope||"openid profile email",delete s.domain,n=this.client.buildAuthorizeUrl(s),this.getPopupHandler(e).load(n,r,o,Pe(t,{keepOriginalCasing:!0}))},Et.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,e.popup=!0,e=be.merge(this.baseOptions,["redirectUri","responseType","state","nonce"]).with(be.blacklist(e,["popupHandler","connection"])),e=this.transactionManager.process(e),this.crossOriginAuthentication.login(e,t)},Et.prototype.passwordlessVerify=function(e,t){var n=this;return this.client.passwordless.verify(be.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.username=e.phoneNumber||e.email,e.password=e.verificationCode,delete e.email,delete e.phoneNumber,delete e.verificationCode,delete e.type,n.client.loginWithResourceOwner(e,t)}))},Et.prototype.signupAndLogin=function(e,t){var n=this;return this.client.dbConnection.signup(e,(function(r){if(r)return t(r);n.loginWithCredentials(e,t)}))},St.create=function(e){return new St(e)},St.prototype.login=function(e,t){this.handler=new vt({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:this.getCallbackHandler(t,e),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){t(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:e||!1}),this.handler.init()},St.prototype.getEventValidator=function(){var e=this;return{isValid:function(t){switch(t.event.type){case"message":return t.event.origin===e.postMessageOrigin&&t.event.source===e.handler.iframe.contentWindow&&(!1===e.postMessageDataType||t.event.data.type&&t.event.data.type===e.postMessageDataType);case"load":if("about:"===t.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},St.prototype.getCallbackHandler=function(e,t){return function(n){var r;r=t?"object"==typeof n.event.data&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash,e(null,r)}},Dt.prototype.login=function(e,t){var n,r;return n=i(this.baseOptions.rootUrl,"usernamepassword","login"),e.username=e.username||e.email,e=be.blacklist(e,["email","onRedirecting"]),r=be.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(e),r=this.transactionManager.process(r),r=be.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Pe(t))},Dt.prototype.callback=function(e){var t,n=ke.getDocument();(t=n.createElement("div")).innerHTML=e,n.body.appendChild(t).children[0].submit()},Ot.prototype.login=function(e,t){if(ke.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var n,r=be.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return pe.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new Dt(this.baseOptions)).login(r,(function(r,o){if(r)return t(r);function a(){n.callback(o)}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){a()}));a()}))},Ot.prototype.signupAndLogin=function(e,t){var n=this;return n.client.client.dbConnection.signup(e,(function(r){return r?t(r):n.login(e,t)}))},Ot.prototype.getSSOData=function(e,t){var n,r="";return"function"==typeof e&&(t=e,e=!1),pe.check(e,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),e&&(r="?"+Y({ldaps:1,client_id:this.baseOptions.clientID})),n=i(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(Pe(t))};var Yt=function(){},Ct={lang:"en",templates:{auth0:function(e){var t="code"===e.type?"Enter the code shown above":"Solve the formula shown above";return'<div class="captcha-challenge">\n <img src="'+e.image+'" />\n <button type="button" class="captcha-reload">↺</button>\n</div>\n<input type="text" name="captcha"\n class="form-control captcha-control"\n placeholder="'+t+'" />'},recaptcha_v2:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},recaptcha_enterprise:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},error:function(){return'<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>'}}};function At(e){switch(e){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}var jt=function(e,t,n,r){function o(r){r=r||Yt,e.getChallenge((function(e,a){return e?(t.innerHTML=n.templates.error(e),r(e)):a.required?(t.style.display="","auth0"===a.provider?function(e,t,n,r){e.innerHTML=t.templates[n.provider](n),e.querySelector(".captcha-reload").addEventListener("click",(function(e){e.preventDefault(),r()}))}(t,n,a,o):"recaptcha_v2"!==a.provider&&"recaptcha_enterprise"!==a.provider||function(e,t,n){var r=e.hasAttribute("data-wid")&&e.getAttribute("data-wid");function o(t){e.querySelector('input[name="captcha"]').value=t||""}if(r)return o(),void At(n.provider).reset(r);e.innerHTML=t.templates[n.provider](n);var a=e.querySelector(".recaptcha");!function(e,t,n){var r="recaptchaCallback_"+Math.floor(1000001*Math.random());window[r]=function(){delete window[r],n()};var o=window.document.createElement("script");o.src=function(e,t,n){switch(e){case"recaptcha_v2":return"https://www.recaptcha.net/recaptcha/api.js?hl="+t+"&onload="+n;case"recaptcha_enterprise":return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+t+"&onload="+n;default:throw new Error("Unknown captcha provider")}}(t.provider,t.lang,r),o.async=!0,window.document.body.appendChild(o)}(0,{lang:t.lang,provider:n.provider},(function(){var t=At(n.provider);r=t.render(a,{callback:o,"expired-callback":function(){o()},"error-callback":function(){o()},sitekey:n.siteKey}),e.setAttribute("data-wid",r)}))}(t,n,a),void r()):(t.style.display="none",void(t.innerHTML=""))}))}return n=be.merge(Ct).with(n||{}),o(r),{reload:o,getValue:function(){var e=t.querySelector('input[name="captcha"]');if(e)return e.value}}};function Pt(){return new Date}function Ht(e){pe.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),e.overrides&&pe.check(e.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=e,this.baseOptions.plugins=new _t(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=e._timesToRetryFailedRequests?parseInt(e._timesToRetryFailedRequests,0):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,this.transactionManager=new gt(this.baseOptions),this.client=new Rt(this.baseOptions),this.redirect=new Lt(this,this.baseOptions),this.popup=new Et(this,this.baseOptions),this.crossOriginAuthentication=new wt(this,this.baseOptions),this.webMessageHandler=new bt(this),this._universalLogin=new Ot(this,this.baseOptions),this.ssodataStorage=new Ce(this.baseOptions)}function It(e,t){this.baseOptions=t,this.request=e}function Nt(e,t){this.baseOptions=t,this.request=e}function Rt(e,t){2===arguments.length?this.auth0=e:t=e,pe.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new Le(this.baseOptions),this.passwordless=new It(this.request,this.baseOptions),this.dbConnection=new Nt(this.request,this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings}),this.ssodataStorage=new Ce(this.baseOptions)}function Ft(e){pe.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new Le(this.baseOptions),this.baseOptions.rootUrl=i("https://"+this.baseOptions.domain,"api","v2")}Ht.prototype.parseHash=function(e,t){var n,r;t||"function"!=typeof e?e=e||{}:(t=e,e={});var o=ke.getWindow(),a=void 0===e.hash?o.location.hash:e.hash;if((n=function(e,t){var n=function(e){if(!e)return E;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?E.charset:e.charset;return{allowDots:void 0===e.allowDots?E.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:E.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:E.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:E.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:E.comma,decoder:"function"==typeof e.decoder?e.decoder:E.decoder,delimiter:"string"==typeof e.delimiter||d.isRegExp(e.delimiter)?e.delimiter:E.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:E.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:E.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:E.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:E.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:E.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,a),s=-1,u=t.charset;if(t.charsetSentinel)for(n=0;n<i.length;++n)0===i[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[n]?u="utf-8":"utf8=%26%2310003%3B"===i[n]&&(u="iso-8859-1"),s=n,n=i.length);for(n=0;n<i.length;++n)if(n!==s){var l,c,p=i[n],f=p.indexOf("]="),h=-1===f?p.indexOf("="):f+1;-1===h?(l=t.decoder(p,E.decoder,u,"key"),c=t.strictNullHandling?null:""):(l=t.decoder(p.slice(0,h),E.decoder,u,"key"),c=d.maybeMap(D(p.slice(h+1),t),(function(e){return t.decoder(e,E.decoder,u,"value")}))),c&&t.interpretNumericEntities&&"iso-8859-1"===u&&(c=S(c)),p.indexOf("[]=")>-1&&(c=x(c)?[c]:c),k.call(r,l)?r[l]=d.combine(r[l],c):r[l]=c}return r}(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(r),i=0;i<a.length;++i){var s=a[i],u=O(s,r[s],n,"string"==typeof e);o=d.merge(o,u,n)}return d.compact(o)}(a=a.replace(/^#?\/?/,""))).hasOwnProperty("error"))return r=je.buildResponse(n.error,n.error_description),n.state&&(r.state=n.state),t(r);if(!n.hasOwnProperty("access_token")&&!n.hasOwnProperty("id_token")&&!n.hasOwnProperty("refresh_token"))return t(null,null);var i=(this.baseOptions.responseType||e.responseType||"").split(" ");return i.length>0&&-1!==i.indexOf("token")&&!n.hasOwnProperty("access_token")?t(je.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):i.length>0&&-1!==i.indexOf("id_token")&&!n.hasOwnProperty("id_token")?t(je.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(e,n,t)},Ht.prototype.validateAuthenticationResponse=function(e,t,n){var r=this;e.__enableIdPInitiatedLogin=e.__enableIdPInitiatedLogin||e.__enableImpersonation;var o=t.state,a=this.transactionManager.getStoredTransaction(o),i=e.state||a&&a.state||null,s=i===o;if((o||i||!e.__enableIdPInitiatedLogin)&&!s)return n({error:"invalid_token",errorDescription:"`state` does not match."});var u=e.nonce||a&&a.nonce||null,l=a&&a.organization,c=e.state||a&&a.appState||null,d=function(e,o){return e?n(e):(a&&a.lastUsedConnection&&(o&&(i=o.sub),r.ssodataStorage.set(a.lastUsedConnection,i)),n(null,function(e,t,n){return{accessToken:e.access_token||null,idToken:e.id_token||null,idTokenPayload:n||null,appState:t||null,refreshToken:e.refresh_token||null,state:e.state||null,expiresIn:e.expires_in?parseInt(e.expires_in,10):null,tokenType:e.token_type||null,scope:e.scope||null}}(t,c,o)));var i};return t.id_token?this.validateToken(t.id_token,u,(function(e,n){if(!e){if(l){if(!n.org_id)return d(je.invalidToken("Organization Id (org_id) claim must be a string present in the ID token"));if(n.org_id!==l)return d(je.invalidToken('Organization Id (org_id) claim value mismatch in the ID token; expected "'+l+'", found "'+n.org_id+'"'))}return t.access_token&&n.at_hash?(new mt).validateAccessToken(t.access_token,"RS256",n.at_hash,(function(e){return e?d(je.invalidToken(e.message)):d(null,n)})):d(null,n)}if("invalid_token"!==e.error||e.errorDescription&&e.errorDescription.indexOf("Nonce (nonce) claim value mismatch in the ID token")>-1)return d(e);var o=(new mt).decode(t.id_token);return"HS256"!==o.header.alg?d(e):(o.payload.nonce||null)!==u?d({error:"invalid_token",errorDescription:'Nonce (nonce) claim value mismatch in the ID token; expected "'+u+'", found "'+o.payload.nonce+'"'}):t.access_token?r.client.userInfo(t.access_token,(function(e,t){return e?d(e):d(null,t)})):d({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can’t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})})):d(null,null)},Ht.prototype.validateToken=function(e,t,n){new mt({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||Pt}).verify(e,t,(function(e,t){if(e)return n(je.invalidToken(e.message));n(null,t)}))},Ht.prototype.renewAuth=function(e,t){var n=!!e.usePostMessage,r=e.postMessageDataType||!1,o=e.postMessageOrigin||ke.getWindow().origin,a=e.timeout,i=this,s=be.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(e);s.responseType=s.responseType||"token",s.responseMode=s.responseMode||"fragment",s=this.transactionManager.process(s),pe.check(s,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),s.prompt="none",s=be.blacklist(s,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),St.create({authenticationUrl:this.client.buildAuthorizeUrl(s),postMessageDataType:r,postMessageOrigin:o,timeout:a}).login(n,(function(e,n){if("object"==typeof n)return t(e,n);i.parseHash({hash:n},t)}))},Ht.prototype.checkSession=function(e,t){var n=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return"code"===n.responseType?t({error:"error",error_description:"responseType can't be `code`"}):(e.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(pe.check(n,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=be.blacklist(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,Pe(t,{forceLegacyError:!0,ignoreCasing:!0}))):t({error:"error",error_description:"redirectUri can't be empty"}))},Ht.prototype.changePassword=function(e,t){return this.client.dbConnection.changePassword(e,t)},Ht.prototype.passwordlessStart=function(e,t){var n=be.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e.authParams);return e.authParams=this.transactionManager.process(n),this.client.passwordless.start(e,t)},Ht.prototype.signup=function(e,t){return this.client.dbConnection.signup(e,t)},Ht.prototype.authorize=function(e){var t=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(e);pe.check(t,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(t=this.transactionManager.process(t)).scope=t.scope||"openid profile email",ke.redirect(this.client.buildAuthorizeUrl(t))},Ht.prototype.signupAndAuthorize=function(e,t){var n=this;return this.client.dbConnection.signup(be.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.realm=e.connection,e.username||(e.username=e.email),n.client.login(e,t)}))},Ht.prototype.login=function(e,t){var n=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(e);n=this.transactionManager.process(n),ke.getWindow().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,t)):this.crossOriginAuthentication.login(n,t)},Ht.prototype.passwordlessLogin=function(e,t){var n=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);if(n=this.transactionManager.process(n),ke.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(n,t);else{var r=be.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},be.blacklist(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,t)}},Ht.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},Ht.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},Ht.prototype.logout=function(e){ke.redirect(this.client.buildLogoutUrl(e))},Ht.prototype.passwordlessVerify=function(e,t){var n=this,r=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);return pe.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,(function(o){if(o)return t(o);function a(){ke.redirect(n.client.passwordless.buildVerifyUrl(r))}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){a()}));a()}))},Ht.prototype.renderCaptcha=function(e,t,n){return jt(this.client,e,t,n)},It.prototype.buildVerifyUrl=function(e){var t,n;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),t=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(e),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=be.toSnakeCase(t,["auth0Client"]),n=Y(t),i(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},It.prototype.start=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(e){return"code"===e.send||!e.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(e){return"link"===e.send||!e.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"passwordless","start"),(r=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(e)).scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.authParams.scope||r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.authParams.redirectUri||r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.authParams.responseType||r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=be.toSnakeCase(r,["auth0Client","authParams"]),this.request.post(n).send(r).end(Pe(t))},It.prototype.verify=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),r=be.pick(e,["connection","verificationCode","phoneNumber","email","auth0Client"]),r=be.toSnakeCase(r,["auth0Client"]),n=i(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(Pe(t))},Nt.prototype.signup=function(e,t){var n,r,o;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"dbconnections","signup"),o=(r=be.merge(this.baseOptions,["clientID","state"]).with(e)).user_metadata||r.userMetadata,r=be.blacklist(r,["scope","userMetadata","user_metadata"]),r=be.toSnakeCase(r,["auth0Client"]),o&&(r.user_metadata=o),this.request.post(n).send(r).end(Pe(t))},Nt.prototype.changePassword=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"dbconnections","change_password"),r=be.merge(this.baseOptions,["clientID"]).with(e,["email","connection"]),r=be.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Pe(t))},Rt.prototype.buildAuthorizeUrl=function(e){var t,n;return pe.check(e,{type:"object",message:"options parameter is not valid"}),t=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(e),pe.check(t,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(e){return-1===e.responseType.indexOf("code")&&-1!==e.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t.connection_scope&&pe.isArray(t.connection_scope)&&(t.connection_scope=t.connection_scope.join(",")),t=be.blacklist(t,["username","popupOptions","domain","tenant","timeout","appState"]),t=be.toSnakeCase(t,["auth0Client"]),t=Re(this.warn,t),n=Y(t),i(this.baseOptions.rootUrl,"authorize","?"+n)},Rt.prototype.buildLogoutUrl=function(e){var t,n;return pe.check(e,{optional:!0,type:"object",message:"options parameter is not valid"}),t=be.merge(this.baseOptions,["clientID"]).with(e||{}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=be.toSnakeCase(t,["auth0Client","returnTo"]),n=Y(be.blacklist(t,["federated"])),e&&void 0!==e.federated&&!1!==e.federated&&"false"!==e.federated&&(n+="&federated"),i(this.baseOptions.rootUrl,"v2","logout","?"+n)},Rt.prototype.loginWithDefaultDirectory=function(e,t){return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="password",this.oauthToken(e,t)},Rt.prototype.login=function(e,t){return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(e,t)},Rt.prototype.oauthToken=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"oauth","token"),r=be.merge(this.baseOptions,["clientID","scope","audience"]).with(e),pe.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=be.toSnakeCase(r,["auth0Client"]),r=Ne(this.warn,r),this.request.post(n).send(r).end(Pe(t))},Rt.prototype.loginWithResourceOwner=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"oauth","ro"),r=be.merge(this.baseOptions,["clientID","scope"]).with(e,["username","password","scope","connection","device"]),(r=be.toSnakeCase(r,["auth0Client"])).grant_type=r.grant_type||"password",this.request.post(n).send(r).end(Pe(t))},Rt.prototype.getSSOData=function(e,t){if(this.auth0||(this.auth0=new Ht(this.baseOptions)),ke.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(e,t);"function"==typeof e&&(t=e),pe.check(t,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},(function(e,o){return e?"login_required"===e.error?t(null,{sso:!1}):("consent_required"===e.error&&(e.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),t(e,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==o.idTokenPayload.sub?t(e,{sso:!1}):t(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:o.idTokenPayload.sub,lastUsedUsername:o.idTokenPayload.email||o.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})}))},Rt.prototype.userInfo=function(e,t){var n;return pe.check(e,{type:"string",message:"accessToken parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+e).end(Pe(t,{ignoreCasing:!0}))},Rt.prototype.getChallenge=function(e){if(pe.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=i(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(Pe(e,{ignoreCasing:!0}))},Rt.prototype.delegation=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"delegation"),r=be.merge(this.baseOptions,["clientID"]).with(e),r=be.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Pe(t))},Rt.prototype.getUserCountry=function(e){var t;return pe.check(e,{type:"function",message:"cb parameter is not valid"}),t=i(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(t).end(Pe(e))},Ft.prototype.getUser=function(e,t){var n;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"users",e),this.request.get(n).end(Pe(t,{ignoreCasing:!0}))},Ft.prototype.patchUserMetadata=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"object",message:"userMetadata parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=i(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send({user_metadata:t}).end(Pe(n,{ignoreCasing:!0}))},Ft.prototype.patchUserAttributes=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"object",message:"user parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=i(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send(t).end(Pe(n,{ignoreCasing:!0}))},Ft.prototype.linkUser=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"string",message:"secondaryUserToken parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=i(this.baseOptions.rootUrl,"users",e,"identities"),this.request.post(r).send({link_with:t}).end(Pe(n,{ignoreCasing:!0}))};var zt={Authentication:Rt,Management:Ft,WebAuth:Ht,version:se};t.default=zt}.call(this,n(38),n(343))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var u,l=[],c=!1,d=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(345),s=n(26),u=n(28),l=n(9),c=n(10),d=n(39),p=n(40),f=function(e){function t(n){var r=e.call(this,n)||this;return r.componentDidMount=function(){var e=r.props,t=e.auth0ClientId,n=e.auth0Hash,o=e.onAuthenticated,a=e.baseUrl;u.default.bindToClient(t),n?u.default.parseIdFromHash(n).then((function(e){s.default.getAccessData(e.idToken,a).then((function(t){r.props.login(e),r.props.cacheAccessData(t),s.default.buildFreshSession(e,t),o()})).catch((function(e){u.default.login()}))})).catch((function(e){u.default.login()})):u.default.login()},r.render=function(){return a.createElement("div",{className:"auth-gate"},a.createElement(i.default,{color:t.LOADER_COLOR}))},r}return o(t,e),t.LOADER_COLOR="#2d8ceb",t}(a.PureComponent);t.default=l.connect(null,(function(e){return c.bindActionCreators({login:d.login,cacheAccessData:p.cacheAccessData},e)}))(f)},function(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,u,l=i(n(0)),c=n(530),d=n(348),p=c.keyframes(s||(s=o(["\n 0% {transform: scaley(1.0)}\n 50% {transform: scaley(0.4)}\n 100% {transform: scaley(1.0)}\n"],["\n 0% {transform: scaley(1.0)}\n 50% {transform: scaley(0.4)}\n 100% {transform: scaley(1.0)}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,a=n.width,i=n.height,s=n.margin,l=n.radius,d=n.widthUnit,f=n.heightUnit,h=n.radiusUnit;return c.css(u||(u=o(["\n background-color: ",";\n width: ",";\n height: ",";\n margin: ",";\n border-radius: ",";\n display: inline-block;\n animation: "," 1s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation-fill-mode: both;\n "],["\n background-color: ",";\n width: ",";\n height: ",";\n margin: ",";\n border-radius: ",";\n display: inline-block;\n animation: "," 1s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation-fill-mode: both;\n "])),r,""+a+d,""+i+f,s,""+l+h,p,.1*e)},t}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[n]},c.jsx("div",{css:this.style(1)}),c.jsx("div",{css:this.style(2)}),c.jsx("div",{css:this.style(3)}),c.jsx("div",{css:this.style(4)}),c.jsx("div",{css:this.style(5)})):null},t.defaultProps=d.heightWidthRadiusDefaults(35,4,2),t}(l.PureComponent);t.default=f},function(e,t,n){var r=n(347);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(349)),r(n(350))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=((r={}).loading=!0,r.color="#000000",r.css={},r);t.sizeDefaults=function(e){return Object.assign({},o,function(e){var t;return(t={}).size=e,t.sizeUnit="px",t}(e))},t.sizeMarginDefaults=function(e){var n;return Object.assign({},t.sizeDefaults(e),((n={}).margin="2px",n))},t.heightWidthDefaults=function(e,t){return Object.assign({},o,function(e,t){var n;return(n={}).height=e,n.heightUnit="px",n.width=t,n.widthUnit="px",n}(e,t))},t.heightWidthRadiusDefaults=function(e,n,r){var o;return void 0===r&&(r=2),Object.assign({},t.heightWidthDefaults(e,n),((o={}).radius=r,o.radiusUnit="px",o.margin="2px",o))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.maroon="#800000",e.red="#FF0000",e.orange="#FFA500",e.yellow="#FFFF00",e.olive="#808000",e.green="#008000",e.purple="#800080",e.fuchsia="#FF00FF",e.lime="#00FF00",e.teal="#008080",e.aqua="#00FFFF",e.blue="#0000FF",e.navy="#000080",e.black="#000000",e.gray="#808080",e.silver="#C0C0C0",e.white="#FFFFFF"}(r||(r={})),t.calculateRgba=function(e,t){if(Object.keys(r).includes(e)&&(e=r[e]),"#"===e[0]&&(e=e.slice(1)),3===e.length){var n="";e.split("").forEach((function(e){n+=e,n+=e})),e=n}return"rgba("+e.match(/.{2}/g).map((function(e){return parseInt(e,16)})).join(", ")+", "+t+")"}},function(e,t){e.exports=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var a,i=n(0),s=n(353),u=n(21),l=n(4),c=n(354),d=n(355),p=function(e){return i.createElement("div",{className:"ip-table-loader"},i.createElement(u.default,null))},f=function(e){return i.createElement("div",{className:"ip-table-empty"},i.createElement("span",{className:"empty-message"},l.ICON_EXCLAIMATION_TRIANGLE," ",e.copy||"No Data Found"))},h=function(e){[32,37,38,39,40].indexOf(e.keyCode)>-1&&e.preventDefault()};t.default=function(e){var t=i.useRef(null),n=i.useRef(null),u=o(i.useState(!1),2),m=u[0],_=u[1],y=o(i.useState([]),2),g=y[0],v=y[1],b=o(i.useState([]),2),w=b[0],M=b[1],L=Array.isArray(e.hiddenColumns)?e.hiddenColumns:[],T=Number.isInteger(e.currentPage)&&"function"==typeof e.onPage,k="function"==typeof e.onSort&&void 0!==e.sortBy,x="function"==typeof e.renderPivotComponent?e.renderPivotComponent:function(){return null},E="function"==typeof e.onRowDoubleClick,S={hiddenColumns:L,sortBy:k?e.sortBy:[],pageIndex:T?e.currentPage-1:void 0,pageSize:e.itemsPerPage,autoResetExpanded:!1},D=c.useTable({columns:w,data:g,manualSortBy:k,manualPagination:T,initialState:S,manualFilters:!0,disableMultiSorting:!0,autoResetExpanded:!1,disableSortRemove:k,pageCount:e.totalPages,pageSize:e.itemsPerPage},c.useFlexLayout,c.useFilters,c.useSortBy,c.useExpanded,c.usePagination,c.useResizeColumns),O=D.getTableProps,Y=D.getTableBodyProps,C=D.headerGroups,A=D.page,j=D.rows,P=D.prepareRow,H=D.canPreviousPage,I=D.canNextPage,N=D.pageOptions,R=D.pageCount,F=D.gotoPage,z=D.nextPage,U=D.previousPage,W=D.setPageSize,B=D.setHiddenColumns,V=D.visibleColumns,q=D.totalColumnsWidth,G=D.toggleAllRowsExpanded,J=D.state,K=J.pageIndex,$=J.pageSize,X=J.sortBy,Z=T?j:A,Q=e.hidePaginator?"hide-paginator":"",ee=t.current&&q>t.current.clientWidth?"horizontal-scroll":"",te=e.tightRows?"tight-rows":"";return i.useEffect((function(){return _(!0)}),[]),i.useEffect((function(){var t,n;M((t=e.columns,Array.isArray(t)?t:!Array.isArray(t)&&"object"==typeof t&&(n=Object.keys(t)).length>0?n.map((function(e){return r(r({},t[e]),{accessor:e})})):[]))}),[e.columns]),i.useEffect((function(){m&&Array.isArray(e.hiddenColumns)&&B(e.hiddenColumns)}),[e.hiddenColumns]),i.useEffect((function(){Array.isArray(e.data)&&v(e.data)}),[e.data]),i.useEffect((function(){m&&T&&G(!1)}),[e.currentPage]),i.useEffect((function(){m&&k&&e.onSort(X)}),[X]),i.createElement("section",{ref:t,className:"ip-table-wrapper",tabIndex:e.disableKeyScroll?0:void 0,onKeyDown:e.disableKeyScroll?h:null},e.showInterstitial&&i.createElement(p,null),m&&!e.showInterstitial&&0===g.length&&i.createElement(f,{copy:e.noDataText}),i.createElement("table",r({},O(),{className:"ip-table "+ee+" "+Q+" "+te}),i.createElement("thead",{className:"ip-table-head"},C.map((function(e){return i.createElement(i.Fragment,{key:"head-fragment"},i.createElement("tr",r({},e.getHeaderGroupProps(),{className:"ip-table-head-row"}),e.headers.map((function(e){var t=e.hasOwnProperty("Search"),n=e.getSortByToggleProps(),o=i.createElement("span",{className:"sort-status"},e.isSorted?e.isSortedDesc?l.ICON_CHEVRON_DOWN:l.ICON_CHEVRON_UP:null);return i.createElement("th",r({},e.getHeaderProps(),{className:"ip-table-header "+(e.canSort?"ip-sortable":"")}),!t&&i.createElement("div",r({},n,{className:"filterable-cell-wrapper"}),e.render("Header"),o),t&&i.createElement("div",{className:"filterable-cell-wrapper"},i.createElement("span",r({},n,{className:"searchable-sort-area"}),e.render("Header"),o),e.hasOwnProperty("Search")&&e.render("Search")),e.canResize&&i.createElement("div",r({},e.getResizerProps(),{className:"ip-table-resizer "+(e.isResizing?"resizing":"")})))}))),e.headers.some((function(e){return e.hasOwnProperty("Filter")}))&&i.createElement("tr",r({},e.getHeaderGroupProps({key:"filters-row"})),e.headers.map((function(e,t){return i.createElement("th",r({},e.getHeaderProps({key:"filter-"+t}),{key:"filter-col-"+t,className:"ip-table-filter"}),e.canFilter&&e.Filter?e.render("Filter"):null)}))))}))),i.createElement("tbody",r({},Y(),{className:"ip-table-body"}),Z.map((function(t,o){var s,u="";e.highlightBy&&t.original.hasOwnProperty(e.highlightBy.key)&&t.original[e.highlightBy.key]===e.highlightBy.value&&(u="selected",s=n),P(t);var l=t.getRowProps();l.className="ip-table-row "+u,l.onClick=function(n){var r=function(){"function"==typeof e.onRowClick&&e.onRowClick(t)};E||r(),1===n.detail&&E&&(a=window.setTimeout(r,200))},l.onDoubleClick=function(n){clearTimeout(a),E&&e.onRowDoubleClick(t)};var c=t.cells.map((function(e){return i.createElement("td",r({},e.getCellProps(),{className:("ip-table-col "+(e.column.overflowVisible?"overflow-visible":"")).trim()}),e.render("Cell"))}));return i.createElement(i.Fragment,{key:"row-"+o},e.dnd&&i.createElement(d.default,{rowProps:l,rowRef:s,key:"row-"+o,row:t,dndType:e.dndType,dndName:e.dndName},c),!e.dnd&&i.createElement("tr",r({key:"row-"+o,ref:s},l),c),t.isExpanded&&i.createElement("tr",r({},t.getRowProps({key:"pivot-row"}),{className:"ip-pivot-row"}),i.createElement("td",{className:"ip-pivot-col "+u,colSpan:V.length},x(t))))})))),!e.hidePaginator&&i.createElement(s.default,r({},{totalItems:e.totalItems,pageIndex:e.currentPage?e.currentPage:K,manualPagination:T,pageSize:$,pageCount:R,pageOptions:N,canNextPage:T?e.currentPage+1<=e.totalPages:I,canPreviousPage:T?e.currentPage-1>=1:H,gotoPage:T?e.onPage:F,setPageSize:W,nextPage:T?function(){return e.onPage(e.currentPage+1,$)}:z,previousPage:T?function(){return e.onPage(e.currentPage-1,$)}:U})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=n(5),i=n(4);t.default=function(e){e.manualPagination;var t=e.pageCount,n=e.pageIndex,s=e.pageSize,u=(e.pageOptions,e.totalItems),l=e.canPreviousPage,c=e.canNextPage,d=e.gotoPage,p=e.previousPage,f=e.nextPage;e.setPageSize;return o.createElement("section",{className:"ip-table-pagination"},o.createElement("span",null,o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to first page",disabled:!l,onClick:function(){return d(1,s)}},i.ICON_ANGLE_DOUBLE_LEFT),o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to previous page",disabled:!l,onClick:function(){return p()}},i.ICON_ANGLE_LEFT),o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to next page",disabled:!c,onClick:function(){return f()}},i.ICON_ANGLE_RIGHT),o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to last page",disabled:!c,onClick:function(){return d(t,s)}},i.ICON_ANGLE_DOUBLE_RIGHT),"  ",o.createElement("span",null,"Page  ",o.createElement("strong",null,n," of ",t),"  "),o.createElement("span",null,"Go to page   ",o.createElement("input",{className:"paginator-input",type:"number",placeholder:n,onChange:function(e){var n,o=e.target.value,a=Number(o);clearTimeout(r),!o||a<1||a>t||(a>=1&&a<=t&&(n=a),r=window.setTimeout((function(){return d(n,s)}),300))}})),"  "),o.createElement("span",{className:"total-assets"},"Total  ",o.createElement("strong",null,u||0)))}},function(e,t){e.exports=c},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(61),s=n(356);t.default=function(e){var t=e.dndType,n=e.dndName,u=e.row,l=o(i.useDrag({type:t,item:{name:n,rowData:u.original,type:t}}),2),c=(l[0],l[1]);return a.createElement("tr",r({},e.rowProps,{ref:s.default([c,e.rowRef])}),e.children)}},function(e,t,n){"use strict";n.r(t),t.default=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(29),u=n(4),l=function(e){function t(n){var r=e.call(this,n)||this;return r.render=function(){for(var e=r.props,n=e.page,o=e.totalPages,l=e.totalItems,c=Number.isInteger(o),d=Number.isInteger(o)&&o>1,p=!c||n-1==0,f=!c||n+1>o,h=Math.max(n-t.DEFAULT_STEP,1),m=Math.min(n+t.DEFAULT_STEP,o),_=[],y=h;y<=m;y++)_.push(y);return a.createElement("div",{className:"paginator"},a.createElement("div",{className:"pagination-controls"},a.createElement("span",{className:"paging-button-group"},a.createElement(i.default,{color:"secondary",size:"small",disabled:p,onClick:function(){return r.props.onPage(1)}},u.ICON_ANGLE_DOUBLE_LEFT),a.createElement(i.default,{color:"secondary",size:"small",disabled:p,onClick:function(){return r.props.onPage(n-1)}},u.ICON_ANGLE_LEFT)),a.createElement("div",{className:"jump-to-wrapper"},a.createElement(s.default,{label:"Page",value:n,disable:!d,options:_,onChange:function(e){return r.props.onPage(parseInt(e,10))}})),a.createElement("span",{className:"paging-button-group"},a.createElement(i.default,{color:"secondary",size:"small",disabled:f,onClick:function(){return r.props.onPage(n+1)}},u.ICON_ANGLE_RIGHT),a.createElement(i.default,{color:"secondary",size:"small",disabled:f,onClick:function(){return r.props.onPage(o)}},u.ICON_ANGLE_DOUBLE_RIGHT))),a.createElement("div",{className:"total-assets"},"Total: ",l||t.DEFAULT_TOTAL))},r}return o(t,e),t.DEFAULT_TOTAL=0,t.DEFAULT_STEP=25,t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(4),u=function(e){function t(t){var n=e.call(this,t)||this;return n.closeStyles={position:"absolute",right:"0px",top:"0px"},n.evtHandlers={onClose:function(e){return n.onClose(e)}},n}return o(t,e),t.prototype.onClose=function(e){(0,this.props.onRequestClose)(e)},t.prototype.render=function(){var e=this.props,t=e.isOpen,n=(e.children,e.style),r=e.wrapperStyle;return t?a.createElement("div",{className:"modal",style:r},a.createElement("div",{className:"modal-bg",onClick:this.evtHandlers.onClose}),a.createElement("div",{className:"modal-container",style:n},a.createElement("div",{className:"modal-content"},this.props.children),a.createElement(i.default,{onClick:this.evtHandlers.onClose,customStyles:this.closeStyles},s.ICON_TIMES))):null},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(100),u=n(96),l=n(97),c=n(5),d=n(4),p=function(e){function t(t){var n=e.call(this,t)||this;return n.headerRef=i.createRef(),n.state={allowableTabsInView:0,isMenuOpen:!1},n}return o(t,e),t.prototype.componentDidMount=function(){var e=Math.floor(this.allowableNumOfTabs());this.setState({allowableTabsInView:e})},t.prototype.componentDidUpdate=function(e){var t=Math.floor(this.allowableNumOfTabs());this.setState({allowableTabsInView:t})},t.prototype.allowableNumOfTabs=function(){var e=this.props,t=e.options,n=e.tabPadding,r=0,o=this.headerRef.current;if(o){for(var a=o.offsetWidth,i=0;i<t.length;i++){var s=t[i],u=s.canClose||s.menuButtons?20:0,l=document.createElement("div");if(l.className="tab-header-option",l.innerHTML=s.label,o.appendChild(l),r+=l.offsetWidth+u,o.removeChild(l),l=null,r>=a-n-25)return i}return t.length}},t.prototype.renderContent=function(){var e,t,n,r,o=this.props,s=o.options,u=o.activeTab,l=o.keepMounted,c=o.width,d=o.height;if(l){var p=[];try{for(var f=a(s),h=f.next();!h.done;h=f.next()){var m=(v=h.value).key===u,_=i.cloneElement(v.content,{active:m,width:c,height:d});p.push(_)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p.length>0?p:null}try{for(var y=a(s),g=y.next();!g.done;g=y.next()){var v;if((v=g.value).key===u||!u)return v.content}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return null},t.prototype.renderHeader=function(){for(var e=this,t=this.props,n=t.options,r=t.activeTab,o=[],a=[],s=!1,p=function(t){var u=n[t],p=u.canClose,h=u.key,m=u.label,_=u.menuButtons,y=p?i.createElement(c.default,{style:"subtle",size:"small",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.props.onClose(h)}},d.ICON_TIMES):null,g=_||null,v=h===r?"active":"";t<f.state.allowableTabsInView?o.push(i.createElement("div",{className:"tab-header-option "+v,onClick:function(){return e.props.onChange(h)},key:h},m,y,g)):(r!==h||s||(s=!0),a.push(i.createElement(l.default,{key:h,label:i.createElement("span",null,m,y,g),onClick:function(t){e.props.onChange(h)},active:r===h})))},f=this,h=0;h<n.length;h++)p(h);var m=i.createElement(c.default,{size:"large",style:"subtle",color:s?"primary":null},d.ICON_BARS);return i.createElement(i.Fragment,null,o,a.length>0?i.createElement("span",{className:"tab-header-menu"},i.createElement(u.default,{position:"left",items:a,onClick:function(t){e.setState({isMenuOpen:t})},isOpen:this.state.isMenuOpen,button:m})):null)},t.prototype.render=function(){return i.createElement("div",{className:"tabs"},i.createElement("div",{ref:this.headerRef,className:"tab-header"},this.renderHeader()),i.createElement("div",{className:"tab-content"},this.renderContent()))},t}(i.PureComponent);t.default=s.withResizeDetector(p)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(62),l=n(5),c=n(11),d=n(99),p=n(8),f=n(4),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={textInputValue:""},n.inputRef=s.createRef(),u.default.filter=function(e){return p.filterHotkeys(e)},n.submitHandler=function(){return n.submitOption()},n}return o(t,e),t.prototype.deleteOption=function(e){var t=i([],a(this.props.options));t.splice(e,1),this.props.onChange(t)},t.prototype.componentWillUnmount=function(){u.default.unbind("enter",this.submitHandler)},t.prototype.inputBlur=function(e){u.default.unbind("enter",this.submitHandler),this.props.onBlur&&this.props.onBlur()},t.prototype.inputChanged=function(e){this.setState({textInputValue:e.target.value})},t.prototype.inputFocus=function(e){u.default("enter",this.submitHandler),this.props.onFocus&&this.props.onFocus()},t.prototype.submitOption=function(){var e=this,t=this.state.textInputValue,n=this.props.onError;if(""!==t){var r=void 0;-1===(r=this.props.options?i([],a(this.props.options)):[]).indexOf(t)?(r.push(t),this.props.onChange(r),this.setState({textInputValue:""},(function(){var t=e.inputRef.current;t&&t.focus()}))):n&&this.props.onError('"'+t+'" already exists in the list.')}else n&&this.props.onError("Can not add an empty item to the list")},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.options,o=t.placeholder,a=t.disabled,i=t.width,u=t.tooltip,l=(t.tooltipAdd,t.info),p=t.labelPosition,f=this.state.textInputValue;return s.createElement(c.default,{customClass:"list-field",label:n,tooltip:u,buttons:this.renderButtons(),info:l,labelPosition:p,width:i},s.createElement("input",{type:"text",placeholder:o,value:f,ref:this.inputRef,disabled:a,onChange:function(t){return e.inputChanged(t)},onFocus:function(t){return e.inputFocus(t)},onBlur:function(t){return e.inputBlur(t)}}),s.createElement(d.default,{items:r,removable:!0,onRemove:function(t){return e.deleteOption(t)}}))},t.prototype.renderButtons=function(){var e=this.props,t=e.buttons,n=e.tooltipAdd,r=t?i([],a(t)):[];return r.push(s.createElement(l.default,{key:"btn-submit",style:"subtle",tooltip:n,color:"primary",onClick:this.submitHandler},f.ICON_PLUS)),r},t}(s.PureComponent);t.default=h},function(e,t){e.exports=d},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(363),i=n(37),s=n(95),u=n(58),l=function(){function e(){}return e.DEFAULT_TOAST_CONFIG={hideAfter:3,position:"bottom-right"},e.INFO_STYLE={bar:{size:"2px",style:"solid",color:"#56B05E"},renderIcon:function(){return o.createElement(i.FontAwesomeIcon,{icon:s.faInfoCircle,color:"#56B05E"})}},e.ERROR_STYLE={bar:{size:"2px",style:"solid",color:"#AF1126"},renderIcon:function(){return o.createElement(i.FontAwesomeIcon,{icon:u.faExclamationTriangle,color:"#AF1126"})}},e.emit=function(t,n){switch(t){case"info":return void a.default.info(n,r(r({},e.DEFAULT_TOAST_CONFIG),e.INFO_STYLE));case"error":return void a.default.error(n,r(r({},e.DEFAULT_TOAST_CONFIG),e.ERROR_STYLE));default:return}},e}();t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"Toast",(function(){return d}));var r=n(0),o=n.n(r),a=n(35),i=n.n(a),s=n(2),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var l={success:function(e){return o.a.createElement("svg",u({viewBox:"0 0 426.667 426.667",width:18,height:18},e),o.a.createElement("path",{d:"M213.333 0C95.518 0 0 95.514 0 213.333s95.518 213.333 213.333 213.333c117.828 0 213.333-95.514 213.333-213.333S331.157 0 213.333 0zm-39.134 322.918l-93.935-93.931 31.309-31.309 62.626 62.622 140.894-140.898 31.309 31.309-172.203 172.207z",fill:"#6ac259"}))},warn:function(e){return o.a.createElement("svg",u({viewBox:"0 0 310.285 310.285",width:18,height:18},e),o.a.createElement("path",{d:"M264.845 45.441C235.542 16.139 196.583 0 155.142 0 113.702 0 74.743 16.139 45.44 45.441 16.138 74.743 0 113.703 0 155.144c0 41.439 16.138 80.399 45.44 109.701 29.303 29.303 68.262 45.44 109.702 45.44s80.399-16.138 109.702-45.44c29.303-29.302 45.44-68.262 45.44-109.701.001-41.441-16.137-80.401-45.439-109.703zm-132.673 3.895a12.587 12.587 0 0 1 9.119-3.873h28.04c3.482 0 6.72 1.403 9.114 3.888 2.395 2.485 3.643 5.804 3.514 9.284l-4.634 104.895c-.263 7.102-6.26 12.933-13.368 12.933H146.33c-7.112 0-13.099-5.839-13.345-12.945L128.64 58.594c-.121-3.48 1.133-6.773 3.532-9.258zm23.306 219.444c-16.266 0-28.532-12.844-28.532-29.876 0-17.223 12.122-30.211 28.196-30.211 16.602 0 28.196 12.423 28.196 30.211.001 17.591-11.456 29.876-27.86 29.876z",fill:"#FFDA44"}))},loading:function(e){return o.a.createElement("div",u({className:"ct-icon-loading"},e))},info:function(e){return o.a.createElement("svg",u({viewBox:"0 0 23.625 23.625",width:18,height:18},e),o.a.createElement("path",{d:"M11.812 0C5.289 0 0 5.289 0 11.812s5.289 11.813 11.812 11.813 11.813-5.29 11.813-11.813S18.335 0 11.812 0zm2.459 18.307c-.608.24-1.092.422-1.455.548a3.838 3.838 0 0 1-1.262.189c-.736 0-1.309-.18-1.717-.539s-.611-.814-.611-1.367c0-.215.015-.435.045-.659a8.23 8.23 0 0 1 .147-.759l.761-2.688c.067-.258.125-.503.171-.731.046-.23.068-.441.068-.633 0-.342-.071-.582-.212-.717-.143-.135-.412-.201-.813-.201-.196 0-.398.029-.605.09-.205.063-.383.12-.529.176l.201-.828c.498-.203.975-.377 1.43-.521a4.225 4.225 0 0 1 1.29-.218c.731 0 1.295.178 1.692.53.395.353.594.812.594 1.376 0 .117-.014.323-.041.617a4.129 4.129 0 0 1-.152.811l-.757 2.68a7.582 7.582 0 0 0-.167.736 3.892 3.892 0 0 0-.073.626c0 .356.079.599.239.728.158.129.435.194.827.194.185 0 .392-.033.626-.097.232-.064.4-.121.506-.17l-.203.827zm-.134-10.878a1.807 1.807 0 0 1-1.275.492c-.496 0-.924-.164-1.28-.492a1.57 1.57 0 0 1-.533-1.193c0-.465.18-.865.533-1.196a1.812 1.812 0 0 1 1.28-.497c.497 0 .923.165 1.275.497.353.331.53.731.53 1.196 0 .467-.177.865-.53 1.193z",fill:"#006DF0"}))},error:function(e){return o.a.createElement("svg",u({viewBox:"0 0 51.976 51.976",width:18,height:18},e),o.a.createElement("path",{d:"M44.373 7.603c-10.137-10.137-26.632-10.138-36.77 0-10.138 10.138-10.137 26.632 0 36.77s26.632 10.138 36.77 0c10.137-10.138 10.137-26.633 0-36.77zm-8.132 28.638a2 2 0 0 1-2.828 0l-7.425-7.425-7.778 7.778a2 2 0 1 1-2.828-2.828l7.778-7.778-7.425-7.425a2 2 0 1 1 2.828-2.828l7.425 7.425 7.071-7.071a2 2 0 1 1 2.828 2.828l-7.071 7.071 7.425 7.425a2 2 0 0 1 0 2.828z",fill:"#D80027"}))}},c={success:"#6EC05F",info:"#1271EC",warn:"#FED953",error:"#D60A2E",loading:"#0088ff"},d=function(e){var t,n,a,i,s="margin"+((e.position||"top-center").includes("bottom")?"Bottom":"Top"),d=["ct-toast",e.onClick?" ct-cursor-pointer":"","ct-toast-"+e.type].join(" "),p=((null===(n=e.bar)||void 0===n?void 0:n.size)||"3px")+" "+((null===(a=e.bar)||void 0===a?void 0:a.style)||"solid")+" "+((null===(i=e.bar)||void 0===i?void 0:i.color)||c[e.type]),f=l[e.type],h=Object(r.useState)(((t={opacity:0})[s]=-15,t)),m=h[0],_=h[1],y=u({paddingLeft:e.heading?25:void 0,minHeight:e.heading?50:void 0,borderLeft:p},m),g=function(){var t;_(((t={opacity:0})[s]="-15px",t)),setTimeout((function(){e.onHide(e.id,e.position)}),300)};Object(r.useEffect)((function(){var t,n=setTimeout((function(){var e;_(((e={opacity:1})[s]="15px",e))}),50);return 0!==e.hideAfter&&(t=setTimeout((function(){g()}),1e3*e.hideAfter)),function(){clearTimeout(n),t&&clearTimeout(t)}}),[]),Object(r.useEffect)((function(){e.show||g()}),[e.show]);var v={tabIndex:0,onClick:e.onClick,onKeyPress:function(t){13===t.keyCode&&e.onClick(t)}};return o.a.createElement("div",u({className:d,role:e.role?e.role:"status",style:y},e.onClick?v:{}),e.renderIcon?e.renderIcon():o.a.createElement(f,null),o.a.createElement("div",{className:e.heading?"ct-text-group-heading":"ct-text-group"},e.heading&&o.a.createElement("h4",{className:"ct-heading"},e.heading),o.a.createElement("div",{className:"ct-text"},e.text)))};d.propTypes={type:s.string.isRequired,text:Object(s.oneOfType)([s.string,s.node]).isRequired,show:s.bool,onHide:s.func,id:Object(s.oneOfType)([s.string,s.number]),hideAfter:s.number,heading:s.string,position:s.string,renderIcon:s.func,bar:Object(s.shape)({}),onClick:s.func,role:s.string},d.defaultProps={id:void 0,show:!0,onHide:void 0,hideAfter:3,heading:void 0,position:"top-center",renderIcon:void 0,bar:{},onClick:void 0,role:"status"};var p=function(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},f={topLeft:[],topCenter:[],topRight:[],bottomLeft:[],bottomCenter:[],bottomRight:[]},h=function(e){var t=e.toast,n=e.hiddenID,a=Object(r.useState)(f),i=a[0],s=a[1];Object(r.useEffect)((function(){t&&s((function(e){var n,r=p(t.position||"top-center");return u(u({},e),((n={})[r]=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}(e[r],[t]),n))}))}),[t]);var l=function(e,t){s((function(n){var r,o=p(t||"top-center");return u(u({},n),((r={})[o]=n[o].filter((function(t){return t.id!==e})),r))}))},c=["Left","Center","Right"];return o.a.createElement(o.a.Fragment,null,["top","bottom"].map((function(e){return o.a.createElement("div",{key:"row_"+e,className:"ct-row"},c.map((function(t){var r=""+e+t,a=["ct-group","bottom"===e?"ct-flex-bottom":""].join(" ");return o.a.createElement("div",{key:r,className:a},i[r].map((function(e){return o.a.createElement(d,u({key:r+"_"+e.id},e,{id:e.id,text:e.text,type:e.type,onClick:e.onClick,hideAfter:e.hideAfter,show:n!==e.id,onHide:l}))})))})))})))};h.propTypes={toast:Object(s.shape)({}),hiddenID:s.number},h.defaultProps={toast:void 0,hiddenID:void 0};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("#ct-container {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100vh;\n\ttop: 0px;\n\tleft: 0px;\n\tz-index: 2000;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tpointer-events: none;\n}\n\n.ct-row {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n\n.ct-group {\n\tflex: 1;\n\tmargin: 10px 20px;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n\n.ct-group:first-child {\n\talign-items: flex-start;\n}\n\n.ct-group:last-child {\n\talign-items: flex-end;\n}\n\n.ct-flex-bottom {\n\tjustify-content: flex-end;\n}\n\n.ct-toast {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tpadding: 12px 20px;\n\tbackground-color: #fff;\n\tbox-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n\tcolor: #000;\n\tborder-radius: 4px;\n\tmargin: 0px;\n\topacity: 1;\n\ttransition: 0.3s all ease-in-out;\n\tmin-height: 45px;\n\tpointer-events: all;\n}\n\n.ct-toast:focus {\n\toutline: none;\n}\n\n.ct-toast svg {\n\tmin-width: 18px;\n}\n\n.ct-cursor-pointer {\n\tcursor: pointer;\n}\n\n.ct-icon-loading {\n\tdisplay: inline-block;\n\twidth: 20px;\n\theight: 20px;\n}\n\n.ct-icon-loading:after {\n\tcontent: ' ';\n\tdisplay: block;\n\twidth: 14px;\n\theight: 14px;\n\tmargin: 1px;\n\tborder-radius: 50%;\n\tborder: 2px solid #0088ff;\n\tborder-color: #0088ff transparent #0088ff transparent;\n\tanimation: ct-icon-loading 1.2s linear infinite;\n}\n\n@keyframes ct-icon-loading {\n\t0% {\n\t\ttransform: rotate(0deg);\n\t}\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n.ct-text-group {\n\tmargin-left: 15px;\n}\n\n.ct-text-group-heading {\n\tmargin-left: 25px;\n}\n\n.ct-heading {\n\tfont-size: 18px;\n\tmargin: 0px;\n\tmargin-bottom: 5px;\n}\n\n.ct-text {\n\tfont-size: 14px;\n}\n\n@media (max-width: 768px) {\n\t.ct-row {\n\t\tjustify-content: flex-start;\n\t\tflex-direction: column;\n\t\tmargin: 7px 0px;\n\t}\n\n\t.ct-group {\n\t\tflex: none;\n\t\tmargin: 0px;\n\t}\n\n\t.ct-toast {\n\t\tmargin: 8px 15px;\n\t\twidth: initial;\n\t}\n}\n");var m=0,_=function(e,t){var n,r,a=document.getElementById((null===(n=t)||void 0===n?void 0:n.toastContainerID)||"ct-container");a||((a=document.createElement("div")).id="ct-container",document.body.appendChild(a)),m+=1;var s=1e3*(void 0===(null===(r=t)||void 0===r?void 0:r.hideAfter)?3:t.hideAfter),l=u({id:m,text:e},t);i.a.render(o.a.createElement(h,{toast:l}),a);var c=new Promise((function(e){setTimeout((function(){e()}),s)}));return c.hide=function(){i.a.render(o.a.createElement(h,{hiddenID:l.id}),a)},c};_.success=function(e,t){return _(e,u(u({},t),{type:"success"}))},_.warn=function(e,t){return _(e,u(u({},t),{type:"warn"}))},_.info=function(e,t){return _(e,u(u({},t),{type:"info"}))},_.error=function(e,t){return _(e,u(u({},t),{type:"error"}))},_.loading=function(e,t){return _(e,u(u({},t),{type:"loading"}))},t.default=_},function(e,t,n){"use strict";var r=n(365);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={tempValue:null},n}return o(t,e),t.prototype.componentWillUnmount=function(){clearTimeout(this.updateTimeout)},t.prototype.updateValue=function(e){this.props.onChange(e)},t.prototype.rangeInputChange=function(e){var t=this,n=e.target.value,r=parseFloat(n);clearTimeout(this.updateTimeout),this.setState({tempValue:r},(function(){t.updateTimeout=setTimeout((function(){t.updateValue(r),t.setState({tempValue:null})}),100)}))},t.prototype.numberInputChange=function(e){var t=this.props,n=t.min,r=t.max,o=e.target.value;(o=""===o?0:parseFloat(o))>=n&&o<=r&&this.updateValue(o)},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.width,o=t.min,s=t.max,u=t.step,l=t.defaultValue,c=t.value,d=t.tooltip,p=t.info,f=t.labelPosition,h=this.state.tempValue,m=null!==h?h:null==c?l:c;return a.createElement(i.default,{customClass:"slider-field",label:n,tooltip:d,info:p,labelPosition:f,width:r},a.createElement("input",{onChange:function(t){return e.rangeInputChange(t)},type:"range",min:o,max:s,value:m,step:u}),a.createElement("input",{className:"val",onChange:function(t){return e.numberInputChange(t)},type:"number",value:m}))},t}(a.PureComponent);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(368)),o=s(n(66)),a=s(n(380)),i=s(n(381));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,a.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=u},function(e,t,n){var r=n(18),o=n(12),a=n(15);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(31),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(372)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(18),o=n(15);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(18),o=n(68),a=n(15),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t,n){var r=n(71),o=n(378),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(107)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(109);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(18),o=n(72),a=n(15),i=Function.prototype,s=Object.prototype,u=i.toString,l=s.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},function(e,t,n){var r=n(110),o=n(382),a=n(440),i=n(12);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},function(e,t,n){var r=n(383),o=n(427),a=n(109),i=n(12),s=n(437);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(384),o=n(426),a=n(120);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(73),o=n(112);e.exports=function(e,t,n,a){var i=n.length,s=i,u=!a;if(null==e)return!s;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var c=(l=n[i])[0],d=e[c],p=l[1];if(u&&l[2]){if(void 0===d&&!(c in e))return!1}else{var f=new r;if(a)var h=a(d,p,c,e,t,f);if(!(void 0===h?o(p,d,3,a,f):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(45),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(45);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(45);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(45);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(44);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(44),o=n(75),a=n(76);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(108),o=n(396),a=n(22),i=n(111),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:s).test(i(e))}},function(e,t,n){var r,o=n(397),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(14)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(400),o=n(44),a=n(75);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(401),o=n(402),a=n(403),i=n(404),s=n(405);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(46);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(46),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(46),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(46);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(47);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(47);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(47);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(47);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(73),o=n(113),a=n(417),i=n(420),s=n(48),u=n(12),l=n(67),c=n(106),d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,h,m){var _=u(e),y=u(t),g=_?"[object Array]":s(e),v=y?"[object Array]":s(t),b=(g="[object Arguments]"==g?d:g)==d,w=(v="[object Arguments]"==v?d:v)==d,M=g==v;if(M&&l(e)){if(!l(t))return!1;_=!0,b=!1}if(M&&!b)return m||(m=new r),_||c(e)?o(e,t,n,f,h,m):a(e,t,g,n,f,h,m);if(!(1&n)){var L=b&&p.call(e,"__wrapped__"),T=w&&p.call(t,"__wrapped__");if(L||T){var k=L?e.value():e,x=T?t.value():t;return m||(m=new r),h(k,x,n,f,m)}}return!!M&&(m||(m=new r),i(e,t,n,f,h,m))}},function(e,t,n){var r=n(76),o=n(413),a=n(414);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(31),o=n(114),a=n(74),i=n(113),s=n(418),u=n(419),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=u),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var _=i(f(e),f(t),r,l,d,p);return p.delete(e),_;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(115),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var p=l[d];if(!(u?p in t:o.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var _=u;++d<c;){var y=e[p=l[d]],g=t[p];if(a)var v=u?a(g,y,p,t,e,s):a(y,g,p,e,t,s);if(!(void 0===v?y===g||i(y,g,n,a,s):v)){m=!1;break}_||(_="constructor"==p)}if(m&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t,n){var r=n(19)(n(14),"DataView");e.exports=r},function(e,t,n){var r=n(19)(n(14),"Promise");e.exports=r},function(e,t,n){var r=n(19)(n(14),"Set");e.exports=r},function(e,t,n){var r=n(19)(n(14),"WeakMap");e.exports=r},function(e,t,n){var r=n(119),o=n(32);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},function(e,t,n){var r=n(112),o=n(428),a=n(434),i=n(78),s=n(119),u=n(120),l=n(49);e.exports=function(e,t){return i(e)&&s(t)?u(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},function(e,t,n){var r=n(121);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(430),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(431);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(76);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(433);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(31),o=n(110),a=n(12),i=n(79),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(435),o=n(436);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(122),o=n(104),a=n(12),i=n(105),s=n(68),u=n(49);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,d=!1;++l<c;){var p=u(t[l]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&i(p,c)&&(a(e)||o(e))}},function(e,t,n){var r=n(438),o=n(439),a=n(78),i=n(49);e.exports=function(e){return a(e)?r(i(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(121);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(441),o=n(43);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},function(e,t,n){var r=n(102),o=n(442)(r);e.exports=o},function(e,t,n){var r=n(43);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&!1!==o(s[i],i,s););return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=i(n(66)),o=i(n(444)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function i(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],o[t])})),t})),n};t.default=s},function(e,t,n){var r=n(445);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(73),o=n(446),a=n(123),i=n(448),s=n(449),u=n(452),l=n(453),c=n(454),d=n(455),p=n(115),f=n(456),h=n(48),m=n(457),_=n(458),y=n(463),g=n(12),v=n(67),b=n(465),w=n(22),M=n(467),L=n(32),T=n(80),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,x,E,S,D){var O,Y=1&n,C=2&n,A=4&n;if(x&&(O=S?x(t,E,S,D):x(t)),void 0!==O)return O;if(!w(t))return t;var j=g(t);if(j){if(O=m(t),!Y)return l(t,O)}else{var P=h(t),H="[object Function]"==P||"[object GeneratorFunction]"==P;if(v(t))return u(t,Y);if("[object Object]"==P||"[object Arguments]"==P||H&&!S){if(O=C||H?{}:y(t),!Y)return C?d(t,s(O,t)):c(t,i(O,t))}else{if(!k[P])return S?t:{};O=_(t,P,Y)}}D||(D=new r);var I=D.get(t);if(I)return I;D.set(t,O),M(t)?t.forEach((function(r){O.add(e(r,n,x,r,t,D))})):b(t)&&t.forEach((function(r,o){O.set(o,e(r,n,x,o,t,D))}));var N=j?void 0:(A?C?f:p:C?T:L)(t);return o(N||t,(function(r,o){N&&(r=t[o=r]),a(O,o,e(r,n,x,o,t,D))})),O}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(19),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(50),o=n(32);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(50),o=n(80);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(22),o=n(71),a=n(451),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(14),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(42)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(50),o=n(77);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(50),o=n(125);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(116),o=n(125),a=n(80);e.exports=function(e){return r(e,a,o)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(81),o=n(459),a=n(460),i=n(461),s=n(462);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return a(e);case"[object Set]":return new u;case"[object Symbol]":return i(e)}}},function(e,t,n){var r=n(81);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(31),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},function(e,t,n){var r=n(81);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(464),o=n(72),a=n(71);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},function(e,t,n){var r=n(22),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r=n(466),o=n(69),a=n(70),i=a&&a.isMap,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(48),o=n(15);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(468),o=n(69),a=n(70),i=a&&a.isSet,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(48),o=n(15);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(66),a=(r=o)&&r.__esModule?r:{default:r},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},u=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=s[t];n?r=i({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),i=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;s(this,r);for(var c=arguments.length,d=Array(c),p=0;p<c;p++)d[p]=arguments[p];return a=l=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return i.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(e,o({},l.props,l.state)))},u(l,a)}return l(r,n),r}(i.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),i=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;s(this,r);for(var c=arguments.length,d=Array(c),p=0;p<c;p++)d[p]=arguments[p];return a=l=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return i.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(e,o({},l.props,l.state)))},u(l,a)}return l(r,n),r}(i.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t="string"==typeof e.className?e.className:"",n=e.isLoading?r.createElement("div",{className:"loading-bar"}):null,o=r.createElement("div",{className:"title"},e.title);return e.hasOwnProperty("tabs")&&Array.isArray(e.tabs)&&(o=e.tabs.map((function(t,n){return r.createElement("div",{key:n,className:"tab "+(e.activeTabName===t?"active":""),onClick:function(){return e.selectTab(t,n)}},t)}))),r.createElement("div",{className:"section "+t},r.createElement("div",{className:"section-header"},o,r.createElement("div",{className:"buttons"},e.buttons)),r.createElement("div",{className:"section-content"},e.children),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(8),a=r.memo((function(e){return r.createElement("div",null,o.formatDateDefault(e.cell.row.values.date_created))}));t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.HEADER_HEIGHT=t.PREVIEW_MAX_HEIGHT=t.PREVIEW_MAX_WIDTH=void 0;var i=n(0),s=n(89);t.PREVIEW_MAX_WIDTH=400,t.PREVIEW_MAX_HEIGHT=400,t.HEADER_HEIGHT=30;var u=function(e){function n(t){var n=e.call(this,t)||this;return n.iconRef=i.createRef(),n.evtHandlers={onClose:function(){return n.handleClose()},onClick:function(){return n.handlePreviewClick()}},n}return o(n,e),n.prototype.handleClose=function(){(0,this.props.onRequestClose)()},n.prototype.handlePreviewClick=function(){var e=this.props,t=e.onClick;e.showMedia||t()},n.prototype.render=function(){var e=this,n=function(n,r){if(e.iconRef.current){n||(n=t.PREVIEW_MAX_WIDTH),r||(r=t.PREVIEW_MAX_HEIGHT);var o=e.iconRef.current.getBoundingClientRect(),a=n/r,i=t.PREVIEW_MAX_WIDTH,s=i/a;s>t.PREVIEW_MAX_HEIGHT&&(i=(s=t.PREVIEW_MAX_HEIGHT)*a);var u=o.x+o.width-i,l=o.y+o.height-s-20;return u<0&&(u=o.x),l<t.HEADER_HEIGHT&&(l=o.y+20),{top:l,left:u,width:i,height:s,position:"absolute",zIndex:9e3}}},r=this.props,o=r.cell,u=r.showMedia;return i.createElement("div",{ref:this.iconRef,className:"asset-type-cell",onClick:this.evtHandlers.onClick},i.createElement(s.AssetsTypeIcon,{type:o.row.values.type}),o.row.values.type===s.ASSET_TYPES.IMAGE&&i.createElement(s.ImagePreview,{style:a({},n(o.row.original.width,o.row.original.height)),showMedia:u,url:o.row.original.url,onRequestClose:this.evtHandlers.onClose}),o.row.values.type===s.ASSET_TYPES.VIDEO&&i.createElement(s.VideoPreview,{playbackSettings:{autoPlay:!0,loop:!1},style:n(o.row.original.width,o.row.original.height),showMedia:u,url:o.row.original.url,onRequestClose:this.evtHandlers.onClose}))},n}(i.PureComponent),l=i.memo(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secondsToTime=void 0;var r=n(0),o=n(17),a=n(9),i=n(10);t.secondsToTime=function(e){var t=Math.floor(e/60),n=Math.floor(e-60*t);return n<10&&(n="0"+n),t+":"+n};t.default=a.connect((function(e){return{}}),(function(e){return i.bindActionCreators({updateAssetName:o.updateAssetName},e)}))((function(e){var n=e.cell.row.original,o=n.duration;n.id;return null!=o?r.createElement("div",{className:"asset-duration-cell"},t.secondsToTime(o)):null}))},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_DND_TYPES=void 0,t.ASSET_DND_TYPES={ASSET_NAME:"asset_name"}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(0),i=n(0),s=n(13),u=n(17),l=n(9),c=n(10);t.default=l.connect((function(e){return{}}),(function(e){return c.bindActionCreators({updateAssetName:u.updateAssetName},e)}))((function(e){var t=e.cell.row.original,n=t.name,u=t.id,l=r(i.useState(""),2),c=l[0],d=l[1],p=function(t){e.updateAssetName(e.api,u,t)};return i.useEffect((function(){return d(n),function(){clearTimeout(o)}}),[n]),a.createElement(s.default,{value:c,width:"100%",onChange:function(e){return function(e){d(e),clearTimeout(o),o=setTimeout((function(){return p(e)}),1e3)}(e)}})}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(13),s=n(23),u=n(9),l=n(10),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.render=function(){var e=t.props.assetFilters;return a.createElement(i.default,{submittable:!0,submittableType:"search",value:e.name,doSubmit:function(e){return t.props.updateFilters({name:e})}})},t}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{assetFilters:e.assetFilters}}),(function(e){return l.bindActionCreators({updateFilters:s.updateFilters},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(33),s=n(30),u=n(9),l=n(10),c=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=n.props,t=e.cell,r=e.selectedAssets,o=t.row.original.id,i=r.indexOf(o)>-1;return a.createElement(s.default,{label:"",width:"auto",value:i,onChange:function(e,t){return function(e,t){e?t.shiftKey&&r.length>0?n.props.selectMultipleAssets(o):n.props.selectAsset(o):n.props.deselectAsset(o)}(e,t)}})},n}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{selectedAssets:e.selectedAssets}}),(function(e){return l.bindActionCreators({selectAsset:i.selectAsset,deselectAsset:i.deselectAsset,selectMultipleAssets:i.selectMultipleAssets},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(30),s=n(33),u=n(9),l=n(10),c=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=0===n.props.selectedAssets.length,t=e?function(){return n.props.selectAll()}:function(){return n.props.resetSelection()};return a.createElement(i.default,{label:"",propagate:!1,value:!e,onChange:t})},n}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{selectedAssets:e.selectedAssets}}),(function(e){return l.bindActionCreators({selectAll:s.selectAll,resetSelection:s.resetSelection},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5),a=r.memo((function(e){return r.createElement(o.default,{color:"secondary",style:"subtle",size:"small",onClick:e.onClick},e.cell.row.values.tags.length)}));t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(23),s=n(13),u=n(9),l=n(10),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.render=function(){var e=t.props.assetFilters;return a.createElement(s.default,{submittable:!0,submittableType:"search",value:e.tags,doSubmit:function(e){return t.props.updateFilters({tags:e})}})},t}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{assetFilters:e.assetFilters}}),(function(e){return l.bindActionCreators({updateFilters:i.updateFilters},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(7),s=n(51),u=n(13),l=n(17),c=n(9),d=n(10),p=n(5),f=n(4),h=function(e){function t(n){var r=e.call(this,n)||this;return r.addTags=function(e,t){t&&r.props.addAssetTag(r.props.api,e,t)},r.render=function(){var e=r.props,n=e.row.original,o=n.id,l=n.tags,c=e.assetTags,d=l.map((function(e){return a.createElement(s.default,{key:e,copy:e,colorize:t.COLORIZE_TAGS,removeHandler:function(){return r.props.deleteAssetTag(r.props.api,o,e)}})}));return a.createElement("div",{className:"tags-column"},a.createElement(a.Fragment,null,a.createElement(u.default,{submittable:!0,submittableType:"add",suggestions:c,label:i.assets.tags.add,width:t.ADD_TAG_INPUT_WIDTH,doSubmit:function(e){return r.addTags(o,e)}}),d,a.createElement(p.default,{customStyles:{position:"absolute",right:"1px",top:"9px"},style:"subtle",onClick:function(e){return r.props.onClose(e,r.props.row)}},f.ICON_TIMES)))},r}return o(t,e),t.ADD_TAG_INPUT_WIDTH="280px",t.COLORIZE_TAGS=!0,t}(a.PureComponent);t.default=c.connect((function(e){return{assetTags:e.assetTags}}),(function(e){return d.bindActionCreators({addAssetTag:l.addAssetTag,deleteAssetTag:l.deleteAssetTag},e)}))(h)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(51),s=n(13),u=n(17),l=n(9),c=n(10),d=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=n.props,t=e.cell,r=e.assetTags,o=t.row.original.tags.map((function(e){return a.createElement(i.default,{key:e,copy:e,colorize:!0,removeHandler:function(){return n.removeTag(e)}})}));return a.createElement("div",{className:"tags-complex-column"},o,a.createElement("div",{className:"new-tag"},a.createElement(s.default,{submittable:!0,submittableType:"add",placeholder:"+",hideButtons:!0,suggestions:r,doSubmit:function(e){return n.onSubmit(e)},width:"150px",buttons:[],value:n.state.newTag})))},n.state={newTag:""},n.inputRef=a.createRef(),n}return o(t,e),t.prototype.onSubmit=function(e){var t=this.props.cell.row.original,n=t.id;-1===t.tags.indexOf(e)&&this.props.addAssetTag(this.props.api,n,e),this.setState({newTag:""})},t.prototype.removeTag=function(e){var t=this.props.cell.row.original.id;this.props.deleteAssetTag(this.props.api,t,e)},t}(a.Component),p=l.connect((function(e){return{assetTags:e.assetTags}}),(function(e){return c.bindActionCreators({addAssetTag:u.addAssetTag,deleteAssetTag:u.deleteAssetTag},e)}))(a.memo(d));t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(85),a=r.memo((function(e){return r.createElement("div",{className:"asset-type-cell"},r.createElement(o.default,{type:e.cell.row.values.type}))}));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=r.memo((function(e){var t=e.cell.row.original.processing?"processing":"complete";return r.createElement("div",{className:"asset-status-cell"},r.createElement("div",{className:"status-indicator "+t}))}));t.default=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(85),s=n(5),u=n(59),l=n(23),c=n(9),d=n(10),p=n(24),f=function(e){function t(t){var n=e.call(this,t)||this;return n.handleFilterChange=function(e){var t=e!==p.ASSET_TYPES.ALL?e:"";n.props.updateFilters({type:t,page:1})},n.render=function(){var e=n.state.openMenu,t=n.props.assetFilters.type,r=[],o=function(e){if(p.ASSET_TYPES.hasOwnProperty(e)){var t=p.ASSET_TYPES[e];r.push(a.createElement("div",{key:t,className:"asset-filter",onClick:function(){return n.handleFilterChange(t)}},a.createElement(i.default,{type:t})))}};for(var l in p.ASSET_TYPES)o(l);return a.createElement("div",{className:"centered cell"},a.createElement(s.default,{tooltip:"Filter by Asset type",buttonRef:n.typeFilterRef,onClick:function(){return n.setState({openMenu:!e})}},a.createElement(i.default,{type:t||"filter"}),a.createElement(u.default,{fixed:!0,show:e,position:"bottomleft",toggleRef:n.typeFilterRef,onOutsideClick:function(){return n.setState({openMenu:!1})}},r)))},n.state={openMenu:!1},n.typeFilterRef=a.createRef(),n}return o(t,e),t}(a.PureComponent),h=c.connect((function(e){return{assetFilters:e.assetFilters}}),(function(e){return d.bindActionCreators({updateFilters:l.updateFilters},e)}))(a.memo(f));t.default=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=n(86),l=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultSize=600,n}return o(t,e),t.prototype.getWrapperStyle=function(){var e=this.props,t=e.padding,n=e.width,r=e.height,o=void 0!==t?t:i.DEFAULT_PADDING;return s.getPlayerStyle(n,r,this.defaultSize,this.defaultSize,o,this.defaultSize,this.defaultSize)},t.prototype.render=function(){var e=this.props,t=e.active,n=e.asset,r=n.name,o=n.url,i=n.id,s=e.width,l=e.height,c=this.getWrapperStyle();return!1!==t?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:c},a.createElement(u.default,{options:{width:s,height:l,x:0,y:0,rotation:0,id:"xxx",name:"xxx",content:"ABCDEFGHIJKLM\nNOPQRSTUVWXYZ\nabcdefghijklm\nnopqrstuvwxyz\n1234567890",color:"#000000",background_color:"#ffffff",font_size:80,font_weight:400,font_type:"custom",font:r,custom_font_url:o,custom_font_id:i,letter_spacing:null,word_spacing:null,line_height:null,horizontal_alignment:"center",vertical_alignment:"center",text_wrap:!0,text_fit:!0}}))):null},t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(7),s=n(30),u=n(126),l=n(52),c=n(10),d=n(9),p=n(4),f=n(5),h=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e,t=n.props.assetUploads,r=t.uploads,o=t.autoTag,l=t.assignToStory;return e=r.length>0?r.map((function(e){var t=e.filename,r=e.percent,o=r<100?a.createElement(u.default,{progress:e.percent}):a.createElement("span",null,i.assets.uploads.preparePhase),s=r<100&&a.createElement(f.default,{key:"btn-cancel",onClick:function(){return n.handleCancelAssetUpload(t)},style:"subtle"},p.ICON_TIMES);return a.createElement("div",{className:"ongoing-upload",key:t},a.createElement("div",{className:"ongoing-upload-inner"},a.createElement("div",{className:"upload-filename"},t),s),o)})):a.createElement("div",{className:"no-ongoing-uploads"},i.assets.uploads.noUploads),a.createElement("div",{className:"uploads-menu"},a.createElement("div",{className:"uploads-controls"},a.createElement(s.default,{width:"50%",label:i.assets.uploads.autoTagInput,value:o,onChange:function(){return n.props.toggleAutoTag(!o)}}),a.createElement(s.default,{width:"50%",label:i.assets.uploads.assignToStoryInput,info:i.assets.uploads.assignToStoryInfo,value:l,onChange:function(){return n.props.toggleAssignToStory(!l)}})),a.createElement("div",{className:"uploads-list"},e))},n}return o(t,e),t.prototype.handleCancelAssetUpload=function(e){var t=this.props.api;this.props.cancelAssetUpload(e,t)},t}(a.PureComponent);t.default=d.connect((function(e){return{assetUploads:e.assetUploads}}),(function(e){return c.bindActionCreators({toggleAutoTag:l.toggleAutoTag,toggleAssignToStory:l.toggleAssignToStory,cancelAssetUpload:l.cancelAssetUpload},e)}))(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewNotAvailable=void 0;var r=n(0),o=n(4),a=n(7);t.PreviewNotAvailable=function(e){return!0===e.active||void 0===e.active?r.createElement("div",{className:"preview-not-available"},r.createElement("div",{className:"cta"},r.createElement("div",{className:"icon"},o.ICON_BAN),r.createElement("p",null,a.assets.previewNotAvailable))):null}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=function(e){function t(t){var n=e.call(this,t)||this;return n.width=1280,n.height=720,n.audioNode=a.createRef(),n}return o(t,e),t.prototype.getImageStyle=function(){var e=this.props,t=e.padding,n=e.width,r=e.height,o=void 0!==t?t:i.DEFAULT_PADDING;return s.getPlayerStyle(n,r,this.width,this.height,o)},t.prototype.render=function(){var e=this.props,t=e.url;return!1!==e.active?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:this.getImageStyle()},a.createElement("audio",{controls:!0,src:t,ref:this.audioNode}))):null},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(87),u=n(5),l=n(7),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.videoNode=null,n.videoNode=i.createRef(),n.evtHandlers={onClose:function(e){return n.onClose(e)}},n}return o(t,e),t.prototype.onClose=function(e){(0,this.props.onRequestClose)(e)},t.prototype.render=function(){var e=this.props,t=e.showMedia,n=e.url,r=e.playbackSettings,o=e.style;return t?i.createElement(s.default,{id:"portal-root"},i.createElement("div",{style:a({},o),className:"close-icon-preview"},i.createElement(u.default,{key:"btn-filter",onClick:this.evtHandlers.onClose,size:"large",style:"subtle",tooltip:l.assets.field.tooltipFilter},c.ICON_TIMES)),i.createElement("video",{style:o,muted:!0,ref:this.videoNode,autoPlay:r.autoPlay,loop:r.loop,controls:!0,preload:"preload",src:n,className:"asset-preview-background"})):null},t}(i.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(87),u=n(4),l=n(5),c=n(7),d=function(e){function t(t){var n=e.call(this,t)||this;return n.imageNode=null,n.imageNode=i.createRef(),n.evtHandlers={onClose:function(e){return n.onClose(e)}},n.state={loaded:!1},n}return o(t,e),t.prototype.onClose=function(e){(0,this.props.onRequestClose)(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.showMedia,r=t.url,o=t.style,d=this.state.loaded;return n?i.createElement(s.default,{id:"portal-root"},i.createElement("div",{style:a({},o),className:"close-icon-preview"},i.createElement(l.default,{key:"btn-filter",onClick:this.evtHandlers.onClose,size:"large",style:"subtle",tooltip:c.assets.field.tooltipFilter},u.ICON_TIMES)),i.createElement("img",{onLoad:function(){return e.setState({loaded:!0})},src:r,ref:this.imageNode,className:"asset-preview-background transparent "+(d?"":"hidden"),style:o})):null},t}(i.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={imageHeight:1080,imageWidth:1920},n.imgNode=a.createRef(),n}return o(t,e),t.prototype.getImageStyle=function(){var e=this.state,t=e.imageHeight,n=e.imageWidth,r=this.props,o=r.padding,a=r.width,u=r.height,l=void 0!==o?o:i.DEFAULT_PADDING;return t&&n?s.getPlayerStyle(a,u,n,t,l):{}},t.prototype.metadataLoaded=function(e){this.setState({imageWidth:e.target.naturalWidth,imageHeight:e.target.naturalHeight})},t.prototype.render=function(){var e=this.props;e.url;return!1!==e.active?a.createElement("div",{className:"mediap-player"},a.createElement("div",{className:"inner-viewer",style:this.getImageStyle()})):null},t}(a.PureComponent);t.default=u},function(e,t,n){var r,o,a;o=[t],void 0===(a="function"==typeof(r=function(e){"use strict";var t,n=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};!function(e){e[e.EOS=0]="EOS",e[e.Text=1]="Text",e[e.Incomplete=2]="Incomplete",e[e.ESC=3]="ESC",e[e.Unknown=4]="Unknown",e[e.SGR=5]="SGR",e[e.OSCURL=6]="OSCURL"}(t||(t={}));var r=function(){function e(){this.VERSION="4.0.4",this.setup_palettes(),this._use_classes=!1,this._escape_for_html=!0,this.bold=!1,this.fg=this.bg=null,this._buffer="",this._url_whitelist={http:1,https:1}}return Object.defineProperty(e.prototype,"use_classes",{get:function(){return this._use_classes},set:function(e){this._use_classes=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"escape_for_html",{get:function(){return this._escape_for_html},set:function(e){this._escape_for_html=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url_whitelist",{get:function(){return this._url_whitelist},set:function(e){this._url_whitelist=e},enumerable:!0,configurable:!0}),e.prototype.setup_palettes=function(){var e=this;this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach((function(t){t.forEach((function(t){e.palette_256.push(t)}))}));for(var t=[0,95,135,175,215,255],n=0;n<6;++n)for(var r=0;r<6;++r)for(var o=0;o<6;++o){var a={rgb:[t[n],t[r],t[o]],class_name:"truecolor"};this.palette_256.push(a)}for(var i=8,s=0;s<24;++s,i+=10){var u={rgb:[i,i,i],class_name:"truecolor"};this.palette_256.push(u)}},e.prototype.escape_txt_for_html=function(e){return e.replace(/[&<>]/gm,(function(e){return"&"===e?"&amp;":"<"===e?"&lt;":">"===e?"&gt;":void 0}))},e.prototype.append_buffer=function(e){var t=this._buffer+e;this._buffer=t},e.prototype.get_next_packet=function(){var e={kind:t.EOS,text:"",url:""},r=this._buffer.length;if(0==r)return e;var a=this._buffer.indexOf("");if(-1==a)return e.kind=t.Text,e.text=this._buffer,this._buffer="",e;if(a>0)return e.kind=t.Text,e.text=this._buffer.slice(0,a),this._buffer=this._buffer.slice(a),e;if(0==a){if(1==r)return e.kind=t.Incomplete,e;var i=this._buffer.charAt(1);if("["!=i&&"]"!=i)return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==i){if(this._csi_regex||(this._csi_regex=o(n(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n [ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n [ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))),null===(l=this._buffer.match(this._csi_regex)))return e.kind=t.Incomplete,e;if(l[4])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=l[1]||"m"!=l[3]?e.kind=t.Unknown:e.kind=t.SGR,e.text=l[2];var s=l[0].length;return this._buffer=this._buffer.slice(s),e}if("]"==i){if(r<4)return e.kind=t.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.raw[0],o=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,a=r.replace(o,"");return new RegExp(a,"g")}(n(["\n (?: # legal sequence\n (\\) # ESC | # alternate\n () # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]))),this._osc_st.lastIndex=0;var u=this._osc_st.exec(this._buffer);if(null===u)return e.kind=t.Incomplete,e;if(u[3])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;var l,c=this._osc_st.exec(this._buffer);return null===c?(e.kind=t.Incomplete,e):c[3]?(e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e):(this._osc_regex||(this._osc_regex=o(n(["\n ^ # beginning of line\n #\n ]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:) # BEL (what xterm did)\n )\n ([!-~]+) # TEXT capture\n ]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x21-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))),null===(l=this._buffer.match(this._osc_regex))?(e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e):(e.kind=t.OSCURL,e.url=l[1],e.text=l[2],s=l[0].length,this._buffer=this._buffer.slice(s),e))}}},e.prototype.ansi_to_html=function(e){this.append_buffer(e);for(var n=[];;){var r=this.get_next_packet();if(r.kind==t.EOS||r.kind==t.Incomplete)break;r.kind!=t.ESC&&r.kind!=t.Unknown&&(r.kind==t.Text?n.push(this.transform_to_html(this.with_state(r))):r.kind==t.SGR?this.process_ansi(r):r.kind==t.OSCURL&&n.push(this.process_hyperlink(r)))}return n.join("")},e.prototype.with_state=function(e){return{bold:this.bold,fg:this.fg,bg:this.bg,text:e.text}},e.prototype.process_ansi=function(e){for(var t=e.text.split(";");t.length>0;){var n=t.shift(),r=parseInt(n,10);if(isNaN(r)||0===r)this.fg=this.bg=null,this.bold=!1;else if(1===r)this.bold=!0;else if(22===r)this.bold=!1;else if(39===r)this.fg=null;else if(49===r)this.bg=null;else if(r>=30&&r<38)this.fg=this.ansi_colors[0][r-30];else if(r>=40&&r<48)this.bg=this.ansi_colors[0][r-40];else if(r>=90&&r<98)this.fg=this.ansi_colors[1][r-90];else if(r>=100&&r<108)this.bg=this.ansi_colors[1][r-100];else if((38===r||48===r)&&t.length>0){var o=38===r,a=t.shift();if("5"===a&&t.length>0){var i=parseInt(t.shift(),10);i>=0&&i<=255&&(o?this.fg=this.palette_256[i]:this.bg=this.palette_256[i])}if("2"===a&&t.length>2){var s=parseInt(t.shift(),10),u=parseInt(t.shift(),10),l=parseInt(t.shift(),10);if(s>=0&&s<=255&&u>=0&&u<=255&&l>=0&&l<=255){var c={rgb:[s,u,l],class_name:"truecolor"};o?this.fg=c:this.bg=c}}}}},e.prototype.transform_to_html=function(e){var t=e.text;if(0===t.length)return t;if(this._escape_for_html&&(t=this.escape_txt_for_html(t)),!e.bold&&null===e.fg&&null===e.bg)return t;var n=[],r=[],o=e.fg,a=e.bg;e.bold&&n.push("font-weight:bold"),this._use_classes?(o&&("truecolor"!==o.class_name?r.push(o.class_name+"-fg"):n.push("color:rgb("+o.rgb.join(",")+")")),a&&("truecolor"!==a.class_name?r.push(a.class_name+"-bg"):n.push("background-color:rgb("+a.rgb.join(",")+")"))):(o&&n.push("color:rgb("+o.rgb.join(",")+")"),a&&n.push("background-color:rgb("+a.rgb+")"));var i="",s="";return r.length&&(i=' class="'+r.join(" ")+'"'),n.length&&(s=' style="'+n.join(";")+'"'),"<span"+s+i+">"+t+"</span>"},e.prototype.process_hyperlink=function(e){var t=e.url.split(":");return t.length<1?"":this._url_whitelist[t[0]]?'<a href="'+this.escape_txt_for_html(e.url)+'">'+this.escape_txt_for_html(e.text)+"</a>":""},e}();function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.raw[0],o=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,a=r.replace(o,"");return new RegExp(a)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r})?r.apply(t,o):r)||(e.exports=a)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(131),u=n(499),l=n(13),c=n(5),d=n(21),p=n(41),f=n(29),h=n(63),m=n(11),_=n(16),y=n(25),g=n(129),v=n(500),b=n(100),w=n(7),M=n(8),L=n(132),T=n(130),k=function(e){function t(t){var n=e.call(this,t)||this,r=n.getInventoryDefaults(),o=n.getInventoryOptions();return n.state={inventory:r,inventoryOptions:o,experienceId:null,jobId:null,experience:null,timeElapsed:0,activeOutput:"",rendering:!1},n.timer=new L.default({interval:1e3,onUpdate:function(e){n.setState({timeElapsed:e})}}),n.evtHandlers={toggleOutput:function(e){return n.toggleActiveOutput(e)},createExp:function(){return n.createExperience()},gotExperience:null},n}return o(t,e),t.prototype.componentWillUnmount=function(){var e=this.props,t=e.api;e.onError,this.state.experienceId;this.timer.stop(),this.evtHandlers.gotExperience=null,t.cancelExperiencePolling()},t.prototype.getInventoryOptions=function(){var e=this.props.variables,t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.defaultItem&&r.defaultItem.type&&r.defaultItem.type.toLowerCase()===s.VARIABLE_TYPES.ENUM&&(t[r.id]=r.defaultItem.options)}return t},t.prototype.getInventoryDefaults=function(){var e=this.props.variables,t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[r.id]=this.getVariableValue(r.previewItem)}return t},t.prototype.checkInventoryDefaults=function(e){var t=this.props.variables,n=a({},this.state.inventory);for(var r in t)if(t.hasOwnProperty(r)){var o=t[r],i=e[r];if(i){var s=this.getVariableValue(i.previewItem),u=this.getVariableValue(o.previewItem);o.type===i.type&&s===u||(n[r]=u)}}return n},t.prototype.getVariableValue=function(e){if(e&&e.type){var t=e.type.toLowerCase();return t===s.VARIABLE_TYPES.IMAGE||t===s.VARIABLE_TYPES.VIDEO||t===s.VARIABLE_TYPES.AUDIO?e.url:e.src}},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.experienceId,r=t.jobId;n&&r&&this.setState({jobId:r},(function(){e.getExperience(n)}))},t.prototype.componentDidUpdate=function(e,t){if(e.storyId!==this.props.storyId&&(this.evtHandlers.gotExperience=null),e.variables!==this.props.variables){var n=void 0,r=this.getInventoryOptions();n=e.storyId===this.props.storyId?this.checkInventoryDefaults(e.variables):this.getInventoryDefaults(),this.setState({inventoryOptions:r,inventory:n})}},t.prototype.variableInputChanged=function(e,t){var n=a({},this.state.inventory);n[e]=t,this.setState({inventory:n})},t.prototype.getViewerOptions=function(){var e=[],t=this.state,n=t.experience.output,r=t.jobId,o=n.videos,a=n.images;if(o)for(var i in o)if(o.hasOwnProperty(i)){var s={label:"Video: "+i,value:u.OUTPUT_TYPES.VIDEO+"."+i};e.push(s)}if(a)for(var i in a)if(a.hasOwnProperty(i)){var l={label:"Image: "+i,value:u.OUTPUT_TYPES.IMAGE+"."+i};e.push(l)}return r&&e.push({label:w.previewer.btnLog,value:u.OUTPUT_TYPES.LOG+"."+r}),e},t.prototype.renderVariableFields=function(){var e=this,t=this.state,n=t.inventory,r=t.inventoryOptions,o=this.props.variables,a=[],u=function(t){if(o.hasOwnProperty(t)){var u=o[t];switch(u.type.toLowerCase()){case s.VARIABLE_TYPES.TEXT:a.push(i.createElement(l.default,{label:u.name,key:u.id,value:n[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.NUMBER:a.push(i.createElement(p.default,{label:u.name,key:u.id,value:n[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.ENUM:a.push(i.createElement(f.default,{label:u.name,key:u.id,value:n[u.id],options:r[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.BOOLEAN:a.push(i.createElement(h.default,{label:u.name,key:u.id,value:n[u.id],options:s.BOOLEAN_DEFAULT_OPTIONS,onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.IMAGE:a.push(i.createElement(m.default,{label:u.name,key:u.id},i.createElement(v.default,{value:n[u.id],type:u.type,onChange:function(t){return e.variableInputChanged(u.id,t)}})));break;case s.VARIABLE_TYPES.VIDEO:case s.VARIABLE_TYPES.AUDIO:a.push(i.createElement(m.default,{label:u.name,key:u.id},i.createElement(v.default,{type:u.type,value:n[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}})))}}};for(var c in o)u(c);return a},t.prototype.getFirstOutput=function(e){var t=e.output.videos,n=e.output.images;if(t){for(var r in t)if(t.hasOwnProperty(r))return u.OUTPUT_TYPES.VIDEO+"."+r}else{if(!n)return null;for(var r in n)if(n.hasOwnProperty(r))return u.OUTPUT_TYPES.IMAGE+"."+r}},t.prototype.getExperience=function(e,t,n,r){var o=this;void 0===t&&(t=!1),this.timer.running||this.timer.start();var a=this.props,i=a.api,s=a.onError,u=a.onExperenceLoaded,l=a.onJobCreated;this.setState({rendering:!0},(function(){o.setState({experienceId:e},(function(){t?i.triggerEvent(e,n,r).then((function(t){o.setState({jobId:t.job_id},(function(){l&&l(e,t.job_id),o.evtHandlers.gotExperience=function(e){o.timer.stop(),u&&u(e),o.setState({rendering:!1,activeOutput:o.getFirstOutput(e),experience:e})};i.getExperience(e,!0).then((function(e){o.evtHandlers.gotExperience&&o.evtHandlers.gotExperience(e)})).catch((function(t){o.resetState(),s&&s(w.previewer.runExpError.replace("[expId]",e))}))}))})).catch((function(t){o.resetState(),s&&s(w.previewer.triggerExpError.replace("[expId]",e))})):(o.evtHandlers.gotExperience=function(e){o.timer.stop(),u&&u(e),o.setState({rendering:!1,activeOutput:o.getFirstOutput(e),experience:e})},i.getExperience(e,!0).then((function(e){o.evtHandlers.gotExperience&&o.evtHandlers.gotExperience(e)})).catch((function(t){o.resetState(),s&&s(w.previewer.runExpError.replace("[expId]",e))})))}))}))},t.prototype.createExperience=function(){var e=this,t=this.props,n=t.storyId,r=t.onNotification,o=t.onError,a=t.api,i=t.onExperienceCreated,s=t.compositionId,u=t.useWorkingCopy;this.resetState((function(){e.setState({rendering:!0},(function(){e.timer.start(),r&&r(w.previewer.runExpStart),a.createExperience(n,e.state.inventory,s,u).then((function(t){r&&r(w.previewer.expId.replace("[expId]",t.id)),i&&i(t),e.getExperience(t.id,!0,s,u)})).catch((function(t){e.resetState();var n=t.response,r=n.data;n.status;o&&(r&&r.error?o(w.previewer.createExpError+": "+r.error):o(w.previewer.createExpError+": "+t))}))}))}))},t.prototype.resetState=function(e){this.timer.stop(),this.setState({rendering:!1,experienceId:null,experience:null,jobId:null,timeElapsed:0,activeOutput:null},(function(){e&&e()}))},t.prototype.renderViewerContent=function(){var e=this.state,t=e.rendering,n=e.experience,r=e.timeElapsed,o=e.activeOutput,a=this.props,s=a.api,l=a.onError;if(t)return i.createElement("div",{className:"running-prompt"},i.createElement(d.default,null),i.createElement("br",null),i.createElement("h1",null,"  ",w.previewer.expRunning),i.createElement("p",null,w.previewer.time," ",M.formattedTime(r)));if(n&&o){var c=void 0,p=void 0,f=o.split("."),h=f[0],m=f[1];if(h===u.OUTPUT_TYPES.IMAGE)p=n.output.images[m],c=i.createElement(g.default,{url:p,active:!0});else if(h===u.OUTPUT_TYPES.VIDEO){var _=n.output.videos[m],v=void 0!==_.width?parseInt(_.width,10):null,L=void 0!==_.height?parseInt(_.height,10):null;p=_.url,c=i.createElement(y.default,{url:p,active:!0,maxWidth:v,allowManualScale:!0,maxHeight:L})}else h===u.OUTPUT_TYPES.LOG&&(c=i.createElement("div",{className:"log"},i.createElement(T.default,{api:s,onError:l,jobId:m})));return i.createElement(b.default,{handleWidth:!0,handleHeight:!0},c)}return null},t.prototype.toggleActiveOutput=function(e){this.setState({activeOutput:e})},t.prototype.render=function(){var e,t,n=this.state,r=n.rendering,o=n.experience,a=n.activeOutput,s=o?w.previewer.btnReRender:w.previewer.btnRender,u=r?null:i.createElement(c.default,{size:"large",onClick:this.evtHandlers.createExp,color:"primary",style:"bold"},s);if(o){var d=this.getViewerOptions();e=i.createElement(f.default,{width:"130px",options:d,value:a,onChange:this.evtHandlers.toggleOutput}),t=i.createElement(l.default,{readOnly:!0,width:"360px",label:w.previewer.expIdField,showCopy:!0,value:o.id})}return i.createElement("div",{className:"story-viewer viewer"},i.createElement("div",{className:"variables"},i.createElement("h2",null,w.previewer.previewVars),i.createElement(_.default,null),this.renderVariableFields()),i.createElement("div",{className:"viewer-content"},i.createElement("div",{className:"content-header"},u,i.createElement("div",{className:"output"},e),i.createElement("div",{className:"right-interface"},t)),i.createElement("div",{className:"content-wrapper"},this.renderViewerContent())))},t}(i.PureComponent);t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OUTPUT_TYPES=void 0,t.OUTPUT_TYPES={LOG:"log",IMAGE:"image",VIDEO:"video"}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(21),s=n(131),u=n(84),l=n(5),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.input=a.createRef(),n.state={processing:!1,processedFile:null},n.evtHandlers={fileUpload:function(e){return n.fileUploaded(e)},fileDrop:function(e,t){return n.onFileDrop(e,t)},clearSelection:function(e){return n.clearSelection(e)},click:function(){return n.onClick()}},n}return o(t,e),t.prototype.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),this.props.onChange(null)},t.prototype.fileUploaded=function(e){var t=e.target.files[0];t&&this.props.onChange(t)},t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.checkFile()},t.prototype.componentDidMount=function(){this.checkFile()},t.prototype.checkFile=function(){var e=this,t=this.props.value;t instanceof File&&this.setState({processing:!0,processedFile:null},(function(){var n=new FileReader;n.onload=function(){e.setState({processing:!1,processedFile:n.result})},n.readAsDataURL(t)}))},t.prototype.renderFields=function(){var e,t=this.state,n=t.processing,r=t.processedFile,o=this.props,u=o.type,l=o.value,c=l instanceof File;if(!l)return null;if(c){if(n)return a.createElement(i.default,null);e=r}else e=l;switch(u.toLowerCase()){case s.VARIABLE_TYPES.IMAGE:return a.createElement("img",{className:"default-preview",src:e});case s.VARIABLE_TYPES.VIDEO:return a.createElement("video",{className:"default-preview",src:e,controls:!0});case s.VARIABLE_TYPES.AUDIO:return a.createElement("audio",{className:"default-preview",src:e,controls:!0})}},t.prototype.getInputFilter=function(){var e=this.props,t=e.type;e.value;switch(t){case s.VARIABLE_TYPES.IMAGE:return"image/*";case s.VARIABLE_TYPES.VIDEO:return"video/*";case s.VARIABLE_TYPES.AUDIO:return"audio/*"}},t.prototype.onClick=function(){var e=this.input.current,t=this.state.processing;e&&!t&&e.click()},t.prototype.renderClearButton=function(){if(this.props.value)return a.createElement(l.default,{onClick:this.evtHandlers.clearSelection},c.ICON_TIMES)},t.prototype.onFileDrop=function(e,t){var n=t.getItem().files[0];n&&this.props.onChange(n)},t.prototype.render=function(){var e=this.state.processing,t=this.getInputFilter();return a.createElement(a.Fragment,null,a.createElement("input",{type:"file",accept:t,style:{display:"none"},ref:this.input,onChange:this.evtHandlers.fileUpload}),a.createElement(u.default,{onDrop:this.evtHandlers.fileDrop,disable:e},a.createElement("div",{className:"variable-default-upload",onClick:this.evtHandlers.click},this.renderFields(),a.createElement("div",{className:"btn-wrapper"},this.renderClearButton()))))},t}(a.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(502),s=n(133),u=n(53),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={selectedLayer:null},n.eventHandlers={updateSelectedLayer:function(e){return n.updateSelectedLayer(e)}},n}return o(t,e),t.prototype.updateSelectedLayer=function(e){this.setState({selectedLayer:e})},t.prototype.variablesToInventory=function(){var e=this.props.variables,t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=r.type,a=r.previewItem;a&&(o===u.VARIABLE_TYPES.IMAGE||o===u.VARIABLE_TYPES.VIDEO||o===u.VARIABLE_TYPES.AUDIO?t[n]=a.url:t[n]=a.src)}return t},t.prototype.render=function(){var e=this.state.selectedLayer,t=this.props,n=t.storyId,r=t.api,o=t.composition;return o?a.createElement("div",{className:"static-composition-editor"},a.createElement("div",{className:"composition-config"},a.createElement(i.default,{storyId:n,api:r,composition:o,onSelectLayer:this.eventHandlers.updateSelectedLayer,selectedLayer:e,onUpdate:this.props.onUpdate})),a.createElement("div",{className:"composition-preview"},a.createElement(s.default,{inventory:this.variablesToInventory(),composition:o,onSelectLayer:this.eventHandlers.updateSelectedLayer,selectedLayer:e,onUpdate:this.props.onUpdate}))):null},t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(7),c=n(41),d=n(65),p=n(11),f=n(5),h=n(53),m=n(4),_=n(503),y=function(e){function t(t){var n=e.call(this,t)||this;return n.eventHandlers={inputs:{width:function(e){return n.compValueChanged("width",e)},height:function(e){return n.compValueChanged("height",e)},name:function(e){return n.compValueChanged("name",e)},backgroundColor:function(e){return n.bgChanged(e)}},selectLayer:function(e){return n.props.onSelectLayer(e)}},n.addLayerMenu=u.createElement(f.default,{onClick:function(){return n.addLayer()},style:"subtle",size:"small",color:"primary"},m.ICON_PLUS),n}return o(t,e),t.prototype.addLayer=function(){var e=h.getNewCompositionLayer(),t=a({},this.props.composition),n=s([],i(t.layers));n.push(e),t.layers=n,this.props.onUpdate(t),this.props.onSelectLayer(e.id)},t.prototype.updateLayer=function(e,t){var n=a({},this.props.composition),r=s([],i(n.layers));r[e]=t,n.layers=r,this.props.onUpdate(n)},t.prototype.compValueChanged=function(e,t){var n=a({},this.props.composition);n[e]=t,this.props.onUpdate(n)},t.prototype.bgChanged=function(e){if("transparent"===e.hex)this.compValueChanged("background_color",null);else{var t=e.rgb;this.compValueChanged("background_color","rgba("+t.r+","+t.g+","+t.b+","+t.a+")")}},t.prototype.render=function(){var e=this,t=this.props,n=t.composition,r=t.selectedLayer,o=t.storyId,a=t.api,i=(n.background_color&&n.background_color,u.createElement("span",null,l.compositions.layers," ",this.addLayerMenu));return u.createElement(u.Fragment,null,u.createElement(c.default,{label:l.compositions.width,tooltip:l.compositions.tooltipWidth,value:n.width,width:"30%",labelPosition:"top",onChange:this.eventHandlers.inputs.width}),u.createElement(c.default,{label:l.compositions.height,tooltip:l.compositions.tooltipHeight,value:n.height,width:"30%",labelPosition:"top",onChange:this.eventHandlers.inputs.height}),u.createElement(d.default,{label:l.compositions.backgroundColor,tooltip:l.compositions.tooltipBackgroundColor,enableAlpha:!0,value:n.background_color,width:"40%",labelPosition:"top",pickerPosition:"right",onChange:this.eventHandlers.inputs.backgroundColor}),u.createElement(p.default,{label:i,width:"100%",labelPosition:"top"},n.layers.map((function(t,n){var i=t.id===r;return u.createElement(_.default,{storyId:o,api:a,key:t.id,selected:i,onSelectLayer:e.eventHandlers.selectLayer,onUpdate:function(t){return e.updateLayer(n,t)},options:t})}))))},t}(u.PureComponent);t.default=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.V_ALIGN_OPTIONS=t.H_ALIGN_OPTIONS=void 0;var i=n(0),s=n(53),u=n(24),l=n(64),c=n(63),d=n(13),p=n(29),f=n(98),h=n(127),m=n(7),_=n(65),y=n(30),g=n(41),v=n(4);t.H_ALIGN_OPTIONS=[{icon:v.ICON_ALIGN_LEFT,value:"left"},{icon:v.ICON_ALIGN_CENTER,value:"center"},{icon:v.ICON_ALIGN_RIGHT,value:"right"}],t.V_ALIGN_OPTIONS=[{icon:v.ICON_ARROW_UP,value:"flex-start"},{icon:v.ICON_ARROW_CENTER_V,value:"center"},{icon:v.ICON_ARROW_DOWN,value:"flex-end"}];var b=function(e){function n(t){var n=e.call(this,t)||this;return n.eventHandlers={inputs:{name:function(e){return n.optionValueChanged("name",e)},width:function(e){return n.optionValueChanged("width",e)},height:function(e){return n.optionValueChanged("height",e)},x:function(e){return n.optionValueChanged("x",e)},y:function(e){return n.optionValueChanged("y",e)},rotation:function(e){return n.optionValueChanged("rotation",e)},content:function(e){return n.optionValueChanged("content",e)},hAlign:function(e){return n.optionValueChanged("horizontal_alignment",e)},vAlign:function(e){return n.optionValueChanged("vertical_alignment",e)},textWrap:function(e){return n.optionValueChanged("text_wrap",e)},textFit:function(e){return n.optionValueChanged("text_fit",e)},fontSize:function(e){return n.optionValueChanged("font_size",e)},lineHeight:function(e){return n.optionValueChanged("line_height",e)},letterSpacing:function(e){return n.optionValueChanged("letter_spacing",e)},font:function(e){return n.optionValueChanged("font",e)},customFont:function(e){return n.customFontUpdated(e)},fontType:function(e){return n.fontTypeChanged(e)},wordSpacing:function(e){return n.optionValueChanged("word_spacing",e)},color:function(e){return n.optionValueChanged("color",n.formatColor(e))},backgroundColor:function(e){return n.optionValueChanged("background_color",n.formatColor(e))}},onCardOpen:function(e){return n.onCardOpen()},onCardClose:function(e){return n.onCardClose()}},n}return o(n,e),n.prototype.customFontUpdated=function(e){var t=a({},this.props.options);if(e){var n=e.name,r=e.url,o=e.id;t.font=n,t.custom_font_url=r,t.custom_font_id=o}else t.font=s.DEFAULT_FONT,t.custom_font_url=null,t.custom_font_id=null;this.props.onUpdate(t)},n.prototype.onCardOpen=function(){var e=this.props.options.id;this.props.onSelectLayer(e)},n.prototype.onCardClose=function(){this.props.onSelectLayer(null)},n.prototype.fontTypeChanged=function(e){var t=a({},this.props.options);e===s.FONT_TYPES.STANDARD?(t.font_type=s.FONT_TYPES.STANDARD,t.font=s.DEFAULT_FONT):e===s.FONT_TYPES.CUSTOM&&(t.fontType=s.FONT_TYPES.CUSTOM,t.font=s.DEFAULT_FONT,t.custom_font_id=null,t.custom_font_url=null),this.props.onUpdate(t)},n.prototype.formatColor=function(e){var t=e.rgb;return"rgba("+t.r+","+t.g+","+t.b+","+t.a+")"},n.prototype.optionValueChanged=function(e,t){var n=a({},this.props.options);n[e]=t,this.props.onUpdate(n)},n.prototype.renderFontField=function(){var e=this.props,t=e.options,n=t.font_type,r=t.custom_font_id,o=t.font,a=e.storyId,l=e.api;return n===s.FONT_TYPES.STANDARD?i.createElement(p.default,{label:m.compositions.font,labelPosition:"top",width:"50%",options:s.STADARD_FONTS,onChange:this.eventHandlers.inputs.font,value:o}):n===s.FONT_TYPES.CUSTOM?i.createElement(h.default,{api:l,storyId:a,label:m.compositions.font,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.customFont,accepts:u.ASSET_TYPES.FONT,assetId:r}):null},n.prototype.render=function(){var e=this.props,n=e.options,r=e.selected;return i.createElement(f.default,{open:r,onOpen:this.eventHandlers.onCardOpen,onClose:this.eventHandlers.onCardClose,collapsable:!0,title:n.name},i.createElement(d.default,{label:m.compositions.name,tooltip:m.compositions.tooltipName,value:n.name,width:"100%",labelPosition:"top",onChange:this.eventHandlers.inputs.name}),i.createElement(g.default,{label:m.compositions.x,tooltip:m.compositions.tooltipLayerX,value:n.x,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.x}),i.createElement(g.default,{label:m.compositions.y,tooltip:m.compositions.tooltipLayerY,value:n.y,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.y}),i.createElement(g.default,{label:m.compositions.width,tooltip:m.compositions.tooltipLayerWidth,value:n.width,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.width}),i.createElement(g.default,{label:m.compositions.height,tooltip:m.compositions.tooltipLayerHeight,value:n.height,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.height}),i.createElement(g.default,{value:n.rotation,label:m.compositions.rotation,tooltip:m.compositions.tooltipLayerRotation,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.rotation}),i.createElement(l.default,{label:m.compositions.textLayerContent,tooltip:m.compositions.tooltipTextLayerContent,value:n.content,width:"100%",labelPosition:"top",onChange:this.eventHandlers.inputs.content}),i.createElement(c.default,{options:t.H_ALIGN_OPTIONS,value:n.horizontal_alignment,width:"50%",onChange:this.eventHandlers.inputs.hAlign}),i.createElement(c.default,{options:t.V_ALIGN_OPTIONS,value:n.vertical_alignment,width:"50%",onChange:this.eventHandlers.inputs.vAlign}),i.createElement(p.default,{label:m.compositions.fontType,options:s.FONT_TYPE_OPTIONS,value:n.font_type,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.fontType}),this.renderFontField(),i.createElement(g.default,{label:m.compositions.fontSize,value:n.font_size,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.fontSize}),i.createElement(g.default,{label:m.compositions.lineHeight,value:n.line_height,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.lineHeight}),i.createElement(g.default,{label:m.compositions.letterSpacing,value:n.letter_spacing,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.letterSpacing}),i.createElement(g.default,{label:m.compositions.wordSpacing,value:n.word_spacing,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.wordSpacing}),i.createElement(_.default,{label:m.compositions.color,value:n.color,enableAlpha:!0,width:"50%",labelPosition:"top",pickerPosition:"left",onChange:this.eventHandlers.inputs.color}),i.createElement(_.default,{label:m.compositions.backgroundColor,value:n.background_color,enableAlpha:!0,width:"50%",labelPosition:"top",pickerPosition:"right",onChange:this.eventHandlers.inputs.backgroundColor}),i.createElement(y.default,{label:m.compositions.wrap,value:n.text_wrap,width:"25%",labelPosition:"top",onChange:this.eventHandlers.inputs.textWrap}),i.createElement(y.default,{label:m.compositions.fit,value:n.text_fit,width:"25%",labelPosition:"top",onChange:this.eventHandlers.inputs.textFit}))},n}(i.PureComponent);t.default=b},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16);t.default=function(e){var t=e.shortcutCopyMap,n=e.heading,a=n?r.createElement(r.Fragment,null,r.createElement("h3",null,n),r.createElement(o.default,null)):null;return r.createElement("div",{className:"shortcuts-menu"},a,r.createElement("table",null,r.createElement("tbody",null,Object.keys(t).map((function(e){return r.createElement("tr",{className:"shortcut",key:e},r.createElement("td",{className:"hotkey-cell"},e),r.createElement("td",{className:"shortcut-desc"},t[e]))})))))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(13),s=n(11),u=n(51),l=n(16),c=n(8),d=n(9),p=n(7),f=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=n.props,t=e.asset,r=e.columns,o=e.newAsset,u=e.assetTags;if(!t)return null;var d=o?p.assets.newDetails:p.assets.details,f=c.formatDateDefault(t.date_created),h=2===r,m=o?void 0:function(e){return n.props.onNameChange(e)},_=o?function(e){return n.props.onNameChange(e)}:void 0,y=a.createElement(i.default,{label:p.assets.name,controlled:!o,width:h?"50%":"100%",onSubmit:m,onChange:_,value:t.name}),g=a.createElement(i.default,{readOnly:!0,label:p.assets.date,width:h?"50%":"100%",value:f}),v=a.createElement(i.default,{submittable:!0,submittableType:"add",label:p.assets.addTag,suggestions:u,doSubmit:function(e){return n.props.onAddTag(e)},width:h?"50%":"100%",buttons:[],value:n.state.newTag}),b=a.createElement(s.default,{label:p.assets.assetTag,width:h?"50%":"100%"},n.renderTags());return a.createElement("div",{className:"asset-details"},a.createElement("h2",null,d),a.createElement("div",{className:"header-buttons"},n.props.headerButtons),a.createElement(l.default,null),y,g,v,b)},n.state={newTag:""},n}return o(t,e),t.prototype.renderTags=function(){var e=this;return this.props.asset.tags.map((function(t){return a.createElement(u.default,{key:t,copy:t,removeHandler:function(){return e.props.onRemoveTag(t)},colorize:!0})}))},t}(a.Component);t.default=d.connect((function(e){return{assetTags:e.assetTags}}),null)(f)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(64),u=n(16),l=n(7),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.getFirstAct=function(e){for(var t in e.acts)if(e.acts.hasOwnProperty(t))return e.acts[t]},n}return o(t,e),t.prototype.createUrl=function(){var e=this.props,t=e.story,n=e.compositionId,r=e.accessKey,o=t.id,a=this.getFirstAct(t).inventory,i="";for(var s in a){if(a.hasOwnProperty(s))i+=""+(i?"&":"?")+s+"={{"+s.toUpperCase()+"}}"}var u=window.location.href,l=-1!==u.indexOf("staging")||-1!==u.indexOf("localhost")?"staging.imposium.com":"imposium.com";return'<a href="'+("https://player."+l+"/new/"+r+"/"+o+"/"+n+i)+'" target="_blank"><img width="400" alt="Play Video" src="'+("https://api."+l+"/story/"+o+"/"+n+"/poster"+i)+'"></a>'},t.prototype.render=function(){var e=this.props,t=e.status,n=e.handleError,r=e.handleNotification;return a.createElement("div",null,a.createElement("h2",null,l.publish.hubspotTitle),a.createElement(u.default,null),a.createElement("p",null,l.publish.hubspotDesc),a.createElement(u.default,null),a.createElement(s.default,{label:l.publish.embeddedCode,value:this.createUrl(),showCopy:t!==l.header.publishing,onNotification:function(e){return r(e)},onError:function(e){return n(e)},readOnly:!0}),t===l.header.publishing&&a.createElement(i.default,{size:"small",customStyles:{margin:0,height:"20px",border:"none"},color:"primary",onClick:function(){return n(l.publish.embeddedCodeCopyError)}},c.ICON_CLIPBOARD))},t}(a.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(16),s=n(54),u=n(135),l=n(7),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return a.createElement("div",null,a.createElement("h2",null,l.integration.documentation),a.createElement(i.default,null),a.createElement("p",null,l.integration.docParagraph),a.createElement("div",{className:"link-wrapper"},null===u.documentationLinks||void 0===u.documentationLinks?void 0:u.documentationLinks.map((function(e){return a.createElement(s.BigLink,{key:e.key,label:e.label,link:e.link})}))))},t}(a.PureComponent);t.default=c},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.downloadSDKArchive=void 0;var o=n(27),a=n(510),i={method:"POST",responseType:"blob",headers:{"Content-Type":"application/json"}};t.downloadSDKArchive=function(e,t){var n=r(r({},i),{url:"https://template-generator.imposium.com/sdk-archive",data:JSON.stringify(t)});o.default(n).then((function(t){a.saveAs(t.data,e)})).catch((function(e){console.error("Failed to download sdk archive:",e)}))}},function(e,t,n){(function(n){var r,o,a;o=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,i=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(e,n,i){var s=a.URL||a.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?o(u):r(u.href)?t(e,n,i):o(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,a),n);else if(r(e))t(e,n,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){o(i)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,u=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&u||i)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,p=d.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});a.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,o):r)||(e.exports=a)}).call(this,n(38))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDemoURL=void 0;t.getDemoURL=function(){var e=window.location.href;return-1!==e.indexOf("localhost")?"http://localhost:3044":-1!==e.indexOf("staging")?"https://demo.staging.imposium.com":"https://demo.imposium.com"}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(16),u=n(21),l=n(7),c=n(54),d=n(513),p=n(4),f=n(1),h=function(e){function t(t){var n=e.call(this,t)||this;return n.selectCsv=function(){n.hiddenFileInputRef.current&&n.hiddenFileInputRef.current.click()},n.doUploadCsv=function(e){e.persist();var t=n.props.handleError;n.setState({uploading:!0,renderedBatch:!1}),n.props.createFreshBatch(n.getBatchName()).then((function(t){var r=t.id,o=t.name,a=t.story_id;n.setState({selectedBatchId:r}),n.importBatch({story_id:a,id:r,name:o,uploadEvt:e})})).catch((function(e){throw t(e),n.setState({uploadComplete:!1,uploading:!1}),e}))},n.state={uploadComplete:!1,uploading:!1,downloading:!1,selectedBatchId:"",renderedBatch:!1},n.hiddenFileInputRef=i.createRef(),n}return o(t,e),t.prototype.downloadSampleCsv=function(){var e=this.props.story.name,n=this.props.story.acts,r=Object.keys(n),o={};r.forEach((function(e){o=a(a({},o),n[e].inventory)}));var i=Object.keys(o).sort().map((function(e){return{id:e,name:o[e].name,show:!0}})).map((function(e){return e.id})).reduce((function(e,t){var n;return a(a({},e),((n={})[t]="",n))}),{}),s=m(e)+"-batch-template";new d.ExportToCsv(a(a({},t.CSV_EXPORT_CONFIG),{filename:s})).generateCsv([i])},t.prototype.getBatchName=function(){var e=this.props,t=e.story.name,n=e.compositionName,r=Date.now(),o=f(r).format("MMDDYY-HHmm");return m(t)+"-"+m(n)+"-"+o},t.prototype.importBatch=function(e){var t=this,n=e.story_id,r=e.id,o=e.name,a=e.uploadEvt,i=this.props,s=i.accessKey,u=i.compositionId,c=i.isExport,d=i.handleError;this.props.importBatchFromCsv(n,r,o,a.target.files[0],s,u,!c,c).then((function(){t.setState({uploadComplete:!0,uploading:!1}),c&&t.renderBatch({id:r,name:o})})).catch((function(e){var n=e.response,r=n.status,o=n.data;throw 400===r&&(d(l.publish.missingColumns),alert(l.publish.csvMissingColumns+o.error),t.hiddenFileInputRef.current.value=""),t.setState({uploadComplete:!1,uploading:!1}),e}))},t.prototype.renderBatch=function(e){var t=this,n=e.id,r=e.name;this.props.renderBatch(n,r).then((function(){t.setState({renderedBatch:!0})})).catch((function(e){throw t.props.handleError(l.publish.renderBatchFailed),t.setState({renderedBatch:!1}),e}))},t.prototype.downloadCsv=function(){var e=this;this.setState({downloading:!0},(function(){var t=e.props,n=t.status,r=(t.api,t.handleError),o=e.state.selectedBatchId;n!==l.header.publishing?e.props.getBatchExport(o).then((function(){e.props.onDone(),e.setState({downloading:!1})})):r(l.publish.downloadError)}))},t.prototype.renderLabel=function(){var e=this.props,n=e.isExport,r=e.batchJobs,o=this.state,a=o.renderedBatch,s=o.selectedBatchId,c=o.uploading,d=o.uploadComplete;if(n&&d&&!a)return i.createElement("div",{className:"progress-bar"},i.createElement("progress",{max:t.PROGRESS_MAX_VALUE,value:r.renders[s]}));if(c){var f=n?l.publish.importingData:l.publish.creatingLinks;return i.createElement("span",null,i.createElement(u.default,null)," ",f)}return i.createElement("span",null,p.ICON_UPLOAD," ",l.publish.uploadCsv)},t.prototype.render=function(){var e=this,t=this.state,n=t.uploadComplete,r=t.uploading,o=t.downloading,a=t.renderedBatch,d=(t.selectedBatchId,this.props.isExport),f=[{label:i.createElement("span",null,p.ICON_DOWNLOAD," ",l.publish.downloadSampleCsvLink),onClick:function(){return e.downloadSampleCsv()},key:"download-sample"},{label:this.renderLabel(),onClick:function(){return e.selectCsv()},key:"upload",disabled:d&&n||r}],h=o?i.createElement("span",null,i.createElement(u.default,null)," ",l.publish.exporting):i.createElement("span",null,p.ICON_DOWNLOAD," ",l.publish.btnDownload),m=i.createElement("div",null,i.createElement("h2",null,n?l.publish.downloadLink:l.publish.generatingLink),i.createElement(s.default,null),i.createElement("p",null,n?l.publish.downloadDesc:l.publish.generatingLinkDesc),i.createElement(c.BigButton,{label:h,disabled:o,onClick:function(){return e.downloadCsv()}})),_=i.createElement("div",null,i.createElement("h2",null,l.publish.emailTitle),i.createElement(s.default,null),i.createElement("p",null,l.publish.emailDesc),i.createElement("input",{type:"file",style:{display:"none"},accept:"text/csv",ref:this.hiddenFileInputRef,onChange:this.doUploadCsv}),i.createElement("div",{className:"link-wrapper"},null==f?void 0:f.map((function(e,t){return i.createElement(c.BigButton,{label:i.createElement("span",null,e.label),onClick:e.onClick,disabled:null==e?void 0:e.disabled,key:e.key})}))));return(d?a:n)?m:_},t.PROGRESS_MAX_VALUE=100,t.CSV_EXPORT_CONFIG={fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!1,showTitle:!1,useTextFile:!1,useBom:!0,useKeysAsHeaders:!0},t}(i.PureComponent),m=function(e){return e.replace(/\W/g,"")};t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(514))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.EOL="\r\n",e.BOM="\ufeff",e.DEFAULT_FIELD_SEPARATOR=",",e.DEFAULT_DECIMAL_SEPARATOR=".",e.DEFAULT_QUOTE='"',e.DEFAULT_SHOW_TITLE=!1,e.DEFAULT_TITLE="My Generated Report",e.DEFAULT_FILENAME="generated",e.DEFAULT_SHOW_LABELS=!1,e.DEFAULT_USE_TEXT_FILE=!1,e.DEFAULT_USE_BOM=!0,e.DEFAULT_HEADER=[],e.DEFAULT_KEYS_AS_HEADERS=!1,e}();t.CsvConfigConsts=r,t.ConfigDefaults={filename:r.DEFAULT_FILENAME,fieldSeparator:r.DEFAULT_FIELD_SEPARATOR,quoteStrings:r.DEFAULT_QUOTE,decimalSeparator:r.DEFAULT_DECIMAL_SEPARATOR,showLabels:r.DEFAULT_SHOW_LABELS,showTitle:r.DEFAULT_SHOW_TITLE,title:r.DEFAULT_TITLE,useTextFile:r.DEFAULT_USE_TEXT_FILE,useBom:r.DEFAULT_USE_BOM,headers:r.DEFAULT_HEADER,useKeysAsHeaders:r.DEFAULT_KEYS_AS_HEADERS};var o=function(){function e(e){this._csv="";var n=e||{};this._options=u({},t.ConfigDefaults,n),this._options.useKeysAsHeaders&&this._options.headers&&this._options.headers.length>0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=u({},t.ConfigDefaults,e)},enumerable:!0,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=r.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._getHeaders(),this._getBody(),""!=this._csv){if(t)return this._csv;var n=this._options.useTextFile?"plain":"csv",o=this._options.useTextFile?".txt":".csv",a=new Blob([this._csv],{type:"text/"+n+";charset=utf8;"});if(navigator.msSaveBlob){var i=this._options.filename.replace(/ /g,"_")+o;navigator.msSaveBlob(a,i)}else{this._options.useTextFile,encodeURI(this._csv);var s=document.createElement("a");s.href=URL.createObjectURL(a),s.setAttribute("visibility","hidden"),s.download=this._options.filename.replace(/ /g,"_")+o,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders){var e=this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers;if(e.length>0){for(var t="",n=0;n<e.length;n++)t+=e[n]+this._options.fieldSeparator;t=t.slice(0,-1),this._csv+=t+r.EOL}}},e.prototype._getBody=function(){for(var e=Object.keys(this._data[0]),t=0;t<this._data.length;t++){for(var n="",o=0;o<e.length;o++){var a=e[o];n+=this._formatData(this._data[t][a])+this._options.fieldSeparator}n=n.slice(0,-1),this._csv+=n+r.EOL}},e.prototype._formatData=function(e){return"locale"===this._options.decimalSeparator&&this._isFloat(e)?e.toLocaleString():"."!==this._options.decimalSeparator&&this._isFloat(e)?e.toString().replace(".",this._options.decimalSeparator):"string"==typeof e?(e=e.replace(/"/g,'""'),(this._options.quoteStrings||e.indexOf(",")>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=o;var a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var o,u=s(e),l=1;l<arguments.length;l++){for(var c in t=Object(arguments[l]))a.call(t,c)&&(u[c]=t[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(t);for(var d=0;d<o.length;d++)i.call(t,o[d])&&(u[o[d]]=t[o[d]])}}return u}},function(e,t,n){var r={"./af":136,"./af.js":136,"./ar":137,"./ar-dz":138,"./ar-dz.js":138,"./ar-kw":139,"./ar-kw.js":139,"./ar-ly":140,"./ar-ly.js":140,"./ar-ma":141,"./ar-ma.js":141,"./ar-sa":142,"./ar-sa.js":142,"./ar-tn":143,"./ar-tn.js":143,"./ar.js":137,"./az":144,"./az.js":144,"./be":145,"./be.js":145,"./bg":146,"./bg.js":146,"./bm":147,"./bm.js":147,"./bn":148,"./bn-bd":149,"./bn-bd.js":149,"./bn.js":148,"./bo":150,"./bo.js":150,"./br":151,"./br.js":151,"./bs":152,"./bs.js":152,"./ca":153,"./ca.js":153,"./cs":154,"./cs.js":154,"./cv":155,"./cv.js":155,"./cy":156,"./cy.js":156,"./da":157,"./da.js":157,"./de":158,"./de-at":159,"./de-at.js":159,"./de-ch":160,"./de-ch.js":160,"./de.js":158,"./dv":161,"./dv.js":161,"./el":162,"./el.js":162,"./en-au":163,"./en-au.js":163,"./en-ca":164,"./en-ca.js":164,"./en-gb":165,"./en-gb.js":165,"./en-ie":166,"./en-ie.js":166,"./en-il":167,"./en-il.js":167,"./en-in":168,"./en-in.js":168,"./en-nz":169,"./en-nz.js":169,"./en-sg":170,"./en-sg.js":170,"./eo":171,"./eo.js":171,"./es":172,"./es-do":173,"./es-do.js":173,"./es-mx":174,"./es-mx.js":174,"./es-us":175,"./es-us.js":175,"./es.js":172,"./et":176,"./et.js":176,"./eu":177,"./eu.js":177,"./fa":178,"./fa.js":178,"./fi":179,"./fi.js":179,"./fil":180,"./fil.js":180,"./fo":181,"./fo.js":181,"./fr":182,"./fr-ca":183,"./fr-ca.js":183,"./fr-ch":184,"./fr-ch.js":184,"./fr.js":182,"./fy":185,"./fy.js":185,"./ga":186,"./ga.js":186,"./gd":187,"./gd.js":187,"./gl":188,"./gl.js":188,"./gom-deva":189,"./gom-deva.js":189,"./gom-latn":190,"./gom-latn.js":190,"./gu":191,"./gu.js":191,"./he":192,"./he.js":192,"./hi":193,"./hi.js":193,"./hr":194,"./hr.js":194,"./hu":195,"./hu.js":195,"./hy-am":196,"./hy-am.js":196,"./id":197,"./id.js":197,"./is":198,"./is.js":198,"./it":199,"./it-ch":200,"./it-ch.js":200,"./it.js":199,"./ja":201,"./ja.js":201,"./jv":202,"./jv.js":202,"./ka":203,"./ka.js":203,"./kk":204,"./kk.js":204,"./km":205,"./km.js":205,"./kn":206,"./kn.js":206,"./ko":207,"./ko.js":207,"./ku":208,"./ku.js":208,"./ky":209,"./ky.js":209,"./lb":210,"./lb.js":210,"./lo":211,"./lo.js":211,"./lt":212,"./lt.js":212,"./lv":213,"./lv.js":213,"./me":214,"./me.js":214,"./mi":215,"./mi.js":215,"./mk":216,"./mk.js":216,"./ml":217,"./ml.js":217,"./mn":218,"./mn.js":218,"./mr":219,"./mr.js":219,"./ms":220,"./ms-my":221,"./ms-my.js":221,"./ms.js":220,"./mt":222,"./mt.js":222,"./my":223,"./my.js":223,"./nb":224,"./nb.js":224,"./ne":225,"./ne.js":225,"./nl":226,"./nl-be":227,"./nl-be.js":227,"./nl.js":226,"./nn":228,"./nn.js":228,"./oc-lnc":229,"./oc-lnc.js":229,"./pa-in":230,"./pa-in.js":230,"./pl":231,"./pl.js":231,"./pt":232,"./pt-br":233,"./pt-br.js":233,"./pt.js":232,"./ro":234,"./ro.js":234,"./ru":235,"./ru.js":235,"./sd":236,"./sd.js":236,"./se":237,"./se.js":237,"./si":238,"./si.js":238,"./sk":239,"./sk.js":239,"./sl":240,"./sl.js":240,"./sq":241,"./sq.js":241,"./sr":242,"./sr-cyrl":243,"./sr-cyrl.js":243,"./sr.js":242,"./ss":244,"./ss.js":244,"./sv":245,"./sv.js":245,"./sw":246,"./sw.js":246,"./ta":247,"./ta.js":247,"./te":248,"./te.js":248,"./tet":249,"./tet.js":249,"./tg":250,"./tg.js":250,"./th":251,"./th.js":251,"./tk":252,"./tk.js":252,"./tl-ph":253,"./tl-ph.js":253,"./tlh":254,"./tlh.js":254,"./tr":255,"./tr.js":255,"./tzl":256,"./tzl.js":256,"./tzm":257,"./tzm-latn":258,"./tzm-latn.js":258,"./tzm.js":257,"./ug-cn":259,"./ug-cn.js":259,"./uk":260,"./uk.js":260,"./ur":261,"./ur.js":261,"./uz":262,"./uz-latn":263,"./uz-latn.js":263,"./uz.js":262,"./vi":264,"./vi.js":264,"./x-pseudo":265,"./x-pseudo.js":265,"./yo":266,"./yo.js":266,"./zh-cn":267,"./zh-cn.js":267,"./zh-hk":268,"./zh-hk.js":268,"./zh-mo":269,"./zh-mo.js":269,"./zh-tw":270,"./zh-tw.js":270};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=515},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(39),a=n(28),i=null;try{var s=JSON.parse(localStorage.getItem(o.AUTH_CACHE_KEY));if(s){var u=s.idTokenPayload.exp;a.default.checkExpiry(u)&&(i=s)}}catch(e){console.warn("Cached credentials were malformed or missing, redirected to login.")}t.default=function(e,t){switch(void 0===e&&(e=i),t.type){case o.default.LOGIN:return r({},t.auth);case o.default.CLEAR:return null;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(40),a=null;try{a=JSON.parse(localStorage.getItem(o.ACCESS_CACHE_KEY))}catch(e){console.warn("Cached access data was malformed or missing, redirected to login.")}t.default=function(e,t){switch(void 0===e&&(e=a),t.type){case o.default.SET:case o.default.STORY_ADDED:case o.default.STORY_NAME_MUTATION:case o.default.ORG_NAME_MUTATION:case o.default.STORY_DELETED:return r({},t.accessData);case o.default.CLEAR:return null;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(55),a={publishing:!1};t.default=function(e,t){switch(void 0===e&&(e=a),t.type){case o.default.UPDATE_PUBLISH_STATUS:return r(r({},e),t.data);case o.default.CLEAR_PUBLISH_STATUS:return a;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),a={page:1,order:"date_created",order_direction:"desc",name:"",type:"",tags:""};t.default=function(e,t){switch(void 0===e&&(e=a),t.type){case o.default.UPDATE:return r(r({},e),t.newFilters);case o.default.RESET:return r({},a);default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),s={loading:!1};t.default=function(e,t){void 0===e&&(e=s);var n,u=[];switch(t.type){case i.default.TOGGLE_LOADING:return r(r({},e),{loading:t.toggle});case i.default.GET:return r(r({},e),t.assetList);case i.default.ADD_TAG:for(var l=0,c=e.assets.length;l<c;l++)(n=e.assets[l]).id===t.id?u[l]=r(r({},n),{tags:a(a([],o(n.tags)),o(t.freshTags))}):u[l]=n;return r(r({},e),{assets:u});case i.default.DELETE_TAG:return r(r({},e),{assets:e.assets.map((function(e){return e.id===t.id?r(r({},e),{tags:e.tags.filter((function(e){return e!==t.tag}))}):e}))});case i.default.UPDATE_NAME:return r(r({},e),{assets:e.assets.map((function(e){return e.id===t.id?r(r({},e),{name:t.name}):e}))});case i.default.UPDATE_DATA:return r(r({},e),{assets:e.assets.map((function(e){return e.id===t.id?r(r({},e),{data:t.data}):e}))});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83),o=[];t.default=function(e,t){switch(void 0===e&&(e=o),t.type){case r.default.GET:return t.assetTags;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(52),s={autoTag:!0,assignToStory:!0,uploads:[]};t.default=function(e,t){switch(void 0===e&&(e=s),t.type){case i.default.TOGGLE_AUTO_TAG:return r(r({},e),{autoTag:t.toggle});case i.default.TOGGLE_ASSIGN_TO_STORY:return r(r({},e),{assignToStory:t.toggle});case i.default.ADD_UPLOAD:return r(r({},e),{uploads:a(a([],o(e.uploads)),[t.uploadMeta])});case i.default.UPDATE_PERCENT_UPLOADED:var n=e.uploads.map((function(e){return e.filename===t.filename?r(r({},e),{percent:t.percent}):e}));return r(r({},e),{uploads:n});case i.default.REMOVE_UPLOAD:return r(r({},e),{uploads:e.uploads.filter((function(e){return e.filename!==t.filename}))});default:return e}}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},o=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(33),i=[];t.default=function(e,t){switch(void 0===e&&(e=i),t.type){case a.default.SELECT_ALL:return o([],r(t.allIds));case a.default.SELECT_ASSET:return o(o([],r(e)),[t.id]);case a.default.SELECT_MULTIPLE:return o([],r(new Set(o(o([],r(e)),r(t.assets)))));case a.default.DESELECT_ASSET:return e.filter((function(e){return e!==t.id}));case a.default.RESET_SELECTION:return[];default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),a=n(8),i=n(525),s=n(7),u=n(28),l=n(26),c=function(){function e(e,t,n){var c=this;this.pollingInterval=1e3,this.cancelTokenCache={player:void 0,system:void 0},this.cancelTokens={},this.doRequest=function(e,t){return void 0===t&&(t=""),new Promise((function(n,r){c.http(e).then((function(e){t&&c.clearCache(t),n(e.data)})).catch((function(e){!o.default.isCancel(e)&&t&&c.clearCache(t),!e.response||403!==e.response.status&&401!==e.response.status||(alert(s.assets.sessionExpired),l.default.getSession()&&(l.default.removeSession(),u.default.logout())),r(e)}))}))},this.cancelPrevious=function(e){var t=o.default.CancelToken.source();return c.cancelTokenCache[e]&&c.cancelTokenCache[e].cancel(),c.cancelTokenCache[e]=t,t.token},this.clearCache=function(e){c.cancelTokenCache[e]=void 0},this.doAWSRequest=function(e,t){return void 0===t&&(t=""),new Promise((function(t,n){c.awsHttp(e).then((function(e){t(e.data)})).catch((function(e){n(e)}))}))},this.saveStory=function(e,t){return c.doRequest({method:"PATCH",url:"/story/"+e,data:t})},this.newStory=function(e){return c.doRequest({method:"POST",url:"/story",data:e})},this.deleteStory=function(e){return c.doRequest({method:"DELETE",url:"/story/"+e})},this.getStoryStatus=function(e){return c.doRequest({method:"GET",url:"/story/"+e+"/version"})},this.getStoryVersions=function(e){return c.doRequest({method:"GET",url:"/story/"+e+"/versions"})},this.revertVersion=function(e,t){var n={version_id:t};return c.doRequest({method:"POST",url:"/story/"+e+"/version/revert",data:n})},this.getSignedUrl=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/upload-url",params:{filename:t.name,content_type:t.type}})},this.uploadToSignedUrl=function(e,t,n){return c.doAWSRequest({url:e,method:"PUT",data:t,onUploadProgress:n,headers:{"Content-Type":t.type}})},this.checkS3Bucket=function(e){var t="/bucket/"+e;return c.doRequest({method:"GET",url:t})},this.createS3Bucket=function(e,t,n,r){var o="/bucket/"+e,a={region:t,create_distribution:r?1:0,read_only:n?1:0};return c.doRequest({method:"POST",url:o,data:a})},this.processStoryFile=function(e,t,n){var r="/story/"+e+"/file",o={};return t?o.file_key=t:n&&(o.url=n),c.doRequest({method:"POST",url:r,data:o})},this.getAssets=function(e,t,n){void 0===n&&(n=!1);var r="/assets?items_per_page=50&optional_story_id="+t+"&unprocessed="+n,o=function(t){e.hasOwnProperty(t)&&(e[t]&&"tags"!==t&&(r+="&"+t+"="+encodeURIComponent(e[t])),e[t]&&"tags"===t&&e[t].split(",").forEach((function(e,n){r+="&"+t+"["+n+"]="+encodeURIComponent(e)})))};for(var a in e)o(a);return c.doRequest({method:"GET",url:r})},this.getAssetItem=function(e){return c.doRequest({method:"GET",url:"/assets/"+e})},this.duplicateAsset=function(e,t){return c.doRequest({method:"POST",url:"/assets/"+e+"/copy",data:{name:t}})},this.cancelRequest=function(e){var t=o.default.CancelToken.source();return c.cancelTokens[e]=t,t.token},this.clearCancelTokes=function(){c.cancelTokens={}},this.uploadAsset=function(e,t,n,r,o){var a=new FormData,i=c.cancelRequest(o);return e&&a.append("story_id",e),a.append("tags",t),a.append("file",n),c.doRequest({method:"POST",url:"/assets",data:a,onUploadProgress:r,cancelToken:i})},this.cancelUploadAssets=function(e){var t=c.cancelTokens[e];t&&t.cancel()},this.createCompositionAsset=function(e,t,n){var r=new FormData;return r.append("story_id",e),r.append("data",t),r.append("type","video_composition"),r.append("name",n||"New Composition"),c.doRequest({method:"POST",url:"/assets",data:r})},this.createStaticCompositionAsset=function(e,t){var n=new FormData;return n.append("story_id",e),n.append("data",t),n.append("type","static_composition"),n.append("name","New Template"),c.doRequest({method:"POST",url:"/assets",data:n})},this.deleteAsset=function(e){return c.doRequest({method:"DELETE",url:"/assets/"+e})},this.deleteAssets=function(e){return c.doRequest({method:"DELETE",url:"/assets",data:{ids:e}})},this.copyAsset=function(e,t){return c.doRequest({method:"POST",url:"/assets/"+e+"/copy",data:t})},this.addAssetTag=function(e,t){return c.doRequest({method:"POST",url:"/assets/"+e+"/tag",data:{tag:t}})},this.deleteAssetTag=function(e,t){return c.doRequest({method:"DELETE",url:"/assets/"+e+"/tag",data:{tag:t}})},this.updateAsset=function(e,t){return c.doRequest({method:"PATCH",url:"/assets/"+e,data:t})},this.getAssetTags=function(e){return c.doRequest({method:"GET",url:"/assets/tags?story_id="+e})},this.getStory=function(e){return c.doRequest({method:"GET",url:"/story/"+e})},this.getExperiences=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/experiences",params:t})},this.exportExperiences=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/experiences/export",params:t})},this.blockByExperience=function(e){var t="/experience/"+e+"/block";return c.doRequest({method:"POST",url:t})},this.getBatches=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/batches",params:t})},this.getBatch=function(e,t){return c.doRequest({method:"GET",url:"/batch/"+e,params:{page:t}})},this.getBatchProgress=function(e){return c.doRequest({method:"GET",url:"/batch/"+e+"/progress"})},this.createFreshBatch=function(e,t){return c.doRequest({method:"POST",url:"/batch",data:{story_id:e,name:t}})},this.updateBatchName=function(e,t){return c.doRequest({method:"PATCH",url:"/batch/"+e+"/rename",data:{name:t}})},this.importBatchDataFromCsv=function(e,t,n,r,o,a){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=!1);var i=new FormData;return i.append("file_key",t),n&&r&&o&&(i.append("include_email_embed","true"),i.append("composition_id",o),i.append("access_key",r)),a&&i.append("include_media","true"),c.doRequest({method:"POST",url:"/batch/"+e+"/data/from-csv",data:i})},this.updateBatchColumns=function(e,t){return c.doRequest({method:"PUT",url:"/batch/"+e+"/columns",data:t})},this.insertNewRow=function(e,t){return c.doRequest({method:"POST",url:"/batch/"+e+"/row/"+t})},this.updateCellValue=function(e,t,n,r){return c.doRequest({method:"PUT",url:"/batch/"+e+"/cell",data:{column_index:t,row_index:n,value:r}})},this.prepareBatchForRender=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/prepare"})},this.checkBatchExportStatus=function(e){return c.doRequest({method:"GET",url:"/batch/"+e+"/export"})},this.invokeBatchExportJob=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/export"})},this.downloadBatchExport=function(e,t){return c.doRequest({method:"GET",url:"/batch/"+e+"/export/"+t,responseType:"blob",params:{preserve:"true"}})},this.duplicateBatch=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/duplicate"})},this.deleteBatch=function(e){return c.doRequest({method:"DELETE",url:"/batch/"+e})},this.updateModerationStatus=function(e,t,n){return c.doRequest({method:"POST",url:"/experience/"+e+"/status",data:{status:t,reason:n}})},this.addOrReplaceNote=function(e,t){return c.doRequest({method:"POST",url:"/experience/"+e+"/notes",data:{notes:t}})},this.getJob=function(e){return c.doRequest({method:"GET",url:"/job/"+e})},this.runCut=function(e,t,n,r){var o="/job/"+i.JOB_TYPES.RUN_CUT,a={story_id:e,act_id:t,scene_id:n,cut_id:r};return c.doRequest({method:"POST",url:o,data:a})},this.runReRenderCuts=function(e,t,n){var r="/job/"+i.JOB_TYPES.RE_RUN_CUTS,o={story_id:e,act_id:t,scene_id:n};return c.doRequest({method:"POST",url:r,data:o})},this.runProcessBaseVideo=function(e,t){var n="/job/"+i.JOB_TYPES.PROCESS_BASE_VIDEO,r={story_id:e,file_key:t};return c.doRequest({method:"POST",url:n,data:r})},this.runPublish=function(e,t){var n={story_id:e,message:t};return c.doRequest({method:"POST",url:"/job/publish",data:n})},this.cancelPublish=function(e){var t={story_id:e};return c.doRequest({method:"DELETE",url:"/job/publish",data:t})},this.pollJob=function(e){var t={method:"GET",url:"/job/"+e};return new Promise((function(e,n){c.pollForJob(t,e,n)}))},this.pollForJob=function(e,t,n){c.http(e).then((function(r){"failed"===r.data.status?n(r):void 0!==r.data.output?t(r.data):c.jobPollTimer=setTimeout((function(){c.pollForJob(e,t,n)}),c.pollingInterval)})).catch((function(e){n(e)}))},this.pollForExperience=function(e,t,n){c.http(e).then((function(r){"failed"===r.data.status?n(r):void 0!==r.data.output?a.isObjEmpty(r.data.output)?c.experiencePollTimer=setTimeout((function(){c.pollForExperience(e,t,n)}),c.pollingInterval):t(r.data):c.experiencePollTimer=setTimeout((function(){c.pollForExperience(e,t,n)}),c.pollingInterval)})).catch((function(e){n(e)}))},this.getJobLogUrl=function(e){var t="/job/"+e+"/log-url";return c.doRequest({method:"GET",url:t})},this.getJobLog=function(e){return c.doAWSRequest({method:"GET",url:e})},this.createExperience=function(e,t,n,r){void 0===t&&(t={});var o=c.experienceFormData(e,t,n);r&&o.append("published","false");return c.doRequest({method:"POST",url:"/experience",data:o})},this.deleteExperience=function(e,t){void 0===t&&(t=!0);var n="/experience/"+e,r={erase_media:t};return c.doRequest({method:"DELETE",data:r,url:n})},this.triggerEvent=function(e,t,n){var r="/experience/"+e+"/trigger-event";if(t){var o=new FormData;return o.append("composition_id",t),n&&o.append("published","false"),c.doRequest({method:"POST",url:r,data:o})}return c.doRequest({method:"POST",url:r})},this.getExperience=function(e,t){void 0===t&&(t=!1);var n={method:"GET",url:"/experience/"+e};return t?new Promise((function(e,t){c.pollForExperience(n,e,t)})):c.doRequest(n)},this.experienceFormData=function(e,t,n){var o=r({},t),a=new FormData;for(var i in a.append("story_id",e),n&&a.append("composition_id",n),o)if(o[i]){var s=o[i];if(s&&"file"===s.type){var u=s.files;u.length>0?(o[i]="",a.append(i,u[0])):o[i]=""}else s&&s instanceof File&&(o[i]="",a.append(i,s,s.name));a.append("inventory["+i+"]",o[i])}return a},this.getAccssCredentials=function(){return c.doRequest({method:"GET",url:"/api-key"})},this.createAccessCredentials=function(e){var t={name:e};return c.doRequest({method:"POST",data:t,url:"/api-key"})},this.deleteAccessCrednetials=function(e){var t={access_key_id:e};return c.doRequest({method:"DELETE",data:t,url:"/api-key"})},this.invokeBatchRenderJob=function(e){return c.doRequest({method:"POST",url:"/job/render-batch",data:{batch_id:e}})},this.cancelBatchRenderJob=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/cancel"})},this.getUsers=function(e,t,n){return c.doRequest({url:"/account/"+e+"/users?page="+t+"&items_per_page="+n,method:"GET"})},this.addUser=function(e,t,n){return c.doRequest({url:"/account/"+e+"/grant",method:"POST",data:{email:t,role_id:n}})},this.resendInvite=function(e,t){return c.doRequest({url:"/account/"+e+"/resend",method:"POST",data:{email:t}})},this.revokeInvite=function(e,t){return c.doRequest({url:"/account/"+e+"/revoke",method:"POST",data:{email:t}})},this.updateInviteRole=function(e,t,n){return c.doRequest({url:"/account/"+e+"/grant",method:"PATCH",data:{email:t,role_id:n}})},this.updateRole=function(e,t,n){return c.doRequest({url:"/account/"+e+"/user",method:"PATCH",data:{user_id:t,role_id:n}})},this.deleteUser=function(e,t){return c.doRequest({url:"/account/"+e+"/user",method:"DELETE",data:{user_id:t}})},this.getPlayerMetrics=function(e,t,n,r){void 0===r&&(r="player");var o={method:"GET",url:"/metrics/player/"+e,params:{start:t,end:n},cancelToken:c.cancelPrevious(r)};return c.doRequest(o,r)},this.getSystemMetrics=function(e,t,n,r,o){void 0===o&&(o="system");var a={method:"GET",url:"/metrics/system/"+e,params:{start:t,end:n,step:r},cancelToken:c.cancelPrevious(o)};return c.doRequest(a,o)},this.getOrganizations=function(e,t){return c.doRequest({url:"/account",method:"GET",params:{page:e,items_per_page:t}})},this.addOrganization=function(e,t){return c.doRequest({url:"/account",method:"POST",data:{name:e,initial_story:t}})},this.updateOrgName=function(e,t){return c.doRequest({url:"/account/"+e,method:"PATCH",data:{name:t}})},this.deleteOrg=function(e){},this.changeOrgPlan=function(e,t){return c.doRequest({url:"/account/"+e,method:"PATCH",data:{tier:t}})},this.getAccountInfo=function(e){return c.doRequest({url:"/account/"+e,method:"GET"})},this.cancelOrgPlan=function(e){return c.doRequest({url:"/account/"+e,method:"PATCH",data:{cancel:!0}})},this.getNextBillingPeriod=function(e){return c.doRequest({url:"/account/"+e+"/next-payment",method:"GET"})},this.getRedirectToBillingPortal=function(e){return c.doRequest({url:"/account/"+e+"/billing-portal",method:"GET"})},this.getRedirectToRenew=function(e,t){return c.doRequest({url:"/account/"+e+"/renew?tier="+t,method:"GET"})},this.getAPIUsageOverview=function(e,t){var n=e&&t?"?start="+e+"&end="+t:"";return c.doRequest({url:"/usage"+n,method:"GET"})},this.getUsageGraph=function(e,t,n){var r=t&&n?"?start="+t+"&end="+n:"";return c.doRequest({url:"/usage/daily/"+e+r,method:"GET"})},this.getBillingPeriods=function(){return c.doRequest({url:"/usage/billing-periods",method:"GET"})},this.http=n?o.default.create({baseURL:e,headers:{Authorization:"Bearer "+t,"X-Imposium-API-Version":"2.0.0","X-Imposium-Account-Id":n||""}}):o.default.create({baseURL:e,headers:{"X-Imposium-Access-Key":""+t,"X-Imposium-API-Version":"2.0.0"}}),this.awsHttp=o.default.create()}return e.prototype.cancelExperiencePolling=function(){var e=this;return new Promise((function(t){clearTimeout(e.experiencePollTimer),t()}))},e.prototype.cancelJobPolling=function(){var e=this;return new Promise((function(t){clearTimeout(e.jobPollTimer),t()}))},e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JOB_TYPES=void 0,t.JOB_TYPES={RUN_CUT:"make-cut",PROCESS_BASE_VIDEO:"process-base-video",RE_RUN_CUTS:"recut-scene"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=function(e){var t=this;this.doRequest=function(e){return new Promise((function(n,r){t.http(e).then((function(e){n(e.data)})).catch((function(e){r(e)}))}))},this.updateModerationStatus=function(e,n,r){return t.doRequest({method:"POST",url:"/",data:{task:"update-experience-status",experience_id:e,status:n,reason:r}})},this.addOrReplaceNote=function(e,n){return t.doRequest({method:"POST",url:"/",data:{task:"update-experience-notes",experience_id:e,notes:n}})},this.http=r.default.create({baseURL:e+"/1.1"})};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(528),o=function(){function e(){}return e.setItem=function(e,t){return new Promise((function(n,o){r.setItem(e,t).then((function(){return n(null)})).catch((function(e){console.error("Failed to store key value pair:",e),o(e)}))}))},e.getItem=function(e){return new Promise((function(t,n){r.getItem(e).then((function(e){t(e)})).catch((function(e){console.error("Failed to look up value for key:",e),n(e)}))}))},e}();t.default=o},function(e,t){e.exports=h},function(e,t,n){"use strict";n.r(t),n.d(t,"AlphaPicker",(function(){return qn})),n.d(t,"BlockPicker",(function(){return lo})),n.d(t,"CirclePicker",(function(){return Co})),n.d(t,"default",(function(){return Uo})),n.d(t,"ChromePicker",(function(){return Uo})),n.d(t,"CompactPicker",(function(){return qo})),n.d(t,"GithubPicker",(function(){return Ko})),n.d(t,"HuePicker",(function(){return Qo})),n.d(t,"MaterialPicker",(function(){return ea})),n.d(t,"PhotoshopPicker",(function(){return ua})),n.d(t,"SketchPicker",(function(){return ma})),n.d(t,"SliderPicker",(function(){return ba})),n.d(t,"SwatchesPicker",(function(){return xa})),n.d(t,"TwitterPicker",(function(){return Sa})),n.d(t,"GooglePicker",(function(){return Pa})),n.d(t,"CustomPicker",(function(){return Pn}));var r=n(0),o=n.n(r),a=n(3),i=n.n(a),s=function(e,t,n,r,o){var a=o.clientWidth,i=o.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(o.getBoundingClientRect().left+window.pageXOffset),c=u-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>i?1:Math.round(100*c/i)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var p=void 0;if(r!==(p=l<0?0:l>a?1:Math.round(100*l/a)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null},u={},l=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(u[o])return u[o];var a=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return u[o]=a,a},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(e){var t=e.white,n=e.grey,a=e.size,s=e.renderers,u=e.borderRadius,d=e.boxShadow,p=e.children,f=i()({default:{grid:{borderRadius:u,boxShadow:d,absolute:"0px 0px 0px 0px",background:"url("+l(t,n,a,s.canvas)+") center left"}}});return Object(r.isValidElement)(p)?o.a.cloneElement(p,c({},p.props,{style:c({},p.props.style,f.grid)})):o.a.createElement("div",{style:f.grid})};d.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var p=d,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=function(e){function t(){var e,n,r;m(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=_(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=s(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},_(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=i()({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:f({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return o.a.createElement("div",{style:n.alpha},o.a.createElement("div",{style:n.checkboard},o.a.createElement(p,{renderers:this.props.renderers})),o.a.createElement("div",{style:n.gradient}),o.a.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.a.createElement("div",{style:n.pointer},this.props.pointer?o.a.createElement(this.props.pointer,this.props):o.a.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var v=[38,40],b=1,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,v.indexOf(t)>-1)){var o=n.getArrowOffset(),a=38===e.keyCode?r+o:r-o;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+b++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),g(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=i()({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.a.createElement("div",{style:t.wrap},o.a.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.a.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component),M=function(e,t,n,r){var o=r.clientWidth,a=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=i-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(l<0)c=359;else if(l>a)c=0;else{c=360*(-100*l/a+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(u<0)d=0;else if(u>o)d=359;else{d=360*(100*u/o)/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},L=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var x=function(e){function t(){var e,n,r;T(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=k(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=M(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},k(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),L(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=i()({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.a.createElement("div",{style:r.hue},o.a.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.a.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),o.a.createElement("div",{style:r.pointer},this.props.pointer?o.a.createElement(this.props.pointer,this.props):o.a.createElement("div",{style:r.slider}))))}}]),t}(r.PureComponent||r.Component),E=n(2),S=n.n(E);var D=function(){this.__data__=[],this.size=0};var O=function(e,t){return e===t||e!=e&&t!=t};var Y=function(e,t){for(var n=e.length;n--;)if(O(e[n][0],t))return n;return-1},C=Array.prototype.splice;var A=function(e){var t=this.__data__,n=Y(t,e);return!(n<0)&&(n==t.length-1?t.pop():C.call(t,n,1),--this.size,!0)};var j=function(e){var t=this.__data__,n=Y(t,e);return n<0?void 0:t[n][1]};var P=function(e){return Y(this.__data__,e)>-1};var H=function(e,t){var n=this.__data__,r=Y(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function I(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}I.prototype.clear=D,I.prototype.delete=A,I.prototype.get=j,I.prototype.has=P,I.prototype.set=H;var N=I;var R=function(){this.__data__=new N,this.size=0};var F=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var z=function(e){return this.__data__.get(e)};var U=function(e){return this.__data__.has(e)},W=n(6),B=W.a.Symbol,V=Object.prototype,q=V.hasOwnProperty,G=V.toString,J=B?B.toStringTag:void 0;var K=function(e){var t=q.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch(e){}var o=G.call(e);return r&&(t?e[J]=n:delete e[J]),o},$=Object.prototype.toString;var X=function(e){return $.call(e)},Z=B?B.toStringTag:void 0;var Q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?K(e):X(e)};var ee=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var te,ne=function(e){if(!ee(e))return!1;var t=Q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},re=W.a["__core-js_shared__"],oe=(te=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"";var ae=function(e){return!!oe&&oe in e},ie=Function.prototype.toString;var se=function(e){if(null!=e){try{return ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ue=/^\[object .+?Constructor\]$/,le=Function.prototype,ce=Object.prototype,de=le.toString,pe=ce.hasOwnProperty,fe=RegExp("^"+de.call(pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var he=function(e){return!(!ee(e)||ae(e))&&(ne(e)?fe:ue).test(se(e))};var me=function(e,t){return null==e?void 0:e[t]};var _e=function(e,t){var n=me(e,t);return he(n)?n:void 0},ye=_e(W.a,"Map"),ge=_e(Object,"create");var ve=function(){this.__data__=ge?ge(null):{},this.size=0};var be=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},we=Object.prototype.hasOwnProperty;var Me=function(e){var t=this.__data__;if(ge){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return we.call(t,e)?t[e]:void 0},Le=Object.prototype.hasOwnProperty;var Te=function(e){var t=this.__data__;return ge?void 0!==t[e]:Le.call(t,e)};var ke=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ge&&void 0===t?"__lodash_hash_undefined__":t,this};function xe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xe.prototype.clear=ve,xe.prototype.delete=be,xe.prototype.get=Me,xe.prototype.has=Te,xe.prototype.set=ke;var Ee=xe;var Se=function(){this.size=0,this.__data__={hash:new Ee,map:new(ye||N),string:new Ee}};var De=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Oe=function(e,t){var n=e.__data__;return De(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ye=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t};var Ce=function(e){return Oe(this,e).get(e)};var Ae=function(e){return Oe(this,e).has(e)};var je=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pe.prototype.clear=Se,Pe.prototype.delete=Ye,Pe.prototype.get=Ce,Pe.prototype.has=Ae,Pe.prototype.set=je;var He=Pe;var Ie=function(e,t){var n=this.__data__;if(n instanceof N){var r=n.__data__;if(!ye||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new He(r)}return n.set(e,t),this.size=n.size,this};function Ne(e){var t=this.__data__=new N(e);this.size=t.size}Ne.prototype.clear=R,Ne.prototype.delete=F,Ne.prototype.get=z,Ne.prototype.has=U,Ne.prototype.set=Ie;var Re=Ne,Fe=function(){try{var e=_e(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var ze=function(e,t,n){"__proto__"==t&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Ue=function(e,t,n){(void 0!==n&&!O(e[t],n)||void 0===n&&!(t in e))&&ze(e,t,n)};var We=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))break}return t}}(),Be=n(273),Ve=W.a.Uint8Array;var qe=function(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t};var Ge=function(e,t){var n=t?qe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Je=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Ke=Object.create,$e=function(){function e(){}return function(t){if(!ee(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Xe=function(e,t){return function(n){return e(t(n))}},Ze=Xe(Object.getPrototypeOf,Object),Qe=Object.prototype;var et=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qe)};var tt=function(e){return"function"!=typeof e.constructor||et(e)?{}:$e(Ze(e))};var nt=function(e){return null!=e&&"object"==typeof e};var rt=function(e){return nt(e)&&"[object Arguments]"==Q(e)},ot=Object.prototype,at=ot.hasOwnProperty,it=ot.propertyIsEnumerable,st=rt(function(){return arguments}())?rt:function(e){return nt(e)&&at.call(e,"callee")&&!it.call(e,"callee")},ut=Array.isArray;var lt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ct=function(e){return null!=e&&lt(e.length)&&!ne(e)};var dt=function(e){return nt(e)&&ct(e)},pt=n(20),ft=Function.prototype,ht=Object.prototype,mt=ft.toString,_t=ht.hasOwnProperty,yt=mt.call(Object);var gt=function(e){if(!nt(e)||"[object Object]"!=Q(e))return!1;var t=Ze(e);if(null===t)return!0;var n=_t.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&mt.call(n)==yt},vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt["[object Arguments]"]=vt["[object Array]"]=vt["[object ArrayBuffer]"]=vt["[object Boolean]"]=vt["[object DataView]"]=vt["[object Date]"]=vt["[object Error]"]=vt["[object Function]"]=vt["[object Map]"]=vt["[object Number]"]=vt["[object Object]"]=vt["[object RegExp]"]=vt["[object Set]"]=vt["[object String]"]=vt["[object WeakMap]"]=!1;var bt=function(e){return nt(e)&&lt(e.length)&&!!vt[Q(e)]};var wt=function(e){return function(t){return e(t)}},Mt=n(88),Lt=Mt.a&&Mt.a.isTypedArray,Tt=Lt?wt(Lt):bt;var kt=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},xt=Object.prototype.hasOwnProperty;var Et=function(e,t,n){var r=e[t];xt.call(e,t)&&O(r,n)&&(void 0!==n||t in e)||ze(e,t,n)};var St=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?ze(n,s,u):Et(n,s,u)}return n};var Dt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Ot=/^(?:0|[1-9]\d*)$/;var Yt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ot.test(e))&&e>-1&&e%1==0&&e<t},Ct=Object.prototype.hasOwnProperty;var At=function(e,t){var n=ut(e),r=!n&&st(e),o=!n&&!r&&Object(pt.a)(e),a=!n&&!r&&!o&&Tt(e),i=n||r||o||a,s=i?Dt(e.length,String):[],u=s.length;for(var l in e)!t&&!Ct.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Yt(l,u))||s.push(l);return s};var jt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Pt=Object.prototype.hasOwnProperty;var Ht=function(e){if(!ee(e))return jt(e);var t=et(e),n=[];for(var r in e)("constructor"!=r||!t&&Pt.call(e,r))&&n.push(r);return n};var It=function(e){return ct(e)?At(e,!0):Ht(e)};var Nt=function(e){return St(e,It(e))};var Rt=function(e,t,n,r,o,a,i){var s=kt(e,n),u=kt(t,n),l=i.get(u);if(l)Ue(e,n,l);else{var c=a?a(s,u,n+"",e,t,i):void 0,d=void 0===c;if(d){var p=ut(u),f=!p&&Object(pt.a)(u),h=!p&&!f&&Tt(u);c=u,p||f||h?ut(s)?c=s:dt(s)?c=Je(s):f?(d=!1,c=Object(Be.a)(u,!0)):h?(d=!1,c=Ge(u,!0)):c=[]:gt(u)||st(u)?(c=s,st(s)?c=Nt(s):ee(s)&&!ne(s)||(c=tt(u))):d=!1}d&&(i.set(u,c),o(c,u,r,a,i),i.delete(u)),Ue(e,n,c)}};var Ft=function e(t,n,r,o,a){t!==n&&We(n,(function(i,s){if(a||(a=new Re),ee(i))Rt(t,n,s,r,e,o,a);else{var u=o?o(kt(t,s),i,s+"",t,n,a):void 0;void 0===u&&(u=i),Ue(t,s,u)}}),It)};var zt=function(e){return e};var Ut=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Wt=Math.max;var Bt=function(e,t,n){return t=Wt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Wt(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),Ut(e,this,s)}};var Vt=function(e){return function(){return e}},qt=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:Vt(t),writable:!0})}:zt,Gt=Date.now;var Jt=function(e){var t=0,n=0;return function(){var r=Gt(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(qt);var Kt=function(e,t){return Jt(Bt(e,t,zt),e+"")};var $t=function(e,t,n){if(!ee(n))return!1;var r=typeof t;return!!("number"==r?ct(n)&&Yt(t,n.length):"string"==r&&t in n)&&O(n[t],e)};var Xt=function(e){return Kt((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&$t(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}((function(e,t,n){Ft(e,t,n)})),Zt=function(e){var t=e.zDepth,n=e.radius,r=e.background,a=e.children,s=e.styles,u=void 0===s?{}:s,l=i()(Xt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},u),{"zDepth-1":1===t});return o.a.createElement("div",{style:l.wrap},o.a.createElement("div",{style:l.bg}),o.a.createElement("div",{style:l.content},a))};Zt.propTypes={background:S.a.string,zDepth:S.a.oneOf([0,1,2,3,4,5]),radius:S.a.number,styles:S.a.object},Zt.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var Qt=Zt,en=function(){return W.a.Date.now()},tn=/\s/;var nn=function(e){for(var t=e.length;t--&&tn.test(e.charAt(t)););return t},rn=/^\s+/;var on=function(e){return e?e.slice(0,nn(e)+1).replace(rn,""):e};var an=function(e){return"symbol"==typeof e||nt(e)&&"[object Symbol]"==Q(e)},sn=/^[-+]0x[0-9a-f]+$/i,un=/^0b[01]+$/i,ln=/^0o[0-7]+$/i,cn=parseInt;var dn=function(e){if("number"==typeof e)return e;if(an(e))return NaN;if(ee(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ee(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=on(e);var n=un.test(e);return n||ln.test(e)?cn(e.slice(2),n?2:8):sn.test(e)?NaN:+e},pn=Math.max,fn=Math.min;var hn=function(e,t,n){var r,o,a,i,s,u,l=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,a=o;return r=o=void 0,l=t,i=e.apply(a,n)}function h(e){return l=e,s=setTimeout(_,t),c?f(e):i}function m(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-l>=a}function _(){var e=en();if(m(e))return y(e);s=setTimeout(_,function(e){var n=t-(e-u);return d?fn(n,a-(e-l)):n}(e))}function y(e){return s=void 0,p&&r?f(e):(r=o=void 0,i)}function g(){var e=en(),n=m(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return h(u);if(d)return clearTimeout(s),s=setTimeout(_,t),f(u)}return void 0===s&&(s=setTimeout(_,t)),i}return t=dn(t)||0,ee(n)&&(c=!!n.leading,a=(d="maxWait"in n)?pn(dn(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=o=s=void 0},g.flush=function(){return void 0===s?i:y(en())},g};var mn=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return ee(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),hn(e,t,{leading:r,maxWait:t,trailing:o})},_n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var yn=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,a=r.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=i-(n.getBoundingClientRect().left+window.pageXOffset),l=s-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o&&(u=o),l<0?l=0:l>a&&(l=a);var c=u/o,d=1-l/a;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=mn((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),_n(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,a=t.black,s=t.pointer,u=t.circle,l=i()({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:a,pointer:s,circle:u}},{custom:!!this.props.style});return o.a.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.a.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),o.a.createElement("div",{style:l.white,className:"saturation-white"},o.a.createElement("div",{style:l.black,className:"saturation-black"}),o.a.createElement("div",{style:l.pointer},this.props.pointer?o.a.createElement(this.props.pointer,this.props):o.a.createElement("div",{style:l.circle}))))}}]),t}(r.PureComponent||r.Component);var gn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},vn=Xe(Object.keys,Object),bn=Object.prototype.hasOwnProperty;var wn=function(e){if(!et(e))return vn(e);var t=[];for(var n in Object(e))bn.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Mn=function(e){return ct(e)?At(e):wn(e)};var Ln=function(e,t){return function(n,r){if(null==n)return n;if(!ct(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}((function(e,t){return e&&We(e,t,Mn)}));var Tn=function(e){return"function"==typeof e?e:zt};var kn=function(e,t){return(ut(e)?gn:Ln)(e,Tn(t))},xn=n(36),En=n.n(xn),Sn=function(e){var t=0,n=0;return kn(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},Dn=function(e,t){var n=e.hex?En()(e.hex):En()(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===i&&0===a.a?"transparent":"#"+i,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}},On=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&En()(e).isValid()},Yn=function(e){if(!e)return"#fff";var t=Dn(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},Cn=function(e,t){var n=e.replace("°","");return En()(t+" ("+n+")")._ok},An=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Pn=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(Sn(e)){var r=Dn(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(Sn(e)){var r=Dn(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=An({},Dn(e.color,0)),t.debounce=hn((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),jn(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),o.a.createElement(e,An({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return An({},Dn(e.color,t.oldHue))}}]),n}(r.PureComponent||r.Component);return t.propTypes=An({},e.propTypes),t.defaultProps=An({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Fn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;Nn(this,r);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=n=Rn(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},Rn(n,t)}return Fn(r,n),In(r,[{key:"render",value:function(){return o.a.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},o.a.createElement(e,Hn({},this.props,this.state)))}}]),r}(o.a.Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,a=void 0===r?function(){}:r,s=e.onHover,u=e.title,l=void 0===u?t:u,c=e.children,d=e.focus,f=e.focusStyle,h=void 0===f?{}:f,m="transparent"===t,_=i()({default:{swatch:zn({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?h:{})}}),y={};return s&&(y.onMouseOver=function(e){return s(t,e)}),o.a.createElement("div",zn({style:_.swatch,onClick:function(e){return a(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},y),c,m&&o.a.createElement(p,{borderRadius:_.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),Wn=function(e){var t=e.direction,n=i()({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.a.createElement("div",{style:n.picker})},Bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vn=function(e){var t=e.rgb,n=e.hsl,r=e.width,a=e.height,s=e.onChange,u=e.direction,l=e.style,c=e.renderers,d=e.pointer,p=e.className,f=void 0===p?"":p,h=i()({default:{picker:{position:"relative",width:r,height:a},alpha:{radius:"2px",style:l}}});return o.a.createElement("div",{style:h.picker,className:"alpha-picker "+f},o.a.createElement(y,Bn({},h.alpha,{rgb:t,hsl:n,pointer:d,renderers:c,onChange:s,direction:u})))};Vn.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Wn};var qn=Pn(Vn);var Gn=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};var Jn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Kn=function(e){return this.__data__.has(e)};function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new He;++t<n;)this.add(e[t])}$n.prototype.add=$n.prototype.push=Jn,$n.prototype.has=Kn;var Xn=$n;var Zn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Qn=function(e,t){return e.has(t)};var er=function(e,t,n,r,o,a){var i=1&n,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var d=-1,p=!0,f=2&n?new Xn:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var _=i?r(m,h,d,t,e,a):r(h,m,d,e,t,a);if(void 0!==_){if(_)continue;p=!1;break}if(f){if(!Zn(t,(function(e,t){if(!Qn(f,t)&&(h===e||o(h,e,n,r,a)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p};var tr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var nr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},rr=B?B.prototype:void 0,or=rr?rr.valueOf:void 0;var ar=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return O(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=tr;case"[object Set]":var u=1&r;if(s||(s=nr),e.size!=t.size&&!u)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var c=er(s(e),s(t),r,o,a,i);return i.delete(e),c;case"[object Symbol]":if(or)return or.call(e)==or.call(t)}return!1};var ir=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var sr=function(e,t,n){var r=t(e);return ut(e)?r:ir(r,n(e))};var ur=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a};var lr=function(){return[]},cr=Object.prototype.propertyIsEnumerable,dr=Object.getOwnPropertySymbols,pr=dr?function(e){return null==e?[]:(e=Object(e),ur(dr(e),(function(t){return cr.call(e,t)})))}:lr;var fr=function(e){return sr(e,Mn,pr)},hr=Object.prototype.hasOwnProperty;var mr=function(e,t,n,r,o,a){var i=1&n,s=fr(e),u=s.length;if(u!=fr(t).length&&!i)return!1;for(var l=u;l--;){var c=s[l];if(!(i?c in t:hr.call(t,c)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var f=!0;a.set(e,t),a.set(t,e);for(var h=i;++l<u;){var m=e[c=s[l]],_=t[c];if(r)var y=i?r(_,m,c,t,e,a):r(m,_,c,e,t,a);if(!(void 0===y?m===_||o(m,_,n,r,a):y)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var g=e.constructor,v=t.constructor;g==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f},_r=_e(W.a,"DataView"),yr=_e(W.a,"Promise"),gr=_e(W.a,"Set"),vr=_e(W.a,"WeakMap"),br=se(_r),wr=se(ye),Mr=se(yr),Lr=se(gr),Tr=se(vr),kr=Q;(_r&&"[object DataView]"!=kr(new _r(new ArrayBuffer(1)))||ye&&"[object Map]"!=kr(new ye)||yr&&"[object Promise]"!=kr(yr.resolve())||gr&&"[object Set]"!=kr(new gr)||vr&&"[object WeakMap]"!=kr(new vr))&&(kr=function(e){var t=Q(e),n="[object Object]"==t?e.constructor:void 0,r=n?se(n):"";if(r)switch(r){case br:return"[object DataView]";case wr:return"[object Map]";case Mr:return"[object Promise]";case Lr:return"[object Set]";case Tr:return"[object WeakMap]"}return t});var xr=kr,Er=Object.prototype.hasOwnProperty;var Sr=function(e,t,n,r,o,a){var i=ut(e),s=ut(t),u=i?"[object Array]":xr(e),l=s?"[object Array]":xr(t),c="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),p=u==l;if(p&&Object(pt.a)(e)){if(!Object(pt.a)(t))return!1;i=!0,c=!1}if(p&&!c)return a||(a=new Re),i||Tt(e)?er(e,t,n,r,o,a):ar(e,t,u,n,r,o,a);if(!(1&n)){var f=c&&Er.call(e,"__wrapped__"),h=d&&Er.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,_=h?t.value():t;return a||(a=new Re),o(m,_,n,r,a)}}return!!p&&(a||(a=new Re),mr(e,t,n,r,o,a))};var Dr=function e(t,n,r,o,a){return t===n||(null==t||null==n||!nt(t)&&!nt(n)?t!=t&&n!=n:Sr(t,n,r,o,e,a))};var Or=function(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var u=(s=n[o])[0],l=e[u],c=s[1];if(i&&s[2]){if(void 0===l&&!(u in e))return!1}else{var d=new Re;if(r)var p=r(l,c,u,e,t,d);if(!(void 0===p?Dr(c,l,3,r,d):p))return!1}}return!0};var Yr=function(e){return e==e&&!ee(e)};var Cr=function(e){for(var t=Mn(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Yr(o)]}return t};var Ar=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var jr=function(e){var t=Cr(e);return 1==t.length&&t[0][2]?Ar(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}},Pr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hr=/^\w*$/;var Ir=function(e,t){if(ut(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!an(e))||(Hr.test(e)||!Pr.test(e)||null!=t&&e in Object(t))};function Nr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Nr.Cache||He),n}Nr.Cache=He;var Rr=Nr;var Fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zr=/\\(\\)?/g,Ur=function(e){var t=Rr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Fr,(function(e,n,r,o){t.push(r?o.replace(zr,"$1"):n||e)})),t})),Wr=B?B.prototype:void 0,Br=Wr?Wr.toString:void 0;var Vr=function e(t){if("string"==typeof t)return t;if(ut(t))return Gn(t,e)+"";if(an(t))return Br?Br.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var qr=function(e){return null==e?"":Vr(e)};var Gr=function(e,t){return ut(e)?e:Ir(e,t)?[e]:Ur(qr(e))};var Jr=function(e){if("string"==typeof e||an(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Kr=function(e,t){for(var n=0,r=(t=Gr(t,e)).length;null!=e&&n<r;)e=e[Jr(t[n++])];return n&&n==r?e:void 0};var $r=function(e,t,n){var r=null==e?void 0:Kr(e,t);return void 0===r?n:r};var Xr=function(e,t){return null!=e&&t in Object(e)};var Zr=function(e,t,n){for(var r=-1,o=(t=Gr(t,e)).length,a=!1;++r<o;){var i=Jr(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&lt(o)&&Yt(i,o)&&(ut(e)||st(e))};var Qr=function(e,t){return null!=e&&Zr(e,t,Xr)};var eo=function(e,t){return Ir(e)&&Yr(t)?Ar(Jr(e),t):function(n){var r=$r(n,e);return void 0===r&&r===t?Qr(n,e):Dr(t,r,3)}};var to=function(e){return function(t){return null==t?void 0:t[e]}};var no=function(e){return function(t){return Kr(t,e)}};var ro=function(e){return Ir(e)?to(Jr(e)):no(e)};var oo=function(e){return"function"==typeof e?e:null==e?zt:"object"==typeof e?ut(e)?eo(e[0],e[1]):jr(e):ro(e)};var ao=function(e,t){var n=-1,r=ct(e)?Array(e.length):[];return Ln(e,(function(e,o,a){r[++n]=t(e,o,a)})),r};var io=function(e,t){return(ut(e)?Gn:ao)(e,oo(t,3))},so=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,a=i()({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return o.a.createElement("div",{style:a.swatches},io(t,(function(e){return o.a.createElement(Un,{key:e,color:e,style:a.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),o.a.createElement("div",{style:a.clear}))},uo=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,a=e.colors,s=e.width,u=e.triangle,l=e.styles,c=void 0===l?{}:l,d=e.className,f=void 0===d?"":d,h="transparent"===r,m=function(e,n){On(e)&&t({hex:e,source:"hex"},n)},_=i()(Xt({default:{card:{width:s,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Yn(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},c),{"hide-triangle":"hide"===u});return o.a.createElement("div",{style:_.card,className:"block-picker "+f},o.a.createElement("div",{style:_.triangle}),o.a.createElement("div",{style:_.head},h&&o.a.createElement(p,{borderRadius:"6px 6px 0 0"}),o.a.createElement("div",{style:_.label},r)),o.a.createElement("div",{style:_.body},o.a.createElement(so,{colors:a,onClick:m,onSwatchHover:n}),o.a.createElement(w,{style:{input:_.input},value:r,onChange:m})))};uo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),colors:S.a.arrayOf(S.a.string),triangle:S.a.oneOf(["top","hide"]),styles:S.a.object},uo.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};var lo=Pn(uo),co={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},po={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},fo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},ho={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},mo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},_o={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},yo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},go={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},vo={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},bo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},wo={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Mo={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Lo={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},To={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},ko={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},xo={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Eo={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},So={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Do=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,a=e.hover,s=e.active,u=e.circleSize,l=e.circleSpacing,c=i()({default:{swatch:{width:u,height:u,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(u/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:s});return o.a.createElement("div",{style:c.swatch},o.a.createElement(Un,{style:c.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};Do.defaultProps={circleSize:28,circleSpacing:14};var Oo=Object(a.handleHover)(Do),Yo=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,a=e.colors,s=e.hex,u=e.circleSize,l=e.styles,c=void 0===l?{}:l,d=e.circleSpacing,p=e.className,f=void 0===p?"":p,h=i()(Xt({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}},c)),m=function(e,t){return n({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:h.card,className:"circle-picker "+f},io(a,(function(e){return o.a.createElement(Oo,{key:e,color:e,onClick:m,onSwatchHover:r,active:s===e.toLowerCase(),circleSize:u,circleSpacing:d})})))};Yo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),circleSize:S.a.number,circleSpacing:S.a.number,styles:S.a.object},Yo.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[co[500],po[500],fo[500],ho[500],mo[500],_o[500],yo[500],go[500],vo[500],bo[500],wo[500],Mo[500],Lo[500],To[500],ko[500],xo[500],Eo[500],So[500]],styles:{}};var Co=Pn(Yo);var Ao=function(e){return void 0===e},jo=n(274),Po=n.n(jo),Ho=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Io=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?On(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Ao(e.s)?n.props.hsl.s:e.s),l:Number(Ao(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ho(t,[{key:"render",value:function(){var e=this,t=i()({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.a.createElement("div",{style:t.alpha},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.a.createElement("div",{style:t.alpha},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.a.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.a.createElement("div",{style:t.toggle},o.a.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.a.createElement(Po.a,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.a.Component);Io.defaultProps={view:"hex"};var No=Io,Ro=function(){var e=i()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.a.createElement("div",{style:e.picker})},Fo=function(){var e=i()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.a.createElement("div",{style:e.picker})},zo=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,a=e.rgb,s=e.hsl,u=e.hsv,l=e.hex,c=e.renderers,d=e.styles,f=void 0===d?{}:d,h=e.className,m=void 0===h?"":h,_=e.defaultView,g=i()(Xt({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:r});return o.a.createElement("div",{style:g.picker,className:"chrome-picker "+m},o.a.createElement("div",{style:g.saturation},o.a.createElement(yn,{style:g.Saturation,hsl:s,hsv:u,pointer:Fo,onChange:n})),o.a.createElement("div",{style:g.body},o.a.createElement("div",{style:g.controls,className:"flexbox-fix"},o.a.createElement("div",{style:g.color},o.a.createElement("div",{style:g.swatch},o.a.createElement("div",{style:g.active}),o.a.createElement(p,{renderers:c}))),o.a.createElement("div",{style:g.toggles},o.a.createElement("div",{style:g.hue},o.a.createElement(x,{style:g.Hue,hsl:s,pointer:Ro,onChange:n})),o.a.createElement("div",{style:g.alpha},o.a.createElement(y,{style:g.Alpha,rgb:a,hsl:s,pointer:Ro,renderers:c,onChange:n})))),o.a.createElement(No,{rgb:a,hsl:s,hex:l,view:_,onChange:n,disableAlpha:r})))};zo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),disableAlpha:S.a.bool,styles:S.a.object,defaultView:S.a.oneOf(["hex","rgb","hsl"])},zo.defaultProps={width:225,disableAlpha:!1,styles:{}};var Uo=Pn(zo),Wo=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.active,u=i()({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Yn(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.a.createElement(Un,{style:u.color,color:t,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},o.a.createElement("div",{style:u.dot}))},Bo=function(e){var t=e.hex,n=e.rgb,r=e.onChange,a=i()({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return o.a.createElement("div",{style:a.fields,className:"flexbox-fix"},o.a.createElement("div",{style:a.active}),o.a.createElement(w,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:s}),o.a.createElement(w,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),o.a.createElement(w,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),o.a.createElement(w,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}))},Vo=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,a=e.hex,s=e.rgb,u=e.styles,l=void 0===u?{}:u,c=e.className,d=void 0===c?"":c,p=i()(Xt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(e,n){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return o.a.createElement(Qt,{style:p.Compact,styles:l},o.a.createElement("div",{style:p.compact,className:"compact-picker "+d},o.a.createElement("div",null,io(r,(function(e){return o.a.createElement(Wo,{key:e,color:e,active:e.toLowerCase()===a,onClick:f,onSwatchHover:n})})),o.a.createElement("div",{style:p.clear})),o.a.createElement(Bo,{hex:a,rgb:s,onChange:f})))};Vo.propTypes={colors:S.a.arrayOf(S.a.string),styles:S.a.object},Vo.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};var qo=Pn(Vo),Go=Object(a.handleHover)((function(e){var t=e.hover,n=e.color,r=e.onClick,a=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=i()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return o.a.createElement("div",{style:u.swatch},o.a.createElement(Un,{color:n,onClick:r,onHover:a,focusStyle:s}))})),Jo=function(e){var t=e.width,n=e.colors,r=e.onChange,a=e.onSwatchHover,s=e.triangle,u=e.styles,l=void 0===u?{}:u,c=e.className,d=void 0===c?"":c,p=i()(Xt({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),f=function(e,t){return r({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:p.card,className:"github-picker "+d},o.a.createElement("div",{style:p.triangleShadow}),o.a.createElement("div",{style:p.triangle}),io(n,(function(e){return o.a.createElement(Go,{color:e,key:e,onClick:f,onSwatchHover:a})})))};Jo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),colors:S.a.arrayOf(S.a.string),triangle:S.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:S.a.object},Jo.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};var Ko=Pn(Jo),$o=function(e){var t=e.direction,n=i()({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.a.createElement("div",{style:n.picker})},Xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo=function(e){var t=e.width,n=e.height,r=e.onChange,a=e.hsl,s=e.direction,u=e.pointer,l=e.styles,c=void 0===l?{}:l,d=e.className,p=void 0===d?"":d,f=i()(Xt({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},c));return o.a.createElement("div",{style:f.picker,className:"hue-picker "+p},o.a.createElement(x,Xo({},f.hue,{hsl:a,pointer:u,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:s})))};Zo.propTypes={styles:S.a.object},Zo.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:$o,styles:{}};var Qo=Pn(Zo),ea=Pn((function(e){var t=e.onChange,n=e.hex,r=e.rgb,a=e.styles,s=void 0===a?{}:a,u=e.className,l=void 0===u?"":u,c=i()(Xt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},s)),d=function(e,n){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return o.a.createElement(Qt,{styles:s},o.a.createElement("div",{style:c.material,className:"material-picker "+l},o.a.createElement(w,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:d}),o.a.createElement("div",{style:c.split,className:"flexbox-fix"},o.a.createElement("div",{style:c.third},o.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:r.r,onChange:d})),o.a.createElement("div",{style:c.third},o.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:r.g,onChange:d})),o.a.createElement("div",{style:c.third},o.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:r.b,onChange:d})))))})),ta=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,a=e.hex,s=i()({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),u=function(e,o){e["#"]?On(e["#"])&&t({hex:e["#"],source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},o):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},o)};return o.a.createElement("div",{style:s.fields},o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"h",value:Math.round(r.h),onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:u}),o.a.createElement("div",{style:s.divider}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:u}),o.a.createElement("div",{style:s.divider}),o.a.createElement(w,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"#",value:a.replace("#",""),onChange:u}),o.a.createElement("div",{style:s.fieldSymbols},o.a.createElement("div",{style:s.symbol},"°"),o.a.createElement("div",{style:s.symbol},"%"),o.a.createElement("div",{style:s.symbol},"%")))},na=function(e){var t=e.hsl,n=i()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return o.a.createElement("div",{style:n.picker})},ra=function(){var e=i()({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return o.a.createElement("div",{style:e.pointer},o.a.createElement("div",{style:e.left},o.a.createElement("div",{style:e.leftInside})),o.a.createElement("div",{style:e.right},o.a.createElement("div",{style:e.rightInside})))},oa=function(e){var t=e.onClick,n=e.label,r=e.children,a=e.active,s=i()({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return o.a.createElement("div",{style:s.button,onClick:t},n||r)},aa=function(e){var t=e.rgb,n=e.currentColor,r=i()({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return o.a.createElement("div",null,o.a.createElement("div",{style:r.label},"new"),o.a.createElement("div",{style:r.swatches},o.a.createElement("div",{style:r.new}),o.a.createElement("div",{style:r.current})),o.a.createElement("div",{style:r.label},"current"))},ia=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var sa=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ia(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,a=void 0===r?"":r,s=i()(Xt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return o.a.createElement("div",{style:s.picker,className:"photoshop-picker "+a},o.a.createElement("div",{style:s.head},this.props.header),o.a.createElement("div",{style:s.body,className:"flexbox-fix"},o.a.createElement("div",{style:s.saturation},o.a.createElement(yn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:na,onChange:this.props.onChange})),o.a.createElement("div",{style:s.hue},o.a.createElement(x,{direction:"vertical",hsl:this.props.hsl,pointer:ra,onChange:this.props.onChange})),o.a.createElement("div",{style:s.controls},o.a.createElement("div",{style:s.top,className:"flexbox-fix"},o.a.createElement("div",{style:s.previews},o.a.createElement(aa,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.a.createElement("div",{style:s.actions},o.a.createElement(oa,{label:"OK",onClick:this.props.onAccept,active:!0}),o.a.createElement(oa,{label:"Cancel",onClick:this.props.onCancel}),o.a.createElement(ta,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(o.a.Component);sa.propTypes={header:S.a.string,styles:S.a.object},sa.defaultProps={header:"Color Picker",styles:{}};var ua=Pn(sa),la=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,a=e.hex,s=e.disableAlpha,u=i()({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:s}),l=function(e,o){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},o):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},o))};return o.a.createElement("div",{style:u.fields,className:"flexbox-fix"},o.a.createElement("div",{style:u.double},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"hex",value:a.replace("#",""),onChange:l})),o.a.createElement("div",{style:u.single},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),o.a.createElement("div",{style:u.single},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),o.a.createElement("div",{style:u.single},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),o.a.createElement("div",{style:u.alpha},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))},ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},da=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=i()({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),u=function(e,t){r({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:s.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.a.createElement("div",{key:n,style:s.swatchWrap},o.a.createElement(Un,ca({},t,{style:s.swatch,onClick:u,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};da.propTypes={colors:S.a.arrayOf(S.a.oneOfType([S.a.string,S.a.shape({color:S.a.string,title:S.a.string})])).isRequired};var pa=da,fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ha=function(e){var t=e.width,n=e.rgb,r=e.hex,a=e.hsv,s=e.hsl,u=e.onChange,l=e.onSwatchHover,c=e.disableAlpha,d=e.presetColors,f=e.renderers,h=e.styles,m=void 0===h?{}:h,_=e.className,g=void 0===_?"":_,v=i()(Xt({default:fa({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},m),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},m),{disableAlpha:c});return o.a.createElement("div",{style:v.picker,className:"sketch-picker "+g},o.a.createElement("div",{style:v.saturation},o.a.createElement(yn,{style:v.Saturation,hsl:s,hsv:a,onChange:u})),o.a.createElement("div",{style:v.controls,className:"flexbox-fix"},o.a.createElement("div",{style:v.sliders},o.a.createElement("div",{style:v.hue},o.a.createElement(x,{style:v.Hue,hsl:s,onChange:u})),o.a.createElement("div",{style:v.alpha},o.a.createElement(y,{style:v.Alpha,rgb:n,hsl:s,renderers:f,onChange:u}))),o.a.createElement("div",{style:v.color},o.a.createElement(p,null),o.a.createElement("div",{style:v.activeColor}))),o.a.createElement(la,{rgb:n,hsl:s,hex:r,onChange:u,disableAlpha:c}),o.a.createElement(pa,{colors:d,onClick:u,onSwatchHover:l}))};ha.propTypes={disableAlpha:S.a.bool,width:S.a.oneOfType([S.a.string,S.a.number]),styles:S.a.object},ha.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var ma=Pn(ha),_a=function(e){var t=e.hsl,n=e.offset,r=e.onClick,a=void 0===r?function(){}:r,s=e.active,u=e.first,l=e.last,c=i()({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:u,last:l});return o.a.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})},ya=function(e){var t=e.onClick,n=e.hsl,r=i()({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return o.a.createElement("div",{style:r.swatches},o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<.1&&Math.abs(n.s-.5)<.1,onClick:t,first:!0})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<.1&&Math.abs(n.s-.5)<.1,onClick:t,last:!0})),o.a.createElement("div",{style:r.clear}))},ga=function(){var e=i()({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.a.createElement("div",{style:e.picker})},va=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,a=e.styles,s=void 0===a?{}:a,u=e.className,l=void 0===u?"":u,c=i()(Xt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},s));return o.a.createElement("div",{style:c.wrap||{},className:"slider-picker "+l},o.a.createElement("div",{style:c.hue},o.a.createElement(x,{style:c.Hue,hsl:t,pointer:r,onChange:n})),o.a.createElement("div",{style:c.swatches},o.a.createElement(ya,{hsl:t,onClick:n})))};va.propTypes={styles:S.a.object},va.defaultProps={pointer:ga,styles:{}};var ba=Pn(va),wa=n(275),Ma=n.n(wa),La=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.first,u=e.last,l=e.active,c=i()({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:Yn(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:u,active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.a.createElement(Un,{color:t,style:c.color,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},o.a.createElement("div",{style:c.check},o.a.createElement(Ma.a,null)))},Ta=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,a=e.active,s=i()({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return o.a.createElement("div",{style:s.group},io(r,(function(e,i){return o.a.createElement(La,{key:e,color:e,active:e.toLowerCase()===a,first:0===i,last:i===r.length-1,onClick:t,onSwatchHover:n})})))},ka=function(e){var t=e.width,n=e.height,r=e.onChange,a=e.onSwatchHover,s=e.colors,u=e.hex,l=e.styles,c=void 0===l?{}:l,d=e.className,p=void 0===d?"":d,f=i()(Xt({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),h=function(e,t){return r({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:f.picker,className:"swatches-picker "+p},o.a.createElement(Qt,null,o.a.createElement("div",{style:f.overflow},o.a.createElement("div",{style:f.body},io(s,(function(e){return o.a.createElement(Ta,{key:e.toString(),group:e,active:u,onClick:h,onSwatchHover:a})})),o.a.createElement("div",{style:f.clear})))))};ka.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),height:S.a.oneOfType([S.a.string,S.a.number]),colors:S.a.arrayOf(S.a.arrayOf(S.a.string)),styles:S.a.object},ka.defaultProps={width:320,height:240,colors:[[co[900],co[700],co[500],co[300],co[100]],[po[900],po[700],po[500],po[300],po[100]],[fo[900],fo[700],fo[500],fo[300],fo[100]],[ho[900],ho[700],ho[500],ho[300],ho[100]],[mo[900],mo[700],mo[500],mo[300],mo[100]],[_o[900],_o[700],_o[500],_o[300],_o[100]],[yo[900],yo[700],yo[500],yo[300],yo[100]],[go[900],go[700],go[500],go[300],go[100]],[vo[900],vo[700],vo[500],vo[300],vo[100]],["#194D33",bo[700],bo[500],bo[300],bo[100]],[wo[900],wo[700],wo[500],wo[300],wo[100]],[Mo[900],Mo[700],Mo[500],Mo[300],Mo[100]],[Lo[900],Lo[700],Lo[500],Lo[300],Lo[100]],[To[900],To[700],To[500],To[300],To[100]],[ko[900],ko[700],ko[500],ko[300],ko[100]],[xo[900],xo[700],xo[500],xo[300],xo[100]],[Eo[900],Eo[700],Eo[500],Eo[300],Eo[100]],[So[900],So[700],So[500],So[300],So[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};var xa=Pn(ka),Ea=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,a=e.colors,s=e.width,u=e.triangle,l=e.styles,c=void 0===l?{}:l,d=e.className,p=void 0===d?"":d,f=i()(Xt({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},c),{"hide-triangle":"hide"===u,"top-left-triangle":"top-left"===u,"top-right-triangle":"top-right"===u}),h=function(e,n){On(e)&&t({hex:e,source:"hex"},n)};return o.a.createElement("div",{style:f.card,className:"twitter-picker "+p},o.a.createElement("div",{style:f.triangleShadow}),o.a.createElement("div",{style:f.triangle}),o.a.createElement("div",{style:f.body},io(a,(function(e,t){return o.a.createElement(Un,{key:t,color:e,hex:e,style:f.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),o.a.createElement("div",{style:f.hash},"#"),o.a.createElement(w,{label:null,style:{input:f.input},value:r.replace("#",""),onChange:h}),o.a.createElement("div",{style:f.clear})))};Ea.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),triangle:S.a.oneOf(["hide","top-left","top-right"]),colors:S.a.arrayOf(S.a.string),styles:S.a.object},Ea.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};var Sa=Pn(Ea),Da=function(e){var t=i()({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return o.a.createElement("div",{style:t.picker})};Da.propTypes={hsl:S.a.shape({h:S.a.number,s:S.a.number,l:S.a.number,a:S.a.number})},Da.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Oa=Da,Ya=function(e){var t=i()({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return o.a.createElement("div",{style:t.picker})};Ya.propTypes={hsl:S.a.shape({h:S.a.number,s:S.a.number,l:S.a.number,a:S.a.number})},Ya.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ca=Ya,Aa=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,a=e.hex,s=e.hsv,u=function(e,n){if(e.hex)On(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");Cn(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var o=e.hsv.split(",");Cn(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},n))}else if(e.hsl){var a=e.hsl.split(",");Cn(e.hsl,"hsl")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==p[1]?p[1]=.01:1==p[2]&&(p[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsl"},n))}},l=i()({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=n.r+", "+n.g+", "+n.b,d=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",p=Math.round(s.h)+"°, "+Math.round(100*s.s)+"%, "+Math.round(100*s.v)+"%";return o.a.createElement("div",{style:l.wrap,className:"flexbox-fix"},o.a.createElement("div",{style:l.fields},o.a.createElement("div",{style:l.double},o.a.createElement(w,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:u})),o.a.createElement("div",{style:l.column},o.a.createElement("div",{style:l.single},o.a.createElement(w,{style:{input:l.input2,label:l.label2},label:"rgb",value:c,onChange:u})),o.a.createElement("div",{style:l.single},o.a.createElement(w,{style:{input:l.input2,label:l.label2},label:"hsv",value:p,onChange:u})),o.a.createElement("div",{style:l.single},o.a.createElement(w,{style:{input:l.input2,label:l.label2},label:"hsl",value:d,onChange:u})))))},ja=function(e){var t=e.width,n=e.onChange,r=e.rgb,a=e.hsl,s=e.hsv,u=e.hex,l=e.header,c=e.styles,d=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,h=i()(Xt({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},d));return o.a.createElement("div",{style:h.picker,className:"google-picker "+f},o.a.createElement("div",{style:h.head},l),o.a.createElement("div",{style:h.swatch}),o.a.createElement("div",{style:h.saturation},o.a.createElement(yn,{hsl:a,hsv:s,pointer:Oa,onChange:n})),o.a.createElement("div",{style:h.body},o.a.createElement("div",{style:h.controls,className:"flexbox-fix"},o.a.createElement("div",{style:h.hue},o.a.createElement(x,{style:h.Hue,hsl:a,radius:"4px",pointer:Ca,onChange:n}))),o.a.createElement(Aa,{rgb:r,hsl:a,hex:u,hsv:s,onChange:n})))};ja.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),styles:S.a.object,header:S.a.string},ja.defaultProps={width:652,styles:{},header:"Color picker"};var Pa=Pn(ja)},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,"CacheProvider",(function(){return S})),n.d(t,"ThemeContext",(function(){return E})),n.d(t,"withEmotionCache",(function(){return D})),n.d(t,"css",(function(){return j})),n.d(t,"ClassNames",(function(){return z})),n.d(t,"Global",(function(){return H})),n.d(t,"createElement",(function(){return P})),n.d(t,"jsx",(function(){return P})),n.d(t,"keyframes",(function(){return N}));var o=n(0);var a=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var i=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var l=0;l<i;++l)t[u++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",s=2*t+3*n+4*a;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===D||2===D&&o(u,1)?"-webkit-"+u+u:u}if(0===D||2===D&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(k,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace(v,"tb");break;case 232:u=i.replace(v,"tb-rl");break;case 220:u=i.replace(v,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return u=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+u+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(M,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(M,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(L,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,s,l,c){for(var d,p=0,f=t;p<C;++p)switch(d=Y[p].call(u,e,f,n,r,o,a,i,s,l,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?D=1:(D=2,A=e):D=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<C){var u=i(-1,n,s,s,E,x,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var d=function e(n,s,u,d,p){for(var f,h,m,v,w,M=0,L=0,T=0,k=0,Y=0,A=0,P=m=f=0,H=0,I=0,N=0,R=0,F=u.length,z=F-1,U="",W="",B="",V="";H<F;){if(h=u.charCodeAt(H),H===z&&0!==L+k+T+M&&(0!==L&&(h=47===L?10:47),k=T=M=0,F++,z++),0===L+k+T+M){if(H===z&&(0<I&&(U=U.replace(c,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(H)}h=59}switch(h){case 123:for(f=(U=U.trim()).charCodeAt(0),m=1,R=++H;H<F;){switch(h=u.charCodeAt(H)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(H+1)){case 42:case 47:e:{for(P=H+1;P<z;++P)switch(u.charCodeAt(P)){case 47:if(42===h&&42===u.charCodeAt(P-1)&&H+2!==P){H=P+1;break e}break;case 10:if(47===h){H=P+1;break e}}H=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;H++<z&&u.charCodeAt(H)!==h;);}if(0===m)break;H++}switch(m=u.substring(R,H),0===f&&(f=(U=U.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<I&&(U=U.replace(c,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:I=s;break;default:I=O}if(R=(m=e(s,I,m,h,p+1)).length,0<C&&(w=i(3,m,I=t(O,U,N),s,E,x,R,h,p,d),U=I.join(""),void 0!==w&&0===(R=(m=w.trim()).length)&&(h=0,m="")),0<R)switch(h){case 115:U=U.replace(b,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(_,"$1 $2"))+"{"+m+"}",m=1===D||2===D&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===d&&(W+=m,m="")}else m="";break;default:m=e(s,t(s,U,N),m,d,p+1)}B+=m,m=N=I=P=f=0,U="",h=u.charCodeAt(++H);break;case 125:case 59:if(1<(R=(U=(0<I?U.replace(c,""):U).trim()).length))switch(0===P&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(R=(U=U.replace(" ",":")).length),0<C&&void 0!==(w=i(1,U,s,n,E,x,W.length,d,p,d))&&0===(R=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),h=U.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){V+=U+u.charAt(H);break}default:58!==U.charCodeAt(R-1)&&(W+=r(U,f,h,U.charCodeAt(2)))}N=I=P=f=0,U="",h=u.charCodeAt(++H)}}switch(h){case 13:case 10:47===L?L=0:0===1+f&&107!==d&&0<U.length&&(I=1,U+="\0"),0<C*j&&i(0,U,s,n,E,x,W.length,d,p,d),x=1,E++;break;case 59:case 125:if(0===L+k+T+M){x++;break}default:switch(x++,v=u.charAt(H),h){case 9:case 32:if(0===k+M+L)switch(Y){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===k+L+M&&(I=N=1,v="\f"+v);break;case 108:if(0===k+L+M+S&&0<P)switch(H-P){case 2:112===Y&&58===u.charCodeAt(H-3)&&(S=Y);case 8:111===A&&(S=A)}break;case 58:0===k+L+M&&(P=H);break;case 44:0===L+T+k+M&&(I=1,v+="\r");break;case 34:case 39:0===L&&(k=k===h?0:0===k?h:k);break;case 91:0===k+L+T&&M++;break;case 93:0===k+L+T&&M--;break;case 41:0===k+L+M&&T--;break;case 40:if(0===k+L+M){if(0===f)switch(2*Y+3*A){case 533:break;default:f=1}T++}break;case 64:0===L+T+k+M+P+m&&(m=1);break;case 42:case 47:if(!(0<k+M+T))switch(L){case 0:switch(2*h+3*u.charCodeAt(H+1)){case 235:L=47;break;case 220:R=H,L=42}break;case 42:47===h&&42===Y&&R+2!==H&&(33===u.charCodeAt(R+2)&&(W+=u.substring(R,H+1)),v="",L=0)}}0===L&&(U+=v)}A=Y,Y=h,H++}if(0<(R=W.length)){if(I=s,0<C&&(void 0!==(w=i(2,W,I,n,E,x,R,d,p,d))&&0===(W=w).length))return V+W+B;if(W=I.join(",")+"{"+W+"}",0!=D*S){switch(2!==D||o(W,2)||(S=0),S){case 111:W=W.replace(g,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}S=0}}return V+W+B}(O,s,n,0,0);return 0<C&&(void 0!==(u=i(-2,d,s,s,E,x,d.length,0,0,0))&&(d=u)),"",S=0,x=E=1,d}var l=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,_=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,g=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,M=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,x=1,E=1,S=0,D=1,O=[],Y=[],C=0,A=null,j=0;return u.use=function e(t){switch(t){case void 0:case null:C=Y.length=0;break;default:if("function"==typeof t)Y[C++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},u.set=s,void 0!==e&&s(e),u};function s(e){e&&u.current.insert(e+"}")}var u={current:null},l=function(e,t,n,r,o,a,i,l,c,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return u.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return u.current.insert(n[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(s)}},c=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new i(t);var o,s={};o=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(l),c=function(e,t,n,o){var a=t.name;u.current=n,r(e,t.styles),o&&(p.inserted[a]=!0)};var p={key:n,sheet:new a({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:c};return p};n(346);function d(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var p=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var f=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},h={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y=function(e){return 45===e.charCodeAt(1)},g=function(e){return null!=e&&"boolean"!=typeof e},v=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return y(e)?e:e.replace(m,"-$&").toLowerCase()})),b=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_,(function(e,t,n){return M={name:t,styles:n,next:M},t}))}return 1===h[e]||y(e)||"number"!=typeof t||0===t?t:t+"px"};function w(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return M={name:n.name,styles:n.styles,next:M},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)M={name:o.name,styles:o.styles,next:M},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=w(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":g(i)&&(r+=v(a)+":"+b(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=w(e,t,i,!1);switch(a){case"animation":case"animationName":r+=v(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)g(i[u])&&(r+=v(a)+":"+b(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=M,i=n(e);return M=a,w(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var M,L=/label:\s*([^\s;\n{]+)\s*;/g;var T=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";M=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=w(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=w(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);L.lastIndex=0;for(var s,u="";null!==(s=L.exec(o));)u+="-"+s[1];return{name:f(o)+u,styles:o,next:M}},k=Object.prototype.hasOwnProperty,x=Object(o.createContext)("undefined"!=typeof HTMLElement?c():null),E=Object(o.createContext)({}),S=x.Provider,D=function(e){var t=function(t,n){return Object(o.createElement)(x.Consumer,null,(function(r){return e(t,r,n)}))};return Object(o.forwardRef)(t)},O="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Y=function(e,t){var n={};for(var r in t)k.call(t,r)&&(n[r]=t[r]);return n[O]=e,n},C=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var i=t[O],s=[a],u="";"string"==typeof t.className?u=d(e.registered,s,t.className):null!=t.className&&(u=t.className+" ");var l=T(s);p(e,l,"string"==typeof i);u+=e.key+"-"+l.name;var c={};for(var f in t)k.call(t,f)&&"css"!==f&&f!==O&&(c[f]=t[f]);return c.ref=r,c.className=u,Object(o.createElement)(i,c)},A=D((function(e,t,n){return"function"==typeof e.css?Object(o.createElement)(E.Consumer,null,(function(r){return C(t,e,r,n)})):C(t,e,null,n)}));var j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(t)},P=function(e,t){var n=arguments;if(null==t||!k.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=A,a[1]=Y(e,t);for(var i=2;i<r;i++)a[i]=n[i];return o.createElement.apply(null,a)},H=D((function(e,t){var n=e.styles;if("function"==typeof n)return Object(o.createElement)(E.Consumer,null,(function(e){var r=T([n(e)]);return Object(o.createElement)(I,{serialized:r,cache:t})}));var r=T([n]);return Object(o.createElement)(I,{serialized:r,cache:t})})),I=function(e){var t,n;function o(t,n,r){return e.call(this,t,n,r)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.componentDidMount=function(){this.sheet=new a({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},i.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},i.insertStyles=function(){if(void 0!==this.props.serialized.next&&p(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},i.componentWillUnmount=function(){this.sheet.flush()},i.render=function(){return null},o}(o.Component),N=function(){var e=j.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},R=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function F(e,t,n){var r=[],o=d(e,r,n);return r.length<2?n:o+t(r)}var z=D((function(e,t){return Object(o.createElement)(E.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=T(n,t.registered);return p(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return F(t.registered,r,R(n))},theme:n},a=e.children(o);return!0,a}))}))}])}));
280
+ */!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var i=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=i,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,!0!==a[u]&&(s+="="+a[u].split(";")[0]));return document.cookie=t+"="+n+s}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=t(s[0]);if(u=(r.read||r)(u,l)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[l]=u,e===l)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Authentication",(function(){return Rt})),n.d(t,"Management",(function(){return Ft})),n.d(t,"WebAuth",(function(){return Ht})),n.d(t,"version",(function(){return se}));var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function a(e,t){return e(t={exports:{}},t.exports),t.exports}var i=a((function(e){var t,n;t=o,n=function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var a=t.join("/"),i=(a=a.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i.shift()+(i.length>0?"?":"")+i.join("&")}return function(){return e("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()})),s=Object.prototype.hasOwnProperty,u=Array.isArray,l=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},d={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var l=i[s],c=a[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(u(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var i=r.charCodeAt(a);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?o+=r.charAt(a):i<128?o+=l[i]:i<2048?o+=l[192|i>>6]+l[128|63&i]:i<55296||i>=57344?o+=l[224|i>>12]+l[128|i>>6&63]+l[128|63&i]:(a+=1,i=65536+((1023&i)<<10|1023&r.charCodeAt(a)),o+=l[240|i>>18]+l[128|i>>12&63]+l[128|i>>6&63]+l[128|63&i])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(u(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(u(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!s.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return u(t)&&!u(n)&&(o=c(t,r)),u(t)&&u(n)?(n.forEach((function(n,o){if(s.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return s.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),o)}},p=String.prototype.replace,f=/%20/g,h={RFC1738:"RFC1738",RFC3986:"RFC3986"},m=d.assign({default:h.RFC3986,formatters:{RFC1738:function(e){return p.call(e,f,"+")},RFC3986:function(e){return String(e)}}},h),_=Object.prototype.hasOwnProperty,y={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},g=Array.isArray,v=Array.prototype.push,b=function(e,t){v.apply(e,g(t)?t:[t])},w=Date.prototype.toISOString,M=m.default,L={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:d.encode,encodeValuesOnly:!1,format:M,formatter:m.formatters[M],indices:!1,serializeDate:function(e){return w.call(e)},skipNulls:!1,strictNullHandling:!1},T=function e(t,n,r,o,a,i,s,u,l,c,p,f,h){var m=t;if("function"==typeof s?m=s(n,m):m instanceof Date?m=c(m):"comma"===r&&g(m)&&(m=d.maybeMap(m,(function(e){return e instanceof Date?c(e):e})).join(",")),null===m){if(o)return i&&!f?i(n,L.encoder,h,"key"):n;m=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(m)||d.isBuffer(m))return i?[p(f?n:i(n,L.encoder,h,"key"))+"="+p(i(m,L.encoder,h,"value"))]:[p(n)+"="+p(String(m))];var _,y=[];if(void 0===m)return y;if(g(s))_=s;else{var v=Object.keys(m);_=u?v.sort(u):v}for(var w=0;w<_.length;++w){var M=_[w],T=m[M];if(!a||null!==T){var k=g(m)?"function"==typeof r?r(n,M):n:n+(l?"."+M:"["+M+"]");b(y,e(T,k,r,o,a,i,s,u,l,c,p,f,h))}}return y},k=Object.prototype.hasOwnProperty,x=Array.isArray,E={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},S=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},D=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},O=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=i?o.slice(0,i.index):o,u=[];if(s){if(!n.plainObjects&&k.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var l=0;n.depth>0&&null!==(i=a.exec(o))&&l<n.depth;){if(l+=1,!n.plainObjects&&k.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(i[1])}return i&&u.push("["+o.slice(i.index)+"]"),function(e,t,n,r){for(var o=r?t:D(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(i=[])[l]=o:i[u]=o:i={0:o}}o=i}return o}(u,t,n,r)}},Y=function(e,t){var n,r=e,o=function(e){if(!e)return L;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||L.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=m.default;if(void 0!==e.format){if(!_.call(m.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=m.formatters[n],o=L.filter;return("function"==typeof e.filter||g(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:L.addQueryPrefix,allowDots:void 0===e.allowDots?L.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:L.charsetSentinel,delimiter:void 0===e.delimiter?L.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:L.encode,encoder:"function"==typeof e.encoder?e.encoder:L.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:L.encodeValuesOnly,filter:o,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:L.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:L.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:L.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):g(o.filter)&&(n=o.filter);var a,i=[];if("object"!=typeof r||null===r)return"";a=t&&t.arrayFormat in y?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=y[a];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var u=0;u<n.length;++u){var l=n[u];o.skipNulls&&null===r[l]||b(i,T(r[l],l,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var c=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),c.length>0?d+c:""},C=a((function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}})),A=H;H.default=H,H.stable=N,H.stableStringify=N;var j=[],P=[];function H(e,t,n){var r;for(function e(t,n,r,o){var a;if("object"==typeof t&&null!==t){for(a=0;a<r.length;a++)if(r[a]===t){var i=Object.getOwnPropertyDescriptor(o,n);return void(void 0!==i.get?i.configurable?(Object.defineProperty(o,n,{value:"[Circular]"}),j.push([o,n,t,i])):P.push([t,n]):(o[n]="[Circular]",j.push([o,n,t])))}if(r.push(t),Array.isArray(t))for(a=0;a<t.length;a++)e(t[a],a,r,t);else{var s=Object.keys(t);for(a=0;a<s.length;a++){var u=s[a];e(t[u],u,r,t)}}r.pop()}}(e,"",[],void 0),r=0===P.length?JSON.stringify(e,t,n):JSON.stringify(e,R(t),n);0!==j.length;){var o=j.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}return r}function I(e,t){return e<t?-1:e>t?1:0}function N(e,t,n){var r,o=function e(t,n,r,o){var a;if("object"==typeof t&&null!==t){for(a=0;a<r.length;a++)if(r[a]===t){var i=Object.getOwnPropertyDescriptor(o,n);return void(void 0!==i.get?i.configurable?(Object.defineProperty(o,n,{value:"[Circular]"}),j.push([o,n,t,i])):P.push([t,n]):(o[n]="[Circular]",j.push([o,n,t])))}if("function"==typeof t.toJSON)return;if(r.push(t),Array.isArray(t))for(a=0;a<t.length;a++)e(t[a],a,r,t);else{var s={},u=Object.keys(t).sort(I);for(a=0;a<u.length;a++){var l=u[a];e(t[l],l,r,t),s[l]=t[l]}if(void 0===o)return s;j.push([o,n,t]),o[n]=s}r.pop()}}(e,"",[],void 0)||e;for(r=0===P.length?JSON.stringify(o,t,n):JSON.stringify(o,R(t),n);0!==j.length;){var a=j.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return r}function R(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(P.length>0)for(var r=0;r<P.length;r++){var o=P[r];if(o[1]===t&&o[0]===n){n="[Circular]",P.splice(r,1);break}}return e.call(this,t,n)}}function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var z=function(e){return null!==e&&"object"===F(e)};function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var W=B;function B(e){if(e)return function(e){for(var t in B.prototype)Object.prototype.hasOwnProperty.call(B.prototype,t)&&(e[t]=B.prototype[t]);return e}(e)}B.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},B.prototype.parse=function(e){return this._parser=e,this},B.prototype.responseType=function(e){return this._responseType=e,this},B.prototype.serialize=function(e){return this._serializer=e,this},B.prototype.timeout=function(e){if(!e||"object"!==U(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},B.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var V=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];B.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&V.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},B.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},B.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},B.prototype.catch=function(e){return this.then(void 0,e)},B.prototype.use=function(e){return e(this),this},B.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},B.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},B.prototype.get=function(e){return this._header[e.toLowerCase()]},B.prototype.getHeader=B.prototype.get,B.prototype.set=function(e,t){if(z(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},B.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},B.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(z(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},B.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},B.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},B.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},B.prototype.redirects=function(e){return this._maxRedirects=e,this},B.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},B.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},B.prototype.send=function(e){var t=z(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&z(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},B.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},B.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},B.prototype._appendQueryString=function(){console.warn("Unsupported")},B.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},B.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var q=G;function G(e){if(e)return function(e){for(var t in G.prototype)Object.prototype.hasOwnProperty.call(G.prototype,t)&&(e[t]=G.prototype[t]);return e}(e)}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K(){this._defaults=[]}G.prototype.get=function(e){return this.header[e.toLowerCase()]},G.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=t.split(/ *; */).shift();var n=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})}(t);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(this[r]=n[r]);this.links={};try{e.link&&(this.links=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})}(e.link))}catch(e){}},G.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){K.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),K.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,function(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return J(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args))}))};for(var $=K,X=a((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;function o(){}"undefined"!=typeof window?r=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),r=void 0):r=self,e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var a=t=e.exports;t.Request=p,a.getXHR=function(){if(r.XMLHttpRequest&&(!r.location||"file:"!==r.location.protocol||!r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var i="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function s(e){if(!z(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&u(t,n,e[n]);return t.join("&")}function u(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){u(e,t,n)}));else if(z(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&u(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function l(e){for(var t,n,r={},o=e.split("&"),a=0,i=o.length;a<i;++a)-1===(n=(t=o[a]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function c(e){return/[/+]json($|[^-\w])/.test(e)}function d(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,a=e.split(/\r?\n/),s={},u=0,l=a.length;u<l;++u)-1!==(t=(n=a[u]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=i(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function p(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new d(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function f(e,t,n){var r=a("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}a.serializeObject=s,a.parseString=l,a.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},a.serialize={"application/x-www-form-urlencoded":s,"application/json":A},a.parse={"application/x-www-form-urlencoded":l,"application/json":JSON.parse},q(d.prototype),d.prototype._parseBody=function(e){var t=a.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&c(this.type)&&(t=a.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},d.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},a.Response=d,C(p.prototype),W(p.prototype),p.prototype.type=function(e){return this.set("Content-Type",a.types[e]||e),this},p.prototype.accept=function(e){return this.set("Accept",a.types[e]||e),this},p.prototype.auth=function(e,t,r){1===arguments.length&&(t=""),"object"===n(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,r,o)},p.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},p.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},p.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},p.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},p.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},p.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},p.prototype.ca=p.prototype.agent,p.prototype.buffer=p.prototype.ca,p.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},p.prototype.pipe=p.prototype.write,p.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},p.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||o,this._finalizeQueryString(),this._end()},p.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},p.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=a.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||a.serialize[o?o.split(";")[0]:""];!i&&c(o)&&(i=a.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},a.agent=function(){return new $},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){$.prototype[e.toLowerCase()]=function(t,n){var r=new a.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),$.prototype.del=$.prototype.delete,a.get=function(e,t,n){var r=a("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},a.head=function(e,t,n){var r=a("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},a.options=function(e,t,n){var r=a("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},a.del=f,a.delete=f,a.patch=function(e,t,n){var r=a("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},a.post=function(e,t,n){var r=a("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},a.put=function(e,t,n){var r=a("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}})),Z=(X.Request,[]),Q=[],ee=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),te=0,ne=ee.length;te<ne;++te)Z[te]=ee[te],Q[ee.charCodeAt(te)]=te;function re(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&t,[n,n===t?0:4-n%4]}function oe(e,t,n){for(var r,o,a=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(Z[(o=r)>>18&63]+Z[o>>12&63]+Z[o>>6&63]+Z[63&o]);return a.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63;var ae=function(e){for(var t,n=e.length,r=n%3,o=[],a=0,i=n-r;a<i;a+=16383)o.push(oe(e,a,a+16383>i?i:a+16383));return 1===r?(t=e[n-1],o.push(Z[t>>2]+Z[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(Z[t>>10]+Z[t>>4&63]+Z[t<<2&63]+"=")),o.join("")},ie=function(e){return ae(function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)).replace(/\+/g,"-").replace(/\//g,"_")},se={raw:"9.16.2"},ue=Object.prototype.toString;function le(e,t,n,r){if(n="array"===n?"object":n,e&&typeof e[t]!==n)throw new Error(r)}function ce(e,t,n){if(typeof e!==t)throw new Error(n)}function de(e,t,n){if(-1===t.indexOf(e))throw new Error(n)}var pe={check:function(e,t,n){if(t.optional&&!e||ce(e,t.type,t.message),"object"===t.type&&n)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o];n[a].optional&&!e[a]||n[a].condition&&!n[a].condition(e)||(le(e,a,n[a].type,n[a].message),n[a].values&&de(e[a],n[a].values,n[a].value_message))}},attribute:le,variable:ce,value:de,isArray:function(e){return this.supportsIsArray()?Array.isArray(e):"[object Array]"===ue.call(e)},supportsIsArray:function(){return null!=Array.isArray}};function fe(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o=Object.keys(Object(r)),a=0,i=o.length;a<i;a++){var s=o[a],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(t[s]=r[s])}}return t}var he=function(){return Object.assign?Object.assign:fe};function me(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}function _e(e){var t=[];for(var n in e)t.push(e[n]);return t}function ye(){var e=_e(arguments);return e.unshift({}),he().apply(void 0,e)}function ge(e){var t=e.match(/^(https?:|file:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}}function ve(e,t){var n=ye(e);return e[t]&&(n[t]=e[t].trim()),n}var be={toSnakeCase:function e(t,n){return"object"!=typeof t||pe.isArray(t)||null===t?t:(n=n||[],Object.keys(t).reduce((function(r,o){return r[-1===n.indexOf(o)?function(e){for(var t,n="",r=0,o=!0,a=!0;r<e.length;)t=e.charCodeAt(r),!a&&t>=65&&t<=90||!o&&t>=48&&t<=57?(n+="_",n+=e[r].toLowerCase()):n+=e[r].toLowerCase(),o=t>=48&&t<=57,a=t>=65&&t<=90,r++;return n}(o):o]=e(t[o]),r}),{}))},toCamelCase:function e(t,n,r){return"object"!=typeof t||pe.isArray(t)||null===t?t:(n=n||[],r=r||{},Object.keys(t).reduce((function(o,a){var i,s=-1===n.indexOf(a)?(i=a.split("_")).reduce((function(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}),i.shift()):a;return o[s]=e(t[s]||t[a],[],r),r.keepOriginal&&(o[a]=e(t[a],[],r)),o}),{}))},blacklist:function(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})},merge:function(e,t){return{base:t?me(e,t):e,with:function(e,t){return e=t?me(e,t):e,ye(this.base,e)}}},pick:me,getKeysNotIn:function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(r);return n},extend:ye,getOriginFromUrl:function(e){if(e){var t=ge(e);if(!t)return null;var n=t.protocol+"//"+t.hostname;return t.port&&(n+=":"+t.port),n}},getLocationFromUrl:ge,trimUserDetails:function(e){return function(e,t){return["username","email","phoneNumber"].reduce(ve,e)}(e)},updatePropertyOn:function e(t,n,r){"string"==typeof n&&(n=n.split("."));var o=n[0];t.hasOwnProperty(o)&&(1===n.length?t[o]=r:e(t[o],n.slice(1),r))}};function we(e){this.request=e,this.method=e.method,this.url=e.url,this.body=e._data,this.headers=e._header}function Me(e){this.request=e}function Le(e){this._sendTelemetry=!1!==e._sendTelemetry||e._sendTelemetry,this._telemetryInfo=e._telemetryInfo||null,this._timesToRetryFailedRequests=e._timesToRetryFailedRequests,this.headers=e.headers||{},this._universalLoginPage=e.universalLoginPage}function Te(){return window}we.prototype.abort=function(){this.request.abort()},we.prototype.getMethod=function(){return this.method},we.prototype.getBody=function(){return this.body},we.prototype.getUrl=function(){return this.url},we.prototype.getHeaders=function(){return this.headers},Me.prototype.set=function(e,t){return this.request=this.request.set(e,t),this},Me.prototype.send=function(e){return this.request=this.request.send(be.trimUserDetails(e)),this},Me.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},Me.prototype.end=function(e){return this.request.end(e),new we(this.request)},Le.prototype.setCommonConfiguration=function(e,t){if(t=t||{},this._timesToRetryFailedRequests>0&&(e=e.retry(this._timesToRetryFailedRequests)),t.noHeaders)return e;var n=this.headers;e=e.set("Content-Type","application/json");for(var r=Object.keys(this.headers),o=0;o<r.length;o++)e=e.set(r[o],n[r[o]]);return this._sendTelemetry&&(e=e.set("Auth0-Client",this.getTelemetryData())),e},Le.prototype.getTelemetryData=function(){var e=this._universalLoginPage?"auth0.js-ulp":"auth0.js",t={name:e,version:se.raw};this._telemetryInfo&&((t=be.extend({},this._telemetryInfo)).env=be.extend({},this._telemetryInfo.env),t.env[e]=se.raw);var n=JSON.stringify(t);return ie(n)},Le.prototype.get=function(e,t){return new Me(this.setCommonConfiguration(X.get(e),t))},Le.prototype.post=function(e,t){return new Me(this.setCommonConfiguration(X.post(e),t))},Le.prototype.patch=function(e,t){return new Me(this.setCommonConfiguration(X.patch(e),t))};var ke={redirect:function(e){Te().location=e},getDocument:function(){return Te().document},getWindow:Te,getOrigin:function(){var e=Te().location,t=e.origin;return t||(t=be.getOriginFromUrl(e.href)),t}};function xe(){}xe.prototype.getItem=function(){return null},xe.prototype.removeItem=function(){},xe.prototype.setItem=function(){};var Ee=a((function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,!0!==a[u]&&(s+="="+a[u].split(";")[0]));return document.cookie=t+"="+n+s}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=t(s[0]);if(u=(r.read||r)(u,l)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[l]=u,e===l)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},e.exports=n()}));function Se(){}function De(e){this.disableWarnings=e.disableWarnings}function Oe(e){if(this.warn=new De({}),this.storage=new Se,!0===e.__tryLocalStorageFirst)try{var t=ke.getWindow().localStorage;t&&(this.storage=t)}catch(e){this.warn.warning(e),this.warn.warning("Can't use localStorage. Using CookieStorage instead.")}}function Ye(e){this.handler=new Oe(e)}function Ce(e){this.storage=new Ye(e)}function Ae(e,t){return{error:e,errorDescription:t}}Se.prototype.getItem=function(e){return Ee.get(e)},Se.prototype.removeItem=function(e){Ee.remove(e)},Se.prototype.setItem=function(e,t,n){var r=be.extend({expires:1},n);"https:"===ke.getWindow().location.protocol&&(r.secure=!0),Ee.set(e,t,r)},De.prototype.warning=function(e){this.disableWarnings||console.warn(e)},Oe.prototype.failover=function(){this.storage instanceof xe?this.warn.warning("DummyStorage: ignore failover"):this.storage instanceof Se?(this.warn.warning("CookieStorage: failing over DummyStorage"),this.storage=new xe):(this.warn.warning("LocalStorage: failing over CookieStorage"),this.storage=new Se)},Oe.prototype.getItem=function(e){try{return this.storage.getItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.getItem(e)}},Oe.prototype.removeItem=function(e){try{return this.storage.removeItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.removeItem(e)}},Oe.prototype.setItem=function(e,t,n){try{return this.storage.setItem(e,t,n)}catch(r){return this.warn.warning(r),this.failover(),this.setItem(e,t,n)}},Ye.prototype.getItem=function(e){var t=this.handler.getItem(e);try{return JSON.parse(t)}catch(e){return t}},Ye.prototype.removeItem=function(e){return this.handler.removeItem(e)},Ye.prototype.setItem=function(e,t,n){var r=JSON.stringify(t);return this.handler.setItem(e,r,n)},Ce.prototype.set=function(e,t){var n={lastUsedConnection:e,lastUsedSub:t};this.storage.setItem("auth0.ssodata",JSON.stringify(n))},Ce.prototype.get=function(){var e=this.storage.getItem("auth0.ssodata");if(e)return JSON.parse(e)};var je={buildResponse:Ae,invalidToken:function(e){return Ae("invalid_token",e)}};function Pe(e,t){return(t=t||{}).ignoreCasing=!!t.ignoreCasing&&t.ignoreCasing,function(n,r){var o;return n||r?(!n&&r.err&&(n=r.err,r=null),!n&&r.error&&(n=r,r=null),n?(o={original:n},be.updatePropertyOn(o,"original.response.req._data.password","*****"),n.response&&n.response.statusCode&&(o.statusCode=n.response.statusCode),n.response&&n.response.statusText&&(o.statusText=n.response.statusText),n.response&&n.response.body&&(n=n.response.body),n.err&&(n=n.err),o.code=n.code||n.error||n.error_code||n.status||null,o.description=n.errorDescription||n.error_description||n.description||n.error||n.details||n.err||null,t.forceLegacyError&&(o.error=o.code,o.error_description=o.description),n.error_codes&&n.error_details&&(o.errorDetails={codes:n.error_codes,details:n.error_details}),n.name&&(o.name=n.name),n.policy&&(o.policy=n.policy),e(o)):!r.type||"text/html"!==r.type&&"text/plain"!==r.type?t.ignoreCasing?e(null,r.body||r):e(null,be.toCamelCase(r.body||r,[],{keepOriginal:t.keepOriginalCasing})):e(null,r.text)):e(je.buildResponse("generic_error","Something went wrong"))}}var He=["realm","audience","otp","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier"],Ie=["connection","connection_scope","auth0Client","owp","device","realm","organization","invitation","protocol","_csrf","_intstate","login_ticket","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","screen_hint","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method","access_type","display"],Ne=function(e,t){return be.pick(t,He)},Re=function(e,t){var n=be.getKeysNotIn(t,Ie);return n.length>0&&e.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),t},Fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function ze(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ue=ze((function(e,t){e.exports=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,o=void 0,a=void 0,i=function(e,t){f[n]=e,f[n+1]=t,2===(n+=2)&&(a?a(h):v())},s="undefined"!=typeof window?window:void 0,u=s||{},l=u.MutationObserver||u.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(h,1)}}var f=new Array(1e3);function h(){for(var e=0;e<n;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;n=0}var m,_,y,g,v=void 0;function b(e,t){var n=this,r=new this.constructor(L);void 0===r[M]&&j(r);var o=n._state;if(o){var a=arguments[o-1];i((function(){return C(o,r,a,n._result)}))}else O(n,r,e,t);return r}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(L);return x(t,e),t}v=c?function(){return r.nextTick(h)}:l?(_=0,y=new l(h),g=document.createTextNode(""),y.observe(g,{characterData:!0}),function(){g.data=_=++_%2}):d?((m=new MessageChannel).port1.onmessage=h,function(){return m.port2.postMessage(0)}):void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(h)}:p()}catch(e){return p()}}():p();var M=Math.random().toString(36).substring(2);function L(){}var T=void 0;function k(t,n,r){n.constructor===t.constructor&&r===b&&n.constructor.resolve===w?function(e,t){1===t._state?S(e,t._result):2===t._state?D(e,t._result):O(t,void 0,(function(t){return x(e,t)}),(function(t){return D(e,t)}))}(t,n):void 0===r?S(t,n):e(r)?function(e,t,n){i((function(e){var r=!1,o=function(n,o,a,i){try{n.call(o,(function(n){r||(r=!0,t!==n?x(e,n):S(e,n))}),(function(t){r||(r=!0,D(e,t))}))}catch(e){return e}}(n,t);!r&&o&&(r=!0,D(e,o))}),e)}(t,n,r):S(t,n)}function x(e,t){if(e===t)D(e,new TypeError("You cannot resolve a promise with itself"));else if(o=typeof(r=t),null===r||"object"!==o&&"function"!==o)S(e,t);else{var n=void 0;try{n=t.then}catch(t){return void D(e,t)}k(e,t,n)}var r,o}function E(e){e._onerror&&e._onerror(e._result),Y(e)}function S(e,t){e._state===T&&(e._result=t,e._state=1,0!==e._subscribers.length&&i(Y,e))}function D(e,t){e._state===T&&(e._state=2,e._result=t,i(E,e))}function O(e,t,n,r){var o=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+1]=n,o[a+2]=r,0===a&&e._state&&i(Y,e)}function Y(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,a=e._result,i=0;i<t.length;i+=3)o=t[i+n],(r=t[i])?C(n,r,o,a):o(a);e._subscribers.length=0}}function C(t,n,r,o){var a=e(r),i=void 0,s=void 0,u=!0;if(a){try{i=r(o)}catch(t){u=!1,s=t}if(n===i)return void D(n,new TypeError("A promises callback cannot return that same promise."))}else i=o;n._state!==T||(a&&u?x(n,i):!1===u?D(n,s):1===t?S(n,i):2===t&&D(n,i))}var A=0;function j(e){e[M]=A++,e._state=void 0,e._result=void 0,e._subscribers=[]}var P=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(L),this.promise[M]||j(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&S(this.promise,this._result))):D(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===T&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===w){var o=void 0,a=void 0,i=!1;try{o=e.then}catch(e){i=!0,a=e}if(o===b&&e._state!==T)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===H){var s=new n(L);i?D(s,a):k(s,e,o),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===T&&(this._remaining--,2===e?D(r,n):this._result[t]=n),0===this._remaining&&S(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),H=function(){function t(e){this[M]=A++,this._result=this._state=void 0,this._subscribers=[],L!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){x(e,t)}),(function(t){D(e,t)}))}catch(t){D(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return H.prototype.then=b,H.all=function(e){return new P(this,e).promise},H.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var o=e.length,a=0;a<o;a++)n.resolve(e[a]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},H.resolve=w,H.reject=function(e){var t=new this(L);return D(t,e),t},H._setScheduler=function(e){a=e},H._setAsap=function(e){i=e},H._asap=i,H.polyfill=function(){var e=void 0;if(void 0!==Fe)e=Fe;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=H},H.Promise=H,H}()})),We=ze((function(e,t){var n;e.exports=n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},a=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++)t[r+a>>>2]|=(n[a>>>2]>>>24-a%4*8&255)<<24-(r+a)%4*8;else for(a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},a=0;a<t;a+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new i.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new i.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++)r.push(String.fromCharCode(t[o>>>2]>>>24-o%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new i.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*u,o);if(u){for(var c=0;c<u;c+=a)this._doProcessBlock(r,c);var d=r.splice(0,u);n.sigBytes-=l}return new i.init(d,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=r.algo={};return r}(Math)})),Be=ze((function(e,t){var n;e.exports=(n=We,function(e){var t=n,r=t.lib,o=r.WordArray,a=r.Hasher,i=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],c=i.SHA256=a.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)l[f]=0|e[t+f];else{var h=l[f-15],m=l[f-2];l[f]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+l[f-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+l[f-16]}var _=r&o^r&a^o&a,y=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&d)+u[f]+l[f];p=d,d=c,c=s,s=i+y|0,i=a,a=o,o=r,r=y+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+i|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(c),t.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)})),Ve=ze((function(e,t){var n,r;e.exports=(r=(n=We).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var i=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)o.push(r.charAt(i>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var i=n.charAt(64);if(i){var s=e.indexOf(i);-1!==s&&(t=s)}return function(e,t,n){for(var o=[],a=0,i=0;i<t;i++)if(i%4){var s=n[e.charCodeAt(i-1)]<<i%4*2,u=n[e.charCodeAt(i)]>>>6-i%4*2;o[a>>>2]|=(s|u)<<24-a%4*8,a++}return r.create(o,a)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),qe=ze((function(e,t){e.exports=We.enc.Hex})),Ge=ze((function(e,t){(function(){var t;function n(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):this.fromString(e,null==t&&"string"!=typeof e?256:t))}function r(){return new n(null)}var o="undefined"!=typeof navigator;o&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,n,r,o,a){for(var i=32767&t,s=t>>15;--a>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*i;o=((u=i*u+((32767&c)<<15)+n[r]+(1073741823&o))>>>30)+(c>>>15)+s*l+(o>>>30),n[r++]=1073741823&u}return o},t=30):o&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,o,a){for(;--a>=0;){var i=t*this[e++]+n[r]+o;o=Math.floor(i/67108864),n[r++]=67108863&i}return o},t=26):(n.prototype.am=function(e,t,n,r,o,a){for(var i=16383&t,s=t>>14;--a>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*i;o=((u=i*u+((16383&c)<<14)+n[r]+o)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return o},t=28),n.prototype.DB=t,n.prototype.DM=(1<<t)-1,n.prototype.DV=1<<t,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-t,n.prototype.F2=2*t-52;var a,i,s=new Array;for(a="0".charCodeAt(0),i=0;i<=9;++i)s[a++]=i;for(a="a".charCodeAt(0),i=10;i<36;++i)s[a++]=i;for(a="A".charCodeAt(0),i=10;i<36;++i)s[a++]=i;function u(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function l(e,t){var n=s[e.charCodeAt(t)];return null==n?-1:n}function c(e){var t=r();return t.fromInt(e),t}function d(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function p(e){this.m=e}function f(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function h(e,t){return e&t}function m(e,t){return e|t}function _(e,t){return e^t}function y(e,t){return e&~t}function g(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function v(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function b(){}function w(e){return e}function M(e){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}p.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},p.prototype.revert=function(e){return e},p.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},p.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},f.prototype.convert=function(e){var t=r();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t},f.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t},f.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},f.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},f.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var o=e.length,a=!1,i=0;--o>=0;){var s=8==r?255&e[o]:l(e,o);s<0?"-"==e.charAt(o)&&(a=!0):(a=!1,0==i?this[this.t++]=s:i+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-i)-1)<<i,this[this.t++]=s>>this.DB-i):this[this.t-1]|=s<<i,(i+=r)>=this.DB&&(i-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),a&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,o=this.DB-r,a=(1<<o)-1,i=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+i+1]=this[n]>>o|s,s=(this[n]&a)<<r;for(n=i-1;n>=0;--n)t[n]=0;t[i]=s,t.t=this.t+i+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,a=(1<<r)-1;t[0]=this[n]>>r;for(var i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&a)<<o,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<o),t.t=this.t-n,t.clamp()}},n.prototype.subTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),o=e.abs(),a=r.t;for(t.t=a+o.t;--a>=0;)t[a]=0;for(a=0;a<o.t;++a)t[a+r.t]=r.am(0,o[a],t,a,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,o){var a=e.abs();if(!(a.t<=0)){var i=this.abs();if(i.t<a.t)return null!=t&&t.fromInt(0),void(null!=o&&this.copyTo(o));null==o&&(o=r());var s=r(),u=this.s,l=e.s,c=this.DB-d(a[a.t-1]);c>0?(a.lShiftTo(c,s),i.lShiftTo(c,o)):(a.copyTo(s),i.copyTo(o));var p=s.t,f=s[p-1];if(0!=f){var h=f*(1<<this.F1)+(p>1?s[p-2]>>this.F2:0),m=this.FV/h,_=(1<<this.F1)/h,y=1<<this.F2,g=o.t,v=g-p,b=null==t?r():t;for(s.dlShiftTo(v,b),o.compareTo(b)>=0&&(o[o.t++]=1,o.subTo(b,o)),n.ONE.dlShiftTo(p,b),b.subTo(s,s);s.t<p;)s[s.t++]=0;for(;--v>=0;){var w=o[--g]==f?this.DM:Math.floor(o[g]*m+(o[g-1]+y)*_);if((o[g]+=s.am(0,w,o,v,0,p))<w)for(s.dlShiftTo(v,b),o.subTo(b,o);o[g]<--w;)o.subTo(b,o)}null!=t&&(o.drShiftTo(p,t),u!=l&&n.ZERO.subTo(t,t)),o.t=p,o.clamp(),c>0&&o.rShiftTo(c,o),u<0&&n.ZERO.subTo(o,o)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var o=r(),a=r(),i=t.convert(this),s=d(e)-1;for(i.copyTo(o);--s>=0;)if(t.sqrTo(o,a),(e&1<<s)>0)t.mulTo(a,i,o);else{var u=o;o=a,a=u}return t.revert(o)},n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,o=!1,a="",i=this.t,s=this.DB-i*this.DB%t;if(i-- >0)for(s<this.DB&&(n=this[i]>>s)>0&&(o=!0,a=u(n));i>=0;)s<t?(n=(this[i]&(1<<s)-1)<<t-s,n|=this[--i]>>(s+=this.DB-t)):(n=this[i]>>(s-=t)&r,s<=0&&(s+=this.DB,--i)),n>0&&(o=!0),o&&(a+=u(n));return o?a:"0"},n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+d(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=r();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new p(t):new f(t),this.exp(e,n)},n.ZERO=c(0),n.ONE=c(1),b.prototype.convert=w,b.prototype.revert=w,b.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},b.prototype.sqrTo=function(e,t){e.squareTo(t)},M.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=r();return e.copyTo(t),this.reduce(t),t},M.prototype.revert=function(e){return e},M.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},M.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},M.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var L,T,k,x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],E=(1<<26)/x[x.length-1];function S(){var e;e=(new Date).getTime(),T[k++]^=255&e,T[k++]^=e>>8&255,T[k++]^=e>>16&255,T[k++]^=e>>24&255,k>=P&&(k-=P)}if(n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),o=c(n),a=r(),i=r(),s="";for(this.divRemTo(o,a,i);a.signum()>0;)s=(n+i.intValue()).toString(e).substr(1)+s,a.divRemTo(o,a,i);return i.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),o=Math.pow(t,r),a=!1,i=0,s=0,u=0;u<e.length;++u){var c=l(e,u);c<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(s=t*s+c,++i>=r&&(this.dMultiply(o),this.dAddOffset(s,0),i=0,s=0))}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(s,0)),a&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var o=new Array,a=7&e;o.length=1+(e>>3),t.nextBytes(o),a>0?o[0]&=(1<<a)-1:o[0]=0,this.fromString(o,256)}},n.prototype.bitwiseTo=function(e,t,n){var r,o,a=Math.min(e.t,this.t);for(r=0;r<a;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(o=e.s&this.DM,r=a;r<this.t;++r)n[r]=t(this[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=a;r<e.t;++r)n[r]=t(o,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,n){var r,o=Math.min(this.t+e.t,t);for(n.s=0,n.t=o;o>0;)n[--o]=0;for(r=n.t-this.t;o<r;++o)n[o+this.t]=this.am(0,e[o],n,o,0,this.t);for(r=Math.min(e.t,t);o<r;++o)this.am(0,e[o],n,o,0,t-o);n.clamp()},n.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var a=t.shiftRight(o);(e=e+1>>1)>x.length&&(e=x.length);for(var i=r(),s=0;s<e;++s){i.fromInt(x[Math.floor(Math.random()*x.length)]);var u=i.modPow(a,this);if(0!=u.compareTo(n.ONE)&&0!=u.compareTo(t)){for(var l=1;l++<o&&0!=u.compareTo(t);)if(0==(u=u.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=u.compareTo(t))return!1}}return!0},n.prototype.clone=function(){var e=r();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=r();return this.bitwiseTo(e,h,t),t},n.prototype.or=function(e){var t=r();return this.bitwiseTo(e,m,t),t},n.prototype.xor=function(e){var t=r();return this.bitwiseTo(e,_,t),t},n.prototype.andNot=function(e){var t=r();return this.bitwiseTo(e,y,t),t},n.prototype.not=function(){for(var e=r(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=r();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=r();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+g(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=v(this[n]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},n.prototype.setBit=function(e){return this.changeBit(e,m)},n.prototype.clearBit=function(e){return this.changeBit(e,y)},n.prototype.flipBit=function(e){return this.changeBit(e,_)},n.prototype.add=function(e){var t=r();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=r();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=r();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=r();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=r();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=r(),n=r();return this.divRemTo(e,t,n),new Array(t,n)},n.prototype.modPow=function(e,t){var n,o,a=e.bitLength(),i=c(1);if(a<=0)return i;n=a<18?1:a<48?3:a<144?4:a<768?5:6,o=a<8?new p(t):t.isEven()?new M(t):new f(t);var s=new Array,u=3,l=n-1,h=(1<<n)-1;if(s[1]=o.convert(this),n>1){var m=r();for(o.sqrTo(s[1],m);u<=h;)s[u]=r(),o.mulTo(m,s[u-2],s[u]),u+=2}var _,y,g=e.t-1,v=!0,b=r();for(a=d(e[g])-1;g>=0;){for(a>=l?_=e[g]>>a-l&h:(_=(e[g]&(1<<a+1)-1)<<l-a,g>0&&(_|=e[g-1]>>this.DB+a-l)),u=n;0==(1&_);)_>>=1,--u;if((a-=u)<0&&(a+=this.DB,--g),v)s[_].copyTo(i),v=!1;else{for(;u>1;)o.sqrTo(i,b),o.sqrTo(b,i),u-=2;u>0?o.sqrTo(i,b):(y=i,i=b,b=y),o.mulTo(b,s[_],i)}for(;g>=0&&0==(e[g]&1<<a);)o.sqrTo(i,b),y=i,i=b,b=y,--a<0&&(a=this.DB-1,--g)}return o.revert(i)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return n.ZERO;for(var r=e.clone(),o=this.clone(),a=c(1),i=c(0),s=c(0),u=c(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(a.isEven()&&i.isEven()||(a.addTo(this,a),i.subTo(e,i)),a.rShiftTo(1,a)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);for(;o.isEven();)o.rShiftTo(1,o),t?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(o)>=0?(r.subTo(o,r),t&&a.subTo(s,a),i.subTo(u,i)):(o.subTo(r,o),t&&s.subTo(a,s),u.subTo(i,u))}return 0!=o.compareTo(n.ONE)?n.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},n.prototype.pow=function(e){return this.exp(e,new b)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return t;for(o<a&&(a=o),a>0&&(t.rShiftTo(a,t),n.rShiftTo(a,n));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},n.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=x[x.length-1]){for(t=0;t<x.length;++t)if(n[0]==x[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<x.length;){for(var r=x[t],o=t+1;o<x.length&&r<E;)r*=x[o++];for(r=n.modInt(r);t<o;)if(r%x[t++]==0)return!1}return n.millerRabin(e)},n.prototype.square=function(){var e=r();return this.squareTo(e),e},n.prototype.Barrett=M,null==T){var D;if(T=new Array,k=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var O=new Uint8Array(32);for(window.crypto.getRandomValues(O),D=0;D<32;++D)T[k++]=O[D]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var Y=window.crypto.random(32);for(D=0;D<Y.length;++D)T[k++]=255&Y.charCodeAt(D)}for(;k<P;)D=Math.floor(65536*Math.random()),T[k++]=D>>>8,T[k++]=255&D;k=0,S()}function C(){if(null==L){for(S(),(L=new j).init(T),k=0;k<T.length;++k)T[k]=0;k=0}return L.next()}function A(){}function j(){this.i=0,this.j=0,this.S=new Array}A.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=C()},j.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)r=this.S[t],this.S[t]=this.S[n=n+this.S[t]+e[t%e.length]&255],this.S[n]=r;this.i=0,this.j=0},j.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var P=256;e.exports={default:n,BigInteger:n,SecureRandom:A}}).call(Fe)})),Je={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},Ke={sha256:Be};function $e(e,t){if(this.n=null,this.e=0,!(null!=e&&null!=t&&e.length>0&&t.length>0))throw new Error("Invalid key data");this.n=new Ge.BigInteger(e,16),this.e=parseInt(t,16)}$e.prototype.verify=function(e,t){t=t.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new Ge.BigInteger(t,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=function(e){for(var t in Je){var n=Je[t],r=n.length;if(e.substring(0,r)===n)return{alg:t,hash:e.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!Ke.hasOwnProperty(r.alg))throw new Error("Hashing algorithm is not supported.");var o=Ke[r.alg](e).toString();return r.hash===o};for(var Xe=[],Ze=[],Qe="undefined"!=typeof Uint8Array?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,nt=et.length;tt<nt;++tt)Xe[tt]=et[tt],Ze[et.charCodeAt(tt)]=tt;Ze["-".charCodeAt(0)]=62,Ze["_".charCodeAt(0)]=63;var rt=function(e){var t,n,r=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}(e),o=r[0],a=r[1],i=new Qe(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),s=0,u=a>0?o-4:o;for(n=0;n<u;n+=4)t=Ze[e.charCodeAt(n)]<<18|Ze[e.charCodeAt(n+1)]<<12|Ze[e.charCodeAt(n+2)]<<6|Ze[e.charCodeAt(n+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=255&t;return 2===a&&(t=Ze[e.charCodeAt(n)]<<2|Ze[e.charCodeAt(n+1)]>>4,i[s++]=255&t),1===a&&(t=Ze[e.charCodeAt(n)]<<10|Ze[e.charCodeAt(n+1)]<<4|Ze[e.charCodeAt(n+2)]>>2,i[s++]=t>>8&255,i[s++]=255&t),i};function ot(e){var t=e.length%4;return 0===t?e:e+new Array(4-t+1).join("=")}function at(e){return e=ot(e).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}(rt(e)).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function it(e){return function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);t+=2===r.length?r:"0"+r}return t}(rt(ot(e)))}var st=ze((function(e){var t,n;t=Fe,n=function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=o.replace(/[\/]+$/,r<e.length-1?"":"/"),t.push(o))}var a=t.join("/"),i=(a=a.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i.shift()+(i.length>0?"?":"")+i.join("&")}return function(){return e("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()}));function ut(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,a=[],i=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return a},entries:function(){return i},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){a.push(t=t.toLowerCase()),i.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(u())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}function lt(e){if(e.ok)return e.json();var t=new Error(e.statusText);return t.response=e,Promise.reject(t)}function ct(e){this.name="ConfigurationError",this.message=e||""}function dt(e){this.name="TokenValidationError",this.message=e||""}ct.prototype=Error.prototype,dt.prototype=Error.prototype;var pt=function(){function e(){}var t=e.prototype;return t.get=function(){return null},t.has=function(){return null},t.set=function(){return null},e}();Ue.polyfill();var ft=function(e){return"number"==typeof e},ht=function(){return new Date};function mt(e){var t=e||{};if(this.jwksCache=t.jwksCache||new pt,this.expectedAlg=t.expectedAlg||"RS256",this.issuer=t.issuer,this.audience=t.audience,this.leeway=0===t.leeway?0:t.leeway||60,this.jwksURI=t.jwksURI,this.maxAge=t.maxAge,this.__clock="function"==typeof t.__clock?t.__clock:ht,this.leeway<0||this.leeway>300)throw new ct("The leeway should be positive and lower than five minutes.");if("RS256"!==this.expectedAlg)throw new ct('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "RS256".')}function _t(e,t){this.plugins=t;for(var n=0;n<this.plugins.length;n++){if(this.plugins[n].version!==se.raw){var r="";throw this.plugins[n].constructor&&this.plugins[n].constructor.name&&(r=this.plugins[n].constructor.name),new Error("Plugin "+r+" version ("+this.plugins[n].version+") is not compatible with the SDK version ("+se.raw+")")}this.plugins[n].setWebAuth(e)}}mt.prototype.verify=function(e,t,n){if(!n&&t&&"function"==typeof t&&(n=t,t=void 0),!e)return n(new dt("ID token is required but missing"),null);var r=this.decode(e);if(r instanceof Error)return n(new dt("ID token could not be decoded"),null);var o=r.encoded.header+"."+r.encoded.payload,a=it(r.encoded.signature),i=r.header.alg,s=r.header.kid,u=r.payload.aud,l=r.payload.sub,c=r.payload.iss,d=r.payload.exp,p=r.payload.nbf,f=r.payload.iat,h=r.payload.azp,m=r.payload.auth_time,_=r.payload.nonce,y=this.__clock(),g=this;if(g.expectedAlg!==i)return n(new dt('Signature algorithm of "'+i+'" is not supported. Expected the ID token to be signed with "RS256".'),null);this.getRsaVerifier(c,s,(function(e,i){if(e)return n(e,null);if(!i.verify(o,a))return n(new dt("Invalid ID token signature."),null);if(!c||"string"!=typeof c)return n(new dt("Issuer (iss) claim must be a string present in the ID token"),null);if(g.issuer!==c)return n(new dt('Issuer (iss) claim mismatch in the ID token, expected "'+g.issuer+'", found "'+c+'"'),null);if(!l||"string"!=typeof l)return n(new dt("Subject (sub) claim must be a string present in the ID token"),null);if(!u||"string"!=typeof u&&!Array.isArray(u))return n(new dt("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(u)&&!u.includes(g.audience))return n(new dt('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but was not one of "'+u.join(", ")+'"'),null);if("string"==typeof u&&g.audience!==u)return n(new dt('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but found "'+u+'"'),null);if(t){if(!_||"string"!=typeof _)return n(new dt("Nonce (nonce) claim must be a string present in the ID token"),null);if(_!==t)return n(new dt('Nonce (nonce) claim value mismatch in the ID token; expected "'+t+'", found "'+_+'"'),null)}if(Array.isArray(u)&&u.length>1){if(!h||"string"!=typeof h)return n(new dt("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(h!==g.audience)return n(new dt('Authorized Party (azp) claim mismatch in the ID token; expected "'+g.audience+'", found "'+h+'"'),null)}if(!d||!ft(d))return n(new dt("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!f||!ft(f))return n(new dt("Issued At (iat) claim must be a number present in the ID token"),null);var s=d+g.leeway,v=new Date(0);if(v.setUTCSeconds(s),y>v)return n(new dt('Expiration Time (exp) claim error in the ID token; current time "'+y+'" is after expiration time "'+v+'"'),null);if(p&&ft(p)){var b=p-g.leeway,w=new Date(0);if(w.setUTCSeconds(b),y<w)return n(new dt('Not Before Time (nbf) claim error in the ID token; current time "'+y+'" is before the not before time "'+w+'"'),null)}if(g.maxAge){if(!m||!ft(m))return n(new dt("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var M=m+g.maxAge+g.leeway,L=new Date(0);if(L.setUTCSeconds(M),y>L)return n(new dt('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+y+'" is after last auth time at "'+L+'"'),null)}return n(null,r.payload)}))},mt.prototype.getRsaVerifier=function(e,t,n){var r=this,o=e+t;Promise.resolve(this.jwksCache.has(o)).then((function(n){return n?r.jwksCache.get(o):(a={jwksURI:r.jwksURI,iss:e,kid:t},("undefined"==typeof fetch?ut:fetch)(a.jwksURI||st(a.iss,".well-known","jwks.json")).then(lt).then((function(e){var t,n,r,o=null;for(t=0;t<e.keys.length&&null===o;t++)(n=e.keys[t]).kid===a.kid&&(o=n);if(!o)throw new Error('Could not find a public key for Key ID (kid) "'+a.kid+'"');return{modulus:it((r=o).n),exp:it(r.e)}})).catch((function(e){throw e})));var a})).then((function(e){if(!e||!e.modulus||!e.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(r.jwksCache.set(o,e)).then((function(){n&&n(null,new $e(e.modulus,e.exp))}))})).catch((function(e){n&&n(e)}))},mt.prototype.decode=function(e){var t,n,r=e.split(".");if(3!==r.length)return new dt("Cannot decode a malformed JWT");try{t=JSON.parse(at(r[0])),n=JSON.parse(at(r[1]))}catch(e){return new dt("Token header or payload is not valid JSON")}return{header:t,payload:n,encoded:{header:r[0],payload:r[1],signature:r[2]}}},mt.prototype.validateAccessToken=function(e,t,n,r){if(this.expectedAlg!==t)return r(new dt('Signature algorithm of "'+t+'" is not supported. Expected "'+this.expectedAlg+'"'));var o,a=Be(e),i=qe.stringify(a),s=i.substring(0,i.length/2),u=qe.parse(s),l=Ve.stringify(u);return r((o={"+":"-","/":"_","=":""},l.replace(/[+/=]/g,(function(e){return o[e]}))!==n?new dt("Invalid access_token"):null))},_t.prototype.get=function(e){for(var t=0;t<this.plugins.length;t++)if(this.plugins[t].supports(e))return this.plugins[t].init();return null};var yt=function(e){var t=new Uint8Array(e),n=[],r="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~",o=ke.getWindow().crypto||ke.getWindow().msCrypto;if(!o)return null;for(var a=o.getRandomValues(t),i=0;i<a.length;i++)n.push(r[a[i]%r.length]);return n.join("")};function gt(e){var t=e.transaction||{};this.namespace=t.namespace||"com.auth0.auth.",this.keyLength=t.keyLength||32,this.storage=new Ye(e),this.options=e}function vt(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout||6e4,this.timeoutCallback=e.timeoutCallback||null,this.eventListenerType=e.eventListenerType||"message",this.iframe=null,this.timeoutHandle=null,this._destroyTimeout=null,this.transientMessageEventListener=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator||{isValid:function(){return!0}},"function"!=typeof this.callback)throw new Error("options.callback must be a function")}function bt(e){this.webAuth=e,this.warn=new De(e.baseOptions)}function wt(e,t){this.webAuth=e,this.baseOptions=t,this.request=new Le(t),this.webMessageHandler=new bt(e),this.storage=new Ye(t)}function Mt(e,t){return["co/verifier",encodeURIComponent(e),encodeURIComponent(t)].join("/")}function Lt(e,t){this.webAuth=e,this.baseOptions=t,this.crossOriginAuthentication=new wt(e,this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings})}gt.prototype.process=function(e){if(!e.responseType)throw new Error("responseType is required");var t=e.realm||e.connection,n=-1!==e.responseType.indexOf("id_token"),r=this.generateTransaction(e.appState,e.state,e.nonce,t,n,e.organization);return e.state||(e.state=r.state),n&&!e.nonce&&(e.nonce=r.nonce),e},gt.prototype.generateTransaction=function(e,t,n,r,o,a){if(t=t||yt(this.keyLength),n=n||(o?yt(this.keyLength):null),ke.getWindow().location.host!==this.options.domain){var i={nonce:n,appState:e,state:t,lastUsedConnection:r};a&&(i.organization=a),this.storage.setItem(this.namespace+t,i,{expires:1/48})}return{state:t,nonce:n}},gt.prototype.getStoredTransaction=function(e){var t;return t=this.storage.getItem(this.namespace+e),this.clearTransaction(e),t},gt.prototype.clearTransaction=function(e){this.storage.removeItem(this.namespace+e)},vt.prototype.init=function(){var e=this,t=ke.getWindow();switch(this.iframe=t.document.createElement("iframe"),this.iframe.style.display="none",this.proxyEventListener=function(t){e.eventListener(t)},this.eventListenerType){case"message":this.eventSourceObject=t;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error("Unsupported event listener type: "+this.eventListenerType)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),t.document.body.appendChild(this.iframe),this.iframe.src=this.url,this.timeoutHandle=setTimeout((function(){e.timeoutHandler()}),this.timeout)},vt.prototype.eventListener=function(e){var t={event:e,sourceObject:this.eventSourceObject};this.eventValidator.isValid(t)&&(this.destroy(),this.callback(t))},vt.prototype.timeoutHandler=function(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()},vt.prototype.destroy=function(){var e=this;clearTimeout(this.timeoutHandle),this._destroyTimeout=setTimeout((function(){e.eventSourceObject.removeEventListener(e.eventListenerType,e.proxyEventListener,!1),e.iframe.parentNode&&e.iframe.parentNode.removeChild(e.iframe)}),0)},bt.prototype.run=function(e,t){var n=this;e.responseMode="web_message",e.prompt="none";var r=ke.getOrigin(),o=be.getOriginFromUrl(e.redirectUri);if(o&&r!==o)return t({error:"origin_mismatch",error_description:"The redirectUri's origin ("+o+") should match the window's origin ("+r+")."});!function(e,t,n){new vt({url:e,eventListenerType:"message",callback:function(e){n(null,e)},timeout:t.timeout,eventValidator:{isValid:function(e){return"authorization_response"===e.event.data.type&&t.state===e.event.data.response.state}},timeoutCallback:function(){n({error:"timeout",error_description:"Timeout during executing web_message communication",state:t.state})}}).init()}(this.webAuth.client.buildAuthorizeUrl(e),e,(function(r,o){var a=r;if(!r&&o.event.data.response.error&&(a=o.event.data.response),!a){var i=o.event.data.response;return n.webAuth.validateAuthenticationResponse(e,i,t)}return"consent_required"===a.error&&"localhost"===ke.getWindow().location.hostname&&n.warn.warning("Consent Required. Consent can't be skipped on localhost. Read more here: https://auth0.com/docs/api-auth/user-consent#skipping-consent-for-first-party-clients"),n.webAuth.transactionManager.clearTransaction(a.state),t(be.pick(a,["error","error_description"]))}))},wt.prototype.login=function(e,t){var n=this,r=i(this.baseOptions.rootUrl,"/co/authenticate");e.username=e.username||e.email,delete e.email;var o={client_id:e.clientID||this.baseOptions.clientID,username:e.username};e.password&&(o.password=e.password),e.otp&&(o.otp=e.otp);var a=e.realm||this.baseOptions.realm;if(a){var s=e.credentialType||this.baseOptions.credentialType||"http://auth0.com/oauth/grant-type/password-realm";o.realm=a,o.credential_type=s}else o.credential_type="password";this.request.post(r).withCredentials().send(o).end((function(r,o){if(r){var a=r.response&&r.response.body||{error:"request_error",error_description:JSON.stringify(r)};return Pe(t,{forceLegacyError:!0})(a)}function i(){var r=!0===e.popup;e=be.blacklist(e,["password","credentialType","otp","popup","onRedirecting"]);var a=be.merge(e).with({loginTicket:o.body.login_ticket}),i=Mt(n.baseOptions.rootUrl,o.body.co_id);n.storage.setItem(i,o.body.co_verifier,{expires:1/96}),r?n.webMessageHandler.run(a,Pe(t,{forceLegacyError:!0})):n.webAuth.authorize(a)}"function"==typeof e.onRedirecting?e.onRedirecting(i):i()}))},wt.prototype.callback=function(){var e=decodeURIComponent(function(e){var t=("&"+ke.getWindow().location.hash.substring(1)).split("&origin=");if(2===t.length)return t.pop().split("&").shift()}()),t=ke.getWindow(),n=this;t.addEventListener("message",(function(e){if("co_verifier_request"===e.data.type){var t=Mt(e.origin,e.data.request.id),r=function(e,t){try{var n=e.getItem(t);return e.removeItem(t),n||""}catch(e){return""}}(n.storage,t);e.source.postMessage({type:"co_verifier_response",response:{verifier:r}},e.origin)}})),t.parent.postMessage({type:"ready"},e)},Lt.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,delete e.connection,this.crossOriginAuthentication.login(e,t)},Lt.prototype.signupAndLogin=function(e,t){var n=this;return this.webAuth.client.dbConnection.signup(e,(function(r){return r?t(r):(e.realm=e.realm||e.connection,delete e.connection,n.webAuth.login(e,t))}))};var Tt=a((function(e){var t=function(){function e(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function t(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function n(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}var r=function(){if("undefined"==typeof navigator)return!1;var e=-1,t=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)):t.indexOf("Trident")>-1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)),e>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(o,a){if(!a)throw"missing required callback argument";var i,s;o.url||(i="missing required 'url' parameter"),o.relay_url||(i="missing required 'relay_url' parameter"),i&&setTimeout((function(){a(i)}),0),o.window_name||(o.window_name=null),o.window_features&&!function(){try{var e=navigator.userAgent;return-1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(e){}return!1}()||(o.window_features=void 0);var u,l=o.origin||n(o.url);if(l!==n(o.relay_url))return setTimeout((function(){a("invalid arguments: origin of url and relay_url must match")}),0);r&&((s=document.createElement("iframe")).setAttribute("src",o.relay_url),s.style.display="none",s.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(s),u=s.contentWindow);var c=o.popup||window.open(o.url,o.window_name,o.window_features);o.popup&&(c.location.href=o.url),u||(u=c);var d=setInterval((function(){c&&c.closed&&(f(),a&&(a("User closed the popup window"),a=null))}),500),p=JSON.stringify({a:"request",d:o.params});function f(){if(s&&document.body.removeChild(s),s=void 0,d&&(d=clearInterval(d)),t(window,"message",h),t(window,"unload",f),c)try{c.close()}catch(e){u.postMessage("die",l)}c=u=void 0}function h(e){if(e.origin===l){try{var t=JSON.parse(e.data)}catch(e){if(a)return a(e);throw e}"ready"===t.a?u.postMessage(p,l):"error"===t.a?(f(),a&&(a(t.d),a=null)):"response"===t.a&&(f(),a&&(a(null,t.d),a=null))}}return e(window,"unload",f),e(window,"message",h),{originalPopup:c,close:f,focus:function(){if(c)try{c.focus()}catch(e){}}}},onOpen:function(n){var o="*",a=r?function(){for(var e=window.opener.frames,t=e.length-1;t>=0;t--)try{if(e[t].location.protocol===window.location.protocol&&e[t].location.host===window.location.host&&"__winchan_relay_frame"===e[t].name)return e[t]}catch(e){}}():window.opener;if(!a)throw"can't find relay frame";function i(e){e=JSON.stringify(e),r?a.doPost(e,o):a.postMessage(e,o)}function s(e){if("die"===e.data)try{window.close()}catch(e){}}e(r?a:window,"message",(function e(r){var a;try{a=JSON.parse(r.data)}catch(e){}a&&"request"===a.a&&(t(window,"message",e),o=r.origin,n&&setTimeout((function(){n(o,a.d,(function(e){n=void 0,i({a:"response",d:e})}))}),0))})),e(r?a:window,"message",s);try{i({a:"ready"})}catch(t){e(a,"load",(function(e){i({a:"ready"})}))}var u=function(){try{t(r?a:window,"message",s)}catch(e){}n&&i({a:"error",d:"client closed window"}),n=void 0;try{window.close()}catch(e){}};return e(window,"unload",u),{detach:function(){t(window,"unload",u)}}}}:{open:function(e,t,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(e){setTimeout((function(){e("unsupported browser")}),0)}}}();e.exports&&(e.exports=t)})),kt=function(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(e);return t?t[1]:e};function xt(){this._current_popup=null}function Et(e,t){this.baseOptions=t,this.baseOptions.popupOrigin=t.popupOrigin,this.client=e.client,this.webAuth=e,this.transactionManager=new gt(this.baseOptions),this.crossOriginAuthentication=new wt(e,this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings})}function St(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout||6e4,this.handler=null,this.postMessageDataType=e.postMessageDataType||!1,this.postMessageOrigin=e.postMessageOrigin||ke.getWindow().location.origin||ke.getWindow().location.protocol+"//"+ke.getWindow().location.hostname+(ke.getWindow().location.port?":"+ke.getWindow().location.port:"")}function Dt(e){this.baseOptions=e,this.request=new Le(e),this.transactionManager=new gt(this.baseOptions)}function Ot(e,t){this.baseOptions=t,this.client=e,this.baseOptions.universalLoginPage=!0,this.request=new Le(this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings})}xt.prototype.calculatePosition=function(e){var t=e.width||500,n=e.height||600,r=ke.getWindow(),o=void 0!==r.screenX?r.screenX:r.screenLeft,a=void 0!==r.screenY?r.screenY:r.screenTop,i=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,s=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:t,height:n,left:e.left||o+(i-t)/2,top:e.top||a+(s-n)/2}},xt.prototype.preload=function(e){var t=this,n=ke.getWindow(),r=this.calculatePosition(e.popupOptions||{}),o=be.merge(r).with(e.popupOptions),a=e.url||"about:blank",i=Y(o,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=n.open(a,"auth0_signup_popup",i),this._current_popup.kill=function(){this.close(),t._current_popup=null}),this._current_popup},xt.prototype.load=function(e,t,n,r){var o=this,a=this.calculatePosition(n.popupOptions||{}),i=be.merge(a).with(n.popupOptions),s=be.merge({url:e,relay_url:t,window_features:Y(i,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),u=Tt.open(s,(function(e,t){if(!e||"SyntaxError"!==e.name)return o._current_popup=null,r(e,t)}));return u.focus(),u},Et.prototype.buildPopupHandler=function(){var e=this.baseOptions.plugins.get("popup.getPopupHandler");return e?e.getPopupHandler():new xt},Et.prototype.preload=function(e){e=e||{};var t=this.buildPopupHandler();return t.preload(e),t},Et.prototype.getPopupHandler=function(e,t){return e.popupHandler?e.popupHandler:t?this.preload(e):this.buildPopupHandler()},Et.prototype.callback=function(e){var t=this,n=ke.getWindow(),r=(e=e||{}).popupOrigin||this.baseOptions.popupOrigin||ke.getOrigin();n.opener?Tt.onOpen((function(n,o,a){if(n!==r)return a({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});t.webAuth.parseHash(e||{},(function(e,t){return a(e||t)}))})):n.doPost=function(e){n.parent&&n.parent.postMessage(e,r)}},Et.prototype.authorize=function(e,t){var n,r,o={},a=this.baseOptions.plugins.get("popup.authorize"),s=be.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(be.blacklist(e,["popupHandler"]));return pe.check(s,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=i(this.baseOptions.rootUrl,"relay.html"),e.owp?s.owp=!0:(o.origin=kt(s.redirectUri),r=s.redirectUri),e.popupOptions&&(o.popupOptions=be.pick(e.popupOptions,["width","height","top","left"])),a&&(s=a.processParams(s)),(s=this.transactionManager.process(s)).scope=s.scope||"openid profile email",delete s.domain,n=this.client.buildAuthorizeUrl(s),this.getPopupHandler(e).load(n,r,o,Pe(t,{keepOriginalCasing:!0}))},Et.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,e.popup=!0,e=be.merge(this.baseOptions,["redirectUri","responseType","state","nonce"]).with(be.blacklist(e,["popupHandler","connection"])),e=this.transactionManager.process(e),this.crossOriginAuthentication.login(e,t)},Et.prototype.passwordlessVerify=function(e,t){var n=this;return this.client.passwordless.verify(be.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.username=e.phoneNumber||e.email,e.password=e.verificationCode,delete e.email,delete e.phoneNumber,delete e.verificationCode,delete e.type,n.client.loginWithResourceOwner(e,t)}))},Et.prototype.signupAndLogin=function(e,t){var n=this;return this.client.dbConnection.signup(e,(function(r){if(r)return t(r);n.loginWithCredentials(e,t)}))},St.create=function(e){return new St(e)},St.prototype.login=function(e,t){this.handler=new vt({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:this.getCallbackHandler(t,e),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){t(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:e||!1}),this.handler.init()},St.prototype.getEventValidator=function(){var e=this;return{isValid:function(t){switch(t.event.type){case"message":return t.event.origin===e.postMessageOrigin&&t.event.source===e.handler.iframe.contentWindow&&(!1===e.postMessageDataType||t.event.data.type&&t.event.data.type===e.postMessageDataType);case"load":if("about:"===t.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},St.prototype.getCallbackHandler=function(e,t){return function(n){var r;r=t?"object"==typeof n.event.data&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash,e(null,r)}},Dt.prototype.login=function(e,t){var n,r;return n=i(this.baseOptions.rootUrl,"usernamepassword","login"),e.username=e.username||e.email,e=be.blacklist(e,["email","onRedirecting"]),r=be.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(e),r=this.transactionManager.process(r),r=be.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Pe(t))},Dt.prototype.callback=function(e){var t,n=ke.getDocument();(t=n.createElement("div")).innerHTML=e,n.body.appendChild(t).children[0].submit()},Ot.prototype.login=function(e,t){if(ke.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var n,r=be.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return pe.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new Dt(this.baseOptions)).login(r,(function(r,o){if(r)return t(r);function a(){n.callback(o)}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){a()}));a()}))},Ot.prototype.signupAndLogin=function(e,t){var n=this;return n.client.client.dbConnection.signup(e,(function(r){return r?t(r):n.login(e,t)}))},Ot.prototype.getSSOData=function(e,t){var n,r="";return"function"==typeof e&&(t=e,e=!1),pe.check(e,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),e&&(r="?"+Y({ldaps:1,client_id:this.baseOptions.clientID})),n=i(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(Pe(t))};var Yt=function(){},Ct={lang:"en",templates:{auth0:function(e){var t="code"===e.type?"Enter the code shown above":"Solve the formula shown above";return'<div class="captcha-challenge">\n <img src="'+e.image+'" />\n <button type="button" class="captcha-reload">↺</button>\n</div>\n<input type="text" name="captcha"\n class="form-control captcha-control"\n placeholder="'+t+'" />'},recaptcha_v2:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},recaptcha_enterprise:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},error:function(){return'<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>'}}};function At(e){switch(e){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}var jt=function(e,t,n,r){function o(r){r=r||Yt,e.getChallenge((function(e,a){return e?(t.innerHTML=n.templates.error(e),r(e)):a.required?(t.style.display="","auth0"===a.provider?function(e,t,n,r){e.innerHTML=t.templates[n.provider](n),e.querySelector(".captcha-reload").addEventListener("click",(function(e){e.preventDefault(),r()}))}(t,n,a,o):"recaptcha_v2"!==a.provider&&"recaptcha_enterprise"!==a.provider||function(e,t,n){var r=e.hasAttribute("data-wid")&&e.getAttribute("data-wid");function o(t){e.querySelector('input[name="captcha"]').value=t||""}if(r)return o(),void At(n.provider).reset(r);e.innerHTML=t.templates[n.provider](n);var a=e.querySelector(".recaptcha");!function(e,t,n){var r="recaptchaCallback_"+Math.floor(1000001*Math.random());window[r]=function(){delete window[r],n()};var o=window.document.createElement("script");o.src=function(e,t,n){switch(e){case"recaptcha_v2":return"https://www.recaptcha.net/recaptcha/api.js?hl="+t+"&onload="+n;case"recaptcha_enterprise":return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+t+"&onload="+n;default:throw new Error("Unknown captcha provider")}}(t.provider,t.lang,r),o.async=!0,window.document.body.appendChild(o)}(0,{lang:t.lang,provider:n.provider},(function(){var t=At(n.provider);r=t.render(a,{callback:o,"expired-callback":function(){o()},"error-callback":function(){o()},sitekey:n.siteKey}),e.setAttribute("data-wid",r)}))}(t,n,a),void r()):(t.style.display="none",void(t.innerHTML=""))}))}return n=be.merge(Ct).with(n||{}),o(r),{reload:o,getValue:function(){var e=t.querySelector('input[name="captcha"]');if(e)return e.value}}};function Pt(){return new Date}function Ht(e){pe.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),e.overrides&&pe.check(e.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=e,this.baseOptions.plugins=new _t(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=e._timesToRetryFailedRequests?parseInt(e._timesToRetryFailedRequests,0):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,this.transactionManager=new gt(this.baseOptions),this.client=new Rt(this.baseOptions),this.redirect=new Lt(this,this.baseOptions),this.popup=new Et(this,this.baseOptions),this.crossOriginAuthentication=new wt(this,this.baseOptions),this.webMessageHandler=new bt(this),this._universalLogin=new Ot(this,this.baseOptions),this.ssodataStorage=new Ce(this.baseOptions)}function It(e,t){this.baseOptions=t,this.request=e}function Nt(e,t){this.baseOptions=t,this.request=e}function Rt(e,t){2===arguments.length?this.auth0=e:t=e,pe.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new Le(this.baseOptions),this.passwordless=new It(this.request,this.baseOptions),this.dbConnection=new Nt(this.request,this.baseOptions),this.warn=new De({disableWarnings:!!t._disableDeprecationWarnings}),this.ssodataStorage=new Ce(this.baseOptions)}function Ft(e){pe.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new Le(this.baseOptions),this.baseOptions.rootUrl=i("https://"+this.baseOptions.domain,"api","v2")}Ht.prototype.parseHash=function(e,t){var n,r;t||"function"!=typeof e?e=e||{}:(t=e,e={});var o=ke.getWindow(),a=void 0===e.hash?o.location.hash:e.hash;if((n=function(e,t){var n=function(e){if(!e)return E;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?E.charset:e.charset;return{allowDots:void 0===e.allowDots?E.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:E.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:E.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:E.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:E.comma,decoder:"function"==typeof e.decoder?e.decoder:E.decoder,delimiter:"string"==typeof e.delimiter||d.isRegExp(e.delimiter)?e.delimiter:E.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:E.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:E.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:E.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:E.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:E.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,a),s=-1,u=t.charset;if(t.charsetSentinel)for(n=0;n<i.length;++n)0===i[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[n]?u="utf-8":"utf8=%26%2310003%3B"===i[n]&&(u="iso-8859-1"),s=n,n=i.length);for(n=0;n<i.length;++n)if(n!==s){var l,c,p=i[n],f=p.indexOf("]="),h=-1===f?p.indexOf("="):f+1;-1===h?(l=t.decoder(p,E.decoder,u,"key"),c=t.strictNullHandling?null:""):(l=t.decoder(p.slice(0,h),E.decoder,u,"key"),c=d.maybeMap(D(p.slice(h+1),t),(function(e){return t.decoder(e,E.decoder,u,"value")}))),c&&t.interpretNumericEntities&&"iso-8859-1"===u&&(c=S(c)),p.indexOf("[]=")>-1&&(c=x(c)?[c]:c),k.call(r,l)?r[l]=d.combine(r[l],c):r[l]=c}return r}(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(r),i=0;i<a.length;++i){var s=a[i],u=O(s,r[s],n,"string"==typeof e);o=d.merge(o,u,n)}return d.compact(o)}(a=a.replace(/^#?\/?/,""))).hasOwnProperty("error"))return r=je.buildResponse(n.error,n.error_description),n.state&&(r.state=n.state),t(r);if(!n.hasOwnProperty("access_token")&&!n.hasOwnProperty("id_token")&&!n.hasOwnProperty("refresh_token"))return t(null,null);var i=(this.baseOptions.responseType||e.responseType||"").split(" ");return i.length>0&&-1!==i.indexOf("token")&&!n.hasOwnProperty("access_token")?t(je.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):i.length>0&&-1!==i.indexOf("id_token")&&!n.hasOwnProperty("id_token")?t(je.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(e,n,t)},Ht.prototype.validateAuthenticationResponse=function(e,t,n){var r=this;e.__enableIdPInitiatedLogin=e.__enableIdPInitiatedLogin||e.__enableImpersonation;var o=t.state,a=this.transactionManager.getStoredTransaction(o),i=e.state||a&&a.state||null,s=i===o;if((o||i||!e.__enableIdPInitiatedLogin)&&!s)return n({error:"invalid_token",errorDescription:"`state` does not match."});var u=e.nonce||a&&a.nonce||null,l=a&&a.organization,c=e.state||a&&a.appState||null,d=function(e,o){return e?n(e):(a&&a.lastUsedConnection&&(o&&(i=o.sub),r.ssodataStorage.set(a.lastUsedConnection,i)),n(null,function(e,t,n){return{accessToken:e.access_token||null,idToken:e.id_token||null,idTokenPayload:n||null,appState:t||null,refreshToken:e.refresh_token||null,state:e.state||null,expiresIn:e.expires_in?parseInt(e.expires_in,10):null,tokenType:e.token_type||null,scope:e.scope||null}}(t,c,o)));var i};return t.id_token?this.validateToken(t.id_token,u,(function(e,n){if(!e){if(l){if(!n.org_id)return d(je.invalidToken("Organization Id (org_id) claim must be a string present in the ID token"));if(n.org_id!==l)return d(je.invalidToken('Organization Id (org_id) claim value mismatch in the ID token; expected "'+l+'", found "'+n.org_id+'"'))}return t.access_token&&n.at_hash?(new mt).validateAccessToken(t.access_token,"RS256",n.at_hash,(function(e){return e?d(je.invalidToken(e.message)):d(null,n)})):d(null,n)}if("invalid_token"!==e.error||e.errorDescription&&e.errorDescription.indexOf("Nonce (nonce) claim value mismatch in the ID token")>-1)return d(e);var o=(new mt).decode(t.id_token);return"HS256"!==o.header.alg?d(e):(o.payload.nonce||null)!==u?d({error:"invalid_token",errorDescription:'Nonce (nonce) claim value mismatch in the ID token; expected "'+u+'", found "'+o.payload.nonce+'"'}):t.access_token?r.client.userInfo(t.access_token,(function(e,t){return e?d(e):d(null,t)})):d({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can’t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})})):d(null,null)},Ht.prototype.validateToken=function(e,t,n){new mt({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||Pt}).verify(e,t,(function(e,t){if(e)return n(je.invalidToken(e.message));n(null,t)}))},Ht.prototype.renewAuth=function(e,t){var n=!!e.usePostMessage,r=e.postMessageDataType||!1,o=e.postMessageOrigin||ke.getWindow().origin,a=e.timeout,i=this,s=be.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(e);s.responseType=s.responseType||"token",s.responseMode=s.responseMode||"fragment",s=this.transactionManager.process(s),pe.check(s,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),s.prompt="none",s=be.blacklist(s,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),St.create({authenticationUrl:this.client.buildAuthorizeUrl(s),postMessageDataType:r,postMessageOrigin:o,timeout:a}).login(n,(function(e,n){if("object"==typeof n)return t(e,n);i.parseHash({hash:n},t)}))},Ht.prototype.checkSession=function(e,t){var n=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return"code"===n.responseType?t({error:"error",error_description:"responseType can't be `code`"}):(e.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(pe.check(n,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=be.blacklist(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,Pe(t,{forceLegacyError:!0,ignoreCasing:!0}))):t({error:"error",error_description:"redirectUri can't be empty"}))},Ht.prototype.changePassword=function(e,t){return this.client.dbConnection.changePassword(e,t)},Ht.prototype.passwordlessStart=function(e,t){var n=be.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e.authParams);return e.authParams=this.transactionManager.process(n),this.client.passwordless.start(e,t)},Ht.prototype.signup=function(e,t){return this.client.dbConnection.signup(e,t)},Ht.prototype.authorize=function(e){var t=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(e);pe.check(t,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(t=this.transactionManager.process(t)).scope=t.scope||"openid profile email",ke.redirect(this.client.buildAuthorizeUrl(t))},Ht.prototype.signupAndAuthorize=function(e,t){var n=this;return this.client.dbConnection.signup(be.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.realm=e.connection,e.username||(e.username=e.email),n.client.login(e,t)}))},Ht.prototype.login=function(e,t){var n=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(e);n=this.transactionManager.process(n),ke.getWindow().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,t)):this.crossOriginAuthentication.login(n,t)},Ht.prototype.passwordlessLogin=function(e,t){var n=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);if(n=this.transactionManager.process(n),ke.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(n,t);else{var r=be.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},be.blacklist(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,t)}},Ht.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},Ht.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},Ht.prototype.logout=function(e){ke.redirect(this.client.buildLogoutUrl(e))},Ht.prototype.passwordlessVerify=function(e,t){var n=this,r=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);return pe.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,(function(o){if(o)return t(o);function a(){ke.redirect(n.client.passwordless.buildVerifyUrl(r))}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){a()}));a()}))},Ht.prototype.renderCaptcha=function(e,t,n){return jt(this.client,e,t,n)},It.prototype.buildVerifyUrl=function(e){var t,n;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),t=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(e),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=be.toSnakeCase(t,["auth0Client"]),n=Y(t),i(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},It.prototype.start=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(e){return"code"===e.send||!e.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(e){return"link"===e.send||!e.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"passwordless","start"),(r=be.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(e)).scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.authParams.scope||r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.authParams.redirectUri||r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.authParams.responseType||r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=be.toSnakeCase(r,["auth0Client","authParams"]),this.request.post(n).send(r).end(Pe(t))},It.prototype.verify=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),r=be.pick(e,["connection","verificationCode","phoneNumber","email","auth0Client"]),r=be.toSnakeCase(r,["auth0Client"]),n=i(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(Pe(t))},Nt.prototype.signup=function(e,t){var n,r,o;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"dbconnections","signup"),o=(r=be.merge(this.baseOptions,["clientID","state"]).with(e)).user_metadata||r.userMetadata,r=be.blacklist(r,["scope","userMetadata","user_metadata"]),r=be.toSnakeCase(r,["auth0Client"]),o&&(r.user_metadata=o),this.request.post(n).send(r).end(Pe(t))},Nt.prototype.changePassword=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"dbconnections","change_password"),r=be.merge(this.baseOptions,["clientID"]).with(e,["email","connection"]),r=be.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Pe(t))},Rt.prototype.buildAuthorizeUrl=function(e){var t,n;return pe.check(e,{type:"object",message:"options parameter is not valid"}),t=be.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(e),pe.check(t,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(e){return-1===e.responseType.indexOf("code")&&-1!==e.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t.connection_scope&&pe.isArray(t.connection_scope)&&(t.connection_scope=t.connection_scope.join(",")),t=be.blacklist(t,["username","popupOptions","domain","tenant","timeout","appState"]),t=be.toSnakeCase(t,["auth0Client"]),t=Re(this.warn,t),n=Y(t),i(this.baseOptions.rootUrl,"authorize","?"+n)},Rt.prototype.buildLogoutUrl=function(e){var t,n;return pe.check(e,{optional:!0,type:"object",message:"options parameter is not valid"}),t=be.merge(this.baseOptions,["clientID"]).with(e||{}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=be.toSnakeCase(t,["auth0Client","returnTo"]),n=Y(be.blacklist(t,["federated"])),e&&void 0!==e.federated&&!1!==e.federated&&"false"!==e.federated&&(n+="&federated"),i(this.baseOptions.rootUrl,"v2","logout","?"+n)},Rt.prototype.loginWithDefaultDirectory=function(e,t){return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="password",this.oauthToken(e,t)},Rt.prototype.login=function(e,t){return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(e,t)},Rt.prototype.oauthToken=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"oauth","token"),r=be.merge(this.baseOptions,["clientID","scope","audience"]).with(e),pe.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=be.toSnakeCase(r,["auth0Client"]),r=Ne(this.warn,r),this.request.post(n).send(r).end(Pe(t))},Rt.prototype.loginWithResourceOwner=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"oauth","ro"),r=be.merge(this.baseOptions,["clientID","scope"]).with(e,["username","password","scope","connection","device"]),(r=be.toSnakeCase(r,["auth0Client"])).grant_type=r.grant_type||"password",this.request.post(n).send(r).end(Pe(t))},Rt.prototype.getSSOData=function(e,t){if(this.auth0||(this.auth0=new Ht(this.baseOptions)),ke.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(e,t);"function"==typeof e&&(t=e),pe.check(t,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},(function(e,o){return e?"login_required"===e.error?t(null,{sso:!1}):("consent_required"===e.error&&(e.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),t(e,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==o.idTokenPayload.sub?t(e,{sso:!1}):t(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:o.idTokenPayload.sub,lastUsedUsername:o.idTokenPayload.email||o.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})}))},Rt.prototype.userInfo=function(e,t){var n;return pe.check(e,{type:"string",message:"accessToken parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+e).end(Pe(t,{ignoreCasing:!0}))},Rt.prototype.getChallenge=function(e){if(pe.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=i(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(Pe(e,{ignoreCasing:!0}))},Rt.prototype.delegation=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"delegation"),r=be.merge(this.baseOptions,["clientID"]).with(e),r=be.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Pe(t))},Rt.prototype.getUserCountry=function(e){var t;return pe.check(e,{type:"function",message:"cb parameter is not valid"}),t=i(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(t).end(Pe(e))},Ft.prototype.getUser=function(e,t){var n;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"users",e),this.request.get(n).end(Pe(t,{ignoreCasing:!0}))},Ft.prototype.patchUserMetadata=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"object",message:"userMetadata parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=i(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send({user_metadata:t}).end(Pe(n,{ignoreCasing:!0}))},Ft.prototype.patchUserAttributes=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"object",message:"user parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=i(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send(t).end(Pe(n,{ignoreCasing:!0}))},Ft.prototype.linkUser=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"string",message:"secondaryUserToken parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=i(this.baseOptions.rootUrl,"users",e,"identities"),this.request.post(r).send({link_with:t}).end(Pe(n,{ignoreCasing:!0}))};var zt={Authentication:Rt,Management:Ft,WebAuth:Ht,version:se};t.default=zt}.call(this,n(38),n(343))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var u,l=[],c=!1,d=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(345),s=n(26),u=n(28),l=n(9),c=n(10),d=n(39),p=n(40),f=function(e){function t(n){var r=e.call(this,n)||this;return r.componentDidMount=function(){var e=r.props,t=e.auth0ClientId,n=e.auth0Hash,o=e.onAuthenticated,a=e.baseUrl;u.default.bindToClient(t),n?u.default.parseIdFromHash(n).then((function(e){s.default.getAccessData(e.idToken,a).then((function(t){r.props.login(e),r.props.cacheAccessData(t),s.default.buildFreshSession(e,t),o()})).catch((function(e){u.default.login()}))})).catch((function(e){u.default.login()})):u.default.login()},r.render=function(){return a.createElement("div",{className:"auth-gate"},a.createElement(i.default,{color:t.LOADER_COLOR}))},r}return o(t,e),t.LOADER_COLOR="#2d8ceb",t}(a.PureComponent);t.default=l.connect(null,(function(e){return c.bindActionCreators({login:d.login,cacheAccessData:p.cacheAccessData},e)}))(f)},function(e,t,n){"use strict";var r,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,u,l=i(n(0)),c=n(530),d=n(348),p=c.keyframes(s||(s=o(["\n 0% {transform: scaley(1.0)}\n 50% {transform: scaley(0.4)}\n 100% {transform: scaley(1.0)}\n"],["\n 0% {transform: scaley(1.0)}\n 50% {transform: scaley(0.4)}\n 100% {transform: scaley(1.0)}\n"]))),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=function(e){var n=t.props,r=n.color,a=n.width,i=n.height,s=n.margin,l=n.radius,d=n.widthUnit,f=n.heightUnit,h=n.radiusUnit;return c.css(u||(u=o(["\n background-color: ",";\n width: ",";\n height: ",";\n margin: ",";\n border-radius: ",";\n display: inline-block;\n animation: "," 1s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation-fill-mode: both;\n "],["\n background-color: ",";\n width: ",";\n height: ",";\n margin: ",";\n border-radius: ",";\n display: inline-block;\n animation: "," 1s ","s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\n animation-fill-mode: both;\n "])),r,""+a+d,""+i+f,s,""+l+h,p,.1*e)},t}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.css;return t?c.jsx("div",{css:[n]},c.jsx("div",{css:this.style(1)}),c.jsx("div",{css:this.style(2)}),c.jsx("div",{css:this.style(3)}),c.jsx("div",{css:this.style(4)}),c.jsx("div",{css:this.style(5)})):null},t.defaultProps=d.heightWidthRadiusDefaults(35,4,2),t}(l.PureComponent);t.default=f},function(e,t,n){var r=n(347);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(349)),r(n(350))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=((r={}).loading=!0,r.color="#000000",r.css={},r);t.sizeDefaults=function(e){return Object.assign({},o,function(e){var t;return(t={}).size=e,t.sizeUnit="px",t}(e))},t.sizeMarginDefaults=function(e){var n;return Object.assign({},t.sizeDefaults(e),((n={}).margin="2px",n))},t.heightWidthDefaults=function(e,t){return Object.assign({},o,function(e,t){var n;return(n={}).height=e,n.heightUnit="px",n.width=t,n.widthUnit="px",n}(e,t))},t.heightWidthRadiusDefaults=function(e,n,r){var o;return void 0===r&&(r=2),Object.assign({},t.heightWidthDefaults(e,n),((o={}).radius=r,o.radiusUnit="px",o.margin="2px",o))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.maroon="#800000",e.red="#FF0000",e.orange="#FFA500",e.yellow="#FFFF00",e.olive="#808000",e.green="#008000",e.purple="#800080",e.fuchsia="#FF00FF",e.lime="#00FF00",e.teal="#008080",e.aqua="#00FFFF",e.blue="#0000FF",e.navy="#000080",e.black="#000000",e.gray="#808080",e.silver="#C0C0C0",e.white="#FFFFFF"}(r||(r={})),t.calculateRgba=function(e,t){if(Object.keys(r).includes(e)&&(e=r[e]),"#"===e[0]&&(e=e.slice(1)),3===e.length){var n="";e.split("").forEach((function(e){n+=e,n+=e})),e=n}return"rgba("+e.match(/.{2}/g).map((function(e){return parseInt(e,16)})).join(", ")+", "+t+")"}},function(e,t){e.exports=l},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var a,i=n(0),s=n(353),u=n(21),l=n(4),c=n(354),d=n(355),p=function(e){return i.createElement("div",{className:"ip-table-loader"},i.createElement(u.default,null))},f=function(e){return i.createElement("div",{className:"ip-table-empty"},i.createElement("span",{className:"empty-message"},l.ICON_EXCLAIMATION_TRIANGLE," ",e.copy||"No Data Found"))},h=function(e){[32,37,38,39,40].indexOf(e.keyCode)>-1&&e.preventDefault()};t.default=function(e){var t=i.useRef(null),n=i.useRef(null),u=o(i.useState(!1),2),m=u[0],_=u[1],y=o(i.useState([]),2),g=y[0],v=y[1],b=o(i.useState([]),2),w=b[0],M=b[1],L=Array.isArray(e.hiddenColumns)?e.hiddenColumns:[],T=Number.isInteger(e.currentPage)&&"function"==typeof e.onPage,k="function"==typeof e.onSort&&void 0!==e.sortBy,x="function"==typeof e.renderPivotComponent?e.renderPivotComponent:function(){return null},E="function"==typeof e.onRowDoubleClick,S={hiddenColumns:L,sortBy:k?e.sortBy:[],pageIndex:T?e.currentPage-1:void 0,pageSize:e.itemsPerPage,autoResetExpanded:!1},D=c.useTable({columns:w,data:g,manualSortBy:k,manualPagination:T,initialState:S,manualFilters:!0,disableMultiSorting:!0,autoResetExpanded:!1,disableSortRemove:k,pageCount:e.totalPages,pageSize:e.itemsPerPage},c.useFlexLayout,c.useFilters,c.useSortBy,c.useExpanded,c.usePagination,c.useResizeColumns),O=D.getTableProps,Y=D.getTableBodyProps,C=D.headerGroups,A=D.page,j=D.rows,P=D.prepareRow,H=D.canPreviousPage,I=D.canNextPage,N=D.pageOptions,R=D.pageCount,F=D.gotoPage,z=D.nextPage,U=D.previousPage,W=D.setPageSize,B=D.setHiddenColumns,V=D.visibleColumns,q=D.totalColumnsWidth,G=D.toggleAllRowsExpanded,J=D.state,K=J.pageIndex,$=J.pageSize,X=J.sortBy,Z=T?j:A,Q=e.hidePaginator?"hide-paginator":"",ee=t.current&&q>t.current.clientWidth?"horizontal-scroll":"",te=e.tightRows?"tight-rows":"";return i.useEffect((function(){return _(!0)}),[]),i.useEffect((function(){var t,n;M((t=e.columns,Array.isArray(t)?t:!Array.isArray(t)&&"object"==typeof t&&(n=Object.keys(t)).length>0?n.map((function(e){return r(r({},t[e]),{accessor:e})})):[]))}),[e.columns]),i.useEffect((function(){m&&Array.isArray(e.hiddenColumns)&&B(e.hiddenColumns)}),[e.hiddenColumns]),i.useEffect((function(){Array.isArray(e.data)&&v(e.data)}),[e.data]),i.useEffect((function(){m&&T&&G(!1)}),[e.currentPage]),i.useEffect((function(){m&&k&&e.onSort(X)}),[X]),i.createElement("section",{ref:t,className:"ip-table-wrapper",tabIndex:e.disableKeyScroll?0:void 0,onKeyDown:e.disableKeyScroll?h:null},e.showInterstitial&&i.createElement(p,null),m&&!e.showInterstitial&&0===g.length&&i.createElement(f,{copy:e.noDataText}),i.createElement("table",r({},O(),{className:"ip-table "+ee+" "+Q+" "+te}),i.createElement("thead",{className:"ip-table-head"},C.map((function(e){return i.createElement(i.Fragment,{key:"head-fragment"},i.createElement("tr",r({},e.getHeaderGroupProps(),{className:"ip-table-head-row"}),e.headers.map((function(e){var t=e.hasOwnProperty("Search"),n=e.getSortByToggleProps(),o=i.createElement("span",{className:"sort-status"},e.isSorted?e.isSortedDesc?l.ICON_CHEVRON_DOWN:l.ICON_CHEVRON_UP:null);return i.createElement("th",r({},e.getHeaderProps(),{className:"ip-table-header "+(e.canSort?"ip-sortable":"")}),!t&&i.createElement("div",r({},n,{className:"filterable-cell-wrapper"}),e.render("Header"),o),t&&i.createElement("div",{className:"filterable-cell-wrapper"},i.createElement("span",r({},n,{className:"searchable-sort-area"}),e.render("Header"),o),e.hasOwnProperty("Search")&&e.render("Search")),e.canResize&&i.createElement("div",r({},e.getResizerProps(),{className:"ip-table-resizer "+(e.isResizing?"resizing":"")})))}))),e.headers.some((function(e){return e.hasOwnProperty("Filter")}))&&i.createElement("tr",r({},e.getHeaderGroupProps({key:"filters-row"})),e.headers.map((function(e,t){return i.createElement("th",r({},e.getHeaderProps({key:"filter-"+t}),{key:"filter-col-"+t,className:"ip-table-filter"}),e.canFilter&&e.Filter?e.render("Filter"):null)}))))}))),i.createElement("tbody",r({},Y(),{className:"ip-table-body"}),Z.map((function(t,o){var s,u="";e.highlightBy&&t.original.hasOwnProperty(e.highlightBy.key)&&t.original[e.highlightBy.key]===e.highlightBy.value&&(u="selected",s=n),P(t);var l=t.getRowProps();l.className="ip-table-row "+u,l.onClick=function(n){var r=function(){"function"==typeof e.onRowClick&&e.onRowClick(t)};E||r(),1===n.detail&&E&&(a=window.setTimeout(r,200))},l.onDoubleClick=function(n){clearTimeout(a),E&&e.onRowDoubleClick(t)};var c=t.cells.map((function(e){return i.createElement("td",r({},e.getCellProps(),{className:("ip-table-col "+(e.column.overflowVisible?"overflow-visible":"")).trim()}),e.render("Cell"))}));return i.createElement(i.Fragment,{key:"row-"+o},e.dnd&&i.createElement(d.default,{rowProps:l,rowRef:s,key:"row-"+o,row:t,dndType:e.dndType,dndName:e.dndName},c),!e.dnd&&i.createElement("tr",r({key:"row-"+o,ref:s},l),c),t.isExpanded&&i.createElement("tr",r({},t.getRowProps({key:"pivot-row"}),{className:"ip-pivot-row"}),i.createElement("td",{className:"ip-pivot-col "+u,colSpan:V.length},x(t))))})))),!e.hidePaginator&&i.createElement(s.default,r({},{totalItems:e.totalItems,pageIndex:e.currentPage?e.currentPage:K,manualPagination:T,pageSize:$,pageCount:R,pageOptions:N,canNextPage:T?e.currentPage+1<=e.totalPages:I,canPreviousPage:T?e.currentPage-1>=1:H,gotoPage:T?e.onPage:F,setPageSize:W,nextPage:T?function(){return e.onPage(e.currentPage+1,$)}:z,previousPage:T?function(){return e.onPage(e.currentPage-1,$)}:U})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=n(5),i=n(4);t.default=function(e){e.manualPagination;var t=e.pageCount,n=e.pageIndex,s=e.pageSize,u=(e.pageOptions,e.totalItems),l=e.canPreviousPage,c=e.canNextPage,d=e.gotoPage,p=e.previousPage,f=e.nextPage;e.setPageSize;return o.createElement("section",{className:"ip-table-pagination"},o.createElement("span",null,o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to first page",disabled:!l,onClick:function(){return d(1,s)}},i.ICON_ANGLE_DOUBLE_LEFT),o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to previous page",disabled:!l,onClick:function(){return p()}},i.ICON_ANGLE_LEFT),o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to next page",disabled:!c,onClick:function(){return f()}},i.ICON_ANGLE_RIGHT),o.createElement(a.default,{style:"subtle",size:"small",tooltip:"Go to last page",disabled:!c,onClick:function(){return d(t,s)}},i.ICON_ANGLE_DOUBLE_RIGHT),"  ",o.createElement("span",null,"Page  ",o.createElement("strong",null,n," of ",t),"  "),o.createElement("span",null,"Go to page   ",o.createElement("input",{className:"paginator-input",type:"number",placeholder:n,onChange:function(e){var n,o=e.target.value,a=Number(o);clearTimeout(r),!o||a<1||a>t||(a>=1&&a<=t&&(n=a),r=window.setTimeout((function(){return d(n,s)}),300))}})),"  "),o.createElement("span",{className:"total-assets"},"Total  ",o.createElement("strong",null,u||0)))}},function(e,t){e.exports=c},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(61),s=n(356);t.default=function(e){var t=e.dndType,n=e.dndName,u=e.row,l=o(i.useDrag({type:t,item:{name:n,rowData:u.original,type:t}}),2),c=(l[0],l[1]);return a.createElement("tr",r({},e.rowProps,{ref:s.default([c,e.rowRef])}),e.children)}},function(e,t,n){"use strict";n.r(t),t.default=function(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(29),u=n(4),l=function(e){function t(n){var r=e.call(this,n)||this;return r.render=function(){for(var e=r.props,n=e.page,o=e.totalPages,l=e.totalItems,c=Number.isInteger(o),d=Number.isInteger(o)&&o>1,p=!c||n-1==0,f=!c||n+1>o,h=Math.max(n-t.DEFAULT_STEP,1),m=Math.min(n+t.DEFAULT_STEP,o),_=[],y=h;y<=m;y++)_.push(y);return a.createElement("div",{className:"paginator"},a.createElement("div",{className:"pagination-controls"},a.createElement("span",{className:"paging-button-group"},a.createElement(i.default,{color:"secondary",size:"small",disabled:p,onClick:function(){return r.props.onPage(1)}},u.ICON_ANGLE_DOUBLE_LEFT),a.createElement(i.default,{color:"secondary",size:"small",disabled:p,onClick:function(){return r.props.onPage(n-1)}},u.ICON_ANGLE_LEFT)),a.createElement("div",{className:"jump-to-wrapper"},a.createElement(s.default,{label:"Page",value:n,disable:!d,options:_,onChange:function(e){return r.props.onPage(parseInt(e,10))}})),a.createElement("span",{className:"paging-button-group"},a.createElement(i.default,{color:"secondary",size:"small",disabled:f,onClick:function(){return r.props.onPage(n+1)}},u.ICON_ANGLE_RIGHT),a.createElement(i.default,{color:"secondary",size:"small",disabled:f,onClick:function(){return r.props.onPage(o)}},u.ICON_ANGLE_DOUBLE_RIGHT))),a.createElement("div",{className:"total-assets"},"Total: ",l||t.DEFAULT_TOTAL))},r}return o(t,e),t.DEFAULT_TOTAL=0,t.DEFAULT_STEP=25,t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(4),u=function(e){function t(t){var n=e.call(this,t)||this;return n.closeStyles={position:"absolute",right:"0px",top:"0px"},n.evtHandlers={onClose:function(e){return n.onClose(e)}},n}return o(t,e),t.prototype.onClose=function(e){(0,this.props.onRequestClose)(e)},t.prototype.render=function(){var e=this.props,t=e.isOpen,n=(e.children,e.style),r=e.wrapperStyle;return t?a.createElement("div",{className:"modal",style:r},a.createElement("div",{className:"modal-bg",onClick:this.evtHandlers.onClose}),a.createElement("div",{className:"modal-container",style:n},a.createElement("div",{className:"modal-content"},this.props.children),a.createElement(i.default,{onClick:this.evtHandlers.onClose,customStyles:this.closeStyles},s.ICON_TIMES))):null},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(100),u=n(96),l=n(97),c=n(5),d=n(4),p=function(e){function t(t){var n=e.call(this,t)||this;return n.headerRef=i.createRef(),n.state={allowableTabsInView:0,isMenuOpen:!1},n}return o(t,e),t.prototype.componentDidMount=function(){var e=Math.floor(this.allowableNumOfTabs());this.setState({allowableTabsInView:e})},t.prototype.componentDidUpdate=function(e){var t=Math.floor(this.allowableNumOfTabs());this.setState({allowableTabsInView:t})},t.prototype.allowableNumOfTabs=function(){var e=this.props,t=e.options,n=e.tabPadding,r=0,o=this.headerRef.current;if(o){for(var a=o.offsetWidth,i=0;i<t.length;i++){var s=t[i],u=s.canClose||s.menuButtons?20:0,l=document.createElement("div");if(l.className="tab-header-option",l.innerHTML=s.label,o.appendChild(l),r+=l.offsetWidth+u,o.removeChild(l),l=null,r>=a-n-25)return i}return t.length}},t.prototype.renderContent=function(){var e,t,n,r,o=this.props,s=o.options,u=o.activeTab,l=o.keepMounted,c=o.width,d=o.height;if(l){var p=[];try{for(var f=a(s),h=f.next();!h.done;h=f.next()){var m=(v=h.value).key===u,_=i.cloneElement(v.content,{active:m,width:c,height:d});p.push(_)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p.length>0?p:null}try{for(var y=a(s),g=y.next();!g.done;g=y.next()){var v;if((v=g.value).key===u||!u)return v.content}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return null},t.prototype.renderHeader=function(){for(var e=this,t=this.props,n=t.options,r=t.activeTab,o=[],a=[],s=!1,p=function(t){var u=n[t],p=u.canClose,h=u.key,m=u.label,_=u.menuButtons,y=p?i.createElement(c.default,{style:"subtle",size:"small",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.props.onClose(h)}},d.ICON_TIMES):null,g=_||null,v=h===r?"active":"";t<f.state.allowableTabsInView?o.push(i.createElement("div",{className:"tab-header-option "+v,onClick:function(){return e.props.onChange(h)},key:h},m,y,g)):(r!==h||s||(s=!0),a.push(i.createElement(l.default,{key:h,label:i.createElement("span",null,m,y,g),onClick:function(t){e.props.onChange(h)},active:r===h})))},f=this,h=0;h<n.length;h++)p(h);var m=i.createElement(c.default,{size:"large",style:"subtle",color:s?"primary":null},d.ICON_BARS);return i.createElement(i.Fragment,null,o,a.length>0?i.createElement("span",{className:"tab-header-menu"},i.createElement(u.default,{position:"left",items:a,onClick:function(t){e.setState({isMenuOpen:t})},isOpen:this.state.isMenuOpen,button:m})):null)},t.prototype.render=function(){return i.createElement("div",{className:"tabs"},i.createElement("div",{ref:this.headerRef,className:"tab-header"},this.renderHeader()),i.createElement("div",{className:"tab-content"},this.renderContent()))},t}(i.PureComponent);t.default=s.withResizeDetector(p)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(62),l=n(5),c=n(11),d=n(99),p=n(8),f=n(4),h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={textInputValue:""},n.inputRef=s.createRef(),u.default.filter=function(e){return p.filterHotkeys(e)},n.submitHandler=function(){return n.submitOption()},n}return o(t,e),t.prototype.deleteOption=function(e){var t=i([],a(this.props.options));t.splice(e,1),this.props.onChange(t)},t.prototype.componentWillUnmount=function(){u.default.unbind("enter",this.submitHandler)},t.prototype.inputBlur=function(e){u.default.unbind("enter",this.submitHandler),this.props.onBlur&&this.props.onBlur()},t.prototype.inputChanged=function(e){this.setState({textInputValue:e.target.value})},t.prototype.inputFocus=function(e){u.default("enter",this.submitHandler),this.props.onFocus&&this.props.onFocus()},t.prototype.submitOption=function(){var e=this,t=this.state.textInputValue,n=this.props.onError;if(""!==t){var r=void 0;-1===(r=this.props.options?i([],a(this.props.options)):[]).indexOf(t)?(r.push(t),this.props.onChange(r),this.setState({textInputValue:""},(function(){var t=e.inputRef.current;t&&t.focus()}))):n&&this.props.onError('"'+t+'" already exists in the list.')}else n&&this.props.onError("Can not add an empty item to the list")},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.options,o=t.placeholder,a=t.disabled,i=t.width,u=t.tooltip,l=(t.tooltipAdd,t.info),p=t.labelPosition,f=this.state.textInputValue;return s.createElement(c.default,{customClass:"list-field",label:n,tooltip:u,buttons:this.renderButtons(),info:l,labelPosition:p,width:i},s.createElement("input",{type:"text",placeholder:o,value:f,ref:this.inputRef,disabled:a,onChange:function(t){return e.inputChanged(t)},onFocus:function(t){return e.inputFocus(t)},onBlur:function(t){return e.inputBlur(t)}}),s.createElement(d.default,{items:r,removable:!0,onRemove:function(t){return e.deleteOption(t)}}))},t.prototype.renderButtons=function(){var e=this.props,t=e.buttons,n=e.tooltipAdd,r=t?i([],a(t)):[];return r.push(s.createElement(l.default,{key:"btn-submit",style:"subtle",tooltip:n,color:"primary",onClick:this.submitHandler},f.ICON_PLUS)),r},t}(s.PureComponent);t.default=h},function(e,t){e.exports=d},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(363),i=n(37),s=n(95),u=n(58),l=function(){function e(){}return e.DEFAULT_TOAST_CONFIG={hideAfter:3,position:"bottom-right"},e.INFO_STYLE={bar:{size:"2px",style:"solid",color:"#56B05E"},renderIcon:function(){return o.createElement(i.FontAwesomeIcon,{icon:s.faInfoCircle,color:"#56B05E"})}},e.ERROR_STYLE={bar:{size:"2px",style:"solid",color:"#AF1126"},renderIcon:function(){return o.createElement(i.FontAwesomeIcon,{icon:u.faExclamationTriangle,color:"#AF1126"})}},e.emit=function(t,n){switch(t){case"info":return void a.default.info(n,r(r({},e.DEFAULT_TOAST_CONFIG),e.INFO_STYLE));case"error":return void a.default.error(n,r(r({},e.DEFAULT_TOAST_CONFIG),e.ERROR_STYLE));default:return}},e}();t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"Toast",(function(){return d}));var r=n(0),o=n.n(r),a=n(35),i=n.n(a),s=n(2),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var l={success:function(e){return o.a.createElement("svg",u({viewBox:"0 0 426.667 426.667",width:18,height:18},e),o.a.createElement("path",{d:"M213.333 0C95.518 0 0 95.514 0 213.333s95.518 213.333 213.333 213.333c117.828 0 213.333-95.514 213.333-213.333S331.157 0 213.333 0zm-39.134 322.918l-93.935-93.931 31.309-31.309 62.626 62.622 140.894-140.898 31.309 31.309-172.203 172.207z",fill:"#6ac259"}))},warn:function(e){return o.a.createElement("svg",u({viewBox:"0 0 310.285 310.285",width:18,height:18},e),o.a.createElement("path",{d:"M264.845 45.441C235.542 16.139 196.583 0 155.142 0 113.702 0 74.743 16.139 45.44 45.441 16.138 74.743 0 113.703 0 155.144c0 41.439 16.138 80.399 45.44 109.701 29.303 29.303 68.262 45.44 109.702 45.44s80.399-16.138 109.702-45.44c29.303-29.302 45.44-68.262 45.44-109.701.001-41.441-16.137-80.401-45.439-109.703zm-132.673 3.895a12.587 12.587 0 0 1 9.119-3.873h28.04c3.482 0 6.72 1.403 9.114 3.888 2.395 2.485 3.643 5.804 3.514 9.284l-4.634 104.895c-.263 7.102-6.26 12.933-13.368 12.933H146.33c-7.112 0-13.099-5.839-13.345-12.945L128.64 58.594c-.121-3.48 1.133-6.773 3.532-9.258zm23.306 219.444c-16.266 0-28.532-12.844-28.532-29.876 0-17.223 12.122-30.211 28.196-30.211 16.602 0 28.196 12.423 28.196 30.211.001 17.591-11.456 29.876-27.86 29.876z",fill:"#FFDA44"}))},loading:function(e){return o.a.createElement("div",u({className:"ct-icon-loading"},e))},info:function(e){return o.a.createElement("svg",u({viewBox:"0 0 23.625 23.625",width:18,height:18},e),o.a.createElement("path",{d:"M11.812 0C5.289 0 0 5.289 0 11.812s5.289 11.813 11.812 11.813 11.813-5.29 11.813-11.813S18.335 0 11.812 0zm2.459 18.307c-.608.24-1.092.422-1.455.548a3.838 3.838 0 0 1-1.262.189c-.736 0-1.309-.18-1.717-.539s-.611-.814-.611-1.367c0-.215.015-.435.045-.659a8.23 8.23 0 0 1 .147-.759l.761-2.688c.067-.258.125-.503.171-.731.046-.23.068-.441.068-.633 0-.342-.071-.582-.212-.717-.143-.135-.412-.201-.813-.201-.196 0-.398.029-.605.09-.205.063-.383.12-.529.176l.201-.828c.498-.203.975-.377 1.43-.521a4.225 4.225 0 0 1 1.29-.218c.731 0 1.295.178 1.692.53.395.353.594.812.594 1.376 0 .117-.014.323-.041.617a4.129 4.129 0 0 1-.152.811l-.757 2.68a7.582 7.582 0 0 0-.167.736 3.892 3.892 0 0 0-.073.626c0 .356.079.599.239.728.158.129.435.194.827.194.185 0 .392-.033.626-.097.232-.064.4-.121.506-.17l-.203.827zm-.134-10.878a1.807 1.807 0 0 1-1.275.492c-.496 0-.924-.164-1.28-.492a1.57 1.57 0 0 1-.533-1.193c0-.465.18-.865.533-1.196a1.812 1.812 0 0 1 1.28-.497c.497 0 .923.165 1.275.497.353.331.53.731.53 1.196 0 .467-.177.865-.53 1.193z",fill:"#006DF0"}))},error:function(e){return o.a.createElement("svg",u({viewBox:"0 0 51.976 51.976",width:18,height:18},e),o.a.createElement("path",{d:"M44.373 7.603c-10.137-10.137-26.632-10.138-36.77 0-10.138 10.138-10.137 26.632 0 36.77s26.632 10.138 36.77 0c10.137-10.138 10.137-26.633 0-36.77zm-8.132 28.638a2 2 0 0 1-2.828 0l-7.425-7.425-7.778 7.778a2 2 0 1 1-2.828-2.828l7.778-7.778-7.425-7.425a2 2 0 1 1 2.828-2.828l7.425 7.425 7.071-7.071a2 2 0 1 1 2.828 2.828l-7.071 7.071 7.425 7.425a2 2 0 0 1 0 2.828z",fill:"#D80027"}))}},c={success:"#6EC05F",info:"#1271EC",warn:"#FED953",error:"#D60A2E",loading:"#0088ff"},d=function(e){var t,n,a,i,s="margin"+((e.position||"top-center").includes("bottom")?"Bottom":"Top"),d=["ct-toast",e.onClick?" ct-cursor-pointer":"","ct-toast-"+e.type].join(" "),p=((null===(n=e.bar)||void 0===n?void 0:n.size)||"3px")+" "+((null===(a=e.bar)||void 0===a?void 0:a.style)||"solid")+" "+((null===(i=e.bar)||void 0===i?void 0:i.color)||c[e.type]),f=l[e.type],h=Object(r.useState)(((t={opacity:0})[s]=-15,t)),m=h[0],_=h[1],y=u({paddingLeft:e.heading?25:void 0,minHeight:e.heading?50:void 0,borderLeft:p},m),g=function(){var t;_(((t={opacity:0})[s]="-15px",t)),setTimeout((function(){e.onHide(e.id,e.position)}),300)};Object(r.useEffect)((function(){var t,n=setTimeout((function(){var e;_(((e={opacity:1})[s]="15px",e))}),50);return 0!==e.hideAfter&&(t=setTimeout((function(){g()}),1e3*e.hideAfter)),function(){clearTimeout(n),t&&clearTimeout(t)}}),[]),Object(r.useEffect)((function(){e.show||g()}),[e.show]);var v={tabIndex:0,onClick:e.onClick,onKeyPress:function(t){13===t.keyCode&&e.onClick(t)}};return o.a.createElement("div",u({className:d,role:e.role?e.role:"status",style:y},e.onClick?v:{}),e.renderIcon?e.renderIcon():o.a.createElement(f,null),o.a.createElement("div",{className:e.heading?"ct-text-group-heading":"ct-text-group"},e.heading&&o.a.createElement("h4",{className:"ct-heading"},e.heading),o.a.createElement("div",{className:"ct-text"},e.text)))};d.propTypes={type:s.string.isRequired,text:Object(s.oneOfType)([s.string,s.node]).isRequired,show:s.bool,onHide:s.func,id:Object(s.oneOfType)([s.string,s.number]),hideAfter:s.number,heading:s.string,position:s.string,renderIcon:s.func,bar:Object(s.shape)({}),onClick:s.func,role:s.string},d.defaultProps={id:void 0,show:!0,onHide:void 0,hideAfter:3,heading:void 0,position:"top-center",renderIcon:void 0,bar:{},onClick:void 0,role:"status"};var p=function(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},f={topLeft:[],topCenter:[],topRight:[],bottomLeft:[],bottomCenter:[],bottomRight:[]},h=function(e){var t=e.toast,n=e.hiddenID,a=Object(r.useState)(f),i=a[0],s=a[1];Object(r.useEffect)((function(){t&&s((function(e){var n,r=p(t.position||"top-center");return u(u({},e),((n={})[r]=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}(e[r],[t]),n))}))}),[t]);var l=function(e,t){s((function(n){var r,o=p(t||"top-center");return u(u({},n),((r={})[o]=n[o].filter((function(t){return t.id!==e})),r))}))},c=["Left","Center","Right"];return o.a.createElement(o.a.Fragment,null,["top","bottom"].map((function(e){return o.a.createElement("div",{key:"row_"+e,className:"ct-row"},c.map((function(t){var r=""+e+t,a=["ct-group","bottom"===e?"ct-flex-bottom":""].join(" ");return o.a.createElement("div",{key:r,className:a},i[r].map((function(e){return o.a.createElement(d,u({key:r+"_"+e.id},e,{id:e.id,text:e.text,type:e.type,onClick:e.onClick,hideAfter:e.hideAfter,show:n!==e.id,onHide:l}))})))})))})))};h.propTypes={toast:Object(s.shape)({}),hiddenID:s.number},h.defaultProps={toast:void 0,hiddenID:void 0};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("#ct-container {\n\tposition: fixed;\n\twidth: 100%;\n\theight: 100vh;\n\ttop: 0px;\n\tleft: 0px;\n\tz-index: 2000;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tpointer-events: none;\n}\n\n.ct-row {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n\n.ct-group {\n\tflex: 1;\n\tmargin: 10px 20px;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n\n.ct-group:first-child {\n\talign-items: flex-start;\n}\n\n.ct-group:last-child {\n\talign-items: flex-end;\n}\n\n.ct-flex-bottom {\n\tjustify-content: flex-end;\n}\n\n.ct-toast {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tpadding: 12px 20px;\n\tbackground-color: #fff;\n\tbox-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n\tcolor: #000;\n\tborder-radius: 4px;\n\tmargin: 0px;\n\topacity: 1;\n\ttransition: 0.3s all ease-in-out;\n\tmin-height: 45px;\n\tpointer-events: all;\n}\n\n.ct-toast:focus {\n\toutline: none;\n}\n\n.ct-toast svg {\n\tmin-width: 18px;\n}\n\n.ct-cursor-pointer {\n\tcursor: pointer;\n}\n\n.ct-icon-loading {\n\tdisplay: inline-block;\n\twidth: 20px;\n\theight: 20px;\n}\n\n.ct-icon-loading:after {\n\tcontent: ' ';\n\tdisplay: block;\n\twidth: 14px;\n\theight: 14px;\n\tmargin: 1px;\n\tborder-radius: 50%;\n\tborder: 2px solid #0088ff;\n\tborder-color: #0088ff transparent #0088ff transparent;\n\tanimation: ct-icon-loading 1.2s linear infinite;\n}\n\n@keyframes ct-icon-loading {\n\t0% {\n\t\ttransform: rotate(0deg);\n\t}\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n.ct-text-group {\n\tmargin-left: 15px;\n}\n\n.ct-text-group-heading {\n\tmargin-left: 25px;\n}\n\n.ct-heading {\n\tfont-size: 18px;\n\tmargin: 0px;\n\tmargin-bottom: 5px;\n}\n\n.ct-text {\n\tfont-size: 14px;\n}\n\n@media (max-width: 768px) {\n\t.ct-row {\n\t\tjustify-content: flex-start;\n\t\tflex-direction: column;\n\t\tmargin: 7px 0px;\n\t}\n\n\t.ct-group {\n\t\tflex: none;\n\t\tmargin: 0px;\n\t}\n\n\t.ct-toast {\n\t\tmargin: 8px 15px;\n\t\twidth: initial;\n\t}\n}\n");var m=0,_=function(e,t){var n,r,a=document.getElementById((null===(n=t)||void 0===n?void 0:n.toastContainerID)||"ct-container");a||((a=document.createElement("div")).id="ct-container",document.body.appendChild(a)),m+=1;var s=1e3*(void 0===(null===(r=t)||void 0===r?void 0:r.hideAfter)?3:t.hideAfter),l=u({id:m,text:e},t);i.a.render(o.a.createElement(h,{toast:l}),a);var c=new Promise((function(e){setTimeout((function(){e()}),s)}));return c.hide=function(){i.a.render(o.a.createElement(h,{hiddenID:l.id}),a)},c};_.success=function(e,t){return _(e,u(u({},t),{type:"success"}))},_.warn=function(e,t){return _(e,u(u({},t),{type:"warn"}))},_.info=function(e,t){return _(e,u(u({},t),{type:"info"}))},_.error=function(e,t){return _(e,u(u({},t),{type:"error"}))},_.loading=function(e,t){return _(e,u(u({},t),{type:"loading"}))},t.default=_},function(e,t,n){"use strict";var r=n(365);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={tempValue:null},n}return o(t,e),t.prototype.componentWillUnmount=function(){clearTimeout(this.updateTimeout)},t.prototype.updateValue=function(e){this.props.onChange(e)},t.prototype.rangeInputChange=function(e){var t=this,n=e.target.value,r=parseFloat(n);clearTimeout(this.updateTimeout),this.setState({tempValue:r},(function(){t.updateTimeout=setTimeout((function(){t.updateValue(r),t.setState({tempValue:null})}),100)}))},t.prototype.numberInputChange=function(e){var t=this.props,n=t.min,r=t.max,o=e.target.value;(o=""===o?0:parseFloat(o))>=n&&o<=r&&this.updateValue(o)},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.width,o=t.min,s=t.max,u=t.step,l=t.defaultValue,c=t.value,d=t.tooltip,p=t.info,f=t.labelPosition,h=this.state.tempValue,m=null!==h?h:null==c?l:c;return a.createElement(i.default,{customClass:"slider-field",label:n,tooltip:d,info:p,labelPosition:f,width:r},a.createElement("input",{onChange:function(t){return e.rangeInputChange(t)},type:"range",min:o,max:s,value:m,step:u}),a.createElement("input",{className:"val",onChange:function(t){return e.numberInputChange(t)},type:"number",value:m}))},t}(a.PureComponent);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(368)),o=s(n(66)),a=s(n(380)),i=s(n(381));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,a.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=u},function(e,t,n){var r=n(18),o=n(12),a=n(15);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(31),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(372)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(18),o=n(15);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(18),o=n(68),a=n(15),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t,n){var r=n(71),o=n(378),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(107)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(109);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(18),o=n(72),a=n(15),i=Function.prototype,s=Object.prototype,u=i.toString,l=s.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},function(e,t,n){var r=n(110),o=n(382),a=n(440),i=n(12);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},function(e,t,n){var r=n(383),o=n(427),a=n(109),i=n(12),s=n(437);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(384),o=n(426),a=n(120);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(73),o=n(112);e.exports=function(e,t,n,a){var i=n.length,s=i,u=!a;if(null==e)return!s;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var c=(l=n[i])[0],d=e[c],p=l[1];if(u&&l[2]){if(void 0===d&&!(c in e))return!1}else{var f=new r;if(a)var h=a(d,p,c,e,t,f);if(!(void 0===h?o(p,d,3,a,f):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(45),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(45);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(45);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(45);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(44);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(44),o=n(75),a=n(76);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(108),o=n(396),a=n(22),i=n(111),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:s).test(i(e))}},function(e,t,n){var r,o=n(397),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(14)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(400),o=n(44),a=n(75);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(401),o=n(402),a=n(403),i=n(404),s=n(405);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(46);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(46),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(46),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(46);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(47);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(47);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(47);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(47);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(73),o=n(113),a=n(417),i=n(420),s=n(48),u=n(12),l=n(67),c=n(106),d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,h,m){var _=u(e),y=u(t),g=_?"[object Array]":s(e),v=y?"[object Array]":s(t),b=(g="[object Arguments]"==g?d:g)==d,w=(v="[object Arguments]"==v?d:v)==d,M=g==v;if(M&&l(e)){if(!l(t))return!1;_=!0,b=!1}if(M&&!b)return m||(m=new r),_||c(e)?o(e,t,n,f,h,m):a(e,t,g,n,f,h,m);if(!(1&n)){var L=b&&p.call(e,"__wrapped__"),T=w&&p.call(t,"__wrapped__");if(L||T){var k=L?e.value():e,x=T?t.value():t;return m||(m=new r),h(k,x,n,f,m)}}return!!M&&(m||(m=new r),i(e,t,n,f,h,m))}},function(e,t,n){var r=n(76),o=n(413),a=n(414);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(31),o=n(114),a=n(74),i=n(113),s=n(418),u=n(419),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=u),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var _=i(f(e),f(t),r,l,d,p);return p.delete(e),_;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(115),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var p=l[d];if(!(u?p in t:o.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var _=u;++d<c;){var y=e[p=l[d]],g=t[p];if(a)var v=u?a(g,y,p,t,e,s):a(y,g,p,e,t,s);if(!(void 0===v?y===g||i(y,g,n,a,s):v)){m=!1;break}_||(_="constructor"==p)}if(m&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t,n){var r=n(19)(n(14),"DataView");e.exports=r},function(e,t,n){var r=n(19)(n(14),"Promise");e.exports=r},function(e,t,n){var r=n(19)(n(14),"Set");e.exports=r},function(e,t,n){var r=n(19)(n(14),"WeakMap");e.exports=r},function(e,t,n){var r=n(119),o=n(32);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},function(e,t,n){var r=n(112),o=n(428),a=n(434),i=n(78),s=n(119),u=n(120),l=n(49);e.exports=function(e,t){return i(e)&&s(t)?u(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},function(e,t,n){var r=n(121);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(430),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(431);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(76);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(433);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(31),o=n(110),a=n(12),i=n(79),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(435),o=n(436);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(122),o=n(104),a=n(12),i=n(105),s=n(68),u=n(49);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,d=!1;++l<c;){var p=u(t[l]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&i(p,c)&&(a(e)||o(e))}},function(e,t,n){var r=n(438),o=n(439),a=n(78),i=n(49);e.exports=function(e){return a(e)?r(i(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(121);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(441),o=n(43);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},function(e,t,n){var r=n(102),o=n(442)(r);e.exports=o},function(e,t,n){var r=n(43);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&!1!==o(s[i],i,s););return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=i(n(66)),o=i(n(444)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function i(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],o[t])})),t})),n};t.default=s},function(e,t,n){var r=n(445);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(73),o=n(446),a=n(123),i=n(448),s=n(449),u=n(452),l=n(453),c=n(454),d=n(455),p=n(115),f=n(456),h=n(48),m=n(457),_=n(458),y=n(463),g=n(12),v=n(67),b=n(465),w=n(22),M=n(467),L=n(32),T=n(80),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,x,E,S,D){var O,Y=1&n,C=2&n,A=4&n;if(x&&(O=S?x(t,E,S,D):x(t)),void 0!==O)return O;if(!w(t))return t;var j=g(t);if(j){if(O=m(t),!Y)return l(t,O)}else{var P=h(t),H="[object Function]"==P||"[object GeneratorFunction]"==P;if(v(t))return u(t,Y);if("[object Object]"==P||"[object Arguments]"==P||H&&!S){if(O=C||H?{}:y(t),!Y)return C?d(t,s(O,t)):c(t,i(O,t))}else{if(!k[P])return S?t:{};O=_(t,P,Y)}}D||(D=new r);var I=D.get(t);if(I)return I;D.set(t,O),M(t)?t.forEach((function(r){O.add(e(r,n,x,r,t,D))})):b(t)&&t.forEach((function(r,o){O.set(o,e(r,n,x,o,t,D))}));var N=j?void 0:(A?C?f:p:C?T:L)(t);return o(N||t,(function(r,o){N&&(r=t[o=r]),a(O,o,e(r,n,x,o,t,D))})),O}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(19),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(50),o=n(32);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(50),o=n(80);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(22),o=n(71),a=n(451),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(14),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(42)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(50),o=n(77);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(50),o=n(125);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(116),o=n(125),a=n(80);e.exports=function(e){return r(e,a,o)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(81),o=n(459),a=n(460),i=n(461),s=n(462);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return a(e);case"[object Set]":return new u;case"[object Symbol]":return i(e)}}},function(e,t,n){var r=n(81);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(31),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},function(e,t,n){var r=n(81);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(464),o=n(72),a=n(71);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},function(e,t,n){var r=n(22),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r=n(466),o=n(69),a=n(70),i=a&&a.isMap,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(48),o=n(15);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(468),o=n(69),a=n(70),i=a&&a.isSet,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(48),o=n(15);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(66),a=(r=o)&&r.__esModule?r:{default:r},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},u=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=s[t];n?r=i({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),i=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;s(this,r);for(var c=arguments.length,d=Array(c),p=0;p<c;p++)d[p]=arguments[p];return a=l=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return i.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(e,o({},l.props,l.state)))},u(l,a)}return l(r,n),r}(i.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),i=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;s(this,r);for(var c=arguments.length,d=Array(c),p=0;p<c;p++)d[p]=arguments[p];return a=l=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return i.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(e,o({},l.props,l.state)))},u(l,a)}return l(r,n),r}(i.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t="string"==typeof e.className?e.className:"",n=e.isLoading?r.createElement("div",{className:"loading-bar"}):null,o=r.createElement("div",{className:"title"},e.title);return e.hasOwnProperty("tabs")&&Array.isArray(e.tabs)&&(o=e.tabs.map((function(t,n){return r.createElement("div",{key:n,className:"tab "+(e.activeTabName===t?"active":""),onClick:function(){return e.selectTab(t,n)}},t)}))),r.createElement("div",{className:"section "+t},r.createElement("div",{className:"section-header"},o,r.createElement("div",{className:"buttons"},e.buttons)),r.createElement("div",{className:"section-content"},e.children),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(8),a=r.memo((function(e){return r.createElement("div",null,o.formatDateDefault(e.cell.row.values.date_created))}));t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.HEADER_HEIGHT=t.PREVIEW_MAX_HEIGHT=t.PREVIEW_MAX_WIDTH=void 0;var i=n(0),s=n(89);t.PREVIEW_MAX_WIDTH=400,t.PREVIEW_MAX_HEIGHT=400,t.HEADER_HEIGHT=30;var u=function(e){function n(t){var n=e.call(this,t)||this;return n.iconRef=i.createRef(),n.evtHandlers={onClose:function(){return n.handleClose()},onClick:function(){return n.handlePreviewClick()}},n}return o(n,e),n.prototype.handleClose=function(){(0,this.props.onRequestClose)()},n.prototype.handlePreviewClick=function(){var e=this.props,t=e.onClick;e.showMedia||t()},n.prototype.render=function(){var e=this,n=function(n,r){if(e.iconRef.current){n||(n=t.PREVIEW_MAX_WIDTH),r||(r=t.PREVIEW_MAX_HEIGHT);var o=e.iconRef.current.getBoundingClientRect(),a=n/r,i=t.PREVIEW_MAX_WIDTH,s=i/a;s>t.PREVIEW_MAX_HEIGHT&&(i=(s=t.PREVIEW_MAX_HEIGHT)*a);var u=o.x+o.width-i,l=o.y+o.height-s-20;return u<0&&(u=o.x),l<t.HEADER_HEIGHT&&(l=o.y+20),{top:l,left:u,width:i,height:s,position:"absolute",zIndex:9e3}}},r=this.props,o=r.cell,u=r.showMedia;return i.createElement("div",{ref:this.iconRef,className:"asset-type-cell",onClick:this.evtHandlers.onClick},i.createElement(s.AssetsTypeIcon,{type:o.row.values.type}),o.row.values.type===s.ASSET_TYPES.IMAGE&&i.createElement(s.ImagePreview,{style:a({},n(o.row.original.width,o.row.original.height)),showMedia:u,url:o.row.original.url,onRequestClose:this.evtHandlers.onClose}),o.row.values.type===s.ASSET_TYPES.VIDEO&&i.createElement(s.VideoPreview,{playbackSettings:{autoPlay:!0,loop:!1},style:n(o.row.original.width,o.row.original.height),showMedia:u,url:o.row.original.url,onRequestClose:this.evtHandlers.onClose}))},n}(i.PureComponent),l=i.memo(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secondsToTime=void 0;var r=n(0),o=n(17),a=n(9),i=n(10);t.secondsToTime=function(e){var t=Math.floor(e/60),n=Math.floor(e-60*t);return n<10&&(n="0"+n),t+":"+n};t.default=a.connect((function(e){return{}}),(function(e){return i.bindActionCreators({updateAssetName:o.updateAssetName},e)}))((function(e){var n=e.cell.row.original,o=n.duration;n.id;return null!=o?r.createElement("div",{className:"asset-duration-cell"},t.secondsToTime(o)):null}))},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_DND_TYPES=void 0,t.ASSET_DND_TYPES={ASSET_NAME:"asset_name"}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(0),i=n(0),s=n(13),u=n(17),l=n(9),c=n(10);t.default=l.connect((function(e){return{}}),(function(e){return c.bindActionCreators({updateAssetName:u.updateAssetName},e)}))((function(e){var t=e.cell.row.original,n=t.name,u=t.id,l=r(i.useState(""),2),c=l[0],d=l[1],p=function(t){e.updateAssetName(e.api,u,t)};return i.useEffect((function(){return d(n),function(){clearTimeout(o)}}),[n]),a.createElement(s.default,{value:c,width:"100%",onChange:function(e){return function(e){d(e),clearTimeout(o),o=setTimeout((function(){return p(e)}),1e3)}(e)}})}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(13),s=n(23),u=n(9),l=n(10),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.render=function(){var e=t.props.assetFilters;return a.createElement(i.default,{submittable:!0,submittableType:"search",value:e.name,doSubmit:function(e){return t.props.updateFilters({name:e})}})},t}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{assetFilters:e.assetFilters}}),(function(e){return l.bindActionCreators({updateFilters:s.updateFilters},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(33),s=n(30),u=n(9),l=n(10),c=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=n.props,t=e.cell,r=e.selectedAssets,o=t.row.original.id,i=r.indexOf(o)>-1;return a.createElement(s.default,{label:"",width:"auto",value:i,onChange:function(e,t){return function(e,t){e?t.shiftKey&&r.length>0?n.props.selectMultipleAssets(o):n.props.selectAsset(o):n.props.deselectAsset(o)}(e,t)}})},n}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{selectedAssets:e.selectedAssets}}),(function(e){return l.bindActionCreators({selectAsset:i.selectAsset,deselectAsset:i.deselectAsset,selectMultipleAssets:i.selectMultipleAssets},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(30),s=n(33),u=n(9),l=n(10),c=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=0===n.props.selectedAssets.length,t=e?function(){return n.props.selectAll()}:function(){return n.props.resetSelection()};return a.createElement(i.default,{label:"",propagate:!1,value:!e,onChange:t})},n}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{selectedAssets:e.selectedAssets}}),(function(e){return l.bindActionCreators({selectAll:s.selectAll,resetSelection:s.resetSelection},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5),a=r.memo((function(e){return r.createElement(o.default,{color:"secondary",style:"subtle",size:"small",onClick:e.onClick},e.cell.row.values.tags.length)}));t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(23),s=n(13),u=n(9),l=n(10),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.render=function(){var e=t.props.assetFilters;return a.createElement(s.default,{submittable:!0,submittableType:"search",value:e.tags,doSubmit:function(e){return t.props.updateFilters({tags:e})}})},t}return o(t,e),t}(a.PureComponent),d=u.connect((function(e){return{assetFilters:e.assetFilters}}),(function(e){return l.bindActionCreators({updateFilters:i.updateFilters},e)}))(a.memo(c));t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(7),s=n(51),u=n(13),l=n(17),c=n(9),d=n(10),p=n(5),f=n(4),h=function(e){function t(n){var r=e.call(this,n)||this;return r.addTags=function(e,t){t&&r.props.addAssetTag(r.props.api,e,t)},r.render=function(){var e=r.props,n=e.row.original,o=n.id,l=n.tags,c=e.assetTags,d=l.map((function(e){return a.createElement(s.default,{key:e,copy:e,colorize:t.COLORIZE_TAGS,removeHandler:function(){return r.props.deleteAssetTag(r.props.api,o,e)}})}));return a.createElement("div",{className:"tags-column"},a.createElement(a.Fragment,null,a.createElement(u.default,{submittable:!0,submittableType:"add",suggestions:c,label:i.assets.tags.add,width:t.ADD_TAG_INPUT_WIDTH,doSubmit:function(e){return r.addTags(o,e)}}),d,a.createElement(p.default,{customStyles:{position:"absolute",right:"1px",top:"9px"},style:"subtle",onClick:function(e){return r.props.onClose(e,r.props.row)}},f.ICON_TIMES)))},r}return o(t,e),t.ADD_TAG_INPUT_WIDTH="280px",t.COLORIZE_TAGS=!0,t}(a.PureComponent);t.default=c.connect((function(e){return{assetTags:e.assetTags}}),(function(e){return d.bindActionCreators({addAssetTag:l.addAssetTag,deleteAssetTag:l.deleteAssetTag},e)}))(h)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(51),s=n(13),u=n(17),l=n(9),c=n(10),d=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=n.props,t=e.cell,r=e.assetTags,o=t.row.original.tags.map((function(e){return a.createElement(i.default,{key:e,copy:e,colorize:!0,removeHandler:function(){return n.removeTag(e)}})}));return a.createElement("div",{className:"tags-complex-column"},o,a.createElement("div",{className:"new-tag"},a.createElement(s.default,{submittable:!0,submittableType:"add",placeholder:"+",hideButtons:!0,suggestions:r,doSubmit:function(e){return n.onSubmit(e)},width:"150px",buttons:[],value:n.state.newTag})))},n.state={newTag:""},n.inputRef=a.createRef(),n}return o(t,e),t.prototype.onSubmit=function(e){var t=this.props.cell.row.original,n=t.id;-1===t.tags.indexOf(e)&&this.props.addAssetTag(this.props.api,n,e),this.setState({newTag:""})},t.prototype.removeTag=function(e){var t=this.props.cell.row.original.id;this.props.deleteAssetTag(this.props.api,t,e)},t}(a.Component),p=l.connect((function(e){return{assetTags:e.assetTags}}),(function(e){return c.bindActionCreators({addAssetTag:u.addAssetTag,deleteAssetTag:u.deleteAssetTag},e)}))(a.memo(d));t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(85),a=r.memo((function(e){return r.createElement("div",{className:"asset-type-cell"},r.createElement(o.default,{type:e.cell.row.values.type}))}));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=r.memo((function(e){var t=e.cell.row.original.processing?"processing":"complete";return r.createElement("div",{className:"asset-status-cell"},r.createElement("div",{className:"status-indicator "+t}))}));t.default=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(85),s=n(5),u=n(59),l=n(23),c=n(9),d=n(10),p=n(24),f=function(e){function t(t){var n=e.call(this,t)||this;return n.handleFilterChange=function(e){var t=e!==p.ASSET_TYPES.ALL?e:"";n.props.updateFilters({type:t,page:1})},n.render=function(){var e=n.state.openMenu,t=n.props.assetFilters.type,r=[],o=function(e){if(p.ASSET_TYPES.hasOwnProperty(e)){var t=p.ASSET_TYPES[e];r.push(a.createElement("div",{key:t,className:"asset-filter",onClick:function(){return n.handleFilterChange(t)}},a.createElement(i.default,{type:t})))}};for(var l in p.ASSET_TYPES)o(l);return a.createElement("div",{className:"centered cell"},a.createElement(s.default,{tooltip:"Filter by Asset type",buttonRef:n.typeFilterRef,onClick:function(){return n.setState({openMenu:!e})}},a.createElement(i.default,{type:t||"filter"}),a.createElement(u.default,{fixed:!0,show:e,position:"bottomleft",toggleRef:n.typeFilterRef,onOutsideClick:function(){return n.setState({openMenu:!1})}},r)))},n.state={openMenu:!1},n.typeFilterRef=a.createRef(),n}return o(t,e),t}(a.PureComponent),h=c.connect((function(e){return{assetFilters:e.assetFilters}}),(function(e){return d.bindActionCreators({updateFilters:l.updateFilters},e)}))(a.memo(f));t.default=h},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=n(86),l=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultSize=600,n}return o(t,e),t.prototype.getWrapperStyle=function(){var e=this.props,t=e.padding,n=e.width,r=e.height,o=void 0!==t?t:i.DEFAULT_PADDING;return s.getPlayerStyle(n,r,this.defaultSize,this.defaultSize,o,this.defaultSize,this.defaultSize)},t.prototype.render=function(){var e=this.props,t=e.active,n=e.asset,r=n.name,o=n.url,i=n.id,s=e.width,l=e.height,c=this.getWrapperStyle();return!1!==t?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:c},a.createElement(u.default,{options:{width:s,height:l,x:0,y:0,rotation:0,id:"xxx",name:"xxx",content:"ABCDEFGHIJKLM\nNOPQRSTUVWXYZ\nabcdefghijklm\nnopqrstuvwxyz\n1234567890",color:"#000000",background_color:"#ffffff",font_size:80,font_weight:400,font_type:"custom",font:r,custom_font_url:o,custom_font_id:i,letter_spacing:null,word_spacing:null,line_height:null,horizontal_alignment:"center",vertical_alignment:"center",text_wrap:!0,text_fit:!0}}))):null},t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(7),s=n(30),u=n(126),l=n(52),c=n(10),d=n(9),p=n(4),f=n(5),h=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e,t=n.props.assetUploads,r=t.uploads,o=t.autoTag,l=t.assignToStory;return e=r.length>0?r.map((function(e){var t=e.filename,r=e.percent,o=r<100?a.createElement(u.default,{progress:e.percent}):a.createElement("span",null,i.assets.uploads.preparePhase),s=r<100&&a.createElement(f.default,{key:"btn-cancel",onClick:function(){return n.handleCancelAssetUpload(t)},style:"subtle"},p.ICON_TIMES);return a.createElement("div",{className:"ongoing-upload",key:t},a.createElement("div",{className:"ongoing-upload-inner"},a.createElement("div",{className:"upload-filename"},t),s),o)})):a.createElement("div",{className:"no-ongoing-uploads"},i.assets.uploads.noUploads),a.createElement("div",{className:"uploads-menu"},a.createElement("div",{className:"uploads-controls"},a.createElement(s.default,{width:"50%",label:i.assets.uploads.autoTagInput,value:o,onChange:function(){return n.props.toggleAutoTag(!o)}}),a.createElement(s.default,{width:"50%",label:i.assets.uploads.assignToStoryInput,info:i.assets.uploads.assignToStoryInfo,value:l,onChange:function(){return n.props.toggleAssignToStory(!l)}})),a.createElement("div",{className:"uploads-list"},e))},n}return o(t,e),t.prototype.handleCancelAssetUpload=function(e){var t=this.props.api;this.props.cancelAssetUpload(e,t)},t}(a.PureComponent);t.default=d.connect((function(e){return{assetUploads:e.assetUploads}}),(function(e){return c.bindActionCreators({toggleAutoTag:l.toggleAutoTag,toggleAssignToStory:l.toggleAssignToStory,cancelAssetUpload:l.cancelAssetUpload},e)}))(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewNotAvailable=void 0;var r=n(0),o=n(4),a=n(7);t.PreviewNotAvailable=function(e){return!0===e.active||void 0===e.active?r.createElement("div",{className:"preview-not-available"},r.createElement("div",{className:"cta"},r.createElement("div",{className:"icon"},o.ICON_BAN),r.createElement("p",null,a.assets.previewNotAvailable))):null}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=function(e){function t(t){var n=e.call(this,t)||this;return n.width=1280,n.height=720,n.audioNode=a.createRef(),n}return o(t,e),t.prototype.getImageStyle=function(){var e=this.props,t=e.padding,n=e.width,r=e.height,o=void 0!==t?t:i.DEFAULT_PADDING;return s.getPlayerStyle(n,r,this.width,this.height,o)},t.prototype.render=function(){var e=this.props,t=e.url;return!1!==e.active?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:this.getImageStyle()},a.createElement("audio",{controls:!0,src:t,ref:this.audioNode}))):null},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(87),u=n(5),l=n(7),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.videoNode=null,n.videoNode=i.createRef(),n.evtHandlers={onClose:function(e){return n.onClose(e)}},n}return o(t,e),t.prototype.onClose=function(e){(0,this.props.onRequestClose)(e)},t.prototype.render=function(){var e=this.props,t=e.showMedia,n=e.url,r=e.playbackSettings,o=e.style;return t?i.createElement(s.default,{id:"portal-root"},i.createElement("div",{style:a({},o),className:"close-icon-preview"},i.createElement(u.default,{key:"btn-filter",onClick:this.evtHandlers.onClose,size:"large",style:"subtle",tooltip:l.assets.field.tooltipFilter},c.ICON_TIMES)),i.createElement("video",{style:o,muted:!0,ref:this.videoNode,autoPlay:r.autoPlay,loop:r.loop,controls:!0,preload:"preload",src:n,className:"asset-preview-background"})):null},t}(i.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(87),u=n(4),l=n(5),c=n(7),d=function(e){function t(t){var n=e.call(this,t)||this;return n.imageNode=null,n.imageNode=i.createRef(),n.evtHandlers={onClose:function(e){return n.onClose(e)}},n.state={loaded:!1},n}return o(t,e),t.prototype.onClose=function(e){(0,this.props.onRequestClose)(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.showMedia,r=t.url,o=t.style,d=this.state.loaded;return n?i.createElement(s.default,{id:"portal-root"},i.createElement("div",{style:a({},o),className:"close-icon-preview"},i.createElement(l.default,{key:"btn-filter",onClick:this.evtHandlers.onClose,size:"large",style:"subtle",tooltip:c.assets.field.tooltipFilter},u.ICON_TIMES)),i.createElement("img",{onLoad:function(){return e.setState({loaded:!0})},src:r,ref:this.imageNode,className:"asset-preview-background transparent "+(d?"":"hidden"),style:o})):null},t}(i.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={imageHeight:1080,imageWidth:1920},n.imgNode=a.createRef(),n}return o(t,e),t.prototype.getImageStyle=function(){var e=this.state,t=e.imageHeight,n=e.imageWidth,r=this.props,o=r.padding,a=r.width,u=r.height,l=void 0!==o?o:i.DEFAULT_PADDING;return t&&n?s.getPlayerStyle(a,u,n,t,l):{}},t.prototype.metadataLoaded=function(e){this.setState({imageWidth:e.target.naturalWidth,imageHeight:e.target.naturalHeight})},t.prototype.render=function(){var e=this.props;e.url;return!1!==e.active?a.createElement("div",{className:"mediap-player"},a.createElement("div",{className:"inner-viewer",style:this.getImageStyle()})):null},t}(a.PureComponent);t.default=u},function(e,t,n){var r,o,a;o=[t],void 0===(a="function"==typeof(r=function(e){"use strict";var t,n=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};!function(e){e[e.EOS=0]="EOS",e[e.Text=1]="Text",e[e.Incomplete=2]="Incomplete",e[e.ESC=3]="ESC",e[e.Unknown=4]="Unknown",e[e.SGR=5]="SGR",e[e.OSCURL=6]="OSCURL"}(t||(t={}));var r=function(){function e(){this.VERSION="4.0.4",this.setup_palettes(),this._use_classes=!1,this._escape_for_html=!0,this.bold=!1,this.fg=this.bg=null,this._buffer="",this._url_whitelist={http:1,https:1}}return Object.defineProperty(e.prototype,"use_classes",{get:function(){return this._use_classes},set:function(e){this._use_classes=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"escape_for_html",{get:function(){return this._escape_for_html},set:function(e){this._escape_for_html=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url_whitelist",{get:function(){return this._url_whitelist},set:function(e){this._url_whitelist=e},enumerable:!0,configurable:!0}),e.prototype.setup_palettes=function(){var e=this;this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach((function(t){t.forEach((function(t){e.palette_256.push(t)}))}));for(var t=[0,95,135,175,215,255],n=0;n<6;++n)for(var r=0;r<6;++r)for(var o=0;o<6;++o){var a={rgb:[t[n],t[r],t[o]],class_name:"truecolor"};this.palette_256.push(a)}for(var i=8,s=0;s<24;++s,i+=10){var u={rgb:[i,i,i],class_name:"truecolor"};this.palette_256.push(u)}},e.prototype.escape_txt_for_html=function(e){return e.replace(/[&<>]/gm,(function(e){return"&"===e?"&amp;":"<"===e?"&lt;":">"===e?"&gt;":void 0}))},e.prototype.append_buffer=function(e){var t=this._buffer+e;this._buffer=t},e.prototype.get_next_packet=function(){var e={kind:t.EOS,text:"",url:""},r=this._buffer.length;if(0==r)return e;var a=this._buffer.indexOf("");if(-1==a)return e.kind=t.Text,e.text=this._buffer,this._buffer="",e;if(a>0)return e.kind=t.Text,e.text=this._buffer.slice(0,a),this._buffer=this._buffer.slice(a),e;if(0==a){if(1==r)return e.kind=t.Incomplete,e;var i=this._buffer.charAt(1);if("["!=i&&"]"!=i)return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==i){if(this._csi_regex||(this._csi_regex=o(n(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n [ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n [ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))),null===(l=this._buffer.match(this._csi_regex)))return e.kind=t.Incomplete,e;if(l[4])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=l[1]||"m"!=l[3]?e.kind=t.Unknown:e.kind=t.SGR,e.text=l[2];var s=l[0].length;return this._buffer=this._buffer.slice(s),e}if("]"==i){if(r<4)return e.kind=t.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.raw[0],o=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,a=r.replace(o,"");return new RegExp(a,"g")}(n(["\n (?: # legal sequence\n (\\) # ESC | # alternate\n () # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]))),this._osc_st.lastIndex=0;var u=this._osc_st.exec(this._buffer);if(null===u)return e.kind=t.Incomplete,e;if(u[3])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;var l,c=this._osc_st.exec(this._buffer);return null===c?(e.kind=t.Incomplete,e):c[3]?(e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e):(this._osc_regex||(this._osc_regex=o(n(["\n ^ # beginning of line\n #\n ]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:) # BEL (what xterm did)\n )\n ([!-~]+) # TEXT capture\n ]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x21-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))),null===(l=this._buffer.match(this._osc_regex))?(e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e):(e.kind=t.OSCURL,e.url=l[1],e.text=l[2],s=l[0].length,this._buffer=this._buffer.slice(s),e))}}},e.prototype.ansi_to_html=function(e){this.append_buffer(e);for(var n=[];;){var r=this.get_next_packet();if(r.kind==t.EOS||r.kind==t.Incomplete)break;r.kind!=t.ESC&&r.kind!=t.Unknown&&(r.kind==t.Text?n.push(this.transform_to_html(this.with_state(r))):r.kind==t.SGR?this.process_ansi(r):r.kind==t.OSCURL&&n.push(this.process_hyperlink(r)))}return n.join("")},e.prototype.with_state=function(e){return{bold:this.bold,fg:this.fg,bg:this.bg,text:e.text}},e.prototype.process_ansi=function(e){for(var t=e.text.split(";");t.length>0;){var n=t.shift(),r=parseInt(n,10);if(isNaN(r)||0===r)this.fg=this.bg=null,this.bold=!1;else if(1===r)this.bold=!0;else if(22===r)this.bold=!1;else if(39===r)this.fg=null;else if(49===r)this.bg=null;else if(r>=30&&r<38)this.fg=this.ansi_colors[0][r-30];else if(r>=40&&r<48)this.bg=this.ansi_colors[0][r-40];else if(r>=90&&r<98)this.fg=this.ansi_colors[1][r-90];else if(r>=100&&r<108)this.bg=this.ansi_colors[1][r-100];else if((38===r||48===r)&&t.length>0){var o=38===r,a=t.shift();if("5"===a&&t.length>0){var i=parseInt(t.shift(),10);i>=0&&i<=255&&(o?this.fg=this.palette_256[i]:this.bg=this.palette_256[i])}if("2"===a&&t.length>2){var s=parseInt(t.shift(),10),u=parseInt(t.shift(),10),l=parseInt(t.shift(),10);if(s>=0&&s<=255&&u>=0&&u<=255&&l>=0&&l<=255){var c={rgb:[s,u,l],class_name:"truecolor"};o?this.fg=c:this.bg=c}}}}},e.prototype.transform_to_html=function(e){var t=e.text;if(0===t.length)return t;if(this._escape_for_html&&(t=this.escape_txt_for_html(t)),!e.bold&&null===e.fg&&null===e.bg)return t;var n=[],r=[],o=e.fg,a=e.bg;e.bold&&n.push("font-weight:bold"),this._use_classes?(o&&("truecolor"!==o.class_name?r.push(o.class_name+"-fg"):n.push("color:rgb("+o.rgb.join(",")+")")),a&&("truecolor"!==a.class_name?r.push(a.class_name+"-bg"):n.push("background-color:rgb("+a.rgb.join(",")+")"))):(o&&n.push("color:rgb("+o.rgb.join(",")+")"),a&&n.push("background-color:rgb("+a.rgb+")"));var i="",s="";return r.length&&(i=' class="'+r.join(" ")+'"'),n.length&&(s=' style="'+n.join(";")+'"'),"<span"+s+i+">"+t+"</span>"},e.prototype.process_hyperlink=function(e){var t=e.url.split(":");return t.length<1?"":this._url_whitelist[t[0]]?'<a href="'+this.escape_txt_for_html(e.url)+'">'+this.escape_txt_for_html(e.text)+"</a>":""},e}();function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.raw[0],o=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,a=r.replace(o,"");return new RegExp(a)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r})?r.apply(t,o):r)||(e.exports=a)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(131),u=n(499),l=n(13),c=n(5),d=n(21),p=n(41),f=n(29),h=n(63),m=n(11),_=n(16),y=n(25),g=n(129),v=n(500),b=n(100),w=n(7),M=n(8),L=n(132),T=n(130),k=function(e){function t(t){var n=e.call(this,t)||this,r=n.getInventoryDefaults(),o=n.getInventoryOptions();return n.state={inventory:r,inventoryOptions:o,experienceId:null,jobId:null,experience:null,timeElapsed:0,activeOutput:"",rendering:!1},n.timer=new L.default({interval:1e3,onUpdate:function(e){n.setState({timeElapsed:e})}}),n.evtHandlers={toggleOutput:function(e){return n.toggleActiveOutput(e)},createExp:function(){return n.createExperience()},gotExperience:null},n}return o(t,e),t.prototype.componentWillUnmount=function(){var e=this.props,t=e.api;e.onError,this.state.experienceId;this.timer.stop(),this.evtHandlers.gotExperience=null,t.cancelExperiencePolling()},t.prototype.getInventoryOptions=function(){var e=this.props.variables,t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.defaultItem&&r.defaultItem.type&&r.defaultItem.type.toLowerCase()===s.VARIABLE_TYPES.ENUM&&(t[r.id]=r.defaultItem.options)}return t},t.prototype.getInventoryDefaults=function(){var e=this.props.variables,t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[r.id]=this.getVariableValue(r.previewItem)}return t},t.prototype.checkInventoryDefaults=function(e){var t=this.props.variables,n=a({},this.state.inventory);for(var r in t)if(t.hasOwnProperty(r)){var o=t[r],i=e[r];if(i){var s=this.getVariableValue(i.previewItem),u=this.getVariableValue(o.previewItem);o.type===i.type&&s===u||(n[r]=u)}}return n},t.prototype.getVariableValue=function(e){if(e&&e.type){var t=e.type.toLowerCase();return t===s.VARIABLE_TYPES.IMAGE||t===s.VARIABLE_TYPES.VIDEO||t===s.VARIABLE_TYPES.AUDIO?e.url:e.src}},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.experienceId,r=t.jobId;n&&r&&this.setState({jobId:r},(function(){e.getExperience(n)}))},t.prototype.componentDidUpdate=function(e,t){if(e.storyId!==this.props.storyId&&(this.evtHandlers.gotExperience=null),e.variables!==this.props.variables){var n=void 0,r=this.getInventoryOptions();n=e.storyId===this.props.storyId?this.checkInventoryDefaults(e.variables):this.getInventoryDefaults(),this.setState({inventoryOptions:r,inventory:n})}},t.prototype.variableInputChanged=function(e,t){var n=a({},this.state.inventory);n[e]=t,this.setState({inventory:n})},t.prototype.getViewerOptions=function(){var e=[],t=this.state,n=t.experience.output,r=t.jobId,o=n.videos,a=n.images;if(o)for(var i in o)if(o.hasOwnProperty(i)){var s={label:"Video: "+i,value:u.OUTPUT_TYPES.VIDEO+"."+i};e.push(s)}if(a)for(var i in a)if(a.hasOwnProperty(i)){var l={label:"Image: "+i,value:u.OUTPUT_TYPES.IMAGE+"."+i};e.push(l)}return r&&e.push({label:w.previewer.btnLog,value:u.OUTPUT_TYPES.LOG+"."+r}),e},t.prototype.renderVariableFields=function(){var e=this,t=this.state,n=t.inventory,r=t.inventoryOptions,o=this.props.variables,a=[],u=function(t){if(o.hasOwnProperty(t)){var u=o[t];switch(u.type.toLowerCase()){case s.VARIABLE_TYPES.TEXT:a.push(i.createElement(l.default,{label:u.name,key:u.id,value:n[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.NUMBER:a.push(i.createElement(p.default,{label:u.name,key:u.id,value:n[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.ENUM:a.push(i.createElement(f.default,{label:u.name,key:u.id,value:n[u.id],options:r[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.BOOLEAN:a.push(i.createElement(h.default,{label:u.name,key:u.id,value:n[u.id],options:s.BOOLEAN_DEFAULT_OPTIONS,onChange:function(t){return e.variableInputChanged(u.id,t)}}));break;case s.VARIABLE_TYPES.IMAGE:a.push(i.createElement(m.default,{label:u.name,key:u.id},i.createElement(v.default,{value:n[u.id],type:u.type,onChange:function(t){return e.variableInputChanged(u.id,t)}})));break;case s.VARIABLE_TYPES.VIDEO:case s.VARIABLE_TYPES.AUDIO:a.push(i.createElement(m.default,{label:u.name,key:u.id},i.createElement(v.default,{type:u.type,value:n[u.id],onChange:function(t){return e.variableInputChanged(u.id,t)}})))}}};for(var c in o)u(c);return a},t.prototype.getFirstOutput=function(e){var t=e.output.videos,n=e.output.images;if(t){for(var r in t)if(t.hasOwnProperty(r))return u.OUTPUT_TYPES.VIDEO+"."+r}else{if(!n)return null;for(var r in n)if(n.hasOwnProperty(r))return u.OUTPUT_TYPES.IMAGE+"."+r}},t.prototype.getExperience=function(e,t,n,r){var o=this;void 0===t&&(t=!1),this.timer.running||this.timer.start();var a=this.props,i=a.api,s=a.onError,u=a.onExperenceLoaded,l=a.onJobCreated;this.setState({rendering:!0},(function(){o.setState({experienceId:e},(function(){t?i.triggerEvent(e,n,r).then((function(t){o.setState({jobId:t.job_id},(function(){l&&l(e,t.job_id),o.evtHandlers.gotExperience=function(e){o.timer.stop(),u&&u(e),o.setState({rendering:!1,activeOutput:o.getFirstOutput(e),experience:e})};i.getExperience(e,!0).then((function(e){o.evtHandlers.gotExperience&&o.evtHandlers.gotExperience(e)})).catch((function(t){o.resetState(),s&&s(w.previewer.runExpError.replace("[expId]",e))}))}))})).catch((function(t){o.resetState(),s&&s(w.previewer.triggerExpError.replace("[expId]",e))})):(o.evtHandlers.gotExperience=function(e){o.timer.stop(),u&&u(e),o.setState({rendering:!1,activeOutput:o.getFirstOutput(e),experience:e})},i.getExperience(e,!0).then((function(e){o.evtHandlers.gotExperience&&o.evtHandlers.gotExperience(e)})).catch((function(t){o.resetState(),s&&s(w.previewer.runExpError.replace("[expId]",e))})))}))}))},t.prototype.createExperience=function(){var e=this,t=this.props,n=t.storyId,r=t.onNotification,o=t.onError,a=t.api,i=t.onExperienceCreated,s=t.compositionId,u=t.useWorkingCopy;this.resetState((function(){e.setState({rendering:!0},(function(){e.timer.start(),r&&r(w.previewer.runExpStart),a.createExperience(n,e.state.inventory,s,u).then((function(t){r&&r(w.previewer.expId.replace("[expId]",t.id)),i&&i(t),e.getExperience(t.id,!0,s,u)})).catch((function(t){e.resetState();var n=t.response,r=n.data;n.status;o&&(r&&r.error?o(w.previewer.createExpError+": "+r.error):o(w.previewer.createExpError+": "+t))}))}))}))},t.prototype.resetState=function(e){this.timer.stop(),this.setState({rendering:!1,experienceId:null,experience:null,jobId:null,timeElapsed:0,activeOutput:null},(function(){e&&e()}))},t.prototype.renderViewerContent=function(){var e=this.state,t=e.rendering,n=e.experience,r=e.timeElapsed,o=e.activeOutput,a=this.props,s=a.api,l=a.onError;if(t)return i.createElement("div",{className:"running-prompt"},i.createElement(d.default,null),i.createElement("br",null),i.createElement("h1",null,"  ",w.previewer.expRunning),i.createElement("p",null,w.previewer.time," ",M.formattedTime(r)));if(n&&o){var c=void 0,p=void 0,f=o.split("."),h=f[0],m=f[1];if(h===u.OUTPUT_TYPES.IMAGE)p=n.output.images[m],c=i.createElement(g.default,{url:p,active:!0});else if(h===u.OUTPUT_TYPES.VIDEO){var _=n.output.videos[m],v=void 0!==_.width?parseInt(_.width,10):null,L=void 0!==_.height?parseInt(_.height,10):null;p=_.url,c=i.createElement(y.default,{url:p,active:!0,maxWidth:v,allowManualScale:!0,maxHeight:L})}else h===u.OUTPUT_TYPES.LOG&&(c=i.createElement("div",{className:"log"},i.createElement(T.default,{api:s,onError:l,jobId:m})));return i.createElement(b.default,{handleWidth:!0,handleHeight:!0},c)}return null},t.prototype.toggleActiveOutput=function(e){this.setState({activeOutput:e})},t.prototype.render=function(){var e,t,n=this.state,r=n.rendering,o=n.experience,a=n.activeOutput,s=o?w.previewer.btnReRender:w.previewer.btnRender,u=r?null:i.createElement(c.default,{size:"large",onClick:this.evtHandlers.createExp,color:"primary",style:"bold"},s);if(o){var d=this.getViewerOptions();e=i.createElement(f.default,{width:"130px",options:d,value:a,onChange:this.evtHandlers.toggleOutput}),t=i.createElement(l.default,{readOnly:!0,width:"360px",label:w.previewer.expIdField,showCopy:!0,value:o.id})}return i.createElement("div",{className:"story-viewer viewer"},i.createElement("div",{className:"variables"},i.createElement("h2",null,w.previewer.previewVars),i.createElement(_.default,null),this.renderVariableFields()),i.createElement("div",{className:"viewer-content"},i.createElement("div",{className:"content-header"},u,i.createElement("div",{className:"output"},e),i.createElement("div",{className:"right-interface"},t)),i.createElement("div",{className:"content-wrapper"},this.renderViewerContent())))},t}(i.PureComponent);t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OUTPUT_TYPES=void 0,t.OUTPUT_TYPES={LOG:"log",IMAGE:"image",VIDEO:"video"}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(21),s=n(131),u=n(84),l=n(5),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.input=a.createRef(),n.state={processing:!1,processedFile:null},n.evtHandlers={fileUpload:function(e){return n.fileUploaded(e)},fileDrop:function(e,t){return n.onFileDrop(e,t)},clearSelection:function(e){return n.clearSelection(e)},click:function(){return n.onClick()}},n}return o(t,e),t.prototype.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),this.props.onChange(null)},t.prototype.fileUploaded=function(e){var t=e.target.files[0];t&&this.props.onChange(t)},t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.checkFile()},t.prototype.componentDidMount=function(){this.checkFile()},t.prototype.checkFile=function(){var e=this,t=this.props.value;t instanceof File&&this.setState({processing:!0,processedFile:null},(function(){var n=new FileReader;n.onload=function(){e.setState({processing:!1,processedFile:n.result})},n.readAsDataURL(t)}))},t.prototype.renderFields=function(){var e,t=this.state,n=t.processing,r=t.processedFile,o=this.props,u=o.type,l=o.value,c=l instanceof File;if(!l)return null;if(c){if(n)return a.createElement(i.default,null);e=r}else e=l;switch(u.toLowerCase()){case s.VARIABLE_TYPES.IMAGE:return a.createElement("img",{className:"default-preview",src:e});case s.VARIABLE_TYPES.VIDEO:return a.createElement("video",{className:"default-preview",src:e,controls:!0});case s.VARIABLE_TYPES.AUDIO:return a.createElement("audio",{className:"default-preview",src:e,controls:!0})}},t.prototype.getInputFilter=function(){var e=this.props,t=e.type;e.value;switch(t){case s.VARIABLE_TYPES.IMAGE:return"image/*";case s.VARIABLE_TYPES.VIDEO:return"video/*";case s.VARIABLE_TYPES.AUDIO:return"audio/*"}},t.prototype.onClick=function(){var e=this.input.current,t=this.state.processing;e&&!t&&e.click()},t.prototype.renderClearButton=function(){if(this.props.value)return a.createElement(l.default,{onClick:this.evtHandlers.clearSelection},c.ICON_TIMES)},t.prototype.onFileDrop=function(e,t){var n=t.getItem().files[0];n&&this.props.onChange(n)},t.prototype.render=function(){var e=this.state.processing,t=this.getInputFilter();return a.createElement(a.Fragment,null,a.createElement("input",{type:"file",accept:t,style:{display:"none"},ref:this.input,onChange:this.evtHandlers.fileUpload}),a.createElement(u.default,{onDrop:this.evtHandlers.fileDrop,disable:e},a.createElement("div",{className:"variable-default-upload",onClick:this.evtHandlers.click},this.renderFields(),a.createElement("div",{className:"btn-wrapper"},this.renderClearButton()))))},t}(a.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(502),s=n(133),u=n(53),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={selectedLayer:null},n.eventHandlers={updateSelectedLayer:function(e){return n.updateSelectedLayer(e)}},n}return o(t,e),t.prototype.updateSelectedLayer=function(e){this.setState({selectedLayer:e})},t.prototype.variablesToInventory=function(){var e=this.props.variables,t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=r.type,a=r.previewItem;a&&(o===u.VARIABLE_TYPES.IMAGE||o===u.VARIABLE_TYPES.VIDEO||o===u.VARIABLE_TYPES.AUDIO?t[n]=a.url:t[n]=a.src)}return t},t.prototype.render=function(){var e=this.state.selectedLayer,t=this.props,n=t.storyId,r=t.api,o=t.composition;return o?a.createElement("div",{className:"static-composition-editor"},a.createElement("div",{className:"composition-config"},a.createElement(i.default,{storyId:n,api:r,composition:o,onSelectLayer:this.eventHandlers.updateSelectedLayer,selectedLayer:e,onUpdate:this.props.onUpdate})),a.createElement("div",{className:"composition-preview"},a.createElement(s.default,{inventory:this.variablesToInventory(),composition:o,onSelectLayer:this.eventHandlers.updateSelectedLayer,selectedLayer:e,onUpdate:this.props.onUpdate}))):null},t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(7),c=n(41),d=n(65),p=n(11),f=n(5),h=n(53),m=n(4),_=n(503),y=function(e){function t(t){var n=e.call(this,t)||this;return n.eventHandlers={inputs:{width:function(e){return n.compValueChanged("width",e)},height:function(e){return n.compValueChanged("height",e)},name:function(e){return n.compValueChanged("name",e)},backgroundColor:function(e){return n.bgChanged(e)}},selectLayer:function(e){return n.props.onSelectLayer(e)}},n.addLayerMenu=u.createElement(f.default,{onClick:function(){return n.addLayer()},style:"subtle",size:"small",color:"primary"},m.ICON_PLUS),n}return o(t,e),t.prototype.addLayer=function(){var e=h.getNewCompositionLayer(),t=a({},this.props.composition),n=s([],i(t.layers));n.push(e),t.layers=n,this.props.onUpdate(t),this.props.onSelectLayer(e.id)},t.prototype.updateLayer=function(e,t){var n=a({},this.props.composition),r=s([],i(n.layers));r[e]=t,n.layers=r,this.props.onUpdate(n)},t.prototype.compValueChanged=function(e,t){var n=a({},this.props.composition);n[e]=t,this.props.onUpdate(n)},t.prototype.bgChanged=function(e){if("transparent"===e.hex)this.compValueChanged("background_color",null);else{var t=e.rgb;this.compValueChanged("background_color","rgba("+t.r+","+t.g+","+t.b+","+t.a+")")}},t.prototype.render=function(){var e=this,t=this.props,n=t.composition,r=t.selectedLayer,o=t.storyId,a=t.api,i=(n.background_color&&n.background_color,u.createElement("span",null,l.compositions.layers," ",this.addLayerMenu));return u.createElement(u.Fragment,null,u.createElement(c.default,{label:l.compositions.width,tooltip:l.compositions.tooltipWidth,value:n.width,width:"30%",labelPosition:"top",onChange:this.eventHandlers.inputs.width}),u.createElement(c.default,{label:l.compositions.height,tooltip:l.compositions.tooltipHeight,value:n.height,width:"30%",labelPosition:"top",onChange:this.eventHandlers.inputs.height}),u.createElement(d.default,{label:l.compositions.backgroundColor,tooltip:l.compositions.tooltipBackgroundColor,enableAlpha:!0,value:n.background_color,width:"40%",labelPosition:"top",pickerPosition:"right",onChange:this.eventHandlers.inputs.backgroundColor}),u.createElement(p.default,{label:i,width:"100%",labelPosition:"top"},n.layers.map((function(t,n){var i=t.id===r;return u.createElement(_.default,{storyId:o,api:a,key:t.id,selected:i,onSelectLayer:e.eventHandlers.selectLayer,onUpdate:function(t){return e.updateLayer(n,t)},options:t})}))))},t}(u.PureComponent);t.default=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.V_ALIGN_OPTIONS=t.H_ALIGN_OPTIONS=void 0;var i=n(0),s=n(53),u=n(24),l=n(64),c=n(63),d=n(13),p=n(29),f=n(98),h=n(127),m=n(7),_=n(65),y=n(30),g=n(41),v=n(4);t.H_ALIGN_OPTIONS=[{icon:v.ICON_ALIGN_LEFT,value:"left"},{icon:v.ICON_ALIGN_CENTER,value:"center"},{icon:v.ICON_ALIGN_RIGHT,value:"right"}],t.V_ALIGN_OPTIONS=[{icon:v.ICON_ARROW_UP,value:"flex-start"},{icon:v.ICON_ARROW_CENTER_V,value:"center"},{icon:v.ICON_ARROW_DOWN,value:"flex-end"}];var b=function(e){function n(t){var n=e.call(this,t)||this;return n.eventHandlers={inputs:{name:function(e){return n.optionValueChanged("name",e)},width:function(e){return n.optionValueChanged("width",e)},height:function(e){return n.optionValueChanged("height",e)},x:function(e){return n.optionValueChanged("x",e)},y:function(e){return n.optionValueChanged("y",e)},rotation:function(e){return n.optionValueChanged("rotation",e)},content:function(e){return n.optionValueChanged("content",e)},hAlign:function(e){return n.optionValueChanged("horizontal_alignment",e)},vAlign:function(e){return n.optionValueChanged("vertical_alignment",e)},textWrap:function(e){return n.optionValueChanged("text_wrap",e)},textFit:function(e){return n.optionValueChanged("text_fit",e)},fontSize:function(e){return n.optionValueChanged("font_size",e)},lineHeight:function(e){return n.optionValueChanged("line_height",e)},letterSpacing:function(e){return n.optionValueChanged("letter_spacing",e)},font:function(e){return n.optionValueChanged("font",e)},customFont:function(e){return n.customFontUpdated(e)},fontType:function(e){return n.fontTypeChanged(e)},wordSpacing:function(e){return n.optionValueChanged("word_spacing",e)},color:function(e){return n.optionValueChanged("color",n.formatColor(e))},backgroundColor:function(e){return n.optionValueChanged("background_color",n.formatColor(e))}},onCardOpen:function(e){return n.onCardOpen()},onCardClose:function(e){return n.onCardClose()}},n}return o(n,e),n.prototype.customFontUpdated=function(e){var t=a({},this.props.options);if(e){var n=e.name,r=e.url,o=e.id;t.font=n,t.custom_font_url=r,t.custom_font_id=o}else t.font=s.DEFAULT_FONT,t.custom_font_url=null,t.custom_font_id=null;this.props.onUpdate(t)},n.prototype.onCardOpen=function(){var e=this.props.options.id;this.props.onSelectLayer(e)},n.prototype.onCardClose=function(){this.props.onSelectLayer(null)},n.prototype.fontTypeChanged=function(e){var t=a({},this.props.options);e===s.FONT_TYPES.STANDARD?(t.font_type=s.FONT_TYPES.STANDARD,t.font=s.DEFAULT_FONT):e===s.FONT_TYPES.CUSTOM&&(t.fontType=s.FONT_TYPES.CUSTOM,t.font=s.DEFAULT_FONT,t.custom_font_id=null,t.custom_font_url=null),this.props.onUpdate(t)},n.prototype.formatColor=function(e){var t=e.rgb;return"rgba("+t.r+","+t.g+","+t.b+","+t.a+")"},n.prototype.optionValueChanged=function(e,t){var n=a({},this.props.options);n[e]=t,this.props.onUpdate(n)},n.prototype.renderFontField=function(){var e=this.props,t=e.options,n=t.font_type,r=t.custom_font_id,o=t.font,a=e.storyId,l=e.api;return n===s.FONT_TYPES.STANDARD?i.createElement(p.default,{label:m.compositions.font,labelPosition:"top",width:"50%",options:s.STADARD_FONTS,onChange:this.eventHandlers.inputs.font,value:o}):n===s.FONT_TYPES.CUSTOM?i.createElement(h.default,{api:l,storyId:a,label:m.compositions.font,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.customFont,accepts:u.ASSET_TYPES.FONT,assetId:r}):null},n.prototype.render=function(){var e=this.props,n=e.options,r=e.selected;return i.createElement(f.default,{open:r,onOpen:this.eventHandlers.onCardOpen,onClose:this.eventHandlers.onCardClose,collapsable:!0,title:n.name},i.createElement(d.default,{label:m.compositions.name,tooltip:m.compositions.tooltipName,value:n.name,width:"100%",labelPosition:"top",onChange:this.eventHandlers.inputs.name}),i.createElement(g.default,{label:m.compositions.x,tooltip:m.compositions.tooltipLayerX,value:n.x,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.x}),i.createElement(g.default,{label:m.compositions.y,tooltip:m.compositions.tooltipLayerY,value:n.y,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.y}),i.createElement(g.default,{label:m.compositions.width,tooltip:m.compositions.tooltipLayerWidth,value:n.width,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.width}),i.createElement(g.default,{label:m.compositions.height,tooltip:m.compositions.tooltipLayerHeight,value:n.height,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.height}),i.createElement(g.default,{value:n.rotation,label:m.compositions.rotation,tooltip:m.compositions.tooltipLayerRotation,width:"20%",labelPosition:"top",onChange:this.eventHandlers.inputs.rotation}),i.createElement(l.default,{label:m.compositions.textLayerContent,tooltip:m.compositions.tooltipTextLayerContent,value:n.content,width:"100%",labelPosition:"top",onChange:this.eventHandlers.inputs.content}),i.createElement(c.default,{options:t.H_ALIGN_OPTIONS,value:n.horizontal_alignment,width:"50%",onChange:this.eventHandlers.inputs.hAlign}),i.createElement(c.default,{options:t.V_ALIGN_OPTIONS,value:n.vertical_alignment,width:"50%",onChange:this.eventHandlers.inputs.vAlign}),i.createElement(p.default,{label:m.compositions.fontType,options:s.FONT_TYPE_OPTIONS,value:n.font_type,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.fontType}),this.renderFontField(),i.createElement(g.default,{label:m.compositions.fontSize,value:n.font_size,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.fontSize}),i.createElement(g.default,{label:m.compositions.lineHeight,value:n.line_height,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.lineHeight}),i.createElement(g.default,{label:m.compositions.letterSpacing,value:n.letter_spacing,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.letterSpacing}),i.createElement(g.default,{label:m.compositions.wordSpacing,value:n.word_spacing,width:"50%",labelPosition:"top",onChange:this.eventHandlers.inputs.wordSpacing}),i.createElement(_.default,{label:m.compositions.color,value:n.color,enableAlpha:!0,width:"50%",labelPosition:"top",pickerPosition:"left",onChange:this.eventHandlers.inputs.color}),i.createElement(_.default,{label:m.compositions.backgroundColor,value:n.background_color,enableAlpha:!0,width:"50%",labelPosition:"top",pickerPosition:"right",onChange:this.eventHandlers.inputs.backgroundColor}),i.createElement(y.default,{label:m.compositions.wrap,value:n.text_wrap,width:"25%",labelPosition:"top",onChange:this.eventHandlers.inputs.textWrap}),i.createElement(y.default,{label:m.compositions.fit,value:n.text_fit,width:"25%",labelPosition:"top",onChange:this.eventHandlers.inputs.textFit}))},n}(i.PureComponent);t.default=b},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(16);t.default=function(e){var t=e.shortcutCopyMap,n=e.heading,a=n?r.createElement(r.Fragment,null,r.createElement("h3",null,n),r.createElement(o.default,null)):null;return r.createElement("div",{className:"shortcuts-menu"},a,r.createElement("table",null,r.createElement("tbody",null,Object.keys(t).map((function(e){return r.createElement("tr",{className:"shortcut",key:e},r.createElement("td",{className:"hotkey-cell"},e),r.createElement("td",{className:"shortcut-desc"},t[e]))})))))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(13),s=n(11),u=n(51),l=n(16),c=n(8),d=n(9),p=n(7),f=function(e){function t(t){var n=e.call(this,t)||this;return n.render=function(){var e=n.props,t=e.asset,r=e.columns,o=e.newAsset,u=e.assetTags;if(!t)return null;var d=o?p.assets.newDetails:p.assets.details,f=c.formatDateDefault(t.date_created),h=2===r,m=o?void 0:function(e){return n.props.onNameChange(e)},_=o?function(e){return n.props.onNameChange(e)}:void 0,y=a.createElement(i.default,{label:p.assets.name,controlled:!o,width:h?"50%":"100%",onSubmit:m,onChange:_,value:t.name}),g=a.createElement(i.default,{readOnly:!0,label:p.assets.date,width:h?"50%":"100%",value:f}),v=a.createElement(i.default,{submittable:!0,submittableType:"add",label:p.assets.addTag,suggestions:u,doSubmit:function(e){return n.props.onAddTag(e)},width:h?"50%":"100%",buttons:[],value:n.state.newTag}),b=a.createElement(s.default,{label:p.assets.assetTag,width:h?"50%":"100%"},n.renderTags());return a.createElement("div",{className:"asset-details"},a.createElement("h2",null,d),a.createElement("div",{className:"header-buttons"},n.props.headerButtons),a.createElement(l.default,null),y,g,v,b)},n.state={newTag:""},n}return o(t,e),t.prototype.renderTags=function(){var e=this;return this.props.asset.tags.map((function(t){return a.createElement(u.default,{key:t,copy:t,removeHandler:function(){return e.props.onRemoveTag(t)},colorize:!0})}))},t}(a.Component);t.default=d.connect((function(e){return{assetTags:e.assetTags}}),null)(f)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(64),u=n(16),l=n(7),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.getFirstAct=function(e){for(var t in e.acts)if(e.acts.hasOwnProperty(t))return e.acts[t]},n}return o(t,e),t.prototype.createUrl=function(){var e=this.props,t=e.story,n=e.compositionId,r=e.accessKey,o=t.id,a=this.getFirstAct(t).inventory,i="";for(var s in a){if(a.hasOwnProperty(s))i+=""+(i?"&":"?")+s+"={{"+s.toUpperCase()+"}}"}var u=window.location.href,l=-1!==u.indexOf("staging")||-1!==u.indexOf("localhost")?"staging.imposium.com":"imposium.com";return'<a href="'+("https://player."+l+"/new/"+r+"/"+o+"/"+n+i)+'" target="_blank"><img width="400" alt="Play Video" src="'+("https://api."+l+"/story/"+o+"/"+n+"/poster"+i)+'"></a>'},t.prototype.render=function(){var e=this.props,t=e.status,n=e.handleError,r=e.handleNotification;return a.createElement("div",null,a.createElement("h2",null,l.publish.hubspotTitle),a.createElement(u.default,null),a.createElement("p",null,l.publish.hubspotDesc),a.createElement(u.default,null),a.createElement(s.default,{label:l.publish.embeddedCode,value:this.createUrl(),showCopy:t!==l.header.publishing,onNotification:function(e){return r(e)},onError:function(e){return n(e)},readOnly:!0}),t===l.header.publishing&&a.createElement(i.default,{size:"small",customStyles:{margin:0,height:"20px",border:"none"},color:"primary",onClick:function(){return n(l.publish.embeddedCodeCopyError)}},c.ICON_CLIPBOARD))},t}(a.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(16),s=n(54),u=n(135),l=n(7),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return a.createElement("div",null,a.createElement("h2",null,l.integration.documentation),a.createElement(i.default,null),a.createElement("p",null,l.integration.docParagraph),a.createElement("div",{className:"link-wrapper"},null===u.documentationLinks||void 0===u.documentationLinks?void 0:u.documentationLinks.map((function(e){return a.createElement(s.BigLink,{key:e.key,label:e.label,link:e.link})}))))},t}(a.PureComponent);t.default=c},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.downloadSDKArchive=void 0;var o=n(27),a=n(510),i={method:"POST",responseType:"blob",headers:{"Content-Type":"application/json"}};t.downloadSDKArchive=function(e,t){var n=r(r({},i),{url:"https://template-generator.imposium.com/sdk-archive",data:JSON.stringify(t)});o.default(n).then((function(t){a.saveAs(t.data,e)})).catch((function(e){console.error("Failed to download sdk archive:",e)}))}},function(e,t,n){(function(n){var r,o,a;o=[],void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,i=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(e,n,i){var s=a.URL||a.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?o(u):r(u.href)?t(e,n,i):o(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,a),n);else if(r(e))t(e,n,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){o(i)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,u=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&u||i)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,p=d.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});a.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,o):r)||(e.exports=a)}).call(this,n(38))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDemoURL=void 0;t.getDemoURL=function(){var e=window.location.href;return-1!==e.indexOf("localhost")?"http://localhost:3044":-1!==e.indexOf("staging")?"https://demo.staging.imposium.com":"https://demo.imposium.com"}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(16),u=n(21),l=n(7),c=n(54),d=n(513),p=n(4),f=n(1),h=function(e){function t(t){var n=e.call(this,t)||this;return n.selectCsv=function(){n.hiddenFileInputRef.current&&n.hiddenFileInputRef.current.click()},n.doUploadCsv=function(e){e.persist();var t=n.props.handleError;n.setState({uploading:!0,renderedBatch:!1}),n.props.createFreshBatch(n.getBatchName()).then((function(t){var r=t.id,o=t.name,a=t.story_id;n.setState({selectedBatchId:r}),n.importBatch({story_id:a,id:r,name:o,uploadEvt:e})})).catch((function(e){throw t(e),n.setState({uploadComplete:!1,uploading:!1}),e}))},n.state={uploadComplete:!1,uploading:!1,downloading:!1,selectedBatchId:"",renderedBatch:!1},n.hiddenFileInputRef=i.createRef(),n}return o(t,e),t.prototype.downloadSampleCsv=function(){var e=this.props.story.name,n=this.props.story.acts,r=Object.keys(n),o={};r.forEach((function(e){o=a(a({},o),n[e].inventory)}));var i=Object.keys(o).sort().map((function(e){return{id:e,name:o[e].name,show:!0}})).map((function(e){return e.id})).reduce((function(e,t){var n;return a(a({},e),((n={})[t]="",n))}),{}),s=m(e)+"-batch-template";new d.ExportToCsv(a(a({},t.CSV_EXPORT_CONFIG),{filename:s})).generateCsv([i])},t.prototype.getBatchName=function(){var e=this.props,t=e.story.name,n=e.compositionName,r=Date.now(),o=f(r).format("MMDDYY-HHmm");return m(t)+"-"+m(n)+"-"+o},t.prototype.importBatch=function(e){var t=this,n=e.story_id,r=e.id,o=e.name,a=e.uploadEvt,i=this.props,s=i.accessKey,u=i.compositionId,c=i.isExport,d=i.handleError;this.props.importBatchFromCsv(n,r,o,a.target.files[0],s,u,!c,c).then((function(){t.setState({uploadComplete:!0,uploading:!1}),c&&t.renderBatch({id:r,name:o})})).catch((function(e){var n=e.response,r=n.status,o=n.data;throw 400===r&&(d(l.publish.missingColumns),alert(l.publish.csvMissingColumns+o.error),t.hiddenFileInputRef.current.value=""),t.setState({uploadComplete:!1,uploading:!1}),e}))},t.prototype.renderBatch=function(e){var t=this,n=e.id,r=e.name;this.props.renderBatch(n,r).then((function(){t.setState({renderedBatch:!0})})).catch((function(e){throw t.props.handleError(l.publish.renderBatchFailed),t.setState({renderedBatch:!1}),e}))},t.prototype.downloadCsv=function(){var e=this;this.setState({downloading:!0},(function(){var t=e.props,n=t.status,r=(t.api,t.handleError),o=e.state.selectedBatchId;n!==l.header.publishing?e.props.getBatchExport(o).then((function(){e.props.onDone(),e.setState({downloading:!1})})):r(l.publish.downloadError)}))},t.prototype.renderLabel=function(){var e=this.props,n=e.isExport,r=e.batchJobs,o=this.state,a=o.renderedBatch,s=o.selectedBatchId,c=o.uploading,d=o.uploadComplete;if(n&&d&&!a)return i.createElement("div",{className:"progress-bar"},i.createElement("progress",{max:t.PROGRESS_MAX_VALUE,value:r.renders[s]}));if(c){var f=n?l.publish.importingData:l.publish.creatingLinks;return i.createElement("span",null,i.createElement(u.default,null)," ",f)}return i.createElement("span",null,p.ICON_UPLOAD," ",l.publish.uploadCsv)},t.prototype.render=function(){var e=this,t=this.state,n=t.uploadComplete,r=t.uploading,o=t.downloading,a=t.renderedBatch,d=(t.selectedBatchId,this.props.isExport),f=[{label:i.createElement("span",null,p.ICON_DOWNLOAD," ",l.publish.downloadSampleCsvLink),onClick:function(){return e.downloadSampleCsv()},key:"download-sample"},{label:this.renderLabel(),onClick:function(){return e.selectCsv()},key:"upload",disabled:d&&n||r}],h=o?i.createElement("span",null,i.createElement(u.default,null)," ",l.publish.exporting):i.createElement("span",null,p.ICON_DOWNLOAD," ",l.publish.btnDownload),m=i.createElement("div",null,i.createElement("h2",null,n?l.publish.downloadLink:l.publish.generatingLink),i.createElement(s.default,null),i.createElement("p",null,n?l.publish.downloadDesc:l.publish.generatingLinkDesc),i.createElement(c.BigButton,{label:h,disabled:o,onClick:function(){return e.downloadCsv()}})),_=i.createElement("div",null,i.createElement("h2",null,l.publish.emailTitle),i.createElement(s.default,null),i.createElement("p",null,l.publish.emailDesc),i.createElement("input",{type:"file",style:{display:"none"},accept:"text/csv",ref:this.hiddenFileInputRef,onChange:this.doUploadCsv}),i.createElement("div",{className:"link-wrapper"},null==f?void 0:f.map((function(e,t){return i.createElement(c.BigButton,{label:i.createElement("span",null,e.label),onClick:e.onClick,disabled:null==e?void 0:e.disabled,key:e.key})}))));return(d?a:n)?m:_},t.PROGRESS_MAX_VALUE=100,t.CSV_EXPORT_CONFIG={fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!1,showTitle:!1,useTextFile:!1,useBom:!1,useKeysAsHeaders:!0},t}(i.PureComponent),m=function(e){return e.replace(/\W/g,"")};t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(514))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.EOL="\r\n",e.BOM="\ufeff",e.DEFAULT_FIELD_SEPARATOR=",",e.DEFAULT_DECIMAL_SEPARATOR=".",e.DEFAULT_QUOTE='"',e.DEFAULT_SHOW_TITLE=!1,e.DEFAULT_TITLE="My Generated Report",e.DEFAULT_FILENAME="generated",e.DEFAULT_SHOW_LABELS=!1,e.DEFAULT_USE_TEXT_FILE=!1,e.DEFAULT_USE_BOM=!0,e.DEFAULT_HEADER=[],e.DEFAULT_KEYS_AS_HEADERS=!1,e}();t.CsvConfigConsts=r,t.ConfigDefaults={filename:r.DEFAULT_FILENAME,fieldSeparator:r.DEFAULT_FIELD_SEPARATOR,quoteStrings:r.DEFAULT_QUOTE,decimalSeparator:r.DEFAULT_DECIMAL_SEPARATOR,showLabels:r.DEFAULT_SHOW_LABELS,showTitle:r.DEFAULT_SHOW_TITLE,title:r.DEFAULT_TITLE,useTextFile:r.DEFAULT_USE_TEXT_FILE,useBom:r.DEFAULT_USE_BOM,headers:r.DEFAULT_HEADER,useKeysAsHeaders:r.DEFAULT_KEYS_AS_HEADERS};var o=function(){function e(e){this._csv="";var n=e||{};this._options=u({},t.ConfigDefaults,n),this._options.useKeysAsHeaders&&this._options.headers&&this._options.headers.length>0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=u({},t.ConfigDefaults,e)},enumerable:!0,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=r.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._getHeaders(),this._getBody(),""!=this._csv){if(t)return this._csv;var n=this._options.useTextFile?"plain":"csv",o=this._options.useTextFile?".txt":".csv",a=new Blob([this._csv],{type:"text/"+n+";charset=utf8;"});if(navigator.msSaveBlob){var i=this._options.filename.replace(/ /g,"_")+o;navigator.msSaveBlob(a,i)}else{this._options.useTextFile,encodeURI(this._csv);var s=document.createElement("a");s.href=URL.createObjectURL(a),s.setAttribute("visibility","hidden"),s.download=this._options.filename.replace(/ /g,"_")+o,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders){var e=this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers;if(e.length>0){for(var t="",n=0;n<e.length;n++)t+=e[n]+this._options.fieldSeparator;t=t.slice(0,-1),this._csv+=t+r.EOL}}},e.prototype._getBody=function(){for(var e=Object.keys(this._data[0]),t=0;t<this._data.length;t++){for(var n="",o=0;o<e.length;o++){var a=e[o];n+=this._formatData(this._data[t][a])+this._options.fieldSeparator}n=n.slice(0,-1),this._csv+=n+r.EOL}},e.prototype._formatData=function(e){return"locale"===this._options.decimalSeparator&&this._isFloat(e)?e.toLocaleString():"."!==this._options.decimalSeparator&&this._isFloat(e)?e.toString().replace(".",this._options.decimalSeparator):"string"==typeof e?(e=e.replace(/"/g,'""'),(this._options.quoteStrings||e.indexOf(",")>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=o;var a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var o,u=s(e),l=1;l<arguments.length;l++){for(var c in t=Object(arguments[l]))a.call(t,c)&&(u[c]=t[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(t);for(var d=0;d<o.length;d++)i.call(t,o[d])&&(u[o[d]]=t[o[d]])}}return u}},function(e,t,n){var r={"./af":136,"./af.js":136,"./ar":137,"./ar-dz":138,"./ar-dz.js":138,"./ar-kw":139,"./ar-kw.js":139,"./ar-ly":140,"./ar-ly.js":140,"./ar-ma":141,"./ar-ma.js":141,"./ar-sa":142,"./ar-sa.js":142,"./ar-tn":143,"./ar-tn.js":143,"./ar.js":137,"./az":144,"./az.js":144,"./be":145,"./be.js":145,"./bg":146,"./bg.js":146,"./bm":147,"./bm.js":147,"./bn":148,"./bn-bd":149,"./bn-bd.js":149,"./bn.js":148,"./bo":150,"./bo.js":150,"./br":151,"./br.js":151,"./bs":152,"./bs.js":152,"./ca":153,"./ca.js":153,"./cs":154,"./cs.js":154,"./cv":155,"./cv.js":155,"./cy":156,"./cy.js":156,"./da":157,"./da.js":157,"./de":158,"./de-at":159,"./de-at.js":159,"./de-ch":160,"./de-ch.js":160,"./de.js":158,"./dv":161,"./dv.js":161,"./el":162,"./el.js":162,"./en-au":163,"./en-au.js":163,"./en-ca":164,"./en-ca.js":164,"./en-gb":165,"./en-gb.js":165,"./en-ie":166,"./en-ie.js":166,"./en-il":167,"./en-il.js":167,"./en-in":168,"./en-in.js":168,"./en-nz":169,"./en-nz.js":169,"./en-sg":170,"./en-sg.js":170,"./eo":171,"./eo.js":171,"./es":172,"./es-do":173,"./es-do.js":173,"./es-mx":174,"./es-mx.js":174,"./es-us":175,"./es-us.js":175,"./es.js":172,"./et":176,"./et.js":176,"./eu":177,"./eu.js":177,"./fa":178,"./fa.js":178,"./fi":179,"./fi.js":179,"./fil":180,"./fil.js":180,"./fo":181,"./fo.js":181,"./fr":182,"./fr-ca":183,"./fr-ca.js":183,"./fr-ch":184,"./fr-ch.js":184,"./fr.js":182,"./fy":185,"./fy.js":185,"./ga":186,"./ga.js":186,"./gd":187,"./gd.js":187,"./gl":188,"./gl.js":188,"./gom-deva":189,"./gom-deva.js":189,"./gom-latn":190,"./gom-latn.js":190,"./gu":191,"./gu.js":191,"./he":192,"./he.js":192,"./hi":193,"./hi.js":193,"./hr":194,"./hr.js":194,"./hu":195,"./hu.js":195,"./hy-am":196,"./hy-am.js":196,"./id":197,"./id.js":197,"./is":198,"./is.js":198,"./it":199,"./it-ch":200,"./it-ch.js":200,"./it.js":199,"./ja":201,"./ja.js":201,"./jv":202,"./jv.js":202,"./ka":203,"./ka.js":203,"./kk":204,"./kk.js":204,"./km":205,"./km.js":205,"./kn":206,"./kn.js":206,"./ko":207,"./ko.js":207,"./ku":208,"./ku.js":208,"./ky":209,"./ky.js":209,"./lb":210,"./lb.js":210,"./lo":211,"./lo.js":211,"./lt":212,"./lt.js":212,"./lv":213,"./lv.js":213,"./me":214,"./me.js":214,"./mi":215,"./mi.js":215,"./mk":216,"./mk.js":216,"./ml":217,"./ml.js":217,"./mn":218,"./mn.js":218,"./mr":219,"./mr.js":219,"./ms":220,"./ms-my":221,"./ms-my.js":221,"./ms.js":220,"./mt":222,"./mt.js":222,"./my":223,"./my.js":223,"./nb":224,"./nb.js":224,"./ne":225,"./ne.js":225,"./nl":226,"./nl-be":227,"./nl-be.js":227,"./nl.js":226,"./nn":228,"./nn.js":228,"./oc-lnc":229,"./oc-lnc.js":229,"./pa-in":230,"./pa-in.js":230,"./pl":231,"./pl.js":231,"./pt":232,"./pt-br":233,"./pt-br.js":233,"./pt.js":232,"./ro":234,"./ro.js":234,"./ru":235,"./ru.js":235,"./sd":236,"./sd.js":236,"./se":237,"./se.js":237,"./si":238,"./si.js":238,"./sk":239,"./sk.js":239,"./sl":240,"./sl.js":240,"./sq":241,"./sq.js":241,"./sr":242,"./sr-cyrl":243,"./sr-cyrl.js":243,"./sr.js":242,"./ss":244,"./ss.js":244,"./sv":245,"./sv.js":245,"./sw":246,"./sw.js":246,"./ta":247,"./ta.js":247,"./te":248,"./te.js":248,"./tet":249,"./tet.js":249,"./tg":250,"./tg.js":250,"./th":251,"./th.js":251,"./tk":252,"./tk.js":252,"./tl-ph":253,"./tl-ph.js":253,"./tlh":254,"./tlh.js":254,"./tr":255,"./tr.js":255,"./tzl":256,"./tzl.js":256,"./tzm":257,"./tzm-latn":258,"./tzm-latn.js":258,"./tzm.js":257,"./ug-cn":259,"./ug-cn.js":259,"./uk":260,"./uk.js":260,"./ur":261,"./ur.js":261,"./uz":262,"./uz-latn":263,"./uz-latn.js":263,"./uz.js":262,"./vi":264,"./vi.js":264,"./x-pseudo":265,"./x-pseudo.js":265,"./yo":266,"./yo.js":266,"./zh-cn":267,"./zh-cn.js":267,"./zh-hk":268,"./zh-hk.js":268,"./zh-mo":269,"./zh-mo.js":269,"./zh-tw":270,"./zh-tw.js":270};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=515},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(39),a=n(28),i=null;try{var s=JSON.parse(localStorage.getItem(o.AUTH_CACHE_KEY));if(s){var u=s.idTokenPayload.exp;a.default.checkExpiry(u)&&(i=s)}}catch(e){console.warn("Cached credentials were malformed or missing, redirected to login.")}t.default=function(e,t){switch(void 0===e&&(e=i),t.type){case o.default.LOGIN:return r({},t.auth);case o.default.CLEAR:return null;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(40),a=null;try{a=JSON.parse(localStorage.getItem(o.ACCESS_CACHE_KEY))}catch(e){console.warn("Cached access data was malformed or missing, redirected to login.")}t.default=function(e,t){switch(void 0===e&&(e=a),t.type){case o.default.SET:case o.default.STORY_ADDED:case o.default.STORY_NAME_MUTATION:case o.default.ORG_NAME_MUTATION:case o.default.STORY_DELETED:return r({},t.accessData);case o.default.CLEAR:return null;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(55),a={publishing:!1};t.default=function(e,t){switch(void 0===e&&(e=a),t.type){case o.default.UPDATE_PUBLISH_STATUS:return r(r({},e),t.data);case o.default.CLEAR_PUBLISH_STATUS:return a;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),a={page:1,order:"date_created",order_direction:"desc",name:"",type:"",tags:""};t.default=function(e,t){switch(void 0===e&&(e=a),t.type){case o.default.UPDATE:return r(r({},e),t.newFilters);case o.default.RESET:return r({},a);default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),s={loading:!1};t.default=function(e,t){void 0===e&&(e=s);var n,u=[];switch(t.type){case i.default.TOGGLE_LOADING:return r(r({},e),{loading:t.toggle});case i.default.GET:return r(r({},e),t.assetList);case i.default.ADD_TAG:for(var l=0,c=e.assets.length;l<c;l++)(n=e.assets[l]).id===t.id?u[l]=r(r({},n),{tags:a(a([],o(n.tags)),o(t.freshTags))}):u[l]=n;return r(r({},e),{assets:u});case i.default.DELETE_TAG:return r(r({},e),{assets:e.assets.map((function(e){return e.id===t.id?r(r({},e),{tags:e.tags.filter((function(e){return e!==t.tag}))}):e}))});case i.default.UPDATE_NAME:return r(r({},e),{assets:e.assets.map((function(e){return e.id===t.id?r(r({},e),{name:t.name}):e}))});case i.default.UPDATE_DATA:return r(r({},e),{assets:e.assets.map((function(e){return e.id===t.id?r(r({},e),{data:t.data}):e}))});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83),o=[];t.default=function(e,t){switch(void 0===e&&(e=o),t.type){case r.default.GET:return t.assetTags;default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(52),s={autoTag:!0,assignToStory:!0,uploads:[]};t.default=function(e,t){switch(void 0===e&&(e=s),t.type){case i.default.TOGGLE_AUTO_TAG:return r(r({},e),{autoTag:t.toggle});case i.default.TOGGLE_ASSIGN_TO_STORY:return r(r({},e),{assignToStory:t.toggle});case i.default.ADD_UPLOAD:return r(r({},e),{uploads:a(a([],o(e.uploads)),[t.uploadMeta])});case i.default.UPDATE_PERCENT_UPLOADED:var n=e.uploads.map((function(e){return e.filename===t.filename?r(r({},e),{percent:t.percent}):e}));return r(r({},e),{uploads:n});case i.default.REMOVE_UPLOAD:return r(r({},e),{uploads:e.uploads.filter((function(e){return e.filename!==t.filename}))});default:return e}}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},o=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(33),i=[];t.default=function(e,t){switch(void 0===e&&(e=i),t.type){case a.default.SELECT_ALL:return o([],r(t.allIds));case a.default.SELECT_ASSET:return o(o([],r(e)),[t.id]);case a.default.SELECT_MULTIPLE:return o([],r(new Set(o(o([],r(e)),r(t.assets)))));case a.default.DESELECT_ASSET:return e.filter((function(e){return e!==t.id}));case a.default.RESET_SELECTION:return[];default:return e}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),a=n(8),i=n(525),s=n(7),u=n(28),l=n(26),c=function(){function e(e,t,n){var c=this;this.pollingInterval=1e3,this.cancelTokenCache={player:void 0,system:void 0},this.cancelTokens={},this.doRequest=function(e,t){return void 0===t&&(t=""),new Promise((function(n,r){c.http(e).then((function(e){t&&c.clearCache(t),n(e.data)})).catch((function(e){!o.default.isCancel(e)&&t&&c.clearCache(t),!e.response||403!==e.response.status&&401!==e.response.status||(alert(s.assets.sessionExpired),l.default.getSession()&&(l.default.removeSession(),u.default.logout())),r(e)}))}))},this.cancelPrevious=function(e){var t=o.default.CancelToken.source();return c.cancelTokenCache[e]&&c.cancelTokenCache[e].cancel(),c.cancelTokenCache[e]=t,t.token},this.clearCache=function(e){c.cancelTokenCache[e]=void 0},this.doAWSRequest=function(e,t){return void 0===t&&(t=""),new Promise((function(t,n){c.awsHttp(e).then((function(e){t(e.data)})).catch((function(e){n(e)}))}))},this.saveStory=function(e,t){return c.doRequest({method:"PATCH",url:"/story/"+e,data:t})},this.newStory=function(e){return c.doRequest({method:"POST",url:"/story",data:e})},this.deleteStory=function(e){return c.doRequest({method:"DELETE",url:"/story/"+e})},this.getStoryStatus=function(e){return c.doRequest({method:"GET",url:"/story/"+e+"/version"})},this.getStoryVersions=function(e){return c.doRequest({method:"GET",url:"/story/"+e+"/versions"})},this.revertVersion=function(e,t){var n={version_id:t};return c.doRequest({method:"POST",url:"/story/"+e+"/version/revert",data:n})},this.getSignedUrl=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/upload-url",params:{filename:t.name,content_type:t.type}})},this.uploadToSignedUrl=function(e,t,n){return c.doAWSRequest({url:e,method:"PUT",data:t,onUploadProgress:n,headers:{"Content-Type":t.type}})},this.checkS3Bucket=function(e){var t="/bucket/"+e;return c.doRequest({method:"GET",url:t})},this.createS3Bucket=function(e,t,n,r){var o="/bucket/"+e,a={region:t,create_distribution:r?1:0,read_only:n?1:0};return c.doRequest({method:"POST",url:o,data:a})},this.processStoryFile=function(e,t,n){var r="/story/"+e+"/file",o={};return t?o.file_key=t:n&&(o.url=n),c.doRequest({method:"POST",url:r,data:o})},this.getAssets=function(e,t,n){void 0===n&&(n=!1);var r="/assets?items_per_page=50&optional_story_id="+t+"&unprocessed="+n,o=function(t){e.hasOwnProperty(t)&&(e[t]&&"tags"!==t&&(r+="&"+t+"="+encodeURIComponent(e[t])),e[t]&&"tags"===t&&e[t].split(",").forEach((function(e,n){r+="&"+t+"["+n+"]="+encodeURIComponent(e)})))};for(var a in e)o(a);return c.doRequest({method:"GET",url:r})},this.getAssetItem=function(e){return c.doRequest({method:"GET",url:"/assets/"+e})},this.duplicateAsset=function(e,t){return c.doRequest({method:"POST",url:"/assets/"+e+"/copy",data:{name:t}})},this.cancelRequest=function(e){var t=o.default.CancelToken.source();return c.cancelTokens[e]=t,t.token},this.clearCancelTokes=function(){c.cancelTokens={}},this.uploadAsset=function(e,t,n,r,o){var a=new FormData,i=c.cancelRequest(o);return e&&a.append("story_id",e),a.append("tags",t),a.append("file",n),c.doRequest({method:"POST",url:"/assets",data:a,onUploadProgress:r,cancelToken:i})},this.cancelUploadAssets=function(e){var t=c.cancelTokens[e];t&&t.cancel()},this.createCompositionAsset=function(e,t,n){var r=new FormData;return r.append("story_id",e),r.append("data",t),r.append("type","video_composition"),r.append("name",n||"New Composition"),c.doRequest({method:"POST",url:"/assets",data:r})},this.createStaticCompositionAsset=function(e,t){var n=new FormData;return n.append("story_id",e),n.append("data",t),n.append("type","static_composition"),n.append("name","New Template"),c.doRequest({method:"POST",url:"/assets",data:n})},this.deleteAsset=function(e){return c.doRequest({method:"DELETE",url:"/assets/"+e})},this.deleteAssets=function(e){return c.doRequest({method:"DELETE",url:"/assets",data:{ids:e}})},this.copyAsset=function(e,t){return c.doRequest({method:"POST",url:"/assets/"+e+"/copy",data:t})},this.addAssetTag=function(e,t){return c.doRequest({method:"POST",url:"/assets/"+e+"/tag",data:{tag:t}})},this.deleteAssetTag=function(e,t){return c.doRequest({method:"DELETE",url:"/assets/"+e+"/tag",data:{tag:t}})},this.updateAsset=function(e,t){return c.doRequest({method:"PATCH",url:"/assets/"+e,data:t})},this.getAssetTags=function(e){return c.doRequest({method:"GET",url:"/assets/tags?story_id="+e})},this.getStory=function(e){return c.doRequest({method:"GET",url:"/story/"+e})},this.getExperiences=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/experiences",params:t})},this.exportExperiences=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/experiences/export",params:t})},this.blockByExperience=function(e){var t="/experience/"+e+"/block";return c.doRequest({method:"POST",url:t})},this.getBatches=function(e,t){return c.doRequest({method:"GET",url:"/story/"+e+"/batches",params:t})},this.getBatch=function(e,t){return c.doRequest({method:"GET",url:"/batch/"+e,params:{page:t}})},this.getBatchProgress=function(e){return c.doRequest({method:"GET",url:"/batch/"+e+"/progress"})},this.createFreshBatch=function(e,t){return c.doRequest({method:"POST",url:"/batch",data:{story_id:e,name:t}})},this.updateBatchName=function(e,t){return c.doRequest({method:"PATCH",url:"/batch/"+e+"/rename",data:{name:t}})},this.importBatchDataFromCsv=function(e,t,n,r,o,a){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=!1);var i=new FormData;return i.append("file_key",t),n&&r&&o&&(i.append("include_email_embed","true"),i.append("composition_id",o),i.append("access_key",r)),a&&i.append("include_media","true"),c.doRequest({method:"POST",url:"/batch/"+e+"/data/from-csv",data:i})},this.updateBatchColumns=function(e,t){return c.doRequest({method:"PUT",url:"/batch/"+e+"/columns",data:t})},this.insertNewRow=function(e,t){return c.doRequest({method:"POST",url:"/batch/"+e+"/row/"+t})},this.updateCellValue=function(e,t,n,r){return c.doRequest({method:"PUT",url:"/batch/"+e+"/cell",data:{column_index:t,row_index:n,value:r}})},this.prepareBatchForRender=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/prepare"})},this.checkBatchExportStatus=function(e){return c.doRequest({method:"GET",url:"/batch/"+e+"/export"})},this.invokeBatchExportJob=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/export"})},this.downloadBatchExport=function(e,t){return c.doRequest({method:"GET",url:"/batch/"+e+"/export/"+t,responseType:"blob",params:{preserve:"true"}})},this.duplicateBatch=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/duplicate"})},this.deleteBatch=function(e){return c.doRequest({method:"DELETE",url:"/batch/"+e})},this.updateModerationStatus=function(e,t,n){return c.doRequest({method:"POST",url:"/experience/"+e+"/status",data:{status:t,reason:n}})},this.addOrReplaceNote=function(e,t){return c.doRequest({method:"POST",url:"/experience/"+e+"/notes",data:{notes:t}})},this.getJob=function(e){return c.doRequest({method:"GET",url:"/job/"+e})},this.runCut=function(e,t,n,r){var o="/job/"+i.JOB_TYPES.RUN_CUT,a={story_id:e,act_id:t,scene_id:n,cut_id:r};return c.doRequest({method:"POST",url:o,data:a})},this.runReRenderCuts=function(e,t,n){var r="/job/"+i.JOB_TYPES.RE_RUN_CUTS,o={story_id:e,act_id:t,scene_id:n};return c.doRequest({method:"POST",url:r,data:o})},this.runProcessBaseVideo=function(e,t){var n="/job/"+i.JOB_TYPES.PROCESS_BASE_VIDEO,r={story_id:e,file_key:t};return c.doRequest({method:"POST",url:n,data:r})},this.runPublish=function(e,t){var n={story_id:e,message:t};return c.doRequest({method:"POST",url:"/job/publish",data:n})},this.cancelPublish=function(e){var t={story_id:e};return c.doRequest({method:"DELETE",url:"/job/publish",data:t})},this.pollJob=function(e){var t={method:"GET",url:"/job/"+e};return new Promise((function(e,n){c.pollForJob(t,e,n)}))},this.pollForJob=function(e,t,n){c.http(e).then((function(r){"failed"===r.data.status?n(r):void 0!==r.data.output?t(r.data):c.jobPollTimer=setTimeout((function(){c.pollForJob(e,t,n)}),c.pollingInterval)})).catch((function(e){n(e)}))},this.pollForExperience=function(e,t,n){c.http(e).then((function(r){"failed"===r.data.status?n(r):void 0!==r.data.output?a.isObjEmpty(r.data.output)?c.experiencePollTimer=setTimeout((function(){c.pollForExperience(e,t,n)}),c.pollingInterval):t(r.data):c.experiencePollTimer=setTimeout((function(){c.pollForExperience(e,t,n)}),c.pollingInterval)})).catch((function(e){n(e)}))},this.getJobLogUrl=function(e){var t="/job/"+e+"/log-url";return c.doRequest({method:"GET",url:t})},this.getJobLog=function(e){return c.doAWSRequest({method:"GET",url:e})},this.createExperience=function(e,t,n,r){void 0===t&&(t={});var o=c.experienceFormData(e,t,n);r&&o.append("published","false");return c.doRequest({method:"POST",url:"/experience",data:o})},this.deleteExperience=function(e,t){void 0===t&&(t=!0);var n="/experience/"+e,r={erase_media:t};return c.doRequest({method:"DELETE",data:r,url:n})},this.triggerEvent=function(e,t,n){var r="/experience/"+e+"/trigger-event";if(t){var o=new FormData;return o.append("composition_id",t),n&&o.append("published","false"),c.doRequest({method:"POST",url:r,data:o})}return c.doRequest({method:"POST",url:r})},this.getExperience=function(e,t){void 0===t&&(t=!1);var n={method:"GET",url:"/experience/"+e};return t?new Promise((function(e,t){c.pollForExperience(n,e,t)})):c.doRequest(n)},this.experienceFormData=function(e,t,n){var o=r({},t),a=new FormData;for(var i in a.append("story_id",e),n&&a.append("composition_id",n),o)if(o[i]){var s=o[i];if(s&&"file"===s.type){var u=s.files;u.length>0?(o[i]="",a.append(i,u[0])):o[i]=""}else s&&s instanceof File&&(o[i]="",a.append(i,s,s.name));a.append("inventory["+i+"]",o[i])}return a},this.getAccssCredentials=function(){return c.doRequest({method:"GET",url:"/api-key"})},this.createAccessCredentials=function(e){var t={name:e};return c.doRequest({method:"POST",data:t,url:"/api-key"})},this.deleteAccessCrednetials=function(e){var t={access_key_id:e};return c.doRequest({method:"DELETE",data:t,url:"/api-key"})},this.invokeBatchRenderJob=function(e){return c.doRequest({method:"POST",url:"/job/render-batch",data:{batch_id:e}})},this.cancelBatchRenderJob=function(e){return c.doRequest({method:"POST",url:"/batch/"+e+"/cancel"})},this.getUsers=function(e,t,n){return c.doRequest({url:"/account/"+e+"/users?page="+t+"&items_per_page="+n,method:"GET"})},this.addUser=function(e,t,n){return c.doRequest({url:"/account/"+e+"/grant",method:"POST",data:{email:t,role_id:n}})},this.resendInvite=function(e,t){return c.doRequest({url:"/account/"+e+"/resend",method:"POST",data:{email:t}})},this.revokeInvite=function(e,t){return c.doRequest({url:"/account/"+e+"/revoke",method:"POST",data:{email:t}})},this.updateInviteRole=function(e,t,n){return c.doRequest({url:"/account/"+e+"/grant",method:"PATCH",data:{email:t,role_id:n}})},this.updateRole=function(e,t,n){return c.doRequest({url:"/account/"+e+"/user",method:"PATCH",data:{user_id:t,role_id:n}})},this.deleteUser=function(e,t){return c.doRequest({url:"/account/"+e+"/user",method:"DELETE",data:{user_id:t}})},this.getPlayerMetrics=function(e,t,n,r){void 0===r&&(r="player");var o={method:"GET",url:"/metrics/player/"+e,params:{start:t,end:n},cancelToken:c.cancelPrevious(r)};return c.doRequest(o,r)},this.getSystemMetrics=function(e,t,n,r,o){void 0===o&&(o="system");var a={method:"GET",url:"/metrics/system/"+e,params:{start:t,end:n,step:r},cancelToken:c.cancelPrevious(o)};return c.doRequest(a,o)},this.getOrganizations=function(e,t){return c.doRequest({url:"/account",method:"GET",params:{page:e,items_per_page:t}})},this.addOrganization=function(e,t){return c.doRequest({url:"/account",method:"POST",data:{name:e,initial_story:t}})},this.updateOrgName=function(e,t){return c.doRequest({url:"/account/"+e,method:"PATCH",data:{name:t}})},this.deleteOrg=function(e){},this.changeOrgPlan=function(e,t){return c.doRequest({url:"/account/"+e,method:"PATCH",data:{tier:t}})},this.getAccountInfo=function(e){return c.doRequest({url:"/account/"+e,method:"GET"})},this.cancelOrgPlan=function(e){return c.doRequest({url:"/account/"+e,method:"PATCH",data:{cancel:!0}})},this.getNextBillingPeriod=function(e){return c.doRequest({url:"/account/"+e+"/next-payment",method:"GET"})},this.getRedirectToBillingPortal=function(e){return c.doRequest({url:"/account/"+e+"/billing-portal",method:"GET"})},this.getRedirectToRenew=function(e,t){return c.doRequest({url:"/account/"+e+"/renew?tier="+t,method:"GET"})},this.getAPIUsageOverview=function(e,t){var n=e&&t?"?start="+e+"&end="+t:"";return c.doRequest({url:"/usage"+n,method:"GET"})},this.getUsageGraph=function(e,t,n){var r=t&&n?"?start="+t+"&end="+n:"";return c.doRequest({url:"/usage/daily/"+e+r,method:"GET"})},this.getBillingPeriods=function(){return c.doRequest({url:"/usage/billing-periods",method:"GET"})},this.http=n?o.default.create({baseURL:e,headers:{Authorization:"Bearer "+t,"X-Imposium-API-Version":"2.0.0","X-Imposium-Account-Id":n||""}}):o.default.create({baseURL:e,headers:{"X-Imposium-Access-Key":""+t,"X-Imposium-API-Version":"2.0.0"}}),this.awsHttp=o.default.create()}return e.prototype.cancelExperiencePolling=function(){var e=this;return new Promise((function(t){clearTimeout(e.experiencePollTimer),t()}))},e.prototype.cancelJobPolling=function(){var e=this;return new Promise((function(t){clearTimeout(e.jobPollTimer),t()}))},e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JOB_TYPES=void 0,t.JOB_TYPES={RUN_CUT:"make-cut",PROCESS_BASE_VIDEO:"process-base-video",RE_RUN_CUTS:"recut-scene"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=function(e){var t=this;this.doRequest=function(e){return new Promise((function(n,r){t.http(e).then((function(e){n(e.data)})).catch((function(e){r(e)}))}))},this.updateModerationStatus=function(e,n,r){return t.doRequest({method:"POST",url:"/",data:{task:"update-experience-status",experience_id:e,status:n,reason:r}})},this.addOrReplaceNote=function(e,n){return t.doRequest({method:"POST",url:"/",data:{task:"update-experience-notes",experience_id:e,notes:n}})},this.http=r.default.create({baseURL:e+"/1.1"})};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(528),o=function(){function e(){}return e.setItem=function(e,t){return new Promise((function(n,o){r.setItem(e,t).then((function(){return n(null)})).catch((function(e){console.error("Failed to store key value pair:",e),o(e)}))}))},e.getItem=function(e){return new Promise((function(t,n){r.getItem(e).then((function(e){t(e)})).catch((function(e){console.error("Failed to look up value for key:",e),n(e)}))}))},e}();t.default=o},function(e,t){e.exports=h},function(e,t,n){"use strict";n.r(t),n.d(t,"AlphaPicker",(function(){return qn})),n.d(t,"BlockPicker",(function(){return lo})),n.d(t,"CirclePicker",(function(){return Co})),n.d(t,"default",(function(){return Uo})),n.d(t,"ChromePicker",(function(){return Uo})),n.d(t,"CompactPicker",(function(){return qo})),n.d(t,"GithubPicker",(function(){return Ko})),n.d(t,"HuePicker",(function(){return Qo})),n.d(t,"MaterialPicker",(function(){return ea})),n.d(t,"PhotoshopPicker",(function(){return ua})),n.d(t,"SketchPicker",(function(){return ma})),n.d(t,"SliderPicker",(function(){return ba})),n.d(t,"SwatchesPicker",(function(){return xa})),n.d(t,"TwitterPicker",(function(){return Sa})),n.d(t,"GooglePicker",(function(){return Pa})),n.d(t,"CustomPicker",(function(){return Pn}));var r=n(0),o=n.n(r),a=n(3),i=n.n(a),s=function(e,t,n,r,o){var a=o.clientWidth,i=o.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(o.getBoundingClientRect().left+window.pageXOffset),c=u-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>i?1:Math.round(100*c/i)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var p=void 0;if(r!==(p=l<0?0:l>a?1:Math.round(100*l/a)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null},u={},l=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(u[o])return u[o];var a=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return u[o]=a,a},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(e){var t=e.white,n=e.grey,a=e.size,s=e.renderers,u=e.borderRadius,d=e.boxShadow,p=e.children,f=i()({default:{grid:{borderRadius:u,boxShadow:d,absolute:"0px 0px 0px 0px",background:"url("+l(t,n,a,s.canvas)+") center left"}}});return Object(r.isValidElement)(p)?o.a.cloneElement(p,c({},p.props,{style:c({},p.props.style,f.grid)})):o.a.createElement("div",{style:f.grid})};d.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var p=d,f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=function(e){function t(){var e,n,r;m(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=_(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=s(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},_(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=i()({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:f({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return o.a.createElement("div",{style:n.alpha},o.a.createElement("div",{style:n.checkboard},o.a.createElement(p,{renderers:this.props.renderers})),o.a.createElement("div",{style:n.gradient}),o.a.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.a.createElement("div",{style:n.pointer},this.props.pointer?o.a.createElement(this.props.pointer,this.props):o.a.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var v=[38,40],b=1,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,v.indexOf(t)>-1)){var o=n.getArrowOffset(),a=38===e.keyCode?r+o:r-o;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+b++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),g(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=i()({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.a.createElement("div",{style:t.wrap},o.a.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.a.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component),M=function(e,t,n,r){var o=r.clientWidth,a=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=i-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(l<0)c=359;else if(l>a)c=0;else{c=360*(-100*l/a+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(u<0)d=0;else if(u>o)d=359;else{d=360*(100*u/o)/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},L=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var x=function(e){function t(){var e,n,r;T(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=k(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=M(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},k(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),L(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=i()({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.a.createElement("div",{style:r.hue},o.a.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.a.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),o.a.createElement("div",{style:r.pointer},this.props.pointer?o.a.createElement(this.props.pointer,this.props):o.a.createElement("div",{style:r.slider}))))}}]),t}(r.PureComponent||r.Component),E=n(2),S=n.n(E);var D=function(){this.__data__=[],this.size=0};var O=function(e,t){return e===t||e!=e&&t!=t};var Y=function(e,t){for(var n=e.length;n--;)if(O(e[n][0],t))return n;return-1},C=Array.prototype.splice;var A=function(e){var t=this.__data__,n=Y(t,e);return!(n<0)&&(n==t.length-1?t.pop():C.call(t,n,1),--this.size,!0)};var j=function(e){var t=this.__data__,n=Y(t,e);return n<0?void 0:t[n][1]};var P=function(e){return Y(this.__data__,e)>-1};var H=function(e,t){var n=this.__data__,r=Y(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function I(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}I.prototype.clear=D,I.prototype.delete=A,I.prototype.get=j,I.prototype.has=P,I.prototype.set=H;var N=I;var R=function(){this.__data__=new N,this.size=0};var F=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var z=function(e){return this.__data__.get(e)};var U=function(e){return this.__data__.has(e)},W=n(6),B=W.a.Symbol,V=Object.prototype,q=V.hasOwnProperty,G=V.toString,J=B?B.toStringTag:void 0;var K=function(e){var t=q.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch(e){}var o=G.call(e);return r&&(t?e[J]=n:delete e[J]),o},$=Object.prototype.toString;var X=function(e){return $.call(e)},Z=B?B.toStringTag:void 0;var Q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?K(e):X(e)};var ee=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var te,ne=function(e){if(!ee(e))return!1;var t=Q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},re=W.a["__core-js_shared__"],oe=(te=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"";var ae=function(e){return!!oe&&oe in e},ie=Function.prototype.toString;var se=function(e){if(null!=e){try{return ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ue=/^\[object .+?Constructor\]$/,le=Function.prototype,ce=Object.prototype,de=le.toString,pe=ce.hasOwnProperty,fe=RegExp("^"+de.call(pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var he=function(e){return!(!ee(e)||ae(e))&&(ne(e)?fe:ue).test(se(e))};var me=function(e,t){return null==e?void 0:e[t]};var _e=function(e,t){var n=me(e,t);return he(n)?n:void 0},ye=_e(W.a,"Map"),ge=_e(Object,"create");var ve=function(){this.__data__=ge?ge(null):{},this.size=0};var be=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},we=Object.prototype.hasOwnProperty;var Me=function(e){var t=this.__data__;if(ge){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return we.call(t,e)?t[e]:void 0},Le=Object.prototype.hasOwnProperty;var Te=function(e){var t=this.__data__;return ge?void 0!==t[e]:Le.call(t,e)};var ke=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ge&&void 0===t?"__lodash_hash_undefined__":t,this};function xe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xe.prototype.clear=ve,xe.prototype.delete=be,xe.prototype.get=Me,xe.prototype.has=Te,xe.prototype.set=ke;var Ee=xe;var Se=function(){this.size=0,this.__data__={hash:new Ee,map:new(ye||N),string:new Ee}};var De=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Oe=function(e,t){var n=e.__data__;return De(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ye=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t};var Ce=function(e){return Oe(this,e).get(e)};var Ae=function(e){return Oe(this,e).has(e)};var je=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pe.prototype.clear=Se,Pe.prototype.delete=Ye,Pe.prototype.get=Ce,Pe.prototype.has=Ae,Pe.prototype.set=je;var He=Pe;var Ie=function(e,t){var n=this.__data__;if(n instanceof N){var r=n.__data__;if(!ye||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new He(r)}return n.set(e,t),this.size=n.size,this};function Ne(e){var t=this.__data__=new N(e);this.size=t.size}Ne.prototype.clear=R,Ne.prototype.delete=F,Ne.prototype.get=z,Ne.prototype.has=U,Ne.prototype.set=Ie;var Re=Ne,Fe=function(){try{var e=_e(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var ze=function(e,t,n){"__proto__"==t&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Ue=function(e,t,n){(void 0!==n&&!O(e[t],n)||void 0===n&&!(t in e))&&ze(e,t,n)};var We=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))break}return t}}(),Be=n(273),Ve=W.a.Uint8Array;var qe=function(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t};var Ge=function(e,t){var n=t?qe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Je=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Ke=Object.create,$e=function(){function e(){}return function(t){if(!ee(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Xe=function(e,t){return function(n){return e(t(n))}},Ze=Xe(Object.getPrototypeOf,Object),Qe=Object.prototype;var et=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qe)};var tt=function(e){return"function"!=typeof e.constructor||et(e)?{}:$e(Ze(e))};var nt=function(e){return null!=e&&"object"==typeof e};var rt=function(e){return nt(e)&&"[object Arguments]"==Q(e)},ot=Object.prototype,at=ot.hasOwnProperty,it=ot.propertyIsEnumerable,st=rt(function(){return arguments}())?rt:function(e){return nt(e)&&at.call(e,"callee")&&!it.call(e,"callee")},ut=Array.isArray;var lt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ct=function(e){return null!=e&&lt(e.length)&&!ne(e)};var dt=function(e){return nt(e)&&ct(e)},pt=n(20),ft=Function.prototype,ht=Object.prototype,mt=ft.toString,_t=ht.hasOwnProperty,yt=mt.call(Object);var gt=function(e){if(!nt(e)||"[object Object]"!=Q(e))return!1;var t=Ze(e);if(null===t)return!0;var n=_t.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&mt.call(n)==yt},vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt["[object Arguments]"]=vt["[object Array]"]=vt["[object ArrayBuffer]"]=vt["[object Boolean]"]=vt["[object DataView]"]=vt["[object Date]"]=vt["[object Error]"]=vt["[object Function]"]=vt["[object Map]"]=vt["[object Number]"]=vt["[object Object]"]=vt["[object RegExp]"]=vt["[object Set]"]=vt["[object String]"]=vt["[object WeakMap]"]=!1;var bt=function(e){return nt(e)&&lt(e.length)&&!!vt[Q(e)]};var wt=function(e){return function(t){return e(t)}},Mt=n(88),Lt=Mt.a&&Mt.a.isTypedArray,Tt=Lt?wt(Lt):bt;var kt=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},xt=Object.prototype.hasOwnProperty;var Et=function(e,t,n){var r=e[t];xt.call(e,t)&&O(r,n)&&(void 0!==n||t in e)||ze(e,t,n)};var St=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?ze(n,s,u):Et(n,s,u)}return n};var Dt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Ot=/^(?:0|[1-9]\d*)$/;var Yt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ot.test(e))&&e>-1&&e%1==0&&e<t},Ct=Object.prototype.hasOwnProperty;var At=function(e,t){var n=ut(e),r=!n&&st(e),o=!n&&!r&&Object(pt.a)(e),a=!n&&!r&&!o&&Tt(e),i=n||r||o||a,s=i?Dt(e.length,String):[],u=s.length;for(var l in e)!t&&!Ct.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Yt(l,u))||s.push(l);return s};var jt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Pt=Object.prototype.hasOwnProperty;var Ht=function(e){if(!ee(e))return jt(e);var t=et(e),n=[];for(var r in e)("constructor"!=r||!t&&Pt.call(e,r))&&n.push(r);return n};var It=function(e){return ct(e)?At(e,!0):Ht(e)};var Nt=function(e){return St(e,It(e))};var Rt=function(e,t,n,r,o,a,i){var s=kt(e,n),u=kt(t,n),l=i.get(u);if(l)Ue(e,n,l);else{var c=a?a(s,u,n+"",e,t,i):void 0,d=void 0===c;if(d){var p=ut(u),f=!p&&Object(pt.a)(u),h=!p&&!f&&Tt(u);c=u,p||f||h?ut(s)?c=s:dt(s)?c=Je(s):f?(d=!1,c=Object(Be.a)(u,!0)):h?(d=!1,c=Ge(u,!0)):c=[]:gt(u)||st(u)?(c=s,st(s)?c=Nt(s):ee(s)&&!ne(s)||(c=tt(u))):d=!1}d&&(i.set(u,c),o(c,u,r,a,i),i.delete(u)),Ue(e,n,c)}};var Ft=function e(t,n,r,o,a){t!==n&&We(n,(function(i,s){if(a||(a=new Re),ee(i))Rt(t,n,s,r,e,o,a);else{var u=o?o(kt(t,s),i,s+"",t,n,a):void 0;void 0===u&&(u=i),Ue(t,s,u)}}),It)};var zt=function(e){return e};var Ut=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Wt=Math.max;var Bt=function(e,t,n){return t=Wt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Wt(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),Ut(e,this,s)}};var Vt=function(e){return function(){return e}},qt=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:Vt(t),writable:!0})}:zt,Gt=Date.now;var Jt=function(e){var t=0,n=0;return function(){var r=Gt(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(qt);var Kt=function(e,t){return Jt(Bt(e,t,zt),e+"")};var $t=function(e,t,n){if(!ee(n))return!1;var r=typeof t;return!!("number"==r?ct(n)&&Yt(t,n.length):"string"==r&&t in n)&&O(n[t],e)};var Xt=function(e){return Kt((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&$t(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}((function(e,t,n){Ft(e,t,n)})),Zt=function(e){var t=e.zDepth,n=e.radius,r=e.background,a=e.children,s=e.styles,u=void 0===s?{}:s,l=i()(Xt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},u),{"zDepth-1":1===t});return o.a.createElement("div",{style:l.wrap},o.a.createElement("div",{style:l.bg}),o.a.createElement("div",{style:l.content},a))};Zt.propTypes={background:S.a.string,zDepth:S.a.oneOf([0,1,2,3,4,5]),radius:S.a.number,styles:S.a.object},Zt.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var Qt=Zt,en=function(){return W.a.Date.now()},tn=/\s/;var nn=function(e){for(var t=e.length;t--&&tn.test(e.charAt(t)););return t},rn=/^\s+/;var on=function(e){return e?e.slice(0,nn(e)+1).replace(rn,""):e};var an=function(e){return"symbol"==typeof e||nt(e)&&"[object Symbol]"==Q(e)},sn=/^[-+]0x[0-9a-f]+$/i,un=/^0b[01]+$/i,ln=/^0o[0-7]+$/i,cn=parseInt;var dn=function(e){if("number"==typeof e)return e;if(an(e))return NaN;if(ee(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ee(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=on(e);var n=un.test(e);return n||ln.test(e)?cn(e.slice(2),n?2:8):sn.test(e)?NaN:+e},pn=Math.max,fn=Math.min;var hn=function(e,t,n){var r,o,a,i,s,u,l=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,a=o;return r=o=void 0,l=t,i=e.apply(a,n)}function h(e){return l=e,s=setTimeout(_,t),c?f(e):i}function m(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-l>=a}function _(){var e=en();if(m(e))return y(e);s=setTimeout(_,function(e){var n=t-(e-u);return d?fn(n,a-(e-l)):n}(e))}function y(e){return s=void 0,p&&r?f(e):(r=o=void 0,i)}function g(){var e=en(),n=m(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return h(u);if(d)return clearTimeout(s),s=setTimeout(_,t),f(u)}return void 0===s&&(s=setTimeout(_,t)),i}return t=dn(t)||0,ee(n)&&(c=!!n.leading,a=(d="maxWait"in n)?pn(dn(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=o=s=void 0},g.flush=function(){return void 0===s?i:y(en())},g};var mn=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return ee(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),hn(e,t,{leading:r,maxWait:t,trailing:o})},_n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var yn=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,a=r.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=i-(n.getBoundingClientRect().left+window.pageXOffset),l=s-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o&&(u=o),l<0?l=0:l>a&&(l=a);var c=u/o,d=1-l/a;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=mn((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),_n(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,a=t.black,s=t.pointer,u=t.circle,l=i()({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:a,pointer:s,circle:u}},{custom:!!this.props.style});return o.a.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.a.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),o.a.createElement("div",{style:l.white,className:"saturation-white"},o.a.createElement("div",{style:l.black,className:"saturation-black"}),o.a.createElement("div",{style:l.pointer},this.props.pointer?o.a.createElement(this.props.pointer,this.props):o.a.createElement("div",{style:l.circle}))))}}]),t}(r.PureComponent||r.Component);var gn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},vn=Xe(Object.keys,Object),bn=Object.prototype.hasOwnProperty;var wn=function(e){if(!et(e))return vn(e);var t=[];for(var n in Object(e))bn.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Mn=function(e){return ct(e)?At(e):wn(e)};var Ln=function(e,t){return function(n,r){if(null==n)return n;if(!ct(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}((function(e,t){return e&&We(e,t,Mn)}));var Tn=function(e){return"function"==typeof e?e:zt};var kn=function(e,t){return(ut(e)?gn:Ln)(e,Tn(t))},xn=n(36),En=n.n(xn),Sn=function(e){var t=0,n=0;return kn(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},Dn=function(e,t){var n=e.hex?En()(e.hex):En()(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===i&&0===a.a?"transparent":"#"+i,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}},On=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&En()(e).isValid()},Yn=function(e){if(!e)return"#fff";var t=Dn(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},Cn=function(e,t){var n=e.replace("°","");return En()(t+" ("+n+")")._ok},An=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Pn=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(Sn(e)){var r=Dn(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(Sn(e)){var r=Dn(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=An({},Dn(e.color,0)),t.debounce=hn((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),jn(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),o.a.createElement(e,An({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return An({},Dn(e.color,t.oldHue))}}]),n}(r.PureComponent||r.Component);return t.propTypes=An({},e.propTypes),t.defaultProps=An({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Fn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;Nn(this,r);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=n=Rn(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},Rn(n,t)}return Fn(r,n),In(r,[{key:"render",value:function(){return o.a.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},o.a.createElement(e,Hn({},this.props,this.state)))}}]),r}(o.a.Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,a=void 0===r?function(){}:r,s=e.onHover,u=e.title,l=void 0===u?t:u,c=e.children,d=e.focus,f=e.focusStyle,h=void 0===f?{}:f,m="transparent"===t,_=i()({default:{swatch:zn({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?h:{})}}),y={};return s&&(y.onMouseOver=function(e){return s(t,e)}),o.a.createElement("div",zn({style:_.swatch,onClick:function(e){return a(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},y),c,m&&o.a.createElement(p,{borderRadius:_.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),Wn=function(e){var t=e.direction,n=i()({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.a.createElement("div",{style:n.picker})},Bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vn=function(e){var t=e.rgb,n=e.hsl,r=e.width,a=e.height,s=e.onChange,u=e.direction,l=e.style,c=e.renderers,d=e.pointer,p=e.className,f=void 0===p?"":p,h=i()({default:{picker:{position:"relative",width:r,height:a},alpha:{radius:"2px",style:l}}});return o.a.createElement("div",{style:h.picker,className:"alpha-picker "+f},o.a.createElement(y,Bn({},h.alpha,{rgb:t,hsl:n,pointer:d,renderers:c,onChange:s,direction:u})))};Vn.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Wn};var qn=Pn(Vn);var Gn=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};var Jn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Kn=function(e){return this.__data__.has(e)};function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new He;++t<n;)this.add(e[t])}$n.prototype.add=$n.prototype.push=Jn,$n.prototype.has=Kn;var Xn=$n;var Zn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Qn=function(e,t){return e.has(t)};var er=function(e,t,n,r,o,a){var i=1&n,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var d=-1,p=!0,f=2&n?new Xn:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var _=i?r(m,h,d,t,e,a):r(h,m,d,e,t,a);if(void 0!==_){if(_)continue;p=!1;break}if(f){if(!Zn(t,(function(e,t){if(!Qn(f,t)&&(h===e||o(h,e,n,r,a)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p};var tr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var nr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},rr=B?B.prototype:void 0,or=rr?rr.valueOf:void 0;var ar=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return O(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=tr;case"[object Set]":var u=1&r;if(s||(s=nr),e.size!=t.size&&!u)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var c=er(s(e),s(t),r,o,a,i);return i.delete(e),c;case"[object Symbol]":if(or)return or.call(e)==or.call(t)}return!1};var ir=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var sr=function(e,t,n){var r=t(e);return ut(e)?r:ir(r,n(e))};var ur=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a};var lr=function(){return[]},cr=Object.prototype.propertyIsEnumerable,dr=Object.getOwnPropertySymbols,pr=dr?function(e){return null==e?[]:(e=Object(e),ur(dr(e),(function(t){return cr.call(e,t)})))}:lr;var fr=function(e){return sr(e,Mn,pr)},hr=Object.prototype.hasOwnProperty;var mr=function(e,t,n,r,o,a){var i=1&n,s=fr(e),u=s.length;if(u!=fr(t).length&&!i)return!1;for(var l=u;l--;){var c=s[l];if(!(i?c in t:hr.call(t,c)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var f=!0;a.set(e,t),a.set(t,e);for(var h=i;++l<u;){var m=e[c=s[l]],_=t[c];if(r)var y=i?r(_,m,c,t,e,a):r(m,_,c,e,t,a);if(!(void 0===y?m===_||o(m,_,n,r,a):y)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var g=e.constructor,v=t.constructor;g==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f},_r=_e(W.a,"DataView"),yr=_e(W.a,"Promise"),gr=_e(W.a,"Set"),vr=_e(W.a,"WeakMap"),br=se(_r),wr=se(ye),Mr=se(yr),Lr=se(gr),Tr=se(vr),kr=Q;(_r&&"[object DataView]"!=kr(new _r(new ArrayBuffer(1)))||ye&&"[object Map]"!=kr(new ye)||yr&&"[object Promise]"!=kr(yr.resolve())||gr&&"[object Set]"!=kr(new gr)||vr&&"[object WeakMap]"!=kr(new vr))&&(kr=function(e){var t=Q(e),n="[object Object]"==t?e.constructor:void 0,r=n?se(n):"";if(r)switch(r){case br:return"[object DataView]";case wr:return"[object Map]";case Mr:return"[object Promise]";case Lr:return"[object Set]";case Tr:return"[object WeakMap]"}return t});var xr=kr,Er=Object.prototype.hasOwnProperty;var Sr=function(e,t,n,r,o,a){var i=ut(e),s=ut(t),u=i?"[object Array]":xr(e),l=s?"[object Array]":xr(t),c="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),p=u==l;if(p&&Object(pt.a)(e)){if(!Object(pt.a)(t))return!1;i=!0,c=!1}if(p&&!c)return a||(a=new Re),i||Tt(e)?er(e,t,n,r,o,a):ar(e,t,u,n,r,o,a);if(!(1&n)){var f=c&&Er.call(e,"__wrapped__"),h=d&&Er.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,_=h?t.value():t;return a||(a=new Re),o(m,_,n,r,a)}}return!!p&&(a||(a=new Re),mr(e,t,n,r,o,a))};var Dr=function e(t,n,r,o,a){return t===n||(null==t||null==n||!nt(t)&&!nt(n)?t!=t&&n!=n:Sr(t,n,r,o,e,a))};var Or=function(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var u=(s=n[o])[0],l=e[u],c=s[1];if(i&&s[2]){if(void 0===l&&!(u in e))return!1}else{var d=new Re;if(r)var p=r(l,c,u,e,t,d);if(!(void 0===p?Dr(c,l,3,r,d):p))return!1}}return!0};var Yr=function(e){return e==e&&!ee(e)};var Cr=function(e){for(var t=Mn(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Yr(o)]}return t};var Ar=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var jr=function(e){var t=Cr(e);return 1==t.length&&t[0][2]?Ar(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}},Pr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hr=/^\w*$/;var Ir=function(e,t){if(ut(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!an(e))||(Hr.test(e)||!Pr.test(e)||null!=t&&e in Object(t))};function Nr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Nr.Cache||He),n}Nr.Cache=He;var Rr=Nr;var Fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zr=/\\(\\)?/g,Ur=function(e){var t=Rr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Fr,(function(e,n,r,o){t.push(r?o.replace(zr,"$1"):n||e)})),t})),Wr=B?B.prototype:void 0,Br=Wr?Wr.toString:void 0;var Vr=function e(t){if("string"==typeof t)return t;if(ut(t))return Gn(t,e)+"";if(an(t))return Br?Br.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var qr=function(e){return null==e?"":Vr(e)};var Gr=function(e,t){return ut(e)?e:Ir(e,t)?[e]:Ur(qr(e))};var Jr=function(e){if("string"==typeof e||an(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Kr=function(e,t){for(var n=0,r=(t=Gr(t,e)).length;null!=e&&n<r;)e=e[Jr(t[n++])];return n&&n==r?e:void 0};var $r=function(e,t,n){var r=null==e?void 0:Kr(e,t);return void 0===r?n:r};var Xr=function(e,t){return null!=e&&t in Object(e)};var Zr=function(e,t,n){for(var r=-1,o=(t=Gr(t,e)).length,a=!1;++r<o;){var i=Jr(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&lt(o)&&Yt(i,o)&&(ut(e)||st(e))};var Qr=function(e,t){return null!=e&&Zr(e,t,Xr)};var eo=function(e,t){return Ir(e)&&Yr(t)?Ar(Jr(e),t):function(n){var r=$r(n,e);return void 0===r&&r===t?Qr(n,e):Dr(t,r,3)}};var to=function(e){return function(t){return null==t?void 0:t[e]}};var no=function(e){return function(t){return Kr(t,e)}};var ro=function(e){return Ir(e)?to(Jr(e)):no(e)};var oo=function(e){return"function"==typeof e?e:null==e?zt:"object"==typeof e?ut(e)?eo(e[0],e[1]):jr(e):ro(e)};var ao=function(e,t){var n=-1,r=ct(e)?Array(e.length):[];return Ln(e,(function(e,o,a){r[++n]=t(e,o,a)})),r};var io=function(e,t){return(ut(e)?Gn:ao)(e,oo(t,3))},so=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,a=i()({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return o.a.createElement("div",{style:a.swatches},io(t,(function(e){return o.a.createElement(Un,{key:e,color:e,style:a.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),o.a.createElement("div",{style:a.clear}))},uo=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,a=e.colors,s=e.width,u=e.triangle,l=e.styles,c=void 0===l?{}:l,d=e.className,f=void 0===d?"":d,h="transparent"===r,m=function(e,n){On(e)&&t({hex:e,source:"hex"},n)},_=i()(Xt({default:{card:{width:s,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Yn(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},c),{"hide-triangle":"hide"===u});return o.a.createElement("div",{style:_.card,className:"block-picker "+f},o.a.createElement("div",{style:_.triangle}),o.a.createElement("div",{style:_.head},h&&o.a.createElement(p,{borderRadius:"6px 6px 0 0"}),o.a.createElement("div",{style:_.label},r)),o.a.createElement("div",{style:_.body},o.a.createElement(so,{colors:a,onClick:m,onSwatchHover:n}),o.a.createElement(w,{style:{input:_.input},value:r,onChange:m})))};uo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),colors:S.a.arrayOf(S.a.string),triangle:S.a.oneOf(["top","hide"]),styles:S.a.object},uo.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};var lo=Pn(uo),co={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},po={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},fo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},ho={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},mo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},_o={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},yo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},go={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},vo={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},bo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},wo={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Mo={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Lo={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},To={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},ko={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},xo={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Eo={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},So={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Do=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,a=e.hover,s=e.active,u=e.circleSize,l=e.circleSpacing,c=i()({default:{swatch:{width:u,height:u,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(u/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:s});return o.a.createElement("div",{style:c.swatch},o.a.createElement(Un,{style:c.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};Do.defaultProps={circleSize:28,circleSpacing:14};var Oo=Object(a.handleHover)(Do),Yo=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,a=e.colors,s=e.hex,u=e.circleSize,l=e.styles,c=void 0===l?{}:l,d=e.circleSpacing,p=e.className,f=void 0===p?"":p,h=i()(Xt({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}},c)),m=function(e,t){return n({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:h.card,className:"circle-picker "+f},io(a,(function(e){return o.a.createElement(Oo,{key:e,color:e,onClick:m,onSwatchHover:r,active:s===e.toLowerCase(),circleSize:u,circleSpacing:d})})))};Yo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),circleSize:S.a.number,circleSpacing:S.a.number,styles:S.a.object},Yo.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[co[500],po[500],fo[500],ho[500],mo[500],_o[500],yo[500],go[500],vo[500],bo[500],wo[500],Mo[500],Lo[500],To[500],ko[500],xo[500],Eo[500],So[500]],styles:{}};var Co=Pn(Yo);var Ao=function(e){return void 0===e},jo=n(274),Po=n.n(jo),Ho=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Io=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?On(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Ao(e.s)?n.props.hsl.s:e.s),l:Number(Ao(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ho(t,[{key:"render",value:function(){var e=this,t=i()({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.a.createElement("div",{style:t.alpha},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.a.createElement("div",{style:t.fields,className:"flexbox-fix"},o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.a.createElement("div",{style:t.field},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.a.createElement("div",{style:t.alpha},o.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.a.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.a.createElement("div",{style:t.toggle},o.a.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.a.createElement(Po.a,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.a.Component);Io.defaultProps={view:"hex"};var No=Io,Ro=function(){var e=i()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.a.createElement("div",{style:e.picker})},Fo=function(){var e=i()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.a.createElement("div",{style:e.picker})},zo=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,a=e.rgb,s=e.hsl,u=e.hsv,l=e.hex,c=e.renderers,d=e.styles,f=void 0===d?{}:d,h=e.className,m=void 0===h?"":h,_=e.defaultView,g=i()(Xt({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:r});return o.a.createElement("div",{style:g.picker,className:"chrome-picker "+m},o.a.createElement("div",{style:g.saturation},o.a.createElement(yn,{style:g.Saturation,hsl:s,hsv:u,pointer:Fo,onChange:n})),o.a.createElement("div",{style:g.body},o.a.createElement("div",{style:g.controls,className:"flexbox-fix"},o.a.createElement("div",{style:g.color},o.a.createElement("div",{style:g.swatch},o.a.createElement("div",{style:g.active}),o.a.createElement(p,{renderers:c}))),o.a.createElement("div",{style:g.toggles},o.a.createElement("div",{style:g.hue},o.a.createElement(x,{style:g.Hue,hsl:s,pointer:Ro,onChange:n})),o.a.createElement("div",{style:g.alpha},o.a.createElement(y,{style:g.Alpha,rgb:a,hsl:s,pointer:Ro,renderers:c,onChange:n})))),o.a.createElement(No,{rgb:a,hsl:s,hex:l,view:_,onChange:n,disableAlpha:r})))};zo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),disableAlpha:S.a.bool,styles:S.a.object,defaultView:S.a.oneOf(["hex","rgb","hsl"])},zo.defaultProps={width:225,disableAlpha:!1,styles:{}};var Uo=Pn(zo),Wo=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.active,u=i()({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Yn(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.a.createElement(Un,{style:u.color,color:t,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},o.a.createElement("div",{style:u.dot}))},Bo=function(e){var t=e.hex,n=e.rgb,r=e.onChange,a=i()({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return o.a.createElement("div",{style:a.fields,className:"flexbox-fix"},o.a.createElement("div",{style:a.active}),o.a.createElement(w,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:s}),o.a.createElement(w,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),o.a.createElement(w,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),o.a.createElement(w,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}))},Vo=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,a=e.hex,s=e.rgb,u=e.styles,l=void 0===u?{}:u,c=e.className,d=void 0===c?"":c,p=i()(Xt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),f=function(e,n){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return o.a.createElement(Qt,{style:p.Compact,styles:l},o.a.createElement("div",{style:p.compact,className:"compact-picker "+d},o.a.createElement("div",null,io(r,(function(e){return o.a.createElement(Wo,{key:e,color:e,active:e.toLowerCase()===a,onClick:f,onSwatchHover:n})})),o.a.createElement("div",{style:p.clear})),o.a.createElement(Bo,{hex:a,rgb:s,onChange:f})))};Vo.propTypes={colors:S.a.arrayOf(S.a.string),styles:S.a.object},Vo.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};var qo=Pn(Vo),Go=Object(a.handleHover)((function(e){var t=e.hover,n=e.color,r=e.onClick,a=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=i()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return o.a.createElement("div",{style:u.swatch},o.a.createElement(Un,{color:n,onClick:r,onHover:a,focusStyle:s}))})),Jo=function(e){var t=e.width,n=e.colors,r=e.onChange,a=e.onSwatchHover,s=e.triangle,u=e.styles,l=void 0===u?{}:u,c=e.className,d=void 0===c?"":c,p=i()(Xt({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),f=function(e,t){return r({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:p.card,className:"github-picker "+d},o.a.createElement("div",{style:p.triangleShadow}),o.a.createElement("div",{style:p.triangle}),io(n,(function(e){return o.a.createElement(Go,{color:e,key:e,onClick:f,onSwatchHover:a})})))};Jo.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),colors:S.a.arrayOf(S.a.string),triangle:S.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:S.a.object},Jo.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};var Ko=Pn(Jo),$o=function(e){var t=e.direction,n=i()({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.a.createElement("div",{style:n.picker})},Xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo=function(e){var t=e.width,n=e.height,r=e.onChange,a=e.hsl,s=e.direction,u=e.pointer,l=e.styles,c=void 0===l?{}:l,d=e.className,p=void 0===d?"":d,f=i()(Xt({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},c));return o.a.createElement("div",{style:f.picker,className:"hue-picker "+p},o.a.createElement(x,Xo({},f.hue,{hsl:a,pointer:u,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:s})))};Zo.propTypes={styles:S.a.object},Zo.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:$o,styles:{}};var Qo=Pn(Zo),ea=Pn((function(e){var t=e.onChange,n=e.hex,r=e.rgb,a=e.styles,s=void 0===a?{}:a,u=e.className,l=void 0===u?"":u,c=i()(Xt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},s)),d=function(e,n){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return o.a.createElement(Qt,{styles:s},o.a.createElement("div",{style:c.material,className:"material-picker "+l},o.a.createElement(w,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:d}),o.a.createElement("div",{style:c.split,className:"flexbox-fix"},o.a.createElement("div",{style:c.third},o.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:r.r,onChange:d})),o.a.createElement("div",{style:c.third},o.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:r.g,onChange:d})),o.a.createElement("div",{style:c.third},o.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:r.b,onChange:d})))))})),ta=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,a=e.hex,s=i()({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),u=function(e,o){e["#"]?On(e["#"])&&t({hex:e["#"],source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},o):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},o)};return o.a.createElement("div",{style:s.fields},o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"h",value:Math.round(r.h),onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:u}),o.a.createElement("div",{style:s.divider}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,onChange:u}),o.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:u}),o.a.createElement("div",{style:s.divider}),o.a.createElement(w,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"#",value:a.replace("#",""),onChange:u}),o.a.createElement("div",{style:s.fieldSymbols},o.a.createElement("div",{style:s.symbol},"°"),o.a.createElement("div",{style:s.symbol},"%"),o.a.createElement("div",{style:s.symbol},"%")))},na=function(e){var t=e.hsl,n=i()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return o.a.createElement("div",{style:n.picker})},ra=function(){var e=i()({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return o.a.createElement("div",{style:e.pointer},o.a.createElement("div",{style:e.left},o.a.createElement("div",{style:e.leftInside})),o.a.createElement("div",{style:e.right},o.a.createElement("div",{style:e.rightInside})))},oa=function(e){var t=e.onClick,n=e.label,r=e.children,a=e.active,s=i()({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return o.a.createElement("div",{style:s.button,onClick:t},n||r)},aa=function(e){var t=e.rgb,n=e.currentColor,r=i()({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return o.a.createElement("div",null,o.a.createElement("div",{style:r.label},"new"),o.a.createElement("div",{style:r.swatches},o.a.createElement("div",{style:r.new}),o.a.createElement("div",{style:r.current})),o.a.createElement("div",{style:r.label},"current"))},ia=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var sa=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ia(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,a=void 0===r?"":r,s=i()(Xt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return o.a.createElement("div",{style:s.picker,className:"photoshop-picker "+a},o.a.createElement("div",{style:s.head},this.props.header),o.a.createElement("div",{style:s.body,className:"flexbox-fix"},o.a.createElement("div",{style:s.saturation},o.a.createElement(yn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:na,onChange:this.props.onChange})),o.a.createElement("div",{style:s.hue},o.a.createElement(x,{direction:"vertical",hsl:this.props.hsl,pointer:ra,onChange:this.props.onChange})),o.a.createElement("div",{style:s.controls},o.a.createElement("div",{style:s.top,className:"flexbox-fix"},o.a.createElement("div",{style:s.previews},o.a.createElement(aa,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.a.createElement("div",{style:s.actions},o.a.createElement(oa,{label:"OK",onClick:this.props.onAccept,active:!0}),o.a.createElement(oa,{label:"Cancel",onClick:this.props.onCancel}),o.a.createElement(ta,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(o.a.Component);sa.propTypes={header:S.a.string,styles:S.a.object},sa.defaultProps={header:"Color Picker",styles:{}};var ua=Pn(sa),la=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,a=e.hex,s=e.disableAlpha,u=i()({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:s}),l=function(e,o){e.hex?On(e.hex)&&t({hex:e.hex,source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},o):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},o))};return o.a.createElement("div",{style:u.fields,className:"flexbox-fix"},o.a.createElement("div",{style:u.double},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"hex",value:a.replace("#",""),onChange:l})),o.a.createElement("div",{style:u.single},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),o.a.createElement("div",{style:u.single},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),o.a.createElement("div",{style:u.single},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),o.a.createElement("div",{style:u.alpha},o.a.createElement(w,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))},ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},da=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=i()({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),u=function(e,t){r({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:s.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.a.createElement("div",{key:n,style:s.swatchWrap},o.a.createElement(Un,ca({},t,{style:s.swatch,onClick:u,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};da.propTypes={colors:S.a.arrayOf(S.a.oneOfType([S.a.string,S.a.shape({color:S.a.string,title:S.a.string})])).isRequired};var pa=da,fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ha=function(e){var t=e.width,n=e.rgb,r=e.hex,a=e.hsv,s=e.hsl,u=e.onChange,l=e.onSwatchHover,c=e.disableAlpha,d=e.presetColors,f=e.renderers,h=e.styles,m=void 0===h?{}:h,_=e.className,g=void 0===_?"":_,v=i()(Xt({default:fa({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},m),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},m),{disableAlpha:c});return o.a.createElement("div",{style:v.picker,className:"sketch-picker "+g},o.a.createElement("div",{style:v.saturation},o.a.createElement(yn,{style:v.Saturation,hsl:s,hsv:a,onChange:u})),o.a.createElement("div",{style:v.controls,className:"flexbox-fix"},o.a.createElement("div",{style:v.sliders},o.a.createElement("div",{style:v.hue},o.a.createElement(x,{style:v.Hue,hsl:s,onChange:u})),o.a.createElement("div",{style:v.alpha},o.a.createElement(y,{style:v.Alpha,rgb:n,hsl:s,renderers:f,onChange:u}))),o.a.createElement("div",{style:v.color},o.a.createElement(p,null),o.a.createElement("div",{style:v.activeColor}))),o.a.createElement(la,{rgb:n,hsl:s,hex:r,onChange:u,disableAlpha:c}),o.a.createElement(pa,{colors:d,onClick:u,onSwatchHover:l}))};ha.propTypes={disableAlpha:S.a.bool,width:S.a.oneOfType([S.a.string,S.a.number]),styles:S.a.object},ha.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var ma=Pn(ha),_a=function(e){var t=e.hsl,n=e.offset,r=e.onClick,a=void 0===r?function(){}:r,s=e.active,u=e.first,l=e.last,c=i()({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:u,last:l});return o.a.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})},ya=function(e){var t=e.onClick,n=e.hsl,r=i()({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return o.a.createElement("div",{style:r.swatches},o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<.1&&Math.abs(n.s-.5)<.1,onClick:t,first:!0})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),o.a.createElement("div",{style:r.swatch},o.a.createElement(_a,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<.1&&Math.abs(n.s-.5)<.1,onClick:t,last:!0})),o.a.createElement("div",{style:r.clear}))},ga=function(){var e=i()({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.a.createElement("div",{style:e.picker})},va=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,a=e.styles,s=void 0===a?{}:a,u=e.className,l=void 0===u?"":u,c=i()(Xt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},s));return o.a.createElement("div",{style:c.wrap||{},className:"slider-picker "+l},o.a.createElement("div",{style:c.hue},o.a.createElement(x,{style:c.Hue,hsl:t,pointer:r,onChange:n})),o.a.createElement("div",{style:c.swatches},o.a.createElement(ya,{hsl:t,onClick:n})))};va.propTypes={styles:S.a.object},va.defaultProps={pointer:ga,styles:{}};var ba=Pn(va),wa=n(275),Ma=n.n(wa),La=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.first,u=e.last,l=e.active,c=i()({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:Yn(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:u,active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.a.createElement(Un,{color:t,style:c.color,onClick:r,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},o.a.createElement("div",{style:c.check},o.a.createElement(Ma.a,null)))},Ta=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,a=e.active,s=i()({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return o.a.createElement("div",{style:s.group},io(r,(function(e,i){return o.a.createElement(La,{key:e,color:e,active:e.toLowerCase()===a,first:0===i,last:i===r.length-1,onClick:t,onSwatchHover:n})})))},ka=function(e){var t=e.width,n=e.height,r=e.onChange,a=e.onSwatchHover,s=e.colors,u=e.hex,l=e.styles,c=void 0===l?{}:l,d=e.className,p=void 0===d?"":d,f=i()(Xt({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),h=function(e,t){return r({hex:e,source:"hex"},t)};return o.a.createElement("div",{style:f.picker,className:"swatches-picker "+p},o.a.createElement(Qt,null,o.a.createElement("div",{style:f.overflow},o.a.createElement("div",{style:f.body},io(s,(function(e){return o.a.createElement(Ta,{key:e.toString(),group:e,active:u,onClick:h,onSwatchHover:a})})),o.a.createElement("div",{style:f.clear})))))};ka.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),height:S.a.oneOfType([S.a.string,S.a.number]),colors:S.a.arrayOf(S.a.arrayOf(S.a.string)),styles:S.a.object},ka.defaultProps={width:320,height:240,colors:[[co[900],co[700],co[500],co[300],co[100]],[po[900],po[700],po[500],po[300],po[100]],[fo[900],fo[700],fo[500],fo[300],fo[100]],[ho[900],ho[700],ho[500],ho[300],ho[100]],[mo[900],mo[700],mo[500],mo[300],mo[100]],[_o[900],_o[700],_o[500],_o[300],_o[100]],[yo[900],yo[700],yo[500],yo[300],yo[100]],[go[900],go[700],go[500],go[300],go[100]],[vo[900],vo[700],vo[500],vo[300],vo[100]],["#194D33",bo[700],bo[500],bo[300],bo[100]],[wo[900],wo[700],wo[500],wo[300],wo[100]],[Mo[900],Mo[700],Mo[500],Mo[300],Mo[100]],[Lo[900],Lo[700],Lo[500],Lo[300],Lo[100]],[To[900],To[700],To[500],To[300],To[100]],[ko[900],ko[700],ko[500],ko[300],ko[100]],[xo[900],xo[700],xo[500],xo[300],xo[100]],[Eo[900],Eo[700],Eo[500],Eo[300],Eo[100]],[So[900],So[700],So[500],So[300],So[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};var xa=Pn(ka),Ea=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,a=e.colors,s=e.width,u=e.triangle,l=e.styles,c=void 0===l?{}:l,d=e.className,p=void 0===d?"":d,f=i()(Xt({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},c),{"hide-triangle":"hide"===u,"top-left-triangle":"top-left"===u,"top-right-triangle":"top-right"===u}),h=function(e,n){On(e)&&t({hex:e,source:"hex"},n)};return o.a.createElement("div",{style:f.card,className:"twitter-picker "+p},o.a.createElement("div",{style:f.triangleShadow}),o.a.createElement("div",{style:f.triangle}),o.a.createElement("div",{style:f.body},io(a,(function(e,t){return o.a.createElement(Un,{key:t,color:e,hex:e,style:f.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),o.a.createElement("div",{style:f.hash},"#"),o.a.createElement(w,{label:null,style:{input:f.input},value:r.replace("#",""),onChange:h}),o.a.createElement("div",{style:f.clear})))};Ea.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),triangle:S.a.oneOf(["hide","top-left","top-right"]),colors:S.a.arrayOf(S.a.string),styles:S.a.object},Ea.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};var Sa=Pn(Ea),Da=function(e){var t=i()({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return o.a.createElement("div",{style:t.picker})};Da.propTypes={hsl:S.a.shape({h:S.a.number,s:S.a.number,l:S.a.number,a:S.a.number})},Da.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Oa=Da,Ya=function(e){var t=i()({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return o.a.createElement("div",{style:t.picker})};Ya.propTypes={hsl:S.a.shape({h:S.a.number,s:S.a.number,l:S.a.number,a:S.a.number})},Ya.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ca=Ya,Aa=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,a=e.hex,s=e.hsv,u=function(e,n){if(e.hex)On(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");Cn(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var o=e.hsv.split(",");Cn(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},n))}else if(e.hsl){var a=e.hsl.split(",");Cn(e.hsl,"hsl")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==p[1]?p[1]=.01:1==p[2]&&(p[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsl"},n))}},l=i()({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=n.r+", "+n.g+", "+n.b,d=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",p=Math.round(s.h)+"°, "+Math.round(100*s.s)+"%, "+Math.round(100*s.v)+"%";return o.a.createElement("div",{style:l.wrap,className:"flexbox-fix"},o.a.createElement("div",{style:l.fields},o.a.createElement("div",{style:l.double},o.a.createElement(w,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:u})),o.a.createElement("div",{style:l.column},o.a.createElement("div",{style:l.single},o.a.createElement(w,{style:{input:l.input2,label:l.label2},label:"rgb",value:c,onChange:u})),o.a.createElement("div",{style:l.single},o.a.createElement(w,{style:{input:l.input2,label:l.label2},label:"hsv",value:p,onChange:u})),o.a.createElement("div",{style:l.single},o.a.createElement(w,{style:{input:l.input2,label:l.label2},label:"hsl",value:d,onChange:u})))))},ja=function(e){var t=e.width,n=e.onChange,r=e.rgb,a=e.hsl,s=e.hsv,u=e.hex,l=e.header,c=e.styles,d=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,h=i()(Xt({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},d));return o.a.createElement("div",{style:h.picker,className:"google-picker "+f},o.a.createElement("div",{style:h.head},l),o.a.createElement("div",{style:h.swatch}),o.a.createElement("div",{style:h.saturation},o.a.createElement(yn,{hsl:a,hsv:s,pointer:Oa,onChange:n})),o.a.createElement("div",{style:h.body},o.a.createElement("div",{style:h.controls,className:"flexbox-fix"},o.a.createElement("div",{style:h.hue},o.a.createElement(x,{style:h.Hue,hsl:a,radius:"4px",pointer:Ca,onChange:n}))),o.a.createElement(Aa,{rgb:r,hsl:a,hex:u,hsv:s,onChange:n})))};ja.propTypes={width:S.a.oneOfType([S.a.string,S.a.number]),styles:S.a.object,header:S.a.string},ja.defaultProps={width:652,styles:{},header:"Color picker"};var Pa=Pn(ja)},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,"CacheProvider",(function(){return S})),n.d(t,"ThemeContext",(function(){return E})),n.d(t,"withEmotionCache",(function(){return D})),n.d(t,"css",(function(){return j})),n.d(t,"ClassNames",(function(){return z})),n.d(t,"Global",(function(){return H})),n.d(t,"createElement",(function(){return P})),n.d(t,"jsx",(function(){return P})),n.d(t,"keyframes",(function(){return N}));var o=n(0);var a=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var i=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var l=0;l<i;++l)t[u++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",s=2*t+3*n+4*a;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===D||2===D&&o(u,1)?"-webkit-"+u+u:u}if(0===D||2===D&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(k,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace(v,"tb");break;case 232:u=i.replace(v,"tb-rl");break;case 220:u=i.replace(v,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return u=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+u+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(M,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(M,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(L,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,s,l,c){for(var d,p=0,f=t;p<C;++p)switch(d=Y[p].call(u,e,f,n,r,o,a,i,s,l,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?D=1:(D=2,A=e):D=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<C){var u=i(-1,n,s,s,E,x,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var d=function e(n,s,u,d,p){for(var f,h,m,v,w,M=0,L=0,T=0,k=0,Y=0,A=0,P=m=f=0,H=0,I=0,N=0,R=0,F=u.length,z=F-1,U="",W="",B="",V="";H<F;){if(h=u.charCodeAt(H),H===z&&0!==L+k+T+M&&(0!==L&&(h=47===L?10:47),k=T=M=0,F++,z++),0===L+k+T+M){if(H===z&&(0<I&&(U=U.replace(c,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(H)}h=59}switch(h){case 123:for(f=(U=U.trim()).charCodeAt(0),m=1,R=++H;H<F;){switch(h=u.charCodeAt(H)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(H+1)){case 42:case 47:e:{for(P=H+1;P<z;++P)switch(u.charCodeAt(P)){case 47:if(42===h&&42===u.charCodeAt(P-1)&&H+2!==P){H=P+1;break e}break;case 10:if(47===h){H=P+1;break e}}H=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;H++<z&&u.charCodeAt(H)!==h;);}if(0===m)break;H++}switch(m=u.substring(R,H),0===f&&(f=(U=U.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<I&&(U=U.replace(c,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:I=s;break;default:I=O}if(R=(m=e(s,I,m,h,p+1)).length,0<C&&(w=i(3,m,I=t(O,U,N),s,E,x,R,h,p,d),U=I.join(""),void 0!==w&&0===(R=(m=w.trim()).length)&&(h=0,m="")),0<R)switch(h){case 115:U=U.replace(b,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(_,"$1 $2"))+"{"+m+"}",m=1===D||2===D&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===d&&(W+=m,m="")}else m="";break;default:m=e(s,t(s,U,N),m,d,p+1)}B+=m,m=N=I=P=f=0,U="",h=u.charCodeAt(++H);break;case 125:case 59:if(1<(R=(U=(0<I?U.replace(c,""):U).trim()).length))switch(0===P&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(R=(U=U.replace(" ",":")).length),0<C&&void 0!==(w=i(1,U,s,n,E,x,W.length,d,p,d))&&0===(R=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),h=U.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){V+=U+u.charAt(H);break}default:58!==U.charCodeAt(R-1)&&(W+=r(U,f,h,U.charCodeAt(2)))}N=I=P=f=0,U="",h=u.charCodeAt(++H)}}switch(h){case 13:case 10:47===L?L=0:0===1+f&&107!==d&&0<U.length&&(I=1,U+="\0"),0<C*j&&i(0,U,s,n,E,x,W.length,d,p,d),x=1,E++;break;case 59:case 125:if(0===L+k+T+M){x++;break}default:switch(x++,v=u.charAt(H),h){case 9:case 32:if(0===k+M+L)switch(Y){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===k+L+M&&(I=N=1,v="\f"+v);break;case 108:if(0===k+L+M+S&&0<P)switch(H-P){case 2:112===Y&&58===u.charCodeAt(H-3)&&(S=Y);case 8:111===A&&(S=A)}break;case 58:0===k+L+M&&(P=H);break;case 44:0===L+T+k+M&&(I=1,v+="\r");break;case 34:case 39:0===L&&(k=k===h?0:0===k?h:k);break;case 91:0===k+L+T&&M++;break;case 93:0===k+L+T&&M--;break;case 41:0===k+L+M&&T--;break;case 40:if(0===k+L+M){if(0===f)switch(2*Y+3*A){case 533:break;default:f=1}T++}break;case 64:0===L+T+k+M+P+m&&(m=1);break;case 42:case 47:if(!(0<k+M+T))switch(L){case 0:switch(2*h+3*u.charCodeAt(H+1)){case 235:L=47;break;case 220:R=H,L=42}break;case 42:47===h&&42===Y&&R+2!==H&&(33===u.charCodeAt(R+2)&&(W+=u.substring(R,H+1)),v="",L=0)}}0===L&&(U+=v)}A=Y,Y=h,H++}if(0<(R=W.length)){if(I=s,0<C&&(void 0!==(w=i(2,W,I,n,E,x,R,d,p,d))&&0===(W=w).length))return V+W+B;if(W=I.join(",")+"{"+W+"}",0!=D*S){switch(2!==D||o(W,2)||(S=0),S){case 111:W=W.replace(g,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}S=0}}return V+W+B}(O,s,n,0,0);return 0<C&&(void 0!==(u=i(-2,d,s,s,E,x,d.length,0,0,0))&&(d=u)),"",S=0,x=E=1,d}var l=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,_=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,g=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,M=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,x=1,E=1,S=0,D=1,O=[],Y=[],C=0,A=null,j=0;return u.use=function e(t){switch(t){case void 0:case null:C=Y.length=0;break;default:if("function"==typeof t)Y[C++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},u.set=s,void 0!==e&&s(e),u};function s(e){e&&u.current.insert(e+"}")}var u={current:null},l=function(e,t,n,r,o,a,i,l,c,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return u.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return u.current.insert(n[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(s)}},c=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new i(t);var o,s={};o=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(l),c=function(e,t,n,o){var a=t.name;u.current=n,r(e,t.styles),o&&(p.inserted[a]=!0)};var p={key:n,sheet:new a({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:c};return p};n(346);function d(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var p=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var f=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},h={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y=function(e){return 45===e.charCodeAt(1)},g=function(e){return null!=e&&"boolean"!=typeof e},v=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return y(e)?e:e.replace(m,"-$&").toLowerCase()})),b=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_,(function(e,t,n){return M={name:t,styles:n,next:M},t}))}return 1===h[e]||y(e)||"number"!=typeof t||0===t?t:t+"px"};function w(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return M={name:n.name,styles:n.styles,next:M},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)M={name:o.name,styles:o.styles,next:M},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=w(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":g(i)&&(r+=v(a)+":"+b(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=w(e,t,i,!1);switch(a){case"animation":case"animationName":r+=v(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)g(i[u])&&(r+=v(a)+":"+b(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=M,i=n(e);return M=a,w(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var M,L=/label:\s*([^\s;\n{]+)\s*;/g;var T=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";M=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=w(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=w(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);L.lastIndex=0;for(var s,u="";null!==(s=L.exec(o));)u+="-"+s[1];return{name:f(o)+u,styles:o,next:M}},k=Object.prototype.hasOwnProperty,x=Object(o.createContext)("undefined"!=typeof HTMLElement?c():null),E=Object(o.createContext)({}),S=x.Provider,D=function(e){var t=function(t,n){return Object(o.createElement)(x.Consumer,null,(function(r){return e(t,r,n)}))};return Object(o.forwardRef)(t)},O="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Y=function(e,t){var n={};for(var r in t)k.call(t,r)&&(n[r]=t[r]);return n[O]=e,n},C=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var i=t[O],s=[a],u="";"string"==typeof t.className?u=d(e.registered,s,t.className):null!=t.className&&(u=t.className+" ");var l=T(s);p(e,l,"string"==typeof i);u+=e.key+"-"+l.name;var c={};for(var f in t)k.call(t,f)&&"css"!==f&&f!==O&&(c[f]=t[f]);return c.ref=r,c.className=u,Object(o.createElement)(i,c)},A=D((function(e,t,n){return"function"==typeof e.css?Object(o.createElement)(E.Consumer,null,(function(r){return C(t,e,r,n)})):C(t,e,null,n)}));var j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(t)},P=function(e,t){var n=arguments;if(null==t||!k.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=A,a[1]=Y(e,t);for(var i=2;i<r;i++)a[i]=n[i];return o.createElement.apply(null,a)},H=D((function(e,t){var n=e.styles;if("function"==typeof n)return Object(o.createElement)(E.Consumer,null,(function(e){var r=T([n(e)]);return Object(o.createElement)(I,{serialized:r,cache:t})}));var r=T([n]);return Object(o.createElement)(I,{serialized:r,cache:t})})),I=function(e){var t,n;function o(t,n,r){return e.call(this,t,n,r)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.componentDidMount=function(){this.sheet=new a({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},i.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},i.insertStyles=function(){if(void 0!==this.props.serialized.next&&p(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},i.componentWillUnmount=function(){this.sheet.flush()},i.render=function(){return null},o}(o.Component),N=function(){var e=j.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},R=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function F(e,t,n){var r=[],o=d(e,r,n);return r.length<2?n:o+t(r)}var z=D((function(e,t){return Object(o.createElement)(E.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=T(n,t.registered);return p(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return F(t.registered,r,R(n))},theme:n},a=e.children(o);return!0,a}))}))}])}));
281
281
  //# sourceMappingURL=components.js.map