/*! For license information please see vendors.js.LICENSE.txt */
(self.webpackChunkpage_render_service=self.webpackChunkpage_render_service||[]).push([[216],{9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),i=n(36026),o=n(4372),s=n(15327),a=n(94097),u=n(84109),c=n(67985),l=n(85061),h=n(77874),f=n(65263);e.exports=function(e){return new Promise((function(t,n){var d,p=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(p)&&delete m["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+_)}var w=a(e.baseURL,e.url);function k(){if(g){var r="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),g=null}}if(g.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(n(l("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(l("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||h;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}"setRequestHeader"in g&&r.forEach(m,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete m[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),v&&"json"!==v&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){g&&(n(!e||e&&e.type?new f("canceled"):e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),p||(p=null),g.send(p)}))}},51609:function(e,t,n){"use strict";var r=n(64867),i=n(91849),o=n(30321),s=n(47185);var a=function e(t){var n=new o(t),a=i(o.prototype.request,n);return r.extend(a,o.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(45546));a.Axios=o,a.Cancel=n(65263),a.CancelToken=n(14972),a.isCancel=n(26502),a.VERSION=n(97288).version,a.all=function(e){return Promise.all(e)},a.spread=n(8713),a.isAxiosError=n(16268),e.exports=a,e.exports.default=a},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),i=n(15327),o=n(80782),s=n(13572),a=n(47185),u=n(54875),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var h=[s,void 0];for(Array.prototype.unshift.apply(h,r),h=h.concat(l),o=Promise.resolve(t);h.length;)o=o.then(h.shift(),h.shift());return o}for(var f=t;r.length;){var d=r.shift(),p=r.shift();try{f=d(f)}catch(e){p(e);break}}try{o=s(f)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=l},80782:function(e,t,n){"use strict";var r=n(64867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},94097:function(e,t,n){"use strict";var r=n(91793),i=n(7303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},13572:function(e,t,n){"use strict";var r=n(64867),i=n(18527),o=n(26502),s=n(45546),a=n(65263);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:function(e){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function u(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==u||(n[e]=i)})),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867),i=n(45546);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},45546:function(e,t,n){"use strict";var r=n(34155),i=n(64867),o=n(16016),s=n(80481),a=n(77874),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,h={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(l=n(55448)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){h.headers[e]=i.merge(u)})),e.exports=h},77874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(e){e.exports={version:"0.26.1"}},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:function(e,t,n){"use strict";var r=n(64867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:function(e,t,n){"use strict";var r=n(97288).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],u=void 0===a||s(a,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},64867:function(e,t,n){"use strict";var r=n(91849),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function s(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function h(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:a,isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&a(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return u(e)&&l(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:h,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)h(arguments[r],n);return t},extend:function(e,t,n){return h(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},24099:function(e,t,n){"object"==typeof navigator&&(e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={addCSS:!0,thumbWidth:15,watch:!0};function a(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var u=function(e){return null!=e?e.constructor:null},c=function(e,t){return!!(e&&t&&e instanceof t)},l=function(e){return null==e},h=function(e){return u(e)===Object},f=function(e){return u(e)===String},d=function(e){return Array.isArray(e)},p=function(e){return c(e,NodeList)},m=f,v=d,y=p,g=function(e){return c(e,Element)},b=function(e){return c(e,Event)},_=function(e){return l(e)||(f(e)||d(e)||p(e))&&!e.length||h(e)&&!Object.keys(e).length};function w(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var k=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),g(t)?this.element=t:m(t)&&(this.element=document.querySelector(t)),g(this.element)&&_(this.element.rangeTouch)&&(this.config=o({},s,{},n),this.init())}return function(e,n,r){n&&t(e.prototype,n),r&&t(e,r)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!b(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,s=parseFloat(r.getAttribute("max"))||100,a=parseFloat(r.getAttribute("step"))||1,u=r.getBoundingClientRect(),c=100/u.width*(this.config.thumbWidth/2)/100;return 0>(n=100/u.width*(i.clientX-u.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),o+w(n/100*(s-o),a)}},{key:"set",value:function(t){e.enabled&&b(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(_(t)||m(t)?r=Array.from(document.querySelectorAll(m(t)?t:'input[type="range"]')):g(t)?r=[t]:y(t)?r=Array.from(t):v(t)&&(r=t.filter(g)),_(r))return null;var i=o({},s,{},n);if(m(t)&&i.watch){var u=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){g(n)&&a(n,t)&&new e(n,i)}))}))}));u.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const x=e=>null!=e?e.constructor:null,E=(e,t)=>Boolean(e&&t&&e instanceof t),S=e=>null==e,A=e=>x(e)===Object,T=e=>x(e)===String,O=e=>"function"==typeof e,C=e=>Array.isArray(e),P=e=>E(e,NodeList),N=e=>S(e)||(T(e)||C(e)||P(e))&&!e.length||A(e)&&!Object.keys(e).length;var M=S,I=A,D=e=>x(e)===Number&&!Number.isNaN(e),j=T,L=e=>x(e)===Boolean,R=O,F=C,B=P,q=e=>null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument,U=e=>E(e,Event),z=e=>E(e,KeyboardEvent),V=e=>E(e,TextTrack)||!S(e)&&T(e.kind),H=e=>E(e,Promise)&&O(e.then),K=e=>{if(E(e,window.URL))return!0;if(!T(e))return!1;let t=e;e.startsWith("http://")&&e.startsWith("https://")||(t=`http://${e}`);try{return!N(new URL(t).hostname)}catch(e){return!1}},W=N;const $=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(t).find((t=>void 0!==e.style[t]));return!!j(n)&&t[n]})();function G(e,t){setTimeout((()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}const Y={isIE:Boolean(window.document.documentMode),isEdge:/Edge/g.test(navigator.userAgent),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function J(e,t){return t.split(".").reduce(((e,t)=>e&&e[t]),e)}function Z(e={},...t){if(!t.length)return e;const n=t.shift();return I(n)?(Object.keys(n).forEach((t=>{I(n[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),Z(e[t],n[t])):Object.assign(e,{[t]:n[t]})})),Z(e,...t)):e}function X(e,t){const n=e.length?e:[e];Array.from(n).reverse().forEach(((e,n)=>{const r=n>0?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function Q(e,t){q(e)&&!W(t)&&Object.entries(t).filter((([,e])=>!M(e))).forEach((([t,n])=>e.setAttribute(t,n)))}function ee(e,t,n){const r=document.createElement(e);return I(t)&&Q(r,t),j(n)&&(r.innerText=n),r}function te(e,t,n,r){q(t)&&t.appendChild(ee(e,n,r))}function ne(e){B(e)||F(e)?Array.from(e).forEach(ne):q(e)&&q(e.parentNode)&&e.parentNode.removeChild(e)}function re(e){if(!q(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function ie(e,t){return q(t)&&q(t.parentNode)&&q(e)?(t.parentNode.replaceChild(e,t),e):null}function oe(e,t){if(!j(e)||W(e))return{};const n={},r=Z({},t);return e.split(",").forEach((e=>{const t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),[s]=o,a=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":j(r.class)?n.class=`${r.class} ${i}`:n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[s]=a}})),Z(r,n)}function se(e,t){if(!q(e))return;let n=t;L(n)||(n=!e.hidden),e.hidden=n}function ae(e,t,n){if(B(e))return Array.from(e).map((e=>ae(e,t,n)));if(q(e)){let r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function ue(e,t){return q(e)&&e.classList.contains(t)}function ce(e,t){const{prototype:n}=Element;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function le(e){return this.elements.container.querySelectorAll(e)}function he(e){return this.elements.container.querySelector(e)}function fe(e=null,t=!1){q(e)&&(e.focus({preventScroll:!0}),t&&ae(e,this.config.classNames.tabFocus))}const de={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},pe={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t,n){const r=Y.isIPhone&&n&&pe.playsinline,i=pe[e]||"html5"!==t;return{api:i,ui:i&&pe.rangeInput&&("video"!==e||!Y.isIPhone||r)}},pip:!(Y.isIPhone||!R(ee("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||ee("video").disablePictureInPicture)),airplay:R(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(W(e))return!1;const[t]=e.split("/");let n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(de).includes(n)&&(n+=`; codecs="${de[e]}"`);try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range","range"===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==$,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},me=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e})();function ve(e,t,n,r=!1,i=!0,o=!1){if(!e||!("addEventListener"in e)||W(t)||!R(n))return;const s=t.split(" ");let a=o;me&&(a={passive:i,capture:o}),s.forEach((t=>{this&&this.eventListeners&&r&&this.eventListeners.push({element:e,type:t,callback:n,options:a}),e[r?"addEventListener":"removeEventListener"](t,n,a)}))}function ye(e,t="",n,r=!0,i=!1){ve.call(this,e,t,n,!0,r,i)}function ge(e,t="",n,r=!0,i=!1){ve.call(this,e,t,n,!1,r,i)}function be(e,t="",n,r=!0,i=!1){const o=(...s)=>{ge(e,t,o,r,i),n.apply(this,s)};ve.call(this,e,t,o,!0,r,i)}function _e(e,t="",n=!1,r={}){if(!q(e)||W(t))return;const i=new CustomEvent(t,{bubbles:n,detail:{...r,plyr:this}});e.dispatchEvent(i)}function we(){this&&this.eventListeners&&(this.eventListeners.forEach((e=>{const{element:t,type:n,callback:r,options:i}=e;t.removeEventListener(n,r,i)})),this.eventListeners=[])}function ke(){return new Promise((e=>this.ready?setTimeout(e,0):ye.call(this,this.elements.container,"ready",e))).then((()=>{}))}function xe(e){H(e)&&e.then(null,(()=>{}))}function Ee(e){return F(e)?e.filter(((t,n)=>e.indexOf(t)===n)):e}function Se(e,t){return F(e)&&e.length?e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)):null}function Ae(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const Te=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce(((e,[t,n])=>({...e,[t/n]:[t,n]})),{});function Oe(e){return!!(F(e)||j(e)&&e.includes(":"))&&(F(e)?e:e.split(":")).map(Number).every(D)}function Ce(e){if(!F(e)||!e.every(D))return null;const[t,n]=e,r=(e,t)=>0===t?e:r(t,e%t),i=r(t,n);return[t/i,n/i]}function Pe(e){const t=e=>Oe(e)?e.split(":").map(Number):null;let n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!W(this.embed)&&F(this.embed.ratio)&&({ratio:n}=this.embed),null===n&&this.isHTML5){const{videoWidth:e,videoHeight:t}=this.media;n=[e,t]}return Ce(n)}function Ne(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,n=Pe.call(this,e);if(!F(n))return{};const[r,i]=Ce(n),o=100/r*i;if(Ae(`aspect-ratio: ${r}/${i}`)?t.style.aspectRatio=`${r}/${i}`:t.style.paddingBottom=`${o}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const e=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(e-o)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:o,ratio:n}}function Me(e,t,n=.05){const r=e/t,i=Se(Object.keys(Te),r);return Math.abs(i-r)<=n?Te[i]:[e,t]}const Ie={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((e=>{const t=e.getAttribute("type");return!!W(t)||pe.mime.call(this,t)})):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Ie.getSources.call(this).map((e=>Number(e.getAttribute("size")))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,W(this.config.ratio)||Ne.call(e),Object.defineProperty(e.media,"quality",{get(){const t=Ie.getSources.call(e).find((t=>t.getAttribute("src")===e.source));return t&&Number(t.getAttribute("size"))},set(t){if(e.quality!==t){if(e.config.quality.forced&&R(e.config.quality.onChange))e.config.quality.onChange(t);else{const n=Ie.getSources.call(e).find((e=>Number(e.getAttribute("size"))===t));if(!n)return;const{currentTime:r,paused:i,preload:o,readyState:s,playbackRate:a}=e.media;e.media.src=n.getAttribute("src"),("none"!==o||s)&&(e.once("loadedmetadata",(()=>{e.speed=a,e.currentTime=r,i||xe(e.play())})),e.media.load())}_e.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(ne(Ie.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function De(e,...t){return W(e)?e:e.toString().replace(/{(\d+)}/g,((e,n)=>t[n].toString()))}const je=(e="",t="",n="")=>e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString()),Le=(e="")=>e.toString().replace(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()));function Re(e=""){let t=e.toString();return t=function(e=""){let t=e.toString();return t=je(t,"-"," "),t=je(t,"_"," "),t=Le(t),je(t," ","")}(t),t.charAt(0).toLowerCase()+t.slice(1)}function Fe(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const Be={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},qe={get(e="",t={}){if(W(e)||W(t))return"";let n=J(t.i18n,e);if(W(n))return Object.keys(Be).includes(e)?Be[e]:"";const r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((([e,t])=>{n=je(n,e,t)})),n}};class Ue{constructor(t){e(this,"get",(e=>{if(!Ue.supported||!this.enabled)return null;const t=window.localStorage.getItem(this.key);if(W(t))return null;const n=JSON.parse(t);return j(e)&&e.length?n[e]:n})),e(this,"set",(e=>{if(!Ue.supported||!this.enabled)return;if(!I(e))return;let t=this.get();W(t)&&(t={}),Z(t,e);try{window.localStorage.setItem(this.key,JSON.stringify(t))}catch(e){}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}function ze(e,t="text"){return new Promise(((n,r)=>{try{const r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",(()=>{if("text"===t)try{n(JSON.parse(r.responseText))}catch(e){n(r.responseText)}else n(r.response)})),r.addEventListener("error",(()=>{throw new Error(r.status)})),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){r(e)}}))}function Ve(e,t){if(!j(e))return;const n=j(t);let r=!1;const i=()=>null!==document.getElementById(t),o=(e,t)=>{e.innerHTML=t,n&&i()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!i()){const i=Ue.supported,s=document.createElement("div");if(s.setAttribute("hidden",""),n&&s.setAttribute("id",t),i){const e=window.localStorage.getItem(`cache-${t}`);if(r=null!==e,r){const t=JSON.parse(e);o(s,t.content)}}ze(e).then((e=>{if(!W(e)){if(i)try{window.localStorage.setItem(`cache-${t}`,JSON.stringify({content:e}))}catch(e){}o(s,e)}})).catch((()=>{}))}}const He=e=>Math.trunc(e/60/60%60,10);function Ke(e=0,t=!1,n=!1){if(!D(e))return Ke(void 0,t,n);const r=e=>`0${e}`.slice(-2);let i=He(e);const o=(s=e,Math.trunc(s/60%60,10));var s;const a=(e=>Math.trunc(e%60,10))(e);return i=t||i>0?`${i}:`:"",`${n&&e>0?"-":""}${i}${r(o)}:${r(a)}`}const We={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||Y.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements(){try{return this.elements.controls=he.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:le.call(this,this.config.selectors.buttons.play),pause:he.call(this,this.config.selectors.buttons.pause),restart:he.call(this,this.config.selectors.buttons.restart),rewind:he.call(this,this.config.selectors.buttons.rewind),fastForward:he.call(this,this.config.selectors.buttons.fastForward),mute:he.call(this,this.config.selectors.buttons.mute),pip:he.call(this,this.config.selectors.buttons.pip),airplay:he.call(this,this.config.selectors.buttons.airplay),settings:he.call(this,this.config.selectors.buttons.settings),captions:he.call(this,this.config.selectors.buttons.captions),fullscreen:he.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=he.call(this,this.config.selectors.progress),this.elements.inputs={seek:he.call(this,this.config.selectors.inputs.seek),volume:he.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:he.call(this,this.config.selectors.display.buffer),currentTime:he.call(this,this.config.selectors.display.currentTime),duration:he.call(this,this.config.selectors.display.duration)},q(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,t){const n="http://www.w3.org/2000/svg",r=We.getIconUrl.call(this),i=`${r.cors?"":r.url}#${this.config.iconPrefix}`,o=document.createElementNS(n,"svg");Q(o,Z(t,{"aria-hidden":"true",focusable:"false"}));const s=document.createElementNS(n,"use"),a=`${i}-${e}`;return"href"in s&&s.setAttributeNS("http://www.w3.org/1999/xlink","href",a),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),o.appendChild(s),o},createLabel(e,t={}){const n=qe.get(e,this.config);return ee("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},n)},createBadge(e){if(W(e))return null;const t=ee("span",{class:this.config.classNames.menu.value});return t.appendChild(ee("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const n=Z({},t);let r=Re(e);const i={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((e=>{Object.keys(n).includes(e)&&(i[e]=n[e],delete n[e])})),"button"!==i.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some((e=>e===this.config.classNames.control))||Z(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,e){case"play":i.toggle=!0,i.label="play",i.labelPressed="pause",i.icon="play",i.iconPressed="pause";break;case"mute":i.toggle=!0,i.label="mute",i.labelPressed="unmute",i.icon="volume",i.iconPressed="muted";break;case"captions":i.toggle=!0,i.label="enableCaptions",i.labelPressed="disableCaptions",i.icon="captions-off",i.iconPressed="captions-on";break;case"fullscreen":i.toggle=!0,i.label="enterFullscreen",i.labelPressed="exitFullscreen",i.icon="enter-fullscreen",i.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,r="play",i.label="play",i.icon="play";break;default:W(i.label)&&(i.label=r),W(i.icon)&&(i.icon=e)}const o=ee(i.element);return i.toggle?(o.appendChild(We.createIcon.call(this,i.iconPressed,{class:"icon--pressed"})),o.appendChild(We.createIcon.call(this,i.icon,{class:"icon--not-pressed"})),o.appendChild(We.createLabel.call(this,i.labelPressed,{class:"label--pressed"})),o.appendChild(We.createLabel.call(this,i.label,{class:"label--not-pressed"}))):(o.appendChild(We.createIcon.call(this,i.icon)),o.appendChild(We.createLabel.call(this,i.label))),Z(n,oe(this.config.selectors.buttons[r],n)),Q(o,n),"play"===r?(F(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(o)):this.elements.buttons[r]=o,o},createRange(e,t){const n=ee("input",Z(oe(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":qe.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,We.updateRangeFill.call(this,n),k.setup(n),n},createProgress(e,t){const n=ee("progress",Z(oe(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(ee("span",null,"0"));const t={played:"played",buffer:"buffered"}[e],r=t?qe.get(t,this.config):"";n.innerText=`% ${r.toLowerCase()}`}return this.elements.display[e]=n,n},createTime(e,t){const n=oe(this.config.selectors.display[e],t),r=ee("div",Z(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":qe.get(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts(e,t){ye.call(this,e,"keydown keyup",(n=>{if(!["Space","ArrowUp","ArrowDown","ArrowRight"].includes(n.key))return;if(n.preventDefault(),n.stopPropagation(),"keydown"===n.type)return;const r=ce(e,'[role="menuitemradio"]');if(!r&&["Space","ArrowRight"].includes(n.key))We.showMenuPanel.call(this,t,!0);else{let t;"Space"!==n.key&&("ArrowDown"===n.key||r&&"ArrowRight"===n.key?(t=e.nextElementSibling,q(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,q(t)||(t=e.parentNode.lastElementChild)),fe.call(this,t,!0))}}),!1),ye.call(this,e,"keyup",(e=>{"Return"===e.key&&We.focusFirstMenuItem.call(this,null,!0)}))},createMenuItem({value:e,list:t,type:n,title:r,badge:i=null,checked:o=!1}){const s=oe(this.config.selectors.inputs[n]),a=ee("button",Z(s,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${s.class?s.class:""}`.trim(),"aria-checked":o,value:e})),u=ee("span");u.innerHTML=r,q(i)&&u.appendChild(i),a.appendChild(u),Object.defineProperty(a,"checked",{enumerable:!0,get:()=>"true"===a.getAttribute("aria-checked"),set(e){e&&Array.from(a.parentNode.children).filter((e=>ce(e,'[role="menuitemradio"]'))).forEach((e=>e.setAttribute("aria-checked","false"))),a.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(a,"click keyup",(t=>{if(!z(t)||"Space"===t.key){switch(t.preventDefault(),t.stopPropagation(),a.checked=!0,n){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}We.showMenuPanel.call(this,"home",z(t))}}),n,!1),We.bindMenuItemShortcuts.call(this,a,n),t.appendChild(a)},formatTime(e=0,t=!1){return D(e)?Ke(e,He(this.duration)>0,t):e},updateTimeDisplay(e=null,t=0,n=!1){q(e)&&D(t)&&(e.innerText=We.formatTime(t,n))},updateVolume(){this.supported.ui&&(q(this.elements.inputs.volume)&&We.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),q(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,t=0){q(e)&&(e.value=t,We.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!U(e))return;let t=0;const n=(e,t)=>{const n=D(t)?t:0,r=q(e)?e:this.elements.display.buffer;if(q(r)){r.value=n;const e=r.getElementsByTagName("span")[0];q(e)&&(e.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":r=this.currentTime,i=this.duration,t=0===r||0===i||Number.isNaN(r)||Number.isNaN(i)?0:(r/i*100).toFixed(2),"timeupdate"===e.type&&We.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":n(this.elements.display.buffer,100*this.buffered)}var r,i},updateRangeFill(e){const t=U(e)?e.target:e;if(q(t)&&"range"===t.getAttribute("type")){if(ce(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const e=We.formatTime(this.currentTime),n=We.formatTime(this.duration),r=qe.get("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",e).replace("{duration}",n))}else if(ce(t,this.config.selectors.inputs.volume)){const e=100*t.value;t.setAttribute("aria-valuenow",e),t.setAttribute("aria-valuetext",`${e.toFixed(1)}%`)}else t.setAttribute("aria-valuenow",t.value);Y.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(e){var t,n;if(!this.config.tooltips.seek||!q(this.elements.inputs.seek)||!q(this.elements.display.seekTooltip)||0===this.duration)return;const r=this.elements.display.seekTooltip,i=`${this.config.classNames.tooltip}--visible`,o=e=>ae(r,i,e);if(this.touch)return void o(!1);let s=0;const a=this.elements.progress.getBoundingClientRect();if(U(e))s=100/a.width*(e.pageX-a.left);else{if(!ue(r,i))return;s=parseFloat(r.style.left,10)}s<0?s=0:s>100&&(s=100);const u=this.duration/100*s;r.innerText=We.formatTime(u);const c=null===(t=this.config.markers)||void 0===t||null===(n=t.points)||void 0===n?void 0:n.find((({time:e})=>e===Math.round(u)));c&&r.insertAdjacentHTML("afterbegin",`${c.label}<br>`),r.style.left=`${s}%`,U(e)&&["mouseenter","mouseleave"].includes(e.type)&&o("mouseenter"===e.type)},timeUpdate(e){const t=!q(this.elements.display.duration)&&this.config.invertTime;We.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||We.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return se(this.elements.display.currentTime,!0),void se(this.elements.progress,!0);q(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=q(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&We.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&We.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&We.setMarkers.call(this),We.updateSeekTooltip.call(this)},toggleMenuButton(e,t){se(this.elements.settings.buttons[e],!t)},updateSetting(e,t,n){const r=this.elements.settings.panels[e];let i=null,o=t;if("captions"===e)i=this.currentTrack;else{if(i=W(n)?this[e]:n,W(i)&&(i=this.config[e].default),!W(this.options[e])&&!this.options[e].includes(i))return void this.debug.warn(`Unsupported value of '${i}' for ${e}`);if(!this.config[e].options.includes(i))return void this.debug.warn(`Disabled value of '${i}' for ${e}`)}if(q(o)||(o=r&&r.querySelector('[role="menu"]')),!q(o))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=We.getLabel.call(this,e,i);const s=o&&o.querySelector(`[value="${i}"]`);q(s)&&(s.checked=!0)},getLabel(e,t){switch(e){case"speed":return 1===t?qe.get("normal",this.config):`${t}&times;`;case"quality":if(D(t)){const e=qe.get(`qualityLabel.${t}`,this.config);return e.length?e:`${t}p`}return Le(t);case"captions":return Ye.getLabel.call(this);default:return null}},setQualityMenu(e){if(!q(this.elements.settings.panels.quality))return;const t="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');F(e)&&(this.options.quality=Ee(e).filter((e=>this.config.quality.options.includes(e))));const r=!W(this.options.quality)&&this.options.quality.length>1;if(We.toggleMenuButton.call(this,t,r),re(n),We.checkMenu.call(this),!r)return;const i=e=>{const t=qe.get(`qualityBadge.${e}`,this.config);return t.length?We.createBadge.call(this,t):null};this.options.quality.sort(((e,t)=>{const n=this.config.quality.options;return n.indexOf(e)>n.indexOf(t)?1:-1})).forEach((e=>{We.createMenuItem.call(this,{value:e,list:n,type:t,title:We.getLabel.call(this,"quality",e),badge:i(e)})})),We.updateSetting.call(this,t,n)},setCaptionsMenu(){if(!q(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Ye.getTracks.call(this),r=Boolean(n.length);if(We.toggleMenuButton.call(this,e,r),re(t),We.checkMenu.call(this),!r)return;const i=n.map(((e,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:Ye.getLabel.call(this,e),badge:e.language&&We.createBadge.call(this,e.language.toUpperCase()),list:t,type:"language"})));i.unshift({value:-1,checked:!this.captions.toggled,title:qe.get("disabled",this.config),list:t,type:"language"}),i.forEach(We.createMenuItem.bind(this)),We.updateSetting.call(this,e,t)},setSpeedMenu(){if(!q(this.elements.settings.panels.speed))return;const e="speed",t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((e=>e>=this.minimumSpeed&&e<=this.maximumSpeed));const n=!W(this.options.speed)&&this.options.speed.length>1;We.toggleMenuButton.call(this,e,n),re(t),We.checkMenu.call(this),n&&(this.options.speed.forEach((n=>{We.createMenuItem.call(this,{value:n,list:t,type:e,title:We.getLabel.call(this,"speed",n)})})),We.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!W(e)&&Object.values(e).some((e=>!e.hidden));se(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let n=e;q(n)||(n=Object.values(this.elements.settings.panels).find((e=>!e.hidden)));const r=n.querySelector('[role^="menuitem"]');fe.call(this,r,t)},toggleMenu(e){const{popup:t}=this.elements.settings,n=this.elements.buttons.settings;if(!q(t)||!q(n))return;const{hidden:r}=t;let i=r;if(L(e))i=e;else if(z(e)&&"Escape"===e.key)i=!1;else if(U(e)){const r=R(e.composedPath)?e.composedPath()[0]:e.target,o=t.contains(r);if(o||!o&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),se(t,!i),ae(this.elements.container,this.config.classNames.menu.open,i),i&&z(e)?We.focusFirstMenuItem.call(this,null,!0):i||r||fe.call(this,n,z(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const n=t.scrollWidth,r=t.scrollHeight;return ne(t),{width:n,height:r}},showMenuPanel(e="",t=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!q(n))return;const r=n.parentNode,i=Array.from(r.children).find((e=>!e.hidden));if(pe.transitions&&!pe.reducedMotion){r.style.width=`${i.scrollWidth}px`,r.style.height=`${i.scrollHeight}px`;const e=We.getMenuSize.call(this,n),t=e=>{e.target===r&&["width","height"].includes(e.propertyName)&&(r.style.width="",r.style.height="",ge.call(this,r,$,t))};ye.call(this,r,$,t),r.style.width=`${e.width}px`,r.style.height=`${e.height}px`}se(i,!0),se(n,!1),We.focusFirstMenuItem.call(this,n,t)},setDownloadUrl(){const e=this.elements.buttons.download;q(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:n,createProgress:r,createRange:i,createTime:o,setQualityMenu:s,setSpeedMenu:a,showMenuPanel:u}=We;this.elements.controls=null,F(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const c=ee("div",oe(this.config.selectors.controls.wrapper));this.elements.controls=c;const l={class:"plyr__controls__item"};return Ee(F(this.config.controls)?this.config.controls:[]).forEach((s=>{if("restart"===s&&c.appendChild(n.call(this,"restart",l)),"rewind"===s&&c.appendChild(n.call(this,"rewind",l)),"play"===s&&c.appendChild(n.call(this,"play",l)),"fast-forward"===s&&c.appendChild(n.call(this,"fast-forward",l)),"progress"===s){const t=ee("div",{class:`${l.class} plyr__progress__container`}),n=ee("div",oe(this.config.selectors.progress));if(n.appendChild(i.call(this,"seek",{id:`plyr-seek-${e.id}`})),n.appendChild(r.call(this,"buffer")),this.config.tooltips.seek){const e=ee("span",{class:this.config.classNames.tooltip},"00:00");n.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=n,t.appendChild(this.elements.progress),c.appendChild(t)}if("current-time"===s&&c.appendChild(o.call(this,"currentTime",l)),"duration"===s&&c.appendChild(o.call(this,"duration",l)),"mute"===s||"volume"===s){let{volume:t}=this.elements;if(q(t)&&c.contains(t)||(t=ee("div",Z({},l,{class:`${l.class} plyr__volume`.trim()})),this.elements.volume=t,c.appendChild(t)),"mute"===s&&t.appendChild(n.call(this,"mute")),"volume"===s&&!Y.isIos){const n={max:1,step:.05,value:this.config.volume};t.appendChild(i.call(this,"volume",Z(n,{id:`plyr-volume-${e.id}`})))}}if("captions"===s&&c.appendChild(n.call(this,"captions",l)),"settings"===s&&!W(this.config.settings)){const r=ee("div",Z({},l,{class:`${l.class} plyr__menu`.trim(),hidden:""}));r.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const i=ee("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),o=ee("div"),s=ee("div",{id:`plyr-settings-${e.id}-home`}),a=ee("div",{role:"menu"});s.appendChild(a),o.appendChild(s),this.elements.settings.panels.home=s,this.config.settings.forEach((n=>{const r=ee("button",Z(oe(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));t.call(this,r,n),ye.call(this,r,"click",(()=>{u.call(this,n,!1)}));const i=ee("span",null,qe.get(n,this.config)),s=ee("span",{class:this.config.classNames.menu.value});s.innerHTML=e[n],i.appendChild(s),r.appendChild(i),a.appendChild(r);const c=ee("div",{id:`plyr-settings-${e.id}-${n}`,hidden:""}),l=ee("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});l.appendChild(ee("span",{"aria-hidden":!0},qe.get(n,this.config))),l.appendChild(ee("span",{class:this.config.classNames.hidden},qe.get("menuBack",this.config))),ye.call(this,c,"keydown",(e=>{"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),u.call(this,"home",!0))}),!1),ye.call(this,l,"click",(()=>{u.call(this,"home",!1)})),c.appendChild(l),c.appendChild(ee("div",{role:"menu"})),o.appendChild(c),this.elements.settings.buttons[n]=r,this.elements.settings.panels[n]=c})),i.appendChild(o),r.appendChild(i),c.appendChild(r),this.elements.settings.popup=i,this.elements.settings.menu=r}if("pip"===s&&pe.pip&&c.appendChild(n.call(this,"pip",l)),"airplay"===s&&pe.airplay&&c.appendChild(n.call(this,"airplay",l)),"download"===s){const e=Z({},l,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(e.download="");const{download:t}=this.config.urls;!K(t)&&this.isEmbed&&Z(e,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(n.call(this,"download",e))}"fullscreen"===s&&c.appendChild(n.call(this,"fullscreen",l))})),this.isHTML5&&s.call(this,Ie.getQualityOptions.call(this)),a.call(this),c},inject(){if(this.config.loadSprite){const e=We.getIconUrl.call(this);e.cors&&Ve(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const t={id:this.id,seektime:this.config.seekTime,title:this.config.title};let n,r=!0;if(R(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),q(this.config.controls)||j(this.config.controls)?e=this.config.controls:(e=We.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Ye.getLabel.call(this)}),r=!1),r&&j(this.config.controls)&&(e=(e=>{let n=e;return Object.entries(t).forEach((([e,t])=>{n=je(n,`{${e}}`,t)})),n})(e)),j(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),q(n)||(n=this.elements.container),n[q(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),q(this.elements.controls)||We.findElements.call(this),!W(this.elements.buttons)){const e=e=>{const t=this.config.classNames.controlPressed;e.setAttribute("aria-pressed","false"),Object.defineProperty(e,"pressed",{configurable:!0,enumerable:!0,get:()=>ue(e,t),set(n=!1){ae(e,t,n),e.setAttribute("aria-pressed",n?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach((t=>{F(t)||B(t)?Array.from(t).filter(Boolean).forEach(e):e(t)}))}if(Y.isEdge&&G(n),this.config.tooltips.controls){const{classNames:e,selectors:t}=this.config,n=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,r=le.call(this,n);Array.from(r).forEach((e=>{ae(e,this.config.classNames.hidden,!1),ae(e,this.config.classNames.tooltip,!0)}))}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(e){}},setMarkers(){var e,t;if(!this.duration||this.elements.markers)return;const n=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter((({time:e})=>e>0&&e<this.duration));if(null==n||!n.length)return;const r=document.createDocumentFragment(),i=document.createDocumentFragment();let o=null;const s=`${this.config.classNames.tooltip}--visible`,a=e=>ae(o,s,e);n.forEach((e=>{const t=ee("span",{class:this.config.classNames.marker},""),n=e.time/this.duration*100+"%";o&&(t.addEventListener("mouseenter",(()=>{e.label||(o.style.left=n,o.innerHTML=e.label,a(!0))})),t.addEventListener("mouseleave",(()=>{a(!1)}))),t.addEventListener("click",(()=>{this.currentTime=e.time})),t.style.left=n,i.appendChild(t)})),r.appendChild(i),this.config.tooltips.seek||(o=ee("span",{class:this.config.classNames.tooltip},""),r.appendChild(o)),this.elements.markers={points:i,tip:o},this.elements.progress.appendChild(r)}};function $e(e,t=!0){let n=e;if(t){const e=document.createElement("a");e.href=n,n=e.href}try{return new URL(n)}catch(e){return null}}function Ge(e){const t=new URLSearchParams;return I(e)&&Object.entries(e).forEach((([e,n])=>{t.set(e,n)})),t}const Ye={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!pe.textTracks)return void(F(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&We.setCaptionsMenu.call(this));var e,t;if(q(this.elements.captions)||(this.elements.captions=ee("div",oe(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),e=this.elements.captions,t=this.elements.wrapper,q(e)&&q(t)&&t.parentNode.insertBefore(e,t.nextSibling)),Y.isIE&&window.URL){const e=this.media.querySelectorAll("track");Array.from(e).forEach((e=>{const t=e.getAttribute("src"),n=$e(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&ze(t,"blob").then((t=>{e.setAttribute("src",window.URL.createObjectURL(t))})).catch((()=>{ne(e)}))}))}const n=Ee((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((e=>e.split("-")[0])));let r=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===r&&([r]=n);let i=this.storage.get("captions");if(L(i)||({active:i}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:i,language:r,languages:n}),this.isHTML5){const e=this.config.captions.update?"addtrack removetrack":"removetrack";ye.call(this,this.media.textTracks,e,Ye.update.bind(this))}setTimeout(Ye.update.bind(this),0)},update(){const e=Ye.getTracks.call(this,!0),{active:t,language:n,meta:r,currentTrackNode:i}=this.captions,o=Boolean(e.find((e=>e.language===n)));this.isHTML5&&this.isVideo&&e.filter((e=>!r.get(e))).forEach((e=>{this.debug.log("Track added",e),r.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),ye.call(this,e,"cuechange",(()=>Ye.updateCues.call(this)))})),(o&&this.language!==n||!e.includes(i))&&(Ye.setLanguage.call(this,n),Ye.toggle.call(this,t&&o)),this.elements&&ae(this.elements.container,this.config.classNames.captions.enabled,!W(e)),F(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&We.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,r=this.config.classNames.captions.active,i=M(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){const e=Ye.getTracks.call(this),t=Ye.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=t.language,void Ye.set.call(this,e.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),ae(this.elements.container,r,i),this.captions.toggled=i,We.updateSetting.call(this,"captions"),_e.call(this,this.media,i?"captionsenabled":"captionsdisabled")}setTimeout((()=>{i&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")}))},set(e,t=!0){const n=Ye.getTracks.call(this);if(-1!==e)if(D(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const r=n[e],{language:i}=r||{};this.captions.currentTrackNode=r,We.updateSetting.call(this,"captions"),t||(this.captions.language=i,this.storage.set({language:i})),this.isVimeo&&this.embed.enableTextTrack(i),_e.call(this,this.media,"languagechange")}Ye.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Ye.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Ye.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(!j(e))return void this.debug.warn("Invalid language argument",e);const n=e.toLowerCase();this.captions.language=n;const r=Ye.getTracks.call(this),i=Ye.findTrack.call(this,[n]);Ye.set.call(this,r.indexOf(i),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter((t=>!this.isHTML5||e||this.captions.meta.has(t))).filter((e=>["captions","subtitles"].includes(e.kind)))},findTrack(e,t=!1){const n=Ye.getTracks.call(this),r=e=>Number((this.captions.meta.get(e)||{}).default),i=Array.from(n).sort(((e,t)=>r(t)-r(e)));let o;return e.every((e=>(o=i.find((t=>t.language===e)),!o))),o||(t?i[0]:void 0)},getCurrentTrack(){return Ye.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!V(t)&&pe.textTracks&&this.captions.toggled&&(t=Ye.getCurrentTrack.call(this)),V(t)?W(t.label)?W(t.language)?qe.get("enabled",this.config):e.language.toUpperCase():t.label:qe.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!q(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!M(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let t=e;if(!t){const e=Ye.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map((e=>e.getCueAsHTML())).map(Fe)}const n=t.map((e=>e.trim())).join("\n");if(n!==this.elements.captions.innerHTML){re(this.elements.captions);const e=ee("span",oe(this.config.selectors.caption));e.innerHTML=n,this.elements.captions.appendChild(e),_e.call(this,this.media,"cuechange")}}},Je={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.3/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Ze="picture-in-picture",Xe="inline",Qe={html5:"html5",youtube:"youtube",vimeo:"vimeo"},et="audio",tt="video",nt=()=>{};class rt{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):nt}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):nt}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):nt}}class it{constructor(t){e(this,"onChange",(()=>{if(!this.enabled)return;const e=this.player.elements.buttons.fullscreen;q(e)&&(e.pressed=this.active);const t=this.target===this.player.media?this.target:this.player.elements.container;_e.call(this.player,t,this.active?"enterfullscreen":"exitfullscreen",!0)})),e(this,"toggleFallback",((e=!1)=>{if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",ae(this.target,this.player.config.classNames.fullscreen.fallback,e),Y.isIos){let t=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";t||(t=document.createElement("meta"),t.setAttribute("name","viewport"));const r=j(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!r,r||(t.content+=`,${n}`)):this.cleanupViewport&&(t.content=t.content.split(",").filter((e=>e.trim()!==n)).join(","))}this.onChange()})),e(this,"trapFocus",(e=>{if(Y.isIos||!this.active||"Tab"!==e.key)return;const t=document.activeElement,n=le.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[r]=n,i=n[n.length-1];t!==i||e.shiftKey?t===r&&e.shiftKey&&(i.focus(),e.preventDefault()):(r.focus(),e.preventDefault())})),e(this,"update",(()=>{if(this.enabled){let e;e=this.forceFallback?"Fallback (forced)":it.native?"Native":"Fallback",this.player.debug.log(`${e} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");ae(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)})),e(this,"enter",(()=>{this.enabled&&(Y.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!it.native||this.forceFallback?this.toggleFallback(!0):this.prefix?W(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))})),e(this,"exit",(()=>{if(this.enabled)if(Y.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),xe(this.player.play());else if(!it.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!W(this.prefix)){const e="moz"===this.prefix?"Cancel":"Exit";document[`${this.prefix}${e}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),e(this,"toggle",(()=>{this.active?this.exit():this.enter()})),this.player=t,this.prefix=it.prefix,this.property=it.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){const{prototype:n}=Element;return(n.closest||function(){let e=this;do{if(ce.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),ye.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,(()=>{this.onChange()})),ye.call(this.player,this.player.elements.container,"dblclick",(e=>{q(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,"fullscreen")})),ye.call(this,this.player.elements.container,"keydown",(e=>this.trapFocus(e))),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return it.native&&!this.forceFallback}static get prefix(){if(R(document.exitFullscreen))return"";let e="";return["webkit","moz","ms"].some((t=>!(!R(document[`${t}ExitFullscreen`])&&!R(document[`${t}CancelFullScreen`])||(e=t,0)))),e}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get enabled(){return(it.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!it.native||this.forceFallback)return ue(this.target,this.player.config.classNames.fullscreen.fallback);const e=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){return Y.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function ot(e,t=1){return new Promise(((n,r)=>{const i=new Image,o=()=>{delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:o,onerror:o,src:e})}))}const st={addStyleHook(){ae(this.elements.container,this.config.selectors.container.replace(".",""),!0),ae(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void st.toggleNativeControls.call(this,!0);q(this.elements.controls)||(We.inject.call(this),this.listeners.controls()),st.toggleNativeControls.call(this),this.isHTML5&&Ye.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,We.updateVolume.call(this),We.timeUpdate.call(this),We.durationUpdate.call(this),st.checkPlaying.call(this),ae(this.elements.container,this.config.classNames.pip.supported,pe.pip&&this.isHTML5&&this.isVideo),ae(this.elements.container,this.config.classNames.airplay.supported,pe.airplay&&this.isHTML5),ae(this.elements.container,this.config.classNames.isIos,Y.isIos),ae(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((()=>{_e.call(this,this.media,"ready")}),0),st.setTitle.call(this),this.poster&&st.setPoster.call(this,this.poster,!1).catch((()=>{})),this.config.duration&&We.durationUpdate.call(this),this.config.mediaMetadata&&We.setMediaMetadata.call(this)},setTitle(){let e=qe.get("play",this.config);if(j(this.config.title)&&!W(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach((t=>{t.setAttribute("aria-label",e)})),this.isEmbed){const e=he.call(this,"iframe");if(!q(e))return;const t=W(this.config.title)?"video":this.config.title,n=qe.get("frameTitle",this.config);e.setAttribute("title",n.replace("{title}",t))}},togglePoster(e){ae(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),ke.call(this).then((()=>ot(e))).catch((t=>{throw e===this.poster&&st.togglePoster.call(this,!1),t})).then((()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),st.togglePoster.call(this,!0),e))))},checkPlaying(e){ae(this.elements.container,this.config.classNames.playing,this.playing),ae(this.elements.container,this.config.classNames.paused,this.paused),ae(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",qe.get(this.playing?"pause":"play",this.config))})),U(e)&&"timeupdate"===e.type||st.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((()=>{ae(this.elements.container,this.config.classNames.loading,this.loading),st.toggleControls.call(this)}),this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter((e=>!W(e)&&j(e)&&e.startsWith("--plyr"))).forEach((e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)})),W(this.media.style)&&this.media.removeAttribute("style")}};class at{constructor(t){e(this,"firstTouch",(()=>{const{player:e}=this,{elements:t}=e;e.touch=!0,ae(t.container,e.config.classNames.isTouch,!0)})),e(this,"setTabFocus",(e=>{const{player:t}=this,{elements:n}=t,{key:r,type:i,timeStamp:o}=e;if(clearTimeout(this.focusTimer),"keydown"===i&&"Tab"!==r)return;"keydown"===i&&(this.lastKeyDown=o);const s=o-this.lastKeyDown<=20;("focus"!==i||s)&&((()=>{const e=t.config.classNames.tabFocus;ae(le.call(t,`.${e}`),e,!1)})(),"focusout"!==i&&(this.focusTimer=setTimeout((()=>{const e=document.activeElement;n.container.contains(e)&&ae(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))})),e(this,"global",((e=!0)=>{const{player:t}=this;t.config.keyboard.global&&ve.call(t,window,"keydown keyup",this.handleKey,e,!1),ve.call(t,document.body,"click",this.toggleMenu,e),be.call(t,document.body,"touchstart",this.firstTouch),ve.call(t,document.body,"keydown focus blur focusout",this.setTabFocus,e,!1,!0)})),e(this,"container",(()=>{const{player:e}=this,{config:t,elements:n,timers:r}=e;!t.keyboard.global&&t.keyboard.focused&&ye.call(e,n.container,"keydown keyup",this.handleKey,!1),ye.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(t=>{const{controls:i}=n;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);let o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(st.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((()=>st.toggleControls.call(e,!1)),o)}));const i=()=>{if(!e.isVimeo||e.config.vimeo.premium)return;const t=n.wrapper,{active:r}=e.fullscreen,[i,o]=Pe.call(e),s=Ae(`aspect-ratio: ${i} / ${o}`);if(!r)return void(s?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null));const[a,u]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=a/u>i/o;s?(t.style.width=c?"auto":"100%",t.style.height=c?"100%":"auto"):(t.style.maxWidth=c?u/o*i+"px":null,t.style.margin=c?"0 auto":null)},o=()=>{clearTimeout(r.resized),r.resized=setTimeout(i,50)};ye.call(e,n.container,"enterfullscreen exitfullscreen",(t=>{const{target:r}=e.fullscreen;r===n.container&&(!e.isEmbed&&W(e.config.ratio)||(i(),("enterfullscreen"===t.type?ye:ge).call(e,window,"resize",o)))}))})),e(this,"media",(()=>{const{player:e}=this,{elements:t}=e;if(ye.call(e,e.media,"timeupdate seeking seeked",(t=>We.timeUpdate.call(e,t))),ye.call(e,e.media,"durationchange loadeddata loadedmetadata",(t=>We.durationUpdate.call(e,t))),ye.call(e,e.media,"ended",(()=>{e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),ye.call(e,e.media,"progress playing seeking seeked",(t=>We.updateProgress.call(e,t))),ye.call(e,e.media,"volumechange",(t=>We.updateVolume.call(e,t))),ye.call(e,e.media,"playing play pause ended emptied timeupdate",(t=>st.checkPlaying.call(e,t))),ye.call(e,e.media,"waiting canplay seeked playing",(t=>st.checkLoading.call(e,t))),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){const n=he.call(e,`.${e.config.classNames.video}`);if(!q(n))return;ye.call(e,t.container,"click",(r=>{([t.container,n].includes(r.target)||n.contains(r.target))&&(e.touch&&e.config.hideControls||(e.ended?(this.proxy(r,e.restart,"restart"),this.proxy(r,(()=>{xe(e.play())}),"play")):this.proxy(r,(()=>{xe(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&ye.call(e,t.wrapper,"contextmenu",(e=>{e.preventDefault()}),!1),ye.call(e,e.media,"volumechange",(()=>{e.storage.set({volume:e.volume,muted:e.muted})})),ye.call(e,e.media,"ratechange",(()=>{We.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),ye.call(e,e.media,"qualitychange",(t=>{We.updateSetting.call(e,"quality",null,t.detail.quality)})),ye.call(e,e.media,"ready qualitychange",(()=>{We.setDownloadUrl.call(e)}));const n=e.config.events.concat(["keyup","keydown"]).join(" ");ye.call(e,e.media,n,(n=>{let{detail:r={}}=n;"error"===n.type&&(r=e.media.error),_e.call(e,t.container,n.type,!0,r)}))})),e(this,"proxy",((e,t,n)=>{const{player:r}=this,i=r.config.listeners[n];let o=!0;R(i)&&(o=i.call(r,e)),!1!==o&&R(t)&&t.call(r,e)})),e(this,"bind",((e,t,n,r,i=!0)=>{const{player:o}=this,s=o.config.listeners[r],a=R(s);ye.call(o,e,t,(e=>this.proxy(e,n,r)),i&&!a)})),e(this,"controls",(()=>{const{player:e}=this,{elements:t}=e,n=Y.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((t=>{this.bind(t,"click",(()=>{xe(e.togglePlay())}),"play")})),this.bind(t.buttons.restart,"click",e.restart,"restart"),this.bind(t.buttons.rewind,"click",(()=>{e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),this.bind(t.buttons.fastForward,"click",(()=>{e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),this.bind(t.buttons.mute,"click",(()=>{e.muted=!e.muted}),"mute"),this.bind(t.buttons.captions,"click",(()=>e.toggleCaptions())),this.bind(t.buttons.download,"click",(()=>{_e.call(e,e.media,"download")}),"download"),this.bind(t.buttons.fullscreen,"click",(()=>{e.fullscreen.toggle()}),"fullscreen"),this.bind(t.buttons.pip,"click",(()=>{e.pip="toggle"}),"pip"),this.bind(t.buttons.airplay,"click",e.airplay,"airplay"),this.bind(t.buttons.settings,"click",(t=>{t.stopPropagation(),t.preventDefault(),We.toggleMenu.call(e,t)}),null,!1),this.bind(t.buttons.settings,"keyup",(t=>{["Space","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),We.toggleMenu.call(e,t)):We.focusFirstMenuItem.call(e,null,!0))}),null,!1),this.bind(t.settings.menu,"keydown",(t=>{"Escape"===t.key&&We.toggleMenu.call(e,t)})),this.bind(t.inputs.seek,"mousedown mousemove",(e=>{const n=t.progress.getBoundingClientRect(),r=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",r)})),this.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(t=>{const n=t.currentTarget,r="play-on-seeked";if(z(t)&&!["ArrowLeft","ArrowRight"].includes(t.key))return;e.lastSeekTime=Date.now();const i=n.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(t.type);i&&o?(n.removeAttribute(r),xe(e.play())):!o&&e.playing&&(n.setAttribute(r,""),e.pause())})),Y.isIos){const t=le.call(e,'input[type="range"]');Array.from(t).forEach((e=>this.bind(e,n,(e=>G(e.target)))))}this.bind(t.inputs.seek,n,(t=>{const n=t.currentTarget;let r=n.getAttribute("seek-value");W(r)&&(r=n.value),n.removeAttribute("seek-value"),e.currentTime=r/n.max*e.duration}),"seek"),this.bind(t.progress,"mouseenter mouseleave mousemove",(t=>We.updateSeekTooltip.call(e,t))),this.bind(t.progress,"mousemove touchmove",(t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.startMove(t)})),this.bind(t.progress,"mouseleave touchend click",(()=>{const{previewThumbnails:t}=e;t&&t.loaded&&t.endMove(!1,!0)})),this.bind(t.progress,"mousedown touchstart",(t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.startScrubbing(t)})),this.bind(t.progress,"mouseup touchend",(t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.endScrubbing(t)})),Y.isWebkit&&Array.from(le.call(e,'input[type="range"]')).forEach((t=>{this.bind(t,"input",(t=>We.updateRangeFill.call(e,t.target)))})),e.config.toggleInvert&&!q(t.display.duration)&&this.bind(t.display.currentTime,"click",(()=>{0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,We.timeUpdate.call(e))})),this.bind(t.inputs.volume,n,(t=>{e.volume=t.target.value}),"volume"),this.bind(t.controls,"mouseenter mouseleave",(n=>{t.controls.hover=!e.touch&&"mouseenter"===n.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((e=>!e.contains(t.container))).forEach((n=>{this.bind(n,"mouseenter mouseleave",(n=>{t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===n.type)}))})),this.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(e=>{t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),this.bind(t.controls,"focusin",(()=>{const{config:n,timers:r}=e;ae(t.controls,n.classNames.noTransition,!0),st.toggleControls.call(e,!0),setTimeout((()=>{ae(t.controls,n.classNames.noTransition,!1)}),0);const i=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout((()=>st.toggleControls.call(e,!1)),i)})),this.bind(t.inputs.volume,"wheel",(t=>{const n=t.webkitDirectionInvertedFromDevice,[r,i]=[t.deltaX,-t.deltaY].map((e=>n?-e:e)),o=Math.sign(Math.abs(r)>Math.abs(i)?r:i);e.increaseVolume(o/50);const{volume:s}=e.media;(1===o&&s<1||-1===o&&s>0)&&t.preventDefault()}),"volume",!1)})),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){const{player:t}=this,{elements:n}=t,{key:r,type:i,altKey:o,ctrlKey:s,metaKey:a,shiftKey:u}=e,c="keydown"===i,l=c&&r===this.lastKey;var h;if(!(o||s||a||u)&&r)if(c){const i=document.activeElement;if(q(i)){const{editable:r}=t.config.selectors,{seek:o}=n.inputs;if(i!==o&&ce(i,r))return;if("Space"===e.key&&ce(i,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l||(h=parseInt(r,10),t.currentTime=t.duration/10*h);break;case"Space":case"k":l||xe(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":l||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":l||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===r&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}toggleMenu(e){We.toggleMenu.call(this.player,e)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var ut=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){e=e.push?e:[e];var i,o,s,a=[],u=e.length,c=u;for(i=function(e,n){n.length&&a.push(e),--c||t(a)};u--;)o=e[u],(s=n[o])?i(o,s):(r[o]=r[o]||[]).push(i)}function o(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function s(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,r,i){var o,s,u=document,c=r.async,l=(r.numRetries||0)+1,h=r.before||e,f=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(f)?((s=u.createElement("link")).rel="stylesheet",s.href=d,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(f)?(s=u.createElement("img")).src=d:((s=u.createElement("script")).src=t,s.async=void 0===c||c),s.onload=s.onerror=s.onbeforeload=function(e){var u=e.type[0];if(o)try{s.sheet.cssText.length||(u="e")}catch(e){18!=e.code&&(u="e")}if("e"==u){if((i+=1)<l)return a(t,n,r,i)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,u,e.defaultPrevented)},!1!==h(t,s)&&u.head.appendChild(s)}function u(e,t,n){var r,i,o=(e=e.push?e:[e]).length,s=o,u=[];for(r=function(e,n,r){if("e"==n&&u.push(e),"b"==n){if(!r)return;u.push(e)}--o||t(u)},i=0;i<s;i++)a(e[i],r,n)}function c(e,n,r){var i,a;if(n&&n.trim&&(i=n),a=(i?r:n)||{},i){if(i in t)throw"LoadJS";t[i]=!0}function c(t,n){u(e,(function(e){s(a,e),t&&s({success:t,error:n},e),o(i,e)}),a)}if(a.returnPromise)return new Promise(c);c()}return c.ready=function(e,t){return i(e,(function(e){s(t,e)})),c},c.done=function(e){o(e,[])},c.reset=function(){t={},n={},r={}},c.isDefined=function(e){return e in t},c}()}));function ct(e){return new Promise(((t,n)=>{ut(e,{success:t,error:n})}))}function lt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,_e.call(this,this.media,e?"play":"pause"))}const ht={setup(){const e=this;ae(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Ne.call(e),I(window.Vimeo)?ht.ready.call(e):ct(e.config.urls.vimeo.sdk).then((()=>{ht.ready.call(e)})).catch((t=>{e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready(){const e=this,t=e.config.vimeo,{premium:n,referrerPolicy:r,...i}=t;let o=e.media.getAttribute("src"),s="";W(o)?(o=e.media.getAttribute(e.config.attributes.embed.id),s=e.media.getAttribute(e.config.attributes.embed.hash)):s=function(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(o);const a=s?{h:s}:{};n&&Object.assign(i,{controls:!1,sidedock:!1});const u=Ge({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative,...a,...i}),c=W(l=o)?null:D(Number(l))?l:l.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:l;var l;const h=ee("iframe"),f=De(e.config.urls.vimeo.iframe,c,u);if(h.setAttribute("src",f),h.setAttribute("allowfullscreen",""),h.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),W(r)||h.setAttribute("referrerPolicy",r),n||!t.customControls)h.setAttribute("data-poster",e.poster),e.media=ie(h,e.media);else{const t=ee("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});t.appendChild(h),e.media=ie(t,e.media)}t.customControls||ze(De(e.config.urls.vimeo.api,f)).then((t=>{!W(t)&&t.thumbnail_url&&st.setPoster.call(e,t.thumbnail_url).catch((()=>{}))})),e.embed=new window.Vimeo.Player(h,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(lt.call(e,!0),e.embed.play()),e.media.pause=()=>(lt.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:d}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>d,set(t){const{embed:n,media:r,paused:i,volume:o}=e,s=i&&!n.hasPlayed;r.seeking=!0,_e.call(e,r,"seeking"),Promise.resolve(s&&n.setVolume(0)).then((()=>n.setCurrentTime(t))).then((()=>s&&n.pause())).then((()=>s&&n.setVolume(o))).catch((()=>{}))}});let p=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>p,set(t){e.embed.setPlaybackRate(t).then((()=>{p=t,_e.call(e,e.media,"ratechange")})).catch((()=>{e.options.speed=[1]}))}});let{volume:m}=e.config;Object.defineProperty(e.media,"volume",{get:()=>m,set(t){e.embed.setVolume(t).then((()=>{m=t,_e.call(e,e.media,"volumechange")}))}});let{muted:v}=e.config;Object.defineProperty(e.media,"muted",{get:()=>v,set(t){const n=!!L(t)&&t;e.embed.setVolume(n?0:e.config.volume).then((()=>{v=n,_e.call(e,e.media,"volumechange")}))}});let y,{loop:g}=e.config;Object.defineProperty(e.media,"loop",{get:()=>g,set(t){const n=L(t)?t:e.config.loop.active;e.embed.setLoop(n).then((()=>{g=n}))}}),e.embed.getVideoUrl().then((t=>{y=t,We.setDownloadUrl.call(e)})).catch((e=>{this.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:()=>y}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((t=>{const[n,r]=t;e.embed.ratio=Me(n,r),Ne.call(this)})),e.embed.setAutopause(e.config.autopause).then((t=>{e.config.autopause=t})),e.embed.getVideoTitle().then((t=>{e.config.title=t,st.setTitle.call(this)})),e.embed.getCurrentTime().then((t=>{d=t,_e.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((t=>{e.media.duration=t,_e.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((t=>{e.media.textTracks=t,Ye.setup.call(e)})),e.embed.on("cuechange",(({cues:t=[]})=>{const n=t.map((e=>function(e){const t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)));Ye.updateCues.call(e,n)})),e.embed.on("loaded",(()=>{e.embed.getPaused().then((t=>{lt.call(e,!t),t||_e.call(e,e.media,"playing")})),q(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(()=>{_e.call(e,e.media,"waiting")})),e.embed.on("bufferend",(()=>{_e.call(e,e.media,"playing")})),e.embed.on("play",(()=>{lt.call(e,!0),_e.call(e,e.media,"playing")})),e.embed.on("pause",(()=>{lt.call(e,!1)})),e.embed.on("timeupdate",(t=>{e.media.seeking=!1,d=t.seconds,_e.call(e,e.media,"timeupdate")})),e.embed.on("progress",(t=>{e.media.buffered=t.percent,_e.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&_e.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((t=>{t!==e.media.duration&&(e.media.duration=t,_e.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(()=>{e.media.seeking=!1,_e.call(e,e.media,"seeked")})),e.embed.on("ended",(()=>{e.media.paused=!0,_e.call(e,e.media,"ended")})),e.embed.on("error",(t=>{e.media.error=t,_e.call(e,e.media,"error")})),t.customControls&&setTimeout((()=>st.build.call(e)),0)}};function ft(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,_e.call(this,this.media,e?"play":"pause"))}function dt(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const pt={setup(){if(ae(this.elements.wrapper,this.config.classNames.embed,!0),I(window.YT)&&R(window.YT.Player))pt.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{R(e)&&e(),pt.ready.call(this)},ct(this.config.urls.youtube.sdk).catch((e=>{this.debug.warn("YouTube API failed to load",e)}))}},getTitle(e){ze(De(this.config.urls.youtube.api,e)).then((e=>{if(I(e)){const{title:t,height:n,width:r}=e;this.config.title=t,st.setTitle.call(this),this.embed.ratio=Me(r,n)}Ne.call(this)})).catch((()=>{Ne.call(this)}))},ready(){const e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(!W(n)&&n.startsWith("youtube-"))return;let r=e.media.getAttribute("src");W(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));const i=W(o=r)?null:o.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:o;var o;const s=ee("div",{id:`${e.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":t.customControls?e.poster:void 0});if(e.media=ie(s,e.media),t.customControls){const t=e=>`https://i.ytimg.com/vi/${i}/${e}default.jpg`;ot(t("maxres"),121).catch((()=>ot(t("sd"),121))).catch((()=>ot(t("hq")))).then((t=>st.setPoster.call(e,t.src))).then((t=>{t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((()=>{}))}e.embed=new window.YT.Player(e.media,{videoId:i,host:dt(t),playerVars:Z({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError(t){if(!e.media.error){const n=t.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:r},_e.call(e,e.media,"error")}},onPlaybackRateChange(t){const n=t.target;e.media.playbackRate=n.getPlaybackRate(),_e.call(e,e.media,"ratechange")},onReady(n){if(R(e.media.play))return;const r=n.target;pt.getTitle.call(e,i),e.media.play=()=>{ft.call(e,!0),r.playVideo()},e.media.pause=()=>{ft.call(e,!1),r.pauseVideo()},e.media.stop=()=>{r.stopVideo()},e.media.duration=r.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(r.getCurrentTime()),set(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,_e.call(e,e.media,"seeking"),r.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>r.getPlaybackRate(),set(e){r.setPlaybackRate(e)}});let{volume:o}=e.config;Object.defineProperty(e.media,"volume",{get:()=>o,set(t){o=t,r.setVolume(100*o),_e.call(e,e.media,"volumechange")}});let{muted:s}=e.config;Object.defineProperty(e.media,"muted",{get:()=>s,set(t){const n=L(t)?t:s;s=n,r[n?"mute":"unMute"](),r.setVolume(100*o),_e.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>r.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const a=r.getAvailablePlaybackRates();e.options.speed=a.filter((t=>e.config.speed.options.includes(t))),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),_e.call(e,e.media,"timeupdate"),_e.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((()=>{e.media.buffered=r.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&_e.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),_e.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((()=>st.build.call(e)),50)},onStateChange(n){const r=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,_e.call(e,e.media,"seeked")),n.data){case-1:_e.call(e,e.media,"timeupdate"),e.media.buffered=r.getVideoLoadedFraction(),_e.call(e,e.media,"progress");break;case 0:ft.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):_e.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(ft.call(e,!0),_e.call(e,e.media,"playing"),e.timers.playing=setInterval((()=>{_e.call(e,e.media,"timeupdate")}),50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),_e.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),ft.call(e,!1);break;case 3:_e.call(e,e.media,"waiting")}_e.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}},mt={setup(){this.media?(ae(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),ae(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&ae(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=ee("div",{class:this.config.classNames.video}),X(this.media,this.elements.wrapper),this.elements.poster=ee("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Ie.setup.call(this):this.isYouTube?pt.setup.call(this):this.isVimeo&&ht.setup.call(this)):this.debug.warn("No media element found!")}};class vt{constructor(t){e(this,"load",(()=>{this.enabled&&(I(window.google)&&I(window.google.ima)?this.ready():ct(this.player.config.urls.googleIMA.sdk).then((()=>{this.ready()})).catch((()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))})))})),e(this,"ready",(()=>{var e;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((()=>{this.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()})),e(this,"setupIMA",(()=>{this.elements.container=ee("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(e=>this.onAdsManagerLoaded(e)),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(e=>this.onAdError(e)),!1),this.requestAds()})),e(this,"requestAds",(()=>{const{container:e}=this.player.elements;try{const t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}})),e(this,"pollCountdown",((e=!1)=>{if(!e)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval((()=>{const e=Ke(Math.max(this.manager.getRemainingTime(),0)),t=`${qe.get("advertisement",this.player.config)} - ${e}`;this.elements.container.setAttribute("data-badge-text",t)}),100)})),e(this,"onAdsManagerLoaded",(e=>{if(!this.enabled)return;const t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(e=>this.onAdError(e))),Object.keys(google.ima.AdEvent.Type).forEach((e=>{this.manager.addEventListener(google.ima.AdEvent.Type[e],(e=>this.onAdEvent(e)))})),this.trigger("loaded")})),e(this,"addCuePoints",(()=>{W(this.cuePoints)||this.cuePoints.forEach((e=>{if(0!==e&&-1!==e&&e<this.player.duration){const t=this.player.elements.progress;if(q(t)){const n=100/this.player.duration*e,r=ee("span",{class:this.player.config.classNames.cues});r.style.left=`${n.toString()}%`,t.appendChild(r)}}}))})),e(this,"onAdEvent",(e=>{const{container:t}=this.player.elements,n=e.getAd(),r=e.getAdData();switch((e=>{_e.call(this.player,this.player.media,`ads${e.replace(/_/g,"").toLowerCase()}`)})(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=t.offsetWidth,n.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&this.player.debug.warn(`Non-fatal ad error: ${r.adError.getMessage()}`)}})),e(this,"onAdError",(e=>{this.cancel(),this.player.debug.warn("Ads error",e)})),e(this,"listeners",(()=>{const{container:e}=this.player.elements;let t;this.player.on("canplay",(()=>{this.addCuePoints()})),this.player.on("ended",(()=>{this.loader.contentComplete()})),this.player.on("timeupdate",(()=>{t=this.player.currentTime})),this.player.on("seeked",(()=>{const e=this.player.currentTime;W(this.cuePoints)||this.cuePoints.forEach(((n,r)=>{t<n&&n<e&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))}))})),window.addEventListener("resize",(()=>{this.manager&&this.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)}))})),e(this,"play",(()=>{const{container:e}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then((()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(e){this.onAdError(e)}})).catch((()=>{}))})),e(this,"resumeContent",(()=>{this.elements.container.style.zIndex="",this.playing=!1,xe(this.player.media.play())})),e(this,"pauseContent",(()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()})),e(this,"cancel",(()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()})),e(this,"loadAds",(()=>{this.managerPromise.then((()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise((e=>{this.on("loaded",e),this.player.debug.log(this.manager)})),this.initialized=!1,this.requestAds()})).catch((()=>{}))})),e(this,"trigger",((e,...t)=>{const n=this.events[e];F(n)&&n.forEach((e=>{R(e)&&e.apply(this,t)}))})),e(this,"on",((e,t)=>(F(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this))),e(this,"startSafetyTimer",((e,t)=>{this.player.debug.log(`Safety timer invoked from: ${t}`),this.safetyTimer=setTimeout((()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")}),e)})),e(this,"clearSafetyTimer",(e=>{M(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${e}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)})),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(((e,t)=>{this.on("loaded",e),this.on("error",t)})),this.load()}get enabled(){const{config:e}=this;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!W(e.publisherId)||K(e.tagUrl))}get tagUrl(){const{config:e}=this;return K(e.tagUrl)?e.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${Ge({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}`}}function yt(e=0,t=0,n=255){return Math.min(Math.max(e,t),n)}const gt=e=>{const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((e=>{const n={};e.split(/\r\n|\n|\r/).forEach((e=>{if(D(n.startTime)){if(!W(e.trim())&&W(n.text)){const t=e.trim().split("#xywh=");[n.text]=t,t[1]&&([n.x,n.y,n.w,n.h]=t[1].split(","))}}else{const t=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);t&&(n.startTime=60*Number(t[1]||0)*60+60*Number(t[2])+Number(t[3])+Number(`0.${t[4]}`),n.endTime=60*Number(t[6]||0)*60+60*Number(t[7])+Number(t[8])+Number(`0.${t[9]}`))}})),n.text&&t.push(n)})),t},bt=(e,t)=>{const n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n};class _t{constructor(t){e(this,"load",(()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)}))})),e(this,"getThumbnails",(()=>new Promise((e=>{const{src:t}=this.player.config.previewThumbnails;if(W(t))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort(((e,t)=>e.height-t.height)),this.player.debug.log("Preview thumbnails",this.thumbnails),e()};if(R(t))t((e=>{this.thumbnails=e,n()}));else{const e=(j(t)?[t]:t).map((e=>this.getThumbnail(e)));Promise.all(e).then(n)}})))),e(this,"getThumbnail",(e=>new Promise((t=>{ze(e).then((n=>{const r={frames:gt(n),height:null,urlPrefix:""};r.frames[0].text.startsWith("/")||r.frames[0].text.startsWith("http://")||r.frames[0].text.startsWith("https://")||(r.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));const i=new Image;i.onload=()=>{r.height=i.naturalHeight,r.width=i.naturalWidth,this.thumbnails.push(r),t()},i.src=r.urlPrefix+r.frames[0].text}))})))),e(this,"startMove",(e=>{if(this.loaded&&U(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t,n;const r=this.player.elements.progress.getBoundingClientRect(),i=100/r.width*(e.pageX-r.left);this.seekTime=this.player.media.duration*(i/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=Ke(this.seekTime);const o=null===(t=this.player.config.markers)||void 0===t||null===(n=t.points)||void 0===n?void 0:n.find((({time:e})=>e===Math.round(this.seekTime)));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}<br>`)}this.showImageAtCurrentTime()}})),e(this,"endMove",(()=>{this.toggleThumbContainer(!1,!0)})),e(this,"startScrubbing",(e=>{(M(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))})),e(this,"endScrubbing",(()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):be.call(this.player,this.player.media,"timeupdate",(()=>{this.mouseDown||this.toggleScrubbingContainer(!1)}))})),e(this,"listeners",(()=>{this.player.on("play",(()=>{this.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(()=>{this.toggleThumbContainer(!1)})),this.player.on("timeupdate",(()=>{this.lastTime=this.player.media.currentTime}))})),e(this,"render",(()=>{this.elements.thumb.container=ee("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=ee("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const e=ee("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=ee("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(e),q(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=ee("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)})),e(this,"destroy",(()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()})),e(this,"showImageAtCurrentTime",(()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const e=this.thumbnails[0].frames.findIndex((e=>this.seekTime>=e.startTime&&this.seekTime<=e.endTime)),t=e>=0;let n=0;this.mouseDown||this.toggleThumbContainer(t),t&&(this.thumbnails.forEach(((t,r)=>{this.loadedImages.includes(t.frames[e].text)&&(n=r)})),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(n)))})),e(this,"loadImage",((e=0)=>{const t=this.showingThumb,n=this.thumbnails[e],{urlPrefix:r}=n,i=n.frames[t],o=n.frames[t].text,s=r+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,i,e,t,o,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const n=new Image;n.src=s,n.dataset.index=t,n.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${s}`),n.onload=()=>this.showImage(n,i,e,t,o,!0),this.loadingImage=n,this.removeOldImages(n)}})),e(this,"showImage",((e,t,n,r,i,o=!0)=>{this.player.debug.log(`Showing thumb: ${i}. num: ${r}. qual: ${n}. newimg: ${o}`),this.setImageSizeAndOffset(e,t),o&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(i)||this.loadedImages.push(i)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,e,t,i))})),e(this,"removeOldImages",(e=>{Array.from(this.currentImageContainer.children).forEach((t=>{if("img"!==t.tagName.toLowerCase())return;const n=this.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;const{currentImageContainer:e}=this;setTimeout((()=>{e.removeChild(t),this.player.debug.log(`Removing thumb: ${t.dataset.filename}`)}),n)}}))})),e(this,"preloadNearby",((e,t=!0)=>new Promise((n=>{setTimeout((()=>{const r=this.thumbnails[0].frames[e].text;if(this.showingThumbFilename===r){let i;i=t?this.thumbnails[0].frames.slice(e):this.thumbnails[0].frames.slice(0,e).reverse();let o=!1;i.forEach((e=>{const t=e.text;if(t!==r&&!this.loadedImages.includes(t)){o=!0,this.player.debug.log(`Preloading thumb filename: ${t}`);const{urlPrefix:e}=this.thumbnails[0],r=e+t,i=new Image;i.src=r,i.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${t}`),this.loadedImages.includes(t)||this.loadedImages.push(t),n()}}})),o||n()}}),300)})))),e(this,"getHigherQuality",((e,t,n,r)=>{if(e<this.thumbnails.length-1){let i=t.naturalHeight;this.usingSprites&&(i=n.h),i<this.thumbContainerHeight&&setTimeout((()=>{this.showingThumbFilename===r&&(this.player.debug.log(`Showing higher quality thumb for: ${r}`),this.loadImage(e+1))}),300)}})),e(this,"toggleThumbContainer",((e=!1,t=!1)=>{const n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)})),e(this,"toggleScrubbingContainer",((e=!1)=>{const t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)})),e(this,"determineContainerAutoSizing",(()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)})),e(this,"setThumbContainerSizeAndPos",(()=>{const{imageContainer:e}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){const t=Math.floor(e.clientHeight*this.thumbAspectRatio);e.style.width=`${t}px`}else if(e.clientHeight<20&&e.clientWidth>20){const t=Math.floor(e.clientWidth/this.thumbAspectRatio);e.style.height=`${t}px`}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);e.style.height=`${this.thumbContainerHeight}px`,e.style.width=`${t}px`}this.setThumbContainerPos()})),e(this,"setThumbContainerPos",(()=>{const e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,r=t.left-e.left+10,i=t.right-e.left-n.clientWidth-10,o=this.mousePosX-e.left-n.clientWidth/2,s=yt(o,r,i);n.style.left=`${s}px`,n.style.setProperty("--preview-arrow-offset",o-s+"px")})),e(this,"setScrubbingContainerSize",(()=>{const{width:e,height:t}=bt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${e}px`,this.elements.scrubbing.container.style.height=`${t}px`})),e(this,"setImageSizeAndOffset",((e,t)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*n+"px",e.style.width=e.naturalWidth*n+"px",e.style.left=`-${t.x*n}px`,e.style.top=`-${t.y*n}px`})),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:e}=bt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return e}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}const wt={insertElements(e,t){j(t)?te(e,this.media,{src:t}):F(t)&&t.forEach((t=>{te(e,this.media,t)}))},change(e){J(e,"sources.length")?(Ie.cancelRequests.call(this),this.destroy.call(this,(()=>{this.options.quality=[],ne(this.media),this.media=null,q(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:n}=e,[{provider:r=Qe.html5,src:i}]=t,o="html5"===r?n:"div",s="html5"===r?{}:{src:i};Object.assign(this,{provider:r,type:n,supported:pe.check(n,r,this.config.playsinline),media:ee(o,s)}),this.elements.container.appendChild(this.media),L(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),W(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),st.addStyleHook.call(this),this.isHTML5&&wt.insertElements.call(this,"source",t),this.config.title=e.title,mt.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&wt.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&st.build.call(this),this.isHTML5&&this.media.load(),W(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new _t(this))),this.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};class kt{constructor(t,n){if(e(this,"play",(()=>R(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((()=>this.ads.play())).catch((()=>xe(this.media.play()))),this.media.play()):null)),e(this,"pause",(()=>this.playing&&R(this.media.pause)?this.media.pause():null)),e(this,"togglePlay",(e=>(L(e)?e:!this.playing)?this.play():this.pause())),e(this,"stop",(()=>{this.isHTML5?(this.pause(),this.restart()):R(this.media.stop)&&this.media.stop()})),e(this,"restart",(()=>{this.currentTime=0})),e(this,"rewind",(e=>{this.currentTime-=D(e)?e:this.config.seekTime})),e(this,"forward",(e=>{this.currentTime+=D(e)?e:this.config.seekTime})),e(this,"increaseVolume",(e=>{const t=this.media.muted?0:this.volume;this.volume=t+(D(e)?e:0)})),e(this,"decreaseVolume",(e=>{this.increaseVolume(-e)})),e(this,"airplay",(()=>{pe.airplay&&this.media.webkitShowPlaybackTargetPicker()})),e(this,"toggleControls",(e=>{if(this.supported.ui&&!this.isAudio){const t=ue(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,r=ae(this.elements.container,this.config.classNames.hideControls,n);if(r&&F(this.config.controls)&&this.config.controls.includes("settings")&&!W(this.config.settings)&&We.toggleMenu.call(this,!1),r!==t){const e=r?"controlshidden":"controlsshown";_e.call(this,this.media,e)}return!r}return!1})),e(this,"on",((e,t)=>{ye.call(this,this.elements.container,e,t)})),e(this,"once",((e,t)=>{be.call(this,this.elements.container,e,t)})),e(this,"off",((e,t)=>{ge(this.elements.container,e,t)})),e(this,"destroy",((e,t=!1)=>{if(!this.ready)return;const n=()=>{document.body.style.overflow="",this.embed=null,t?(Object.keys(this.elements).length&&(ne(this.elements.buttons.play),ne(this.elements.captions),ne(this.elements.controls),ne(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),R(e)&&e()):(we.call(this),Ie.cancelRequests.call(this),ie(this.elements.original,this.elements.container),_e.call(this,this.elements.original,"destroyed",!0),R(e)&&e.call(this.elements.original),this.ready=!1,setTimeout((()=>{this.elements=null,this.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(st.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&R(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(n),setTimeout(n,200))})),e(this,"supports",(e=>pe.mime.call(this,e))),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=pe.touch,this.media=t,j(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||B(this.media)||F(this.media))&&(this.media=this.media[0]),this.config=Z({},Je,kt.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(e){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new rt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",pe),M(this.media)||!q(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!pe.check().api)return void this.debug.error("Setup failed: no support");const r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;const i=this.media.tagName.toLowerCase();let o=null,s=null;switch(i){case"div":if(o=this.media.querySelector("iframe"),q(o)){if(s=$e(o.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Qe.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Qe.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",s.search.length){const e=["1","true"];e.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),e.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=e.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(W(this.provider)||!Object.values(Qe).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=tt;break;case"video":case"audio":this.type=i,this.provider=Qe.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=pe.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new at(this),this.storage=new Ue(this),this.media.plyr=this,q(this.elements.container)||(this.elements.container=ee("div",{tabindex:0}),X(this.media,this.elements.container)),st.migrateStyles.call(this),st.addStyleHook.call(this),mt.setup.call(this),this.config.debug&&ye.call(this,this.elements.container,this.config.events.join(" "),(e=>{this.debug.log(`event: ${e.type}`)})),this.fullscreen=new it(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&st.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new vt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(()=>xe(this.play()))),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new _t(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Qe.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Qe.youtube}get isVimeo(){return this.provider===Qe.vimeo}get isVideo(){return this.type===tt}get isAudio(){return this.type===et}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(e){if(!this.duration)return;const t=D(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:e}=this.media;return D(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=D(t)&&t!==1/0?t:0;return e||n}set volume(e){let t=e;j(t)&&(t=Number(t)),D(t)||(t=this.storage.get("volume")),D(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!W(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;L(t)||(t=this.storage.get("muted")),L(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(e){let t=null;D(e)&&(t=e),D(t)||(t=this.storage.get("speed")),D(t)||(t=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:r}=this;t=yt(t,n,r),this.config.speed.selected=t,setTimeout((()=>{this.media&&(this.media.playbackRate=t)}),0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){const t=this.config.quality,n=this.options.quality;if(!n.length)return;let r=[!W(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(D),i=!0;if(!n.includes(r)){const e=Se(n,r);this.debug.warn(`Unsupported quality option: ${r}, using ${e} instead`),r=e,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}get quality(){return this.media.quality}set loop(e){const t=L(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return Boolean(this.media.loop)}set source(e){wt.change.call(this,e)}get source(){return this.media.currentSrc}get download(){const{download:e}=this.config.urls;return K(e)?e:this.source}set download(e){K(e)&&(this.config.urls.download=e,We.setDownloadUrl.call(this))}set poster(e){this.isVideo?st.setPoster.call(this,e,!1).catch((()=>{})):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const e=Ce(Pe.call(this));return F(e)?e.join(":"):e}set ratio(e){this.isVideo?j(e)&&Oe(e)?(this.config.ratio=Ce(e),Ne.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(e){this.config.autoplay=L(e)?e:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(e){Ye.toggle.call(this,e,!1)}set currentTrack(e){Ye.set.call(this,e,!1),Ye.setup.call(this)}get currentTrack(){const{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){Ye.setLanguage.call(this,e,!1)}get language(){return(Ye.getCurrentTrack.call(this)||{}).language}set pip(e){if(!pe.pip)return;const t=L(e)?e:!this.pip;R(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Ze:Xe),R(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return pe.pip?W(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Ze:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new _t(this))}static supported(e,t,n){return pe.check(e,t,n)}static loadSprite(e,t){return Ve(e,t)}static setup(e,t={}){let n=null;return j(e)?n=Array.from(document.querySelectorAll(e)):B(e)?n=Array.from(e):F(e)&&(n=e.filter(q)),W(n)?null:n.map((e=>new kt(e,t)))}}var xt;return kt.defaults=(xt=Je,JSON.parse(JSON.stringify(xt))),kt}())},64529:function(e){var t;window,t=function(){return function(){var e={282:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var r=n(883);t.addChoice=function(e){var t=e.value,n=e.label,i=e.id,o=e.groupId,s=e.disabled,a=e.elementId,u=e.customProperties,c=e.placeholder,l=e.keyCode;return{type:r.ACTION_TYPES.ADD_CHOICE,value:t,label:n,id:i,groupId:o,disabled:s,elementId:a,customProperties:u,placeholder:c,keyCode:l}},t.filterChoices=function(e){return{type:r.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:r.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:r.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var r=n(883);t.addGroup=function(e){var t=e.value,n=e.id,i=e.active,o=e.disabled;return{type:r.ACTION_TYPES.ADD_GROUP,value:t,id:n,active:i,disabled:o}}},464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var r=n(883);t.addItem=function(e){var t=e.value,n=e.label,i=e.id,o=e.choiceId,s=e.groupId,a=e.customProperties,u=e.placeholder,c=e.keyCode;return{type:r.ACTION_TYPES.ADD_ITEM,value:t,label:n,id:i,choiceId:o,groupId:s,customProperties:a,placeholder:u,keyCode:c}},t.removeItem=function(e,t){return{type:r.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:r.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var r=n(883);t.clearAll=function(){return{type:r.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:r.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:r.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(996)),s=i(n(70)),a=n(282),u=n(783),c=n(464),l=n(137),h=n(520),f=n(883),d=n(789),p=n(799),m=n(655),v=i(n(744)),y=i(n(686)),g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,b={},_=function(){function e(t,n){var i=this;void 0===t&&(t="[data-choice]"),void 0===n&&(n={}),this.config=o.default.all([d.DEFAULT_CONFIG,e.defaults.options,n],{arrayMerge:function(e,t){return r([],t,!0)}});var s=(0,p.diff)(this.config,d.DEFAULT_CONFIG);s.length&&console.warn("Unknown config option(s) passed",s.join(", "));var a="string"==typeof t?document.querySelector(t):t;if(!(a instanceof HTMLInputElement||a instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=a.type===f.TEXT_TYPE,this._isSelectOneElement=a.type===f.SELECT_ONE_TYPE,this._isSelectMultipleElement=a.type===f.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),n.addItemFilter&&"function"!=typeof n.addItemFilter){var u=n.addItemFilter instanceof RegExp?n.addItemFilter:new RegExp(n.addItemFilter);this.config.addItemFilter=u.test.bind(u)}if(this._isTextElement?this.passedElement=new h.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new h.WrappedSelect({element:a,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new v.default,this._initialState=m.defaultState,this._currentState=m.defaultState,this._prevState=m.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,p.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var c=window.getComputedStyle(this.passedElement.element).direction;c!==window.getComputedStyle(document.documentElement).direction&&(this._direction=c)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var l=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(l)}if(this.passedElement.options&&this.passedElement.options.forEach((function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.dataset["custom-properties"]})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:t}),void(this.initialised=!0);this.init()}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return b},get templates(){return y.default}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=y.default,this.initialised=!1)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var n=e.id,r=e.groupId,i=void 0===r?-1:r,o=e.value,s=void 0===o?"":o,a=e.label,u=void 0===a?"":a,l=i>=0?this._store.getGroupById(i):null;return this._store.dispatch((0,c.highlightItem)(n,!0)),t&&this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:n,value:s,label:u,groupValue:l&&l.value?l.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,n=e.groupId,r=void 0===n?-1:n,i=e.value,o=void 0===i?"":i,s=e.label,a=void 0===s?"":s,u=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,c.highlightItem)(t,!1)),this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:t,value:o,label:a,groupValue:u&&u.value?u.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(n){t._removeItem(n),e&&t._triggerChange(n.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(f.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(f.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,n){var r=e?n.value:n;return t.push(r),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,n,r){var i=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===n&&(n="label"),void 0===r&&(r=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(r&&this.clearChoices(),"function"==typeof e){var o=e(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return i._handleLoadingState(!0)})).then((function(){return o})).then((function(e){return i.setChoices(e,t,n,r)})).catch((function(e){i.config.silent||console.error(e)})).then((function(){return i._handleLoadingState(!1)})).then((function(){return i}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,t,n,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)i._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:n});else{var r=e;i._addChoice({value:r[t],label:r[n],isSelected:!!r.selected,isDisabled:!!r.disabled,placeholder:!!r.placeholder,customProperties:r.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,l.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,n=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,n=t.activeGroups,r=t.activeChoices,i=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var o=r.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));o.length>=1&&(i=this._createChoicesFragment(o,i)),i=this._createGroupsFragment(n,r,i)}else r.length>=1&&(i=this._createChoicesFragment(r,i));if(i.childNodes&&i.childNodes.length>0){var s=this._store.activeItems,a=this._canAddItem(s,this.input.value);if(a.response)this.choiceList.append(i),this._highlightChoice();else{var u=this._getTemplate("notice",a.notice);this.choiceList.append(u)}}else{var c=void 0;u=void 0,this._isSearching?(u="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",u,"no-results")):(u="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",u,"no-choices")),this.choiceList.append(c)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,n){var r=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var i=function(e){return t.filter((function(t){return r._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===r.config.renderSelectedChoices||!t.selected)}))}(e);if(i.length>=1){var o=r._getTemplate("choiceGroup",e);n.appendChild(o),r._createChoicesFragment(i,n,!0)}})),n},e.prototype._createChoicesFragment=function(e,t,n){var i=this;void 0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1);var o=this.config,s=o.renderSelectedChoices,a=o.searchResultLimit,u=o.renderChoiceLimit,c=this._isSearching?p.sortByScore:this.config.sorter,l=function(e){if("auto"!==s||i._isSelectOneElement||!e.selected){var n=i._getTemplate("choice",e,i.config.itemSelectText);t.appendChild(n)}},h=e;"auto"!==s||this._isSelectOneElement||(h=e.filter((function(e){return!e.selected})));var f=h.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),d=f.placeholderChoices,m=f.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(c);var v=h.length,y=this._isSelectOneElement?r(r([],d,!0),m,!0):m;this._isSearching?v=a:u&&u>0&&!n&&(v=u);for(var g=0;g<v;g+=1)y[g]&&l(y[g]);return t},e.prototype._createItemsFragment=function(e,t){var n=this;void 0===t&&(t=document.createDocumentFragment());var r=this.config,i=r.shouldSortItems,o=r.sorter,s=r.removeItemButton;return i&&!this._isSelectOneElement&&e.sort(o),this._isTextElement?this.passedElement.value=e.map((function(e){return e.value})).join(this.config.delimiter):this.passedElement.options=e,e.forEach((function(e){var r=n._getTemplate("item",e,s);t.appendChild(r)})),t},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(f.EVENTS.change,{value:e})},e.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},e.prototype._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var n=t.parentNode&&t.parentNode.dataset.id,r=n&&e.find((function(e){return e.id===parseInt(n,10)}));r&&(this._removeItem(r),this._triggerChange(r.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},e.prototype._handleItemAction=function(e,t,n){var r=this;if(void 0===n&&(n=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var i=t.dataset.id;e.forEach((function(e){e.id!==parseInt("".concat(i),10)||e.highlighted?!n&&e.highlighted&&r.unhighlightItem(e):r.highlightItem(e)})),this.input.focus()}},e.prototype._handleChoiceAction=function(e,t){if(e&&t){var n=t.dataset.id,r=n&&this._store.getChoiceById(n);if(r){var i=e[0]&&e[0].keyCode?e[0].keyCode:void 0,o=this.dropdown.isActive;r.keyCode=i,this.passedElement.triggerEvent(f.EVENTS.choice,{choice:r}),r.selected||r.disabled||this._canAddItem(e,r.value).response&&(this._addItem({value:r.value,label:r.label,choiceId:r.id,groupId:r.groupId,customProperties:r.customProperties,placeholder:r.placeholder,keyCode:r.keyCode}),this._triggerChange(r.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},e.prototype._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],n=e.some((function(e){return e.highlighted}));this.config.editItems&&!n&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(n||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},e.prototype._startLoading=function(){this._store.dispatch((0,l.setIsLoading)(!0))},e.prototype._stopLoading=function(){this._store.dispatch((0,l.setIsLoading)(!1))},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(e){if(e&&this.input.isFocussed){var t=this._store.choices,n=this.config,r=n.searchFloor,i=n.searchChoices,o=t.some((function(e){return!e.active}));if(e&&e.length>=r){var s=i?this._searchChoices(e):0;this.passedElement.triggerEvent(f.EVENTS.search,{value:e,resultCount:s})}else o&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var n=!0,r="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var i=(0,p.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(n=!1,r="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&i&&n&&(n=!1,r="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,r="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:n,notice:r}},e.prototype._searchChoices=function(e){var t="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(n," "))return 0;var i=this._store.searchableChoices,o=t,u=r([],this.config.searchFields,!0),c=Object.assign(this.config.fuseOptions,{keys:u,includeMatches:!0}),l=new s.default(i,c).search(o);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(l)),l.length},e.prototype._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,n=this._store.activeItems,r=this.input.isFocussed,i=this.dropdown.isActive,o=this.itemList.hasChildren(),s=String.fromCharCode(t),a=/[a-zA-Z0-9-_ ]/.test(s),u=f.KEY_CODES.BACK_KEY,c=f.KEY_CODES.DELETE_KEY,l=f.KEY_CODES.ENTER_KEY,h=f.KEY_CODES.A_KEY,d=f.KEY_CODES.ESC_KEY,p=f.KEY_CODES.UP_KEY,m=f.KEY_CODES.DOWN_KEY,v=f.KEY_CODES.PAGE_UP_KEY,y=f.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||i||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=s.toLowerCase())),t){case h:return this._onSelectKey(e,o);case l:return this._onEnterKey(e,n,i);case d:return this._onEscapeKey(i);case p:case v:case m:case y:return this._onDirectionKey(e,i);case c:case u:return this._onDeleteKey(e,n,r)}},e.prototype._onKeyUp=function(e){var t=e.target,n=e.keyCode,r=this.input.value,i=this._store.activeItems,o=this._canAddItem(i,r),s=f.KEY_CODES.BACK_KEY,u=f.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&r){var c=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var l=(n===s||n===u)&&t&&!t.value,h=!this._isTextElement&&this._isSearching,d=this._canSearch&&o.response;l&&h?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):d&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var n=e.ctrlKey,r=e.metaKey;(n||r)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e,t,n){var r=e.target,i=f.KEY_CODES.ENTER_KEY,o=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var s=this.input.value;this._canAddItem(t,s).response&&(this.hideDropdown(!0),this._addItem({value:s}),this._triggerChange(s),this.clearInput())}if(o&&(this._handleButtonAction(t,r),e.preventDefault()),n){var a=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));a&&(t[0]&&(t[0].keyCode=i),this._handleChoiceAction(t,a)),e.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e,t){var n=e.keyCode,r=e.metaKey,i=f.KEY_CODES.DOWN_KEY,o=f.KEY_CODES.PAGE_UP_KEY,s=f.KEY_CODES.PAGE_DOWN_KEY;if(t||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var a=n===i||n===s?1:-1,u="[data-choice-selectable]",c=void 0;if(r||n===s||n===o)c=a>0?this.dropdown.element.querySelector("".concat(u,":last-of-type")):this.dropdown.element.querySelector(u);else{var l=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=l?(0,p.getAdjacentEl)(l,u,a):this.dropdown.element.querySelector(u)}c&&((0,p.isScrolledIntoView)(c,this.choiceList.element,a)||this.choiceList.scrollToChildElement(c,a),this._highlightChoice(c)),e.preventDefault()}},e.prototype._onDeleteKey=function(e,t,n){var r=e.target;this._isSelectOneElement||r.value||!n||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(g&&this.choiceList.element.contains(t)){var n=this.choiceList.element.firstElementChild,r="ltr"===this._direction?e.offsetX>=n.offsetWidth:e.offsetX<n.offsetLeft;this._isScrollingOnIe=r}if(t!==this.input.element){var i=t.closest("[data-button],[data-item],[data-choice]");if(i instanceof HTMLElement){var o=e.shiftKey,s=this._store.activeItems,a=i.dataset;"button"in a?this._handleButtonAction(s,i):"item"in a?this._handleItemAction(s,i,o):"choice"in a&&this._handleChoiceAction(s,i)}e.preventDefault()}}},e.prototype._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},e.prototype._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,n=this,r=e.target;r&&this.containerOuter.element.contains(r)&&((t={})[f.TEXT_TYPE]=function(){r===n.input.element&&n.containerOuter.addFocusState()},t[f.SELECT_ONE_TYPE]=function(){n.containerOuter.addFocusState(),r===n.input.element&&n.showDropdown(!0)},t[f.SELECT_MULTIPLE_TYPE]=function(){r===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,n=this,r=e.target;if(r&&this.containerOuter.element.contains(r)&&!this._isScrollingOnIe){var i=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[f.TEXT_TYPE]=function(){r===n.input.element&&(n.containerOuter.removeFocusState(),i&&n.unhighlightAll(),n.hideDropdown(!0))},t[f.SELECT_ONE_TYPE]=function(){n.containerOuter.removeFocusState(),(r===n.input.element||r===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!0)},t[f.SELECT_MULTIPLE_TYPE]=function(){r===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),i&&n.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,l.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var r=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),r?this._highlightPosition=n.indexOf(r):(r=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(r=n[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(f.EVENTS.highlightChoice,{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},e.prototype._addItem=function(e){var t=e.value,n=e.label,r=void 0===n?null:n,i=e.choiceId,o=void 0===i?-1:i,s=e.groupId,a=void 0===s?-1:s,u=e.customProperties,l=void 0===u?{}:u,h=e.placeholder,d=void 0!==h&&h,p=e.keyCode,m=void 0===p?-1:p,v="string"==typeof t?t.trim():t,y=this._store.items,g=r||v,b=o||-1,_=a>=0?this._store.getGroupById(a):null,w=y?y.length+1:1;this.config.prependValue&&(v=this.config.prependValue+v.toString()),this.config.appendValue&&(v+=this.config.appendValue.toString()),this._store.dispatch((0,c.addItem)({value:v,label:g,id:w,choiceId:b,groupId:a,customProperties:l,placeholder:d,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(w),this.passedElement.triggerEvent(f.EVENTS.addItem,{id:w,value:v,label:g,customProperties:l,groupValue:_&&_.value?_.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,n=e.value,r=e.label,i=e.customProperties,o=e.choiceId,s=e.groupId,a=s&&s>=0?this._store.getGroupById(s):null;t&&o&&(this._store.dispatch((0,c.removeItem)(t,o)),this.passedElement.triggerEvent(f.EVENTS.removeItem,{id:t,value:n,label:r,customProperties:i,groupValue:a&&a.value?a.value:null}))},e.prototype._addChoice=function(e){var t=e.value,n=e.label,r=void 0===n?null:n,i=e.isSelected,o=void 0!==i&&i,s=e.isDisabled,u=void 0!==s&&s,c=e.groupId,l=void 0===c?-1:c,h=e.customProperties,f=void 0===h?{}:h,d=e.placeholder,p=void 0!==d&&d,m=e.keyCode,v=void 0===m?-1:m;if(null!=t){var y=this._store.choices,g=r||t,b=y?y.length+1:1,_="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(b);this._store.dispatch((0,a.addChoice)({id:b,groupId:l,elementId:_,value:t,label:g,disabled:u,customProperties:f,placeholder:p,keyCode:v})),o&&this._addItem({value:t,label:g,choiceId:b,customProperties:f,placeholder:p,keyCode:v})}},e.prototype._addGroup=function(e){var t=this,n=e.group,r=e.id,i=e.valueKey,o=void 0===i?"value":i,s=e.labelKey,a=void 0===s?"label":s,c=(0,p.isType)("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),l=r||Math.floor((new Date).valueOf()*Math.random()),h=!!n.disabled&&n.disabled;c?(this._store.dispatch((0,u.addGroup)({value:n.label,id:l,active:!0,disabled:h})),c.forEach((function(e){var n=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[o],label:(0,p.isType)("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,u.addGroup)({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},e.prototype._getTemplate=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.config.classNames;return(t=this._templates[e]).call.apply(t,r([this,o],n,!1))},e.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,p.strToEl)),this._templates=(0,o.default)(y.default,t)},e.prototype._createElements=function(){this.containerOuter=new h.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new h.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new h.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new h.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new h.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new h.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},e.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},e.prototype._addPredefinedGroups=function(e){var t=this,n=this.passedElement.placeholderOption;n&&n.parentNode&&"SELECT"===n.parentNode.tagName&&this._addChoice({value:n.value,label:n.innerHTML,isSelected:n.selected,isDisabled:n.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},e.prototype._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var n=e.some((function(e){return e.selected})),r=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,i){var o=e.value,s=void 0===o?"":o,a=e.label,u=e.customProperties,c=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var l=!(!t._isSelectOneElement||n||i!==r)||e.selected,h=e.disabled;t._addChoice({value:s,label:a,isSelected:!!l,isDisabled:!!h,placeholder:!!c,customProperties:u})}else t._addChoice({value:s,label:a,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:u})}))},e.prototype._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},e.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,p.getType)(e).toLowerCase()]()},e.prototype._findAndSelectChoiceByValue=function(e){var t=this,n=this._store.choices.find((function(n){return t.config.valueComparer(n.value,e)}));n&&!n.selected&&this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})},e.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return e?e.text:null}var t=this.config,n=t.placeholder,r=t.placeholderValue,i=this.passedElement.element.dataset;if(n){if(r)return r;if(i.placeholder)return i.placeholder}return null},e}();t.default=_},613:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(799),i=n(883),o=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,i=e.position;this.element=t,this.classNames=r,this.type=n,this.position=i,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:"top"===this.position&&(t=!0),t},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===i.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===i.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,r.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},217:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){var t=e.element,n=e.type,r=e.classNames;this.element=t,this.classNames=r,this.type=n,this.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}();t.default=n},520:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var i=r(n(217));t.Dropdown=i.default;var o=r(n(613));t.Container=o.default;var s=r(n(11));t.Input=s.default;var a=r(n(624));t.List=a.default;var u=r(n(541));t.WrappedInput=u.default;var c=r(n(982));t.WrappedSelect=c.default},11:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(799),i=n(883),o=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,i=e.preventPaste;this.element=t,this.type=n,this.classNames=r,this.preventPaste=i,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,r.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,t=e.style,n=e.value,r=e.placeholder;t.minWidth="".concat(r.length+1,"ch"),t.width="".concat(n.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==i.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(883),i=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=""},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var n=this;if(e){var r=this.element.offsetHeight,i=this.element.scrollTop+r,o=e.offsetHeight,s=e.offsetTop+o,a=t>0?this.element.scrollTop+s-i:e.offsetTop;requestAnimationFrame((function(){n._animateScroll(a,t)}))}},e.prototype._scrollDown=function(e,t,n){var r=(n-e)/t,i=r>1?r:1;this.element.scrollTop=e+i},e.prototype._scrollUp=function(e,t,n){var r=(e-n)/t,i=r>1?r:1;this.element.scrollTop=e-i},e.prototype._animateScroll=function(e,t){var n=this,i=r.SCROLLING_SPEED,o=this.element.scrollTop,s=!1;t>0?(this._scrollDown(o,i,e),o<e&&(s=!0)):(this._scrollUp(o,i,e),o>e&&(s=!0)),s&&requestAnimationFrame((function(){n._animateScroll(e,t)}))},e}();t.default=i},730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(799),i=function(){function e(e){var t=e.element,n=e.classNames;if(this.element=t,this.classNames=n,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,r.dispatchEvent)(this.element,e,t)},e}();t.default=i},541:function(e,t,n){"use strict";var r,i=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])},r(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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,r=t.classNames,i=t.delimiter,o=e.call(this,{element:n,classNames:r})||this;return o.delimiter=i,o}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(o(n(730)).default);t.default=s},982:function(e,t,n){"use strict";var r,i=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])},r(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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,r=t.classNames,i=t.template,o=e.call(this,{element:n,classNames:r})||this;return o.template=i,o}return i(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,n=document.createDocumentFragment();e.forEach((function(e){return r=e,i=t.template(r),void n.appendChild(i);var r,i})),this.appendDocFragment(n)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},t}(o(n(730)).default);t.default=s},883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var r=n(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:r.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat((0,r.sanitise)(e),'"</b>')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},799:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join("")},t.generateId=function(e,n){var r=e.id||e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return r=r.replace(/(:|\.|\[|\]|,)/g,""),r="".concat(n,"-").concat(r)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,n){return null!=n&&(0,t.getType)(n)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,n){void 0===n&&(n=1);for(var r="".concat(n>0?"next":"previous","ElementSibling"),i=e[r];i;){if(i.matches(t))return i;i=i[r]}return i},t.isScrolledIntoView=function(e,t,n){return void 0===n&&(n=1),!!e&&(n>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},t.strToEl=(n=document.createElement("div"),function(e){var t=e.trim();n.innerHTML=t;for(var r=n.children[0];n.firstChild;)n.removeChild(n.firstChild);return r}),t.sortByAlpha=function(e,t){var n=e.value,r=e.label,i=void 0===r?n:r,o=t.value,s=t.label,a=void 0===s?o:s;return i.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},t.sortByScore=function(e,t){var n=e.score,r=void 0===n?0:n,i=t.score;return r-(void 0===i?0:i)},t.dispatchEvent=function(e,t,n){void 0===n&&(n=null);var r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});return e.dispatchEvent(r)},t.existsInArray=function(e,t,n){return void 0===n&&(n="value"),e.some((function(e){return"string"==typeof t?e[n]===t.trim():e[n]===t}))},t.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},t.diff=function(e,t){var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.filter((function(e){return r.indexOf(e)<0}))}},273:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_CHOICE":var i=r,o={id:i.id,elementId:i.elementId,groupId:i.groupId,value:i.value,label:i.label||i.value,disabled:i.disabled||!1,selected:!1,active:!0,score:9999,customProperties:i.customProperties,placeholder:i.placeholder||!1};return n(n([],e,!0),[o],!1);case"ADD_ITEM":var s=r;return s.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(s.choiceId),10)&&(t.selected=!0),t})):e;case"REMOVE_ITEM":var a=r;return a.choiceId&&a.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(a.choiceId),10)&&(t.selected=!1),t})):e;case"FILTER_CHOICES":var u=r;return e.map((function(e){var t=e;return t.active=u.results.some((function(e){var n=e.item,r=e.score;return n.id===t.id&&(t.score=r,!0)})),t}));case"ACTIVATE_CHOICES":var c=r;return e.map((function(e){var t=e;return t.active=c.active,t}));case"CLEAR_CHOICES":return t.defaultState;default:return e}}},871:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_GROUP":var i=r;return n(n([],e,!0),[{id:i.id,value:i.value,active:i.active,disabled:i.disabled}],!1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0;var i=n(857),o=r(n(52)),s=r(n(871)),a=r(n(273)),u=r(n(502)),c=n(799);t.defaultState={groups:[],items:[],choices:[],loading:!1};var l=(0,i.combineReducers)({items:o.default,groups:s.default,choices:a.default,loading:u.default});t.default=function(e,n){var r=e;if("CLEAR_ALL"===n.type)r=t.defaultState;else if("RESET_TO"===n.type)return(0,c.cloneObject)(n.state);return l(r,n)}},52:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_ITEM":var i=r;return n(n([],e,!0),[{id:i.id,choiceId:i.choiceId,groupId:i.groupId,value:i.value,label:i.label,active:!0,highlighted:!1,customProperties:i.customProperties,placeholder:i.placeholder||!1,keyCode:null}],!1).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var t=e;return t.id===r.id&&(t.active=!1),t}));case"HIGHLIGHT_ITEM":var o=r;return e.map((function(e){var t=e;return t.id===o.id&&(t.highlighted=o.highlighted),t}));default:return e}}},502:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,n){return void 0===e&&(e=t.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?n.isLoading:e}},744:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(857),s=i(n(655)),a=function(){function e(){this._store=(0,o.createStore)(s.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return e.prototype.subscribe=function(e){this._store.subscribe(e)},e.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(e.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItems",{get:function(){return this.items.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholderChoice",{get:function(){return r([],this.choices,!0).reverse().find((function(e){return!0===e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var n=!0===e.active&&!1===e.disabled,r=t.some((function(e){return!0===e.active&&!1===e.disabled}));return n&&r}),[])},enumerable:!1,configurable:!0}),e.prototype.isLoading=function(){return this.state.loading},e.prototype.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},e.prototype.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},e}();t.default=a},686:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={containerOuter:function(e,t,n,r,i,o){var s=e.containerOuter,a=Object.assign(document.createElement("div"),{className:s});return a.dataset.type=o,t&&(a.dir=t),r&&(a.tabIndex=0),n&&(a.setAttribute("role",i?"combobox":"listbox"),i&&a.setAttribute("aria-autocomplete","list")),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"),a},containerInner:function(e){var t=e.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var n=e.list,r=e.listSingle,i=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(t?r:i)})},placeholder:function(e,t){var n=e.placeholder;return Object.assign(document.createElement("div"),{className:n,innerHTML:t})},item:function(e,t,n){var r=e.item,i=e.button,o=e.highlightedState,s=e.itemSelectable,a=e.placeholder,u=t.id,c=t.value,l=t.label,h=t.customProperties,f=t.active,d=t.disabled,p=t.highlighted,m=t.placeholder,v=Object.assign(document.createElement("div"),{className:r,innerHTML:l});if(Object.assign(v.dataset,{item:"",id:u,value:c,customProperties:h}),f&&v.setAttribute("aria-selected","true"),d&&v.setAttribute("aria-disabled","true"),m&&v.classList.add(a),v.classList.add(p?o:s),n){d&&v.classList.remove(s),v.dataset.deletable="";var y="Remove item",g=Object.assign(document.createElement("button"),{type:"button",className:i,innerHTML:y});g.setAttribute("aria-label","".concat(y,": '").concat(c,"'")),g.dataset.button="",v.appendChild(g)}return v},choiceList:function(e,t){var n=e.list,r=Object.assign(document.createElement("div"),{className:n});return t||r.setAttribute("aria-multiselectable","true"),r.setAttribute("role","listbox"),r},choiceGroup:function(e,t){var n=e.group,r=e.groupHeading,i=e.itemDisabled,o=t.id,s=t.value,a=t.disabled,u=Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(a?i:"")});return u.setAttribute("role","group"),Object.assign(u.dataset,{group:"",id:o,value:s}),a&&u.setAttribute("aria-disabled","true"),u.appendChild(Object.assign(document.createElement("div"),{className:r,innerHTML:s})),u},choice:function(e,t,n){var r=e.item,i=e.itemChoice,o=e.itemSelectable,s=e.selectedState,a=e.itemDisabled,u=e.placeholder,c=t.id,l=t.value,h=t.label,f=t.groupId,d=t.elementId,p=t.disabled,m=t.selected,v=t.placeholder,y=Object.assign(document.createElement("div"),{id:d,innerHTML:h,className:"".concat(r," ").concat(i)});return m&&y.classList.add(s),v&&y.classList.add(u),y.setAttribute("role",f&&f>0?"treeitem":"option"),Object.assign(y.dataset,{choice:"",id:c,value:l,selectText:n}),p?(y.classList.add(a),y.dataset.choiceDisabled="",y.setAttribute("aria-disabled","true")):(y.classList.add(o),y.dataset.choiceSelectable=""),y},input:function(e,t){var n=e.input,r=e.inputCloned,i=Object.assign(document.createElement("input"),{type:"text",className:"".concat(n," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return i.setAttribute("role","textbox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-label",t),i},dropdown:function(e){var t=e.list,n=e.listDropdown,r=document.createElement("div");return r.classList.add(t,n),r.setAttribute("aria-expanded","false"),r},notice:function(e,t,n){var r=e.item,i=e.itemChoice,o=e.noResults,s=e.noChoices;void 0===n&&(n="");var a=[r,i];return"no-choices"===n?a.push(s):"no-results"===n&&a.push(o),Object.assign(document.createElement("div"),{innerHTML:t,className:a.join(" ")})},option:function(e){var t=e.label,n=e.value,r=e.customProperties,i=e.active,o=e.disabled,s=new Option(t,n,!1,i);return r&&(s.dataset.customProperties="".concat(r)),s.disabled=!!o,s}};t.default=n},996:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function u(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(n);return s===Array.isArray(e)?s?o.arrayMerge(e,n,o):a(e,n,o):r(n,o)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var c=u;e.exports=c},70:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e){return(r="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)}function i(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)}}var o=n(2),s=n(8),a=n(0),u=function(){function e(t,n){var r=n.location,i=void 0===r?0:r,o=n.distance,a=void 0===o?100:o,u=n.threshold,c=void 0===u?.6:u,l=n.maxPatternLength,h=void 0===l?32:l,f=n.caseSensitive,d=void 0!==f&&f,p=n.tokenSeparator,m=void 0===p?/ +/g:p,v=n.findAllMatches,y=void 0!==v&&v,g=n.minMatchCharLength,b=void 0===g?1:g,_=n.id,w=void 0===_?null:_,k=n.keys,x=void 0===k?[]:k,E=n.shouldSort,S=void 0===E||E,A=n.getFn,T=void 0===A?s:A,O=n.sortFn,C=void 0===O?function(e,t){return e.score-t.score}:O,P=n.tokenize,N=void 0!==P&&P,M=n.matchAllTokens,I=void 0!==M&&M,D=n.includeMatches,j=void 0!==D&&D,L=n.includeScore,R=void 0!==L&&L,F=n.verbose,B=void 0!==F&&F;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:i,distance:a,threshold:c,maxPatternLength:h,isCaseSensitive:d,tokenSeparator:m,findAllMatches:y,minMatchCharLength:b,id:w,keys:x,includeMatches:j,includeScore:R,shouldSort:S,getFn:T,sortFn:C,verbose:B,tokenize:N,matchAllTokens:I},this.setCollection(t)}var t,n,u;return t=e,(n=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var n=this._prepareSearchers(e),r=n.tokenSearchers,i=n.fullSearcher,o=this._search(r,i),s=o.weights,a=o.results;return this._computeScore(s,a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeof t.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var n=e.split(this.options.tokenSeparator),r=0,i=n.length;r<i;r+=1)t.push(new o(n[r],this.options));return{tokenSearchers:t,fullSearcher:new o(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.list,r={},i=[];if("string"==typeof n[0]){for(var o=0,s=n.length;o<s;o+=1)this._analyze({key:"",value:n[o],record:o,index:o},{resultMap:r,results:i,tokenSearchers:e,fullSearcher:t});return{weights:null,results:i}}for(var a={},u=0,c=n.length;u<c;u+=1)for(var l=n[u],h=0,f=this.options.keys.length;h<f;h+=1){var d=this.options.keys[h];if("string"!=typeof d){if(a[d.name]={weight:1-d.weight||1},d.weight<=0||d.weight>1)throw new Error("Key weight has to be > 0 and <= 1");d=d.name}else a[d]={weight:1};this._analyze({key:d,value:this.options.getFn(l,d),record:l,index:u},{resultMap:r,results:i,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:i}}},{key:"_analyze",value:function(e,t){var n=e.key,r=e.arrayIndex,i=void 0===r?-1:r,o=e.value,s=e.record,u=e.index,c=t.tokenSearchers,l=void 0===c?[]:c,h=t.fullSearcher,f=void 0===h?[]:h,d=t.resultMap,p=void 0===d?{}:d,m=t.results,v=void 0===m?[]:m;if(null!=o){var y=!1,g=-1,b=0;if("string"==typeof o){this._log("\nKey: ".concat(""===n?"-":n));var _=f.search(o);if(this._log('Full text: "'.concat(o,'", score: ').concat(_.score)),this.options.tokenize){for(var w=o.split(this.options.tokenSeparator),k=[],x=0;x<l.length;x+=1){var E=l[x];this._log('\nPattern: "'.concat(E.pattern,'"'));for(var S=!1,A=0;A<w.length;A+=1){var T=w[A],O=E.search(T),C={};O.isMatch?(C[T]=O.score,y=!0,S=!0,k.push(O.score)):(C[T]=1,this.options.matchAllTokens||k.push(1)),this._log('Token: "'.concat(T,'", score: ').concat(C[T]))}S&&(b+=1)}g=k[0];for(var P=k.length,N=1;N<P;N+=1)g+=k[N];g/=P,this._log("Token score average:",g)}var M=_.score;g>-1&&(M=(M+g)/2),this._log("Score average:",M);var I=!this.options.tokenize||!this.options.matchAllTokens||b>=l.length;if(this._log("\nCheck Matches: ".concat(I)),(y||_.isMatch)&&I){var D=p[u];D?D.output.push({key:n,arrayIndex:i,value:o,score:M,matchedIndices:_.matchedIndices}):(p[u]={item:s,output:[{key:n,arrayIndex:i,value:o,score:M,matchedIndices:_.matchedIndices}]},v.push(p[u]))}}else if(a(o))for(var j=0,L=o.length;j<L;j+=1)this._analyze({key:n,arrayIndex:j,value:o[j],record:s,index:u},{resultMap:p,results:v,tokenSearchers:l,fullSearcher:f})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var n=0,r=t.length;n<r;n+=1){for(var i=t[n].output,o=i.length,s=1,a=1,u=0;u<o;u+=1){var c=e?e[i[u].key].weight:1,l=(1===c?i[u].score:i[u].score||.001)*c;1!==c?a=Math.min(a,l):(i[u].nScore=l,s*=l)}t[n].score=1===a?s:a,this._log(t[n])}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var n=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===r(t)&&null!==t){if(-1!==n.indexOf(t))return;n.push(t)}return t}))),n=null}var i=[];this.options.includeMatches&&i.push((function(e,t){var n=e.output;t.matches=[];for(var r=0,i=n.length;r<i;r+=1){var o=n[r];if(0!==o.matchedIndices.length){var s={indices:o.matchedIndices,value:o.value};o.key&&(s.key=o.key),o.hasOwnProperty("arrayIndex")&&o.arrayIndex>-1&&(s.arrayIndex=o.arrayIndex),t.matches.push(s)}}})),this.options.includeScore&&i.push((function(e,t){t.score=e.score}));for(var o=0,s=e.length;o<s;o+=1){var a=e[o];if(this.options.id&&(a.item=this.options.getFn(a.item,this.options.id)[0]),i.length){for(var u={item:a.item},c=0,l=i.length;c<l;c+=1)i[c](a,u);t.push(u)}else t.push(a.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&i(t.prototype,n),u&&i(t,u),e}();e.exports=u},function(e,t,n){function r(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)}}var i=n(3),o=n(4),s=n(7),a=function(){function e(t,n){var r=n.location,i=void 0===r?0:r,o=n.distance,a=void 0===o?100:o,u=n.threshold,c=void 0===u?.6:u,l=n.maxPatternLength,h=void 0===l?32:l,f=n.isCaseSensitive,d=void 0!==f&&f,p=n.tokenSeparator,m=void 0===p?/ +/g:p,v=n.findAllMatches,y=void 0!==v&&v,g=n.minMatchCharLength,b=void 0===g?1:g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:i,distance:a,threshold:c,maxPatternLength:h,isCaseSensitive:d,tokenSeparator:m,findAllMatches:y,minMatchCharLength:b},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=h&&(this.patternAlphabet=s(this.pattern))}var t,n,a;return t=e,(n=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};var t=this.options,n=t.maxPatternLength,r=t.tokenSeparator;if(this.pattern.length>n)return i(e,this.pattern,r);var s=this.options,a=s.location,u=s.distance,c=s.threshold,l=s.findAllMatches,h=s.minMatchCharLength;return o(e,this.pattern,this.patternAlphabet,{location:a,distance:u,threshold:c,findAllMatches:l,minMatchCharLength:h})}}])&&r(t.prototype,n),a&&r(t,a),e}();e.exports=a},function(e,t){var n=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,i=new RegExp(t.replace(n,"\\$&").replace(r,"|")),o=e.match(i),s=!!o,a=[];if(s)for(var u=0,c=o.length;u<c;u+=1){var l=o[u];a.push([e.indexOf(l),l.length-1])}return{score:s?.5:1,isMatch:s,matchedIndices:a}}},function(e,t,n){var r=n(5),i=n(6);e.exports=function(e,t,n,o){for(var s=o.location,a=void 0===s?0:s,u=o.distance,c=void 0===u?100:u,l=o.threshold,h=void 0===l?.6:l,f=o.findAllMatches,d=void 0!==f&&f,p=o.minMatchCharLength,m=void 0===p?1:p,v=a,y=e.length,g=h,b=e.indexOf(t,v),_=t.length,w=[],k=0;k<y;k+=1)w[k]=0;if(-1!==b){var x=r(t,{errors:0,currentLocation:b,expectedLocation:v,distance:c});if(g=Math.min(x,g),-1!==(b=e.lastIndexOf(t,v+_))){var E=r(t,{errors:0,currentLocation:b,expectedLocation:v,distance:c});g=Math.min(E,g)}}b=-1;for(var S=[],A=1,T=_+y,O=1<<(_<=31?_-1:30),C=0;C<_;C+=1){for(var P=0,N=T;P<N;)r(t,{errors:C,currentLocation:v+N,expectedLocation:v,distance:c})<=g?P=N:T=N,N=Math.floor((T-P)/2+P);T=N;var M=Math.max(1,v-N+1),I=d?y:Math.min(v+N,y)+_,D=Array(I+2);D[I+1]=(1<<C)-1;for(var j=I;j>=M;j-=1){var L=j-1,R=n[e.charAt(L)];if(R&&(w[L]=1),D[j]=(D[j+1]<<1|1)&R,0!==C&&(D[j]|=(S[j+1]|S[j])<<1|1|S[j+1]),D[j]&O&&(A=r(t,{errors:C,currentLocation:L,expectedLocation:v,distance:c}))<=g){if(g=A,(b=L)<=v)break;M=Math.max(1,2*v-b)}}if(r(t,{errors:C+1,currentLocation:v,expectedLocation:v,distance:c})>g)break;S=D}return{isMatch:b>=0,score:0===A?.001:A,matchedIndices:i(w,m)}}},function(e,t){e.exports=function(e,t){var n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,s=t.expectedLocation,a=void 0===s?0:s,u=t.distance,c=void 0===u?100:u,l=r/e.length,h=Math.abs(a-o);return c?l+h/c:h?1:l}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=-1,i=-1,o=0,s=e.length;o<s;o+=1){var a=e[o];a&&-1===r?r=o:a||-1===r||((i=o-1)-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}},function(e,t){e.exports=function(e){for(var t={},n=e.length,r=0;r<n;r+=1)t[e.charAt(r)]=0;for(var i=0;i<n;i+=1)t[e.charAt(i)]|=1<<n-i-1;return t}},function(e,t,n){var r=n(0);e.exports=function(e,t){return function e(t,n,i){if(n){var o=n.indexOf("."),s=n,a=null;-1!==o&&(s=n.slice(0,o),a=n.slice(o+1));var u=t[s];if(null!=u)if(a||"string"!=typeof u&&"number"!=typeof u)if(r(u))for(var c=0,l=u.length;c<l;c+=1)e(u[c],a,i);else a&&e(u,a,i);else i.push(u.toString())}else i.push(t);return i}(e,t,[])}}])},857:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:function(){return c},applyMiddleware:function(){return v},bindActionCreators:function(){return p},combineReducers:function(){return f},compose:function(){return m},createStore:function(){return h}});var a="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(h)(e,t)}if("function"!=typeof e)throw new Error(s(2));var i=e,o=t,u=[],f=u,d=!1;function p(){f===u&&(f=u.slice())}function m(){if(d)throw new Error(s(3));return o}function v(e){if("function"!=typeof e)throw new Error(s(4));if(d)throw new Error(s(5));var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error(s(6));t=!1,p();var n=f.indexOf(e);f.splice(n,1),u=null}}}function y(e){if(!l(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(d)throw new Error(s(9));try{d=!0,o=i(o,e)}finally{d=!1}for(var t=u=f,n=0;n<t.length;n++)(0,t[n])();return e}function g(e){if("function"!=typeof e)throw new Error(s(10));i=e,y({type:c.REPLACE})}function b(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[a]=function(){return this},e}return y({type:c.INIT}),(r={dispatch:y,subscribe:v,getState:m,replaceReducer:g})[a]=b,r}function f(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw new Error(s(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},u=0;u<a.length;u++){var c=a[u],l=n[c],h=e[c],f=l(h,t);if(void 0===f)throw t&&t.type,new Error(s(14));i[c]=f,r=r||f!==h}return(r=r||a.length!==Object.keys(e).length)?i:e}}function d(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=d(i,t))}return n}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(s(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return r=m.apply(void 0,a)(n.dispatch),o(o({},n),{},{dispatch:r})}}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=n(373);return r=r.default}()},e.exports=t()},48168:function(e,t,n){var r=n(39092),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var u=s[a].channels,c=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:u}),Object.defineProperty(s[a],"labels",{value:c})}s.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),u=a-s;return a===s?t=0:r===a?t=(i-o)/u:i===a?t=2+(o-r)/u:o===a&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},s.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),h=function(e){return(c-e)/6/l+.5};return 0===l?i=o=0:(o=l/c,t=h(s),n=h(a),r=h(u),s===c?i=r-n:a===c?i=1/3+t-r:u===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},s.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[s.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},s.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,s,a=1/0;for(var u in r)if(r.hasOwnProperty(u)){var c=r[u],l=(o=e,s=c,Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));l<a&&(a=l,n=u)}return n},s.keyword.rgb=function(e){return r[e]},s.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},s.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},s.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},s.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},s.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,n,r,i,o,s,a,u=e[0]/360,c=e[1]/100,l=e[2]/100,h=c+l;switch(h>1&&(c/=h,l/=h),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-l)-c),t){default:case 6:case 0:o=n,s=i,a=c;break;case 1:o=i,s=n,a=c;break;case 2:o=c,s=n,a=i;break;case 3:o=c,s=i,a=n;break;case 4:o=i,s=c,a=n;break;case 5:o=n,s=c,a=i}return[255*o,255*s,255*a]},s.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},s.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},s.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},s.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},s.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},s.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},s.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},s.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},s.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},12085:function(e,t,n){var r=n(48168),i=n(4111),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},39092:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4111:function(e,t,n){var r=n(48168);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),s=o.length,a=0;a<s;a++){var u=o[a],c=t[u];-1===c.distance&&(c.distance=t[i].distance+1,c.parent=i,n.unshift(u))}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],s=t[e].parent;t[s].parent;)n.unshift(t[s].parent),i=o(r[t[s].parent][s],i),s=t[s].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),o=r.length,a=0;a<o;a++){var u=r[a];null!==t[u].parent&&(n[u]=s(u,t))}return n}},8874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:function(e,t,n){var r=n(8874),i=n(86851),o=Object.hasOwnProperty,s=Object.create(null);for(var a in r)o.call(r,a)&&(s[r[a]]=a);var u=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}u.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=u.get.hsl(e),n="hsl";break;case"hwb":t=u.get.hwb(e),n="hwb";break;default:t=u.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},u.get.rgb=function(e){if(!e)return null;var t,n,i,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var a=2*n;s[n]=parseInt(t.slice(a,a+2),16)}i&&(s[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)s[n]=parseInt(t[n]+t[n],16);i&&(s[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(t[n+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((s=r[t[1]])[3]=1,s):null:null;for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(n=0;n<3;n++)s[n]=c(s[n],0,255);return s[3]=c(s[3],0,1),s},u.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},u.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},u.to.hex=function(){var e=i(arguments);return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},u.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},u.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},u.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},u.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},u.to.keyword=function(e){return s[e.slice(0,3)]}},6767:function(e,t,n){"use strict";var r=n(19818),i=n(12085),o=[].slice,s=["keyword","gray","hex"],a={};Object.keys(i).forEach((function(e){a[o.call(i[e].labels).sort().join("")]=e}));var u={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in s&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,l;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var h=r.get(e);if(null===h)throw new Error("Unable to parse color from string: "+e);this.model=h.model,l=i[this.model].channels,this.color=h.value.slice(0,l),this.valpha="number"==typeof h.value[l]?h.value[l]:1}else if(e.length){this.model=t||"rgb",l=i[this.model].channels;var f=o.call(e,0,l);this.color=d(f,l),this.valpha="number"==typeof e[l]?e[l]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=p.sort().join("");if(!(m in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[m];var v=i[this.model].labels,y=[];for(n=0;n<v.length;n++)y.push(e[v[n]]);this.color=d(y)}if(u[this.model])for(l=i[this.model].channels,n=0;n<l;n++){var g=u[this.model][n];g&&(this.color[n]=g(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function l(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(u[e]||(u[e]=[]))[t]=n})),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),(i=this[e]()).color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e){return Array.isArray(e)?e:[e]}function d(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new c(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:l("rgb",0,h(255)),green:l("rgb",1,h(255)),blue:l("rgb",2,h(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:l("hsl",1,h(100)),lightness:l("hsl",2,h(100)),saturationv:l("hsv",1,h(100)),value:l("hsv",2,h(100)),chroma:l("hcg",1,h(100)),gray:l("hcg",2,h(100)),white:l("hwb",1,h(100)),wblack:l("hwb",2,h(100)),cyan:l("cmyk",0,h(100)),magenta:l("cmyk",1,h(100)),yellow:l("cmyk",2,h(100)),black:l("cmyk",3,h(100)),x:l("xyz",0,h(100)),y:l("xyz",1,h(100)),z:l("xyz",2,h(100)),l:l("lab",0,h(100)),a:l("lab",1),b:l("lab",2),keyword:function(e){return arguments.length?new c(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new c(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,s=n.alpha()-r.alpha(),a=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,u=1-a;return c.rgb(a*n.red()+u*r.red(),a*n.green()+u*r.green(),a*n.blue()+u*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===s.indexOf(e)){var t=i[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new c(f(i[this.model][e].raw(this.color)).concat(n),e)},c[e]=function(n){return"number"==typeof n&&(n=d(o.call(arguments),t)),new c(n,e)}}})),e.exports=c},20640:function(e,t,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,s,a,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),a=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),a.selectNodeContents(c),u.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(a):u.removeAllRanges()),c&&document.body.removeChild(c),s()}return l}},19662:function(e,t,n){var r=n(60614),i=n(66330),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},39483:function(e,t,n){var r=n(4411),i=n(66330),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a constructor")}},96077:function(e,t,n){var r=n(60614),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},51223:function(e,t,n){var r=n(5112),i=n(70030),o=n(3070).f,s=r("unscopables"),a=Array.prototype;null==a[s]&&o(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},31530:function(e,t,n){"use strict";var r=n(28710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},25787:function(e,t,n){var r=n(47976),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},19670:function(e,t,n){var r=n(70111),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},7556:function(e,t,n){var r=n(47293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},21285:function(e,t,n){"use strict";var r=n(47908),i=n(51400),o=n(26244);e.exports=function(e){for(var t=r(this),n=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)t[a++]=e;return t}},18533:function(e,t,n){"use strict";var r=n(42092).forEach,i=n(9341)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},48457:function(e,t,n){"use strict";var r=n(49974),i=n(46916),o=n(47908),s=n(53411),a=n(97659),u=n(4411),c=n(26244),l=n(86135),h=n(18554),f=n(71246),d=Array;e.exports=function(e){var t=o(e),n=u(this),p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m;v&&(m=r(m,p>2?arguments[2]:void 0));var y,g,b,_,w,k,x=f(t),E=0;if(!x||this===d&&a(x))for(y=c(t),g=n?new this(y):d(y);y>E;E++)k=v?m(t[E],E):t[E],l(g,E,k);else for(w=(_=h(t,x)).next,g=n?new this:[];!(b=i(w,_)).done;E++)k=v?s(_,m,[b.value,E],!0):b.value,l(g,E,k);return g.length=E,g}},41318:function(e,t,n){var r=n(45656),i=n(51400),o=n(26244),s=function(e){return function(t,n,s){var a,u=r(t),c=o(u),l=i(s,c);if(e&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},42092:function(e,t,n){var r=n(49974),i=n(1702),o=n(68361),s=n(47908),a=n(26244),u=n(65417),c=i([].push),l=function(e){var t=1==e,n=2==e,i=3==e,l=4==e,h=6==e,f=7==e,d=5==e||h;return function(p,m,v,y){for(var g,b,_=s(p),w=o(_),k=r(m,v),x=a(w),E=0,S=y||u,A=t?S(p,x):n||f?S(p,0):void 0;x>E;E++)if((d||E in w)&&(b=k(g=w[E],E,_),e))if(t)A[E]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:c(A,g)}else switch(e){case 4:return!1;case 7:c(A,g)}return h?-1:i||l?l:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},81194:function(e,t,n){var r=n(47293),i=n(5112),o=n(7392),s=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(47293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},53671:function(e,t,n){var r=n(19662),i=n(47908),o=n(68361),s=n(26244),a=TypeError,u=function(e){return function(t,n,u,c){r(n);var l=i(t),h=o(l),f=s(l),d=e?f-1:0,p=e?-1:1;if(u<2)for(;;){if(d in h){c=h[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw a("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in h&&(c=n(c,h[d],d,l));return c}};e.exports={left:u(!1),right:u(!0)}},41589:function(e,t,n){var r=n(51400),i=n(26244),o=n(86135),s=Array,a=Math.max;e.exports=function(e,t,n){for(var u=i(e),c=r(t,u),l=r(void 0===n?u:n,u),h=s(a(l-c,0)),f=0;c<l;c++,f++)o(h,f,e[c]);return h.length=f,h}},50206:function(e,t,n){var r=n(1702);e.exports=r([].slice)},94362:function(e,t,n){var r=n(41589),i=Math.floor,o=function(e,t){var n=e.length,u=i(n/2);return n<8?s(e,t):a(e,o(r(e,0,u),t),o(r(e,u),t),t)},s=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},a=function(e,t,n,r){for(var i=t.length,o=n.length,s=0,a=0;s<i||a<o;)e[s+a]=s<i&&a<o?r(t[s],n[a])<=0?t[s++]:n[a++]:s<i?t[s++]:n[a++];return e};e.exports=o},77475:function(e,t,n){var r=n(43157),i=n(4411),o=n(70111),s=n(5112)("species"),a=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===a||r(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},65417:function(e,t,n){var r=n(77475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},53411:function(e,t,n){var r=n(19670),i=n(99212);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},17072:function(e,t,n){var r=n(5112)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},84326:function(e,t,n){var r=n(1702),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},70648:function(e,t,n){var r=n(51694),i=n(60614),o=n(84326),s=n(5112)("toStringTag"),a=Object,u="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:u?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},95631:function(e,t,n){"use strict";var r=n(3070).f,i=n(70030),o=n(89190),s=n(49974),a=n(25787),u=n(68554),c=n(20408),l=n(51656),h=n(76178),f=n(96340),d=n(19781),p=n(62423).fastKey,m=n(29909),v=m.set,y=m.getterFor;e.exports={getConstructor:function(e,t,n,l){var h=e((function(e,r){a(e,f),v(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),u(r)||c(r,e[l],{that:e,AS_ENTRIES:n})})),f=h.prototype,m=y(t),g=function(e,t,n){var r,i,o=m(e),s=b(e,t);return s?s.value=n:(o.last=s={index:i=p(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),d?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},b=function(e,t){var n,r=m(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(f,{clear:function(){for(var e=m(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,n=m(t),r=b(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=m(this),r=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(f,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(f,"size",{get:function(){return m(this).size}}),h},setStrong:function(e,t,n){var r=t+" Iterator",i=y(t),o=y(r);l(e,t,(function(e,t){v(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?h("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},77710:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(1702),s=n(54705),a=n(98052),u=n(62423),c=n(20408),l=n(25787),h=n(60614),f=n(68554),d=n(70111),p=n(47293),m=n(17072),v=n(58003),y=n(79587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=g?"set":"add",w=i[e],k=w&&w.prototype,x=w,E={},S=function(e){var t=o(k[e]);a(k,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(s(e,!h(w)||!(b||k.forEach&&!p((function(){(new w).entries().next()})))))x=n.getConstructor(t,e,g,_),u.enable();else if(s(e,!0)){var A=new x,T=A[_](b?{}:-0,1)!=A,O=p((function(){A.has(1)})),C=m((function(e){new w(e)})),P=!b&&p((function(){for(var e=new w,t=5;t--;)e[_](t,t);return!e.has(-0)}));C||((x=t((function(e,t){l(e,k);var n=y(new w,e,x);return f(t)||c(t,n[_],{that:n,AS_ENTRIES:g}),n}))).prototype=k,k.constructor=x),(O||P)&&(S("delete"),S("has"),g&&S("get")),(P||T)&&S(_),b&&k.clear&&delete k.clear}return E[e]=x,r({global:!0,constructor:!0,forced:x!=w},E),v(x,e),b||n.setStrong(x,e,g),x}},99920:function(e,t,n){var r=n(92597),i=n(53887),o=n(31236),s=n(3070);e.exports=function(e,t,n){for(var a=i(t),u=s.f,c=o.f,l=0;l<a.length;l++){var h=a[l];r(e,h)||n&&r(n,h)||u(e,h,c(t,h))}}},84964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:function(e,t,n){var r=n(47293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},14230:function(e,t,n){var r=n(1702),i=n(84488),o=n(41340),s=/"/g,a=r("".replace);e.exports=function(e,t,n,r){var u=o(i(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+a(o(r),s,"&quot;")+'"'),c+">"+u+"</"+t+">"}},76178:function(e){e.exports=function(e,t){return{value:e,done:t}}},68880:function(e,t,n){var r=n(19781),i=n(3070),o=n(79114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},79114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:function(e,t,n){"use strict";var r=n(34948),i=n(3070),o=n(79114);e.exports=function(e,t,n){var s=r(t);s in e?i.f(e,s,o(0,n)):e[s]=n}},47045:function(e,t,n){var r=n(56339),i=n(3070);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},98052:function(e,t,n){var r=n(60614),i=n(3070),o=n(56339),s=n(13072);e.exports=function(e,t,n,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(r(n)&&o(n,c,a),a.global)u?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},89190:function(e,t,n){var r=n(98052);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},13072:function(e,t,n){var r=n(17854),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},85117:function(e,t,n){"use strict";var r=n(66330),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw i("Cannot delete property "+r(t)+" of "+r(e))}},19781:function(e,t,n){var r=n(47293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},80317:function(e,t,n){var r=n(17854),i=n(70111),o=r.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},7207:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},48324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:function(e,t,n){var r=n(80317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},68886:function(e,t,n){var r=n(88113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e,t,n){var r=n(83823),i=n(35268);e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},83823:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},30256:function(e,t,n){var r=n(88113);e.exports=/MSIE|Trident/.test(r)},71528:function(e,t,n){var r=n(88113);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},6833:function(e,t,n){var r=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},35268:function(e,t,n){var r=n(34155),i=n(84326);e.exports=void 0!==r&&"process"==i(r)},71036:function(e,t,n){var r=n(88113);e.exports=/web0s(?!.*chrome)/i.test(r)},88113:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){var r,i,o=n(17854),s=n(88113),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},98008:function(e,t,n){var r=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},80748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(e,t,n){var r=n(17854),i=n(31236).f,o=n(68880),s=n(98052),a=n(13072),u=n(99920),c=n(54705);e.exports=function(e,t){var n,l,h,f,d,p=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[p]||a(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],h=e.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(m?l:p+(v?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),s(n,l,f,e)}}},47293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:function(e,t,n){"use strict";n(74916);var r=n(21470),i=n(98052),o=n(22261),s=n(47293),a=n(5112),u=n(68880),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,n,h){var f=a(e),d=!s((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=d&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!p||n){var m=r(/./[f]),v=t(f,""[e],(function(e,t,n,i,s){var a=r(e),u=t.exec;return u===o||u===l.exec?d&&!s?{done:!0,value:m(t,n,i)}:{done:!0,value:a(n,t,i)}:{done:!1}}));i(String.prototype,e,v[0]),i(l,f,v[1])}h&&u(l[f],"sham",!0)}},76677:function(e,t,n){var r=n(47293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:function(e,t,n){var r=n(34374),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},49974:function(e,t,n){var r=n(21470),i=n(19662),o=n(34374),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},34374:function(e,t,n){var r=n(47293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},27065:function(e,t,n){"use strict";var r=n(1702),i=n(19662),o=n(70111),s=n(92597),a=n(50206),u=n(34374),c=Function,l=r([].concat),h=r([].join),f={},d=function(e,t,n){if(!s(f,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";f[t]=c("C,a","return new C("+h(r,",")+")")}return f[t](e,n)};e.exports=u?c.bind:function(e){var t=i(this),n=t.prototype,r=a(arguments,1),s=function(){var n=l(r,a(arguments));return this instanceof s?d(t,n.length,n):t.apply(e,n)};return o(n)&&(s.prototype=n),s}},46916:function(e,t,n){var r=n(34374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},76530:function(e,t,n){var r=n(19781),i=n(92597),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},21470:function(e,t,n){var r=n(84326),i=n(1702);e.exports=function(e){if("Function"===r(e))return i(e)}},1702:function(e,t,n){var r=n(34374),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},35005:function(e,t,n){var r=n(17854),i=n(60614),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},71246:function(e,t,n){var r=n(70648),i=n(58173),o=n(68554),s=n(97497),a=n(5112)("iterator");e.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[r(e)]}},18554:function(e,t,n){var r=n(46916),i=n(19662),o=n(19670),s=n(66330),a=n(71246),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return o(r(n,e));throw u(s(e)+" is not iterable")}},58173:function(e,t,n){var r=n(19662),i=n(68554);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},10647:function(e,t,n){var r=n(1702),i=n(47908),o=Math.floor,s=r("".charAt),a=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,f){var d=n+e.length,p=r.length,m=l;return void 0!==h&&(h=i(h),m=c),a(f,m,(function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,d);case"<":c=h[u(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>p){var f=o(l/10);return 0===f?i:f<=p?void 0===r[f-1]?s(a,1):r[f-1]+s(a,1):i}c=r[l-1]}return void 0===c?"":c}))}},17854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:function(e,t,n){var r=n(1702),i=n(47908),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:function(e){e.exports={}},842:function(e){e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},60490:function(e,t,n){var r=n(35005);e.exports=r("document","documentElement")},64664:function(e,t,n){var r=n(19781),i=n(47293),o=n(80317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},68361:function(e,t,n){var r=n(1702),i=n(47293),o=n(84326),s=Object,a=r("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a(e,""):s(e)}:s},79587:function(e,t,n){var r=n(60614),i=n(70111),o=n(27674);e.exports=function(e,t,n){var s,a;return o&&r(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},42788:function(e,t,n){var r=n(1702),i=n(60614),o=n(5465),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},62423:function(e,t,n){var r=n(82109),i=n(1702),o=n(3501),s=n(70111),a=n(92597),u=n(3070).f,c=n(8006),l=n(1156),h=n(52050),f=n(69711),d=n(76677),p=!1,m=f("meta"),v=0,y=function(e){u(e,m,{value:{objectID:"O"+v++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===m){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,m)){if(!h(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!a(e,m)){if(!h(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return d&&p&&h(e)&&!a(e,m)&&y(e),e}};o[m]=!0},29909:function(e,t,n){var r,i,o,s=n(94811),a=n(17854),u=n(70111),c=n(68880),l=n(92597),h=n(5465),f=n(6200),d=n(3501),p="Object already initialized",m=a.TypeError,v=a.WeakMap;if(s||h.state){var y=h.state||(h.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw m(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var g=f("state");d[g]=!0,r=function(e,t){if(l(e,g))throw m(p);return t.facade=e,c(e,g,t),t},i=function(e){return l(e,g)?e[g]:{}},o=function(e){return l(e,g)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},97659:function(e,t,n){var r=n(5112),i=n(97497),o=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},43157:function(e,t,n){var r=n(84326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},60614:function(e,t,n){var r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},4411:function(e,t,n){var r=n(1702),i=n(47293),o=n(60614),s=n(70648),a=n(35005),u=n(42788),c=function(){},l=[],h=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(c),m=function(e){if(!o(e))return!1;try{return h(c,l,e),!0}catch(e){return!1}},v=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(e))}catch(e){return!0}};v.sham=!0,e.exports=!h||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?v:m},54705:function(e,t,n){var r=n(47293),i=n(60614),o=/#|\.prototype\./,s=function(e,t){var n=u[a(e)];return n==l||n!=c&&(i(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},68554:function(e){e.exports=function(e){return null==e}},70111:function(e,t,n){var r=n(60614),i=n(4154),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},31913:function(e){e.exports=!1},47850:function(e,t,n){var r=n(70111),i=n(84326),o=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},52190:function(e,t,n){var r=n(35005),i=n(60614),o=n(47976),s=n(43307),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},20408:function(e,t,n){var r=n(49974),i=n(46916),o=n(19670),s=n(66330),a=n(97659),u=n(26244),c=n(47976),l=n(18554),h=n(71246),f=n(99212),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var v,y,g,b,_,w,k,x=n&&n.that,E=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),O=r(t,x),C=function(e){return v&&f(v,"normal",e),new p(!0,e)},P=function(e){return E?(o(e),T?O(e[0],e[1],C):O(e[0],e[1])):T?O(e,C):O(e)};if(S)v=e.iterator;else if(A)v=e;else{if(!(y=h(e)))throw d(s(e)+" is not iterable");if(a(y)){for(g=0,b=u(e);b>g;g++)if((_=P(e[g]))&&c(m,_))return _;return new p(!1)}v=l(e,y)}for(w=S?e.next:v.next;!(k=i(w,v)).done;){try{_=P(k.value)}catch(e){f(v,"throw",e)}if("object"==typeof _&&_&&c(m,_))return _}return new p(!1)}},99212:function(e,t,n){var r=n(46916),i=n(19670),o=n(58173);e.exports=function(e,t,n){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return i(s),n}},63061:function(e,t,n){"use strict";var r=n(13383).IteratorPrototype,i=n(70030),o=n(79114),s=n(58003),a=n(97497),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),s(e,l,!1,!0),a[l]=u,e}},51656:function(e,t,n){"use strict";var r=n(82109),i=n(46916),o=n(31913),s=n(76530),a=n(60614),u=n(63061),c=n(79518),l=n(27674),h=n(58003),f=n(68880),d=n(98052),p=n(5112),m=n(97497),v=n(13383),y=s.PROPER,g=s.CONFIGURABLE,b=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),k="keys",x="values",E="entries",S=function(){return this};e.exports=function(e,t,n,s,p,v,A){u(n,t,s);var T,O,C,P=function(e){if(e===p&&j)return j;if(!_&&e in I)return I[e];switch(e){case k:case x:case E:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",M=!1,I=e.prototype,D=I[w]||I["@@iterator"]||p&&I[p],j=!_&&D||P(p),L="Array"==t&&I.entries||D;if(L&&(T=c(L.call(new e)))!==Object.prototype&&T.next&&(o||c(T)===b||(l?l(T,b):a(T[w])||d(T,w,S)),h(T,N,!0,!0),o&&(m[N]=S)),y&&p==x&&D&&D.name!==x&&(!o&&g?f(I,"name",x):(M=!0,j=function(){return i(D,this)})),p)if(O={values:P(x),keys:v?j:P(k),entries:P(E)},A)for(C in O)(_||M||!(C in I))&&d(I,C,O[C]);else r({target:t,proto:!0,forced:_||M},O);return o&&!A||I[w]===j||d(I,w,j,{name:p}),m[t]=j,O}},13383:function(e,t,n){"use strict";var r,i,o,s=n(47293),a=n(60614),u=n(70111),c=n(70030),l=n(79518),h=n(98052),f=n(5112),d=n(31913),p=f("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):m=!0),!u(r)||s((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=c(r)),a(r[p])||h(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},97497:function(e){e.exports={}},26244:function(e,t,n){var r=n(17466);e.exports=function(e){return r(e.length)}},56339:function(e,t,n){var r=n(1702),i=n(47293),o=n(60614),s=n(92597),a=n(19781),u=n(76530).CONFIGURABLE,c=n(42788),l=n(29909),h=l.enforce,f=l.get,d=String,p=Object.defineProperty,m=r("".slice),v=r("".replace),y=r([].join),g=a&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===m(d(t),0,7)&&(t="["+v(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||u&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&s(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return s(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&f(this).source||c(this)}),"toString")},74758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},95948:function(e,t,n){var r,i,o,s,a,u=n(17854),c=n(49974),l=n(31236).f,h=n(20261).set,f=n(18572),d=n(6833),p=n(71528),m=n(71036),v=n(35268),y=u.MutationObserver||u.WebKitMutationObserver,g=u.document,b=u.process,_=u.Promise,w=l(u,"queueMicrotask"),k=w&&w.value;if(!k){var x=new f,E=function(){var e,t;for(v&&(e=b.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};d||v||m||!y||!g?!p&&_&&_.resolve?((s=_.resolve(void 0)).constructor=_,a=c(s.then,s),r=function(){a(E)}):v?r=function(){b.nextTick(E)}:(h=c(h,u),r=function(){h(E)}):(i=!0,o=g.createTextNode(""),new y(E).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),k=function(e){x.head||r(),x.add(e)}}e.exports=k},78523:function(e,t,n){"use strict";var r=n(19662),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},3929:function(e,t,n){var r=n(47850),i=TypeError;e.exports=function(e){if(r(e))throw i("The method doesn't accept regular expressions");return e}},77023:function(e,t,n){var r=n(17854).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},2814:function(e,t,n){var r=n(17854),i=n(47293),o=n(1702),s=n(41340),a=n(53111).trim,u=n(81361),c=o("".charAt),l=r.parseFloat,h=r.Symbol,f=h&&h.iterator,d=1/l(u+"-0")!=-1/0||f&&!i((function(){l(Object(f))}));e.exports=d?function(e){var t=a(s(e)),n=l(t);return 0===n&&"-"==c(t,0)?-0:n}:l},83009:function(e,t,n){var r=n(17854),i=n(47293),o=n(1702),s=n(41340),a=n(53111).trim,u=n(81361),c=r.parseInt,l=r.Symbol,h=l&&l.iterator,f=/^[+-]?0x/i,d=o(f.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||h&&!i((function(){c(Object(h))}));e.exports=p?function(e,t){var n=a(s(e));return c(n,t>>>0||(d(f,n)?16:10))}:c},21574:function(e,t,n){"use strict";var r=n(19781),i=n(1702),o=n(46916),s=n(47293),a=n(81956),u=n(25181),c=n(55296),l=n(47908),h=n(68361),f=Object.assign,d=Object.defineProperty,p=i([].concat);e.exports=!f||s((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||a(f({},t)).join("")!=i}))?function(e,t){for(var n=l(e),i=arguments.length,s=1,f=u.f,d=c.f;i>s;)for(var m,v=h(arguments[s++]),y=f?p(a(v),f(v)):a(v),g=y.length,b=0;g>b;)m=y[b++],r&&!o(d,v,m)||(n[m]=v[m]);return n}:f},70030:function(e,t,n){var r,i=n(19670),o=n(36048),s=n(80748),a=n(3501),u=n(60490),c=n(80317),l=n(6200),h=l("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"</"+"script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&r?p(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(r);for(var n=s.length;n--;)delete m.prototype[s[n]];return m()};a[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=i(e),n=new f,f.prototype=null,n[h]=e):n=m(),void 0===t?n:o.f(n,t)}},36048:function(e,t,n){var r=n(19781),i=n(3353),o=n(3070),s=n(19670),a=n(45656),u=n(81956);t.f=r&&!i?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),i=u(t),c=i.length,l=0;c>l;)o.f(e,n=i[l++],r[n]);return e}},3070:function(e,t,n){var r=n(19781),i=n(64664),o=n(3353),s=n(19670),a=n(34948),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";t.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:f in n?n.configurable:r.configurable,enumerable:h in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},31236:function(e,t,n){var r=n(19781),i=n(46916),o=n(55296),s=n(79114),a=n(45656),u=n(34948),c=n(92597),l=n(64664),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=a(e),t=u(t),l)try{return h(e,t)}catch(e){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},1156:function(e,t,n){var r=n(84326),i=n(45656),o=n(8006).f,s=n(41589),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==r(e)?function(e){try{return o(e)}catch(e){return s(a)}}(e):o(i(e))}},8006:function(e,t,n){var r=n(16324),i=n(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},25181:function(e,t){t.f=Object.getOwnPropertySymbols},79518:function(e,t,n){var r=n(92597),i=n(60614),o=n(47908),s=n(6200),a=n(49920),u=s("IE_PROTO"),c=Object,l=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},52050:function(e,t,n){var r=n(47293),i=n(70111),o=n(84326),s=n(7556),a=Object.isExtensible,u=r((function(){a(1)}));e.exports=u||s?function(e){return!!i(e)&&((!s||"ArrayBuffer"!=o(e))&&(!a||a(e)))}:a},47976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},16324:function(e,t,n){var r=n(1702),i=n(92597),o=n(45656),s=n(41318).indexOf,a=n(3501),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&u(l,n);for(;t.length>c;)i(r,n=t[c++])&&(~s(l,n)||u(l,n));return l}},81956:function(e,t,n){var r=n(16324),i=n(80748);e.exports=Object.keys||function(e){return r(e,i)}},55296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},27674:function(e,t,n){var r=n(1702),i=n(19670),o=n(96077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},44699:function(e,t,n){var r=n(19781),i=n(1702),o=n(81956),s=n(45656),a=i(n(55296).f),u=i([].push),c=function(e){return function(t){for(var n,i=s(t),c=o(i),l=c.length,h=0,f=[];l>h;)n=c[h++],r&&!a(i,n)||u(f,e?[n,i[n]]:i[n]);return f}};e.exports={entries:c(!0),values:c(!1)}},90288:function(e,t,n){"use strict";var r=n(51694),i=n(70648);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},92140:function(e,t,n){var r=n(46916),i=n(60614),o=n(70111),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e)))return a;if(i(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw s("Can't convert object to primitive value")}},53887:function(e,t,n){var r=n(35005),i=n(1702),o=n(8006),s=n(25181),a=n(19670),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?u(t,n(e)):t}},40857:function(e,t,n){var r=n(17854);e.exports=r},12534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},63702:function(e,t,n){var r=n(17854),i=n(2492),o=n(60614),s=n(54705),a=n(42788),u=n(5112),c=n(7871),l=n(83823),h=n(31913),f=n(7392),d=i&&i.prototype,p=u("species"),m=!1,v=o(r.PromiseRejectionEvent),y=s("Promise",(function(){var e=a(i),t=e!==String(i);if(!t&&66===f)return!0;if(h&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(m=n.then((function(){}))instanceof r))return!0}return!t&&(c||l)&&!v}));e.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:m}},2492:function(e,t,n){var r=n(17854);e.exports=r.Promise},69478:function(e,t,n){var r=n(19670),i=n(70111),o=n(78523);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},80612:function(e,t,n){var r=n(2492),i=n(17072),o=n(63702).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},2626:function(e,t,n){var r=n(3070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},18572:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},97651:function(e,t,n){var r=n(46916),i=n(19670),o=n(60614),s=n(84326),a=n(22261),u=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===s(e))return r(a,e,t);throw u("RegExp#exec called on incompatible receiver")}},22261:function(e,t,n){"use strict";var r,i,o=n(46916),s=n(1702),a=n(41340),u=n(67066),c=n(52999),l=n(72309),h=n(70030),f=n(29909).get,d=n(9441),p=n(38173),m=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,g=s("".charAt),b=s("".indexOf),_=s("".replace),w=s("".slice),k=(i=/b*/g,o(v,r=/a/,"a"),o(v,i,"a"),0!==r.lastIndex||0!==i.lastIndex),x=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(k||E||x||d||p)&&(y=function(e){var t,n,r,i,s,c,l,d=this,p=f(d),S=a(e),A=p.raw;if(A)return A.lastIndex=d.lastIndex,t=o(y,A,S),d.lastIndex=A.lastIndex,t;var T=p.groups,O=x&&d.sticky,C=o(u,d),P=d.source,N=0,M=S;if(O&&(C=_(C,"y",""),-1===b(C,"g")&&(C+="g"),M=w(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==g(S,d.lastIndex-1))&&(P="(?: "+P+")",M=" "+M,N++),n=new RegExp("^(?:"+P+")",C)),E&&(n=new RegExp("^"+P+"$(?!\\s)",C)),k&&(r=d.lastIndex),i=o(v,O?n:d,M),O?i?(i.input=w(i.input,N),i[0]=w(i[0],N),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:k&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),E&&i&&i.length>1&&o(m,i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&T)for(i.groups=c=h(null),s=0;s<T.length;s++)c[(l=T[s])[0]]=i[l[1]];return i}),e.exports=y},67066:function(e,t,n){"use strict";var r=n(19670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},34706:function(e,t,n){var r=n(46916),i=n(92597),o=n(47976),s=n(67066),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||i(e,"flags")||!o(a,e)?t:r(s,e)}},52999:function(e,t,n){var r=n(47293),i=n(17854).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=o||r((function(){return!i("a","y").sticky})),a=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:o}},9441:function(e,t,n){var r=n(47293),i=n(17854).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},38173:function(e,t,n){var r=n(47293),i=n(17854).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},84488:function(e,t,n){var r=n(68554),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},81150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},96340:function(e,t,n){"use strict";var r=n(35005),i=n(3070),o=n(5112),s=n(19781),a=o("species");e.exports=function(e){var t=r(e),n=i.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},58003:function(e,t,n){var r=n(3070).f,i=n(92597),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(72309),i=n(69711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(17854),i=n(13072),o="__core-js_shared__",s=r[o]||i(o,{});e.exports=s},72309:function(e,t,n){var r=n(31913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.27.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},36707:function(e,t,n){var r=n(19670),i=n(39483),o=n(68554),s=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},43429:function(e,t,n){var r=n(47293);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},28710:function(e,t,n){var r=n(1702),i=n(19303),o=n(41340),s=n(84488),a=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,h=o(s(t)),f=i(n),d=h.length;return f<0||f>=d?e?"":void 0:(r=u(h,f))<55296||r>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?e?a(h,f):r:e?c(h,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},33197:function(e,t,n){var r=n(1702),i=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,c=r(s.exec),l=Math.floor,h=String.fromCharCode,f=r("".charCodeAt),d=r([].join),p=r([].push),m=r("".replace),v=r("".split),y=r("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),r+=36;return l(r+36*e/(e+38))},_=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=f(e,n++);if(i>=55296&&i<=56319&&n<r){var o=f(e,n++);56320==(64512&o)?p(t,((1023&i)<<10)+(1023&o)+65536):(p(t,i),n--)}else p(t,i)}return t}(e);var n,r,o=e.length,s=128,c=0,m=72;for(n=0;n<e.length;n++)(r=e[n])<128&&p(t,h(r));var v=t.length,y=v;for(v&&p(t,"-");y<o;){var _=i;for(n=0;n<e.length;n++)(r=e[n])>=s&&r<_&&(_=r);var w=y+1;if(_-s>l((i-c)/w))throw u(a);for(c+=(_-s)*w,s=_,n=0;n<e.length;n++){if((r=e[n])<s&&++c>i)throw u(a);if(r==s){for(var k=c,x=36;;){var E=x<=m?1:x>=m+26?26:x-m;if(k<E)break;var S=k-E,A=36-E;p(t,h(g(E+S%A))),k=l(S/A),x+=36}p(t,h(g(k))),m=b(c,w,y==v),c=0,y++}}c++,s++}return d(t,"")};e.exports=function(e){var t,n,r=[],i=v(m(y(e),s,"."),".");for(t=0;t<i.length;t++)n=i[t],p(r,c(o,n)?"xn--"+_(n):n);return d(r,".")}},38415:function(e,t,n){"use strict";var r=n(19303),i=n(41340),o=n(84488),s=RangeError;e.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a==1/0)throw s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},76091:function(e,t,n){var r=n(76530).PROPER,i=n(47293),o=n(81361);e.exports=function(e){return i((function(){return!!o[e]()||"​᠎"!=="​᠎"[e]()||r&&o[e].name!==e}))}},53111:function(e,t,n){var r=n(1702),i=n(84488),o=n(41340),s=n(81361),a=r("".replace),u="["+s+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),h=function(e){return function(t){var n=o(i(t));return 1&e&&(n=a(n,c,"")),2&e&&(n=a(n,l,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},36293:function(e,t,n){var r=n(7392),i=n(47293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},56532:function(e,t,n){var r=n(46916),i=n(35005),o=n(5112),s=n(98052);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,a=o("toPrimitive");t&&!t[a]&&s(t,a,(function(e){return r(n,this)}),{arity:1})}},2015:function(e,t,n){var r=n(36293);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},20261:function(e,t,n){var r,i,o,s,a=n(17854),u=n(22104),c=n(49974),l=n(60614),h=n(92597),f=n(47293),d=n(60490),p=n(50206),m=n(80317),v=n(48053),y=n(6833),g=n(35268),b=a.setImmediate,_=a.clearImmediate,w=a.process,k=a.Dispatch,x=a.Function,E=a.MessageChannel,S=a.String,A=0,T={},O="onreadystatechange";f((function(){r=a.location}));var C=function(e){if(h(T,e)){var t=T[e];delete T[e],t()}},P=function(e){return function(){C(e)}},N=function(e){C(e.data)},M=function(e){a.postMessage(S(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){v(arguments.length,1);var t=l(e)?e:x(e),n=p(arguments,1);return T[++A]=function(){u(t,void 0,n)},i(A),A},_=function(e){delete T[e]},g?i=function(e){w.nextTick(P(e))}:k&&k.now?i=function(e){k.now(P(e))}:E&&!y?(s=(o=new E).port2,o.port1.onmessage=N,i=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!f(M)?(i=M,a.addEventListener("message",N,!1)):i=O in m("script")?function(e){d.appendChild(m("script")).onreadystatechange=function(){d.removeChild(this),C(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:b,clear:_}},50863:function(e,t,n){var r=n(1702);e.exports=r(1..valueOf)},51400:function(e,t,n){var r=n(19303),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},45656:function(e,t,n){var r=n(68361),i=n(84488);e.exports=function(e){return r(i(e))}},19303:function(e,t,n){var r=n(74758);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},17466:function(e,t,n){var r=n(19303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},47908:function(e,t,n){var r=n(84488),i=Object;e.exports=function(e){return i(r(e))}},57593:function(e,t,n){var r=n(46916),i=n(70111),o=n(52190),s=n(58173),a=n(92140),u=n(5112),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=s(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},34948:function(e,t,n){var r=n(57593),i=n(52190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},51694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},41340:function(e,t,n){var r=n(70648),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},66330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},69711:function(e,t,n){var r=n(1702),i=0,o=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},85143:function(e,t,n){var r=n(47293),i=n(5112),o=n(31913),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},43307:function(e,t,n){var r=n(36293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(19781),i=n(47293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48053:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},94811:function(e,t,n){var r=n(17854),i=n(60614),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},26800:function(e,t,n){var r=n(40857),i=n(92597),o=n(6061),s=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(17854),i=n(72309),o=n(92597),s=n(69711),a=n(36293),u=n(43307),c=r.Symbol,l=i("wks"),h=u?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return o(l,e)||(l[e]=a&&o(c,e)?c[e]:h("Symbol."+e)),l[e]}},81361:function(e){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},92222:function(e,t,n){"use strict";var r=n(82109),i=n(47293),o=n(43157),s=n(70111),a=n(47908),u=n(26244),c=n(7207),l=n(86135),h=n(65417),f=n(81194),d=n(5112),p=n(7392),m=d("isConcatSpreadable"),v=p>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!s(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!v||!f("concat")},{concat:function(e){var t,n,r,i,o,s=a(this),f=h(s,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(y(o=-1===t?s:arguments[t]))for(i=u(o),c(d+i),n=0;n<i;n++,d++)n in o&&l(f,d,o[n]);else c(d+1),l(f,d++,o);return f.length=d,f}})},43290:function(e,t,n){var r=n(82109),i=n(21285),o=n(51223);r({target:"Array",proto:!0},{fill:i}),o("fill")},57327:function(e,t,n){"use strict";var r=n(82109),i=n(42092).filter;r({target:"Array",proto:!0,forced:!n(81194)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},34553:function(e,t,n){"use strict";var r=n(82109),i=n(42092).findIndex,o=n(51223),s="findIndex",a=!0;s in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},69826:function(e,t,n){"use strict";var r=n(82109),i=n(42092).find,o=n(51223),s="find",a=!0;s in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},91038:function(e,t,n){var r=n(82109),i=n(48457);r({target:"Array",stat:!0,forced:!n(17072)((function(e){Array.from(e)}))},{from:i})},26699:function(e,t,n){"use strict";var r=n(82109),i=n(41318).includes,o=n(47293),s=n(51223);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},66992:function(e,t,n){"use strict";var r=n(45656),i=n(51223),o=n(97497),s=n(29909),a=n(3070).f,u=n(51656),c=n(76178),l=n(31913),h=n(19781),f="Array Iterator",d=s.set,p=s.getterFor(f);e.exports=u(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&h&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},69600:function(e,t,n){"use strict";var r=n(82109),i=n(1702),o=n(68361),s=n(45656),a=n(9341),u=i([].join);r({target:"Array",proto:!0,forced:o!=Object||!a("join",",")},{join:function(e){return u(s(this),void 0===e?",":e)}})},21249:function(e,t,n){"use strict";var r=n(82109),i=n(42092).map;r({target:"Array",proto:!0,forced:!n(81194)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},85827:function(e,t,n){"use strict";var r=n(82109),i=n(53671).left,o=n(9341),s=n(7392);r({target:"Array",proto:!0,forced:!n(35268)&&s>79&&s<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},47042:function(e,t,n){"use strict";var r=n(82109),i=n(43157),o=n(4411),s=n(70111),a=n(51400),u=n(26244),c=n(45656),l=n(86135),h=n(5112),f=n(81194),d=n(50206),p=f("slice"),m=h("species"),v=Array,y=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,h,f=c(this),p=u(f),g=a(e,p),b=a(void 0===t?p:t,p);if(i(f)&&(n=f.constructor,(o(n)&&(n===v||i(n.prototype))||s(n)&&null===(n=n[m]))&&(n=void 0),n===v||void 0===n))return d(f,g,b);for(r=new(void 0===n?v:n)(y(b-g,0)),h=0;g<b;g++,h++)g in f&&l(r,h,f[g]);return r.length=h,r}})},2707:function(e,t,n){"use strict";var r=n(82109),i=n(1702),o=n(19662),s=n(47908),a=n(26244),u=n(85117),c=n(41340),l=n(47293),h=n(94362),f=n(9341),d=n(68886),p=n(30256),m=n(7392),v=n(98008),y=[],g=i(y.sort),b=i(y.push),_=l((function(){y.sort(void 0)})),w=l((function(){y.sort(null)})),k=f("sort"),x=!l((function(){if(m)return m<70;if(!(d&&d>3)){if(p)return!0;if(v)return v<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;r<y.length;r++)t=y[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:_||!w||!k||!x},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(x)return void 0===e?g(t):g(t,e);var n,r,i=[],l=a(t);for(r=0;r<l;r++)r in t&&b(i,t[r]);for(h(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=a(i),r=0;r<n;)t[r]=i[r++];for(;r<l;)u(t,r++);return t}})},68309:function(e,t,n){var r=n(19781),i=n(76530).EXISTS,o=n(1702),s=n(3070).f,a=Function.prototype,u=o(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&s(a,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},38862:function(e,t,n){var r=n(82109),i=n(35005),o=n(22104),s=n(46916),a=n(1702),u=n(47293),c=n(43157),l=n(60614),h=n(70111),f=n(52190),d=n(50206),p=n(36293),m=i("JSON","stringify"),v=a(/./.exec),y=a("".charAt),g=a("".charCodeAt),b=a("".replace),_=a(1..toString),w=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,E=!p||u((function(){var e=i("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),S=u((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),A=function(e,t){var n=d(arguments),r=t;if((h(t)||void 0!==e)&&!f(e))return c(t)||(t=function(e,t){if(l(r)&&(t=s(r,this,e,t)),!f(t))return t}),n[1]=t,o(m,null,n)},T=function(e,t,n){var r=y(n,t-1),i=y(n,t+1);return v(k,e)&&!v(x,i)||v(x,e)&&!v(k,r)?"\\u"+_(g(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:E||S},{stringify:function(e,t,n){var r=d(arguments),i=o(E?A:m,null,r);return S&&"string"==typeof i?b(i,w,T):i}})},69098:function(e,t,n){"use strict";n(77710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(95631))},51532:function(e,t,n){n(69098)},9653:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19781),s=n(17854),a=n(40857),u=n(1702),c=n(54705),l=n(92597),h=n(79587),f=n(47976),d=n(52190),p=n(57593),m=n(47293),v=n(8006).f,y=n(31236).f,g=n(3070).f,b=n(50863),_=n(53111).trim,w="Number",k=s.Number,x=a.Number,E=k.prototype,S=s.TypeError,A=u("".slice),T=u("".charCodeAt),O=function(e){var t=p(e,"number");return"bigint"==typeof t?t:C(t)},C=function(e){var t,n,r,i,o,s,a,u,c=p(e,"number");if(d(c))throw S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=_(c),43===(t=T(c,0))||45===t){if(88===(n=T(c,2))||120===n)return NaN}else if(48===t){switch(T(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(s=(o=A(c,2)).length,a=0;a<s;a++)if((u=T(o,a))<48||u>i)return NaN;return parseInt(o,r)}return+c},P=c(w,!k(" 0o1")||!k("0b1")||k("+0x1")),N=function(e){return f(E,e)&&m((function(){b(e)}))},M=function(e){var t=arguments.length<1?0:k(O(e));return N(this)?h(Object(t),this,M):t};M.prototype=E,P&&!i&&(E.constructor=M),r({global:!0,constructor:!0,wrap:!0,forced:P},{Number:M});var I=function(e,t){for(var n,r=o?v(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(t,n=r[i])&&!l(e,n)&&g(e,n,y(t,n))};i&&x&&I(a.Number,x),(P||i)&&I(a.Number,k)},35192:function(e,t,n){n(82109)({target:"Number",stat:!0},{isFinite:n(77023)})},44048:function(e,t,n){n(82109)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},61874:function(e,t,n){var r=n(82109),i=n(2814);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},9494:function(e,t,n){var r=n(82109),i=n(83009);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},56977:function(e,t,n){"use strict";var r=n(82109),i=n(1702),o=n(19303),s=n(50863),a=n(38415),u=n(47293),c=RangeError,l=String,h=Math.floor,f=i(a),d=i("".slice),p=i(1..toFixed),m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)},v=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=h(i/1e7)},y=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=h(r/t),r=r%t*1e7},g=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}))},{toFixed:function(e){var t,n,r,i,a=s(this),u=o(e),h=[0,0,0,0,0,0],p="",b="0";if(u<0||u>20)throw c("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return l(a);if(a<0&&(p="-",a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*m(2,69,1))-69)<0?a*m(2,-t,1):a/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(v(h,0,n),r=u;r>=7;)v(h,1e7,0),r-=7;for(v(h,m(10,r,1),0),r=t-1;r>=23;)y(h,1<<23),r-=23;y(h,1<<r),v(h,1,1),y(h,2),b=g(h)}else v(h,0,n),v(h,1<<-t,0),b=g(h)+f("0",u);return b=u>0?p+((i=b.length)<=u?"0."+f("0",u-i)+b:d(b,0,i-u)+"."+d(b,i-u)):p+b}})},19601:function(e,t,n){var r=n(82109),i=n(21574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},69720:function(e,t,n){var r=n(82109),i=n(44699).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},38559:function(e,t,n){var r=n(82109),i=n(20408),o=n(86135);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},38880:function(e,t,n){var r=n(82109),i=n(47293),o=n(45656),s=n(31236).f,a=n(19781);r({target:"Object",stat:!0,forced:!a||i((function(){s(1)})),sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(o(e),t)}})},49337:function(e,t,n){var r=n(82109),i=n(19781),o=n(53887),s=n(45656),a=n(31236),u=n(86135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=s(e),i=a.f,c=o(r),l={},h=0;c.length>h;)void 0!==(n=i(r,t=c[h++]))&&u(l,t,n);return l}})},29660:function(e,t,n){var r=n(82109),i=n(36293),o=n(47293),s=n(25181),a=n(47908);r({target:"Object",stat:!0,forced:!i||o((function(){s.f(1)}))},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},47941:function(e,t,n){var r=n(82109),i=n(47908),o=n(81956);r({target:"Object",stat:!0,forced:n(47293)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},41539:function(e,t,n){var r=n(51694),i=n(98052),o=n(90288);r||i(Object.prototype,"toString",o,{unsafe:!0})},26833:function(e,t,n){var r=n(82109),i=n(44699).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},54678:function(e,t,n){var r=n(82109),i=n(2814);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},91058:function(e,t,n){var r=n(82109),i=n(83009);r({global:!0,forced:parseInt!=i},{parseInt:i})},70821:function(e,t,n){"use strict";var r=n(82109),i=n(46916),o=n(19662),s=n(78523),a=n(12534),u=n(20408);r({target:"Promise",stat:!0,forced:n(80612)},{all:function(e){var t=this,n=s.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=o(t.resolve),s=[],a=0,l=1;u(e,(function(e){var o=a++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,s[o]=e,--l||r(s))}),c)})),--l||r(s)}));return l.error&&c(l.value),n.promise}})},94164:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(63702).CONSTRUCTOR,s=n(2492),a=n(35005),u=n(60614),c=n(98052),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(s)){var h=a("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},43401:function(e,t,n){"use strict";var r,i,o,s=n(82109),a=n(31913),u=n(35268),c=n(17854),l=n(46916),h=n(98052),f=n(27674),d=n(58003),p=n(96340),m=n(19662),v=n(60614),y=n(70111),g=n(25787),b=n(36707),_=n(20261).set,w=n(95948),k=n(842),x=n(12534),E=n(18572),S=n(29909),A=n(2492),T=n(63702),O=n(78523),C="Promise",P=T.CONSTRUCTOR,N=T.REJECTION_EVENT,M=T.SUBCLASSING,I=S.getterFor(C),D=S.set,j=A&&A.prototype,L=A,R=j,F=c.TypeError,B=c.document,q=c.process,U=O.f,z=U,V=!!(B&&B.createEvent&&c.dispatchEvent),H="unhandledrejection",K=function(e){var t;return!(!y(e)||!v(t=e.then))&&t},W=function(e,t){var n,r,i,o=t.value,s=1==t.state,a=s?e.ok:e.fail,u=e.resolve,c=e.reject,h=e.domain;try{a?(s||(2===t.rejection&&Z(t),t.rejection=1),!0===a?n=o:(h&&h.enter(),n=a(o),h&&(h.exit(),i=!0)),n===e.promise?c(F("Promise-chain cycle")):(r=K(n))?l(r,n,u,c):u(n)):c(o)}catch(e){h&&!i&&h.exit(),c(e)}},$=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)W(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},G=function(e,t,n){var r,i;V?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!N&&(i=c["on"+e])?i(r):e===H&&k("Unhandled promise rejection",n)},Y=function(e){l(_,c,(function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=x((function(){u?q.emit("unhandledRejection",r,n):G(H,n,r)})),e.rejection=u||J(e)?2:1,t.error))throw t.value}))},J=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){l(_,c,(function(){var t=e.facade;u?q.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,$(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw F("Promise can't be resolved itself");var r=K(t);r?w((function(){var n={done:!1};try{l(r,t,X(ee,n,e),X(Q,n,e))}catch(t){Q(n,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){Q({done:!1},t,e)}}};if(P&&(R=(L=function(e){g(this,R),m(e),l(r,this);var t=I(this);try{e(X(ee,t),X(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){D(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:void 0})}).prototype=h(R,"then",(function(e,t){var n=I(this),r=U(b(this,L));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=u?q.domain:void 0,0==n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),i=function(){var e=new r,t=I(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(Q,t)},O.f=U=function(e){return e===L||undefined===e?new i(e):z(e)},!a&&v(A)&&j!==Object.prototype)){o=j.then,M||h(j,"then",(function(e,t){var n=this;return new L((function(e,t){l(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete j.constructor}catch(e){}f&&f(j,R)}s({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),d(L,C,!1,!0),p(C)},17727:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(2492),s=n(47293),a=n(35005),u=n(60614),c=n(36707),l=n(69478),h=n(98052),f=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&s((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,a("Promise")),n=u(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&u(o)){var d=a("Promise").prototype.finally;f.finally!==d&&h(f,"finally",d,{unsafe:!0})}},88674:function(e,t,n){n(43401),n(70821),n(94164),n(6027),n(60683),n(96294)},6027:function(e,t,n){"use strict";var r=n(82109),i=n(46916),o=n(19662),s=n(78523),a=n(12534),u=n(20408);r({target:"Promise",stat:!0,forced:n(80612)},{race:function(e){var t=this,n=s.f(t),r=n.reject,c=a((function(){var s=o(t.resolve);u(e,(function(e){i(s,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},60683:function(e,t,n){"use strict";var r=n(82109),i=n(46916),o=n(78523);r({target:"Promise",stat:!0,forced:n(63702).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},96294:function(e,t,n){"use strict";var r=n(82109),i=n(35005),o=n(31913),s=n(2492),a=n(63702).CONSTRUCTOR,u=n(69478),c=i("Promise"),l=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return u(l&&this===c?s:this,e)}})},12419:function(e,t,n){var r=n(82109),i=n(35005),o=n(22104),s=n(27065),a=n(39483),u=n(19670),c=n(70111),l=n(70030),h=n(47293),f=i("Reflect","construct"),d=Object.prototype,p=[].push,m=h((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),v=!h((function(){f((function(){}))})),y=m||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){a(e),u(t);var n=arguments.length<3?e:a(arguments[2]);if(v&&!m)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(p,r,t),new(o(s,e,r))}var i=n.prototype,h=l(c(i)?i:d),y=o(e,h,t);return c(y)?y:h}})},24603:function(e,t,n){var r=n(19781),i=n(17854),o=n(1702),s=n(54705),a=n(79587),u=n(68880),c=n(8006).f,l=n(47976),h=n(47850),f=n(41340),d=n(34706),p=n(52999),m=n(2626),v=n(98052),y=n(47293),g=n(92597),b=n(29909).enforce,_=n(96340),w=n(5112),k=n(9441),x=n(38173),E=w("match"),S=i.RegExp,A=S.prototype,T=i.SyntaxError,O=o(A.exec),C=o("".charAt),P=o("".replace),N=o("".indexOf),M=o("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,j=/a/g,L=new S(D)!==D,R=p.MISSED_STICKY,F=p.UNSUPPORTED_Y,B=r&&(!L||R||k||x||y((function(){return j[E]=!1,S(D)!=D||S(j)==j||"/a/i"!=S(D,"i")})));if(s("RegExp",B)){for(var q=function(e,t){var n,r,i,o,s,c,p=l(A,this),m=h(e),v=void 0===t,y=[],_=e;if(!p&&m&&v&&e.constructor===q)return e;if((m||l(A,e))&&(e=e.source,v&&(t=d(_))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),_=e,k&&"dotAll"in D&&(r=!!t&&N(t,"s")>-1)&&(t=P(t,/s/g,"")),n=t,R&&"sticky"in D&&(i=!!t&&N(t,"y")>-1)&&F&&(t=P(t,/y/g,"")),x&&(o=function(e){for(var t,n=e.length,r=0,i="",o=[],s={},a=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(t=C(e,r)))t+=C(e,++r);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:O(I,M(e,r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===l||g(s,l))throw new T("Invalid capture group name");s[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=t:i+=t}return[i,o]}(e),e=o[0],y=o[1]),s=a(S(e,t),p?this:A,q),(r||i||y.length)&&(c=b(s),r&&(c.dotAll=!0,c.raw=q(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=C(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+C(e,++r);return i}(e),n)),i&&(c.sticky=!0),y.length&&(c.groups=y)),e!==_)try{u(s,"source",""===_?"(?:)":_)}catch(e){}return s},U=c(S),z=0;U.length>z;)m(q,S,U[z++]);A.constructor=q,q.prototype=A,v(i,"RegExp",q,{constructor:!0})}_("RegExp")},74916:function(e,t,n){"use strict";var r=n(82109),i=n(22261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},88386:function(e,t,n){var r=n(19781),i=n(52999).MISSED_STICKY,o=n(84326),s=n(47045),a=n(29909).get,u=RegExp.prototype,c=TypeError;r&&i&&s(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!a(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},77601:function(e,t,n){"use strict";n(74916);var r,i,o=n(82109),s=n(46916),a=n(60614),u=n(19670),c=n(41340),l=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),h=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=u(this),n=c(e),r=t.exec;if(!a(r))return s(h,t,n);var i=s(r,t,n);return null!==i&&(u(i),!0)}})},39714:function(e,t,n){"use strict";var r=n(76530).PROPER,i=n(98052),o=n(19670),s=n(41340),a=n(47293),u=n(34706),c="toString",l=RegExp.prototype.toString,h=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=r&&l.name!=c;(h||f)&&i(RegExp.prototype,c,(function(){var e=o(this);return"/"+s(e.source)+"/"+s(u(e))}),{unsafe:!0})},37227:function(e,t,n){"use strict";n(77710)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(95631))},70189:function(e,t,n){n(37227)},15218:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},29253:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("fixed")},{fixed:function(){return i(this,"tt","","")}})},32023:function(e,t,n){"use strict";var r=n(82109),i=n(1702),o=n(3929),s=n(84488),a=n(41340),u=n(84964),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},78783:function(e,t,n){"use strict";var r=n(28710).charAt,i=n(41340),o=n(29909),s=n(51656),a=n(76178),u="String Iterator",c=o.set,l=o.getterFor(u);s(String,"String",(function(e){c(this,{type:u,string:i(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=r(n,i),t.index+=e.length,a(e,!1))}))},29254:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("link")},{link:function(e){return i(this,"a","href",e)}})},4723:function(e,t,n){"use strict";var r=n(46916),i=n(27007),o=n(19670),s=n(68554),a=n(17466),u=n(41340),c=n(84488),l=n(58173),h=n(31530),f=n(97651);i("match",(function(e,t,n){return[function(t){var n=c(this),i=s(t)?void 0:l(t,e);return i?r(i,t,n):new RegExp(t)[e](u(n))},function(e){var r=o(this),i=u(e),s=n(t,r,i);if(s.done)return s.value;if(!r.global)return f(r,i);var c=r.unicode;r.lastIndex=0;for(var l,d=[],p=0;null!==(l=f(r,i));){var m=u(l[0]);d[p]=m,""===m&&(r.lastIndex=h(i,a(r.lastIndex),c)),p++}return 0===p?null:d}]}))},68757:function(e,t,n){"use strict";var r=n(82109),i=n(46916),o=n(1702),s=n(84488),a=n(60614),u=n(68554),c=n(47850),l=n(41340),h=n(58173),f=n(34706),d=n(10647),p=n(5112),m=n(31913),v=p("replace"),y=TypeError,g=o("".indexOf),b=o("".replace),_=o("".slice),w=Math.max,k=function(e,t,n){return n>e.length?-1:""===t?n:g(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,p,x,E,S,A,T,O=s(this),C=0,P=0,N="";if(!u(e)){if((n=c(e))&&(r=l(s(f(e))),!~g(r,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(o=h(e,v))return i(o,e,O,t);if(m&&n)return b(l(O),e,t)}for(p=l(O),x=l(e),(E=a(t))||(t=l(t)),S=x.length,A=w(1,S),C=k(p,x,0);-1!==C;)T=E?l(t(x,C,p)):d(x,p,C,[],void 0,t),N+=_(p,P,C)+T,P=C+S,C=k(p,x,C+A);return P<p.length&&(N+=_(p,P)),N}})},15306:function(e,t,n){"use strict";var r=n(22104),i=n(46916),o=n(1702),s=n(27007),a=n(47293),u=n(19670),c=n(60614),l=n(68554),h=n(19303),f=n(17466),d=n(41340),p=n(84488),m=n(31530),v=n(58173),y=n(10647),g=n(97651),b=n(5112)("replace"),_=Math.max,w=Math.min,k=o([].concat),x=o([].push),E=o("".indexOf),S=o("".slice),A="$0"==="a".replace(/./,"$0"),T=!!/./[b]&&""===/./[b]("a","$0");s("replace",(function(e,t,n){var o=T?"$":"$0";return[function(e,n){var r=p(this),o=l(e)?void 0:v(e,b);return o?i(o,e,r,n):i(t,d(r),e,n)},function(e,i){var s=u(this),a=d(e);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var l=n(t,s,a,i);if(l.done)return l.value}var p=c(i);p||(i=d(i));var v=s.global;if(v){var b=s.unicode;s.lastIndex=0}for(var A=[];;){var T=g(s,a);if(null===T)break;if(x(A,T),!v)break;""===d(T[0])&&(s.lastIndex=m(a,f(s.lastIndex),b))}for(var O,C="",P=0,N=0;N<A.length;N++){for(var M=d((T=A[N])[0]),I=_(w(h(T.index),a.length),0),D=[],j=1;j<T.length;j++)x(D,void 0===(O=T[j])?O:String(O));var L=T.groups;if(p){var R=k([M],D,I,a);void 0!==L&&x(R,L);var F=d(r(i,void 0,R))}else F=y(M,a,I,D,L,i);I>=P&&(C+=S(a,P,I)+F,P=I+M.length)}return C+S(a,P)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!A||T)},64765:function(e,t,n){"use strict";var r=n(46916),i=n(27007),o=n(19670),s=n(68554),a=n(84488),u=n(81150),c=n(41340),l=n(58173),h=n(97651);i("search",(function(e,t,n){return[function(t){var n=a(this),i=s(t)?void 0:l(t,e);return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),s=n(t,r,i);if(s.done)return s.value;var a=r.lastIndex;u(a,0)||(r.lastIndex=0);var l=h(r,i);return u(r.lastIndex,a)||(r.lastIndex=a),null===l?-1:l.index}]}))},23123:function(e,t,n){"use strict";var r=n(22104),i=n(46916),o=n(1702),s=n(27007),a=n(19670),u=n(68554),c=n(47850),l=n(84488),h=n(36707),f=n(31530),d=n(17466),p=n(41340),m=n(58173),v=n(41589),y=n(97651),g=n(22261),b=n(52999),_=n(47293),w=b.UNSUPPORTED_Y,k=4294967295,x=Math.min,E=[].push,S=o(/./.exec),A=o(E),T=o("".slice),O=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));s("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=p(l(this)),s=void 0===n?k:n>>>0;if(0===s)return[];if(void 0===e)return[o];if(!c(e))return i(t,o,e,s);for(var a,u,h,f=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,y=new RegExp(e.source,d+"g");(a=i(g,y,o))&&!((u=y.lastIndex)>m&&(A(f,T(o,m,a.index)),a.length>1&&a.index<o.length&&r(E,f,v(a,1)),h=a[0].length,m=u,f.length>=s));)y.lastIndex===a.index&&y.lastIndex++;return m===o.length?!h&&S(y,"")||A(f,""):A(f,T(o,m)),f.length>s?v(f,0,s):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=l(this),s=u(t)?void 0:m(t,e);return s?i(s,t,r,n):i(o,p(r),t,n)},function(e,r){var i=a(this),s=p(e),u=n(o,i,s,r,o!==t);if(u.done)return u.value;var c=h(i,RegExp),l=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),v=new c(w?"^(?:"+i.source+")":i,m),g=void 0===r?k:r>>>0;if(0===g)return[];if(0===s.length)return null===y(v,s)?[s]:[];for(var b=0,_=0,E=[];_<s.length;){v.lastIndex=w?0:_;var S,O=y(v,w?T(s,_):s);if(null===O||(S=x(d(v.lastIndex+(w?_:0)),s.length))===b)_=f(s,_,l);else{if(A(E,T(s,b,_)),E.length===g)return E;for(var C=1;C<=O.length-1;C++)if(A(E,O[C]),E.length===g)return E;_=b=S}}return A(E,T(s,b)),E}]}),!O,w)},23157:function(e,t,n){"use strict";var r,i=n(82109),o=n(21470),s=n(31236).f,a=n(17466),u=n(41340),c=n(3929),l=n(84488),h=n(84964),f=n(31913),d=o("".startsWith),p=o("".slice),m=Math.min,v=h("startsWith");i({target:"String",proto:!0,forced:!!(f||v||(r=s(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(e){var t=u(l(this));c(e);var n=a(m(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return d?d(t,r,n):p(t,n,n+r.length)===r}})},73210:function(e,t,n){"use strict";var r=n(82109),i=n(53111).trim;r({target:"String",proto:!0,forced:n(76091)("trim")},{trim:function(){return i(this)}})},4032:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(46916),s=n(1702),a=n(31913),u=n(19781),c=n(36293),l=n(47293),h=n(92597),f=n(47976),d=n(19670),p=n(45656),m=n(34948),v=n(41340),y=n(79114),g=n(70030),b=n(81956),_=n(8006),w=n(1156),k=n(25181),x=n(31236),E=n(3070),S=n(36048),A=n(55296),T=n(98052),O=n(72309),C=n(6200),P=n(3501),N=n(69711),M=n(5112),I=n(6061),D=n(26800),j=n(56532),L=n(58003),R=n(29909),F=n(42092).forEach,B=C("hidden"),q="Symbol",U=R.set,z=R.getterFor(q),V=Object.prototype,H=i.Symbol,K=H&&H.prototype,W=i.TypeError,$=i.QObject,G=x.f,Y=E.f,J=w.f,Z=A.f,X=s([].push),Q=O("symbols"),ee=O("op-symbols"),te=O("wks"),ne=!$||!$.prototype||!$.prototype.findChild,re=u&&l((function(){return 7!=g(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=G(V,t);r&&delete V[t],Y(e,t,n),r&&e!==V&&Y(V,t,r)}:Y,ie=function(e,t){var n=Q[e]=g(K);return U(n,{type:q,tag:e,description:t}),u||(n.description=t),n},oe=function(e,t,n){e===V&&oe(ee,t,n),d(e);var r=m(t);return d(n),h(Q,r)?(n.enumerable?(h(e,B)&&e[B][r]&&(e[B][r]=!1),n=g(n,{enumerable:y(0,!1)})):(h(e,B)||Y(e,B,y(1,{})),e[B][r]=!0),re(e,r,n)):Y(e,r,n)},se=function(e,t){d(e);var n=p(t),r=b(n).concat(le(n));return F(r,(function(t){u&&!o(ae,n,t)||oe(e,t,n[t])})),e},ae=function(e){var t=m(e),n=o(Z,this,t);return!(this===V&&h(Q,t)&&!h(ee,t))&&(!(n||!h(this,t)||!h(Q,t)||h(this,B)&&this[B][t])||n)},ue=function(e,t){var n=p(e),r=m(t);if(n!==V||!h(Q,r)||h(ee,r)){var i=G(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},ce=function(e){var t=J(p(e)),n=[];return F(t,(function(e){h(Q,e)||h(P,e)||X(n,e)})),n},le=function(e){var t=e===V,n=J(t?ee:p(e)),r=[];return F(n,(function(e){!h(Q,e)||t&&!h(V,e)||X(r,Q[e])})),r};c||(H=function(){if(f(K,this))throw W("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=N(e),n=function(e){this===V&&o(n,ee,e),h(this,B)&&h(this[B],t)&&(this[B][t]=!1),re(this,t,y(1,e))};return u&&ne&&re(V,t,{configurable:!0,set:n}),ie(t,e)},T(K=H.prototype,"toString",(function(){return z(this).tag})),T(H,"withoutSetter",(function(e){return ie(N(e),e)})),A.f=ae,E.f=oe,S.f=se,x.f=ue,_.f=w.f=ce,k.f=le,I.f=function(e){return ie(M(e),e)},u&&(Y(K,"description",{configurable:!0,get:function(){return z(this).description}}),a||T(V,"propertyIsEnumerable",ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(b(te),(function(e){D(e)})),r({target:q,stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?g(e):se(g(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ce}),j(),L(H,q),P[B]=!0},41817:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(17854),s=n(1702),a=n(92597),u=n(60614),c=n(47976),l=n(41340),h=n(3070).f,f=n(99920),d=o.Symbol,p=d&&d.prototype;if(i&&u(d)&&(!("description"in p)||void 0!==d().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(m[t]=!0),t};f(v,d),v.prototype=p,p.constructor=v;var y="Symbol(test)"==String(d("test")),g=s(p.valueOf),b=s(p.toString),_=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),k=s("".slice);h(p,"description",{configurable:!0,get:function(){var e=g(this);if(a(m,e))return"";var t=b(e),n=y?k(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},40763:function(e,t,n){var r=n(82109),i=n(35005),o=n(92597),s=n(41340),a=n(72309),u=n(2015),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=s(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,l[n]=t,n}})},32165:function(e,t,n){n(26800)("iterator")},82526:function(e,t,n){n(4032),n(40763),n(26620),n(38862),n(29660)},26620:function(e,t,n){var r=n(82109),i=n(92597),o=n(52190),s=n(66330),a=n(72309),u=n(2015),c=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw TypeError(s(e)+" is not a symbol");if(i(c,e))return c[e]}})},27207:function(e,t,n){n(68757)},54747:function(e,t,n){var r=n(17854),i=n(48324),o=n(98509),s=n(18533),a=n(68880),u=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},33948:function(e,t,n){var r=n(17854),i=n(48324),o=n(98509),s=n(66992),a=n(68880),u=n(5112),c=u("iterator"),l=u("toStringTag"),h=s.values,f=function(e,t){if(e){if(e[c]!==h)try{a(e,c,h)}catch(t){e[c]=h}if(e[l]||a(e,l,t),i[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},65556:function(e,t,n){"use strict";n(66992);var r=n(82109),i=n(17854),o=n(46916),s=n(1702),a=n(19781),u=n(85143),c=n(98052),l=n(89190),h=n(58003),f=n(63061),d=n(29909),p=n(25787),m=n(60614),v=n(92597),y=n(49974),g=n(70648),b=n(19670),_=n(70111),w=n(41340),k=n(70030),x=n(79114),E=n(18554),S=n(71246),A=n(48053),T=n(5112),O=n(94362),C=T("iterator"),P="URLSearchParams",N="URLSearchParamsIterator",M=d.set,I=d.getterFor(P),D=d.getterFor(N),j=Object.getOwnPropertyDescriptor,L=function(e){if(!a)return i[e];var t=j(i,e);return t&&t.value},R=L("fetch"),F=L("Request"),B=L("Headers"),q=F&&F.prototype,U=B&&B.prototype,z=i.RegExp,V=i.TypeError,H=i.decodeURIComponent,K=i.encodeURIComponent,W=s("".charAt),$=s([].join),G=s([].push),Y=s("".replace),J=s([].shift),Z=s([].splice),X=s("".split),Q=s("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return H(e)}catch(t){return e}},ie=function(e){var t=Y(e,ee," "),n=4;try{return H(t)}catch(e){for(;n;)t=Y(t,ne(n--),re);return t}},oe=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ae=function(e){return se[e]},ue=function(e){return Y(K(e),oe,ae)},ce=f((function(e,t){M(this,{type:N,iterator:E(I(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===W(e,0)?Q(e,1):e:w(e)))};le.prototype={type:P,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,s,a,u,c=S(e);if(c)for(n=(t=E(e,c)).next;!(r=o(n,t)).done;){if(s=(i=E(b(r.value))).next,(a=o(s,i)).done||(u=o(s,i)).done||!o(s,i).done)throw V("Expected sequence with length 2");G(this.entries,{key:w(a.value),value:w(u.value)})}else for(var l in e)v(e,l)&&G(this.entries,{key:l,value:w(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=X(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(n=X(t,"="),G(this.entries,{key:ie(J(n)),value:ie($(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],G(n,ue(e.key)+"="+ue(e.value));return $(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){p(this,fe);var e=arguments.length>0?arguments[0]:void 0;M(this,new le(e))},fe=he.prototype;if(l(fe,{append:function(e,t){A(arguments.length,2);var n=I(this);G(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){A(arguments.length,1);for(var t=I(this),n=t.entries,r=w(e),i=0;i<n.length;)n[i].key===r?Z(n,i,1):i++;t.updateURL()},get:function(e){A(arguments.length,1);for(var t=I(this).entries,n=w(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){A(arguments.length,1);for(var t=I(this).entries,n=w(e),r=[],i=0;i<t.length;i++)t[i].key===n&&G(r,t[i].value);return r},has:function(e){A(arguments.length,1);for(var t=I(this).entries,n=w(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){A(arguments.length,1);for(var n,r=I(this),i=r.entries,o=!1,s=w(e),a=w(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?Z(i,u--,1):(o=!0,n.value=a));o||G(i,{key:s,value:a}),r.updateURL()},sort:function(){var e=I(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=I(this).entries,r=y(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(fe,C,fe.entries,{name:"entries"}),c(fe,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),h(he,P),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:he}),!u&&m(B)){var de=s(U.has),pe=s(U.set),me=function(e){if(_(e)){var t,n=e.body;if(g(n)===P)return t=e.headers?new B(e.headers):new B,de(t,"content-type")||pe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:x(0,w(n)),headers:x(0,t)})}return e};if(m(R)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return R(e,arguments.length>1?me(arguments[1]):{})}}),m(F)){var ve=function(e){return p(this,q),new F(e,arguments.length>1?me(arguments[1]):{})};q.constructor=ve,ve.prototype=q,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:he,getState:I}},41637:function(e,t,n){n(65556)},68789:function(e,t,n){"use strict";n(78783);var r,i=n(82109),o=n(19781),s=n(85143),a=n(17854),u=n(49974),c=n(1702),l=n(98052),h=n(47045),f=n(25787),d=n(92597),p=n(21574),m=n(48457),v=n(41589),y=n(28710).codeAt,g=n(33197),b=n(41340),_=n(58003),w=n(48053),k=n(65556),x=n(29909),E=x.set,S=x.getterFor("URL"),A=k.URLSearchParams,T=k.getState,O=a.URL,C=a.TypeError,P=a.parseInt,N=Math.floor,M=Math.pow,I=c("".charAt),D=c(/./.exec),j=c([].join),L=c(1..toString),R=c([].pop),F=c([].push),B=c("".replace),q=c([].shift),U=c("".split),z=c("".slice),V=c("".toLowerCase),H=c([].unshift),K="Invalid scheme",W="Invalid host",$="Invalid port",G=/[a-z]/i,Y=/[\d+-.a-z]/i,J=/\d/,Z=/^0x/i,X=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ie=/[\t\n\r]/g,oe=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=N(e/256);return j(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=L(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},ae=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},ae,{"#":1,"?":1,"{":1,"}":1}),ce=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var n=y(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},he={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e,t){var n;return 2==e.length&&D(G,I(e,0))&&(":"==(n=I(e,1))||!t&&"|"==n)},de=function(e){var t;return e.length>1&&fe(z(e,0,2))&&(2==e.length||"/"===(t=I(e,2))||"\\"===t||"?"===t||"#"===t)},pe=function(e){return"."===e||"%2e"===V(e)},me={},ve={},ye={},ge={},be={},_e={},we={},ke={},xe={},Ee={},Se={},Ae={},Te={},Oe={},Ce={},Pe={},Ne={},Me={},Ie={},De={},je={},Le=function(e,t,n){var r,i,o,s=b(e);if(t){if(i=this.parse(s))throw C(i);this.searchParams=null}else{if(void 0!==n&&(r=new Le(n,!0)),i=this.parse(s,null,r))throw C(i);(o=T(new A)).bindURL(this),this.searchParams=o}};Le.prototype={type:"URL",parse:function(e,t,n){var i,o,s,a,u,c=this,l=t||me,h=0,f="",p=!1,y=!1,g=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=B(e,re,"")),e=B(e,ie,""),i=m(e);h<=i.length;){switch(o=i[h],l){case me:if(!o||!D(G,o)){if(t)return K;l=ye;continue}f+=V(o),l=ve;break;case ve:if(o&&(D(Y,o)||"+"==o||"-"==o||"."==o))f+=V(o);else{if(":"!=o){if(t)return K;f="",l=ye,h=0;continue}if(t&&(c.isSpecial()!=d(he,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&he[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?l=Oe:c.isSpecial()&&n&&n.scheme==c.scheme?l=ge:c.isSpecial()?l=ke:"/"==i[h+1]?(l=be,h++):(c.cannotBeABaseURL=!0,F(c.path,""),l=Ie)}break;case ye:if(!n||n.cannotBeABaseURL&&"#"!=o)return K;if(n.cannotBeABaseURL&&"#"==o){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=je;break}l="file"==n.scheme?Oe:_e;continue;case ge:if("/"!=o||"/"!=i[h+1]){l=_e;continue}l=xe,h++;break;case be:if("/"==o){l=Ee;break}l=Me;continue;case _e:if(c.scheme=n.scheme,o==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==o||"\\"==o&&c.isSpecial())l=we;else if("?"==o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=De;else{if("#"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=Me;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=je}break;case we:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Me;continue}l=Ee}else l=xe;break;case ke:if(l=xe,"/"!=o||"/"!=I(f,h+1))continue;h++;break;case xe:if("/"!=o&&"\\"!=o){l=Ee;continue}break;case Ee:if("@"==o){p&&(f="%40"+f),p=!0,s=m(f);for(var _=0;_<s.length;_++){var w=s[_];if(":"!=w||g){var k=le(w,ce);g?c.password+=k:c.username+=k}else g=!0}f=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(p&&""==f)return"Invalid authority";h-=m(f).length+1,f="",l=Se}else f+=o;break;case Se:case Ae:if(t&&"file"==c.scheme){l=Pe;continue}if(":"!=o||y){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==f)return W;if(t&&""==f&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(f))return a;if(f="",l=Ne,t)return;continue}"["==o?y=!0:"]"==o&&(y=!1),f+=o}else{if(""==f)return W;if(a=c.parseHost(f))return a;if(f="",l=Te,t==Ae)return}break;case Te:if(!D(J,o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=f){var x=P(f,10);if(x>65535)return $;c.port=c.isSpecial()&&x===he[c.scheme]?null:x,f=""}if(t)return;l=Ne;continue}return $}f+=o;break;case Oe:if(c.scheme="file","/"==o||"\\"==o)l=Ce;else{if(!n||"file"!=n.scheme){l=Me;continue}if(o==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==o)c.host=n.host,c.path=v(n.path),c.query="",l=De;else{if("#"!=o){de(j(v(i,h),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=Me;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=je}}break;case Ce:if("/"==o||"\\"==o){l=Pe;break}n&&"file"==n.scheme&&!de(j(v(i,h),""))&&(fe(n.path[0],!0)?F(c.path,n.path[0]):c.host=n.host),l=Me;continue;case Pe:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&fe(f))l=Me;else if(""==f){if(c.host="",t)return;l=Ne}else{if(a=c.parseHost(f))return a;if("localhost"==c.host&&(c.host=""),t)return;f="",l=Ne}continue}f+=o;break;case Ne:if(c.isSpecial()){if(l=Me,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=r&&(l=Me,"/"!=o))continue}else c.fragment="",l=je;else c.query="",l=De;break;case Me:if(o==r||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(u=V(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||F(c.path,"")):pe(f)?"/"==o||"\\"==o&&c.isSpecial()||F(c.path,""):("file"==c.scheme&&!c.path.length&&fe(f)&&(c.host&&(c.host=""),f=I(f,0)+":"),F(c.path,f)),f="","file"==c.scheme&&(o==r||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)q(c.path);"?"==o?(c.query="",l=De):"#"==o&&(c.fragment="",l=je)}else f+=le(o,ue);break;case Ie:"?"==o?(c.query="",l=De):"#"==o?(c.fragment="",l=je):o!=r&&(c.path[0]+=le(o,se));break;case De:t||"#"!=o?o!=r&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":le(o,se)):(c.fragment="",l=je);break;case je:o!=r&&(c.fragment+=le(o,ae))}h++}},parseHost:function(e){var t,n,r;if("["==I(e,0)){if("]"!=I(e,e.length-1))return W;if(t=function(e){var t,n,r,i,o,s,a,u=[0,0,0,0,0,0,0,0],c=0,l=null,h=0,f=function(){return I(e,h)};if(":"==f()){if(":"!=I(e,1))return;h+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&D(ee,f());)t=16*t+P(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,c>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;h++}if(!D(J,f()))return;for(;D(J,f());){if(o=P(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;u[c++]=t}else{if(null!==l)return;h++,l=++c}}if(null!==l)for(s=c-l,c=7;0!=c&&s>0;)a=u[c],u[c--]=u[l+s-1],u[l+--s]=a;else if(8!=c)return;return u}(z(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=g(e),D(te,e))return W;if(t=function(e){var t,n,r,i,o,s,a,u=U(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=u[r]))return e;if(o=10,i.length>1&&"0"==I(i,0)&&(o=D(Z,i)?16:8,i=z(i,8==o?1:2)),""===i)s=0;else{if(!D(10==o?Q:8==o?X:ee,i))return e;s=P(i,o)}F(n,s)}for(r=0;r<t;r++)if(s=n[r],r==t-1){if(s>=M(256,5-t))return null}else if(s>255)return null;for(a=R(n),r=0;r<n.length;r++)a+=n[r]*M(256,3-r);return a}(e),null===t)return W;this.host=t}else{if(D(ne,e))return W;for(t="",n=m(e),r=0;r<n.length;r++)t+=le(n[r],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(he,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&fe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,s=e.path,a=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=oe(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+j(s,"/"):"",null!==a&&(c+="?"+a),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw C(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Re(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+oe(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=le(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=le(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?oe(e):oe(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Se)},getHostname:function(){var e=this.host;return null===e?"":oe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+j(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ne))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==I(e,0)&&(e=z(e,1)),this.query="",this.parse(e,De)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==I(e,0)&&(e=z(e,1)),this.fragment="",this.parse(e,je)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Re=function(e){var t=f(this,Fe),n=w(arguments.length,1)>1?arguments[1]:void 0,r=E(t,new Le(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Fe=Re.prototype,Be=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(h(Fe,"href",Be("serialize","setHref")),h(Fe,"origin",Be("getOrigin")),h(Fe,"protocol",Be("getProtocol","setProtocol")),h(Fe,"username",Be("getUsername","setUsername")),h(Fe,"password",Be("getPassword","setPassword")),h(Fe,"host",Be("getHost","setHost")),h(Fe,"hostname",Be("getHostname","setHostname")),h(Fe,"port",Be("getPort","setPort")),h(Fe,"pathname",Be("getPathname","setPathname")),h(Fe,"search",Be("getSearch","setSearch")),h(Fe,"searchParams",Be("getSearchParams")),h(Fe,"hash",Be("getHash","setHash"))),l(Fe,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(Fe,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),O){var qe=O.createObjectURL,Ue=O.revokeObjectURL;qe&&l(Re,"createObjectURL",u(qe,O)),Ue&&l(Re,"revokeObjectURL",u(Ue,O))}_(Re,"URL"),i({global:!0,constructor:!0,forced:!s,sham:!o},{URL:Re})},60285:function(e,t,n){n(68789)},18037:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],i=Array.apply(null,Array(r.length)).map((function(e){return null}));function o(e){var t="string"==typeof e,n=t&&"<"===e.trim().charAt(0);return t&&!n}function s(e,t){n.onError(e,r[t],t)}function a(e,t){var o=n.onSuccess(e,r[t],t);e=!1===o?"":o||e,i[t]=e,-1===i.indexOf(null)&&n.onComplete(i)}var u=document.createElement("a");r.forEach((function(e,t){if(u.setAttribute("href",e),u.href=String(u.href),Boolean(document.all&&!window.atob)&&u.host.split(":")[0]!==location.host.split(":")[0]){if(u.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){var e=r.responseText;o(e)?a(e,t):s(r,t)},r.onerror=function(e){s(r,t)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),s(null,t)}else{var i=new XMLHttpRequest;i.open("GET",e),n.mimeType&&i.overrideMimeType&&i.overrideMimeType(n.mimeType),n.onBeforeSend(i,e,t),i.onreadystatechange=function(){if(4===i.readyState){var e=i.responseText;i.status<400&&o(e)||0===i.status&&o(e)?a(e,t):s(i,t)}},i.send()}}))}function o(e){var t=/\/\*[\s\S]+?\*\//g,n=/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g,r={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,skipDisabled:!1!==e.skipDisabled,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},o=Array.apply(null,r.rootElement.querySelectorAll(r.include)).filter((function(e){return t=e,n=r.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,n);var t,n})),a=Array.apply(null,Array(o.length)).map((function(e){return null}));function u(){if(-1===a.indexOf(null)){a.reduce((function(e,t,n){return""===t&&e.push(n),e}),[]).reverse().forEach((function(e){return[o,a].forEach((function(t){return t.splice(e,1)}))}));var e=a.join("");r.onComplete(e,a,o)}}function c(e,t,n,i){var o=r.onSuccess(e,n,i);h(e=void 0!==o&&!1===Boolean(o)?"":o||e,n,i,(function(e,i){null===a[t]&&(i.forEach((function(e){return r.onError(e.xhr,n,e.url)})),!r.filter||r.filter.test(e)?a[t]=e:a[t]="",u())}))}function l(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(e.replace(t,"").match(n)||[]).filter((function(e){return-1===i.indexOf(e)})),o.urls=o.rules.map((function(e){return e.replace(n,"$1")})),o.absoluteUrls=o.urls.map((function(e){return s(e,r)})),o.absoluteRules=o.rules.map((function(e,t){var n=o.urls[t],i=s(o.absoluteUrls[t],r);return e.replace(n,i)})),o}function h(e,t,n,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=l(e,n,a);u.rules.length?i(u.absoluteUrls,{onBeforeSend:function(e,n,i){r.onBeforeSend(e,t,n)},onSuccess:function(e,n,i){var o=r.onSuccess(e,t,n),s=l(e=!1===o?"":o||e,n,a);return s.rules.forEach((function(t,n){e=e.replace(t,s.absoluteRules[n])})),e},onError:function(r,i,c){s.push({xhr:r,url:i}),a.push(u.rules[c]),h(e,t,n,o,s,a)},onComplete:function(r){r.forEach((function(t,n){e=e.replace(u.rules[n],t)})),h(e,t,n,o,s,a)}}):o(e,s)}o.length?o.forEach((function(e,t){var n=e.getAttribute("href"),o=e.getAttribute("rel"),l="link"===e.nodeName.toLowerCase()&&n&&o&&-1!==o.toLowerCase().indexOf("stylesheet"),h=!1!==r.skipDisabled&&e.disabled,f="style"===e.nodeName.toLowerCase();if(l&&!h)if(-1!==n.indexOf("data:text/css")){var d=decodeURIComponent(n.substring(n.indexOf(",")+1));r.useCSSOM&&(d=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),c(d,t,e,location.href)}else i(n,{mimeType:"text/css",onBeforeSend:function(t,n,i){r.onBeforeSend(t,e,n)},onSuccess:function(r,i,o){var a=s(n);c(r,t,e,a)},onError:function(n,i,o){a[t]="",r.onError(n,e,i),u()}});else if(f&&!h){var p=e.textContent;r.useCSSOM&&(p=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),c(p,t,e,location.href)}else a[t]="",u()})):r.onComplete("",[])}function s(e,t){var n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),r.href=t||document.baseURI||(document.querySelector("base")||{}).href||location.href,i.href=e,i.href}n.d(t,{Z:function(){return C}});var a=u;function u(e,t,n){e instanceof RegExp&&(e=c(e,n)),t instanceof RegExp&&(t=c(t,n));var r=l(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function c(e,t){var n=t.match(e);return n?n[0]:null}function l(e,t,n){var r,i,o,s,a,u=n.indexOf(e),c=n.indexOf(t,u+1),l=u;if(u>=0&&c>0){if(e===t)return[u,c];for(r=[],o=n.length;l>=0&&!a;)l==u?(r.push(l),u=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),c]:((i=r.pop())<o&&(o=i,s=c),c=n.indexOf(t,l+1)),l=u<c&&u>=0?u:c;r.length&&(a=[o,s])}return a}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,removeComments:!1},i=r({},n,t),o=[];function s(e){throw new Error("CSS parse error: ".concat(e))}function u(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function c(){return u(/^{\s*/)}function l(){return u(/^}/)}function h(){u(/^\s*/)}function f(){if(h(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return s("end of comment is missing");var n=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:n}}}function d(){for(var e,t=[];e=f();)t.push(e);return i.removeComments?[]:t}function p(){for(h();"}"===e[0];)s("extra closing bracket");var t=u(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t){var n,r=t[0].trim();/\/\*/.test(r)&&(r=r.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,""));var i=/["']\w*,\w*["']/.test(r);return i&&(r=r.replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")}))),n=/,/.test(r)?r.split(/\s*(?![^(]*\)),\s*/):[r],i&&(n=n.map((function(e){return e.replace(/\u200C/g,",")}))),n}}function m(){if("@"===e[0])return O();u(/^([;\s]*)+/);var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=u(/^(\*?[-#/*\\\w.]+(\[[0-9a-z_-]+\])?)\s*/);if(n){if(n=n[0].trim(),!u(/^:\s*/))return s("property missing ':'");var r=u(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),i={type:"declaration",property:n.replace(t,""),value:r?r[0].replace(t,"").trim():""};return u(/^[;\s]*/),i}}function v(){if(!c())return s("missing '{'");for(var e,t=d();e=m();)t.push(e),t=t.concat(d());return l()?t:s("missing '}'")}function y(){h();for(var e,t=[];e=u(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),u(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:v()}}function g(){var e=u(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=u(/^([-\w]+)\s*/)))return s("@keyframes missing name");var n,r=e[1];if(!c())return s("@keyframes missing '{'");for(var i=d();n=y();)i.push(n),i=i.concat(d());return l()?{type:"keyframes",name:r,vendor:t,keyframes:i}:s("@keyframes missing '}'")}}function b(){if(u(/^@page */))return{type:"page",selectors:p()||[],declarations:v()}}function _(){var e=u(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(e)return{type:"page-margin-box",name:"".concat(e[1],"-").concat(e[2])+(e[3]?"-".concat(e[3]):""),declarations:v()}}function w(){if(u(/^@font-face\s*/))return{type:"font-face",declarations:v()}}function k(){var e=u(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:P()}}function x(){if(u(/^@host\s*/))return{type:"host",rules:P()}}function E(){var e=u(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:P()}}function S(){var e=u(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}function A(){var e=u(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:P()}}function T(){var e=u(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}function O(){if(h(),"@"===e[0]){var t=T()||w()||E()||g()||k()||A()||S()||x()||b()||_();if(t&&!i.preserveStatic){var n=!1;if(t.declarations)n=t.declarations.some((function(e){return/var\(/.test(e.value)}));else n=(t.keyframes||t.rules||[]).some((function(e){return(e.declarations||[]).some((function(e){return/var\(/.test(e.value)}))}));return n?t:{}}return t}}function C(){if(!i.preserveStatic){var t=a("{","}",e);if(t){var n=/:(?:root|host)(?![.:#(])/.test(t.pre)&&/--\S*\s*:/.test(t.body),r=/var\(/.test(t.body);if(!n&&!r)return e=e.slice(t.end+1),{}}}var o=p()||[],u=i.preserveStatic?v():v().filter((function(e){var t=o.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));return o.length||s("selector missing"),{type:"rule",selectors:o,declarations:u}}function P(t){if(!t&&!c())return s("missing '{'");for(var n,r=d();e.length&&(t||"}"!==e[0])&&(n=O()||C());)n.type&&r.push(n),r=r.concat(d());return t||l()?r:s("missing '}'")}return{type:"stylesheet",stylesheet:{rules:P(!0),errors:o}}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={parseHost:!1,store:{},onWarning:function(){}},i=r({},n,t),o=new RegExp(":".concat(i.parseHost?"host":"root","$"));return"string"==typeof e&&(e=h(e,i)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return o.test(e)}))&&e.declarations.forEach((function(e,t){var n=e.property,r=e.value;n&&0===n.indexOf("--")&&(i.store[n]=r)}))})),i.store}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+i(e.rules)+"}"},"font-face":function(e){return"@font-face{"+i(e.declarations)+"}"},host:function(e){return"@host{"+i(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+i(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+i(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+i(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+i(e.declarations)+"}"},"page-margin-box":function(e){return"@"+e.name+"{"+i(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+i(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+i(e.rules)+"}"}};function i(e){for(var i="",o=0;o<e.length;o++){var s=e[o];n&&n(s);var a=r[s.type](s);a&&(i+=a,a.length&&s.selectors&&(i+=t))}return i}return i(e.stylesheet.rules)}function p(e,t){e.rules.forEach((function(n){n.rules?p(n,t):n.keyframes?n.keyframes.forEach((function(e){"keyframe"===e.type&&t(e.declarations,n)})):n.declarations&&t(n.declarations,e)}))}u.range=l;function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},i=r({},n,t);return"string"==typeof e&&(e=h(e,i)),p(e.stylesheet,(function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=r.type,s=r.property,a=r.value;if("declaration"===o)if(i.preserveVars||!s||0!==s.indexOf("--")){if(-1!==a.indexOf("var(")){var u=y(a,i);u!==r.value&&(u=v(u),i.preserveVars?(e.splice(n,0,{type:o,property:s,value:u}),n++):r.value=u)}}else e.splice(n,1),n--}})),d(e)}function v(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=a("(",")",e);function i(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),i=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],o=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,s=o||(i?String(i):void 0),a=n||e;return o||t.onWarning('variable "'.concat(r,'" is undefined')),s&&"undefined"!==s&&s.length>0?y(s,t,a):"var(".concat(a,")")}if(r){if("var"===r.pre.slice(-3)){var o=0===r.body.trim().length;return o?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+i(r.body)+y(r.post,t)}return r.pre+"(".concat(y(r.body,t),")")+y(r.post,t)}return-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e}var g="undefined"!=typeof window,b=g&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),_={group:0,job:0},w={rootElement:g?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onError:function(){},onWarning:function(){},onSuccess:function(){},onComplete:function(){},onFinally:function(){}},k={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},x={dom:{},job:{},user:{}},E=!1,S=null,A=0,T=null,O=!1;function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="cssVars(): ",n=r({},w,e);function i(e,r,i,o){!n.silent&&window.console&&console.error("".concat(t).concat(e,"\n"),r),n.onError(e,r,i,o)}function s(e){!n.silent&&window.console&&console.warn("".concat(t).concat(e)),n.onWarning(e)}function a(e){n.onFinally(Boolean(e),b,L()-n.__benchmark)}if(g){if(n.watch)return n.watch=w.watch,P(n),void C(n);if(!1===n.watch&&S&&(S.disconnect(),S=null),!n.__benchmark){if(E===n.rootElement)return void N(e);var u=[].slice.call(n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));if(n.__benchmark=L(),n.exclude=[S?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',"link[disabled]:not([data-cssvars])",n.exclude].filter((function(e){return e})).join(","),n.variables=D(n.variables),u.forEach((function(e){var t="style"===e.nodeName.toLowerCase()&&e.__cssVars.text,n=t&&e.textContent!==e.__cssVars.text;t&&n&&(e.sheet&&(e.sheet.disabled=!1),e.setAttribute("data-cssvars",""))})),!S){var c=[].slice.call(n.rootElement.querySelectorAll('[data-cssvars="out"]'));c.forEach((function(e){var t=e.getAttribute("data-cssvars-group");(t?n.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)})),A&&u.length<A&&(A=u.length,x.dom={})}}if("loading"!==document.readyState)if(b&&n.onlyLegacy){var l=!1;if(n.updateDOM){var p=n.rootElement.host||(n.rootElement===document?document.documentElement:n.rootElement);Object.keys(n.variables).forEach((function(e){var t=n.variables[e];l=l||t!==getComputedStyle(p).getPropertyValue(e),p.style.setProperty(e,t)}))}a(l)}else!O&&(n.shadowDOM||n.rootElement.shadowRoot||n.rootElement.host)?o({rootElement:w.rootElement,include:w.include,exclude:n.exclude,skipDisabled:!1,onSuccess:function(e,t,n){return!((t.sheet||{}).disabled&&!t.__cssVars)&&((e=((e=e.replace(k.cssComments,"").replace(k.cssMediaQueries,"")).match(k.cssVarDeclRules)||[]).join(""))||!1)},onComplete:function(e,t,r){f(e,{store:x.dom,onWarning:s}),O=!0,C(n)}}):(E=n.rootElement,o({rootElement:n.rootElement,include:n.include,exclude:n.exclude,skipDisabled:!1,onBeforeSend:n.onBeforeSend,onError:function(e,t,n){var r=e.responseURL||j(n,location.href),o=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");i("CSS XHR Error: ".concat(r," ").concat(e.status," ").concat(o),t,e,r)},onSuccess:function(e,t,r){if((t.sheet||{}).disabled&&!t.__cssVars)return!1;var i="link"===t.nodeName.toLowerCase(),o="style"===t.nodeName.toLowerCase()&&e!==t.textContent,s=n.onSuccess(e,t,r);return e=void 0!==s&&!1===Boolean(s)?"":s||e,n.updateURLs&&(i||o)&&(e=I(e,r)),e},onComplete:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u=r({},x.dom,x.user);if(x.job={},o.forEach((function(e,r){var o=t[r];if(e.__cssVars=e.__cssVars||{},e.__cssVars.text=o,k.cssVars.test(o))try{var a=h(o,{preserveStatic:n.preserveStatic,removeComments:!0});f(a,{parseHost:Boolean(n.rootElement.host),store:x.dom,onWarning:s}),e.__cssVars.tree=a}catch(t){i(t.message,e)}})),r(x.job,x.dom),n.updateDOM?(r(x.user,n.variables),r(x.job,x.user)):(r(x.job,x.user,n.variables),r(u,n.variables)),_.job>0&&Boolean(Object.keys(x.job).length>Object.keys(u).length||Boolean(Object.keys(u).length&&Object.keys(x.job).some((function(e){return x.job[e]!==u[e]})))))R(n.rootElement),C(n);else{var c=[],l=[],p=!1;if(n.updateDOM&&_.job++,o.forEach((function(e,o){var a=!e.__cssVars.tree;if(e.__cssVars.tree)try{m(e.__cssVars.tree,r({},n,{variables:x.job,onWarning:s}));var u=d(e.__cssVars.tree);if(n.updateDOM){var h=t[o],f=k.cssVarFunc.test(h);if(e.getAttribute("data-cssvars")||e.setAttribute("data-cssvars","src"),u.length&&f){var v=e.getAttribute("data-cssvars-group")||++_.group,y=u.replace(/\s/g,""),g=n.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(v,'"]'))||document.createElement("style");p=p||k.cssKeyframes.test(u),n.preserveStatic&&e.sheet&&(e.sheet.disabled=!0),g.hasAttribute("data-cssvars")||g.setAttribute("data-cssvars","out"),y===e.textContent.replace(/\s/g,"")?(a=!0,g&&g.parentNode&&(e.removeAttribute("data-cssvars-group"),g.parentNode.removeChild(g))):y!==g.textContent.replace(/\s/g,"")&&([e,g].forEach((function(e){e.setAttribute("data-cssvars-job",_.job),e.setAttribute("data-cssvars-group",v)})),g.textContent=u,c.push(u),l.push(g),g.parentNode||e.parentNode.insertBefore(g,e.nextSibling))}}else e.textContent.replace(/\s/g,"")!==u&&c.push(u)}catch(t){i(t.message,e)}a&&e.setAttribute("data-cssvars","skip"),e.hasAttribute("data-cssvars-job")||e.setAttribute("data-cssvars-job",_.job)})),A=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,n.shadowDOM)for(var v,y=[].concat(n.rootElement).concat([].slice.call(n.rootElement.querySelectorAll("*"))),g=0;v=y[g];++g)if(v.shadowRoot&&v.shadowRoot.querySelector("style")){var b=r({},n,{rootElement:v.shadowRoot});C(b)}n.updateDOM&&p&&M(n.rootElement),E=!1,n.onComplete(c.join(""),l,JSON.parse(JSON.stringify(x.job)),L()-n.__benchmark),a(l.length)}}}));else document.addEventListener("DOMContentLoaded",(function t(n){C(e),document.removeEventListener("DOMContentLoaded",t)}))}}function P(e){function t(e){var t=n(e)&&e.hasAttribute("disabled"),r=(e.sheet||{}).disabled;return t||r}function n(e){return"link"===e.nodeName.toLowerCase()&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")}function r(e){return"style"===e.nodeName.toLowerCase()}window.MutationObserver&&(S&&(S.disconnect(),S=null),(S=new MutationObserver((function(i){i.some((function(i){return function(r){var i=!1;if("attributes"===r.type&&n(r.target)&&!t(r.target)){var o="disabled"===r.attributeName,s="href"===r.attributeName,a="skip"===r.target.getAttribute("data-cssvars"),u="src"===r.target.getAttribute("data-cssvars");o?i=!a&&!u:s&&(a?r.target.setAttribute("data-cssvars",""):u&&R(e.rootElement,!0),i=!0)}return i}(i)||function(e){var t=!1;if("childList"===e.type){var n=r(e.target),i="out"===e.target.getAttribute("data-cssvars");t=n&&!i}return t}(i)||function(e){var i=!1;return"childList"===e.type&&(i=[].slice.call(e.addedNodes).some((function(e){var i=1===e.nodeType&&e.hasAttribute("data-cssvars"),o=r(e)&&k.cssVars.test(e.textContent);return!i&&(n(e)||o)&&!t(e)}))),i}(i)||function(t){var n=!1;return"childList"===t.type&&(n=[].slice.call(t.removedNodes).some((function(t){var n=1===t.nodeType,r=n&&"out"===t.getAttribute("data-cssvars"),i=n&&"src"===t.getAttribute("data-cssvars"),o=i;if(i||r){var s=t.getAttribute("data-cssvars-group"),a=e.rootElement.querySelector('[data-cssvars-group="'.concat(s,'"]'));i&&R(e.rootElement,!0),a&&a.parentNode.removeChild(a)}return o}))),n}(i)}))&&C(e)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0}))}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(T),T=setTimeout((function(){e.__benchmark=null,C(e)}),t)}function M(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(e){return getComputedStyle(document.body)[e]}))[0];if(t){for(var n=[].slice.call(e.querySelectorAll("*")),r=[],i="__CSSVARSPONYFILL-KEYFRAMES__",o=0,s=n.length;o<s;o++){var a=n[o];"none"!==getComputedStyle(a)[t]&&(a.style[t]+=i,r.push(a))}document.body.offsetHeight;for(var u=0,c=r.length;u<c;u++){var l=r[u].style;l[t]=l[t].replace(i,"")}}}function I(e,t){return(e.replace(k.cssComments,"").match(k.cssUrls)||[]).forEach((function(n){var r=n.replace(k.cssUrls,"$1"),i=j(r,t);e=e.replace(n,n.replace(r,i))})),e}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^-{2}/;return Object.keys(e).reduce((function(n,r){return n[t.test(r)?r:"--".concat(r.replace(/^-+/,""))]=e[r],n}),{})}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),r.href=t,i.href=e,i.href}function L(){return g&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].slice.call(e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]'));n.forEach((function(e){return e.setAttribute("data-cssvars","")})),t&&(x.dom={})}C.reset=function(){for(var e in _.job=0,_.group=0,E=!1,S&&(S.disconnect(),S=null),A=0,T=null,O=!1,x)x[e]={}}},67810:function(){!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}()},13882:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},58654:function(e,t,n){"use strict";n.d(t,{Z:function(){return ue}});var r=n(49599);function i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var o=n(19013),s=n(13882);function a(e,t){(0,s.Z)(2,arguments);var n=(0,o.Z)(e).getTime(),r=i(t);return new Date(n+r)}function u(e,t){(0,s.Z)(2,arguments);var n=i(t);return a(e,-n)}var c=864e5;function l(e){(0,s.Z)(1,arguments);var t=1,n=(0,o.Z)(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function h(e){(0,s.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=l(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var u=l(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function f(e){(0,s.Z)(1,arguments);var t=h(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=l(n);return r}var d=6048e5;var p={};function m(){return p}function v(e,t){var n,r,a,u,c,l,h,f;(0,s.Z)(1,arguments);var d=m(),p=i(null!==(n=null!==(r=null!==(a=null!==(u=null==t?void 0:t.weekStartsOn)&&void 0!==u?u:null==t||null===(c=t.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==r?r:null===(h=d.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,o.Z)(e),y=v.getUTCDay(),g=(y<p?7:0)+y-p;return v.setUTCDate(v.getUTCDate()-g),v.setUTCHours(0,0,0,0),v}function y(e,t){var n,r,a,u,c,l,h,f;(0,s.Z)(1,arguments);var d=(0,o.Z)(e),p=d.getUTCFullYear(),y=m(),g=i(null!==(n=null!==(r=null!==(a=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t||null===(c=t.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==a?a:y.firstWeekContainsDate)&&void 0!==r?r:null===(h=y.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(p+1,0,g),b.setUTCHours(0,0,0,0);var _=v(b,t),w=new Date(0);w.setUTCFullYear(p,0,g),w.setUTCHours(0,0,0,0);var k=v(w,t);return d.getTime()>=_.getTime()?p+1:d.getTime()>=k.getTime()?p:p-1}function g(e,t){var n,r,o,a,u,c,l,h;(0,s.Z)(1,arguments);var f=m(),d=i(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),p=y(e,t),g=new Date(0);g.setUTCFullYear(p,0,d),g.setUTCHours(0,0,0,0);var b=v(g,t);return b}var b=6048e5;function _(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var w={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return _("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):_(n+1,2)},d:function(e,t){return _(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return _(e.getUTCHours()%12||12,t.length)},H:function(e,t){return _(e.getUTCHours(),t.length)},m:function(e,t){return _(e.getUTCMinutes(),t.length)},s:function(e,t){return _(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return _(Math.floor(r*Math.pow(10,n-3)),t.length)}},k="midnight",x="noon",E="morning",S="afternoon",A="evening",T="night",O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return w.y(e,t)},Y:function(e,t,n,r){var i=y(e,r),o=i>0?i:1-i;return"YY"===t?_(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):_(o,t.length)},R:function(e,t){return _(h(e),t.length)},u:function(e,t){return _(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return _(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return _(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return w.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return _(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){(0,s.Z)(1,arguments);var n=(0,o.Z)(e),r=v(n,t).getTime()-g(n,t).getTime();return Math.round(r/b)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):_(i,t.length)},I:function(e,t,n){var r=function(e){(0,s.Z)(1,arguments);var t=(0,o.Z)(e),n=l(t).getTime()-f(t).getTime();return Math.round(n/d)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):_(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):w.d(e,t)},D:function(e,t,n){var r=function(e){(0,s.Z)(1,arguments);var t=(0,o.Z)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/c)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):_(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return _(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return _(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return _(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?x:0===i?k:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?A:i>=12?S:i>=4?E:T,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return w.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):w.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):_(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):_(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):w.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):w.s(e,t)},S:function(e,t){return w.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return P(i);case"XXXX":case"XX":return N(i);default:return N(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return P(i);case"xxxx":case"xx":return N(i);default:return N(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+C(i,":");default:return"GMT"+N(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+C(i,":");default:return"GMT"+N(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return _(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return _((r._originalDate||e).getTime(),t.length)}};function C(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var s=t||"";return n+String(i)+s+_(o,2)}function P(e,t){return e%60==0?(e>0?"-":"+")+_(Math.abs(e)/60,2):N(e,t)}function N(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+_(Math.floor(i/60),2)+n+_(i%60,2)}var M=O,I=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},D=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},j={p:D,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return I(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",I(i,t)).replace("{{time}}",D(o,t))}},L=j;function R(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var F=["D","DD"],B=["YY","YYYY"];function q(e){return-1!==F.indexOf(e)}function U(e){return-1!==B.indexOf(e)}function z(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var V={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},H=function(e,t,n){var r,i=V[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function K(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var W={date:K({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:K({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:K({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},$={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},G=function(e,t,n,r){return $[e]};function Y(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var J={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Y({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Y({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Y({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Y({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Y({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Z(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s,a=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?Q(u,(function(e){return e.test(a)})):X(u,(function(e){return e.test(a)}));s=e.valueCallback?e.valueCallback(c):c,s=n.valueCallback?n.valueCallback(s):s;var l=t.slice(a.length);return{value:s,rest:l}}}function X(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Q(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var ee,te={ordinalNumber:(ee={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(ee.matchPattern);if(!n)return null;var r=n[0],i=e.match(ee.parsePattern);if(!i)return null;var o=ee.valueCallback?ee.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(r.length);return{value:o,rest:s}}),era:Z({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Z({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Z({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Z({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Z({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},ne={code:"en-US",formatDistance:H,formatLong:W,formatRelative:G,localize:J,match:te,options:{weekStartsOn:0,firstWeekContainsDate:1}},re=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ie=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oe=/^'([^]*?)'?$/,se=/''/g,ae=/[a-zA-Z]/;function ue(e,t,n){var a,c,l,h,f,d,p,v,y,g,b,_,w,k,x,E,S,A;(0,s.Z)(2,arguments);var T=String(t),O=m(),C=null!==(a=null!==(c=null==n?void 0:n.locale)&&void 0!==c?c:O.locale)&&void 0!==a?a:ne,P=i(null!==(l=null!==(h=null!==(f=null!==(d=null==n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:null==n||null===(p=n.locale)||void 0===p||null===(v=p.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==f?f:O.firstWeekContainsDate)&&void 0!==h?h:null===(y=O.locale)||void 0===y||null===(g=y.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==l?l:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=i(null!==(b=null!==(_=null!==(w=null!==(k=null==n?void 0:n.weekStartsOn)&&void 0!==k?k:null==n||null===(x=n.locale)||void 0===x||null===(E=x.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==w?w:O.weekStartsOn)&&void 0!==_?_:null===(S=O.locale)||void 0===S||null===(A=S.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==b?b:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var I=(0,o.Z)(e);if(!(0,r.Z)(I))throw new RangeError("Invalid time value");var D=R(I),j=u(I,D),F={firstWeekContainsDate:P,weekStartsOn:N,locale:C,_originalDate:I},B=T.match(ie).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,L[t])(e,C.formatLong):e})).join("").match(re).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return ce(r);var o=M[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!U(r)||z(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!q(r)||z(r,t,String(e)),o(j,r,C.localize,F);if(i.match(ae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return B}function ce(e){var t=e.match(oe);return t?t[1].replace(se,"'"):e}},49599:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(13882);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===i(e)&&"[object Date]"===Object.prototype.toString.call(e)}var s=n(19013);function a(e){if((0,r.Z)(1,arguments),!o(e)&&"number"!=typeof e)return!1;var t=(0,s.Z)(e);return!isNaN(Number(t))}},19013:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(13882);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===i(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},6907:function(e){"use strict";var t,n,r;t="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",n=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*["+t+"]"),r=new RegExp("^[^A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]*[֑-߿יִ-﷽ﹰ-ﻼ]"),e.exports=function(e){return e=e.toString(),r.test(e)?"rtl":n.test(e)?"ltr":"neutral"}},78181:function(e,t,n){var r;e=n.nmd(e),function(i){var o=t,s=(e&&e.exports,"object"==typeof n.g&&n.g);s.global!==s&&s.window;var a=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,u=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,c=function(e){for(var t="",n=(e=e.replace(a,(function(e,t,n){return c(n)+t})).replace(u,"$2$1")).length;n--;)t+=e.charAt(n);return t},l={version:"0.2.0",reverse:c};void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},35369:function(e,t,n){"use strict";n.d(t,{D5:function(){return At},WV:function(){return nr},aV:function(){return Jt},hU:function(){return Zn},is:function(){return ue},l4:function(){return On}});var r=32,i=31,o={};function s(e){e&&(e.value=!0)}function a(){}function u(e){return void 0===e.size&&(e.size=e.__iterate(l)),e.size}function c(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?u(e)+t:t}function l(){return!0}function h(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function f(e,t){return p(e,t,0)}function d(e,t){return p(e,t,t)}function p(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function y(e){return Boolean(e&&e[v])}var g="@@__IMMUTABLE_KEYED__@@";function b(e){return Boolean(e&&e[g])}var _="@@__IMMUTABLE_INDEXED__@@";function w(e){return Boolean(e&&e[_])}function k(e){return b(e)||w(e)}var x=function(e){return y(e)?e:W(e)},E=function(e){function t(e){return b(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),S=function(e){function t(e){return w(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),A=function(e){function t(e){return y(e)&&!k(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x);x.Keyed=E,x.Indexed=S,x.Set=A;var T="@@__IMMUTABLE_SEQ__@@";function O(e){return Boolean(e&&e[T])}var C="@@__IMMUTABLE_RECORD__@@";function P(e){return Boolean(e&&e[C])}function N(e){return y(e)||P(e)}var M="@@__IMMUTABLE_ORDERED__@@";function I(e){return Boolean(e&&e[M])}var D="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",L=D||j,R=function(e){this.next=e};function F(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function B(){return{value:void 0,done:!0}}function q(e){return!!V(e)}function U(e){return e&&"function"==typeof e.next}function z(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(D&&e[D]||e["@@iterator"]);if("function"==typeof t)return t}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[L]=function(){return this};var H=Object.prototype.hasOwnProperty;function K(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var W=function(e){function t(e){return null==e?ee():N(e)?e.toSeq():function(e){var t=re(e);if(t)return t;if("object"==typeof e)return new Z(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new R((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return F(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(x),$=function(e){function t(e){return null==e?ee().toKeyedSeq():y(e)?b(e)?e.toSeq():e.fromEntrySeq():P(e)?e.toSeq():te(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(W),G=function(e){function t(e){return null==e?ee():y(e)?b(e)?e.entrySeq():e.toIndexedSeq():P(e)?e.toSeq().entrySeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(W),Y=function(e){function t(e){return(y(e)&&!k(e)?e:G(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(W);W.isSeq=O,W.Keyed=$,W.Set=Y,W.Indexed=G,W.prototype[T]=!0;var J=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[c(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new R((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return F(e,o,n[o])}))},t}(G),Z=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return H.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var s=r[t?i-++o:o++];if(!1===e(n[s],s,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new R((function(){if(o===i)return{value:void 0,done:!0};var s=r[t?i-++o:o++];return F(e,s,n[s])}))},t}($);Z.prototype[M]=!0;var X,Q=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=z(this._collection),r=0;if(U(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=z(this._collection);if(!U(n))return new R(B);var r=0;return new R((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t}(G);function ee(){return X||(X=new J([]))}function te(e){var t=Array.isArray(e)?new J(e):q(e)?new Q(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new Z(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ne(e){var t=re(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function re(e){return K(e)?new J(e):q(e)?new Q(e):void 0}var ie="@@__IMMUTABLE_MAP__@@";function oe(e){return Boolean(e&&e[ie])}function se(e){return oe(e)&&I(e)}function ae(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ue(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(ae(e)&&ae(t)&&e.equals(t))}var ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function le(e){return e>>>1&1073741824|3221225471&e}var he=Object.prototype.valueOf;function fe(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return le(t)}(e);case"string":return e.length>_e?function(e){var t=xe[e];void 0===t&&(t=de(e),ke===we&&(ke=0,xe={}),ke++,xe[e]=t);return t}(e):de(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?le(e.hashCode(e)):(e.valueOf!==he&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(ye&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[be]))return t;if(!me){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[be]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++ge,1073741824&ge&&(ge=0);if(ye)ve.set(e,t);else{if(void 0!==pe&&!1===pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(me)Object.defineProperty(e,be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[be]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return de(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function de(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return le(t)}var pe=Object.isExtensible,me=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var ve,ye="function"==typeof WeakMap;ye&&(ve=new WeakMap);var ge=0,be="__immutablehash__";"function"==typeof Symbol&&(be=Symbol(be));var _e=16,we=255,ke=0,xe={},Ee=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Pe(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Ce(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}($);Ee.prototype[M]=!0;var Se=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&u(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&u(this),new R((function(){var o=r.next();return o.done?o:F(e,t?n.size-++i:i++,o.value,o)}))},t}(G),Ae=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new R((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t}(Y),Te=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ue(t);var r=y(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new R((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ue(r);var i=y(r);return F(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}($);function Oe(e){var t=Ve(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=He,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new R((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Ce(e,t,n){var r=Ve(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var s=e.get(r,o);return s===o?i:t.call(n,s,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,s){return!1!==r(t.call(n,e,i,s),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new R((function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return F(r,a,t.call(n,s[1],a,e),i)}))},r}function Pe(e,t){var n=this,r=Ve(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Oe(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=He,r.__iterate=function(n,r){var i=this,o=0;return r&&u(e),e.__iterate((function(e,s){return n(e,t?s:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&u(e);var s=e.__iterator(2,!i);return new R((function(){var e=s.next();if(e.done)return e;var a=e.value;return F(r,t?a[0]:i?n.size-++o:o++,a[1],e)}))},r}function Ne(e,t,n,r){var i=Ve(e);return r&&(i.has=function(r){var i=e.get(r,o);return i!==o&&!!t.call(n,i,r,e)},i.get=function(r,i){var s=e.get(r,o);return s!==o&&t.call(n,s,r,e)?s:i}),i.__iterateUncached=function(i,o){var s=this,a=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return a++,i(e,r?o:a-1,s)}),o),a},i.__iteratorUncached=function(i,o){var s=e.__iterator(2,o),a=0;return new R((function(){for(;;){var o=s.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return F(i,r?c:a++,l,o)}}))},i}function Me(e,t,n,r){var i=e.size;if(h(t,n,i))return e;var o=f(t,i),s=d(n,i);if(o!=o||s!=s)return Me(e.toSeq().cacheResult(),t,n,r);var a,u=s-o;u==u&&(a=u<0?0:u);var l=Ve(e);return l.size=0===a?a:e.size&&a||void 0,!r&&O(e)&&a>=0&&(l.get=function(t,n){return(t=c(this,t))>=0&&t<a?e.get(t+o,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,u=!0,c=0;return e.__iterate((function(e,n){if(!u||!(u=s++<o))return c++,!1!==t(e,r?n:c-1,i)&&c!==a})),c},l.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);if(0===a)return new R(B);var i=e.__iterator(t,n),s=0,u=0;return new R((function(){for(;s++<o;)i.next();if(++u>a)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:F(t,u-1,0===t?void 0:e.value[1],e)}))},l}function Ie(e,t,n,r){var i=Ve(e);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,u=0;return e.__iterate((function(e,o,c){if(!a||!(a=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,s)})),u},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=e.__iterator(2,o),u=!0,c=0;return new R((function(){var e,o,l;do{if((e=a.next()).done)return r||1===i?e:F(i,c++,0===i?void 0:e.value[1],e);var h=e.value;o=h[0],l=h[1],u&&(u=t.call(n,l,o,s))}while(u);return 2===i?e:F(i,o,l,e)}))},i}function De(e,t){var n=b(e),r=[e].concat(t).map((function(e){return y(e)?n&&(e=E(e)):e=n?te(e):ne(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&b(i)||w(e)&&w(i))return i}var o=new J(r);return n?o=o.toKeyedSeq():w(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}function je(e,t,n){var r=Ve(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;return function e(u,c){u.__iterate((function(o,u){return(!t||c<t)&&y(o)?e(o,c+1):(s++,!1===i(o,n?u:s-1,r)&&(a=!0)),!a}),o)}(e,0),s},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),s=[],a=0;return new R((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(s.length<t)||!y(u))return n?e:F(r,a++,u,e);s.push(o),o=u.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Le(e,t,n){t||(t=Ke);var r=b(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?$(o):w(e)?G(o):Y(o)}function Re(e,t,n){if(t||(t=Ke),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Fe(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Fe(t,e,n)?n:e}))}function Fe(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Be(e,t,n,r){var i=Ve(e),o=new J(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=x(e),z(i?e.reverse():e)})),s=0,a=!1;return new R((function(){var n;return a||(n=o.map((function(e){return e.next()})),a=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),a?{value:void 0,done:!0}:F(e,s++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function qe(e,t){return e===t?e:O(e)?t:e.constructor(t)}function Ue(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ze(e){return b(e)?E:w(e)?S:A}function Ve(e){return Object.create((b(e)?$:w(e)?G:Y).prototype)}function He(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function Ke(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function We(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function $e(e,t){if(!e)throw new Error(t)}function Ge(e){$e(e!==1/0,"Cannot perform this action with an infinite size.")}function Ye(e){if(K(e)&&"string"!=typeof e)return e;if(I(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function Je(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}function Ze(e){return"object"==typeof e&&(N(e)||Array.isArray(e)||Je(e))}function Xe(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function Qe(e,t){return N(e)?e.has(t):Ze(e)&&H.call(e,t)}function et(e,t,n){return N(e)?e.get(t,n):Qe(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function tt(e){if(Array.isArray(e))return We(e);var t={};for(var n in e)H.call(e,n)&&(t[n]=e[n]);return t}function nt(e,t){if(!Ze(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(N(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!H.call(e,t))return e;var n=tt(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function rt(e,t,n){if(!Ze(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(N(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(H.call(e,t)&&n===e[t])return e;var r=tt(e);return r[t]=n,r}function it(e,t,n,r){r||(r=n,n=void 0);var i=ot(N(e),e,Ye(t),0,n,r);return i===o?n:i}function ot(e,t,n,r,i,s){var a=t===o;if(r===n.length){var u=a?i:t,c=s(u);return c===u?t:c}if(!a&&!Ze(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(Xe)+"]: "+t);var l=n[r],h=a?o:et(t,l,o),f=ot(h===o?e:N(h),h,n,r+1,i,s);return f===h?t:f===o?nt(t,l):rt(a?e?Ft():{}:t,l,f)}function st(e,t,n){return it(e,t,o,(function(){return n}))}function at(e,t){return st(this,e,t)}function ut(e,t){return it(e,t,(function(){return o}))}function ct(e){return ut(this,e)}function lt(e,t,n,r){return it(e,[t],n,r)}function ht(e,t,n){return 1===arguments.length?e(this):lt(this,e,t,n)}function ft(e,t,n){return it(this,e,t,n)}function dt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return mt(this,e)}function pt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return mt(this,t,e)}function mt(e,t,n){for(var r=[],i=0;i<t.length;i++){var s=E(t[i]);0!==s.size&&r.push(s)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){lt(e,r,o,(function(e){return e===o?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})):e.constructor(r[0])}function vt(e,t,n){return yt(e,t,function(e){function t(n,r,i){return Ze(n)&&Ze(r)?yt(n,[r],t):e?e(n,r,i):r}return t}(n))}function yt(e,t,n){if(!Ze(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(N(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?S:E,s=r?function(t){i===e&&(i=tt(i)),i.push(t)}:function(t,r){var o=H.call(i,r),s=o&&n?n(i[r],t,r):t;o&&s===i[r]||(i===e&&(i=tt(i)),i[r]=s)},a=0;a<t.length;a++)o(t[a]).forEach(s);return i}function gt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return vt(this,e)}function bt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return vt(this,t,e)}function _t(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return it(this,e,Ft(),(function(e){return yt(e,t)}))}function wt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return it(this,e,Ft(),(function(e){return vt(e,t)}))}function kt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function xt(){return this.__ownerID?this:this.__ensureOwner(new a)}function Et(){return this.__ensureOwner()}function St(){return this.__altered}Se.prototype.cacheResult=Ee.prototype.cacheResult=Ae.prototype.cacheResult=Te.prototype.cacheResult=He;var At=function(e){function t(t){return null==t?Ft():oe(t)&&!I(t)?t:Ft().withMutations((function(n){var r=e(t);Ge(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ft().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Bt(this,e,t)},t.prototype.remove=function(e){return Bt(this,e,o)},t.prototype.deleteAll=function(e){var t=x(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ft()},t.prototype.sort=function(e){return hn(Le(this,e))},t.prototype.sortBy=function(e,t){return hn(Le(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(r,i){n.set(i,e.call(t,r,i,n))}))}))},t.prototype.__iterator=function(e,t){return new Dt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Rt(this.size,this._root,e,this.__hash):0===this.size?Ft():(this.__ownerID=e,this.__altered=!1,this)},t}(E);At.isMap=oe;var Tt=At.prototype;Tt[ie]=!0,Tt.delete=Tt.remove,Tt.removeAll=Tt.deleteAll,Tt.setIn=at,Tt.removeIn=Tt.deleteIn=ct,Tt.update=ht,Tt.updateIn=ft,Tt.merge=Tt.concat=dt,Tt.mergeWith=pt,Tt.mergeDeep=gt,Tt.mergeDeepWith=bt,Tt.mergeIn=_t,Tt.mergeDeepIn=wt,Tt.withMutations=kt,Tt.wasAltered=St,Tt.asImmutable=Et,Tt["@@transducer/init"]=Tt.asMutable=xt,Tt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Tt["@@transducer/result"]=function(e){return e.asImmutable()};var Ot=function(e,t){this.ownerID=e,this.entries=t};Ot.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ue(n,i[o][0]))return i[o][1];return r},Ot.prototype.update=function(e,t,n,r,i,u,c){for(var l=i===o,h=this.entries,f=0,d=h.length;f<d&&!ue(r,h[f][0]);f++);var p=f<d;if(p?h[f][1]===i:l)return this;if(s(c),(l||!p)&&s(u),!l||1!==h.length){if(!p&&!l&&h.length>=Kt)return function(e,t,n,r){e||(e=new a);for(var i=new Mt(e,fe(n),[n,r]),o=0;o<t.length;o++){var s=t[o];i=i.update(e,0,void 0,s[0],s[1])}return i}(e,h,r,i);var m=e&&e===this.ownerID,v=m?h:We(h);return p?l?f===d-1?v.pop():v[f]=v.pop():v[f]=[r,i]:v.push([r,i]),m?(this.entries=v,this):new Ot(e,v)}};var Ct=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Ct.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var o=1<<((0===e?t:t>>>e)&i),s=this.bitmap;return 0==(s&o)?r:this.nodes[Vt(s&o-1)].get(e+5,t,n,r)},Ct.prototype.update=function(e,t,n,s,a,u,c){void 0===n&&(n=fe(s));var l=(0===t?n:n>>>t)&i,h=1<<l,f=this.bitmap,d=0!=(f&h);if(!d&&a===o)return this;var p=Vt(f&h-1),m=this.nodes,v=d?m[p]:void 0,y=qt(v,e,t+5,n,s,a,u,c);if(y===v)return this;if(!d&&y&&m.length>=Wt)return function(e,t,n,i,o){for(var s=0,a=new Array(r),u=0;0!==n;u++,n>>>=1)a[u]=1&n?t[s++]:void 0;return a[i]=o,new Pt(e,s+1,a)}(e,m,f,l,y);if(d&&!y&&2===m.length&&Ut(m[1^p]))return m[1^p];if(d&&y&&1===m.length&&Ut(y))return y;var g=e&&e===this.ownerID,b=d?y?f:f^h:f|h,_=d?y?Ht(m,p,y,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,s=0;s<r;s++)s===t&&(o=1),i[s]=e[s+o];return i}(m,p,g):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),s=0,a=0;a<i;a++)a===t?(o[a]=n,s=-1):o[a]=e[a+s];return o}(m,p,y,g);return g?(this.bitmap=b,this.nodes=_,this):new Ct(e,b,_)};var Pt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Pt.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var o=(0===e?t:t>>>e)&i,s=this.nodes[o];return s?s.get(e+5,t,n,r):r},Pt.prototype.update=function(e,t,n,r,s,a,u){void 0===n&&(n=fe(r));var c=(0===t?n:n>>>t)&i,l=s===o,h=this.nodes,f=h[c];if(l&&!f)return this;var d=qt(f,e,t+5,n,r,s,a,u);if(d===f)return this;var p=this.count;if(f){if(!d&&--p<$t)return function(e,t,n,r){for(var i=0,o=0,s=new Array(n),a=0,u=1,c=t.length;a<c;a++,u<<=1){var l=t[a];void 0!==l&&a!==r&&(i|=u,s[o++]=l)}return new Ct(e,i,s)}(e,h,p,c)}else p++;var m=e&&e===this.ownerID,v=Ht(h,c,d,m);return m?(this.count=p,this.nodes=v,this):new Pt(e,p,v)};var Nt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Nt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ue(n,i[o][0]))return i[o][1];return r},Nt.prototype.update=function(e,t,n,r,i,a,u){void 0===n&&(n=fe(r));var c=i===o;if(n!==this.keyHash)return c?this:(s(u),s(a),zt(this,e,t,n,[r,i]));for(var l=this.entries,h=0,f=l.length;h<f&&!ue(r,l[h][0]);h++);var d=h<f;if(d?l[h][1]===i:c)return this;if(s(u),(c||!d)&&s(a),c&&2===f)return new Mt(e,this.keyHash,l[1^h]);var p=e&&e===this.ownerID,m=p?l:We(l);return d?c?h===f-1?m.pop():m[h]=m.pop():m[h]=[r,i]:m.push([r,i]),p?(this.entries=m,this):new Nt(e,this.keyHash,m)};var Mt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Mt.prototype.get=function(e,t,n,r){return ue(n,this.entry[0])?this.entry[1]:r},Mt.prototype.update=function(e,t,n,r,i,a,u){var c=i===o,l=ue(r,this.entry[0]);return(l?i===this.entry[1]:c)?this:(s(u),c?void s(a):l?e&&e===this.ownerID?(this.entry[1]=i,this):new Mt(e,this.keyHash,[r,i]):(s(a),zt(this,e,t,fe(r),[r,i])))},Ot.prototype.iterate=Nt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ct.prototype.iterate=Pt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Mt.prototype.iterate=function(e,t){return e(this.entry)};var It,Dt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Lt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return jt(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return jt(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return jt(e,o.entry);t=this._stack=Lt(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(R);function jt(e,t){return F(e,t[0],t[1])}function Lt(e,t){return{node:e,index:0,__prev:t}}function Rt(e,t,n,r){var i=Object.create(Tt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ft(){return It||(It=Rt(0))}function Bt(e,t,n){var r,i;if(e._root){var s={value:!1},a={value:!1};if(r=qt(e._root,e.__ownerID,0,void 0,t,n,s,a),!a.value)return e;i=e.size+(s.value?n===o?-1:1:0)}else{if(n===o)return e;i=1,r=new Ot(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Rt(i,r):Ft()}function qt(e,t,n,r,i,a,u,c){return e?e.update(t,n,r,i,a,u,c):a===o?e:(s(c),s(u),new Mt(t,r,[i,a]))}function Ut(e){return e.constructor===Mt||e.constructor===Nt}function zt(e,t,n,r,o){if(e.keyHash===r)return new Nt(t,r,[e.entry,o]);var s,a=(0===n?e.keyHash:e.keyHash>>>n)&i,u=(0===n?r:r>>>n)&i,c=a===u?[zt(e,t,n+5,r,o)]:(s=new Mt(t,r,o),a<u?[e,s]:[s,e]);return new Ct(t,1<<a|1<<u,c)}function Vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ht(e,t,n,r){var i=r?e:We(e);return i[t]=n,i}var Kt=8,Wt=16,$t=8,Gt="@@__IMMUTABLE_LIST__@@";function Yt(e){return Boolean(e&&e[Gt])}var Jt=function(e){function t(t){var n=rn();if(null==t)return n;if(Yt(t))return t;var i=e(t),o=i.size;return 0===o?n:(Ge(o),o>0&&o<r?nn(0,o,5,null,new Xt(i.toArray())):n.withMutations((function(e){e.setSize(o),i.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=c(this,e))>=0&&e<this.size){var n=an(this,e+=this._origin);return n&&n.array[e&i]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=c(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?un(e,t).set(0,n):un(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=cn(e._capacity)?r=on(r,e.__ownerID,0,t,n,o):i=on(i,e.__ownerID,e._level,t,n,o);if(!o.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return nn(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):rn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){un(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return un(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){un(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return un(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&q(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return un(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,r))}))},t.prototype.slice=function(e,t){var n=this.size;return h(e,t,n)?this:un(this,f(e,n),d(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=tn(this,t);return new R((function(){var i=r();return i===en?{value:void 0,done:!0}:F(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=tn(this,t);(n=i())!==en&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?nn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?rn():(this.__ownerID=e,this.__altered=!1,this)},t}(S);Jt.isList=Yt;var Zt=Jt.prototype;Zt[Gt]=!0,Zt.delete=Zt.remove,Zt.merge=Zt.concat,Zt.setIn=at,Zt.deleteIn=Zt.removeIn=ct,Zt.update=ht,Zt.updateIn=ft,Zt.mergeIn=_t,Zt.mergeDeepIn=wt,Zt.withMutations=kt,Zt.wasAltered=St,Zt.asImmutable=Et,Zt["@@transducer/init"]=Zt.asMutable=xt,Zt["@@transducer/step"]=function(e,t){return e.push(t)},Zt["@@transducer/result"]=function(e){return e.asImmutable()};var Xt=function(e,t){this.array=e,this.ownerID=t};Xt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&i;if(r>=this.array.length)return new Xt([],e);var o,s=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&s)return this}if(s&&!o)return this;var u=sn(this,e);if(!s)for(var c=0;c<r;c++)u.array[c]=void 0;return o&&(u.array[r]=o),u},Xt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&i;if(o>=this.array.length)return this;if(t>0){var s=this.array[o];if((r=s&&s.removeAfter(e,t-5,n))===s&&o===this.array.length-1)return this}var a=sn(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Qt,en={};function tn(e,t){var n=e._origin,i=e._capacity,o=cn(i),s=e._tail;return a(e._root,e._level,0);function a(e,u,c){return 0===u?function(e,a){var u=a===o?s&&s.array:e&&e.array,c=a>n?0:n-a,l=i-a;l>r&&(l=r);return function(){if(c===l)return en;var e=t?--l:c++;return u&&u[e]}}(e,c):function(e,o,s){var u,c=e&&e.array,l=s>n?0:n-s>>o,h=1+(i-s>>o);h>r&&(h=r);return function(){for(;;){if(u){var e=u();if(e!==en)return e;u=null}if(l===h)return en;var n=t?--h:l++;u=a(c&&c[n],o-5,s+(n<<o))}}}(e,u,c)}}function nn(e,t,n,r,i,o,s){var a=Object.create(Zt);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function rn(){return Qt||(Qt=nn(0,0,5))}function on(e,t,n,r,o,a){var u,c=r>>>n&i,l=e&&c<e.array.length;if(!l&&void 0===o)return e;if(n>0){var h=e&&e.array[c],f=on(h,t,n-5,r,o,a);return f===h?e:((u=sn(e,t)).array[c]=f,u)}return l&&e.array[c]===o?e:(a&&s(a),u=sn(e,t),void 0===o&&c===u.array.length-1?u.array.pop():u.array[c]=o,u)}function sn(e,t){return t&&e&&t===e.ownerID?e:new Xt(e?e.array.slice():[],t)}function an(e,t){if(t>=cn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&i],r-=5;return n}}function un(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new a,o=e._origin,s=e._capacity,u=o+t,c=void 0===n?s:n<0?s+n:o+n;if(u===o&&c===s)return e;if(u>=c)return e.clear();for(var l=e._level,h=e._root,f=0;u+f<0;)h=new Xt(h&&h.array.length?[void 0,h]:[],r),f+=1<<(l+=5);f&&(u+=f,o+=f,c+=f,s+=f);for(var d=cn(s),p=cn(c);p>=1<<l+5;)h=new Xt(h&&h.array.length?[h]:[],r),l+=5;var m=e._tail,v=p<d?an(e,c-1):p>d?new Xt([],r):m;if(m&&p>d&&u<s&&m.array.length){for(var y=h=sn(h,r),g=l;g>5;g-=5){var b=d>>>g&i;y=y.array[b]=sn(y.array[b],r)}y.array[d>>>5&i]=m}if(c<s&&(v=v&&v.removeAfter(r,0,c)),u>=p)u-=p,c-=p,l=5,h=null,v=v&&v.removeBefore(r,0,u);else if(u>o||p<d){for(f=0;h;){var _=u>>>l&i;if(_!==p>>>l&i)break;_&&(f+=(1<<l)*_),l-=5,h=h.array[_]}h&&u>o&&(h=h.removeBefore(r,l,u-f)),h&&p<d&&(h=h.removeAfter(r,l,p-f)),f&&(u-=f,c-=f)}return e.__ownerID?(e.size=c-u,e._origin=u,e._capacity=c,e._level=l,e._root=h,e._tail=v,e.__hash=void 0,e.__altered=!0,e):nn(u,c,l,h,v)}function cn(e){return e<r?0:e-1>>>5<<5}var ln,hn=function(e){function t(e){return null==e?dn():se(e)?e:dn().withMutations((function(t){var n=E(e);Ge(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):dn()},t.prototype.set=function(e,t){return pn(this,e,t)},t.prototype.remove=function(e){return pn(this,e,o)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?fn(t,n,e,this.__hash):0===this.size?dn():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(At);function fn(e,t,n,r){var i=Object.create(hn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function dn(){return ln||(ln=fn(Ft(),rn()))}function pn(e,t,n){var i,s,a=e._map,u=e._list,c=a.get(t),l=void 0!==c;if(n===o){if(!l)return e;u.size>=r&&u.size>=2*a.size?(i=(s=u.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=s.__ownerID=e.__ownerID)):(i=a.remove(t),s=c===u.size-1?u.pop():u.set(c,void 0))}else if(l){if(n===u.get(c)[1])return e;i=a,s=u.set(c,[t,n])}else i=a.set(t,u.size),s=u.set(u.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=s,e.__hash=void 0,e):fn(i,s)}hn.isOrderedMap=se,hn.prototype[M]=!0,hn.prototype.delete=hn.prototype.remove;var mn="@@__IMMUTABLE_STACK__@@";function vn(e){return Boolean(e&&e[mn])}var yn=function(e){function t(e){return null==e?wn():vn(e)?e:wn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=c(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):_n(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&vn(t))return t;Ge(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):_n(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wn()},t.prototype.slice=function(t,n){if(h(t,n,this.size))return this;var r=f(t,this.size);if(d(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):_n(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_n(this.size,this._head,e,this.__hash):0===this.size?wn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new J(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new J(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new R((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return{value:void 0,done:!0}}))},t}(S);yn.isStack=vn;var gn,bn=yn.prototype;function _n(e,t,n,r){var i=Object.create(bn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function wn(){return gn||(gn=_n(0))}bn[mn]=!0,bn.shift=bn.pop,bn.unshift=bn.push,bn.unshiftAll=bn.pushAll,bn.withMutations=kt,bn.wasAltered=St,bn.asImmutable=Et,bn["@@transducer/init"]=bn.asMutable=xt,bn["@@transducer/step"]=function(e,t){return e.unshift(t)},bn["@@transducer/result"]=function(e){return e.asImmutable()};var kn="@@__IMMUTABLE_SET__@@";function xn(e){return Boolean(e&&e[kn])}function En(e){return xn(e)&&I(e)}function Sn(e,t){if(e===t)return!0;if(!y(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||b(e)!==b(t)||w(e)!==w(t)||I(e)!==I(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!k(e);if(I(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ue(i[1],e)&&(n||ue(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var a=!0,u=t.__iterate((function(t,r){if(n?!e.has(t):i?!ue(t,e.get(r,o)):!ue(e.get(r,o),t))return a=!1,!1}));return a&&e.size===u}function An(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Tn(e){if(!e||"object"!=typeof e)return e;if(!y(e)){if(!Ze(e))return e;e=W(e)}if(b(e)){var t={};return e.__iterate((function(e,n){t[n]=Tn(e)})),t}var n=[];return e.__iterate((function(e){n.push(Tn(e))})),n}var On=function(e){function t(t){return null==t?In():xn(t)&&!I(t)?t:In().withMutations((function(n){var r=e(t);Ge(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(E(e).keySeq())},t.intersect=function(e){return(e=x(e).toArray()).length?Pn.intersect.apply(t(e.pop()),e):In()},t.union=function(e){return(e=x(e).toArray()).length?Pn.union.apply(t(e.pop()),e):In()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Nn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Nn(this,this._map.remove(e))},t.prototype.clear=function(){return Nn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],i=[];return this.forEach((function(o){var s=e.call(t,o,o,n);s!==o&&(r.push(o),i.push(s))})),this.withMutations((function(e){r.forEach((function(t){return e.remove(t)})),i.forEach((function(t){return e.add(t)}))}))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return Zn(Le(this,e))},t.prototype.sortBy=function(e,t){return Zn(Le(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(A);On.isSet=xn;var Cn,Pn=On.prototype;function Nn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Mn(e,t){var n=Object.create(Pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Cn||(Cn=Mn(Ft()))}Pn[kn]=!0,Pn.delete=Pn.remove,Pn.merge=Pn.concat=Pn.union,Pn.withMutations=kt,Pn.asImmutable=Et,Pn["@@transducer/init"]=Pn.asMutable=xt,Pn["@@transducer/step"]=function(e,t){return e.add(t)},Pn["@@transducer/result"]=function(e){return e.asImmutable()},Pn.__empty=In,Pn.__make=Mn;var Dn,jn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if($e(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Dn)return Dn;Dn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+c(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return h(e,n,this.size)?this:(e=f(e,this.size),(n=d(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new R((function(){if(o===n)return{value:void 0,done:!0};var s=i;return i+=t?-r:r,F(e,t?n-++o:o++,s)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Sn(this,e)},t}(G);function Ln(e,t,n){for(var r=Ye(t),i=0;i!==r.length;)if((e=et(e,r[i++],o))===o)return n;return e}function Rn(e,t){return Ln(this,e,t)}function Fn(e,t){return Ln(e,t,o)!==o}function Bn(){Ge(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}x.isIterable=y,x.isKeyed=b,x.isIndexed=w,x.isAssociative=k,x.isOrdered=I,x.Iterator=R,An(x,{toArray:function(){Ge(this.size);var e=new Array(this.size||0),t=b(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Se(this)},toJS:function(){return Tn(this)},toKeyedSeq:function(){return new Ee(this,!0)},toMap:function(){return At(this.toKeyedSeq())},toObject:Bn,toOrderedMap:function(){return hn(this.toKeyedSeq())},toOrderedSet:function(){return Zn(b(this)?this.valueSeq():this)},toSet:function(){return On(b(this)?this.valueSeq():this)},toSetSeq:function(){return new Ae(this)},toSeq:function(){return w(this)?this.toIndexedSeq():b(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return yn(b(this)?this.valueSeq():this)},toList:function(){return Jt(b(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return qe(this,De(this,e))},includes:function(e){return this.some((function(t){return ue(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ge(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return qe(this,Ne(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Ge(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ge(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return qe(this,Ce(this,e,t))},reduce:function(e,t,n){return Vn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Vn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return qe(this,Pe(this,!0))},slice:function(e,t){return qe(this,Me(this,e,t,!0))},some:function(e,t){return!this.every(Wn(e),t)},sort:function(e){return qe(this,Le(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return u(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=At().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Sn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new J(e._cache);var t=e.toSeq().map(Kn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Wn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(l,null,e)},flatMap:function(e,t){return qe(this,function(e,t,n){var r=ze(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return qe(this,je(this,e,!0))},fromEntrySeq:function(){return new Te(this)},get:function(e,t){return this.find((function(t,n){return ue(n,e)}),void 0,t)},getIn:Rn,groupBy:function(e,t){return function(e,t,n){var r=b(e),i=(I(e)?hn():At()).asMutable();e.__iterate((function(o,s){i.update(t.call(n,o,s,e),(function(e){return(e=e||[]).push(r?[s,o]:o),e}))}));var o=ze(e);return i.map((function(t){return qe(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,o)!==o},hasIn:function(e){return Fn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:x(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:x(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ue(t,e)}))},keySeq:function(){return this.toSeq().map(Hn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Re(this,e)},maxBy:function(e,t){return Re(this,t,e)},min:function(e){return Re(this,e?$n(e):Yn)},minBy:function(e,t){return Re(this,t?$n(t):Yn,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return qe(this,Ie(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Wn(e),t)},sortBy:function(e,t){return qe(this,Le(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return qe(this,function(e,t,n){var r=Ve(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var s=0;return e.__iterate((function(e,i,a){return t.call(n,e,i,a)&&++s&&r(e,i,o)})),s},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var s=e.__iterator(2,i),a=!0;return new R((function(){if(!a)return{value:void 0,done:!0};var e=s.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?2===r?e:F(r,u,c,e):(a=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Wn(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=I(e),n=b(e),r=t?1:0;return function(e,t){return t=ce(t,3432918353),t=ce(t<<15|t>>>-15,461845907),t=ce(t<<13|t>>>-13,5),t=ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=le((t=ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Jn(fe(e),fe(t))|0}:function(e,t){r=r+Jn(fe(e),fe(t))|0}:t?function(e){r=31*r+fe(e)|0}:function(e){r=r+fe(e)|0}),r)}(this))}});var qn=x.prototype;qn[v]=!0,qn[L]=qn.values,qn.toJSON=qn.toArray,qn.__toStringMapper=Xe,qn.inspect=qn.toSource=function(){return this.toString()},qn.chain=qn.flatMap,qn.contains=qn.includes,An(E,{flip:function(){return qe(this,Oe(this))},mapEntries:function(e,t){var n=this,r=0;return qe(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return qe(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Un=E.prototype;Un[g]=!0,Un[L]=qn.entries,Un.toJSON=Bn,Un.__toStringMapper=function(e,t){return Xe(t)+": "+Xe(e)},An(S,{toKeyedSeq:function(){return new Ee(this,!1)},filter:function(e,t){return qe(this,Ne(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return qe(this,Pe(this,!1))},slice:function(e,t){return qe(this,Me(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=f(e,e<0?this.count():this.size);var r=this.slice(0,e);return qe(this,1===n?r:r.concat(We(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return qe(this,je(this,e,!1))},get:function(e,t){return(e=c(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=c(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return qe(this,function(e,t){var n=Ve(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),s=0;return new R((function(){return(!i||s%2)&&(i=o.next()).done?i:s%2?F(n,s++,t):F(n,s++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(We(arguments)),t=Be(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),qe(this,n)},keySeq:function(){return jn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return qe(this,Ie(this,e,t,!1))},zip:function(){var e=[this].concat(We(arguments));return qe(this,Be(this,Gn,e))},zipAll:function(){var e=[this].concat(We(arguments));return qe(this,Be(this,Gn,e,!0))},zipWith:function(e){var t=We(arguments);return t[0]=this,qe(this,Be(this,e,t))}});var zn=S.prototype;function Vn(e,t,n,r,i,o){return Ge(e.size),e.__iterate((function(e,o,s){i?(i=!1,n=e):n=t.call(r,n,e,o,s)}),o),n}function Hn(e,t){return t}function Kn(e,t){return[t,e]}function Wn(e){return function(){return!e.apply(this,arguments)}}function $n(e){return function(){return-e.apply(this,arguments)}}function Gn(){return We(arguments)}function Yn(e,t){return e<t?1:e>t?-1:0}function Jn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}zn[_]=!0,zn[M]=!0,An(A,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),A.prototype.has=qn.includes,A.prototype.contains=A.prototype.includes,An($,E.prototype),An(G,S.prototype),An(Y,A.prototype);var Zn=function(e){function t(e){return null==e?tr():En(e)?e:tr().withMutations((function(t){var n=A(e);Ge(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(E(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(On);Zn.isOrderedSet=En;var Xn,Qn=Zn.prototype;function er(e,t){var n=Object.create(Qn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function tr(){return Xn||(Xn=er(dn()))}Qn[M]=!0,Qn.zip=zn.zip,Qn.zipWith=zn.zipWith,Qn.__empty=tr,Qn.__make=er;var nr=function(e,t){var n,r=function(o){var s=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e),u=i._indices={};i._name=t,i._keys=a,i._defaultValues=e;for(var c=0;c<a.length;c++){var l=a[c];u[l]=c,i[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+or(this)+' with property "'+l+'" since that property name is part of the Record API.'):ar(i,l)}}this.__ownerID=void 0,this._values=Jt().withMutations((function(e){e.setSize(s._keys.length),E(o).forEach((function(t,n){e.set(s._indices[n],t===s._defaultValues[n]?void 0:t)}))}))},i=r.prototype=Object.create(rr);return i.constructor=r,t&&(r.displayName=t),r};nr.prototype.toString=function(){for(var e,t=or(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+Xe(this.get(e));return t+" }"},nr.prototype.equals=function(e){return this===e||e&&this._keys===e._keys&&sr(this).equals(sr(e))},nr.prototype.hashCode=function(){return sr(this).hashCode()},nr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},nr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},nr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return ir(this,n)}return this},nr.prototype.remove=function(e){return this.set(e)},nr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:ir(this,e)},nr.prototype.wasAltered=function(){return this._values.wasAltered()},nr.prototype.toSeq=function(){return sr(this)},nr.prototype.toJS=function(){return Tn(this)},nr.prototype.entries=function(){return this.__iterator(2)},nr.prototype.__iterator=function(e,t){return sr(this).__iterator(e,t)},nr.prototype.__iterate=function(e,t){return sr(this).__iterate(e,t)},nr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?ir(this,t,e):(this.__ownerID=e,this._values=t,this)},nr.isRecord=P,nr.getDescriptiveName=or;var rr=nr.prototype;function ir(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function or(e){return e.constructor.displayName||e.constructor.name||"Record"}function sr(e){return te(e._keys.map((function(t){return[t,e.get(t)]})))}function ar(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){$e(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}rr[C]=!0,rr.delete=rr.remove,rr.deleteIn=rr.removeIn=ct,rr.getIn=Rn,rr.hasIn=qn.hasIn,rr.merge=dt,rr.mergeWith=pt,rr.mergeIn=_t,rr.mergeDeep=gt,rr.mergeDeepWith=bt,rr.mergeDeepIn=wt,rr.setIn=at,rr.update=ht,rr.updateIn=ft,rr.withMutations=kt,rr.asMutable=xt,rr.asImmutable=Et,rr[L]=rr.entries,rr.toJSON=rr.toObject=qn.toObject,rr.inspect=rr.toSource=function(){return this.toString()}},66337:function(){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?h(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,r=null},s.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},s.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},s.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,s=null;if(this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),u(e,"resize",r,!0)),u(t,"scroll",r,!0),s&&s.disconnect()})),t!=(this.root&&this.root.ownerDocument||e)){var c=i(t);c&&this._monitorIntersections(c.ownerDocument)}}},s.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),t!=r){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},s.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,s=c(i),a=this._rootContainsTarget(i),u=r.entry,l=e&&a&&this._computeTargetAndRootIntersection(i,s,t),h=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n&&!this.root?null:t,intersectionRect:l});u?e&&a?this._hasCrossedThreshold(u,h)&&this._queuedEntries.push(h):u&&u.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var s,a,u,l,f,p,m,v,y=i,g=d(t),b=!1;!b&&g;){var _=null,w=1==g.nodeType?window.getComputedStyle(g):{};if("none"==w.display)return null;if(g==this.root||9==g.nodeType)if(b=!0,g==this.root||g==e)n&&!this.root?!r||0==r.width&&0==r.height?(g=null,_=null,y=null):_=r:_=o;else{var k=d(g),x=k&&c(k),E=k&&this._computeTargetAndRootIntersection(k,x,o);x&&E?(g=k,_=h(x,E)):(g=null,y=null)}else{var S=g.ownerDocument;g!=S.body&&g!=S.documentElement&&"visible"!=w.overflow&&(_=c(g))}if(_&&(s=_,a=y,u=void 0,l=void 0,f=void 0,p=void 0,m=void 0,v=void 0,u=Math.max(s.top,a.top),l=Math.min(s.bottom,a.bottom),f=Math.max(s.left,a.left),p=Math.min(s.right,a.right),v=l-u,y=(m=p-f)>=0&&v>=0&&{top:u,bottom:l,left:f,right:p,width:m,height:v}||null),!y)break;g=g&&d(g)}return y}},s.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},s.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(e,this.root)},s.prototype._rootContainsTarget=function(t){return f(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},s.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},s.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=l(e.rootBounds),this.boundingClientRect=l(e.boundingClientRect),this.intersectionRect=l(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(e,t){var n,r,i,o=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(o.root&&1!=o.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function h(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function f(e,t){for(var n=t;n;){if(n==e)return!0;n=d(n)}return!1}function d(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}()},55299:function(e,t,n){"use strict";var r=n(47798);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},47798:function(e){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},36808:function(e,t,n){var r,i;!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var s=window.Cookies,a=window.Cookies=o();a.noConflict=function(){return window.Cookies=s,a}}}((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 i(){}function o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}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 a="";for(var u in o)o[u]&&(a+="; "+u,!0!==o[u]&&(a+="="+o[u].split(";")[0]));return document.cookie=t+"="+n+a}}function s(e,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var a=o[s].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(a[0]);if(u=(r.read||r)(u,c)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(i[c]=u,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return s(e,!1)},i.getJSON=function(e){return s(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},1448:function(e){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r=[],i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["January","February","March","April","May","June","July","August","September","October","November","December"],s={t:"top",r:"right",b:"bottom",l:"left",c:"centered"};function a(){}var u=["click","focusin","keydown","input"];function c(e){u.forEach((function(t){e.addEventListener(t,e===document?O:C)}))}function l(e){return Array.isArray(e)?e.map(l):"[object Object]"===A(e)?Object.keys(e).reduce((function(t,n){return t[n]=l(e[n]),t}),{}):e}function h(e,t){var n=e.calendar.querySelector(".qs-overlay"),r=n&&!n.classList.contains("qs-hidden");t=t||new Date(e.currentYear,e.currentMonth),e.calendar.innerHTML=[f(t,e,r),d(t,e,r),p(e,r)].join(""),r&&window.requestAnimationFrame((function(){E(!0,e)}))}function f(e,t,n){return['<div class="qs-controls'+(n?" qs-blur":"")+'">','<div class="qs-arrow qs-left"></div>','<div class="qs-month-year">','<span class="qs-month">'+t.months[e.getMonth()]+"</span>",'<span class="qs-year">'+e.getFullYear()+"</span>","</div>",'<div class="qs-arrow qs-right"></div>',"</div>"].join("")}function d(e,t,n){var r=t.currentMonth,i=t.currentYear,o=t.dateSelected,s=t.maxDate,a=t.minDate,u=t.showAllDates,c=t.days,l=t.disabledDates,h=t.startDay,f=t.weekendIndices,d=t.events,p=t.getRange?t.getRange():{},m=+p.start,v=+p.end,y=w(new Date(e).setDate(1)),g=y.getDay()-h,b=g<0?7:0;y.setMonth(y.getMonth()+1),y.setDate(0);var _=y.getDate(),k=[],x=b+7*((g+_)/7|0);x+=(g+_)%7?7:0;for(var E=1;E<=x;E++){var S=(E-1)%7,A=c[S],T=E-(g>=0?g:7+g),O=new Date(i,r,T),C=d[+O],P=T<1||T>_,N=P?T<1?-1:1:0,M=P&&!u,I=M?"":O.getDate(),D=+O==+o,j=S===f[0]||S===f[1],L=m!==v,R="qs-square "+A;C&&!M&&(R+=" qs-event"),P&&(R+=" qs-outside-current-month"),!u&&P||(R+=" qs-num"),D&&(R+=" qs-active"),(l[+O]||t.disabler(O)||j&&t.noWeekends||a&&+O<+a||s&&+O>+s)&&!M&&(R+=" qs-disabled"),+w(new Date)==+O&&(R+=" qs-current"),+O===m&&v&&L&&(R+=" qs-range-start"),+O>m&&+O<v&&(R+=" qs-range-middle"),+O===v&&m&&L&&(R+=" qs-range-end"),M&&(R+=" qs-empty",I=""),k.push('<div class="'+R+'" data-direction="'+N+'">'+I+"</div>")}var F=c.map((function(e){return'<div class="qs-square qs-day">'+e+"</div>"})).concat(k);return F.unshift('<div class="qs-squares'+(n?" qs-blur":"")+'">'),F.push("</div>"),F.join("")}function p(e,t){var n=e.overlayPlaceholder,r=e.overlayButton;return['<div class="qs-overlay'+(t?"":" qs-hidden")+'">',"<div>",'<input class="qs-overlay-year" placeholder="'+n+'" inputmode="numeric" />','<div class="qs-close">&#10005;</div>',"</div>",'<div class="qs-overlay-month-container">'+e.overlayMonths.map((function(e,t){return'<div class="qs-overlay-month" data-month-num="'+t+'">'+e+"</div>"})).join("")+"</div>",'<div class="qs-submit qs-disabled">'+r+"</div>","</div>"].join("")}function m(e,t,n){var r=t.el,i=t.calendar.querySelector(".qs-active"),o=e.textContent,s=t.sibling;(r.disabled||r.readOnly)&&t.respectDisabledReadOnly||(t.dateSelected=n?void 0:new Date(t.currentYear,t.currentMonth,o),i&&i.classList.remove("qs-active"),n||e.classList.add("qs-active"),y(r,t,n),n||k(t),s&&(v({instance:t,deselect:n}),t.first&&!s.dateSelected&&(s.currentYear=t.currentYear,s.currentMonth=t.currentMonth,s.currentMonthName=t.currentMonthName),h(t),h(s)),t.onSelect(t,n?void 0:new Date(t.dateSelected)))}function v(e){var t=e.instance.first?e.instance:e.instance.sibling,n=t.sibling;t===e.instance?e.deselect?(t.minDate=t.originalMinDate,n.minDate=n.originalMinDate):n.minDate=t.dateSelected:e.deselect?(n.maxDate=n.originalMaxDate,t.maxDate=t.originalMaxDate):t.maxDate=n.dateSelected}function y(e,t,n){if(!t.nonInput)return n?e.value="":t.formatter!==a?t.formatter(e,t.dateSelected,t):void(e.value=t.dateSelected.toDateString())}function g(e,t,n,r){n||r?(n&&(t.currentYear=+n),r&&(t.currentMonth=+r)):(t.currentMonth+=e.contains("qs-right")?1:-1,12===t.currentMonth?(t.currentMonth=0,t.currentYear++):-1===t.currentMonth&&(t.currentMonth=11,t.currentYear--)),t.currentMonthName=t.months[t.currentMonth],h(t),t.onMonthChange(t)}function b(e){if(!e.noPosition){var t=e.position.top,n=e.position.right;if(e.position.centered)return e.calendarContainer.classList.add("qs-centered");var r=e.positionedEl.getBoundingClientRect(),i=e.el.getBoundingClientRect(),o=e.calendarContainer.getBoundingClientRect(),s=i.top-r.top+(t?-1*o.height:i.height)+"px",a=i.left-r.left+(n?i.width-o.width:0)+"px";e.calendarContainer.style.setProperty("top",s),e.calendarContainer.style.setProperty("left",a)}}function _(e){return"[object Date]"===A(e)&&"Invalid Date"!==e.toString()}function w(e){if(_(e)||"number"==typeof e&&!isNaN(e)){var t=new Date(+e);return new Date(t.getFullYear(),t.getMonth(),t.getDate())}}function k(e){e.disabled||!e.calendarContainer.classList.contains("qs-hidden")&&!e.alwaysShow&&("overlay"!==e.defaultView&&E(!0,e),e.calendarContainer.classList.add("qs-hidden"),e.onHide(e))}function x(e){e.disabled||(e.calendarContainer.classList.remove("qs-hidden"),"overlay"===e.defaultView&&E(!1,e),b(e),e.onShow(e))}function E(e,t){var n=t.calendar,r=n.querySelector(".qs-overlay"),i=r.querySelector(".qs-overlay-year"),o=n.querySelector(".qs-controls"),s=n.querySelector(".qs-squares");e?(r.classList.add("qs-hidden"),o.classList.remove("qs-blur"),s.classList.remove("qs-blur"),i.value=""):(r.classList.remove("qs-hidden"),o.classList.add("qs-blur"),s.classList.add("qs-blur"),i.focus())}function S(e,t,n,r){var i=isNaN(+(new Date).setFullYear(t.value||void 0)),o=i?null:t.value;13===e.which||13===e.keyCode||"click"===e.type?r?g(null,n,o,r):i||t.classList.contains("qs-disabled")||g(null,n,o):n.calendar.contains(t)&&n.calendar.querySelector(".qs-submit").classList[i?"add":"remove"]("qs-disabled")}function A(e){return{}.toString.call(e)}function T(e){r.forEach((function(t){t!==e&&k(t)}))}function O(e){if(!e.__qs_shadow_dom){var t=e.which||e.keyCode,n=e.type,i=e.target,s=i.classList,a=r.filter((function(e){return e.calendar.contains(i)||e.el===i}))[0],u=a&&a.calendar.contains(i);if(!(a&&a.isMobile&&a.disableMobile))if("click"===n){if(!a)return r.forEach(k);if(a.disabled)return;var c=a.calendar,l=a.calendarContainer,f=a.disableYearOverlay,d=a.nonInput,p=c.querySelector(".qs-overlay-year"),v=!!c.querySelector(".qs-hidden"),y=c.querySelector(".qs-month-year").contains(i),b=i.dataset.monthNum;if(a.noPosition&&!u)(l.classList.contains("qs-hidden")?x:k)(a);else if(s.contains("qs-arrow"))g(s,a);else if(y||s.contains("qs-close"))f||E(!v,a);else if(b)S(e,p,a,b);else{if(s.contains("qs-disabled"))return;if(s.contains("qs-num")){var _=i.textContent,w=+i.dataset.direction,A=new Date(a.currentYear,a.currentMonth+w,_);if(w){a.currentYear=A.getFullYear(),a.currentMonth=A.getMonth(),a.currentMonthName=o[a.currentMonth],h(a);for(var O,C=a.calendar.querySelectorAll('[data-direction="0"]'),P=0;!O;){var N=C[P];N.textContent===_&&(O=N),P++}i=O}return void(+A==+a.dateSelected?m(i,a,!0):i.classList.contains("qs-disabled")||m(i,a))}s.contains("qs-submit")?S(e,p,a):d&&i===a.el&&(x(a),T(a))}}else if("focusin"===n&&a)x(a),T(a);else if("keydown"===n&&9===t&&a)k(a);else if("keydown"===n&&a&&!a.disabled){var M=!a.calendar.querySelector(".qs-overlay").classList.contains("qs-hidden");13===t&&M&&u?S(e,i,a):27===t&&M&&u&&E(!0,a)}else if("input"===n){if(!a||!a.calendar.contains(i))return;var I=a.calendar.querySelector(".qs-submit"),D=i.value.split("").reduce((function(e,t){return e||"0"!==t?e+(t.match(/[0-9]/)?t:""):""}),"").slice(0,4);i.value=D,I.classList[4===D.length?"remove":"add"]("qs-disabled")}}}function C(e){O(e),e.__qs_shadow_dom=!0}function P(e,t){u.forEach((function(n){e.removeEventListener(n,t)}))}function N(){x(this)}function M(){k(this)}function I(e,t){var n=w(e),r=this.currentYear,i=this.currentMonth,o=this.sibling;if(null==e)return this.dateSelected=void 0,y(this.el,this,!0),o&&(v({instance:this,deselect:!0}),h(o)),h(this),this;if(!_(e))throw new Error("`setDate` needs a JavaScript Date object.");if(this.disabledDates[+n]||n<this.minDate||n>this.maxDate)throw new Error("You can't manually set a date that's disabled.");this.dateSelected=n,t&&(this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth(),this.currentMonthName=this.months[n.getMonth()]),y(this.el,this),o&&(v({instance:this}),h(o));var s=r===n.getFullYear()&&i===n.getMonth();return s||t?h(this,n):s||h(this,new Date(r,i,1)),this}function D(e){return L(this,e,!0)}function j(e){return L(this,e)}function L(e,t,n){var r=e.dateSelected,i=e.first,o=e.sibling,s=e.minDate,a=e.maxDate,u=w(t),c=n?"Min":"Max";function l(){return"original"+c+"Date"}function f(){return c.toLowerCase()+"Date"}function d(){return"set"+c}function p(){throw new Error("Out-of-range date passed to "+d())}if(null==t)e[l()]=void 0,o?(o[l()]=void 0,n?(i&&!r||!i&&!o.dateSelected)&&(e.minDate=void 0,o.minDate=void 0):(i&&!o.dateSelected||!i&&!r)&&(e.maxDate=void 0,o.maxDate=void 0)):e[f()]=void 0;else{if(!_(t))throw new Error("Invalid date passed to "+d());o?((i&&n&&u>(r||a)||i&&!n&&u<(o.dateSelected||s)||!i&&n&&u>(o.dateSelected||a)||!i&&!n&&u<(r||s))&&p(),e[l()]=u,o[l()]=u,(n&&(i&&!r||!i&&!o.dateSelected)||!n&&(i&&!o.dateSelected||!i&&!r))&&(e[f()]=u,o[f()]=u)):((n&&u>(r||a)||!n&&u<(r||s))&&p(),e[f()]=u)}return o&&h(o),h(e),e}function R(){var e=this.first?this:this.sibling,t=e.sibling;return{start:e.dateSelected,end:t.dateSelected}}function F(){var e=this.shadowDom,t=this.positionedEl,n=this.calendarContainer,i=this.sibling,o=this;this.inlinePosition&&(r.some((function(e){return e!==o&&e.positionedEl===t}))||t.style.setProperty("position",null)),n.remove(),r=r.filter((function(e){return e!==o})),i&&delete i.sibling,r.length||P(document,O);var s=r.some((function(t){return t.shadowDom===e}));for(var a in e&&!s&&P(e,C),this)delete this[a];r.length||u.forEach((function(e){document.removeEventListener(e,O)}))}function B(e,t){var n=new Date(e);if(!_(n))throw new Error("Invalid date passed to `navigate`");this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth(),h(this),t&&this.onMonthChange(this)}function q(){var e=!this.calendarContainer.classList.contains("qs-hidden"),t=!this.calendarContainer.querySelector(".qs-overlay").classList.contains("qs-hidden");e&&E(t,this)}t.default=function(e,t){var n=function(e,t){var n,u,c=function(e){var t=l(e);t.events&&(t.events=t.events.reduce((function(e,t){if(!_(t))throw new Error('"options.events" must only contain valid JavaScript Date objects.');return e[+w(t)]=!0,e}),{})),["startDate","dateSelected","minDate","maxDate"].forEach((function(e){var n=t[e];if(n&&!_(n))throw new Error('"options.'+e+'" needs to be a valid JavaScript Date object.');t[e]=w(n)}));var n=t.position,o=t.maxDate,u=t.minDate,c=t.dateSelected,h=t.overlayPlaceholder,f=t.overlayButton,d=t.startDay,p=t.id;if(t.startDate=w(t.startDate||c||new Date),t.disabledDates=(t.disabledDates||[]).reduce((function(e,t){var n=+w(t);if(!_(t))throw new Error('You supplied an invalid date to "options.disabledDates".');if(n===+w(c))throw new Error('"disabledDates" cannot contain the same date as "dateSelected".');return e[n]=1,e}),{}),t.hasOwnProperty("id")&&null==p)throw new Error("`id` cannot be `null` or `undefined`");if(null!=p){var m=r.filter((function(e){return e.id===p}));if(m.length>1)throw new Error("Only two datepickers can share an id.");m.length?(t.second=!0,t.sibling=m[0]):t.first=!0}var v=["tr","tl","br","bl","c"].some((function(e){return n===e}));if(n&&!v)throw new Error('"options.position" must be one of the following: tl, tr, bl, br, or c.');function y(e){throw new Error('"dateSelected" in options is '+(e?"less":"greater")+' than "'+(e||"max")+'Date".')}if(t.position=function(e){var t=e[0],n=e[1],r={};return r[s[t]]=1,n&&(r[s[n]]=1),r}(n||"bl"),o<u)throw new Error('"maxDate" in options is less than "minDate".');if(c&&(u>c&&y("min"),o<c&&y()),["onSelect","onShow","onHide","onMonthChange","formatter","disabler"].forEach((function(e){"function"!=typeof t[e]&&(t[e]=a)})),["customDays","customMonths","customOverlayMonths"].forEach((function(e,n){var r=t[e],i=n?12:7;if(r){if(!Array.isArray(r)||r.length!==i||r.some((function(e){return"string"!=typeof e})))throw new Error('"'+e+'" must be an array with '+i+" strings.");t[n?n<2?"months":"overlayMonths":"days"]=r}})),d&&d>0&&d<7){var g=(t.customDays||i).slice(),b=g.splice(0,d);t.customDays=g.concat(b),t.startDay=+d,t.weekendIndices=[g.length-1,g.length]}else t.startDay=0,t.weekendIndices=[6,0];"string"!=typeof h&&delete t.overlayPlaceholder,"string"!=typeof f&&delete t.overlayButton;var k=t.defaultView;if(k&&"calendar"!==k&&"overlay"!==k)throw new Error('options.defaultView must either be "calendar" or "overlay".');return t.defaultView=k||"calendar",t}(t||{startDate:w(new Date),position:"bl",defaultView:"calendar"}),h=e;if("string"==typeof h)h="#"===h[0]?document.getElementById(h.slice(1)):document.querySelector(h);else{if("[object ShadowRoot]"===A(h))throw new Error("Using a shadow DOM as your selector is not supported.");for(var f,d=h.parentNode;!f;){var p=A(d);"[object HTMLDocument]"===p?f=!0:"[object ShadowRoot]"===p?(f=!0,n=d,u=d.host):d=d.parentNode}}if(!h)throw new Error("No selector / element found.");if(r.some((function(e){return e.el===h})))throw new Error("A datepicker already exists on that element.");var m=h===document.body,v=n?h.parentElement||n:m?document.body:h.parentElement,g=n?h.parentElement||u:v,b=document.createElement("div"),k=document.createElement("div");b.className="qs-datepicker-container qs-hidden",k.className="qs-datepicker";var E={shadowDom:n,customElement:u,positionedEl:g,el:h,parent:v,nonInput:"INPUT"!==h.nodeName,noPosition:m,position:!m&&c.position,startDate:c.startDate,dateSelected:c.dateSelected,disabledDates:c.disabledDates,minDate:c.minDate,maxDate:c.maxDate,noWeekends:!!c.noWeekends,weekendIndices:c.weekendIndices,calendarContainer:b,calendar:k,currentMonth:(c.startDate||c.dateSelected).getMonth(),currentMonthName:(c.months||o)[(c.startDate||c.dateSelected).getMonth()],currentYear:(c.startDate||c.dateSelected).getFullYear(),events:c.events||{},defaultView:c.defaultView,setDate:I,remove:F,setMin:D,setMax:j,show:N,hide:M,navigate:B,toggleOverlay:q,onSelect:c.onSelect,onShow:c.onShow,onHide:c.onHide,onMonthChange:c.onMonthChange,formatter:c.formatter,disabler:c.disabler,months:c.months||o,days:c.customDays||i,startDay:c.startDay,overlayMonths:c.overlayMonths||(c.months||o).map((function(e){return e.slice(0,3)})),overlayPlaceholder:c.overlayPlaceholder||"4-digit year",overlayButton:c.overlayButton||"Submit",disableYearOverlay:!!c.disableYearOverlay,disableMobile:!!c.disableMobile,isMobile:"ontouchstart"in window,alwaysShow:!!c.alwaysShow,id:c.id,showAllDates:!!c.showAllDates,respectDisabledReadOnly:!!c.respectDisabledReadOnly,first:c.first,second:c.second};if(c.sibling){var S=c.sibling,T=E,O=S.minDate||T.minDate,C=S.maxDate||T.maxDate;T.sibling=S,S.sibling=T,S.minDate=O,S.maxDate=C,T.minDate=O,T.maxDate=C,S.originalMinDate=O,S.originalMaxDate=C,T.originalMinDate=O,T.originalMaxDate=C,S.getRange=R,T.getRange=R}c.dateSelected&&y(h,E);var P=getComputedStyle(g).position;m||P&&"static"!==P||(E.inlinePosition=!0,g.style.setProperty("position","relative"));var L=r.filter((function(e){return e.positionedEl===E.positionedEl}));return L.some((function(e){return e.inlinePosition}))&&(E.inlinePosition=!0,L.forEach((function(e){e.inlinePosition=!0}))),b.appendChild(k),v.appendChild(b),E.alwaysShow&&x(E),E}(e,t);if(r.length||c(document),n.shadowDom&&(r.some((function(e){return e.shadowDom===n.shadowDom}))||c(n.shadowDom)),r.push(n),n.second){var u=n.sibling;v({instance:n,deselect:!n.dateSelected}),v({instance:u,deselect:!u.dateSelected}),h(u)}return h(n,n.startDate||n.dateSelected),n.alwaysShow&&b(n),n}}]).default},7548:function(e){e.exports=function(){}},83369:function(e,t,n){var r=n(27040),i=n(14125),o=n(82117),s=n(67518),a=n(13399);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=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,e.exports=u},88668:function(e,t,n){var r=n(1469);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},46384:function(e,t,n){var r=n(27040),i=n(14125),o=n(82117),s=n(67518),a=n(13399);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=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,e.exports=u},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},96874:function(e){e.exports=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)}},77412:function(e){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}},29932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},62488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},82908:function(e){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}},34865:function(e,t,n){var r=n(89465),i=n(77813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},44037:function(e,t,n){var r=n(98363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},63886:function(e,t,n){var r=n(98363),i=n(81704);e.exports=function(e,t){return e&&r(t,i(t),e)}},89465:function(e,t,n){var r=n(38777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},29750:function(e){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},85990:function(e,t,n){var r=n(46384),i=n(77412),o=n(34865),s=n(44037),a=n(63886),u=n(64626),c=n(278),l=n(18805),h=n(1911),f=n(58234),d=n(46904),p=n(64160),m=n(43824),v=n(29148),y=n(38517),g=n(1469),b=n(44144),_=n(56688),w=n(13218),k=n(72928),x=n(3674),E=n(81704),S="[object Arguments]",A="[object Function]",T="[object Object]",O={};O[S]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[A]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,C,P,N,M){var I,D=1&n,j=2&n,L=4&n;if(C&&(I=N?C(t,P,N,M):C(t)),void 0!==I)return I;if(!w(t))return t;var R=g(t);if(R){if(I=m(t),!D)return c(t,I)}else{var F=p(t),B=F==A||"[object GeneratorFunction]"==F;if(b(t))return u(t,D);if(F==T||F==S||B&&!N){if(I=j||B?{}:y(t),!D)return j?h(t,a(I,t)):l(t,s(I,t))}else{if(!O[F])return N?t:{};I=v(t,F,D)}}M||(M=new r);var q=M.get(t);if(q)return q;M.set(t,I),k(t)?t.forEach((function(r){I.add(e(r,n,C,r,t,M))})):_(t)&&t.forEach((function(r,i){I.set(i,e(r,n,C,i,t,M))}));var U=R?void 0:(L?j?d:f:j?E:x)(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(I,i,e(r,n,C,i,t,M))})),I}},3118:function(e,t,n){var r=n(13218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},89881:function(e,t,n){var r=n(47816),i=n(99291)(r);e.exports=i},41848:function(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},21078:function(e,t,n){var r=n(62488),i=n(37285);e.exports=function e(t,n,o,s,a){var u=-1,c=t.length;for(o||(o=i),a||(a=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},28483:function(e,t,n){var r=n(25063)();e.exports=r},47816:function(e,t,n){var r=n(28483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},97786:function(e,t,n){var r=n(71811),i=n(40327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},44239:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78565:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},13:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},42118:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},90939:function(e,t,n){var r=n(21299),i=n(37005);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,s,e,a))}},21299:function(e,t,n){var r=n(46384),i=n(67114),o=n(18351),s=n(16096),a=n(64160),u=n(1469),c=n(44144),l=n(36719),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,y){var g=u(e),b=u(t),_=g?f:a(e),w=b?f:a(t),k=(_=_==h?d:_)==d,x=(w=w==h?d:w)==d,E=_==w;if(E&&c(e)){if(!c(t))return!1;g=!0,k=!1}if(E&&!k)return y||(y=new r),g||l(e)?i(e,t,n,m,v,y):o(e,t,_,n,m,v,y);if(!(1&n)){var S=k&&p.call(e,"__wrapped__"),A=x&&p.call(t,"__wrapped__");if(S||A){var T=S?e.value():e,O=A?t.value():t;return y||(y=new r),v(T,O,n,m,y)}}return!!E&&(y||(y=new r),s(e,t,n,m,v,y))}},2958:function(e,t,n){var r=n(46384),i=n(90939);e.exports=function(e,t,n,o){var s=n.length,a=s,u=!o;if(null==e)return!a;for(e=Object(e);s--;){var c=n[s];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<a;){var l=(c=n[s])[0],h=e[l],f=c[1];if(u&&c[2]){if(void 0===h&&!(l in e))return!1}else{var d=new r;if(o)var p=o(h,f,l,e,t,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},67206:function(e,t,n){var r=n(91573),i=n(16432),o=n(6557),s=n(1469),a=n(39601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):a(e)}},280:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},91573:function(e,t,n){var r=n(2958),i=n(1499),o=n(42634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},16432:function(e,t,n){var r=n(90939),i=n(27361),o=n(79095),s=n(15403),a=n(89162),u=n(42634),c=n(40327);e.exports=function(e,t){return s(e)&&a(t)?u(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?o(n,e):r(t,s,3)}}},25970:function(e,t,n){var r=n(63012),i=n(79095);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},63012:function(e,t,n){var r=n(97786),i=n(10611),o=n(71811);e.exports=function(e,t,n){for(var s=-1,a=t.length,u={};++s<a;){var c=t[s],l=r(e,c);n(l,c)&&i(u,o(c,e),l)}return u}},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:function(e,t,n){var r=n(97786);e.exports=function(e){return function(t){return r(t,e)}}},18674:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},15742:function(e,t,n){var r=n(57406),i=n(65776),o=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,s=n-1;n--;){var a=t[n];if(n==s||a!==u){var u=a;i(a)?o.call(e,a,1):r(e,a)}}return e}},5976:function(e,t,n){var r=n(6557),i=n(45357),o=n(30061);e.exports=function(e,t){return o(i(e,t,r),e+"")}},10611:function(e,t,n){var r=n(34865),i=n(71811),o=n(65776),s=n(13218),a=n(40327);e.exports=function(e,t,n,u){if(!s(e))return e;for(var c=-1,l=(t=i(t,e)).length,h=l-1,f=e;null!=f&&++c<l;){var d=a(t[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(c!=h){var m=f[d];void 0===(p=u?u(m,d,f):void 0)&&(p=s(m)?m:o(t[c+1])?[]:{})}r(f,d,p),f=f[d]}return e}},14259:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},48969:function(e,t,n){var r=n(29932);e.exports=function(e,t){return r(t,(function(t){return[t,e[t]]}))}},57406:function(e,t,n){var r=n(71811),i=n(10928),o=n(40292),s=n(40327);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[s(i(t))]}},47415:function(e,t,n){var r=n(29932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},74757:function(e,t,n){var r=n(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},54290:function(e){e.exports=function(e){return e}},71811:function(e,t,n){var r=n(1469),i=n(15403),o=n(55514),s=n(79833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(s(e))}},64626:function(e,t,n){e=n.nmd(e);var r=n(55639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}},278:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},98363:function(e,t,n){var r=n(34865),i=n(89465);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),s?i(n,c,l):r(n,c,l)}return n}},18805:function(e,t,n){var r=n(98363),i=n(99551);e.exports=function(e,t){return r(e,i(e),t)}},1911:function(e,t,n){var r=n(98363),i=n(51442);e.exports=function(e,t){return r(e,i(e),t)}},21463:function(e,t,n){var r=n(5976),i=n(16612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,s)}return t}))}},99291:function(e,t,n){var r=n(98612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,s=t?o:-1,a=Object(n);(t?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},25063:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var u=s[e?a:++i];if(!1===n(o[u],u,o))break}return t}}},23468:function(e,t,n){var r=n(7548),i=n(99021),o=n(66833),s=n(97658),a=n(1469),u=n(86528);e.exports=function(e){return i((function(t){var n=t.length,i=n,c=r.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new TypeError("Expected a function");if(c&&!h&&"wrapper"==s(l))var h=new r([],!0)}for(i=h?i:n;++i<n;){l=t[i];var f=s(l),d="wrapper"==f?o(l):void 0;h=d&&u(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?h[s(d[0])].apply(h,d[3]):1==l.length&&u(l)?h[f]():h.thru(l)}return function(){var e=arguments,r=e[0];if(h&&1==e.length&&a(r))return h.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}},13866:function(e,t,n){var r=n(48969),i=n(64160),o=n(68776),s=n(99294);e.exports=function(e){return function(t){var n=i(t);return"[object Map]"==n?o(t):"[object Set]"==n?s(t):r(t,e(t))}}},24626:function(e,t,n){var r=n(77813),i=Object.prototype,o=i.hasOwnProperty;e.exports=function(e,t,n,s){return void 0===e||r(e,i[n])&&!o.call(s,n)?t:e}},60696:function(e,t,n){var r=n(68630);e.exports=function(e){return r(e)?void 0:e}},38777:function(e,t,n){var r=n(10852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},67114:function(e,t,n){var r=n(88668),i=n(82908),o=n(74757);e.exports=function(e,t,n,s,a,u){var c=1&n,l=e.length,h=t.length;if(l!=h&&!(c&&h>l))return!1;var f=u.get(e),d=u.get(t);if(f&&d)return f==t&&d==e;var p=-1,m=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<l;){var y=e[p],g=t[p];if(s)var b=c?s(g,y,p,t,e,u):s(y,g,p,e,t,u);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(y===e||a(y,e,n,s,u)))return v.push(t)}))){m=!1;break}}else if(y!==g&&!a(y,g,n,s,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},18351:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},16096:function(e,t,n){var r=n(58234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var h=l;h--;){var f=c[h];if(!(u?f in t:i.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var v=u;++h<l;){var y=e[f=c[h]],g=t[f];if(o)var b=u?o(g,y,f,t,e,a):o(y,g,f,e,t,a);if(!(void 0===b?y===g||s(y,g,n,o,a):b)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}},89464:function(e,t,n){var r=n(18674)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},31994:function(e){var t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};e.exports=function(e){return"\\"+t[e]}},99021:function(e,t,n){var r=n(85564),i=n(45357),o=n(30061);e.exports=function(e){return o(i(e,void 0,r),e+"")}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},46904:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},66833:function(e){e.exports=function(){}},97658:function(e){e.exports=function(){return""}},1499:function(e,t,n){var r=n(89162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,r(s)]}return t}},10852:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},85924:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},99551:function(e){e.exports=function(){return[]}},51442:function(e){e.exports=function(){return[]}},64160:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},222:function(e,t,n){var r=n(71811),i=n(35694),o=n(1469),s=n(65776),a=n(41780),u=n(40327);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,h=!1;++c<l;){var f=u(t[c]);if(!(h=null!=e&&n(e,f)))break;e=e[f]}return h||++c!=l?h:!!(l=null==e?0:e.length)&&a(l)&&s(f,l)&&(o(e)||i(e))}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},29148:function(e){e.exports=function(e){return e}},38517:function(e,t,n){var r=n(3118),i=n(85924),o=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},37285:function(e,t,n){var r=n(62705),i=n(35694),o=n(1469),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},16612:function(e){e.exports=function(){return!1}},15403:function(e,t,n){var r=n(1469),i=n(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},86528:function(e){e.exports=function(){return!1}},25726:function(e){e.exports=function(){return!1}},89162:function(e,t,n){var r=n(13218);e.exports=function(e){return e==e&&!r(e)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},13399:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},68776:function(e){e.exports=function(){return[]}},42634:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},24523:function(e,t,n){var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},45357:function(e,t,n){var r=n(96874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),u=Array(a);++s<a;)u[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(u),r(e,this,c)}}},40292:function(e,t,n){var r=n(97786),i=n(14259);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},79865:function(e){e.exports=/<%-([\s\S]+?)%>/g},76051:function(e){e.exports=/<%([\s\S]+?)%>/g},5712:function(e){e.exports=/<%=([\s\S]+?)%>/g},55639:function(e,t,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},99294:function(e){e.exports=function(){return[]}},30061:function(e){e.exports=function(e){return e}},55514:function(e,t,n){var r=n(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=s},40327:function(e){e.exports=function(e){return e}},29018:function(e,t,n){var r=n(98363),i=n(21463),o=n(81704),s=i((function(e,t,n,i){r(t,o(t),e,i)}));e.exports=s},9591:function(e,t,n){var r=n(96874),i=n(5976),o=n(64647),s=i((function(e,t){try{return r(e,void 0,t)}catch(e){return o(e)?e:new Error(e)}}));e.exports=s},8400:function(e,t,n){var r=n(14259),i=n(16612),o=n(40554),s=Math.ceil,a=Math.max;e.exports=function(e,t,n){t=(n?i(e,t,n):void 0===t)?1:a(o(t),0);var u=null==e?0:e.length;if(!u||t<1)return[];for(var c=0,l=0,h=Array(s(u/t));c<u;)h[l++]=r(e,c,c+=t);return h}},74691:function(e,t,n){var r=n(29750),i=n(14841);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=i(n))==n?n:0),void 0!==t&&(t=(t=i(t))==t?t:0),r(i(e),t,n)}},66678:function(e,t,n){var r=n(85990);e.exports=function(e){return r(e,4)}},23279:function(e,t,n){var r=n(13218),i=n(7771),o=n(14841),s=Math.max,a=Math.min;e.exports=function(e,t,n){var u,c,l,h,f,d,p=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=u,r=c;return u=c=void 0,p=t,h=e.apply(r,n)}function b(e){return p=e,f=setTimeout(w,t),m?g(e):h}function _(e){var n=e-d;return void 0===d||n>=t||n<0||v&&e-p>=l}function w(){var e=i();if(_(e))return k(e);f=setTimeout(w,function(e){var n=t-(e-d);return v?a(n,l-(e-p)):n}(e))}function k(e){return f=void 0,y&&u?g(e):(u=c=void 0,h)}function x(){var e=i(),n=_(e);if(u=arguments,c=this,d=e,n){if(void 0===f)return b(d);if(v)return clearTimeout(f),f=setTimeout(w,t),g(d)}return void 0===f&&(f=setTimeout(w,t)),h}return t=o(t)||0,r(n)&&(m=!!n.leading,l=(v="maxWait"in n)?s(o(n.maxWait)||0,t):l,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==f&&clearTimeout(f),p=0,u=d=c=f=void 0},x.flush=function(){return void 0===f?h:k(i())},x}},42905:function(e,t,n){e.exports=n(93220)},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},7187:function(e,t,n){var r=n(89464),i=n(79833),o=/[&<>"']/g,s=RegExp(o.source);e.exports=function(e){return(e=i(e))&&s.test(e)?e.replace(o,r):e}},30998:function(e,t,n){var r=n(41848),i=n(67206),o=n(40554),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(e,i(t,3),u)}},85564:function(e,t,n){var r=n(21078);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},59242:function(e,t,n){var r=n(23468)();e.exports=r},47745:function(e,t,n){var r=n(23468)(!0);e.exports=r},84486:function(e,t,n){var r=n(77412),i=n(89881),o=n(54290),s=n(1469);e.exports=function(e,t){return(s(e)?r:i)(e,o(t))}},27361:function(e,t,n){var r=n(97786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},18721:function(e,t,n){var r=n(78565),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},79095:function(e,t,n){var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:function(e){e.exports=function(e){return e}},35694:function(e){e.exports=function(){return!1}},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),i=n(41780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},51584:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},44144:function(e){e.exports=function(){return!1}},67191:function(e,t,n){var r=n(37005),i=n(68630);e.exports=function(e){return r(e)&&1===e.nodeType&&!i(e)}},41609:function(e,t,n){var r=n(280),i=n(64160),o=n(35694),s=n(1469),a=n(98612),u=n(44144),c=n(25726),l=n(36719),h=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}},18446:function(e,t,n){var r=n(90939);e.exports=function(e,t){return r(e,t)}},64647:function(e,t,n){var r=n(44239),i=n(37005),o=n(68630);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},23560:function(e,t,n){var r=n(44239),i=n(13218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:function(e){e.exports=function(){return!1}},7654:function(e,t,n){var r=n(81763);e.exports=function(e){return r(e)&&e!=+e}},14293:function(e){e.exports=function(e){return null==e}},45220:function(e){e.exports=function(e){return null===e}},81763:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,n){var r=n(44239),i=n(85924),o=n(37005),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},72928:function(e){e.exports=function(){return!1}},47037:function(e,t,n){var r=n(44239),i=n(1469),o=n(37005);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},33448:function(e){e.exports=function(){return!1}},36719:function(e){e.exports=function(){return!1}},52353:function(e){e.exports=function(e){return void 0===e}},98611:function(e){var t=Array.prototype.join;e.exports=function(e,n){return null==e?"":t.call(e,n)}},3674:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},81704:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},88306:function(e,t,n){var r=n(83369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},50308:function(e){e.exports=function(){}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},57557:function(e,t,n){var r=n(29932),i=n(85990),o=n(57406),s=n(71811),a=n(98363),u=n(60696),c=n(99021),l=n(46904),h=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=s(t,e),c||(c=t.length>1),t})),a(e,l(e),n),c&&(n=i(n,7,u));for(var h=t.length;h--;)o(n,t[h]);return n}));e.exports=h},78718:function(e,t,n){var r=n(25970),i=n(99021)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},39601:function(e,t,n){var r=n(40371),i=n(79152),o=n(15403),s=n(40327);e.exports=function(e){return o(e)?r(s(e)):i(e)}},82729:function(e,t,n){var r=n(67206),i=n(15742);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,s=[],a=e.length;for(t=r(t,3);++o<a;){var u=e[o];t(u,o,e)&&(n.push(u),s.push(o))}return i(e,s),n}},31351:function(e){var t=Array.prototype.reverse;e.exports=function(e){return null==e?e:t.call(e)}},36968:function(e,t,n){var r=n(10611);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},41106:function(e,t,n){var r=n(29018),i=n(9591),o=n(47415),s=n(24626),a=n(31994),u=n(64647),c=n(16612),l=n(3674),h=n(5712),f=n(15835),d=n(79833),p=/\b__p \+= '';/g,m=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,y=/[()=,{}\[\]\/\s]/,g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,b=/($^)/,_=/['\n\r\u2028\u2029\\]/g,w=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var k=f.imports._.templateSettings||f;n&&c(e,t,n)&&(t=void 0),e=d(e),t=r({},t,k,s);var x,E,S=r({},t.imports,k.imports,s),A=l(S),T=o(S,A),O=0,C=t.interpolate||b,P="__p += '",N=RegExp((t.escape||b).source+"|"+C.source+"|"+(C===h?g:b).source+"|"+(t.evaluate||b).source+"|$","g"),M=w.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(N,(function(t,n,r,i,o,s){return r||(r=i),P+=e.slice(O,s).replace(_,a),n&&(x=!0,P+="' +\n__e("+n+") +\n'"),o&&(E=!0,P+="';\n"+o+";\n__p += '"),r&&(P+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),O=s+t.length,t})),P+="';\n";var I=w.call(t,"variable")&&t.variable;if(I){if(y.test(I))throw new Error("Invalid `variable` option passed into `_.template`")}else P="with (obj) {\n"+P+"\n}\n";P=(E?P.replace(p,""):P).replace(m,"$1").replace(v,"$1;"),P="function("+(I||"obj")+") {\n"+(I?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(x?", __e = _.escape":"")+(E?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+P+"return __p\n}";var D=i((function(){return Function(A,M+"return "+P).apply(void 0,T)}));if(D.source=P,u(D))throw D;return D}},15835:function(e,t,n){var r=n(7187),i={escape:n(79865),evaluate:n(76051),interpolate:n(5712),variable:"",imports:{_:{escape:r}}};e.exports=i},40554:function(e){e.exports=function(e){return e}},14841:function(e){e.exports=function(e){return e}},93220:function(e,t,n){var r=n(13866)(n(3674));e.exports=r},79833:function(e){e.exports=function(e){return e}},52628:function(e,t,n){var r=n(47415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},7059:function(e){e.exports=function(){"use strict";var e="undefined"!=typeof document&&document.documentMode,t={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var n=t.querySelector("img"),r=!1;null===n&&(n=document.createElement("img"),r=!0),e&&t.getAttribute("data-iesrc")&&(n.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(n.alt=t.getAttribute("data-alt")),r&&t.append(n)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var i=t.children,o=void 0,s=0;s<=i.length-1;s++)(o=i[s].getAttribute("data-src"))&&(i[s].src=o);t.load()}t.getAttribute("data-poster")&&(t.poster=t.getAttribute("data-poster")),t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset"));var a=",";if(t.getAttribute("data-background-delimiter")&&(a=t.getAttribute("data-background-delimiter")),t.getAttribute("data-background-image"))t.style.backgroundImage="url('"+t.getAttribute("data-background-image").split(a).join("'),url('")+"')";else if(t.getAttribute("data-background-image-set")){var u=t.getAttribute("data-background-image-set").split(a),c=u[0].substr(0,u[0].indexOf(" "))||u[0];c=-1===c.indexOf("url(")?"url("+c+")":c,1===u.length?t.style.backgroundImage=c:t.setAttribute("style",(t.getAttribute("style")||"")+"background-image: "+c+"; background-image: -webkit-image-set("+u+"); background-image: image-set("+u+")")}t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};function n(e){e.setAttribute("data-loaded",!0)}var r=function(e){return"true"===e.getAttribute("data-loaded")},i=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return e instanceof Element?[e]:e instanceof NodeList?e:t.querySelectorAll(e)};return function(){var e,o,s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},u=Object.assign({},t,a),c=u.root,l=u.rootMargin,h=u.threshold,f=u.load,d=u.loaded,p=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(p=new IntersectionObserver((e=f,o=d,function(t,i){t.forEach((function(t){(0<t.intersectionRatio||t.isIntersecting)&&(i.unobserve(t.target),r(t.target)||(e(t.target),n(t.target),o(t.target)))}))}),{root:c,rootMargin:l,threshold:h}));for(var m,v=i(s,c),y=0;y<v.length;y++)(m=v[y]).getAttribute("data-placeholder-background")&&(m.style.background=m.getAttribute("data-placeholder-background"));return{observe:function(){for(var e=i(s,c),t=0;t<e.length;t++)r(e[t])||(p?p.observe(e[t]):(f(e[t]),n(e[t]),d(e[t])))},triggerLoad:function(e){r(e)||(f(e),n(e),d(e))},observer:p}}}()},54776:function(e){e.exports=function(){"use strict";function e(e,t){var n=void 0;return function(){n&&clearTimeout(n),n=setTimeout(e,t)}}function t(e,t){for(var n=e.length,r=n,i=[];n--;)i.push(t(e[r-n-1]));return i}function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(window.Promise)return w(e,t,n);e.recalculate(!0,!0)}function r(e){for(var t=e.options,n=e.responsiveOptions,r=e.keys,i=e.docWidth,o=void 0,s=0;s<r.length;s++){var a=parseInt(r[s],10);i>=a&&(o=t.breakAt[a],O(o,n))}return n}function i(e){for(var t=e.options,n=e.responsiveOptions,r=e.keys,i=e.docWidth,o=void 0,s=r.length-1;s>=0;s--){var a=parseInt(r[s],10);i<=a&&(o=t.breakAt[a],O(o,n))}return n}function o(e){var t=e.useContainerForBreakpoints?e.container.clientWidth:window.innerWidth,n={columns:e.columns};T(e.margin)?n.margin={x:e.margin.x,y:e.margin.y}:n.margin={x:e.margin,y:e.margin};var o=Object.keys(e.breakAt);return e.mobileFirst?r({options:e,responsiveOptions:n,keys:o,docWidth:t}):i({options:e,responsiveOptions:n,keys:o,docWidth:t})}function s(e){return o(e).columns}function a(e){return o(e).margin}function u(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=s(e),r=a(e).x,i=100/n;if(!t)return i;if(1===n)return"100%";var o="px";if("string"==typeof r){var u=parseFloat(r);o=r.replace(u,""),r=u}return r=(n-1)*r/n,"%"===o?i-r+"%":"calc("+i+"% - "+r+o+")"}function c(e,t){var n=s(e.options),r=0,i=void 0,o=void 0;if(1==++t)return 0;var c="px";if("string"==typeof(o=a(e.options).x)){var l=parseFloat(o,10);c=o.replace(l,""),o=l}return i=(o-(n-1)*o/n)*(t-1),r+=u(e.options,!1)*(t-1),"%"===c?r+i+"%":"calc("+r+"% + "+i+c+")"}function l(e){var t=0,n=e.container,r=e.rows;p(r,(function(e){t=e>t?e:t})),n.style.height=t+"px"}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=s(e.options),o=a(e.options).y;P(e,i,n),p(t,(function(t){var n=0,i=parseInt(t.offsetHeight,10);isNaN(i)||(e.rows.forEach((function(t,r){t<e.rows[n]&&(n=r)})),t.style.position="absolute",t.style.top=e.rows[n]+"px",t.style.left=""+e.cols[n],e.rows[n]+=isNaN(i)?0:i+o,r&&(t.dataset.macyComplete=1))})),r&&(e.tmpRows=null),l(e)}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=s(e.options),o=a(e.options).y;P(e,i,n),p(t,(function(t){e.lastcol===i&&(e.lastcol=0);var n=C(t,"height");n=parseInt(t.offsetHeight,10),isNaN(n)||(t.style.position="absolute",t.style.top=e.rows[e.lastcol]+"px",t.style.left=""+e.cols[e.lastcol],e.rows[e.lastcol]+=isNaN(n)?0:n+o,e.lastcol+=1,r&&(t.dataset.macyComplete=1))})),r&&(e.tmpRows=null),l(e)}var d=function e(t,n){if(!(this instanceof e))return new e(t,n);if(t&&t.nodeName)return t;if(t=t.replace(/^\s*/,"").replace(/\s*$/,""),n)return this.byCss(t,n);for(var r in this.selectors)if(n=r.split("/"),new RegExp(n[1],n[2]).test(t))return this.selectors[r](t);return this.byCss(t)};d.prototype.byCss=function(e,t){return(t||document).querySelectorAll(e)},d.prototype.selectors={},d.prototype.selectors[/^\.[\w\-]+$/]=function(e){return document.getElementsByClassName(e.substring(1))},d.prototype.selectors[/^\w+$/]=function(e){return document.getElementsByTagName(e)},d.prototype.selectors[/^\#[\w\-]+$/]=function(e){return document.getElementById(e.substring(1))};var p=function(e,t){for(var n=e.length,r=n;n--;)t(e[r-n-1])},m=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.running=!1,this.events=[],this.add(e)};m.prototype.run=function(){if(!this.running&&this.events.length>0){var e=this.events.shift();this.running=!0,e(),this.running=!1,this.run()}},m.prototype.add=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!!t&&(Array.isArray(t)?p(t,(function(t){return e.add(t)})):(this.events.push(t),void this.run()))},m.prototype.clear=function(){this.events=[]};var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.instance=e,this.data=t,this},y=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.events={},this.instance=e};y.prototype.on=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||!t)&&(Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(t))},y.prototype.emit=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!Array.isArray(this.events[e]))return!1;var n=new v(this.instance,t);p(this.events[e],(function(e){return e(n)}))};var g=function(e){return!("naturalHeight"in e&&e.naturalHeight+e.naturalWidth===0)||e.width+e.height!==0},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(e,n){if(t.complete)return g(t)?e(t):n(t);t.addEventListener("load",(function(){return g(t)?e(t):n(t)})),t.addEventListener("error",(function(){return n(t)}))})).then((function(t){n&&e.emit(e.constants.EVENT_IMAGE_LOAD,{img:t})})).catch((function(t){return e.emit(e.constants.EVENT_IMAGE_ERROR,{img:t})}))},_=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t(n,(function(t){return b(e,t,r)}))},w=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Promise.all(_(e,t,n)).then((function(){e.emit(e.constants.EVENT_IMAGE_COMPLETE)}))},k=function(t){return e((function(){t.emit(t.constants.EVENT_RESIZE),t.queue.add((function(){return t.recalculate(!0,!0)}))}),100)},x=function(e){if(e.container=d(e.options.container),e.container instanceof d||!e.container)return!!e.options.debug&&console.error("Error: Container not found");e.container.length&&(e.container=e.container[0]),e.options.container=e.container,e.container.style.position="relative"},E=function(e){e.queue=new m,e.events=new y(e),e.rows=[],e.resizer=k(e)},S=function(e){var t=d("img",e.container);window.addEventListener("resize",e.resizer),e.on(e.constants.EVENT_IMAGE_LOAD,(function(){return e.recalculate(!1,!1)})),e.on(e.constants.EVENT_IMAGE_COMPLETE,(function(){return e.recalculate(!0,!0)})),e.options.useOwnImageLoader||n(e,t,!e.options.waitForImages),e.emit(e.constants.EVENT_INITIALIZED)},A=function(e){x(e),E(e),S(e)},T=function(e){return e===Object(e)&&"[object Array]"!==Object.prototype.toString.call(e)},O=function(e,t){T(e)||(t.columns=e),T(e)&&e.columns&&(t.columns=e.columns),T(e)&&e.margin&&!T(e.margin)&&(t.margin={x:e.margin,y:e.margin}),T(e)&&e.margin&&T(e.margin)&&e.margin.x&&(t.margin.x=e.margin.x),T(e)&&e.margin&&T(e.margin)&&e.margin.y&&(t.margin.y=e.margin.y)},C=function(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)},P=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.lastcol||(e.lastcol=0),e.rows.length<1&&(n=!0),n){e.rows=[],e.cols=[],e.lastcol=0;for(var r=t-1;r>=0;r--)e.rows[r]=0,e.cols[r]=c(e,r)}else if(e.tmpRows)for(e.rows=[],r=t-1;r>=0;r--)e.rows[r]=e.tmpRows[r];else for(e.tmpRows=[],r=t-1;r>=0;r--)e.tmpRows[r]=e.rows[r]},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t?e.container.children:d(':scope > *:not([data-macy-complete="1"])',e.container);r=Array.from(r).filter((function(e){return null!==e.offsetParent}));var i=u(e.options);return p(r,(function(e){t&&(e.dataset.macyComplete=0),e.style.width=i})),e.options.trueOrder?(f(e,r,t,n),e.emit(e.constants.EVENT_RECALCULATED)):(h(e,r,t,n),e.emit(e.constants.EVENT_RECALCULATED))},M=function(){return!!window.Promise},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};Array.from||(Array.from=function(e){for(var t=0,n=[];t<e.length;)n.push(e[t++]);return n});var D={columns:4,margin:2,trueOrder:!1,waitForImages:!1,useImageLoader:!0,breakAt:{},useOwnImageLoader:!1,onInit:!1,cancelLegacy:!1,useContainerForBreakpoints:!1};!function(){try{document.createElement("a").querySelector(":scope *")}catch(e){!function(){function e(e){return function(n){if(n&&t.test(n)){var r=this.getAttribute("id");r||(this.id="q"+Math.floor(9e6*Math.random())+1e6),arguments[0]=n.replace(t,"#"+this.id);var i=e.apply(this,arguments);return null===r?this.removeAttribute("id"):r||(this.id=r),i}return e.apply(this,arguments)}}var t=/:scope\b/gi,n=e(Element.prototype.querySelector);Element.prototype.querySelector=function(e){return n.apply(this,arguments)};var r=e(Element.prototype.querySelectorAll);Element.prototype.querySelectorAll=function(e){return r.apply(this,arguments)}}()}}();var j=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;if(!(this instanceof e))return new e(t);this.options={},I(this.options,D,t),this.options.cancelLegacy&&!M()||A(this)};return j.init=function(e){return console.warn("Depreciated: Macy.init will be removed in v3.0.0 opt to use Macy directly like so Macy({ /*options here*/ }) "),new j(e)},j.prototype.recalculateOnImageLoad=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return n(this,d("img",this.container),!e)},j.prototype.runOnImageLoad=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=d("img",this.container);return this.on(this.constants.EVENT_IMAGE_COMPLETE,e),t&&this.on(this.constants.EVENT_IMAGE_LOAD,e),n(this,r,t)},j.prototype.recalculate=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.queue.clear(),this.queue.add((function(){return N(e,t,n)}))},j.prototype.remove=function(){window.removeEventListener("resize",this.resizer),p(this.container.children,(function(e){e.removeAttribute("data-macy-complete"),e.removeAttribute("style")})),this.container.removeAttribute("style")},j.prototype.reInit=function(){this.recalculate(!0,!0),this.emit(this.constants.EVENT_INITIALIZED),window.addEventListener("resize",this.resizer),this.container.style.position="relative"},j.prototype.on=function(e,t){this.events.on(e,t)},j.prototype.emit=function(e,t){this.events.emit(e,t)},j.constants={EVENT_INITIALIZED:"macy.initialized",EVENT_RECALCULATED:"macy.recalculated",EVENT_IMAGE_LOAD:"macy.image.load",EVENT_IMAGE_ERROR:"macy.image.error",EVENT_IMAGE_COMPLETE:"macy.images.complete",EVENT_RESIZE:"macy.resize"},j.prototype.constants=j.constants,j}()},57824:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,u){u=u||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return u.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},34155:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,u=[],c=!1,l=-1;function h(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=s(h);c=!0;for(var t=u.length;t;){for(a=u,u=[];++l<t;)a&&a[l].run();l=-1,t=u.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}r.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];u.push(new d(e,t)),1!==u.length||c||s(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},57129:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function i(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,o,s=[];for(o in"string"!=typeof t&&(t="?"),e)if(n.call(e,o)){if((r=e[o])||null!=r&&!isNaN(r)||(r=""),o=i(o),r=i(r),null===o||null===r)continue;s.push(o+"="+r)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,i={};t=n.exec(e);){var o=r(t[1]),s=r(t[2]);null===o||null===s||o in i||(i[o]=s)}return i}},47418:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},91033:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&u()}function a(){s(o)}function u(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=g(0,0,0,0);function d(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=h(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=d(o)}return t}(r),o=i.left+i.right,s=i.top+i.bottom,a=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=p(r,"left","right")+o),Math.round(u+s)!==n&&(u-=p(r,"top","bottom")+s)),!function(e){return e===h(e).document.documentElement}(e)){var c=Math.round(a+o)-t,l=Math.round(u+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(l)&&(u-=l)}return g(i.left,i.top,a,u)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return i?v(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):m(e):f}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),_=function(e,t){var n,r,i,o,s,a,u,c=(r=(n=t).x,i=n.y,o=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(a.prototype),l(u,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),u);l(this,{target:e,contentRect:c})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new _(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var E=void 0!==o.ResizeObserver?o.ResizeObserver:x;t.Z=E},86851:function(e,t,n){"use strict";var r=n(89594),i=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],n=0,s=e.length;n<s;n++){var a=e[n];r(a)?t=i.call(t,o.call(a)):t.push(a)}return t};s.wrap=function(e){return function(){return e(s(arguments))}}},89594:function(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},95298:function(e,t,n){"use strict";var r=n(35488),i=n(35369),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};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delimiter,i=void 0===n?"\n":n;return"document"===e.object||"block"===e.object&&r.gO.isBlockList(e.nodes)?e.nodes.map(s).join(i):e.text}var a={deserialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultBlock,s=void 0===n?"line":n,a=t.defaultMarks,u=void 0===a?[]:a,c=t.delimiter,l=void 0===c?"\n":c,h=t.toJSON,f=void 0!==h&&h;i.l4.isSet(u)&&(u=u.toArray()),s=r.NB.createProperties(s),u=u.map(r.vc.createProperties);var d={object:"value",document:{object:"document",data:{},nodes:e.split(l).map((function(e){return o({},s,{object:"block",data:{},nodes:[{object:"text",text:e,marks:u}]})}))}},p=f?d:r.B4.fromJSON(d);return p},serialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(e.document,t)}};t.Z=a},35488:function(e,t,n){"use strict";n.d(t,{gO:function(){return fe},vc:function(){return W},NB:function(){return le},B4:function(){return pe}});var r=n(35369),i=n(55299),o=n.n(i),s=function(e,t){0},a="Invariant failed";function u(e,t){if(!e)throw new Error(a)}var c=n(55586),l=n.n(c),h=n(78181),f=n(78718),d=n.n(f),p=n(57557),m=n.n(p),v=n(6907),y=n.n(v),g=void 0,b=void 0;function _(){g=0,b=function(){return""+g++}}_();var w={create:function(e){if(null==e)return b();if("string"==typeof e)return e;throw new Error("Keys must be strings, but you passed: "+e)},setGenerator:function(e){b=e},resetGenerator:_},k="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},x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=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}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},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},T=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)},O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},C=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},P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},N=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)};function M(e,t){for(var n=q(e,t),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.size===t.size?0:null}function I(e){if(null==e)return null;if(r.aV.isList(e))return e;if(Array.isArray(e))return(0,r.aV)(e);throw new Error("Paths can only be created from arrays or lists, but you passed: "+e)}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q(e,t),r=e.slice(0,n),i=t.slice(0,n);return[r,i]}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1;return L(e,0-t,n)}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1,r=e.get(n),i=r+t,o=e.set(n,i);return o}function R(e,t){var n=D(e,t),r=P(n,2),i=r[0],o=r[1];return e.size<t.size&&0===M(i,o)}function F(e,t){return e.equals(t)}function B(e,t){var n=e.size-1,r=D(e,t,n),i=P(r,2),o=i[0],s=i[1],a=e.get(n),u=t.get(n);return F(o,s)&&a<u}function q(e,t){return Math.min(e.size,t.size)}var U={compare:M,create:I,crop:D,decrement:j,getAncestors:function(e){return(0,r.aV)().withMutations((function(t){for(var n=0;n<e.size;n++)t.push(e.slice(0,n))}))},increment:L,isAbove:R,isAfter:function(e,t){var n=D(e,t),r=P(n,2);return 1===M(r[0],r[1])},isBefore:function(e,t){var n=D(e,t),r=P(n,2);return-1===M(r[0],r[1])},isEqual:F,isOlder:function(e,t){var n=e.size-1,r=D(e,t,n),i=P(r,2),o=i[0],s=i[1],a=e.get(n),u=t.get(n);return F(o,s)&&a>u},isPath:function(e){return(r.aV.isList(e)||Array.isArray(e))&&e.every((function(e){return"number"==typeof e}))},isSibling:function(e,t){if(e.size!==t.size)return!1;var n=e.butLast(),r=t.butLast();return n.equals(r)},isYounger:B,lift:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.slice(0,-1*t);return n},drop:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.slice(t);return n},max:function(e,t){return Math.max(e.size,t.size)},min:q,relate:function(e,t){for(var n=[],r=0;r<e.size&&r<t.size;r++){var i=e.get(r);if(i!==t.get(r))break;n.push(i)}return I(n)},transform:function(e,t){var n=t.type,i=t.position,o=t.path;if("add_mark"===n||"insert_text"===n||"remove_mark"===n||"remove_text"===n||"set_mark"===n||"set_node"===n||"set_selection"===n||"set_value"===n||"add_annotation"===n||"remove_annotation"===n||"set_annotation"===n||0===e.size)return(0,r.aV)([e]);var s=o.size-1,a=F(o,e),u=B(o,e),c=R(o,e);if("insert_node"===n&&(a||u||c)&&(e=L(e,1,s)),"remove_node"===n&&(u?e=j(e,1,s):(a||c)&&(e=[])),"merge_node"===n&&(a||u?e=j(e,1,s):c&&(e=L(e=j(e,1,s),i,s+1))),"split_node"===n&&(a?e=[e,L(e)]:u?e=L(e,1,s):c&&e.get(s+1)>=i&&(e=j(e=L(e,1,s),i,s+1))),"move_node"===n){var l=t.newPath;if(F(o,l))return(0,r.aV)([e]);c||a?e=B(o,l)&&o.size<l.size?j(l,1,q(l,o)-1).concat(e.slice(o.size)):l.concat(e.slice(o.size)):(u&&(e=j(e,1,s)),(B(l,e)||F(l,e)||R(l,e))&&(e=L(e,1,l.size-1)))}var h=Array.isArray(e)?e:[e];return(0,r.aV)(h)}},z={key:void 0,offset:void 0,path:void 0},V=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"isAfterPoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset>e.offset||1===U.compare(this.path,e.path))}},{key:"isAfterRange",value:function(e){return!this.isUnset&&this.isAfterPoint(e.end)}},{key:"isAtEndOfRange",value:function(e){return!this.isUnset&&this.equals(e.end)}},{key:"isAtStartOfRange",value:function(e){return!this.isUnset&&this.equals(e.start)}},{key:"isBeforePoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset<e.offset||-1===U.compare(this.path,e.path))}},{key:"isBeforeRange",value:function(e){return!this.isUnset&&this.isBeforePoint(e.start)}},{key:"isInRange",value:function(e){return!this.isUnset&&(this.equals(e.start)||this.equals(e.end)||this.isAfterPoint(e.start)&&this.isBeforePoint(e.end))}},{key:"isAtEndOfNode",value:function(e){if(this.isUnset)return!1;var t=e.getLastText();return this.key===t.key&&this.offset===t.text.length}},{key:"isAtStartOfNode",value:function(e){if(this.isUnset)return!1;if(0!==this.offset)return!1;var t=e.getFirstText();return this.key===t.key}},{key:"isInNode",value:function(e){return!this.isUnset&&("text"===e.object&&e.key===this.key||!!e.hasNode(this.key))}},{key:"moveBackward",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0===e)return this;if(e<0)return this.moveForward(-e);var t=this.setOffset(this.offset-e);return t}},{key:"moveForward",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0===e)return this;if(e<0)return this.moveBackward(-e);var t=this.setOffset(this.offset+e);return t}},{key:"moveTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.key;"number"==typeof e?(t=e,e=this.path):"string"==typeof e?e=(n=e)===this.key?this.path:null:n=e.equals(this.path)?this.key:null;var r=this.merge({key:n,path:e,offset:t});return r}},{key:"moveToStartOfNode",value:function(e){var t=e.getFirstText();return this.moveTo(t.key,0)}},{key:"moveToEndOfNode",value:function(e){var t=e.getLastText();return this.moveTo(t.key,t.text.length)}},{key:"normalize",value:function(e){if(null==this.key&&null==this.path)return this.setOffset(null);var n=this.key,r=this.offset,i=this.path,o=i&&e.getNode(i);if(!o&&(o=e.getNode(n)))return this.merge({path:e.getPath(n)});if(!o){s(!1,"A point's `path` or `key` invalid and was reset!");var a=e.getFirstText();return a?this.merge({key:a.key,offset:0,path:e.getPath(a.key)}):t.create()}if("text"!==o.object){s(!1,"A point should not reference a non-text node!");var u=o.getTextAtOffset(r),c=o.getOffset(u.key);return this.merge({offset:r-c,key:u.key,path:e.getPath(u.key)})}o&&i&&n&&n!==o.key&&s(!1,"A point's `key` did not match its `path`!");var l=this.merge({key:o.key,path:null==i?e.getPath(o.key):i,offset:null==r?0:Math.min(r,o.text.length)});if(l.offset===o.text.length){var h=e.getClosestBlock(l.path).getNextText();h&&(l=l.merge({key:h.key,path:e.getPath(h.key),offset:0}))}return l}},{key:"setKey",value:function(e){return null!=e&&(e=w.create(e)),this.set("key",e)}},{key:"setOffset",value:function(e){return this.set("offset",e)}},{key:"setPath",value:function(e){return null!=e&&(e=U.create(e)),this.set("path",e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,key:this.key,offset:this.offset,path:this.path&&this.path.toArray()};return e.preserveKeys||delete t.key,t}},{key:"unset",value:function(){return this.merge({key:null,offset:null,path:null})}},{key:"isSet",get:function(){return null!=this.key&&null!=this.offset&&null!=this.path}},{key:"isUnset",get:function(){return!this.isSet}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Point.create` only accepts objects or points, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return{key:e.key,offset:e.offset,path:e.path};if(o()(e)){var n={};return"key"in e&&(n.key=e.key),"offset"in e&&(n.offset=e.offset),"path"in e&&(n.path=U.create(e.path)),"path"in e&&!("key"in e)&&(n.key=null),"key"in e&&!("path"in e)&&(n.path=null),n}throw new Error("`Point.createProperties` only accepts objects or points, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.key,r=void 0===n?null:n,i=e.offset,o=void 0===i?null:i,s=e.path,a=void 0===s?null:s;return new t({key:r,offset:o,path:U.create(a)})}}]),t}((0,r.WV)(z)),H=function(){function e(){x(this,e)}return E(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.D5.isMap(t))return t;if(o()(t))return e.fromJSON(t);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+t)}},{key:"fromJSON",value:function(e){return new r.D5(e)}}]),e}();H.fromJS=H.fromJSON;var K={data:void 0,type:void 0},W=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"toJSON",value:function(){return{object:this.object,type:this.type,data:this.data.toJSON()}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"createSet",value:function(e){if(r.l4.isSet(e)||Array.isArray(e))return new r.l4(e.map(t.create));if(null==e)return(0,r.l4)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=H.create(e.data)),n}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,i=void 0===n?{}:n,o=e.type;if("string"!=typeof o)throw new Error("`Mark.fromJS` requires a `type` string.");return new t({type:o,data:new r.D5(i)})}},{key:"isMarkSet",value:function(e){return r.l4.isSet(e)&&e.every((function(e){return t.isMark(e)}))}}]),t}((0,r.WV)(K)),$={type:void 0,data:void 0,anchor:void 0,focus:void 0},G=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"setProperties",value:function(e){return e=t.createProperties(e),this.merge(e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return e;if(ee.isRange(e))return t.fromJSON(ee.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Decoration.create` only accepts objects or decorations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(e)||Array.isArray(e)){var n=new r.aV(e.map(t.create));return n}throw new Error("`Decoration.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return{type:e.type,data:e.data,anchor:V.createProperties(e.anchor),focus:V.createProperties(e.focus),mark:W.create(e.mark)};if(o()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=H.create(e.data)),"anchor"in e&&(n.anchor=V.create(e.anchor)),"focus"in e&&(n.focus=V.create(e.focus)),n}throw new Error("`Decoration.createProperties` only accepts objects or decorations, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus,i=e.type,o=e.data;if(e.mark&&!i&&(s(!1,"As of slate@0.47 the `decoration.mark` property has been changed to `decoration.type` and `decoration.data` directly."),i=e.mark.type,o=e.mark.data),!i)throw new Error("Decorations must be created with a `type`, but you passed: "+JSON.stringify(e));return new t({type:i,data:H.create(o||{}),anchor:V.fromJSON(n||{}),focus:V.fromJSON(r||{})})}}]),t}((0,r.WV)($)),Y={anchor:void 0,focus:void 0,isFocused:void 0,marks:void 0},J=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"setIsFocused",value:function(e){return this.set("isFocused",e)}},{key:"setMarks",value:function(e){return this.set("marks",e)}},{key:"setProperties",value:function(e){var n=e=t.createProperties(e),r=n.anchor,i=n.focus,o=O(n,["anchor","focus"]);return r&&(o.anchor=V.create(r)),i&&(o.focus=V.create(i)),this.merge(o)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e),isFocused:this.isFocused,marks:null==this.marks?null:this.marks.toArray().map((function(e){return e.toJSON()}))};return t}},{key:"isBlurred",get:function(){return!this.isFocused}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return e;if(ee.isRange(e))return t.fromJSON(ee.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Selection.create` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return{anchor:V.createProperties(e.anchor),focus:V.createProperties(e.focus),isFocused:e.isFocused,marks:e.marks};if(ee.isRange(e))return{anchor:V.createProperties(e.anchor),focus:V.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=V.create(e.anchor)),"focus"in e&&(n.focus=V.create(e.focus)),"isFocused"in e&&(n.isFocused=e.isFocused),"marks"in e&&(n.marks=null==e.marks?null:W.createSet(e.marks)),n}throw new Error("`Selection.createProperties` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,i=e.focus,o=e.isFocused,s=void 0!==o&&o,a=e.marks,u=void 0===a?null:a;return new t({anchor:V.fromJSON(n||{}),focus:V.fromJSON(i||{}),isFocused:s,marks:null==u?null:new r.l4(u.map(W.fromJSON))})}}]),t}((0,r.WV)(Y)),Z={annotation:"@@__SLATE_ANNOTATION__@@",block:"@@__SLATE_BLOCK__@@",change:"@@__SLATE_CHANGE__@@",decoration:"@@__SLATE_DECORATION__@@",document:"@@__SLATE_DOCUMENT__@@",editor:"@@__SLATE_EDITOR__@@",inline:"@@__SLATE_INLINE__@@",leaf:"@@__SLATE_LEAF__@@",mark:"@@__SLATE_MARK__@@",operation:"@@__SLATE_OPERATION__@@",point:"@@__SLATE_POINT__@@",range:"@@__SLATE_RANGE__@@",selection:"@@__SLATE_SELECTION__@@",text:"@@__SLATE_TEXT__@@",value:"@@__SLATE_VALUE__@@"};function X(e,t){return!(!t||!t[Z[e]])}var Q={anchor:void 0,focus:void 0},ee=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return"range"===e.object?e:t.fromJSON(t.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(e)||Array.isArray(e)){var n=new r.aV(e.map(t.create));return n}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return{anchor:V.createProperties(e.anchor),focus:V.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=V.create(e.anchor)),"focus"in e&&(n.focus=V.create(e.focus)),n}throw new Error("`Range.createProperties` only accepts objects, annotations, decorations, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus;return new t({anchor:V.fromJSON(n||{}),focus:V.fromJSON(r||{})})}},{key:"isRange",value:function(e){return X("range",e)||G.isDecoration(e)||J.isSelection(e)}}]),t}((0,r.WV)(Q)),te={key:void 0,type:void 0,data:void 0,anchor:void 0,focus:void 0},ne=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"setProperties",value:function(e){return e=t.createProperties(e),this.merge(e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,key:this.key,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isAnnotation(e))return e;if(ee.isRange(e))return t.fromJSON(ee.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Annotation.create` only accepts objects or annotations, but you passed it: "+e)}},{key:"createMap",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.D5.isMap(e))return e;if(o()(e)){var n={};for(var i in e){var s=e[i],a=t.create(s);n[i]=a}return(0,r.D5)(n)}throw new Error("`Annotation.createMap` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isAnnotation(e))return{key:e.key,type:e.type,data:e.data,anchor:V.createProperties(e.anchor),focus:V.createProperties(e.focus)};if(o()(e)){var n={};return"key"in e&&(n.key=e.key),"type"in e&&(n.type=e.type),"data"in e&&(n.data=H.create(e.data)),"anchor"in e&&(n.anchor=V.create(e.anchor)),"focus"in e&&(n.focus=V.create(e.focus)),n}throw new Error("`Annotation.createProperties` only accepts objects or annotations, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.key,r=e.type,i=e.data,o=e.anchor,s=e.focus;if(!n)throw new Error("Annotations must be created with a `key`, but you passed: "+JSON.stringify(e));if(!r)throw new Error("Annotations must be created with a `type`, but you passed: "+JSON.stringify(e));return new t({key:n,type:r,data:H.create(i||{}),anchor:V.fromJSON(o||{}),focus:V.fromJSON(s||{})})}}]),t}((0,r.WV)(te)),re={data:void 0,key:void 0,nodes:void 0},ie=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDocument(e))return e;if((r.aV.isList(e)||Array.isArray(e))&&(e={nodes:e}),o()(e))return t.fromJSON(e);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isDocument(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,s=void 0===o?w.create():o,a=e.nodes,u=void 0===a?[]:a;return new t({key:s,data:new r.D5(i),nodes:le.createList(u)})}}]),t}((0,r.WV)(re)),oe={data:void 0,key:void 0,nodes:void 0,type:void 0},se=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isInline(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(e)||Array.isArray(e)){var n=new r.aV(e.map(t.create));return n}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isInline(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,s=void 0===o?w.create():o,a=e.nodes,u=void 0===a?[]:a,c=e.type;if("string"!=typeof c)throw new Error("`Inline.fromJS` requires a `type` string.");return new t({key:s,type:c,data:new r.D5(i),nodes:le.createList(u)})}},{key:"isInlineList",value:function(e){return r.aV.isList(e)&&e.every((function(e){return t.isInline(e)}))}}]),t}((0,r.WV)(oe)),ae={key:void 0,marks:void 0,text:void 0},ue=(0,r.WV)({text:void 0,marks:void 0,annotations:void 0,decorations:void 0}),ce=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"addMark",value:function(e){e=W.create(e);var t=this.marks.add(e);return this.set("marks",t)}},{key:"addMarks",value:function(e){return e=W.createSet(e),this.set("marks",this.marks.union(e))}},{key:"getLeaves",value:function(e,t){var n=[{text:this.text,marks:this.marks,annotations:[],decorations:[]}],i=function(e,t){return[{text:e.text.slice(0,t),marks:e.marks,annotations:[].concat(N(e.annotations)),decorations:[].concat(N(e.decorations))},{text:e.text.slice(t),marks:e.marks,annotations:[].concat(N(e.annotations)),decorations:[].concat(N(e.decorations))}]},o=function(r){var o="annotations"===r?e.values():t,s=!0,a=!1,u=void 0;try{for(var c,l=o[Symbol.iterator]();!(s=(c=l.next()).done);s=!0){var h=c.value,f=h.start,d=h.end,p=[],m=0,v=!0,y=!1,g=void 0;try{for(var b,_=n[Symbol.iterator]();!(v=(b=_.next()).done);v=!0){var w=b.value,k=w.text.length,x=m;if(m+=k,f.offset<=x&&d.offset>=x+k)w[r].push(h),p.push(w);else if(f.offset>x+k||d.offset<x||d.offset===x&&0!==x)p.push(w);else{var E=w,S=void 0,A=void 0;if(d.offset<x+k){var T=i(E,d.offset-x),O=P(T,2);E=O[0],A=O[1]}if(f.offset>x){var C=i(E,f.offset-x),N=P(C,2);S=N[0],E=N[1]}E[r].push(h),S&&p.push(S),p.push(E),A&&p.push(A)}}}catch(e){y=!0,g=e}finally{try{!v&&_.return&&_.return()}finally{if(y)throw g}}n=p}}catch(e){a=!0,u=e}finally{try{!s&&l.return&&l.return()}finally{if(a)throw u}}};return o("annotations"),o("decorations"),n=n.map((function(e){return new ue(A({},e,{annotations:(0,r.aV)(e.annotations),decorations:(0,r.aV)(e.decorations)}))})),(0,r.aV)(n)}},{key:"insertText",value:function(e,t){var n=this.text,r=n.slice(0,e)+t+n.slice(e);return this.set("text",r)}},{key:"removeMark",value:function(e){e=W.create(e);var t=this.marks.remove(e);return this.set("marks",t)}},{key:"removeText",value:function(e,t){var n=this.text,r=n.slice(0,e)+n.slice(e+t);return this.set("text",r)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,text:this.text,marks:this.marks.toArray().map((function(e){return e.toJSON()}))};return e.preserveKeys&&(t.key=this.key),t}},{key:"setMark",value:function(e,t){var n=this.marks,r=W.create(e),i=r.merge(t),o=n.remove(r).add(i);return this.set("marks",o)}},{key:"splitText",value:function(e){var t=this.text;return[this.set("text",t.slice(0,e)),this.set("text",t.slice(e)).regenerateKey()]}},{key:"mergeText",value:function(e){var t=this.text+e.text;return this.set("text",t)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t.isText(e))return e;if("string"==typeof e&&(e={text:e}),o()(e))return t.fromJSON(e);throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(e)||Array.isArray(e)){var n=new r.aV(e.map(t.create));return n}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isText(e))return e;u(null==e.leaves);var n=e.text,r=void 0===n?"":n,i=e.marks,o=void 0===i?[]:i,s=e.key;return new t({key:void 0===s?w.create():s,text:r,marks:W.createSet(o)})}},{key:"isTextList",value:function(e){return r.aV.isList(e)&&e.every((function(e){return t.isText(e)}))}}]),t}((0,r.WV)(ae)),le=function(){function e(){x(this,e)}return E(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.isNode(t))return t;if(o()(t)){var n=t.object;switch(!n&&t.kind&&(s(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),n=t.kind),n){case"block":return fe.create(t);case"document":return ie.create(t);case"inline":return se.create(t);case"text":return ce.create(t);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+t)}},{key:"createList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(t)||Array.isArray(t)){var n=[];t.forEach((function(t){if(t&&"text"===t.object&&t.leaves&&Array.isArray(t.leaves)){s(!1,"As of slate@0.46, the `leaves` property of Text nodes has been removed. Instead, each text node contains a string of text and a unique set of marks and leaves are unnecessary.");var r=ce.createList(t.leaves).toArray();n=n.concat(r)}else{var i=e.create(t);n.push(i)}}));var i=(0,r.aV)(n);return i}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+t)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(fe.isBlock(e)||se.isInline(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var t={};return"type"in e&&(t.type=e.type),"data"in e&&(t.data=H.create(e.data)),t}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var t=e.object;switch(!t&&e.kind&&(s(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),t=e.kind),t){case"block":return fe.fromJSON(e);case"document":return ie.fromJSON(e);case"inline":return se.fromJSON(e);case"text":return ce.fromJSON(e);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+e)}}},{key:"isNode",value:function(e){return fe.isBlock(e)||ie.isDocument(e)||se.isInline(e)||ce.isText(e)}},{key:"isNodeList",value:function(t){return r.aV.isList(t)&&t.every((function(t){return e.isNode(t)}))}}]),e}(),he={data:void 0,key:void 0,nodes:void 0,type:void 0},fe=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isBlock(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(e)||Array.isArray(e)){var n=new r.aV(e.map(t.create));return n}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isBlock(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,s=void 0===o?w.create():o,a=e.nodes,u=void 0===a?[]:a,c=e.type;if("string"!=typeof c)throw new Error("`Block.fromJSON` requires a `type` string.");return new t({key:s,type:c,data:(0,r.D5)(i),nodes:le.createList(u)})}},{key:"isBlockList",value:function(e){return r.aV.isList(e)&&e.every((function(e){return t.isBlock(e)}))}}]),t}((0,r.WV)(he)),de={annotations:void 0,data:void 0,document:void 0,selection:void 0},pe=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"addAnnotation",value:function(e){e=ne.create(e);var t=this,n=t,r=n.annotations,i=n.document,o=e.key;return e=e.updatePoints((function(e){return e.normalize(i)})),r=r.set(o,e),t=t.set("annotations",r)}},{key:"addMark",value:function(e,t){t=W.create(t);var n=this,r=n.document;return r=r.addMark(e,t),n=n.set("document",r)}},{key:"insertNode",value:function(e,t){var n=this,r=n.document;return r=r.insertNode(e,t),n=(n=n.set("document",r)).mapRanges((function(e){return e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"insertText",value:function(e,t,n){var r=this,i=r.document,o=i.assertNode(e);return i=i.insertText(e,t,n),o=i.assertNode(e),r=(r=r.set("document",i)).mapPoints((function(e){return e.key===o.key&&e.offset>=t?e.setOffset(e.offset+n.length):e}))}},{key:"mergeNode",value:function(e){var t=this,n=t.document,r=n.mergeNode(e);e=n.resolvePath(e);var i=U.decrement(e),o=n.getNode(i),s=n.getNode(e);return t=(t=t.set("document",r)).mapRanges((function(e){if("text"===s.object){var t=o.text.length;e.anchor.key===s.key&&(e=e.moveAnchorTo(o.key,t+e.anchor.offset)),e.focus.key===s.key&&(e=e.moveFocusTo(o.key,t+e.focus.offset))}return e=e.updatePoints((function(e){return e.setPath(null)}))})),t}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this,i=r,o=i.document;return U.isEqual(e,t)?r:(o=o.moveNode(e,t,n),r=(r=r.set("document",o)).mapPoints((function(e){return e.setPath(null)})))}},{key:"removeAnnotation",value:function(e){e=ne.create(e);var t=this,n=t.annotations,r=e.key;return n=n.delete(r),t=t.set("annotations",n)}},{key:"removeMark",value:function(e,t){t=W.create(t);var n=this,r=n.document;return r=r.removeMark(e,t),n=n.set("document",r)}},{key:"removeNode",value:function(e){var t=this,n=t.document,r=n.assertNode(e),i="text"===r.object?r:r.getFirstText()||r,o="text"===r.object?r:r.getLastText()||r,s=n.getPreviousText(i.key),a=n.getNextText(o.key);return n=n.removeNode(e),t=(t=t.set("document",n)).mapRanges((function(e){var t=e,n=t.anchor,i=t.focus;return r.hasNode(n.key)&&(e=s?e.moveAnchorTo(s.key,s.text.length):a?e.moveAnchorTo(a.key,0):e.unset()),r.hasNode(i.key)&&(e=s?e.moveFocusTo(s.key,s.text.length):a?e.moveFocusTo(a.key,0):e.unset()),e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"removeText",value:function(e,t,n){var r=this,i=r.document,o=i.assertNode(e);i=i.removeText(e,t,n),r=r.set("document",i);var s=n.length,a=t,u=t+s;return r=r.mapPoints((function(e){return e.key!==o.key?e:e.offset>=u?e.setOffset(e.offset-s):e.offset>a?e.setOffset(a):e}))}},{key:"setAnnotation",value:function(e,t){t=ne.createProperties(t);var n=ne.create(e),r=n.merge(t),i=this,o=i.annotations,s=n.key;return o=o.set(s,r),i=i.set("annotations",o)}},{key:"setNode",value:function(e,t){var n=this,r=n.document;return r=r.setNode(e,t),n=n.set("document",r)}},{key:"setMark",value:function(e,t,n){var r=this,i=r.document;return i=i.setMark(e,t,n),r=r.set("document",i)}},{key:"setProperties",value:function(e){var t=this,n=t.document,r=e.data,i=e.annotations,o={};return r&&(o.data=r),i&&(o.annotations=i.map((function(e){return e.isSet?e:n.resolveAnnotation(e)}))),t=t.merge(o)}},{key:"setSelection",value:function(e){var t=this,n=t,r=n.document,i=n.selection,o=i.setProperties(e);return i=r.resolveSelection(o),t=t.set("selection",i)}},{key:"splitNode",value:function(e,t,n){var r=this,i=r.document,o=i.splitNode(e,t,n),s=i.assertNode(e);return r=(r=r.set("document",o)).mapRanges((function(e){var n=o.getNextText(s.key),r=e,i=r.anchor,a=r.focus;return s.key===i.key&&t<=i.offset&&(e=e.moveAnchorTo(n.key,i.offset-t)),s.key===a.key&&t<=a.offset&&(e=e.moveFocusTo(n.key,a.offset-t)),e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"mapRanges",value:function(e){var t=this,n=t,r=n.document,i=n.selection,o=n.annotations,s=i.isSet?e(i):i;s||(s=i.unset()),s!==i&&(s=r.createSelection(s)),t=t.set("selection",s);var a=o.map((function(t){var n=t.isSet?e(t):t;return n&&n!==t&&(n=r.createAnnotation(n)),n}));return a=a.filter((function(e){return!!e})),t=t.set("annotations",a)}},{key:"mapPoints",value:function(e){return this.mapRanges((function(t){return t.updatePoints(e)}))}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,document:this.document.toJSON(e)};return e.preserveData&&(t.data=this.data.toJSON(e)),e.preserveAnnotations&&(t.annotations=this.annotations.map((function(t){return t.toJSON(e)})).toObject()),e.preserveSelection&&(t.selection=this.selection.toJSON(e)),t}},{key:"change",value:function(){u(!1)}},{key:"startBlock",get:function(){return this.selection.start.key&&this.document.getClosestBlock(this.selection.start.key)}},{key:"endBlock",get:function(){return this.selection.end.key&&this.document.getClosestBlock(this.selection.end.key)}},{key:"anchorBlock",get:function(){return this.selection.anchor.key&&this.document.getClosestBlock(this.selection.anchor.key)}},{key:"focusBlock",get:function(){return this.selection.focus.key&&this.document.getClosestBlock(this.selection.focus.key)}},{key:"startInline",get:function(){return this.selection.start.key&&this.document.getClosestInline(this.selection.start.key)}},{key:"endInline",get:function(){return this.selection.end.key&&this.document.getClosestInline(this.selection.end.key)}},{key:"anchorInline",get:function(){return this.selection.anchor.key&&this.document.getClosestInline(this.selection.anchor.key)}},{key:"focusInline",get:function(){return this.selection.focus.key&&this.document.getClosestInline(this.selection.focus.key)}},{key:"startText",get:function(){return this.selection.start.key&&this.document.getDescendant(this.selection.start.key)}},{key:"endText",get:function(){return this.selection.end.key&&this.document.getDescendant(this.selection.end.key)}},{key:"anchorText",get:function(){return this.selection.anchor.key&&this.document.getDescendant(this.selection.anchor.key)}},{key:"focusText",get:function(){return this.selection.focus.key&&this.document.getDescendant(this.selection.focus.key)}},{key:"nextBlock",get:function(){return this.selection.end.key&&this.document.getNextBlock(this.selection.end.key)}},{key:"previousBlock",get:function(){return this.selection.start.key&&this.document.getPreviousBlock(this.selection.start.key)}},{key:"nextInline",get:function(){return this.selection.end.key&&this.document.getNextInline(this.selection.end.key)}},{key:"previousInline",get:function(){return this.selection.start.key&&this.document.getPreviousInline(this.selection.start.key)}},{key:"nextText",get:function(){return this.selection.end.key&&this.document.getNextText(this.selection.end.key)}},{key:"previousText",get:function(){return this.selection.start.key&&this.document.getPreviousText(this.selection.start.key)}},{key:"marks",get:function(){return this.selection.isUnset?new r.l4:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new r.l4:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new r.aV:this.document.getLeafBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?ie.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new r.aV:this.document.getLeafInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new r.aV:this.document.getTextsAtRange(this.selection)}},{key:"history",get:function(){u(!1)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.isValue(e))return e;if(o()(e))return t.fromJSON(e,n);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isValue(e))return{annotations:e.annotations,data:e.data};if(o()(e)){var n={};return"annotations"in e&&(n.annotations=ne.createMap(e.annotations)),"data"in e&&(n.data=H.create(e.data)),n}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,r=void 0===n?{}:n,i=e.annotations,o=void 0===i?{}:i,s=e.document,a=void 0===s?{}:s,u=e.selection,c=void 0===u?{}:u;if(r=H.fromJSON(r),c=(a=ie.fromJSON(a)).createSelection(c),o=ne.createMap(o),c.isUnset){var l=a.getFirstText();l&&(c=c.moveToStartOfNode(l)),c=a.createSelection(c)}return new t({annotations:o,data:r,document:a,selection:c})}}]),t}((0,r.WV)(de)),me=l()("slate:operation:apply");function ve(e,t){var n=(t=we.create(t)).type;switch(me(n,t),n){case"add_annotation":var r=t.annotation;return e.addAnnotation(r);case"add_mark":var i=t,o=i.path,s=i.mark;return e.addMark(o,s);case"insert_node":var a=t,u=a.path,c=a.node;return e.insertNode(u,c);case"insert_text":var l=t,h=l.path,f=l.offset,d=l.text,p=l.marks;return e.insertText(h,f,d,p);case"merge_node":var m=t.path;return e.mergeNode(m);case"move_node":var v=t,y=v.path,g=v.newPath;return e.moveNode(y,g);case"remove_annotation":var b=t.annotation;return e.removeAnnotation(b);case"remove_mark":var _=t,w=_.path,k=_.mark;return e.removeMark(w,k);case"remove_node":var x=t.path;return e.removeNode(x);case"remove_text":var E=t,S=E.path,A=E.offset,T=E.text;return e.removeText(S,A,T);case"set_annotation":var O=t,C=O.properties,P=O.newProperties;return e.setAnnotation(C,P);case"set_mark":var N=t,M=N.path,I=N.properties,D=N.newProperties;return e.setMark(M,I,D);case"set_node":var j=t,L=j.path,R=j.newProperties;return e.setNode(L,R);case"set_selection":var F=t.newProperties;return e.setSelection(F);case"set_value":var B=t.newProperties;return e.setProperties(B);case"split_node":var q=t,U=q.path,z=q.position,V=q.properties;return e.splitNode(U,z,V);default:throw new Error('Unknown operation type: "'+n+'".')}}var ye=l()("slate:operation:invert");function ge(e){var t=(e=we.create(e)).type;switch(ye(t,e),t){case"move_node":var n=e,r=n.newPath,i=n.path;if(U.isEqual(r,i))return e;var o=U.transform(i,e).first(),s=U.transform(U.increment(i),e).first();return e.set("path",o).set("newPath",s);case"merge_node":var a=e.path,u=U.decrement(a);return e.set("type","split_node").set("path",u);case"split_node":var c=e.path,l=U.increment(c);return e.set("type","merge_node").set("path",l);case"set_annotation":case"set_node":case"set_value":case"set_selection":case"set_mark":var h=e,f=h.properties,d=h.newProperties;return e.set("properties",d).set("newProperties",f);case"insert_node":case"insert_text":return e.set("type",t.replace("insert_","remove_"));case"remove_node":case"remove_text":return e.set("type",t.replace("remove_","insert_"));case"add_annotation":case"add_mark":return e.set("type",t.replace("add_","remove_"));case"remove_annotation":case"remove_mark":return e.set("type",t.replace("remove_","add_"));default:throw new Error('Unknown operation type: "'+t+'".')}}var be={add_mark:["path","mark","data"],add_annotation:["annotation","data"],insert_node:["path","node","data"],insert_text:["path","offset","text","data"],merge_node:["path","position","properties","target","data"],move_node:["path","newPath","data"],remove_annotation:["annotation","data"],remove_mark:["path","mark","data"],remove_node:["path","node","data"],remove_text:["path","offset","text","data"],set_annotation:["properties","newProperties","data"],set_mark:["path","properties","newProperties","data"],set_node:["path","properties","newProperties","data"],set_selection:["properties","newProperties","data"],set_value:["properties","newProperties","data"],split_node:["path","position","properties","target","data"]},_e={annotation:void 0,data:void 0,length:void 0,mark:void 0,marks:void 0,newPath:void 0,newProperties:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,target:void 0,text:void 0,type:void 0},we=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"apply",value:function(e){return ve(e,this)}},{key:"invert",value:function(){return ge(this)}},{key:"toJSON",value:function(){var e=this.object,t=this.type,n={object:e,type:t},r=be[t],i=!0,o=!1,s=void 0;try{for(var a,u=r[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=a.value,l=this[c];if("annotation"!==c&&"mark"!==c&&"marks"!==c&&"node"!==c&&"path"!==c&&"newPath"!==c||(l=l.toJSON()),"properties"===c&&"merge_node"===t){var h={};"data"in l&&(h.data=l.data.toJS()),"type"in l&&(h.type=l.type),l=h}if(("properties"===c||"newProperties"===c)&&"set_annotation"===t){var f={};"anchor"in l&&(f.anchor=l.anchor.toJS()),"focus"in l&&(f.focus=l.focus.toJS()),"key"in l&&(f.key=l.key),"data"in l&&(f.data=l.data.toJS()),"type"in l&&(f.type=l.type),l=f}if(("properties"===c||"newProperties"===c)&&"set_mark"===t){var d={};"data"in l&&(d.data=l.data.toJS()),"type"in l&&(d.type=l.type),l=d}if(("properties"===c||"newProperties"===c)&&"set_node"===t){var p={};"data"in l&&(p.data=l.data.toJS()),"type"in l&&(p.type=l.type),l=p}if(("properties"===c||"newProperties"===c)&&"set_selection"===t){var m={};"anchor"in l&&(m.anchor=l.anchor.toJSON()),"focus"in l&&(m.focus=l.focus.toJSON()),"isFocused"in l&&(m.isFocused=l.isFocused),"marks"in l&&(m.marks=l.marks&&l.marks.toJSON()),l=m}if(("properties"===c||"newProperties"===c)&&"set_value"===t){var v={};"data"in l&&(v.data=l.data.toJS()),l=v}if("properties"===c&&"split_node"===t){var y={};"data"in l&&(y.data=l.data.toJS()),"type"in l&&(y.type=l.type),l=y}"data"===c&&(l=l.toJSON()),n[c]=l}}catch(e){o=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw s}}return n}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isOperation(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(e)||Array.isArray(e)){var n=new r.aV(e.map(t.create));return n}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isOperation(e))return e;var n=e.type,i=be[n],o={type:n};if(!i)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+n+'"');var s=!0,a=!1,u=void 0;try{for(var c,l=i[Symbol.iterator]();!(s=(c=l.next()).done);s=!0){var h=c.value,f=e[h];if("data"===h&&void 0===f&&(f={}),void 0===f)throw new Error('`Operation.fromJSON` was passed a "'+n+'" operation without the required "'+h+'" attribute.');"annotation"===h&&(f=ne.create(f)),"path"!==h&&"newPath"!==h||(f=U.create(f)),"mark"===h&&(f=W.create(f)),"node"===h&&(f=le.create(f)),"properties"!==h&&"newProperties"!==h||"set_annotation"!==n||(f=ne.createProperties(f)),"properties"!==h&&"newProperties"!==h||"set_mark"!==n||(f=W.createProperties(f)),"properties"!==h&&"newProperties"!==h||"set_node"!==n&&"merge_node"!==n&&"split_node"!==n||(f=le.createProperties(f)),"properties"!==h&&"newProperties"!==h||"set_selection"!==n||(f=J.createProperties(f)),"properties"!==h&&"newProperties"!==h||"set_value"!==n||(f=pe.createProperties(f)),"data"===h&&(f=(0,r.D5)(f)),o[h]=f}}catch(e){a=!0,u=e}finally{try{!s&&l.return&&l.return()}finally{if(a)throw u}}return new t(o)}},{key:"isOperationList",value:function(e){return r.aV.isList(e)&&e.every((function(e){return t.isOperation(e)}))}}]),t}((0,r.WV)(_e)),ke={operations:void 0,value:void 0},xe=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,value:this.value.toJSON(e),operations:this.operations.toArray().map((function(t){return t.toJSON(e)}))};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isChange(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Change.create` only accepts objects or changes, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.value,r=e.operations,i=void 0===r?[]:r;return new t({value:pe.create(n),operations:we.createList(i)})}}]),t}((0,r.WV)(ke));function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(t,n,r){var i=t.type,o=t.args,s=e[i];if(!s)return r();n.command.apply(n,[s].concat(N(o)))}function n(t,n){for(var r in e)t.registerCommand(r);return n()}return{onCommand:t,onConstruct:n}}var Se=/\s/,Ae=/['\u2018\u2019]/,Te=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function Oe(e){return 55296<=e&&e<=57343}function Ce(e,t,n){if(55356===e){var r=t.charCodeAt(n+1);return r<=57343&&r>=57339}return!1}function Pe(e){return e<=65039&&e>=65024}function Ne(e,t){if(Se.test(e))return!1;if(Ae.test(e)){var n=t.charAt(0),r=Me(n);if(Ne(n=t.slice(0,r),t.slice(r)))return!0}return!Te.test(e)}function Me(e){return Oe(e.charCodeAt(0))?2:1}function Ie(e,t,n){var r,i=0;if(""===e)return 1;for(var o=0;o<t;o++)for(var s=null,a=e.charCodeAt(i);a;)if(Oe(a)){var u=Ce(a,e,i);if(n){if(!u&&s&&"ZWJ"!==s||u&&s&&"SURR"!==s)break}else if("SURR"===s||"BMP"===s)break;i+=2,s=u?"MOD":"SURR",a=e.charCodeAt(i)}else if(8205!==a)if(10084!==(r=a)&&9794!==r&&9792!==r&&9760!==r&&9877!==r&&9992!==r&&9711!==r){if(!Pe(a)){if(n){if(Ce(e.charCodeAt(i+1),e,i+1)){i+=3,s="MOD",a=e.charCodeAt(i);continue}}else if("MOD"===s){i+=1;break}null===s&&(i+=1);break}if(!n&&s&&"ZWJ"!==s)break;i+=1,s="VAR",a=e.charCodeAt(i)}else{if(n&&"VAR"===s||s&&"ZWJ"!==s&&"VAR"!==s)break;i+=1,s="BMP",a=e.charCodeAt(i)}else i+=1,s="ZWJ",a=e.charCodeAt(i);return i}function De(e){for(var t=0,n=0,r=!1,i=void 0;i=e.charAt(n);){var o=Me(i);if(Ne(i=e.slice(n,n+o),e.slice(n+o)))r=!0,t+=o;else{if(r)break;t+=o}n+=o}return t}var je={getCharLength:Me,getCharOffset:Ie,getCharOffsetBackward:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e=e.slice(0,t),Ie(e=(0,h.reverse)(e),n)},getCharOffsetForward:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ie(e=e.slice(t),n,!0)},getWordOffset:De,getWordOffsetBackward:function(e,t){return e=e.slice(0,t),De(e=(0,h.reverse)(e))},getWordOffsetForward:function(e,t){return De(e=e.slice(t))},isSurrogate:Oe,isWord:Ne};function Le(e,t){t.isExpanded&&e.deleteAtRange(t);var n=e.value.document,r=t,i=r.start,o=r.end;return t=n.hasDescendant(i.path)?t.moveToStart():t.moveTo(o.path,0).normalize(n)}var Re={addMarkAtRange:function(e,t,n){if(!t.isCollapsed){var r=e.value.document,i=t.start,o=t.end,s=r.getTextsAtRange(t);e.withoutNormalizing((function(){s.forEach((function(t){var r=t.key,s=0,a=t.text.length;r===i.key&&(s=i.offset),r===o.key&&(a=o.offset),r===i.key&&r===o.key&&(a=o.offset-i.offset),e.addMarkByKey(r,s,a,n)}))}))}},addMarksAtRange:function(e,t,n){n.forEach((function(n){return e.addMarkAtRange(t,n)}))},deleteAtRange:function(e,t){e.snapshotSelection();var n=e.value,r=t.start,i=t.end,o=r.key,s=r.offset,a=i.key,u=i.offset,c=n.document,l=c.hasVoidParent(o,e),h=c.hasVoidParent(a,e),f=c.getClosestBlock(o),d=c.getClosestBlock(a),p=0===s&&0===u&&!1===l&&o===f.getFirstText().key&&a===d.getFirstText().key&&o!==a;if(p&&h){var m=c.getPreviousText(a);a=m.key,u=m.text.length,h=c.hasVoidParent(a,e)}e.withoutNormalizing((function(){for(;l;){var t=c.getClosestVoid(o,e),n=c.getNextText(o);if(e.removeNodeByKey(t.key),o===a)return;if(!n)return;c=e.value.document,o=n.key,s=0,l=c.hasVoidParent(o,e)}for(;h;){var r=c.getClosestVoid(a,e),i=c.getPreviousText(a);e.removeNodeByKey(r.key),c=e.value.document,a=i.key,u=i.text.length,h=c.hasVoidParent(a,e)}if(o===a&&p)e.removeNodeByKey(f.key);else if(o!==a){f=c.getClosestBlock(o),d=c.getClosestBlock(a);var m=c.getNode(o),v=c.getNode(a),y=m.text.length-s,g=u,b=c.getCommonAncestor(o,a),_=b.getFurthestChild(o),w=b.getFurthestChild(a),k=c.getParent(f.key),x=k.nodes.indexOf(f),E=k.nodes.indexOf(d),S=void 0;for(S=m;S.key!==_.key;){var A=c.getParent(S.key),T=A.nodes.indexOf(S);A.nodes.slice(T+1).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=A}var O=b.nodes.indexOf(_),C=b.nodes.indexOf(w);for(b.nodes.slice(O+1,C).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=v;S.key!==w.key;){var N=c.getParent(S.key),M=N.nodes.indexOf(S);N.nodes.slice(0,M).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=N}if(0!==y&&e.removeTextByKey(o,s,y),0!==g&&e.removeTextByKey(a,0,u),f.key!==d.key){c=e.value.document;var I=void 0,D=!0,j=!1,L=void 0;try{for(var R,F=c.ancestors(d.key)[Symbol.iterator]();!(D=(R=F.next()).done);D=!0){var B=R.value,q=P(B,1)[0];if(q.nodes.size>1)break;I=q}}catch(e){j=!0,L=e}finally{try{!D&&F.return&&F.return()}finally{if(j)throw L}}E!==x+1&&e.moveNodeByKey(d.key,k.key,x+1),p?e.removeNodeByKey(f.key):e.mergeNodeByKey(d.key),I&&e.removeNodeByKey(I.key)}}else{var U=s,z=u-s;e.removeTextByKey(o,U,z)}}))},deleteBackwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value,i=r.document,o=t,s=o.start,a=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var u=i.getClosestVoid(s.path,e);if(u)e.removeNodeByKey(u.key);else if(!s.isAtStartOfNode(i)){var c=i.getClosestBlock(s.path);if(1!==i.nodes.size&&c&&""===c.text&&1===c.nodes.size)e.removeNodeByKey(c.key);else{var l=i.getDescendant(s.path);if(s.isAtStartOfNode(l)){var h=i.getPreviousText(l.key),f=i.getClosestInline(l.key);f&&""===h.text&&(h=i.getPreviousText(h.key));var d=i.getClosestBlock(h.key),p=i.getClosestVoid(h.key,e);if(p)return void e.removeNodeByKey(p.key);if(1===n&&d!==c)return t=t.moveAnchorTo(h.key,h.text.length),void e.deleteAtRange(t)}if(n<=a.offset)return t=t.moveFocusBackward(n),void e.deleteAtRange(t);for(var m=l,v=0,y=a.offset;n>y;){var g=y+(m=i.getPreviousText(m.key)).text.length;if(n<=g){v=g-n;break}y=g}t=t.moveAnchorTo(m.key,v),e.deleteAtRange(t)}}}}},deleteCharBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,s=i.text,a=je.getCharOffsetBackward(s,o);e.deleteBackwardAtRange(t,a)}},deleteCharForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,s=i.text,a=je.getCharOffsetForward(s,o);e.deleteForwardAtRange(t,a)}},deleteForwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value,i=r.document,o=t,s=o.start,a=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var u=i.getClosestVoid(s.path,e);if(u)e.removeNodeByKey(u.key);else{var c=i.getClosestBlock(s.path);if(c&&!e.isVoid(c)&&""===c.text&&1!==i.nodes.size){var l=i.getNextBlock(c.key);return e.removeNodeByKey(c.key),void(l&&l.key&&e.moveToStartOfNode(l))}if(!s.isAtEndOfNode(i)){var h=i.getDescendant(s.path);if(s.isAtEndOfNode(h)){var f=i.getNextText(h.key),d=i.getClosestBlock(f.key),p=i.getClosestVoid(f.key,e);if(p)return void e.removeNodeByKey(p.key);if(1===n&&d!==c)return t=t.moveFocusTo(f.key,0),void e.deleteAtRange(t)}if(n<=h.text.length-a.offset)return t=t.moveFocusForward(n),void e.deleteAtRange(t);for(var m=h,v=a.offset,y=h.text.length-a.offset;n>y;){var g=y+(m=i.getNextText(m.key)).text.length;if(n<=g){v=n-y;break}y=g}t=t.moveFocusTo(m.key,v),e.deleteAtRange(t)}}}}},deleteLineBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path).getOffset(r.key)+r.offset;e.deleteBackwardAtRange(t,i)}},deleteLineForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset;e.deleteForwardAtRange(t,i.text.length-o)}},deleteWordBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,s=i.text,a=0===o?1:je.getWordOffsetBackward(s,o);e.deleteBackwardAtRange(t,a)}},deleteWordForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,s=i.text,a=je.getWordOffsetForward(s,o),u=0===a?1:a;e.deleteForwardAtRange(t,u)}},insertBlockAtRange:function(e,t,n){t=Le(e,t),n=fe.create(n);var r=e.value.document,i=t.start,o=i.key,s=i.offset,a=r.getClosestBlock(o),u=r.getClosestInline(o),c=r.getParent(a.key),l=c.nodes.indexOf(a),h=Fe(e,t);if("before"===h)e.insertNodeByKey(c.key,l,n);else if("behind"===h)e.insertNodeByKey(c.key,l+1,n);else{if(u&&e.isVoid(u)){var f=i.isAtEndOfNode(u),d=f?r.getNextText(o):r.getPreviousText(o),p=f?t.moveToStartOfNode(d):t.moveToEndOfNode(d);o=p.start.key,s=p.start.offset}e.withoutNormalizing((function(){e.splitDescendantsByKey(a.key,o,s),e.insertNodeByKey(c.key,l+1,n)}))}}},Fe=function(e,t){var n=e.value.document,r=t.start,i=r.key,o=n.getClosestBlock(i),s=n.getClosestInline(i);return e.isVoid(o)?r.isAtEndOfNode(o)?"behind":"before":s||""!==o.text?r.isAtStartOfNode(o)?"before":r.isAtEndOfNode(o)?"behind":"split":"behind"};Re.insertFragmentAtRange=function(e,t,n){e.withoutNormalizing((function(){if(t=Le(e,t),n.nodes.size){n=n.mapDescendants((function(e){return e.regenerateKey()}));var i=t.start,o=e.value.document,s=o.getDescendant(i.path),a=o.getClosestBlock(s.key),u=a.getFurthestChild(s.key),c=i.isAtStartOfNode(a),l=o.getParent(a.key),h=l.nodes.indexOf(a),f=n.getBlocks(),d=n.nodes.first(),p=n.nodes.last(),m=f.first(),v=f.last(),y=Be(n,o,a.key);if(m===v&&e.isVoid(m))e.insertBlockAtRange(t,m);else if(y!==n||!d.hasBlockChildren()&&!p.hasBlockChildren()){if(m!==v){var g=y.getFurthest(m.key,(function(e){return 1===e.nodes.size}))||m,b=l.nodes.indexOf(a);y.removeNode(g.key).nodes.forEach((function(t,n){var r=b+n+1;e.insertNodeByKey(l.key,r,t)}))}if(0!==i.offset&&e.splitDescendantsByKey(u.key,i.key,i.offset),s=(o=e.value.document).getDescendant(i.key),u=(a=o.getClosestBlock(i.key)).getFurthestChild(s.key),m!==v){var _=c?u:a.getNextSibling(u.key),w=_?a.nodes.skipUntil((function(e){return e.key===_.key})):(0,r.aV)(),k=v.nodes.size;w.forEach((function(t,n){var r=k+n;e.moveNodeByKey(t.key,v.key,r)}))}if(e.isVoid(a)||""!==a.text||a.findDescendant((function(t){return e.isVoid(t)}))){var x=a.getFurthestChild(s.key),E=a.nodes.indexOf(x);m.nodes.forEach((function(t,n){var r=0===i.offset?0:1,o=E+n+r;e.insertNodeByKey(a.key,o,t)}))}else e.removeNodeByKey(a.key),e.insertNodeByKey(l.key,h,m)}else{("before"===Fe(e,t)?n.nodes:n.nodes.reverse()).forEach((function(n){e.insertBlockAtRange(t,n)}))}}}))};var Be=function(e,t,n){var r=function(e,t){return t.size>=e.size&&e.every((function(e,n){return t.get(n).type===e.type}))},i=function(e,t){return e.getAncestors(t).slice(1).push(e.getNode(t)).reverse()},o=function(e){for(var t=e;1===t.nodes.size&&"block"===t.nodes.first().object;)t=t.nodes.first();return t===e?null:t}(e);return o?function(t,n){var i=t.size-n.size;if(i<0)return e;for(var o=0;o<n.size;o++)for(var s=0;s<=i;s++)if(r(n.slice(o),t.slice(s)))return n.get(o);return e}(i(t,n),i(e,o.key)):e};Re.insertInlineAtRange=function(e,t,n){n=se.create(n),e.withoutNormalizing((function(){t=Le(e,t);var r=e.value.document,i=t.start,o=r.getParent(i.path),s=r.assertDescendant(i.path),a=o.nodes.indexOf(s);e.isVoid(o)||(e.splitNodeByPath(i.path,i.offset),e.insertNodeByKey(o.key,a+1,n))}))},Re.insertTextAtRange=function(e,t,n,r){e.withoutNormalizing((function(){t=Le(e,t);var i=e.value.document,o=t.start,s=o.offset,a=i.getParent(o.path);e.isVoid(a)||e.insertTextByPath(o.path,s,n,r)}))},Re.removeMarkAtRange=function(e,t,n){if(!t.isCollapsed){var r=e.value.document.getTextsAtRange(t),i=t.start,o=t.end;e.withoutNormalizing((function(){r.forEach((function(t){var r=t.key,s=0,a=t.text.length;r===i.key&&(s=i.offset),r===o.key&&(a=o.offset),r===i.key&&r===o.key&&(a=o.offset-i.offset),e.removeMarkByKey(r,s,a,n)}))}))}},Re.setBlocksAtRange=function(e,t,n){var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=t.start,s=t.end,a=t.isCollapsed,u=r.hasVoidParent(o.path,e),c=r.getClosestBlock(o.path),l=r.getClosestBlock(s.key),h=!1===a&&0===o.offset&&0===s.offset&&!1===u&&o.key===c.getFirstText().key&&s.key===l.getFirstText().key?i.slice(0,-1):i;e.withoutNormalizing((function(){h.forEach((function(t){e.setNodeByKey(t.key,n)}))}))},Re.setInlinesAtRange=function(e,t,n){var r=e.value.document.getLeafInlinesAtRange(t);e.withoutNormalizing((function(){r.forEach((function(t){e.setNodeByKey(t.key,n)}))}))},Re.splitBlockAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t=Le(e,t),i=r.start,o=r.end,s=e.value,a=s,u=a.document,c=u.assertDescendant(i.path),l=u.getClosestBlock(c.key),h=0;l&&"block"===l.object&&h<n;)c=l,l=u.getClosestBlock(l.key),h++;e.withoutNormalizing((function(){if(e.splitDescendantsByKey(c.key,i.path,i.offset),s=e.value,u=s.document,t.isExpanded){t.isBackward&&(t=t.flip());var n=u.getNextBlock(c.key);t=(t=t.moveAnchorToStartOfNode(n)).setFocus(t.focus.setPath(null)),i.path.equals(o.path)&&(t=t.moveFocusTo(t.anchor.key,o.offset-i.offset)),t=u.resolveRange(t),e.deleteAtRange(t)}}))},Re.splitInlineAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=t=Le(e,t),i=r.start,o=e.value,s=o.document,a=s.assertDescendant(i.path),u=s.getClosestInline(a.key),c=0;u&&"inline"===u.object&&c<n;)a=u,u=s.getClosestInline(u.key),c++;e.splitDescendantsByKey(a.key,i.path,i.offset)},Re.toggleMarkAtRange=function(e,t,n){t.isCollapsed||(n=W.create(n),e.value.document.getActiveMarksAtRange(t).some((function(e){return e.equals(n)}))?e.removeMarkAtRange(t,n):e.addMarkAtRange(t,n))},Re.unwrapBlockAtRange=function(e,t,n){n=le.createProperties(n);var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=i.map((function(e){return r.getClosest(e.key,(function(e){return"block"===e.object&&((null==n.type||e.type===n.type)&&!(null!=n.data&&!e.data.isSuperset(n.data)))}))})).filter((function(e){return e})).toOrderedSet().toList();e.withoutNormalizing((function(){o.forEach((function(t){var n=t.nodes.first(),o=t.nodes.last(),s=e.value.document.getParent(t.key),a=s.nodes.indexOf(t),u=t.nodes.filter((function(e){return i.some((function(t){return e===t||e.hasDescendant(t.key)}))})),c=u.first(),l=u.last();if(n===c&&o===l)t.nodes.forEach((function(t,n){e.moveNodeByKey(t.key,s.key,a+n)})),e.removeNodeByKey(t.key);else if(o===l)t.nodes.skipUntil((function(e){return e===c})).forEach((function(t,n){e.moveNodeByKey(t.key,s.key,a+1+n)}));else if(n===c)t.nodes.takeUntil((function(e){return e===l})).push(l).forEach((function(t,n){e.moveNodeByKey(t.key,s.key,a+n)}));else{var h=c.getFirstText();e.splitDescendantsByKey(t.key,h.key,0),r=e.value.document,u.forEach((function(t,n){if(0===n){var i=t;t=r.getNextBlock(t.key),e.removeNodeByKey(i.key)}e.moveNodeByKey(t.key,s.key,a+1+n)}))}}))}))},Re.unwrapInlineAtRange=function(e,t,n){n=le.createProperties(n);var r=e.value.document,i=r.getTextsAtRange(t).map((function(e){return r.getClosest(e.key,(function(e){return"inline"===e.object&&((null==n.type||e.type===n.type)&&!(null!=n.data&&!e.data.isSuperset(n.data)))}))})).filter((function(e){return e})).toOrderedSet().toList();e.withoutNormalizing((function(){i.forEach((function(t){var n=e.value.document.getParent(t.key),r=n.nodes.indexOf(t);t.nodes.forEach((function(t,i){e.moveNodeByKey(t.key,n.key,r+i)})),e.removeNodeByKey(t.key)}))}))},Re.wrapBlockAtRange=function(e,t,n){n=(n=fe.create(n)).set("nodes",n.nodes.clear());var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=i.first(),s=i.last(),a=void 0,u=void 0,c=void 0;if(1===i.length?(a=r.getParent(o.key),u=i):a=r.getClosest(o.key,(function(e){return!!r.getClosest(s.key,(function(t){return e===t}))})),null==a&&(a=r),null==u){var l=a.nodes.reduce((function(e,t,n){return(t===o||t.hasDescendant(o.key))&&(e[0]=n),(t===s||t.hasDescendant(s.key))&&(e[1]=n),e}),[]);c=l[0],u=a.nodes.slice(l[0],l[1]+1)}null==c&&(c=a.nodes.indexOf(u.first())),e.withoutNormalizing((function(){e.insertNodeByKey(a.key,c,n),u.forEach((function(t,r){e.moveNodeByKey(t.key,n.key,r)}))}))},Re.wrapInlineAtRange=function(e,t,n){var r=e.value.document,i=t.start,o=t.end;if(t.isCollapsed){var s=r.getClosestInline(i.path);if(!s)return;if(!e.isVoid(s))return;return e.wrapInlineByKey(s.key,n)}n=(n=se.create(n)).set("nodes",n.nodes.clear());var a=r.getLeafBlocksAtRange(t),u=r.getClosestBlock(i.path),c=r.getClosestBlock(o.path),l=r.getClosestInline(i.path),h=r.getClosestInline(o.path),f=u.getFurthestChild(i.key),d=c.getFurthestChild(o.key);e.withoutNormalizing((function(){l&&l===h||(e.splitDescendantsByKey(d.key,o.key,o.offset),e.splitDescendantsByKey(f.key,i.key,i.offset)),r=e.value.document,u=r.getDescendant(u.key),c=r.getDescendant(c.key),f=u.getFurthestChild(i.key),d=c.getFurthestChild(o.key);var s=u.nodes.indexOf(f),p=c.nodes.indexOf(d);if(l&&l===h){var m=u.getTextsAtRange(t).map((function(e){return i.key===e.key&&o.key===e.key?e.splitText(i.offset)[1].splitText(o.offset-i.offset)[0].regenerateKey():i.key===e.key?e.splitText(i.offset)[1].regenerateKey():o.key===e.key?e.splitText(o.offset)[0].regenerateKey():e.regenerateKey()}));n=n.set("nodes",m),e.insertInlineAtRange(t,n)}else if(u===c){r=e.value.document,u=r.getClosestBlock(i.key),f=u.getFurthestChild(i.key);var v=r.getNextSibling(f.key),y=u.nodes.indexOf(v),g=i.key===o.key?v:u.getFurthestChild(o.key),b=u.nodes.skipUntil((function(e){return e===v})).takeUntil((function(e){return e===g})).push(g),_=n.regenerateKey();e.insertNodeByKey(u.key,y,_),b.forEach((function(t,n){e.moveNodeByKey(t.key,_.key,n)}))}else{var w=u.nodes.slice(s+1),k=c.nodes.slice(0,p+1),x=n.regenerateKey(),E=n.regenerateKey();e.insertNodeByKey(u.key,s+1,x),e.insertNodeByKey(c.key,p,E),w.forEach((function(t,n){e.moveNodeByKey(t.key,x.key,n)})),k.forEach((function(t,n){e.moveNodeByKey(t.key,E.key,n)})),a.slice(1,-1).forEach((function(t){var r=n.regenerateKey();e.insertNodeByKey(t.key,0,r),t.nodes.forEach((function(t,n){e.moveNodeByKey(t.key,r.key,n)}))}))}}))},Re.wrapTextAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=t.start,o=t.end,s=t.moveToStart(),a=t.moveToEnd();i.path.equals(o.path)&&(a=a.moveForward(n.length)),e.withoutNormalizing((function(){e.insertTextAtRange(s,n),e.insertTextAtRange(a,r)}))};var qe={addMarkByPath:function(e,t,n,r,i){i=W.create(i),e.addMarksByPath(t,n,r,[i])},addMarksByPath:function(e,t,n,r,i){if((i=W.createSet(i)).size){var o=e.value.document.assertNode(t);e.withoutNormalizing((function(){n+r<o.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=U.increment(t),n=0),i.forEach((function(n){e.applyOperation({type:"add_mark",path:t,mark:W.create(n)})}))}))}},replaceMarksByPath:function(e,t,n,r,i){var o=W.createSet(i),s=e.value.document.assertNode(t);s.marks.equals(o)||e.withoutNormalizing((function(){n+r<s.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=U.increment(t),n=0);var i=o.subtract(s.marks);s.marks.subtract(o).forEach((function(n){e.applyOperation({type:"remove_mark",path:t,mark:W.create(n)})})),i.forEach((function(n){e.applyOperation({type:"add_mark",path:t,mark:W.create(n)})}))}))},insertFragmentByPath:function(e,t,n,r){r.nodes.forEach((function(r,i){e.insertNodeByPath(t,n+i,r)}))},insertNodeByPath:function(e,t,n,r){e.applyOperation({type:"insert_node",path:t.concat(n),node:r})},insertTextByPath:function(e,t,n,r,i){var o=e.value,s=o.annotations;o.document.assertNode(t),e.withoutNormalizing((function(){var o=!0,a=!1,u=void 0;try{for(var c,l=s.values()[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var h=c.value,f=h.start,d=h.end;e.isAtomic(h)&&(f.path.equals(t)&&f.offset<n&&(!d.path.equals(t)||d.offset>n)&&e.removeAnnotation(h))}}catch(e){a=!0,u=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw u}}e.applyOperation({type:"insert_text",path:t,offset:n,text:r}),i&&e.replaceMarksByPath(t,n,r.length,i)}))},mergeNodeByPath:function(e,t){var n=e.value.document,r=n.getDescendant(t),i=n.getPreviousSibling(t);if(!i)throw new Error('Unable to merge node with path "'+t+'", because it has no previous sibling.');var o="text"===i.object?i.text.length:i.nodes.size;e.applyOperation({type:"merge_node",path:t,position:o,properties:{type:r.type,data:r.data},target:null})},moveNodeByPath:function(e,t,n,r){if(U.isEqual(t,n))return e;var i=n.concat(r);if(U.isEqual(t,i))return e;e.applyOperation({type:"move_node",path:t,newPath:i})},removeMarkByPath:function(e,t,n,r,i){i=W.create(i),e.removeMarksByPath(t,n,r,[i])},removeMarksByPath:function(e,t,n,r,i){if((i=W.createSet(i)).size){var o=e.value.document.assertNode(t);i.intersect(o.marks).isEmpty()||e.withoutNormalizing((function(){n+r<o.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=U.increment(t),n=0),i.forEach((function(i){e.applyOperation({type:"remove_mark",path:t,offset:n,length:r,mark:i})}))}))}},removeAllMarksByPath:function(e,t){var n=e.state.document.assertNode(t);e.withoutNormalizing((function(){if("text"!==n.object){var r=!0,i=!1,o=void 0;try{for(var s,a=n.texts()[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var u=s.value,c=P(u,2),l=c[0],h=c[1],f=t.concat(h);e.removeMarksByPath(f,0,l.text.length,l.marks)}}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}}else e.removeMarksByPath(t,0,n.text.length,n.marks)}))},removeNodeByPath:function(e,t){var n=e.value.document.assertNode(t);e.applyOperation({type:"remove_node",path:t,node:n})},removeTextByPath:function(e,t,n,r){var i=e.value,o=i.document,s=i.annotations,a=o.assertNode(t).text.slice(n,n+r);e.withoutNormalizing((function(){var r=!0,i=!1,o=void 0;try{for(var u,c=s.values()[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var l=u.value,h=l.start,f=l.end;e.isAtomic(l)&&(h.path.equals(t)&&h.offset<n&&(!f.path.equals(t)||f.offset>n)&&e.removeAnnotation(l))}}catch(e){i=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}e.applyOperation({type:"remove_text",path:t,offset:n,text:a})}))},replaceNodeByPath:function(e,t,n){n=le.create(n);var r=t.last(),i=U.lift(t);e.withoutNormalizing((function(){e.removeNodeByPath(t),e.insertNodeByPath(i,r,n)}))},replaceTextByPath:function(e,t,n,r,i,o){e.withoutNormalizing((function(){e.removeTextByPath(t,n,r),e.insertTextByPath(t,n,i,o)}))},setMarkByPath:function(e,t,n,r,i,o){i=W.create(i),o=W.createProperties(o);var s=e.value.document.assertNode(t);e.withoutNormalizing((function(){n+r<s.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=U.increment(t),n=0),e.applyOperation({type:"set_mark",path:t,properties:i,newProperties:o})}))},setNodeByPath:function(e,t,n){var r=e.value.document.assertNode(t);n=le.createProperties(n);var i=d()(r,Object.keys(n));e.applyOperation({type:"set_node",path:t,properties:i,newProperties:n})},setTextByPath:function(e,t,n,r){var i=e.value.document.assertNode(t).text.length;e.replaceTextByPath(t,0,i,n,r)},splitNodeByPath:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.target,o=void 0===i?null:i,s=e.value,a=s.document,u=a.getDescendant(t);e.applyOperation({type:"split_node",path:t,position:n,target:o,properties:{type:u.type,data:u.data}})},splitDescendantsByPath:function(e,t,n,r){if(t.equals(n))e.splitNodeByPath(n,r);else{var i=e.value.document,o=r,s=n;e.withoutNormalizing((function(){e.splitNodeByKey(n,r);var a=!0,u=!1,c=void 0;try{for(var l,h=i.ancestors(n)[Symbol.iterator]();!(a=(l=h.next()).done);a=!0){var f=l.value,d=P(f,2)[1],p=o;if(o=s.last()+1,s=d,e.splitNodeByPath(d,o,{target:p}),d.equals(t))break}}catch(e){u=!0,c=e}finally{try{!a&&h.return&&h.return()}finally{if(u)throw c}}}))}},unwrapInlineByPath:function(e,t,n){var r=e.value,i=r.document,o=r.selection,s=i.assertNode(t),a=s.getFirstText(),u=s.getLastText(),c=o.moveToRangeOfNode(a,u);e.unwrapInlineAtRange(c,n)},unwrapBlockByPath:function(e,t,n){var r=e.value,i=r.document,o=r.selection,s=i.assertNode(t),a=s.getFirstText(),u=s.getLastText(),c=o.moveToRangeOfNode(a,u);e.unwrapBlockAtRange(c,n)},unwrapNodeByPath:function(e,t){var n=e.value.document;n.assertNode(t);var r=U.lift(t),i=n.assertNode(r),o=t.last(),s=r.last(),a=U.lift(r),u=0===o,c=o===i.nodes.size-1;e.withoutNormalizing((function(){if(1===i.nodes.size)e.moveNodeByPath(t,a,s+1),e.removeNodeByPath(r);else if(u)e.moveNodeByPath(t,a,s);else if(c)e.moveNodeByPath(t,a,s+1);else{var n=U.increment(t,1,r.size-1);n=n.set(n.size-1,0),e.splitNodeByPath(r,o),e.moveNodeByPath(n,a,s+1)}}))},unwrapChildrenByPath:function(e,t){t=U.create(t);var n=e.value.document.assertNode(t),r=U.lift(t),i=t.last(),o=n.nodes;e.withoutNormalizing((function(){o.reverse().forEach((function(n,s){var a=o.size-s-1,u=t.push(a);e.moveNodeByPath(u,r,i+1)})),e.removeNodeByPath(t)}))},wrapBlockByPath:function(e,t,n){n=(n=fe.create(n)).set("nodes",n.nodes.clear());var r=U.lift(t),i=t.last(),o=U.increment(t);e.withoutNormalizing((function(){e.insertNodeByPath(r,i,n),e.moveNodeByPath(o,t,0)}))},wrapInlineByPath:function(e,t,n){n=(n=se.create(n)).set("nodes",n.nodes.clear());var r=U.lift(t),i=t.last(),o=U.increment(t);e.withoutNormalizing((function(){e.insertNodeByPath(r,i,n),e.moveNodeByPath(o,t,0)}))},wrapNodeByPath:function(e,t,n){"block"===(n=le.create(n)).object?e.wrapBlockByPath(t,n):"inline"===n.object&&e.wrapInlineByPath(t,n)}},Ue=function(e){qe[e+"ByKey"]=function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=t.value,a=s.document,u=a.assertPath(n);t[e+"ByPath"].apply(t,[u].concat(i))}},ze=!0,Ve=!1,He=void 0;try{for(var Ke,We=["addMark","insertFragment","insertNode","insertText","mergeNode","removeAllMarks","removeMark","removeNode","removeText","replaceMarks","replaceNode","replaceText","setMark","setNode","setText","splitNode","unwrapBlock","unwrapChildren","unwrapInline","unwrapNode","wrapBlock","wrapInline","wrapNode"][Symbol.iterator]();!(ze=(Ke=We.next()).done);ze=!0){Ue(Ke.value)}}catch(e){Ve=!0,He=e}finally{try{!ze&&We.return&&We.return()}finally{if(Ve)throw He}}qe.moveNodeByKey=function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var s=e.value,a=s.document,u=a.assertPath(t),c=a.assertPath(n);e.moveNodeByPath.apply(e,[u,c].concat(i))},qe.splitDescendantsByKey=function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var s=e.value,a=s.document,u=a.assertPath(t),c=a.assertPath(n);e.splitDescendantsByPath.apply(e,[u,c].concat(i))};var $e={};$e.save=function(e,t){var n=e.operations,i=e.value.data,o=e.tmp,s=o.save,a=o.merge;if(!1!==s&&function(e){if("set_selection"===e.type){var t=e.newProperties,n=t.isFocused,r=t.anchor,i=t.focus;if(void 0!==n&&!r&&!i)return!1}return!0}(t)){var u,c,l=i.get("undos")||(0,r.aV)(),h=l.last(),f=h&&h.last();if(null==a&&(0!==n.size?a=!0:(u=t,a=!!(c=f)&&("set_selection"===u.type&&"set_selection"===c.type||"insert_text"===u.type&&"insert_text"===c.type&&u.offset===c.offset+c.text.length&&u.path.equals(c.path)||"remove_text"===u.type&&"remove_text"===c.type&&u.offset+u.text.length===c.offset&&u.path.equals(c.path)))),a&&h){var d=h.push(t);l=(l=l.pop()).push(d)}else{var p=(0,r.aV)([t]);l=l.push(p)}l.size>100&&(l=l.takeLast(100)),e.withoutSaving((function(){var t=(0,r.aV)(),n=i.set("undos",l).set("redos",t);e.setData(n)}))}},$e.redo=function(e){var t=e.value.data,n=t.get("redos")||(0,r.aV)(),i=t.get("undos")||(0,r.aV)(),o=n.last();o&&e.withoutSaving((function(){e.withoutNormalizing((function(){o.forEach((function(t){var n=t,r=n.type,i=n.newProperties;"set_selection"===r&&(t=t.set("newProperties",m()(i,"isFocused"))),e.applyOperation(t)})),n=n.pop(),i=i.push(o);var r=t.set("undos",i).set("redos",n);e.setData(r)}))}))},$e.undo=function(e){var t=e.value.data,n=t.get("redos")||(0,r.aV)(),i=t.get("undos")||(0,r.aV)(),o=i.last();o&&e.withoutSaving((function(){e.withoutNormalizing((function(){o.slice().reverse().map((function(e){return e.invert()})).forEach((function(t){var n=t,r=n.type,i=n.newProperties;"set_selection"===r&&(t=t.set("newProperties",m()(i,"isFocused"))),e.applyOperation(t)})),n=n.push(o),i=i.pop();var r=t.set("undos",i).set("redos",n);e.setData(r)}))}))},$e.withoutMerging=function(e,t){var n=e.tmp.merge;e.tmp.merge=!1,t(e),e.tmp.merge=n},$e.withoutSaving=function(e,t){var n=e.tmp.save;e.tmp.save=!1,t(e),e.tmp.save=n};var Ge={};function Ye(e,t){for(var n,r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=(n=e.value.selection)[t].apply(n,i);e.select(s)}function Je(e,t,n,r){var i=t.slice(0,1).toUpperCase()+t.slice(1),o=n.slice(0,1).toUpperCase()+n.slice(1),s=r.slice(0,1).toUpperCase()+r.slice(1),a="move"+i+"To"+o+"OfNode",u="text"===r?"getNode":"getClosest"+s,c=e.value,l=c.document,h=c.selection[t],f=l[u](h.key);f&&e[a](f)}function Ze(e,t,n,r,i){var o=t.slice(0,1).toUpperCase()+t.slice(1),s=n.slice(0,1).toUpperCase()+n.slice(1),a=r.slice(0,1).toUpperCase()+r.slice(1),u=i.slice(0,1).toUpperCase()+i.slice(1),c="move"+o+"To"+s+"OfNode",l="text"===i?"getNode":"getClosest"+u,h="get"+a+u,f=e.value,d=f.document,p=f.selection[t],m=d[l](p.key);if(m){var v=d[h](m.key);v&&e[c](v)}}function Xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return Qe(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),i=e.value,o=i.document,s=i.selection,a=s[t],u=o.hasVoidParent(a.path,e);if(!u&&a.offset-n>=0){var c=s["move"+r+"Backward"](n);e.select(c)}else{var l=o.getPreviousText(a.path);if(l){var h=o.getClosestBlock(a.path),f=h.hasNode(l.key),d=l&&o.hasVoidParent(l.key,e);if(e["move"+r+"ToEndOfNode"](l),!u&&!d&&f){var p=e.value.selection["move"+r+"Backward"](n);e.select(p)}}}}}function Qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return Xe(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),i=e.value,o=i.document,s=i.selection,a=s[t],u=o.getNode(a.path),c=o.hasVoidParent(a.path,e);if(!c&&a.offset+n<=u.text.length){var l=s["move"+r+"Forward"](n);e.select(l)}else{var h=o.getNextText(a.path);if(h){var f=o.getClosestBlock(a.path),d=f.hasNode(h.key),p=o.hasVoidParent(h.key,e);if(e["move"+r+"ToStartOfNode"](h),!c&&!p&&d){var m=e.value.selection["move"+r+"Forward"](n);e.select(m)}}}}}function et(e,t){var n=e.value,r=n.document,i=n.selection[t],o=r.getClosestBlock(i.key),s=o.getOffset(i.key)+i.offset,a=o.text,u=je.getWordOffsetBackward(a,s);e.command(Xe,t,u>0?u:1)}function tt(e,t){var n=e.value,r=n.document,i=n.selection[t],o=r.getClosestBlock(i.key),s=o.getOffset(i.key)+i.offset,a=o.text,u=je.getWordOffsetForward(a,s);e.command(Qe,t,u>0?u:1)}Ge.blur=function(e){e.select({isFocused:!1})},Ge.deselect=function(e){var t=J.create();e.select(t)},Ge.focus=function(e){e.select({isFocused:!0})},Ge.flip=function(e){e.command(Ye,"flip")},Ge.moveAnchorBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"anchor"].concat(n))},Ge.moveAnchorWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"anchor"].concat(n))},Ge.moveAnchorForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Qe,"anchor"].concat(n))},Ge.moveAnchorWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[tt,"anchor"].concat(n))},Ge.moveAnchorTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveAnchorTo"].concat(n))},Ge.moveAnchorToEndOfBlock=function(e){e.command(Je,"anchor","end","block")},Ge.moveAnchorToEndOfInline=function(e){e.command(Je,"anchor","end","inline")},Ge.moveAnchorToEndOfDocument=function(e){e.moveAnchorToEndOfNode(e.value.document).moveToAnchor()},Ge.moveAnchorToEndOfNextBlock=function(e){e.command(Ze,"anchor","end","next","block")},Ge.moveAnchorToEndOfNextInline=function(e){e.command(Ze,"anchor","end","next","inline")},Ge.moveAnchorToEndOfNextText=function(e){e.command(Ze,"anchor","end","next","text")},Ge.moveAnchorToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveAnchorToEndOfNode"].concat(n))},Ge.moveAnchorToEndOfPreviousBlock=function(e){e.command(Ze,"anchor","end","previous","block")},Ge.moveAnchorToEndOfPreviousInline=function(e){e.command(Ze,"anchor","end","previous","inline")},Ge.moveAnchorToEndOfPreviousText=function(e){e.command(Ze,"anchor","end","previous","text")},Ge.moveAnchorToEndOfText=function(e){e.command(Je,"anchor","end","text")},Ge.moveAnchorToStartOfBlock=function(e){e.command(Je,"anchor","start","block")},Ge.moveAnchorToStartOfDocument=function(e){e.moveAnchorToStartOfNode(e.value.document).moveToAnchor()},Ge.moveAnchorToStartOfInline=function(e){e.command(Je,"anchor","start","inline")},Ge.moveAnchorToStartOfNextBlock=function(e){e.command(Ze,"anchor","start","next","block")},Ge.moveAnchorToStartOfNextInline=function(e){e.command(Ze,"anchor","start","next","inline")},Ge.moveAnchorToStartOfNextText=function(e){e.command(Ze,"anchor","start","next","text")},Ge.moveAnchorToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveAnchorToStartOfNode"].concat(n))},Ge.moveAnchorToStartOfPreviousBlock=function(e){e.command(Ze,"anchor","start","previous","block")},Ge.moveAnchorToStartOfPreviousInline=function(e){e.command(Ze,"anchor","start","previous","inline")},Ge.moveAnchorToStartOfPreviousText=function(e){e.command(Ze,"anchor","start","previous","text")},Ge.moveAnchorToStartOfText=function(e){e.command(Je,"anchor","start","text")},Ge.moveBackward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0!==t){var n=e.value,r=n.document,i=n.selection,o=i.start,s=r.getClosestBlock(o.key),a=s.getOffset(o.key),u=a+o.offset,c=s.text,l=je.getCharOffsetBackward(c,u,t);e.moveAnchorBackward(l).moveFocusBackward(l)}},Ge.moveWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.moveFocusWordBackward.apply(e,n).moveToFocus()},Ge.moveEndBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"end"].concat(n))},Ge.moveEndWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"end"].concat(n))},Ge.moveEndForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Qe,"end"].concat(n))},Ge.moveEndWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[tt,"end"].concat(n))},Ge.moveEndTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveEndTo"].concat(n))},Ge.moveEndToEndOfBlock=function(e){e.command(Je,"end","end","block")},Ge.moveEndToEndOfDocument=function(e){e.moveEndToEndOfNode(e.value.document).moveToEnd()},Ge.moveEndToEndOfInline=function(e){e.command(Je,"end","end","inline")},Ge.moveEndToEndOfNextBlock=function(e){e.command(Ze,"end","end","next","block")},Ge.moveEndToEndOfNextInline=function(e){e.command(Ze,"end","end","next","inline")},Ge.moveEndToEndOfNextText=function(e){e.command(Ze,"end","end","next","text")},Ge.moveEndToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveEndToEndOfNode"].concat(n))},Ge.moveEndToEndOfPreviousBlock=function(e){e.command(Ze,"end","end","previous","block")},Ge.moveEndToEndOfPreviousInline=function(e){e.command(Ze,"end","end","previous","inline")},Ge.moveEndToEndOfPreviousText=function(e){e.command(Ze,"end","end","previous","text")},Ge.moveEndToEndOfText=function(e){e.command(Je,"end","end","text")},Ge.moveEndToStartOfBlock=function(e){e.command(Je,"end","start","block")},Ge.moveEndToStartOfDocument=function(e){e.moveEndToStartOfNode(e.value.document).moveToEnd()},Ge.moveEndToStartOfInline=function(e){e.command(Je,"end","start","inline")},Ge.moveEndToStartOfNextBlock=function(e){e.command(Ze,"end","start","next","block")},Ge.moveEndToStartOfNextInline=function(e){e.command(Ze,"end","start","next","inline")},Ge.moveEndToStartOfNextText=function(e){e.command(Ze,"end","start","next","text")},Ge.moveEndToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveEndToStartOfNode"].concat(n))},Ge.moveEndToStartOfPreviousBlock=function(e){e.command(Ze,"end","start","previous","block")},Ge.moveEndToStartOfPreviousInline=function(e){e.command(Ze,"end","start","previous","inline")},Ge.moveEndToStartOfPreviousText=function(e){e.command(Ze,"end","start","previous","text")},Ge.moveEndToStartOfText=function(e){e.command(Je,"end","start","text")},Ge.moveFocusBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"focus"].concat(n))},Ge.moveFocusWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"focus"].concat(n))},Ge.moveFocusForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Qe,"focus"].concat(n))},Ge.moveFocusWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[tt,"focus"].concat(n))},Ge.moveFocusTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveFocusTo"].concat(n))},Ge.moveFocusToEndOfBlock=function(e){e.command(Je,"focus","end","block")},Ge.moveFocusToEndOfDocument=function(e){e.moveFocusToEndOfNode(e.value.document).moveToFocus()},Ge.moveFocusToEndOfInline=function(e){e.command(Je,"focus","end","inline")},Ge.moveFocusToEndOfNextBlock=function(e){e.command(Ze,"focus","end","next","block")},Ge.moveFocusToEndOfNextInline=function(e){e.command(Ze,"focus","end","next","inline")},Ge.moveFocusToEndOfNextText=function(e){e.command(Ze,"focus","end","next","text")},Ge.moveFocusToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveFocusToEndOfNode"].concat(n))},Ge.moveFocusToEndOfPreviousBlock=function(e){e.command(Ze,"focus","end","previous","block")},Ge.moveFocusToEndOfPreviousInline=function(e){e.command(Ze,"focus","end","previous","inline")},Ge.moveFocusToEndOfPreviousText=function(e){e.command(Ze,"focus","end","previous","text")},Ge.moveFocusToEndOfText=function(e){e.command(Je,"focus","end","text")},Ge.moveFocusToStartOfBlock=function(e){e.command(Je,"focus","start","block")},Ge.moveFocusToStartOfDocument=function(e){e.moveFocusToStartOfNode(e.value.document).moveToFocus()},Ge.moveFocusToStartOfInline=function(e){e.command(Je,"focus","start","inline")},Ge.moveFocusToStartOfNextBlock=function(e){e.command(Ze,"focus","start","next","block")},Ge.moveFocusToStartOfNextInline=function(e){e.command(Ze,"focus","start","next","inline")},Ge.moveFocusToStartOfNextText=function(e){e.command(Ze,"focus","start","next","text")},Ge.moveFocusToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveFocusToStartOfNode"].concat(n))},Ge.moveFocusToStartOfPreviousBlock=function(e){e.command(Ze,"focus","start","previous","block")},Ge.moveFocusToStartOfPreviousInline=function(e){e.command(Ze,"focus","start","previous","inline")},Ge.moveFocusToStartOfPreviousText=function(e){e.command(Ze,"focus","start","previous","text")},Ge.moveFocusToStartOfText=function(e){e.command(Je,"focus","start","text")},Ge.moveForward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0!==t){var n=e.value,r=n.document,i=n.selection,o=i.start,s=r.getClosestBlock(o.path),a=s.getOffset(o.key),u=a+o.offset,c=s.text,l=je.getCharOffsetForward(c,u,t);e.moveAnchorForward(l).moveFocusForward(l)}},Ge.moveWordForward=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=e.moveFocusWordForward.apply(e,r)).moveToFocus.apply(t,r)},Ge.moveStartBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"start"].concat(n))},Ge.moveStartWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"start"].concat(n))},Ge.moveStartForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Qe,"start"].concat(n))},Ge.moveStartWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[tt,"start"].concat(n))},Ge.moveStartTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveStartTo"].concat(n))},Ge.moveStartToEndOfBlock=function(e){e.command(Je,"start","end","block")},Ge.moveStartToEndOfDocument=function(e){e.moveStartToEndOfNode(e.value.document).moveToStart()},Ge.moveStartToEndOfInline=function(e){e.command(Je,"start","end","inline")},Ge.moveStartToEndOfNextBlock=function(e){e.command(Ze,"start","end","next","block")},Ge.moveStartToEndOfNextInline=function(e){e.command(Ze,"start","end","next","inline")},Ge.moveStartToEndOfNextText=function(e){e.command(Ze,"start","end","next","text")},Ge.moveStartToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveStartToEndOfNode"].concat(n))},Ge.moveStartToEndOfPreviousBlock=function(e){e.command(Ze,"start","end","previous","block")},Ge.moveStartToEndOfPreviousInline=function(e){e.command(Ze,"start","end","previous","inline")},Ge.moveStartToEndOfPreviousText=function(e){e.command(Ze,"start","end","previous","text")},Ge.moveStartToEndOfText=function(e){e.command(Je,"start","end","text")},Ge.moveStartToStartOfBlock=function(e){e.command(Je,"start","start","block")},Ge.moveStartToStartOfDocument=function(e){e.moveStartToStartOfNode(e.value.document).moveToStart()},Ge.moveStartToStartOfInline=function(e){e.command(Je,"start","start","inline")},Ge.moveStartToStartOfNextBlock=function(e){e.command(Ze,"start","start","next","block")},Ge.moveStartToStartOfNextInline=function(e){e.command(Ze,"start","start","next","inline")},Ge.moveStartToStartOfNextText=function(e){e.command(Ze,"start","start","next","text")},Ge.moveStartToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveStartToStartOfNode"].concat(n))},Ge.moveStartToStartOfPreviousBlock=function(e){e.command(Ze,"start","start","previous","block")},Ge.moveStartToStartOfPreviousInline=function(e){e.command(Ze,"start","start","previous","inline")},Ge.moveStartToStartOfPreviousText=function(e){e.command(Ze,"start","start","previous","text")},Ge.moveStartToStartOfText=function(e){e.command(Je,"start","start","text")},Ge.moveTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveTo"].concat(n))},Ge.moveToAnchor=function(e){e.command(Ye,"moveToAnchor")},Ge.moveToEnd=function(e){e.command(Ye,"moveToEnd")},Ge.moveToEndOfBlock=function(e){e.moveEndToEndOfBlock().moveToEnd()},Ge.moveToEndOfDocument=function(e){e.moveEndToEndOfNode(e.value.document).moveToEnd()},Ge.moveToEndOfInline=function(e){e.moveEndToEndOfInline().moveToEnd()},Ge.moveToEndOfNextBlock=function(e){e.moveEndToEndOfNextBlock().moveToEnd()},Ge.moveToEndOfNextInline=function(e){e.moveEndToEndOfNextInline().moveToEnd()},Ge.moveToEndOfNextText=function(e){e.moveEndToEndOfNextText().moveToEnd()},Ge.moveToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveToEndOfNode"].concat(n))},Ge.moveToEndOfPreviousBlock=function(e){e.moveStartToEndOfPreviousBlock().moveToStart()},Ge.moveToEndOfPreviousInline=function(e){e.moveStartToEndOfPreviousInline().moveToStart()},Ge.moveToEndOfPreviousText=function(e){e.moveStartToEndOfPreviousText().moveToStart()},Ge.moveToEndOfText=function(e){e.moveEndToEndOfText().moveToEnd()},Ge.moveToFocus=function(e){e.command(Ye,"moveToFocus")},Ge.moveToRangeOfDocument=function(e){e.moveToRangeOfNode(e.value.document)},Ge.moveToRangeOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveToRangeOfNode"].concat(n))},Ge.moveToStart=function(e){e.command(Ye,"moveToStart")},Ge.moveToStartOfBlock=function(e){e.moveStartToStartOfBlock().moveToStart()},Ge.moveToStartOfDocument=function(e){e.moveStartToStartOfNode(e.value.document).moveToStart()},Ge.moveToStartOfInline=function(e){e.moveStartToStartOfInline().moveToStart()},Ge.moveToStartOfNextBlock=function(e){e.moveEndToStartOfNextBlock().moveToEnd()},Ge.moveToStartOfNextInline=function(e){e.moveEndToStartOfNextInline().moveToEnd()},Ge.moveToStartOfNextText=function(e){e.moveEndToStartOfNextText().moveToEnd()},Ge.moveToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"moveToStartOfNode"].concat(n))},Ge.moveToStartOfPreviousBlock=function(e){e.moveStartToStartOfPreviousBlock().moveToStart()},Ge.moveToStartOfPreviousInline=function(e){e.moveStartToStartOfPreviousInline().moveToStart()},Ge.moveToStartOfPreviousText=function(e){e.moveStartToStartOfPreviousText().moveToStart()},Ge.moveToStartOfText=function(e){e.moveStartToStartOfText().moveToStart()},Ge.select=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=J.createProperties(t);var i=n.snapshot,o=void 0!==i&&i,s=e.value,a=s.document,u=s.selection,c={},l=u.setProperties(t);for(var h in l=a.resolveSelection(l),t=d()(l,Object.keys(t)))!0!==o&&(0,r.is)(t[h],u[h])||(c[h]=t[h]);if(u.marks&&!c.marks&&(c.anchor||c.focus)&&(c.marks=null),0!==Object.keys(c).length){var f=d()(u.toJSON(),Object.keys(c));e.applyOperation({type:"set_selection",value:s,properties:f,newProperties:c},o?{skip:!1,merge:!1}:{})}},Ge.setAnchor=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"setAnchor"].concat(n))},Ge.setEnd=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"setEnd"].concat(n))},Ge.setFocus=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"setFocus"].concat(n))},Ge.setStart=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ye,"setStart"].concat(n))},Ge.snapshotSelection=function(e){e.withoutMerging((function(){e.select(e.value.selection,{snapshot:!0})}))};var nt={};function rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(t,n){for(var r in e)t.registerQuery(r);return n()}function n(t,n,r){var i=t.type,o=t.args,s=e[i];if(!s)return r();var a=s.apply(void 0,[n].concat(N(o)));return void 0===a?r():a}return{onConstruct:t,onQuery:n}}nt.setData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.value,r=pe.createProperties({data:t}),i=d()(n,Object.keys(r));e.applyOperation({type:"set_value",properties:i,newProperties:r})},nt.addAnnotation=function(e,t){t=ne.create(t),e.applyOperation({type:"add_annotation",annotation:t})},nt.removeAnnotation=function(e,t){t=ne.create(t),e.applyOperation({type:"remove_annotation",annotation:t})},nt.setAnnotation=function(e,t,n){t=ne.create(t),n=ne.createProperties(n),e.applyOperation({type:"set_annotation",properties:t,newProperties:n})},nt.setAnnotations=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.value,r=pe.createProperties({annotations:t}),i=d()(n,Object.keys(r));e.applyOperation({type:"set_value",properties:i,newProperties:r})};var it=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));for(var i in r.code=e,n)r[i]=n[i];return Error.captureStackTrace?Error.captureStackTrace(r,r.constructor):r.stack=(new Error).stack,r}return T(t,e),t}(Error);function ot(e){var t=e.rules,n=e.document,r=e.blocks,i=e.inlines,o=e.marks,s=e.annotations,a=e.decorations,u=[];if(t&&(u=u.concat(t)),n&&u.push(A({match:[{object:"document"}]},n)),r)for(var c in r)u.push(A({match:[{object:"block",type:c}]},r[c]));if(i)for(var l in i)u.push(A({match:[{object:"inline",type:l}]},i[l]));if(o)for(var h in o)u.push(A({match:[{object:"mark",type:h}]},o[h]));if(s)for(var f in s)u.push(A({match:[{object:"annotation",type:f}]},s[f]));if(a)for(var d in a)u.push(A({match:[{object:"decoration",type:d}]},a[d]));function p(e,t,n){var r=u.filter((function(t){return st(e,t.match)})),i=at(e,r,u,{every:!0});return i?new it(i.code,i):n()}return[{normalizeNode:function(e,t,n){var r=p(e,t,(function(){}));return r?function(){var e=r.rule,n=t.operations.size;e.normalize&&e.normalize(t,r),t.operations.size===n&&function(e,t){var n=t.code,r=t.node,i=t.child,o=t.next,s=t.previous,a=t.key,u=t.mark;switch(n){case"child_max_invalid":case"child_object_invalid":case"child_type_invalid":case"child_unknown":case"first_child_object_invalid":case"first_child_type_invalid":case"last_child_object_invalid":case"last_child_type_invalid":return"text"===i.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(i.key);case"previous_sibling_object_invalid":case"previous_sibling_type_invalid":return"text"===s.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(s.key);case"next_sibling_object_invalid":case"next_sibling_type_invalid":return"text"===o.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(o.key);case"child_min_invalid":case"node_text_invalid":case"parent_object_invalid":case"parent_type_invalid":return"document"===r.object?r.nodes.forEach((function(t){return e.removeNodeByKey(t.key)})):e.removeNodeByKey(r.key);case"node_data_invalid":return void 0===r.data.get(a)&&"document"!==r.object?e.removeNodeByKey(r.key):e.setNodeByKey(r.key,{data:r.data.delete(a)});case"node_mark_invalid":return r.getTexts().forEach((function(t){return e.removeMarkByKey(t.key,0,t.text.length,u)}));default:e.removeNodeByKey(r.key)}}(t,r)}:n()},validateNode:p},rt({isAtomic:function(e,t){var n=u.find((function(e){return"isAtomic"in e&&st(t,e.match)}));return n&&n.isAtomic},isVoid:function(e,t){var n=u.find((function(e){return"isVoid"in e&&st(t,e.match)}));return n&&n.isVoid}})]}function st(e,t){return!at(e,t)}function at(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.every,o=void 0!==i&&i,s=r.match,a=void 0===s?null:s;if("function"==typeof t){var u=t(e,a);return u?null:bt("node_invalid",{rule:t,node:e})}if(Array.isArray(t)){var c=t.length?t:[{}],l=void 0,h=!0,f=!1,d=void 0;try{for(var p,m=c[Symbol.iterator]();!(h=(p=m.next()).done);h=!0){var v=p.value,y=at(e,v,n);if(l=l||y,o&&y)return y;if(!o&&!y)return}}catch(e){f=!0,d=e}finally{try{!h&&m.return&&m.return()}finally{if(f)throw d}}return l}var g=ut(e,t)||ct(e,t)||lt(e,t)||ht(e,t)||ft(e,t)||dt(e,t)||pt(e,t)||mt(e,t,n);return g}function ut(e,t){if(null!=t.object&&t.object!==e.object&&("function"!=typeof t.object||!t.object(e.object)))return bt("node_object_invalid",{rule:t,node:e})}function ct(e,t){if(null!=t.type&&t.type!==e.type&&("function"!=typeof t.type||!t.type(e.type)))return bt("node_type_invalid",{rule:t,node:e})}function lt(e,t){if(null!=t.data&&null!=e.data){if("function"==typeof t.data){if(t.data(e.data))return;return bt("node_data_invalid",{rule:t,node:e})}for(var n in t.data){var r=t.data[n],i=e.data&&e.data.get(n);if(!("function"==typeof r?r(i):r===i))return bt("node_data_invalid",{rule:t,node:e,key:n,value:i})}}}function ht(e,t){if(null!=t.marks){var n="text"===e.object?e.marks.toArray():e.getMarks().toArray(),r=function(n){return t.marks.some((function(e){return"function"==typeof e.type?e.type(n.type):e.type===n.type}))?"continue":{v:bt("node_mark_invalid",{rule:t,node:e,mark:n})}},i=!0,o=!1,s=void 0;try{for(var a,u=n[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=r(a.value);if("continue"!==c&&"object"===(void 0===c?"undefined":k(c)))return c.v}}catch(e){o=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw s}}}}function ft(e,t){if(null!=t.text){var n=e.text;if(!("function"==typeof t.text?t.text(n):t.text.test(n)))return bt("node_text_invalid",{rule:t,node:e,text:n})}}function dt(e,t){if(null!=t.first){var n=e.nodes.first();if(n){var r=at(n,t.first);if(r)return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","first_child_"),r}}}function pt(e,t){if(null!=t.last){var n=e.nodes.last();if(n){var r=at(n,t.last);if(r)return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","last_child_"),r}}}function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null!=e.nodes){var r=e.nodes,i=null!=t.nodes?t.nodes.slice():[],o=0,s=0,a=null,u=-1,c=null,l=null,h=null,f=null,d=null;for(null!=t.nodes&&y();g();){var p=vt(e,h,n)||yt(e,h,f,u,n)||gt(e,h,d,u,n);if(p)return p;if(null!=t.nodes){if(!c)return bt("child_unknown",{rule:t,node:e,child:h,index:u});if(c.match){var m=at(h,c.match);if(m){if(null!=l&&o-1>l)return b(),bt("child_max_invalid",{rule:t,node:e,index:u,child:r.get(u),count:o,limit:l});var v=a;if(y()){if(s-1>=v){u-=1;continue}return null==at(h,c.match)?(b(),bt("child_min_invalid",{rule:t,node:e,index:u,count:s-1,limit:v})):(m.rule=t,m.node=e,m.child=h,m.index=u,m.code=m.code.replace("node_","child_"),m)}return null!=l&&o>l?bt("child_unknown",{rule:t,node:e,child:h,index:u}):(m.rule=t,m.node=e,m.child=h,m.index=u,m.code=m.code.replace("node_","child_"),m)}}}}if(null!=l&&o>l)return bt("child_max_invalid",{rule:t,node:e,index:u-1,count:o,child:r.get(u-1),limit:l});if(null!=t.nodes)do{if(o<a)return bt("child_min_invalid",{rule:t,node:e,index:u,count:o,limit:a})}while(y())}function y(){return 0!==i.length&&(c=i.shift(),s=o,o=0,a=c.min||null,l=c.max||null,!0)}function g(){return f=(u+=1)?r.get(u-1):null,h=r.get(u),d=r.get(u+1),!!h&&(s=o,o+=1,!0)}function b(){u>0&&(u-=1,o=s)}}function vt(e,t,n){var r=!0,i=!1,o=void 0;try{for(var s,a=n[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var u=s.value;if(null!=u.parent&&st(t,u.match)){var c=at(e,u.parent);if(c)return c.rule=u,c.parent=e,c.node=t,c.code=c.code.replace("node_","parent_"),c}}}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}}function yt(e,t,n,r,i){if(n){var o=!0,s=!1,a=void 0;try{for(var u,c=i[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;if(null!=l.previous&&st(t,l.match)){var h=at(n,l.previous);if(h)return h.rule=l,h.node=e,h.child=t,h.index=r,h.previous=n,h.code=h.code.replace("node_","previous_sibling_"),h}}}catch(e){s=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw a}}}}function gt(e,t,n,r,i){if(n){var o=!0,s=!1,a=void 0;try{for(var u,c=i[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;if(null!=l.next&&st(t,l.match)){var h=at(n,l.next,[],{match:t});if(h)return h.rule=l,h.node=e,h.child=t,h.index=r,h.next=n,h.code=h.code.replace("node_","next_sibling_"),h}}}catch(e){s=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw a}}}}function bt(e,t){return A({code:e},t)}function _t(e){e.value.selection.isExpanded&&e.delete()}var wt={};function kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=void 0===t?[]:t,r=Ee(A({},Re,qe,$e,Ge,nt,wt)),i=rt({isAtomic:function(){return!1},isVoid:function(){return!1}}),o=ot({rules:[{match:{object:"document"},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:{object:"block"}},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:[{object:"inline"},{object:"text"}]},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:{object:"inline"},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:[{object:"block"},{object:"inline"}],nodes:[{min:1}],normalize:function(e,t){var n=t.code,r=t.node;"child_min_invalid"===n&&r.nodes.isEmpty()&&e.insertNodeByKey(r.key,0,ce.create())}},{match:{object:"block"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,i=ce.create(),o=void 0;if("first_child_object_invalid"===n)o=0;else{if("last_child_object_invalid"!==n)return;o=r.nodes.size}e.insertNodeByKey(r.key,o,i)}},{match:{object:"inline"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],previous:[{object:"block"},{object:"text"}],next:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,i=t.index,o=ce.create(),s=void 0;if("first_child_object_invalid"===n)s=0;else if("last_child_object_invalid"===n)s=r.nodes.size;else if("previous_sibling_object_invalid"===n)s=i;else{if("next_sibling_object_invalid"!==n)return;s=i+1}e.insertNodeByKey(r.key,s,o)}},{match:{object:"text"},next:function(e,t){return"text"!==e.object||!t.marks.equals(e.marks)},normalize:function(e,t){var n=t.code,r=t.next;"next_sibling_invalid"===n&&e.mergeNodeByKey(r.key)}},{match:{object:"text"},previous:function(e){return"text"!==e.object||""!==e.text},next:function(e){return"text"!==e.object||""!==e.text},normalize:function(e,t){var n=t.code,r=t.next,i=t.previous;"next_sibling_invalid"===n?e.removeNodeByKey(r.key):"previous_sibling_invalid"===n&&e.removeNodeByKey(i.key)}}]});return[o].concat(N(n),[r,i])}wt.addMark=function(e,t){t=W.create(t);var n=e.value,r=n.document,i=n.selection;if(i.isExpanded)e.addMarkAtRange(i,t);else if(i.marks){var o=i.marks.add(t),s=i.set("marks",o);e.select(s)}else{var a=r.getActiveMarksAtRange(i).add(t),u=i.set("marks",a);e.select(u)}},wt.addMarks=function(e,t){t.forEach((function(t){return e.addMark(t)}))},wt.delete=function(e){var t=e.value.selection;e.deleteAtRange(t),e.moveToFocus()},wt.deleteBackward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection;r.isExpanded?e.delete():e.deleteBackwardAtRange(r,t)},wt.deleteCharBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharBackwardAtRange(t)},wt.deleteLineBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineBackwardAtRange(t)},wt.deleteWordBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordBackwardAtRange(t)},wt.deleteForward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection;r.isExpanded?e.delete():e.deleteForwardAtRange(r,t)},wt.deleteCharForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharForwardAtRange(t)},wt.deleteLineForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineForwardAtRange(t)},wt.deleteWordForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordForwardAtRange(t)},wt.insertBlock=function(e,t){_t(e),t=fe.create(t);var n=e.value.selection;e.insertBlockAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},wt.insertFragment=function(e,t){if(t.nodes.size){_t(e);var n=e.value,r=n,i=r.document,o=r.selection,s=o.start,a=Array.from(i.texts(),(function(e){return P(e,1)[0].key}));e.insertFragmentAtRange(o,t);var u=(i=(n=e.value).document).getTexts().filter((function(e){return!a.includes(e.key)}));if(0!==u.size){var c=t.text.length,l=i.getNode(s.key)||u.first(),h=u.last()||l;if(l!==h){var f=i.getCommonAncestor(l.key,h.key),d=f.getOffset(l.key)+(s.key===l.key?s.offset:0);h=f.getTextAtOffset(d+c-1)||h,e.moveTo(h.key,d+c-f.getOffset(h.key))}else e.moveTo(h.key,c)}}},wt.insertInline=function(e,t){_t(e),t=se.create(t);var n=e.value.selection;e.insertInlineAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},wt.insertText=function(e,t,n){_t(e);var r=e.value,i=r.document,o=r.selection;n=n||o.marks||i.getInsertMarksAtRange(o),e.withoutNormalizing((function(){e.insertTextAtRange(o,t,n),o.marks&&i!==e.value.document&&e.select({marks:null})}))},wt.removeMark=function(e,t){t=W.create(t);var n=e.value,r=n.document,i=n.selection;if(i.isExpanded)e.removeMarkAtRange(i,t);else if(i.marks){var o=i.marks.remove(t),s=i.set("marks",o);e.select(s)}else{var a=r.getActiveMarksAtRange(i).remove(t),u=i.set("marks",a);e.select(u)}},wt.replaceMark=function(e,t,n){e.removeMark(t),e.addMark(n)},wt.setBlocks=function(e,t){var n=e.value.selection;e.setBlocksAtRange(n,t)},wt.setInlines=function(e,t){var n=e.value.selection;e.setInlinesAtRange(n,t)},wt.splitBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;_t(e);var n=e.value,r=n.selection,i=n.document,o=r.marks||i.getInsertMarksAtRange(r);e.splitBlockAtRange(r,t).moveToEnd(),o&&0!==o.size&&e.select({marks:o})},wt.splitInline=function(e,t){_t(e);var n=e.value.selection;e.splitInlineAtRange(n,t)},wt.toggleMark=function(e,t){t=W.create(t),e.value.activeMarks.has(t)?e.removeMark(t):e.addMark(t)},wt.unwrapBlock=function(e,t){var n=e.value.selection;e.unwrapBlockAtRange(n,t)},wt.unwrapInline=function(e,t){var n=e.value.selection;e.unwrapInlineAtRange(n,t)},wt.wrapBlock=function(e,t){var n=e.value.selection;e.wrapBlockAtRange(n,t)},wt.wrapInline=function(e,t){var n=e.value.selection;e.wrapInlineAtRange(n,t)},wt.wrapText=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.value,i=r.selection;e.wrapTextAtRange(i,t,n),i.isCollapsed&&e.moveStartBackward(t.length),e.moveEndBackward(n.length),i.isForward!==e.value.selection.isForward&&e.flip()};var xt=l()("slate:editor"),Et=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,e);var i=n.controller,o=void 0===i?this:i,s=n.construct,a=void 0===s||s,u=t.onChange,c=void 0===u?function(){}:u,l=t.plugins,h=void 0===l?[]:l,f=t.readOnly,d=void 0!==f&&f,p=t.value,m=void 0===p?pe.create():p;this.controller=o,this.middleware={},this.onChange=c,this.operations=(0,r.aV)(),this.readOnly=null,this.value=null,this.tmp={dirty:[],flushing:!1,merge:null,normalize:!0,save:!0};var v=kt({plugins:h});Tt(this,v),a&&(this.run("onConstruct"),this.setReadOnly(d),this.setValue(m,n))}return E(e,[{key:"applyOperation",value:function(e){var t=this,n=this.operations,r=this.controller,i=this.value;o()(e)&&(e=A({},e,{value:i})),e=we.create(e),this.withoutNormalizing((function(){r.save(e),i=t.value})),xt("apply",{operation:e}),this.value=e.apply(i),this.operations=n.push(e);var s=function(e){var t=e.type,n=e.node,r=e.path,i=e.newPath;switch(t){case"add_mark":case"insert_text":case"remove_mark":case"remove_text":case"set_mark":case"set_node":var o=U.getAncestors(r).toArray();return[].concat(N(o),[r]);case"insert_node":var s=n.getKeysToPathsTable(),a=Object.values(s).map((function(e){return r.concat(e)})),u=U.getAncestors(r).toArray();return[].concat(N(u),[r],N(a));case"split_node":var c=U.getAncestors(r).toArray(),l=U.increment(r);return[].concat(N(c),[r,l]);case"merge_node":var h=U.getAncestors(r).toArray(),f=U.decrement(r);return[].concat(N(h),[f]);case"move_node":if(U.isEqual(r,i))return[];var d=U.getAncestors(r).reduce((function(t,n){return t.push.apply(t,N(U.transform(n,e).toArray())),t}),[]),p=U.getAncestors(i).reduce((function(t,n){return t.push.apply(t,N(U.transform(n,e).toArray())),t}),[]);return[].concat(N(d),N(p));case"remove_node":var m=U.getAncestors(r).toArray();return[].concat(N(m));default:return[]}}(e),a=this.tmp.dirty.map((function(t){return t=U.create(t),U.transform(t,e).toArray()})),u={},c=Array.prototype.concat.apply(s,a);return this.tmp.dirty=[],c.forEach((function(e){var n=e.join(",");u[n]||t.tmp.dirty.push(e),u[n]=!0})),this.tmp.flushing||(this.tmp.flushing=!0,Promise.resolve().then((function(){return t.flush()}))),r}},{key:"flush",value:function(){this.run("onChange");var e=this.value,t=this.operations,n=this.controller,i={value:e,operations:t};return this.operations=(0,r.aV)(),this.tmp.flushing=!1,this.onChange(i),n}},{key:"command",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller;if("function"==typeof e)return e.apply(void 0,[i].concat(n)),St(this),i;xt("command",{type:e,args:n});var o={type:e,args:n};return this.run("onCommand",o),St(this),i}},{key:"hasCommand",value:function(e){var t=this.controller;return e in t&&t[e].__command}},{key:"hasQuery",value:function(e){var t=this.controller;return e in t&&t[e].__query}},{key:"normalize",value:function(){var e=this.value,t=this.controller,n=e.document,r=n.getKeysToPathsTable(),i=Object.values(r).map(U.create);this.tmp.dirty=this.tmp.dirty.concat(i),St(this);var o=e.selection;return n=e.document,o.isUnset&&n.nodes.size&&t.moveToStartOfDocument(),t}},{key:"query",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller;if("function"==typeof e)return e.apply(void 0,[i].concat(n));xt("query",{type:e,args:n});var o={type:e,args:n};return this.run("onQuery",o)}},{key:"registerCommand",value:function(e){var t=this,n=this.controller;if(e in n&&n[e].__command)return n;u(!(e in n));var r=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.command.apply(t,[e].concat(r))};return n[e]=r,r.__command=!0,n}},{key:"registerQuery",value:function(e){var t=this,n=this.controller;if(e in n&&n[e].__query)return n;u(!(e in n));var r=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.query.apply(t,[e].concat(r))};return n[e]=r,r.__query=!0,n}},{key:"run",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller,o=this.middleware,s=o[e]||[],a=0;function c(){var e=s[a++];if(e){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];r.length&&(n=r);var u=e.apply(void 0,N(n).concat([i,c]));return u}}return Object.defineProperty(c,"change",{get:function(){u(!1)}}),Object.defineProperty(c,"onChange",{get:function(){u(!1)}}),Object.defineProperty(c,"props",{get:function(){u(!1)}}),Object.defineProperty(c,"schema",{get:function(){u(!1)}}),Object.defineProperty(c,"stack",{get:function(){u(!1)}}),c()}},{key:"setReadOnly",value:function(e){return this.readOnly=e,this}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.normalize,r=void 0===n?e!==this.value:n;return this.value=e,r&&this.normalize(),this}},{key:"withoutNormalizing",value:function(e){var t=this.controller,n=this.tmp.normalize;return this.tmp.normalize=!1,e(t),this.tmp.normalize=n,St(this),t}},{key:"change",value:function(e){s(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so the `editor.change()` method is deprecated.`");for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.apply(void 0,[this.controller].concat(n))}},{key:"call",value:function(e){s(!1,"As of Slate 0.43 the `editor.call(fn)` method has been deprecated, please use `editor.command(fn)` instead.");for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,[this.controller].concat(n)),this.controller}},{key:"applyOperations",value:function(e){var t=this;return s(!1,"As of Slate 0.43 the `applyOperations` method is deprecated, please apply each operation in a loop instead."),e.forEach((function(e){return t.applyOperation(e)})),this.controller}},{key:"setOperationFlag",value:function(e,t){return s(!1,"As of slate@0.41 the `change.setOperationFlag` method has been deprecated."),this.tmp[e]=t,this}},{key:"getFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(!1,"As of slate@0.41 the `change.getFlag` method has been deprecated."),void 0!==t[e]?t[e]:this.tmp[e]}},{key:"unsetOperationFlag",value:function(e){return s(!1,"As of slate@0.41 the `change.unsetOperationFlag` method has been deprecated."),delete this.tmp[e],this}},{key:"withoutNormalization",value:function(e){return s(!1,"As of slate@0.41 the `change.withoutNormalization` helper has been renamed to `change.withoutNormalizing`."),this.withoutNormalizing(e)}},{key:"editor",get:function(){return s(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so you don't need to access `change.editor`."),this.controller}}]),e}();function St(e){e.tmp.normalize&&e.tmp.dirty.length&&e.withoutNormalizing((function(){for(;e.tmp.dirty.length;){var t=e.tmp.dirty.pop();At(e,t)}}))}function At(e,t){for(var n=e.controller,r=e.value,i=r.document,o=i.assertNode(t),s=0,a=100+("text"===o.object?1:o.nodes.size);o;){var u=o.normalize(n);if(!u)break;u(n),i=(r=e.value).document;var c=o.key,l=i.getDescendant(t);if(l&&l.key===c)o=l;else{if(!(l=i.getDescendant(c)))break;o=l,t=i.getPath(c)}if(++s>a)throw new Error("A schema rule could not be normalized after sufficient iterations. This is usually due to a `rule.normalize` or `plugin.normalizeNode` function of a schema being incorrectly written, causing an infinite loop.")}}function Tt(e,t){if(Array.isArray(t))t.forEach((function(t){return Tt(e,t)}));else if(null!=t){var n=t.commands,r=t.queries,i=t.schema,o=O(t,["commands","queries","schema"]);if(n){var s=Ee(n);Tt(e,s)}if(r){var a=rt(r);Tt(e,a)}if(i){var u=ot(i);Tt(e,u)}for(var c in o){var l=o[c];(e.middleware[c]=e.middleware[c]||[]).push(l)}}}var Ot={marks:void 0,text:void 0},Ct=function(e){function t(){return x(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,e),E(t,[{key:"updateMark",value:function(e,t){var n=this.marks;if(t.equals(e))return this;if(!n.has(e))return this;var r=n.withMutations((function(n){n.remove(e).add(t)}));return this.set("marks",r)}},{key:"addMark",value:function(e){var t=this.marks;return this.set("marks",t.add(e))}},{key:"addMarks",value:function(e){var t=this.marks;return this.set("marks",t.union(e))}},{key:"insertText",value:function(e,t){var n=this.text,r=n.slice(0,e)+t+n.slice(e);return this.set("text",r)}},{key:"removeMark",value:function(e){var t=this.marks;return this.set("marks",t.remove(e))}},{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map((function(e){return e.toJSON()}))}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(!1,"As of slate@0.47 the `Leaf` model is deprecated."),t.isLeaf(e))return e;if("string"==typeof e&&(e={text:e}),o()(e))return t.fromJSON(e);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+e)}},{key:"createLeaves",value:function(e){if(e.size<=1)return e;var t=!1,n=(0,r.aV)().withMutations((function(n){e.findLast((function(e,r){var i=n.first();if(i){if(i.marks.equals(e.marks))return t=!0,void n.set(0,i.set("text",""+e.text+i.text));if(""===i.text)return t=!0,void n.set(0,e);if(""===e.text)return void(t=!0)}n.unshift(e)}))}));return t?n:e}},{key:"splitLeaves",value:function(e,t){if(t<0)return[(0,r.aV)(),e];if(0===e.size)return[(0,r.aV)(),(0,r.aV)()];var n=0,i=-1,o=void 0,s=void 0;return e.find((function(e){i++;var r=n,a=e.text;if((n+=a.length)<t)return!1;if(r>t)return!1;var u=t-r;return o=e.set("text",a.slice(0,u)),s=e.set("text",a.slice(u)),!0})),o?""===o.text?0===i?[r.aV.of(o),e]:[e.take(i),e.skip(i)]:""===s.text?i===e.size-1?[e,r.aV.of(s)]:[e.take(i+1),e.skip(i+1)]:[e.take(i).push(o),e.skip(i+1).unshift(s)]:[e,(0,r.aV)()]}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.aV.isList(e)||Array.isArray(e)){var n=new r.aV(e.map(t.create));return n}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,i=void 0===n?"":n,o=e.marks,s=void 0===o?[]:o;return new t({text:i,marks:(0,r.l4)(s.map(W.fromJSON))})}},{key:"isLeafList",value:function(e){return r.aV.isList(e)&&e.every((function(e){return t.isLeaf(e)}))}}]),t}((0,r.WV)(Ot));function Pt(e,t){var n=!0,r=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value,u=!0,c=!1,l=void 0;try{for(var h,f=Object.getOwnPropertyNames(e)[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var d=h.value;if(!a.hasOwnProperty(d)){var p=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(a,d,p)}}}catch(e){c=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw l}}var m=!0,v=!1,y=void 0;try{for(var g,b=Object.getOwnPropertyNames(e.prototype)[Symbol.iterator]();!(m=(g=b.next()).done);m=!0){var _=g.value;if(!a.prototype.hasOwnProperty(_)){p=Object.getOwnPropertyDescriptor(e.prototype,_);Object.defineProperty(a.prototype,_,p)}}}catch(e){v=!0,y=e}finally{try{!m&&b.return&&b.return()}finally{if(v)throw y}}}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}}Object.entries({Annotation:ne,Block:fe,Change:xe,Decoration:G,Document:ie,Editor:Et,Inline:se,Leaf:Ct,Mark:W,Node:le,Operation:we,Point:V,Range:ee,Selection:J,Text:ce,Value:pe}).forEach((function(e){var t,n,r,i,o=P(e,2),s=o[0],a=o[1];return Pt((t=s.toLowerCase(),n=Z[t],r="is"+t.charAt(0).toUpperCase()+t.slice(1),(i=function(){function e(){x(this,e)}return E(e,[{key:"object",get:function(){return t}}]),e}())[r]=X.bind(null,t),i.prototype[n]=!0,i),[a])}));var Nt=function(){function e(){x(this,e)}return E(e,[{key:"toJS",value:function(){return this.toJSON.apply(this,arguments)}}],[{key:"fromJS",value:function(){return this.fromJSON.apply(this,arguments)}}]),e}();Pt(Nt,[ne,fe,G,ie,se,Ct,W,le,we,V,ee,J,ce,pe]);var Mt=!0,It=Symbol("LEAF"),Dt=Symbol("STORE_KEY"),jt=Symbol("undefined"),Lt=Symbol("null"),Rt=void 0,Ft=new WeakMap;function Bt(e,t){var n=function(t){var n=e[t];if(!n)throw new Error('Object does not have a property named "'+t+'".');e[t]=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(!Mt)return n.apply(this,r);Ft.has(this)||Ft.set(this,{noArgs:{},hasArgs:{}});var o=Ft.get(this),s=o.noArgs,a=o.hasArgs,u=0!==r.length,c=void 0,l=void 0;if((c=u?qt(a,l=[t].concat(r)):s[t])!==Rt)return c===jt?void 0:c;var h=n.apply(this,r),f=void 0===h?jt:h;return u?Ut(a,l,f):s[t]=f,h}},r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){n(s.value)}}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}}function qt(e,t){var n=!0,r=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;if(void 0===a?a=jt:null==a&&(a=Lt),(e="object"===(void 0===a?"undefined":k(a))?e[Dt]&&e[Dt].get(a):e[a])===Rt)return Rt}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return e[It]}function Ut(e,t,n){var r=e,i=!0,o=!1,s=void 0;try{for(var a,u=t[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=a.value;if(void 0===c?c=jt:null==c&&(c=Lt),"object"===(void 0===c?"undefined":k(c)))if(r[Dt]||(r[Dt]=new WeakMap),r[Dt].has(c))r=r[Dt].get(c);else{var l={};r[Dt].set(c,l),r=l}else r[c]||(r[c]={}),r=r[c]}}catch(e){o=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw s}}return r[It]=n,e}var zt=function(){function e(){x(this,e)}return E(e,[{key:"getFirstText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.find((function(t){return"text"===t.object||!!(e=t.getFirstText())}));return e||t}},{key:"getKeysToPathsTable",value:function(){var e=S({},this.key,[]);return this.nodes&&this.nodes.forEach((function(t,n){var r=t.getKeysToPathsTable();for(var i in r){var o=r[i];s(!(i in e),'A node with a duplicate key of "'+i+'" was found! Duplicate keys are not allowed, you should use `node.regenerateKey` before inserting if you are reusing an existing node.'),e[i]=[n].concat(N(o))}})),e}},{key:"getLastText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.findLast((function(t){return"text"===t.object||(e=t.getLastText())}));return e||t}},{key:"getNode",value:function(e){return(e=this.resolvePath(e))?"text"===this.object&&e.size?null:e.size?this.getDescendant(e):this:null}},{key:"getPath",value:function(e){if(r.aV.isList(e))return e;if(le.isNode(e)&&this.descendants){var t=!0,n=!1,i=void 0;try{for(var o,s=this.descendants()[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var a=o.value,u=P(a,2),c=u[0],l=u[1];if(e===c)return l}}catch(e){n=!0,i=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw i}}}var h=this.getKeysToPathsTable()[e];return h?(0,r.aV)(h):null}},{key:"getText",value:function(){return"text"===this.object?this.text:this.nodes.reduce((function(e,t){return e+t.text}),"")}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"normalize",value:function(e){return e.run("normalizeNode",this)}},{key:"regenerateKey",value:function(){var e=w.create();return this.set("key",e)}},{key:"resolvePath",value:function(e,t){return"string"==typeof e?(e=this.getPath(e),null!=t&&(e=e.concat(t))):e=U.create(e),e}},{key:"validate",value:function(e){return e.run("validateNode",this)}}]),e}();Bt(zt.prototype,["getFirstText","getKeysToPathsTable","getLastText","getText","normalize","validate"]),Pt(zt,[fe,ie,se,ce]);var Vt=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Ht(){return!0}var Kt=function(){function e(){x(this,e)}return E(e,[{key:"addMark",value:function(e,t){e=this.resolvePath(e);var n=this.assertDescendant(e);return n=n.addMark(t),this.replaceNode(e,n)}},{key:"ancestors",value:function(e){return this.createIterable({path:e,direction:null,downward:!1,includeTargetAncestors:!0,includeRoot:!0})}},{key:"blocks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlyLeaves,n=e.onlyRoots,r=e.onlyTypes,i=e.match,o=O(e,["onlyLeaves","onlyRoots","onlyTypes","match"]),s=this.descendants(A({includeDocument:!1,includeInlines:!1,includeTexts:!1},o,{match:function(e,o){return!(r&&!r.includes(e.type))&&((!n||1===o.size)&&(!(t&&!e.isLeafBlock())&&!(i&&!i(e,o))))}}));return s}},{key:"createAnnotation",value:function(e){return e=ne.createProperties(e),this.resolveAnnotation(e)}},{key:"createDecoration",value:function(e){return e=G.createProperties(e),this.resolveDecoration(e)}},{key:"createIterable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.direction,n=void 0===t?"forward":t,r=e.downward,i=void 0===r||r,o=e.upward,s=void 0===o||o,a=e.includeBlocks,u=void 0===a||a,c=e.includeDocument,l=void 0===c||c,h=e.includeInlines,f=void 0===h||h,d=e.includeRoot,p=void 0!==d&&d,m=e.includeTarget,v=void 0===m?!!e.range:m,y=e.includeTargetAncestors,g=void 0!==y&&y,b=e.includeTexts,_=void 0===b||b,w=e.match,k=void 0===w?null:w,x=this,E=null,A=null;e.range?(A=x.resolveRange(e.range),E=x.resolvePath(A.start.path)):e.path&&(E=x.resolvePath(e.path));var T=E&&x.assertNode(E),O="undefined"==typeof window?Vt.Set:window.Set;return S({},Symbol.iterator,(function(){var e=new O,t=A&&A.start.path,r=A&&A.end.path,o=E,a=T,c=!1,h=!1,d=!1,m=function(){return o&&a?(p||a!==x)&&(u||"block"!==a.object)&&(l||"document"!==a.object)&&(f||"inline"!==a.object)&&(_||"text"!==a.object)?k&&!k(a,o)?y():{value:[a,o],done:!1}:y():{done:!0}},y=function u(){if(!o||!a)return m();if(t&&!h)return d?o.size===t.size-1?(h=!0,o=E,a=T,u()):(o=t.slice(0,o.size+1),a=x.assertNode(o),m()):(d=!0,o=U.create([]),a=x,m());if(v&&!c)return c=!0,m();if(r&&o.equals(r))return a=null,o=null,u();if(i&&a.nodes&&a.nodes.size&&!e.has(a)){e.add(a);var l="forward"===n?0:a.nodes.size-1;return o=o.push(l),a=x.assertNode(o),m()}if("forward"===n){var f=U.increment(o),p=x.getNode(f);if(p)return o=f,a=p,m()}if("backward"===n&&0!==o.last()){var y=U.decrement(o),b=x.getNode(y);if(b)return o=y,a=b,m()}return s&&o.size?(o=U.lift(o),a=x.assertNode(o),e.has(a)?u():(e.add(a),g?m():u())):(o=null,a=null,u())};return{next:y}}))}},{key:"createPoint",value:function(e){return e=V.createProperties(e),this.resolvePoint(e)}},{key:"createRange",value:function(e){return e=ee.createProperties(e),this.resolveRange(e)}},{key:"createSelection",value:function(e){return e=J.createProperties(e),this.resolveSelection(e)}},{key:"descendants",value:function(e){return this.createIterable(A({path:[]},e))}},{key:"filterDescendants",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,t=[],n=!0,i=!1,o=void 0;try{for(var s,a=this.descendants()[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var u=s.value,c=P(u,2),l=c[0],h=c[1];e(l,h)&&t.push(l)}}catch(e){i=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return(0,r.aV)(t)}},{key:"findDescendant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,t=!0,n=!1,r=void 0;try{for(var i,o=this.descendants()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value,a=P(s,2),u=a[0],c=a[1];if(e(u,c))return u}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return null}},{key:"forEachDescendant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,t=!0,n=!1,r=void 0;try{for(var i,o=this.descendants()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value,a=e.apply(void 0,N(s));if(!1===a)return}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"getActiveMarksAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return(0,r.l4)();if(e.isCollapsed){var t=e.start;return this.getInsertMarksAtPoint(t)}var n=e,i=n.start,o=n.end,s=i.path,a=i.offset,u=o.path,c=o.offset,l=this.getDescendant(s),h=this.getDescendant(u);if(!s.equals(u)){for(;!s.equals(u)&&0===c;){var f=this.texts({path:u,direction:"backward"}),d=P(f,1),p=P(d[0],2);h=p[0],u=p[1],c=h.text.length}for(;!s.equals(u)&&a===l.text.length;){var m=this.texts({path:s}),v=P(m,1),y=P(v[0],2);l=y[0],s=y[1],a=0}}if(s.equals(u))return l.marks;var g=l.marks;if(0===g.size)return(0,r.l4)();var b=h.marks,_=g.intersect(b);if(0===_.size)return _;var w=this.texts({path:s}),k=P(w,1),x=P(k[0],2);for(l=x[0],s=x[1];!s.equals(u);){if(0!==l.text.length&&0===(_=_.intersect(l.marks)).size)return(0,r.l4)();var E=this.texts({path:s}),S=P(E,1),A=P(S[0],2);l=A[0],s=A[1]}return _}},{key:"getAncestors",value:function(e){var t=this.ancestors(e),n=Array.from(t,(function(e){return P(e,1)[0]})).reverse();return(0,r.aV)(n)}},{key:"getBlocks",value:function(){var e=this.blocks({onlyLeaves:!0}),t=Array.from(e,(function(e){return P(e,1)[0]}));return(0,r.aV)(t)}},{key:"getBlocksByType",value:function(e){var t=this.blocks({onlyLeaves:!0,onlyTypes:[e]}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"getChild",value:function(e){return!(e=this.resolvePath(e))||e.size>1?null:this.nodes.get(e.first())}},{key:"getClosest",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,s=this.ancestors(e)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value,u=P(a,2),c=u[0];if(t(c,u[1]))return c}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return null}},{key:"getClosestBlock",value:function(e){var t=this.getClosest(e,(function(e){return"block"===e.object}));return t}},{key:"getClosestInline",value:function(e){var t=this.getClosest(e,(function(e){return"inline"===e.object}));return t}},{key:"getClosestVoid",value:function(e,t){u(!pe.isValue(t));var n=this.getClosest(e,(function(e){return t.isVoid(e)}));return n}},{key:"getCommonAncestor",value:function(e,t){if(e=this.resolvePath(e),t=this.resolvePath(t),!e||!t)return null;var n=U.relate(e,t);return this.getNode(n)}},{key:"getDecorations",value:function(e){var t=e.run("decorateNode",this);return t=G.createList(t)}},{key:"getDepth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!(e=this.resolvePath(e)))return null;var n=this.getNode(e),r=n?e.size-1+t:null;return r}},{key:"getDescendant",value:function(e){if(!(e=this.resolvePath(e))||!e.size)return null;var t=this;return e.forEach((function(e){return!!(t=t.getIn(["nodes",e]))})),t}},{key:"getDescendantsAtRange",value:function(e){var t=this.descendants({range:e}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"getFragmentAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return ie.create();for(var t=e,n=t.start,r=t.end,i=this,o=r.path,s=r.offset,a="end";o.size;){var u=o.last();i=i.splitNode(o,s),s=u+1,(o=U.lift(o)).size||"end"!==a||(o=n.path,s=n.offset,a="start")}var c=n.path.first()+1,l=r.path.first()+2,h=i.nodes.slice(c,l);return ie.create({nodes:h})}},{key:"getFurthest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht,n=this.ancestors(e),r=Array.from(n).reverse(),i=!0,o=!1,s=void 0;try{for(var a,u=r[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=a.value,l=P(c,2),h=l[0],f=l[1];if(t(h,f))return h}}catch(e){o=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw s}}return null}},{key:"getFurthestBlock",value:function(e){var t=this.getFurthest(e,(function(e){return"block"===e.object}));return t}},{key:"getFurthestChild",value:function(e){return(e=this.resolvePath(e))&&e.size?this.nodes.get(e.first()):null}},{key:"getFurthestInline",value:function(e){var t=this.getFurthest(e,(function(e){return"inline"===e.object}));return t}},{key:"getInlines",value:function(){var e=this.inlines({onlyLeaves:!0}),t=Array.from(e,(function(e){return P(e,1)[0]}));return(0,r.aV)(t)}},{key:"getInlinesByType",value:function(e){var t=this.inlines({onlyLeaves:!0,onlyTypes:[e]}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"getInsertMarksAtPoint",value:function(e){var t=e=this.resolvePoint(e),n=t.path,r=t.offset,i=this.getDescendant(n);if(0!==r)return i.marks;var o=void 0,s=void 0,a=!0,u=!1,c=void 0;try{for(var l,h=this.ancestors(n)[Symbol.iterator]();!(a=(l=h.next()).done);a=!0){var f=l.value,d=P(f,2),p=d[0],m=d[1];"block"===p.object&&(o=p,s=m)}}catch(e){u=!0,c=e}finally{try{!a&&h.return&&h.return()}finally{if(u)throw c}}var v=U.drop(n,s.size),y=o.texts({path:v,direction:"backward"}),g=P(y,1)[0];return g?P(g,1)[0].marks:i.marks}},{key:"getInsertMarksAtRange",value:function(e){var t=(e=this.resolveRange(e)).start;return e.isUnset?(0,r.l4)():e.isCollapsed?this.getInsertMarksAtPoint(t):this.getDescendant(t.path).marks}},{key:"getLeafBlocksAtRange",value:function(e){var t=this.blocks({range:e,onlyLeaves:!0}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"getLeafInlinesAtRange",value:function(e){var t=this.inlines({range:e,onlyLeaves:!0}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"getNodesToPathsMap",value:function(){var e="undefined"==typeof window?new Vt.Map:new window.Map;return e.set(this,U.create([])),this.forEachDescendant((function(t,n){e.set(t,n)})),e}},{key:"getMarks",value:function(){var e=this.marks(),t=Array.from(e,(function(e){return P(e,1)[0]}));return(0,r.hU)(t)}},{key:"getMarksAtRange",value:function(e){var t=this.marks({range:e}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.hU)(n)}},{key:"getMarksByType",value:function(e){var t=this.marks({onlyTypes:[e]}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.hU)(n)}},{key:"getNextBlock",value:function(e){var t=this.blocks({path:e,onlyLeaves:!0}),n=P(t,1)[0];return n?n[0]:null}},{key:"getNextNode",value:function(e){var t=this.createIterable({path:e,downward:!1}),n=P(t,1)[0];return n?n[0]:null}},{key:"getNextSibling",value:function(e){var t=this.siblings(e),n=P(t,1)[0];return n?n[0]:null}},{key:"getNextText",value:function(e){var t=this.texts({path:e}),n=P(t,1)[0];return n?n[0]:null}},{key:"getOffset",value:function(e){e=this.resolvePath(e),this.assertDescendant(e);var t=e.first(),n=this.nodes.slice(0,t).reduce((function(e,t){return e+t.text.length}),0);return 1===e.size?n:n+this.nodes.get(t).getOffset(U.drop(e))}},{key:"getOffsetAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(e.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var t=e.start;return this.getOffset(t.path)+t.offset}},{key:"getParent",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;var t=U.lift(e);return this.getNode(t)}},{key:"getPreviousBlock",value:function(e){var t=this.blocks({path:e,onlyLeaves:!0,direction:"backward"}),n=P(t,1)[0];return n?n[0]:null}},{key:"getPreviousNode",value:function(e){var t=this.createIterable({path:e,downward:!1,direction:"backward"}),n=P(t,1)[0];return n?n[0]:null}},{key:"getPreviousSibling",value:function(e){var t=this.siblings(e,{direction:"backward"}),n=P(t,1)[0];return n?n[0]:null}},{key:"getPreviousText",value:function(e){var t=this.texts({path:e,direction:"backward"}),n=P(t,1)[0];return n?n[0]:null}},{key:"getRootBlocksAtRange",value:function(e){var t=this.blocks({range:e,onlyRoots:!0}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"getRootInlinesAtRange",value:function(e){var t=this.inlines({range:e,onlyRoots:!0}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"getTextAtOffset",value:function(e){if(0===e)return this.getFirstText();if(e===this.text.length)return this.getLastText();if(e<0||e>this.text.length)return null;var t=0,n=!0,r=!1,i=void 0;try{for(var o,s=this.texts()[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value,u=P(a,1)[0];if((t+=u.text.length)>e)return u}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return null}},{key:"getTextDirection",value:function(){var e=y()(this.text);return"neutral"===e?null:e}},{key:"getTexts",value:function(){var e=this.texts(),t=Array.from(e,(function(e){return P(e,1)[0]}));return(0,r.aV)(t)}},{key:"getTextsAtRange",value:function(e){var t=this.texts({range:e}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"hasBlockChildren",value:function(){return!(!this.nodes||!this.nodes.find((function(e){return"block"===e.object})))}},{key:"hasChild",value:function(e){return!!this.getChild(e)}},{key:"hasInlineChildren",value:function(){return!(!this.nodes||!this.nodes.find((function(e){return"inline"===e.object||"text"===e.object})))}},{key:"hasDescendant",value:function(e){return!!this.getDescendant(e)}},{key:"hasVoidParent",value:function(e,t){return u(!pe.isValue(t)),!!this.getClosestVoid(e,t)}},{key:"inlines",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onlyLeaves,r=t.onlyRoots,i=t.onlyTypes,o=t.match,s=O(t,["onlyLeaves","onlyRoots","onlyTypes","match"]),a=this.descendants(A({includeBlocks:!1,includeTexts:!1,includeDocument:!1},s,{match:function(t,s){return!(i&&!i.includes(t.type))&&(!(n&&!t.isLeafInline())&&((!r||"block"===e.getParent(s).object)&&!(o&&!o(t,s))))}}));return a}},{key:"insertNode",value:function(e,t){var n=(e=this.resolvePath(e)).last(),r=U.lift(e),i=this.assertNode(r),o=i.nodes.splice(n,0,t);return i=i.set("nodes",o),this.replaceNode(r,i)}},{key:"insertText",value:function(e,t,n){e=this.resolvePath(e);var r=this.assertDescendant(e);return r=r.insertText(t,n),this.replaceNode(e,r)}},{key:"isLeafBlock",value:function(){return"block"===this.object&&!this.nodes.some((function(e){return"block"===e.object}))}},{key:"isLeafInline",value:function(){return"inline"===this.object&&!this.nodes.some((function(e){return"inline"===e.object}))}},{key:"isInRange",value:function(e,t){if(e=this.resolvePath(e),(t=this.resolveRange(t)).isUnset)return!1;var n=U.compare(e,t.start.path),r=U.compare(e,t.end.path),i=-1!==n&&1!==r;return i}},{key:"mapChildren",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,n=this.nodes;n.forEach((function(r,i){var o=t(r,i,e.nodes);o!==r&&(n=n.set(o.key,o))}));var r=this.set("nodes",n);return r}},{key:"mapDescendants",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,n=this.nodes;n.forEach((function(r,i){var o=r;"text"!==o.object&&(o=o.mapDescendants(t)),(o=t(o,i,e.nodes))!==r&&(n=n.set(i,o))}));var r=this.set("nodes",n);return r}},{key:"marks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlyTypes,n=void 0===t?null:t,r=e.match,i=O(e,["onlyTypes","match"]),o=this.texts(i);return S({},Symbol.iterator,(function(){var e=o[Symbol.iterator](),t=null,i=null,s=[];return{next:function o(){if(s.length){var a=s.shift();return n&&!n.includes(a.type)||r&&!r(a,t,i)?o():{value:[a,t,i],done:!1}}var u=e.next(),c=u.value;if(u.done)return{done:!0};var l=P(c,2);return t=l[0],i=l[1],s=t.marks.toArray(),o()}}}))}},{key:"mergeNode",value:function(e){var t=this.assertNode(e);if(0===(e=this.resolvePath(e)).last())throw new Error("Unable to merge node because it has no previous sibling: "+t);var n=U.decrement(e),r=this.assertNode(n);if(r.object!==t.object)throw new Error("Unable to merge two different kinds of nodes: "+r+" and "+t);var i="text"===r.object?r.mergeText(t):r.set("nodes",r.nodes.concat(t.nodes)),o=this;return o=(o=(o=o.removeNode(e)).removeNode(n)).insertNode(n,i)}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.assertNode(e);e=this.resolvePath(e),t=this.resolvePath(t,n);var i=U.lift(t);this.assertNode(i);var o=we.create({type:"move_node",path:e,newPath:t});t=U.transform(e,o).first();var s=this;return s=(s=s.removeNode(e)).insertNode(t,r)}},{key:"removeMark",value:function(e,t){e=this.resolvePath(e);var n=this.assertDescendant(e);return n=n.removeMark(t),this.replaceNode(e,n)}},{key:"removeNode",value:function(e){this.assertDescendant(e);var t=(e=this.resolvePath(e)).flatMap((function(e){return["nodes",e]}));return this.deleteIn(t)}},{key:"removeText",value:function(e,t,n){var r=this.assertDescendant(e);return r=r.removeText(t,n.length),this.replaceNode(e,r)}},{key:"replaceNode",value:function(e,t){if(!(e=this.resolvePath(e)))throw new Error("Unable to replace a node because it could not be found in the first place: "+e);if(!e.size)return t;this.assertNode(e);var n=e.flatMap((function(e){return["nodes",e]}));return this.setIn(n,t)}},{key:"resolveAnnotation",value:function(e){return e=(e=ne.create(e)).normalize(this)}},{key:"resolveDecoration",value:function(e){return e=(e=G.create(e)).normalize(this)}},{key:"resolvePoint",value:function(e){return e=(e=V.create(e)).normalize(this)}},{key:"resolveRange",value:function(e){return e=(e=ee.create(e)).normalize(this)}},{key:"resolveSelection",value:function(e){return e=(e=J.create(e)).normalize(this)}},{key:"setNode",value:function(e,t){var n=this.assertNode(e);return n=n.merge(t),this.replaceNode(e,n)}},{key:"setMark",value:function(e,t,n){e=this.resolvePath(e);var r=this.assertDescendant(e);return r=r.setMark(t,n),this.replaceNode(e,r)}},{key:"siblings",value:function(e,t){return this.createIterable(A({path:e,upward:!1,downward:!1},t))}},{key:"splitNode",value:function(e,t,n){var r=this.assertNode(e);e=this.resolvePath(e);var i=void 0,o=void 0;if("text"===r.object){var s=r.splitText(t),a=P(s,2);i=a[0],o=a[1]}else{var u=r.nodes.take(t),c=r.nodes.skip(t);i=r.set("nodes",u),o=r.set("nodes",c).regenerateKey()}n&&"text"!==r.object&&(o=o.merge(n));var l=this;return l=(l=(l=l.removeNode(e)).insertNode(e,o)).insertNode(e,i)}},{key:"texts",value:function(e){return this.descendants(A({includeBlocks:!1,includeInlines:!1,includeDocument:!1},e))}},{key:"getBlocksAtRange",value:function(e){return s(!1,"As of slate@0.44 the `node.getBlocksAtRange` method has been renamed to `getLeafBlocksAtRange`."),this.getLeafBlocksAtRange(e)}},{key:"getBlocksAtRangeAsArray",value:function(e){return s(!1,"As of slate@0.44 the `node.getBlocksAtRangeAsArray` method has been renamed to `getLeafBlocksAtRangeAsArray`."),this.getLeafBlocksAtRangeAsArray(e)}},{key:"getInlinesAtRange",value:function(e){return s(!1,"As of slate@0.44 the `node.getInlinesAtRange` method has been renamed to `getLeafInlinesAtRange`."),this.getLeafInlinesAtRange(e)}},{key:"getInlinesAtRangeAsArray",value:function(e){return s(!1,"As of slate@0.44 the `node.getInlinesAtRangeAsArray` method has been renamed to `getLeafInlinesAtRangeAsArray`."),this.getLeafInlinesAtRangeAsArray(e)}},{key:"getNextTextAndPath",value:function(e){return s(!1,"As of slate@0.47, the `getNextTextAndPath` method has been renamed to `getNextTextEntry`."),this.getNextTextEntry(e)}},{key:"getNextDeepMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};s(!1,"As of slate@0.47, the `getNextDeepMatchingNodeAndPath` method is deprecated.");var n=this.getNextMatchingNodeAndPath(e);if(!n)return null;for(var r=P(n,2),i=r[0],o=r[1],a=void 0,u=function(){return a="text"!==i.object&&i.findFirstDescendantAndPath(t,o)};u(a);){var c=a,l=P(c,2);i=l[0],o=l[1]}return i?t(i)?[i,o]:this.getNextDeepMatchingNodeAndPath(n[1],t):null}},{key:"getPreviousTextAndPath",value:function(e){return s(!1,"As of slate@0.47, the `getPreviousTextAndPath` method has been renamed to `getPreviousTextEntry`."),this.getPreviousTextEntry(e)}},{key:"findFirstDescendantAndPath",value:function(e,t){return s(!1,"As of slate@0.47, the `findFirstDescendantAndPath` method is deprecated."),this.findDescendantAndPath(e,t,!1)}},{key:"getPreviousMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(s(!1,"As of slate@0.47, the `getPreviousMatchingNodeAndPath` method is deprecated."),!e)return null;for(var n=e.size;n>0;n--){var r=e.slice(0,n);if(0!==r.last()){for(var i=U.decrement(r),o=this.getNode(i);o&&!t(o);)i=U.decrement(i),o=this.getNode(i);if(o)return[o,i]}}return null}},{key:"getPreviousDeepMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};s(!1,"As of slate@0.47, the `getPreviousDeepMatchingNodeAndPath` method is deprecated.");var n=this.getPreviousMatchingNodeAndPath(e);if(!n)return null;for(var r=P(n,2),i=r[0],o=r[1],a=void 0,u=function(){return a="text"!==i.object&&i.findLastDescendantAndPath(t,o)};u(a);){var c=a,l=P(c,2);i=l[0],o=l[1]}return i?t(i)?[i,o]:this.getPreviousDeepMatchingNodeAndPath(n[1],t):null}},{key:"findLastDescendantAndPath",value:function(e,t){return s(!1,"As of slate@0.47, the `findLastDescendantAndPath` method is deprecated."),this.findDescendantAndPath(e,t,!0)}},{key:"findDescendantAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.create([]),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(!1,"As of slate@0.47, the `findDescendantAndPath` method is deprecated.");var r=void 0,i=void 0;return this.forEachDescendantWithPath((function(t,n,o){if(e(t,n,o))return r=t,i=n,!1}),t,n),r?[r,i]:null}},{key:"forEachDescendantWithPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.create([]),n=arguments[2];s(!1,"As of slate@0.47, the `forEachDescendantWithPath` method is deprecated.");var r=this.nodes,i=void 0;return n&&(r=r.reverse()),r.forEach((function(o,s){var a=t.concat(s);return!1===e(o,a,r)?(i=!1,!1):"text"!==o.object?i=o.forEachDescendantWithPath(e,a,n):void 0})),i}},{key:"getNextMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(s(!1,"As of slate@0.47, the `getNextMatchingNodeAndPath` method is deprecated."),!e)return null;for(var n=e.size;n>0;n--){for(var r=e.slice(0,n),i=U.increment(r),o=this.getNode(i);o&&!t(o);)i=U.increment(i),o=this.getNode(i);if(o)return[o,i]}return null}},{key:"getSelectionIndexes",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s(!1,"As of slate@0.47, the `getSelectionIndexes` method is deprecated.");var n=e.start,r=e.end;if(!t)return null;if(e.isUnset)return null;if(n.path.equals(r.path)){var i=this.getFurthestAncestor(n.path),o=i?this.nodes.indexOf(i):null;return{start:o,end:o+1}}var a=null,u=null;return this.nodes.forEach((function(e,t){return"text"===e.object?(null==a&&e.key===n.key&&(a=t),null==u&&e.key===r.key&&(u=t+1)):(null==a&&e.hasDescendant(n.key)&&(a=t),null==u&&e.hasDescendant(r.key)&&(u=t+1)),null==a||null==u})),t&&null==a&&(a=0),t&&null==u&&(u=this.nodes.size),null==a?null:{start:a,end:u}}},{key:"getTextsBetweenPositionsAsArray",value:function(e,t){return s(!1,"As of slate@0.47, the `getTextsBetweenPositionsAsArray` method is deprecated."),e=this.resolvePath(e),t=this.resolvePath(t),this.getTextsBetweenPathPositionsAsArray(e,t)}},{key:"getOrderedMarksBetweenPositions",value:function(e,t,n,i){s(!1,"As of slate@0.47, the `getOrderedMarksBetweenPositions` method is deprecated."),e=this.resolvePath(e),n=this.resolvePath(n);var o=this.getDescendant(e);if(U.isEqual(e,n))return o.marks;var a=this.getTextsBetweenPathPositionsAsArray(e,n);return(0,r.hU)().withMutations((function(e){a.forEach((function(t){e.union(t.marks)}))}))}},{key:"getTextsBetweenPathPositionsAsArray",value:function(e,t){if(s(!1,"As of slate@0.47, the `getTextsBetweenPathPositionsAsArray` method is deprecated."),e&&t&&U.isEqual(e,t))return[this.getDescendant(e)];if(!e&&!t)return this.getTextsAsArray();var n=e?e.get(0,0):0,r=t?t.get(0,this.nodes.size-1):this.nodes.size-1,i=[];return this.nodes.slice(n,r+1).forEach((function(o,s){if("text"===o.object)i.push(o);else{var a=e&&0===s?U.drop(e):null,u=t&&s===r-n?U.drop(t):null;i=i.concat(o.getTextsBetweenPathPositionsAsArray(a,u))}})),i}},{key:"getFurthestAncestor",value:function(e){return s(!1,"As of slate@0.47, the `getFurthestAncestor` method has been renamed to `getFurthestChild`."),this.getFurthestChild(e)}},{key:"getLeafBlocksAtRangeAsArray",value:function(e){if(s(!1,"As of slate@0.47, the `getLeafBlocksAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset)return[];var t=e,n=t.start,r=t.end;return this.getLeafBlocksBetweenPathPositionsAsArray(n.path,r.path)}},{key:"getLeafBlocksBetweenPathPositionsAsArray",value:function(e,t){if(s(!1,"As of slate@0.47, the `getLeafBlocksBetweenPathPositionsAsArray` method is deprecated."),e&&t&&U.isEqual(e,t))return[this.getClosestBlock(e)];if(!e&&!t)return this.getBlocksAsArray();var n=e?e.get(0,0):0,r=t?t.get(0,this.nodes.size-1):this.nodes.size-1,i=[];return this.nodes.slice(n,r+1).forEach((function(o,s){if("block"===o.object)if(o.isLeafBlock())i.push(o);else{var a=e&&0===s?U.drop(e):null,u=t&&s===r-n?U.drop(t):null;i=i.concat(o.getLeafBlocksBetweenPathPositionsAsArray(a,u))}})),i}},{key:"getBlocksAsArray",value:function(){s(!1,"As of slate@0.47, the `getBlocksAsArray` method is deprecated.");var e=this.blocks({onlyLeaves:!0});return Array.from(e,(function(e){return P(e,1)[0]}))}},{key:"getBlocksByTypeAsArray",value:function(e){s(!1,"As of slate@0.47, the `getBlocksByTypeAsArray` method is deprecated.");var t=this.blocks({onlyLeaves:!0,onlyTypes:[e]});return Array.from(t,(function(e){return P(e,1)[0]}))}},{key:"getFurthestOnlyChildAncestor",value:function(e){s(!1,"As of slate@0.47, the `getFurthestOnlyChildAncestor` method is deprecated.");var t=this.getAncestors(e);return t&&t.rest().reverse().takeUntil((function(e){return e.nodes.size>1})).last()||null}},{key:"getInlinesAsArray",value:function(){return s(!1,"As of slate@0.47, the `getInlinesAsArray` method is deprecated."),Array.from(this.inlines({onlyLeaves:!0}),(function(e){return P(e,1)[0]}))}},{key:"getInlinesByTypeAsArray",value:function(e){return s(!1,"As of slate@0.47, the `getInlinesByTypeAsArray` method is deprecated."),Array.from(this.inlines({onlyLeaves:!0,onlyTypes:[e]}),(function(e){return P(e,1)[0]}))}},{key:"getLeafInlinesAtRangeAsArray",value:function(e){var t=this;return s(!1,"As of slate@0.47, the `getLeafInlinesAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset?[]:this.getTextsAtRangeAsArray(e).map((function(e){return t.getClosestInline(e.key)})).filter((function(e){return e}))}},{key:"getOrderedMarks",value:function(){return s(!1,"As of slate@0.47, the `getOrderedMarks` method has been folded into `getMarks`, which will now return an ordered set."),this.getMarks()}},{key:"getOrderedMarksAtRange",value:function(e){return s(!1,"As of slate@0.47, the `getOrderedMarksAtRange` method has been folded into `getMarksAtRange`, which will now return an ordered set."),this.getMarksAtRange(e)}},{key:"getOrderedMarksByType",value:function(e){return s(!1,"As of slate@0.47, the `getOrderedMarksByType` method has been folded into `getMarksByType`, which will now return an ordered set."),this.getMarksByType(e)}},{key:"getMarksByTypeAsArray",value:function(e){return s(!1,"As of slate@0.47, the `getMarksByTypeAsArray` method is deprecated."),this.nodes.reduce((function(t,n){return"text"===n.object?t.concat(n.marks.filter((function(t){return t.type===e}))):t.concat(n.getMarksByTypeAsArray(e))}),[])}},{key:"getMarksAsArray",value:function(){var e;s(!1,"As of slate@0.47, the `getMarksAsArray` method is deprecated.");var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.texts()[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var u=o.value,c=P(u,1)[0];t.push(c.marks.toArray())}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return(e=[]).concat.apply(e,t)}},{key:"getRootInlinesAtRangeAsArray",value:function(e){var t=this;return s(!1,"As of slate@0.47, the `getRootInlinesAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset?(0,r.aV)():this.getTextsAtRangeAsArray(e).map((function(e){return t.getFurthestInline(e.key)})).filter((function(e){return e}))}},{key:"getTextsAsArray",value:function(){s(!1,"As of slate@0.47, the `getTextsAsArray` method is deprecated.");var e=this.texts();return Array.from(e,(function(e){return P(e,1)[0]}))}},{key:"getTextsAtRangeAsArray",value:function(e){s(!1,"As of slate@0.47, the `getTextsAtRangeAsArray` method is deprecated.");var t=this.texts({range:e});return Array.from(t,(function(e){return P(e,1)[0]}))}},{key:"getMarksAtPosition",value:function(e,t){s(!1,"As of slate@0.47, the `getMarksAtPosition` method is deprecated."),e=this.resolvePath(e);var n=this.getDescendant(e).marks;if(0!==t)return(0,r.hU)(n);var i=this.getClosestBlock(e);if(""===i.text)return(0,r.hU)(n);var o=this.texts({path:e,direction:"backward"}),a=P(o,1)[0];if(!a)return(0,r.hU)();var u=P(a,2),c=u[0],l=u[1];return i.hasDescendant(l)?(0,r.hU)(c.marks):(0,r.hU)(n)}},{key:"getNodesAtRange",value:function(e){s(!1,"As of slate@0.47, the `getNodesAtRange` method has been renamed to `getDescendantsAtRange`.");var t=this.descendants({range:e}),n=Array.from(t,(function(e){return P(e,1)[0]}));return(0,r.aV)(n)}},{key:"isNodeInRange",value:function(e,t){return s(!1,"As of slate@0.47, the `isNodeInRange` method has been renamed to `isInRange`."),this.isInRange(e,t)}},{key:"text",get:function(){return this.getText()}}]),e}(),Wt=function(e){Kt.prototype["assert"+e]=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this["get"+e].apply(this,[t].concat(r));if(null==o)throw new Error("`Node.assert"+e+"` could not find node with path or key: "+t);return o}},$t=!0,Gt=!1,Yt=void 0;try{for(var Jt,Zt=["Child","Depth","Descendant","Node","Parent","Path"][Symbol.iterator]();!($t=(Jt=Zt.next()).done);$t=!0){Wt(Jt.value)}}catch(e){Gt=!0,Yt=e}finally{try{!$t&&Zt.return&&Zt.return()}finally{if(Gt)throw Yt}}Bt(Kt.prototype,["getBlocksAsArray","getBlocksByTypeAsArray","getDecorations","getFragmentAtRange","getInlinesAsArray","getInlinesByTypeAsArray","getInsertMarksAtRange","getLeafBlocksAtRangeAsArray","getLeafBlocksAtRangeAsArray","getLeafInlinesAtRangeAsArray","getMarksAsArray","getMarksAtPosition","getMarksByTypeAsArray","getNextBlock","getNodesAtRange","getNodesToPathsMap","getOffset","getOffsetAtRange","getOrderedMarksBetweenPositions","getPreviousBlock","getRootBlocksAtRange","getRootInlinesAtRangeAsArray","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPathPositionsAsArray"]),Pt(Kt,[fe,ie,se]);var Xt=function(){function e(){x(this,e)}return E(e,[{key:"flip",value:function(){return this.setPoints([this.focus,this.anchor])}},{key:"moveForward",value:function(e){return this.updatePoints((function(t){return t.moveForward(e)}))}},{key:"moveBackward",value:function(e){return this.updatePoints((function(t){return t.moveBackward(e)}))}},{key:"moveAnchorBackward",value:function(e){return this.setAnchor(this.anchor.moveBackward(e))}},{key:"moveAnchorForward",value:function(e){return this.setAnchor(this.anchor.moveForward(e))}},{key:"moveAnchorTo",value:function(e,t){return this.setAnchor(this.anchor.moveTo(e,t))}},{key:"moveAnchorToStartOfNode",value:function(e){return this.setAnchor(this.anchor.moveToStartOfNode(e))}},{key:"moveAnchorToEndOfNode",value:function(e){return this.setAnchor(this.anchor.moveToEndOfNode(e))}},{key:"moveEndBackward",value:function(e){return this.setEnd(this.end.moveBackward(e))}},{key:"moveEndForward",value:function(e){return this.setEnd(this.end.moveForward(e))}},{key:"moveEndTo",value:function(e,t){return this.setEnd(this.end.moveTo(e,t))}},{key:"moveEndToStartOfNode",value:function(e){return this.setEnd(this.end.moveToStartOfNode(e))}},{key:"moveEndToEndOfNode",value:function(e){return this.setEnd(this.end.moveToEndOfNode(e))}},{key:"moveFocusBackward",value:function(e){return this.setFocus(this.focus.moveBackward(e))}},{key:"moveFocusForward",value:function(e){return this.setFocus(this.focus.moveForward(e))}},{key:"moveFocusTo",value:function(e,t){return this.setFocus(this.focus.moveTo(e,t))}},{key:"moveFocusToStartOfNode",value:function(e){return this.setFocus(this.focus.moveToStartOfNode(e))}},{key:"moveFocusToEndOfNode",value:function(e){return this.setFocus(this.focus.moveToEndOfNode(e))}},{key:"moveStartBackward",value:function(e){return this.setStart(this.start.moveBackward(e))}},{key:"moveStartForward",value:function(e){return this.setStart(this.start.moveForward(e))}},{key:"moveStartTo",value:function(e,t){return this.setStart(this.start.moveTo(e,t))}},{key:"moveStartToStartOfNode",value:function(e){return this.setStart(this.start.moveToStartOfNode(e))}},{key:"moveStartToEndOfNode",value:function(e){return this.setStart(this.start.moveToEndOfNode(e))}},{key:"moveTo",value:function(e,t){return this.updatePoints((function(n){return n.moveTo(e,t)}))}},{key:"moveToAnchor",value:function(){return this.setFocus(this.anchor)}},{key:"moveToEnd",value:function(){return this.setStart(this.end)}},{key:"moveToEndOfNode",value:function(e){return this.updatePoints((function(t){return t.moveToEndOfNode(e)}))}},{key:"moveToFocus",value:function(){return this.setAnchor(this.focus)}},{key:"moveToRangeOfNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.setPoints([this.anchor.moveToStartOfNode(e),this.focus.moveToEndOfNode(t)]);return n}},{key:"moveToStart",value:function(){return this.setEnd(this.start)}},{key:"moveToStartOfNode",value:function(e){return this.updatePoints((function(t){return t.moveToStartOfNode(e)}))}},{key:"normalize",value:function(e){return this.updatePoints((function(t){return t.normalize(e)}))}},{key:"setAnchor",value:function(e){return this.set("anchor",e)}},{key:"setEnd",value:function(e){return this.isBackward?this.setAnchor(e):this.setFocus(e)}},{key:"setFocus",value:function(e){return this.set("focus",e)}},{key:"setPoints",value:function(e){var t=P(e,2),n=t[0],r=t[1];return this.set("anchor",n).set("focus",r)}},{key:"updatePoints",value:function(e){var t=this.anchor,n=this.focus;return t=e(t),n=e(n),this.merge({anchor:t,focus:n})}},{key:"setStart",value:function(e){return this.isBackward?this.setFocus(e):this.setAnchor(e)}},{key:"setProperties",value:function(e){var t=e=ee.createProperties(e),n=t.anchor,r=t.focus,i=O(t,["anchor","focus"]);return n&&(i.anchor=V.create(n)),r&&(i.focus=V.create(r)),this.merge(i)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}},{key:"toRange",value:function(){var e=ee.createProperties(this);return ee.create(e)}},{key:"unset",value:function(){return this.updatePoints((function(e){return e.unset()}))}},{key:"isCollapsed",get:function(){return this.anchor===this.focus||this.anchor.key===this.focus.key&&this.anchor.offset===this.focus.offset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isBackward",get:function(){var e=this.isUnset,t=this.anchor,n=this.focus;return e?null:t.key===n.key?t.offset>n.offset:U.isBefore(n.path,t.path)}},{key:"isForward",get:function(){var e=this.isBackward;return null==e?null:!e}},{key:"isUnset",get:function(){var e=this.anchor,t=this.focus;return e.isUnset||t.isUnset}},{key:"isSet",get:function(){return!this.isUnset}},{key:"start",get:function(){return this.isBackward?this.focus:this.anchor}},{key:"end",get:function(){return this.isBackward?this.anchor:this.focus}}]),e}();Pt(Xt,[ne,G,ee,J])},55586:function(e,t,n){"use strict";var r=n(34155);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(31202)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},31202:function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function s(){if(s.enabled){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=s,a=Number(new Date),u=a-(n||a);o.diff=u,o.prev=n,o.curr=a,n=a,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var i=r.formatters[n];if("function"==typeof i){var s=t[c];e=i.call(o,s),t.splice(c,1),c--}return e})),r.formatArgs.call(o,t);var l=o.log||r.log;l.apply(o,t)}}return s.namespace=e,s.enabled=r.enabled(e),s.useColors=r.useColors(),s.color=t(e),s.destroy=i,s.extend=o,"function"==typeof r.init&&r.init(s),r.instances.push(s),s}function i(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function o(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var o=r.instances[t];o.enabled=r.enabled(o.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(57824),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},84564:function(e,t,n){"use strict";var r=n(47418),i=n(57129),o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,a=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function u(e){return(e||"").toString().replace(a,"")}var c=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function h(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},i={},s=typeof(e=e||r);if("blob:"===e.protocol)i=new d(unescape(e.pathname),{});else if("string"===s)for(t in i=new d(e,{}),l)delete i[t];else if("object"===s){for(t in e)t in l||(i[t]=e[t]);void 0===i.slashes&&(i.slashes=o.test(e.href))}return i}function f(e){e=u(e);var t=s.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function d(e,t,n){if(e=u(e),!(this instanceof d))return new d(e,t,n);var o,s,a,l,p,m,v=c.slice(),y=typeof t,g=this,b=0;for("object"!==y&&"string"!==y&&(n=t,t=null),n&&"function"!=typeof n&&(n=i.parse),t=h(t),o=!(s=f(e||"")).protocol&&!s.slashes,g.slashes=s.slashes||o&&t.slashes,g.protocol=s.protocol||t.protocol||"",e=s.rest,s.slashes||(v[3]=[/(.*)/,"pathname"]);b<v.length;b++)"function"!=typeof(l=v[b])?(a=l[0],m=l[1],a!=a?g[m]=e:"string"==typeof a?~(p=e.indexOf(a))&&("number"==typeof l[2]?(g[m]=e.slice(0,p),e=e.slice(p+l[2])):(g[m]=e.slice(p),e=e.slice(0,p))):(p=a.exec(e))&&(g[m]=p[1],e=e.slice(0,p.index)),g[m]=g[m]||o&&l[3]&&t[m]||"",l[4]&&(g[m]=g[m].toLowerCase())):e=l(e);n&&(g.query=n(g.query)),o&&t.slashes&&"/"!==g.pathname.charAt(0)&&(""!==g.pathname||""!==t.pathname)&&(g.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),s++):s&&(0===r&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}(g.pathname,t.pathname)),r(g.port,g.protocol)||(g.host=g.hostname,g.port=""),g.username=g.password="",g.auth&&(l=g.auth.split(":"),g.username=l[0]||"",g.password=l[1]||""),g.origin=g.protocol&&g.host&&"file:"!==g.protocol?g.protocol+"//"+g.host:"null",g.href=g.toString()}d.prototype={set:function(e,t,n){var o=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||i.parse)(t)),o[e]=t;break;case"port":o[e]=t,r(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,/:\d+$/.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!n;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";o[e]=t.charAt(0)!==s?s+t:t}else o[e]=t;break;default:o[e]=t}for(var a=0;a<c.length;a++){var u=c[a];u[4]&&(o[u[1]]=o[u[1]].toLowerCase())}return o.origin=o.protocol&&o.host&&"file:"!==o.protocol?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"==typeof e||(e=i.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(n.slashes?"//":"");return n.username&&(o+=n.username,n.password&&(o+=":"+n.password),o+="@"),o+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}},d.extractProtocol=f,d.location=h,d.trimLeft=u,d.qs=i,e.exports=d},57147:function(e,t,n){"use strict";var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,s="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in r,u="ArrayBuffer"in r;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function v(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=v(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=v(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=h(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[h(e)]},p.prototype.get=function(e){return e=h(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(h(e))},p.prototype.set=function(e,t){this.map[h(e)]=f(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];x.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function A(e,t){return new Promise((function(n,i){var o=new w(e,t);if(o.signal&&o.signal.aborted)return i(new S("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new x(i,r))}),0)},a.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){i(new S("Aborted","AbortError"))}),0)},a.open(o.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":u&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof p?o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,f(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=p,r.Request=w,r.Response=x)},73897:function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports},85372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},63405:function(e,t,n){var r=n(73897);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},38416:function(e,t,n){var r=n(64062);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},79498:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},68872:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},12218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},42281:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,n){var r=n(18698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new O(r||[]);return s(o,"_invoke",{value:E(e,n,a)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p={};function m(){}function v(){}function y(){}var g={};h(g,u,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(C([])));_&&_!==n&&o.call(_,u)&&(g=_);var w=y.prototype=m.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,s,a,u){var c=d(e[i],e,s);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&o.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(h).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function C(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,s(w,"constructor",{value:y,configurable:!0}),s(y,"constructor",{value:v,configurable:!0}),v.displayName=h(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,h(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},k(x.prototype),h(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var s=new x(f(e,n,r,i),o);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(w),h(w,l,"Generator"),h(w,u,(function(){return this})),h(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,n){var r=n(85372),i=n(68872),o=n(86116),s=n(12218);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(63405),i=n(79498),o=n(86116),s=n(42281);e.exports=function(e){return r(e)||i(e)||o(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,n){var r=n(18698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,n){var r=n(18698).default,i=n(95036);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,n){var r=n(73897);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},64687:function(e,t,n){var r=n(17061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30907:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15861:function(e,t,n){"use strict";function r(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,u,"next",e)}function u(e){r(s,i,o,a,u,"throw",e)}a(void 0)}))}}n.d(t,{Z:function(){return i}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},92826:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(89611);function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,t,n){return o=i()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&(0,r.Z)(o,n.prototype),o},o.apply(null,arguments)}},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49142);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.Z)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(49142);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},61120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},60136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},44925:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},82963:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002),i=n(97326);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},70885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(40181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},42982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);var i=n(40181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(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.")}()}},49142:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);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)?(0,r.Z)(e,t):void 0}}},15214:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=h(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},f.apply(this,arguments)}n.d(t,{Z:function(){return Q}});var d={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function p(e){console.error("[Glide warn]: ".concat(e))}function m(e){return parseInt(e)}function v(e){return"string"==typeof e}function y(e){var t=r(e);return"function"===t||"object"===t&&!!e}function g(e){return"function"==typeof e}function b(e){return void 0===e}function _(e){return e.constructor===Array}function w(e,t,n){var r={};for(var i in t)g(t[i])?r[i]=t[i](e,r,n):p("Extension must be a function");for(var o in r)g(r[o].mount)&&r[o].mount();return r}function k(e,t,n){Object.defineProperty(e,t,n)}function x(e,t){var n=Object.assign({},e,t);return t.hasOwnProperty("classes")&&(n.classes=Object.assign({},e.classes,t.classes),t.classes.hasOwnProperty("direction")&&(n.classes.direction=Object.assign({},e.classes.direction,t.classes.direction)),t.classes.hasOwnProperty("type")&&(n.classes.type=Object.assign({},e.classes.type,t.classes.type)),t.classes.hasOwnProperty("slide")&&(n.classes.slide=Object.assign({},e.classes.slide,t.classes.slide)),t.classes.hasOwnProperty("arrow")&&(n.classes.arrow=Object.assign({},e.classes.arrow,t.classes.arrow)),t.classes.hasOwnProperty("nav")&&(n.classes.nav=Object.assign({},e.classes.nav,t.classes.nav))),t.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},e.breakpoints,t.breakpoints)),n}var E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.events=t,this.hop=t.hasOwnProperty}return s(e,[{key:"on",value:function(e,t){if(!_(e)){this.hop.call(this.events,e)||(this.events[e]=[]);var n=this.events[e].push(t)-1;return{remove:function(){delete this.events[e][n]}}}for(var r=0;r<e.length;r++)this.on(e[r],t)}},{key:"emit",value:function(e,t){if(_(e))for(var n=0;n<e.length;n++)this.emit(e[n],t);else this.hop.call(this.events,e)&&this.events[e].forEach((function(e){e(t||{})}))}}]),e}(),S=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this._c={},this._t=[],this._e=new E,this.disabled=!1,this.selector=t,this.settings=x(d,n),this.index=this.settings.startAt}return s(e,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),y(e)?this._c=w(this,e,this._e):p("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return _(e)?this._t=e:p("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=x(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(e){return this._c.Run.make(e),this}},{key:"move",value:function(e){return this._c.Transition.disable(),this._c.Move.make(e),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(e,t){return this._e.on(e,t),this}},{key:"isType",value:function(e){return this.settings.type===e}},{key:"settings",get:function(){return this._o},set:function(e){y(e)?this._o=e:p("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(e){this._i=m(e)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(e){this._d=!!e}}]),e}();function A(){return(new Date).getTime()}function T(e,t,n){var r,i,o,s,a=0;n||(n={});var u=function(){a=!1===n.leading?0:A(),r=null,s=e.apply(i,o),r||(i=o=null)},c=function(){var c=A();a||!1!==n.leading||(a=c);var l=t-(c-a);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),a=c,s=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,l)),s};return c.cancel=function(){clearTimeout(r),a=0,r=i=o=null},c}var O={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function C(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function P(e){return!!(e&&e instanceof window.HTMLElement)}function N(e){return Array.prototype.slice.call(e)}var M='[data-glide-el="track"]';var I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.listeners=t}return s(e,[{key:"on",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];v(e)&&(e=[e]);for(var i=0;i<e.length;i++)this.listeners[e[i]]=n,t.addEventListener(e[i],this.listeners[e[i]],r)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(e)&&(e=[e]);for(var r=0;r<e.length;r++)t.removeEventListener(e[r],this.listeners[e[r]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),e}();var D=["ltr","rtl"],j={">":"<","<":">","=":"="};function L(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}function R(e,t){return{modify:function(e){var n=Math.floor(e/t.Sizes.slideWidth);return e+t.Gaps.value*n}}}function F(e,t){return{modify:function(e){return e+t.Clones.grow/2}}}function B(e,t){return{modify:function(n){if(e.settings.focusAt>=0){var r=t.Peek.value;return y(r)?n-r.before:n-r}return n}}}function q(e,t){return{modify:function(n){var r=t.Gaps.value,i=t.Sizes.width,o=e.settings.focusAt,s=t.Sizes.slideWidth;return"center"===o?n-(i/2-s/2):n-s*o-r*o}}}var U=!1;try{var z=Object.defineProperty({},"passive",{get:function(){U=!0}});window.addEventListener("testPassive",null,z),window.removeEventListener("testPassive",null,z)}catch(e){}var V=U,H=["touchstart","mousedown"],K=["touchmove","mousemove"],W=["touchend","touchcancel","mouseup","mouseleave"],$=["mousedown","mousemove","mouseup","mouseleave"];var G='[data-glide-el^="controls"]',Y="".concat(G,' [data-glide-dir*="<"]'),J="".concat(G,' [data-glide-dir*=">"]');function Z(e){return y(e)?(t=e,Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e[n],e}),{})):(p("Breakpoints option must be an object"),{});var t}var X={Html:function(e,t,n){var r={mount:function(){this.root=e.selector,this.track=this.root.querySelector(M),this.collectSlides()},collectSlides:function(){this.slides=N(this.wrapper.children).filter((function(t){return!t.classList.contains(e.settings.classes.slide.clone)}))}};return k(r,"root",{get:function(){return r._r},set:function(e){v(e)&&(e=document.querySelector(e)),P(e)?r._r=e:p("Root element must be a existing Html node")}}),k(r,"track",{get:function(){return r._t},set:function(e){P(e)?r._t=e:p("Could not find track element. Please use ".concat(M," attribute."))}}),k(r,"wrapper",{get:function(){return r.track.children[0]}}),n.on("update",(function(){r.collectSlides()})),r},Translate:function(e,t,n){var r={set:function(n){var r=function(e,t,n){var r=[R,F,B,q].concat(e._t,[L]);return{mutate:function(i){for(var o=0;o<r.length;o++){var s=r[o];g(s)&&g(s().modify)?i=s(e,t,n).modify(i):p("Transformer should be a function that returns an object with `modify()` method")}return i}}}(e,t).mutate(n),i="translate3d(".concat(-1*r,"px, 0px, 0px)");t.Html.wrapper.style.mozTransform=i,t.Html.wrapper.style.webkitTransform=i,t.Html.wrapper.style.transform=i},remove:function(){t.Html.wrapper.style.transform=""},getStartIndex:function(){var n=t.Sizes.length,r=e.index,i=e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?n+(r-i):(r+i)%n},getTravelDistance:function(){var n=t.Sizes.slideWidth*e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?-1*n:n}};return n.on("move",(function(i){if(!e.isType("carousel")||!t.Run.isOffset())return r.set(i.movement);t.Transition.after((function(){n.emit("translate.jump"),r.set(t.Sizes.slideWidth*e.index)}));var o=t.Sizes.slideWidth*t.Translate.getStartIndex();return r.set(o-t.Translate.getTravelDistance())})),n.on("destroy",(function(){r.remove()})),r},Transition:function(e,t,n){var r=!1,i={compose:function(t){var n=e.settings;return r?"".concat(t," 0ms ").concat(n.animationTimingFunc):"".concat(t," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";t.Html.wrapper.style.transition=this.compose(e)},remove:function(){t.Html.wrapper.style.transition=""},after:function(e){setTimeout((function(){e()}),this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return k(i,"duration",{get:function(){var n=e.settings;return e.isType("slider")&&t.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",(function(){i.set()})),n.on(["build.before","resize","translate.jump"],(function(){i.disable()})),n.on("run",(function(){i.enable()})),n.on("destroy",(function(){i.remove()})),i},Direction:function(e,t,n){var r={mount:function(){this.value=e.settings.direction},resolve:function(e){var t=e.slice(0,1);return this.is("rtl")?e.split(t).join(j[t]):e},is:function(e){return this.value===e},addClass:function(){t.Html.root.classList.add(e.settings.classes.direction[this.value])},removeClass:function(){t.Html.root.classList.remove(e.settings.classes.direction[this.value])}};return k(r,"value",{get:function(){return r._v},set:function(e){D.indexOf(e)>-1?r._v=e:p("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],(function(){r.removeClass()})),n.on("update",(function(){r.mount()})),n.on(["build.before","update"],(function(){r.addClass()})),r},Peek:function(e,t,n){var r={mount:function(){this.value=e.settings.peek}};return k(r,"value",{get:function(){return r._v},set:function(e){y(e)?(e.before=m(e.before),e.after=m(e.after)):e=m(e),r._v=e}}),k(r,"reductor",{get:function(){var t=r.value,n=e.settings.perView;return y(t)?t.before/n+t.after/n:2*t/n}}),n.on(["resize","update"],(function(){r.mount()})),r},Sizes:function(e,t,n){var r={setupSlides:function(){for(var e="".concat(this.slideWidth,"px"),n=t.Html.slides,r=0;r<n.length;r++)n[r].style.width=e},setupWrapper:function(){t.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var e=t.Html.slides,n=0;n<e.length;n++)e[n].style.width="";t.Html.wrapper.style.width=""}};return k(r,"length",{get:function(){return t.Html.slides.length}}),k(r,"width",{get:function(){return t.Html.track.offsetWidth}}),k(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+t.Gaps.grow+t.Clones.grow}}),k(r,"slideWidth",{get:function(){return r.width/e.settings.perView-t.Peek.reductor-t.Gaps.reductor}}),n.on(["build.before","resize","update"],(function(){r.setupSlides(),r.setupWrapper()})),n.on("destroy",(function(){r.remove()})),r},Gaps:function(e,t,n){var r={apply:function(e){for(var n=0,r=e.length;n<r;n++){var i=e[n].style,o=t.Direction.value;i[O[o][0]]=0!==n?"".concat(this.value/2,"px"):"",n!==e.length-1?i[O[o][1]]="".concat(this.value/2,"px"):i[O[o][1]]=""}},remove:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t].style;r.marginLeft="",r.marginRight=""}}};return k(r,"value",{get:function(){return m(e.settings.gap)}}),k(r,"grow",{get:function(){return r.value*t.Sizes.length}}),k(r,"reductor",{get:function(){var t=e.settings.perView;return r.value*(t-1)/t}}),n.on(["build.after","update"],T((function(){r.apply(t.Html.wrapper.children)}),30)),n.on("destroy",(function(){r.remove(t.Html.wrapper.children)})),r},Move:function(e,t,n){var r={mount:function(){this._o=0},make:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=r,n.emit("move",{movement:this.value}),t.Transition.after((function(){n.emit("move.after",{movement:e.value})}))}};return k(r,"offset",{get:function(){return r._o},set:function(e){r._o=b(e)?0:m(e)}}),k(r,"translate",{get:function(){return t.Sizes.slideWidth*e.index}}),k(r,"value",{get:function(){var e=this.offset,n=this.translate;return t.Direction.is("rtl")?n+e:n-e}}),n.on(["build.before","run"],(function(){r.make()})),r},Clones:function(e,t,n){var r={mount:function(){this.items=[],e.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=t.Html.slides,i=e.settings,o=i.perView,s=i.classes,a=i.cloningRatio;if(0!==r.length)for(var u=+!!e.settings.peek,c=o+u+Math.round(o/2),l=r.slice(0,c).reverse(),h=r.slice(-1*c),f=0;f<Math.max(a,Math.floor(o/r.length));f++){for(var d=0;d<l.length;d++){var p=l[d].cloneNode(!0);p.classList.add(s.slide.clone),n.push(p)}for(var m=0;m<h.length;m++){var v=h[m].cloneNode(!0);v.classList.add(s.slide.clone),n.unshift(v)}}return n},append:function(){for(var e=this.items,n=t.Html,r=n.wrapper,i=n.slides,o=Math.floor(e.length/2),s=e.slice(0,o).reverse(),a=e.slice(-1*o).reverse(),u="".concat(t.Sizes.slideWidth,"px"),c=0;c<a.length;c++)r.appendChild(a[c]);for(var l=0;l<s.length;l++)r.insertBefore(s[l],i[0]);for(var h=0;h<e.length;h++)e[h].style.width=u},remove:function(){for(var e=this.items,n=0;n<e.length;n++)t.Html.wrapper.removeChild(e[n])}};return k(r,"grow",{get:function(){return(t.Sizes.slideWidth+t.Gaps.value)*r.items.length}}),n.on("update",(function(){r.remove(),r.mount(),r.append()})),n.on("build.before",(function(){e.isType("carousel")&&r.append()})),n.on("destroy",(function(){r.remove()})),r},Resize:function(e,t,n){var r=new I,i={mount:function(){this.bind()},bind:function(){r.on("resize",window,T((function(){n.emit("resize")}),e.settings.throttle))},unbind:function(){r.off("resize",window)}};return n.on("destroy",(function(){i.unbind(),r.destroy()})),i},Build:function(e,t,n){var r={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){t.Html.root.classList.add(e.settings.classes.type[e.settings.type])},activeClass:function(){var n=e.settings.classes,r=t.Html.slides[e.index];r&&(r.classList.add(n.slide.active),C(r).forEach((function(e){e.classList.remove(n.slide.active)})))},removeClasses:function(){var n=e.settings.classes,r=n.type,i=n.slide;t.Html.root.classList.remove(r[e.settings.type]),t.Html.slides.forEach((function(e){e.classList.remove(i.active)}))}};return n.on(["destroy","update"],(function(){r.removeClasses()})),n.on(["resize","update"],(function(){r.mount()})),n.on("move.after",(function(){r.activeClass()})),r},Run:function(e,t,n){var r={mount:function(){this._o=!1},make:function(r){var i=this;e.disabled||(!e.settings.waitForTransition||e.disable(),this.move=r,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),t.Transition.after((function(){i.isStart()&&n.emit("run.start",i.move),i.isEnd()&&n.emit("run.end",i.move),i.isOffset()&&(i._o=!1,n.emit("run.offset",i.move)),n.emit("run.after",i.move),e.enable()})))},calculate:function(){var t=this.move,n=this.length,i=t.steps,o=t.direction,s=1;if("="===o)return e.settings.bound&&m(i)>n?void(e.index=n):void(e.index=i);if(">"!==o||">"!==i)if("<"!==o||"<"!==i){if("|"===o&&(s=e.settings.perView||1),">"===o||"|"===o&&">"===i){var a=function(t){var n=e.index;if(e.isType("carousel"))return n+t;return n+(t-n%t)}(s);return a>n&&(this._o=!0),void(e.index=function(t,n){var i=r.length;if(t<=i)return t;if(e.isType("carousel"))return t-(i+1);if(e.settings.rewind)return r.isBound()&&!r.isEnd()?i:0;if(r.isBound())return i;return Math.floor(i/n)*n}(a,s))}if("<"===o||"|"===o&&"<"===i){var u=function(t){var n=e.index;if(e.isType("carousel"))return n-t;return(Math.ceil(n/t)-1)*t}(s);return u<0&&(this._o=!0),void(e.index=function(t,n){var i=r.length;if(t>=0)return t;if(e.isType("carousel"))return t+(i+1);if(e.settings.rewind)return r.isBound()&&r.isStart()?i:Math.floor(i/n)*n;return 0}(u,s))}p("Invalid direction pattern [".concat(o).concat(i,"] has been used"))}else e.index=0;else e.index=n},isStart:function(){return e.index<=0},isEnd:function(){return e.index>=this.length},isOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return e?!!this._o&&("|>"===e?"|"===this.move.direction&&">"===this.move.steps:"|<"===e?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===e):this._o},isBound:function(){return e.isType("slider")&&"center"!==e.settings.focusAt&&e.settings.bound}};return k(r,"move",{get:function(){return this._m},set:function(e){var t=e.substr(1);this._m={direction:e.substr(0,1),steps:t?m(t)?m(t):t:0}}}),k(r,"length",{get:function(){var n=e.settings,r=t.Html.slides.length;return this.isBound()?r-1-(m(n.perView)-1)+m(n.focusAt):r-1}}),k(r,"offset",{get:function(){return this._o}}),r},Swipe:function(e,t,n){var r=new I,i=0,o=0,s=0,a=!1,u=!!V&&{passive:!0},c={mount:function(){this.bindSwipeStart()},start:function(t){if(!a&&!e.disabled){this.disable();var r=this.touches(t);i=null,o=m(r.pageX),s=m(r.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(r){if(!e.disabled){var a=e.settings,u=a.touchAngle,c=a.touchRatio,l=a.classes,h=this.touches(r),f=m(h.pageX)-o,d=m(h.pageY)-s,p=Math.abs(f<<2),v=Math.abs(d<<2),y=Math.sqrt(p+v),g=Math.sqrt(v);if(!(180*(i=Math.asin(g/y))/Math.PI<u))return!1;r.stopPropagation(),t.Move.make(f*parseFloat(c)),t.Html.root.classList.add(l.dragging),n.emit("swipe.move")}},end:function(r){if(!e.disabled){var s=e.settings,a=s.perSwipe,u=s.touchAngle,c=s.classes,l=this.touches(r),h=this.threshold(r),f=l.pageX-o,d=180*i/Math.PI;this.enable(),f>h&&d<u?t.Run.make(t.Direction.resolve("".concat(a,"<"))):f<-h&&d<u?t.Run.make(t.Direction.resolve("".concat(a,">"))):t.Move.make(),t.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,i=e.settings,o=i.swipeThreshold,s=i.dragThreshold;o&&r.on(H[0],t.Html.wrapper,(function(e){n.start(e)}),u),s&&r.on(H[1],t.Html.wrapper,(function(e){n.start(e)}),u)},unbindSwipeStart:function(){r.off(H[0],t.Html.wrapper,u),r.off(H[1],t.Html.wrapper,u)},bindSwipeMove:function(){var n=this;r.on(K,t.Html.wrapper,T((function(e){n.move(e)}),e.settings.throttle),u)},unbindSwipeMove:function(){r.off(K,t.Html.wrapper,u)},bindSwipeEnd:function(){var e=this;r.on(W,t.Html.wrapper,(function(t){e.end(t)}))},unbindSwipeEnd:function(){r.off(W,t.Html.wrapper)},touches:function(e){return $.indexOf(e.type)>-1?e:e.touches[0]||e.changedTouches[0]},threshold:function(t){var n=e.settings;return $.indexOf(t.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return a=!1,t.Transition.enable(),this},disable:function(){return a=!0,t.Transition.disable(),this}};return n.on("build.after",(function(){t.Html.root.classList.add(e.settings.classes.swipeable)})),n.on("destroy",(function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),r.destroy()})),c},Images:function(e,t,n){var r=new I,i={mount:function(){this.bind()},bind:function(){r.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){r.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return n.on("destroy",(function(){i.unbind(),r.destroy()})),i},Anchors:function(e,t,n){var r=new I,i=!1,o=!1,s={mount:function(){this._a=t.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",t.Html.wrapper,this.click)},unbind:function(){r.off("click",t.Html.wrapper)},click:function(e){o&&(e.stopPropagation(),e.preventDefault())},detach:function(){if(o=!0,!i){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!1;i=!0}return this},attach:function(){if(o=!1,i){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!0;i=!1}return this}};return k(s,"items",{get:function(){return s._a}}),n.on("swipe.move",(function(){s.detach()})),n.on("swipe.end",(function(){t.Transition.after((function(){s.attach()}))})),n.on("destroy",(function(){s.attach(),s.unbind(),r.destroy()})),s},Controls:function(e,t,n){var r=new I,i=!!V&&{passive:!0},o={mount:function(){this._n=t.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=t.Html.root.querySelectorAll(G),this._arrowControls={previous:t.Html.root.querySelectorAll(Y),next:t.Html.root.querySelectorAll(J)},this.addBindings()},setActive:function(){for(var e=0;e<this._n.length;e++)this.addClass(this._n[e].children)},removeActive:function(){for(var e=0;e<this._n.length;e++)this.removeClass(this._n[e].children)},addClass:function(t){var n=e.settings,r=t[e.index];r&&r&&(r.classList.add(n.classes.nav.active),C(r).forEach((function(e){e.classList.remove(n.classes.nav.active)})))},removeClass:function(t){var n=t[e.index];n&&n.classList.remove(e.settings.classes.nav.active)},setArrowState:function(){if(!e.settings.rewind){var n=o._arrowControls.next,r=o._arrowControls.previous;this.resetArrowState(n,r),0===e.index&&this.disableArrow(r),e.index===t.Run.length&&this.disableArrow(n)}},resetArrowState:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.forEach((function(e){N(e).forEach((function(e){e.classList.remove(t.classes.arrow.disabled)}))}))},disableArrow:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.forEach((function(e){N(e).forEach((function(e){e.classList.add(t.classes.arrow.disabled)}))}))},addBindings:function(){for(var e=0;e<this._c.length;e++)this.bind(this._c[e].children)},removeBindings:function(){for(var e=0;e<this._c.length;e++)this.unbind(this._c[e].children)},bind:function(e){for(var t=0;t<e.length;t++)r.on("click",e[t],this.click),r.on("touchstart",e[t],this.click,i)},unbind:function(e){for(var t=0;t<e.length;t++)r.off(["click","touchstart"],e[t])},click:function(e){V||"touchstart"!==e.type||e.preventDefault();var n=e.currentTarget.getAttribute("data-glide-dir");t.Run.make(t.Direction.resolve(n))}};return k(o,"items",{get:function(){return o._c}}),n.on(["mount.after","move.after"],(function(){o.setActive()})),n.on(["mount.after","run"],(function(){o.setArrowState()})),n.on("destroy",(function(){o.removeBindings(),o.removeActive(),r.destroy()})),o},Keyboard:function(e,t,n){var r=new I,i={mount:function(){e.settings.keyboard&&this.bind()},bind:function(){r.on("keyup",document,this.press)},unbind:function(){r.off("keyup",document)},press:function(n){var r=e.settings.perSwipe;"ArrowRight"===n.code&&t.Run.make(t.Direction.resolve("".concat(r,">"))),"ArrowLeft"===n.code&&t.Run.make(t.Direction.resolve("".concat(r,"<")))}};return n.on(["destroy","update"],(function(){i.unbind()})),n.on("update",(function(){i.mount()})),n.on("destroy",(function(){r.destroy()})),i},Autoplay:function(e,t,n){var r=new I,i={mount:function(){this.enable(),this.start(),e.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var r=this;this._e&&(this.enable(),e.settings.autoplay&&b(this._i)&&(this._i=setInterval((function(){r.stop(),t.Run.make(">"),r.start(),n.emit("autoplay")}),this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;r.on("mouseover",t.Html.root,(function(){e._e&&e.stop()})),r.on("mouseout",t.Html.root,(function(){e._e&&e.start()}))},unbind:function(){r.off(["mouseover","mouseout"],t.Html.root)}};return k(i,"time",{get:function(){var n=t.Html.slides[e.index].getAttribute("data-glide-autoplay");return m(n||e.settings.autoplay)}}),n.on(["destroy","update"],(function(){i.unbind()})),n.on(["run.before","swipe.start","update"],(function(){i.stop()})),n.on(["pause","destroy"],(function(){i.disable(),i.stop()})),n.on(["run.after","swipe.end"],(function(){i.start()})),n.on(["play"],(function(){i.enable(),i.start()})),n.on("update",(function(){i.mount()})),n.on("destroy",(function(){r.destroy()})),i},Breakpoints:function(e,t,n){var r=new I,i=e.settings,o=Z(i.breakpoints),s=Object.assign({},i),a={match:function(e){if(void 0!==window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: ".concat(t,"px)")).matches)return e[t];return s}};return Object.assign(i,a.match(o)),r.on("resize",window,T((function(){e.settings=x(i,a.match(o))}),e.settings.throttle)),n.on("update",(function(){o=Z(o),s=Object.assign({},i)})),n.on("destroy",(function(){r.off("resize",window)})),a}},Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e);var t=l(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(a(n.prototype),"mount",this).call(this,Object.assign({},X,e))}}]),n}(S)},17977:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.d(t,{ZX:function(){return y}});function s(e){return"string"==typeof e}function a(e,t,n){Object.defineProperty(e,t,n)}function u(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function c(e){return Array.prototype.slice.call(e)}var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.listeners=t}return o(e,[{key:"on",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s(e)&&(e=[e]);for(var i=0;i<e.length;i++)this.listeners[e[i]]=n,t.addEventListener(e[i],this.listeners[e[i]],r)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(e)&&(e=[e]);for(var r=0;r<e.length;r++)t.removeEventListener(e[r],this.listeners[e[r]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),e}();var h=!1;try{var f=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("testPassive",null,f),window.removeEventListener("testPassive",null,f)}catch(e){}var d=h;var p='[data-glide-el^="controls"]',m="".concat(p,' [data-glide-dir*="<"]'),v="".concat(p,' [data-glide-dir*=">"]');function y(e,t,n){var r=new l,i=!!d&&{passive:!0},o={mount:function(){this._n=t.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=t.Html.root.querySelectorAll(p),this._arrowControls={previous:t.Html.root.querySelectorAll(m),next:t.Html.root.querySelectorAll(v)},this.addBindings()},setActive:function(){for(var e=0;e<this._n.length;e++)this.addClass(this._n[e].children)},removeActive:function(){for(var e=0;e<this._n.length;e++)this.removeClass(this._n[e].children)},addClass:function(t){var n=e.settings,r=t[e.index];r&&r&&(r.classList.add(n.classes.nav.active),u(r).forEach((function(e){e.classList.remove(n.classes.nav.active)})))},removeClass:function(t){var n=t[e.index];n&&n.classList.remove(e.settings.classes.nav.active)},setArrowState:function(){if(!e.settings.rewind){var n=o._arrowControls.next,r=o._arrowControls.previous;this.resetArrowState(n,r),0===e.index&&this.disableArrow(r),e.index===t.Run.length&&this.disableArrow(n)}},resetArrowState:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.forEach((function(e){c(e).forEach((function(e){e.classList.remove(t.classes.arrow.disabled)}))}))},disableArrow:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.forEach((function(e){c(e).forEach((function(e){e.classList.add(t.classes.arrow.disabled)}))}))},addBindings:function(){for(var e=0;e<this._c.length;e++)this.bind(this._c[e].children)},removeBindings:function(){for(var e=0;e<this._c.length;e++)this.unbind(this._c[e].children)},bind:function(e){for(var t=0;t<e.length;t++)r.on("click",e[t],this.click),r.on("touchstart",e[t],this.click,i)},unbind:function(e){for(var t=0;t<e.length;t++)r.off(["click","touchstart"],e[t])},click:function(e){d||"touchstart"!==e.type||e.preventDefault();var n=e.currentTarget.getAttribute("data-glide-dir");t.Run.make(t.Direction.resolve(n))}};return a(o,"items",{get:function(){return o._c}}),n.on(["mount.after","move.after"],(function(){o.setActive()})),n.on(["mount.after","run"],(function(){o.setArrowState()})),n.on("destroy",(function(){o.removeBindings(),o.removeActive(),r.destroy()})),o}},5306:function(e){"use strict";e.exports=JSON.parse('{"USD":{"symbol":"$","name":"sh.fi.currencies_USD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"USD","name_plural":"sh.fi.currencies_USD_plural"},"CAD":{"symbol":"CA$","name":"sh.fi.currencies_CAD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"CAD","name_plural":"sh.fi.currencies_CAD_plural"},"EUR":{"symbol":"€","name":"sh.fi.currencies_EUR","symbol_native":"€","decimal_digits":2,"rounding":0,"code":"EUR","name_plural":"sh.fi.currencies_EUR_plural"},"AED":{"symbol":"AED","name":"sh.fi.currencies_AED","symbol_native":"د.إ.‏","decimal_digits":2,"rounding":0,"code":"AED","name_plural":"sh.fi.currencies_AED_plural"},"AFN":{"symbol":"Af","name":"sh.fi.currencies_AFN","symbol_native":"؋","decimal_digits":0,"rounding":0,"code":"AFN","name_plural":"sh.fi.currencies_AFN_plural"},"ALL":{"symbol":"ALL","name":"sh.fi.currencies_ALL","symbol_native":"Lek","decimal_digits":0,"rounding":0,"code":"ALL","name_plural":"sh.fi.currencies_ALL_plural"},"AMD":{"symbol":"AMD","name":"sh.fi.currencies_AMD","symbol_native":"դր.","decimal_digits":0,"rounding":0,"code":"AMD","name_plural":"sh.fi.currencies_AMD_plural"},"ANG":{"symbol":"ƒ","name":"sh.fi.currencies_ANG","symbol_native":"ƒ","decimal_digits":0,"rounding":0,"code":"ANG","name_plural":"sh.fi.currencies_ANG_plural"},"AOA":{"symbol":"Kz","name":"sh.fi.currencies_AOA","symbol_native":"Kz","decimal_digits":0,"rounding":0,"code":"AOA","name_plural":"sh.fi.currencies_AOA_plural"},"ARS":{"symbol":"AR$","name":"sh.fi.currencies_ARS","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"ARS","name_plural":"sh.fi.currencies_ARS_plural"},"AUD":{"symbol":"AU$","name":"sh.fi.currencies_AUD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"AUD","name_plural":"sh.fi.currencies_AUD_plural"},"AWG":{"symbol":"ƒ","name":"sh.fi.currencies_AWG","symbol_native":"ƒ","decimal_digits":2,"rounding":0,"code":"AWG","name_plural":"sh.fi.currencies_AWG_plural"},"AZN":{"symbol":"man.","name":"sh.fi.currencies_AZN","symbol_native":"ман.","decimal_digits":2,"rounding":0,"code":"AZN","name_plural":"sh.fi.currencies_AZN_plural"},"BAM":{"symbol":"KM","name":"sh.fi.currencies_BAM","symbol_native":"KM","decimal_digits":2,"rounding":0,"code":"BAM","name_plural":"sh.fi.currencies_BAM_plural"},"BBD":{"symbol":"$","name":"sh.fi.currencies_BBD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"BBD","name_plural":"sh.fi.currencies_BBD_plural"},"BDT":{"symbol":"Tk","name":"sh.fi.currencies_BDT","symbol_native":"৳","decimal_digits":2,"rounding":0,"code":"BDT","name_plural":"sh.fi.currencies_BDT_plural"},"BGN":{"symbol":"BGN","name":"sh.fi.currencies_BGN","symbol_native":"лв.","decimal_digits":2,"rounding":0,"code":"BGN","name_plural":"sh.fi.currencies_BGN_plural"},"BHD":{"symbol":"BD","name":"sh.fi.currencies_BHD","symbol_native":"د.ب.‏","decimal_digits":3,"rounding":0,"code":"BHD","name_plural":"sh.fi.currencies_BHD_plural"},"BIF":{"symbol":"FBu","name":"sh.fi.currencies_BIF","symbol_native":"FBu","decimal_digits":0,"rounding":0,"code":"BIF","name_plural":"sh.fi.currencies_BIF_plural"},"BND":{"symbol":"BN$","name":"sh.fi.currencies_BND","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"BND","name_plural":"sh.fi.currencies_BND_plural"},"BMD":{"symbol":"$","name":"sh.fi.currencies_BMD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"BMD","name_plural":"sh.fi.currencies_BMD_plural"},"BOB":{"symbol":"Bs","name":"sh.fi.currencies_BOB","symbol_native":"Bs","decimal_digits":2,"rounding":0,"code":"BOB","name_plural":"sh.fi.currencies_BOB_plural"},"BOV":{"symbol":"BOV","name":"sh.fi.currencies_BOV","symbol_native":"BOV","decimal_digits":2,"rounding":0,"code":"BOV","name_plural":"sh.fi.currencies_BOV_plural"},"BRL":{"symbol":"R$","name":"sh.fi.currencies_BRL","symbol_native":"R$","decimal_digits":2,"rounding":0,"code":"BRL","name_plural":"sh.fi.currencies_BRL_plural"},"BSD":{"symbol":"$","name":"sh.fi.currencies_BSD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"BSD","name_plural":"sh.fi.currencies_BSD_plural"},"BTN":{"symbol":"Nu","name":"sh.fi.currencies_BTN","symbol_native":"Nu","decimal_digits":2,"rounding":0,"code":"BTN","name_plural":"sh.fi.currencies_BTN_plural"},"BWP":{"symbol":"BWP","name":"sh.fi.currencies_BWP","symbol_native":"P","decimal_digits":2,"rounding":0,"code":"BWP","name_plural":"sh.fi.currencies_BWP_plural"},"BYR":{"symbol":"BYR","name":"sh.fi.currencies_BYR","symbol_native":"BYR","decimal_digits":0,"rounding":0,"code":"BYR","name_plural":"sh.fi.currencies_BYR_plural"},"BZD":{"symbol":"BZ$","name":"sh.fi.currencies_BZD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"BZD","name_plural":"sh.fi.currencies_BZD_plural"},"CDF":{"symbol":"CDF","name":"sh.fi.currencies_CDF","symbol_native":"FrCD","decimal_digits":2,"rounding":0,"code":"CDF","name_plural":"sh.fi.currencies_CDF_plural"},"CHE":{"symbol":"CHE","name":"sh.fi.currencies_CHE","symbol_native":"CHE","decimal_digits":2,"rounding":0,"code":"CHE","name_plural":"sh.fi.currencies_CHE_plural"},"CHF":{"symbol":"CHF","name":"sh.fi.currencies_CHF","symbol_native":"CHF","decimal_digits":2,"rounding":0.05,"code":"CHF","name_plural":"sh.fi.currencies_CHF_plural"},"CHW":{"symbol":"CHW","name":"sh.fi.currencies_CHW","symbol_native":"CHW","decimal_digits":2,"rounding":0.05,"code":"CHW","name_plural":"sh.fi.currencies_CHW_plural"},"CLF":{"symbol":"CLF","name":"sh.fi.currencies_CLF","symbol_native":"CLF","decimal_digits":2,"rounding":0.05,"code":"CLF","name_plural":"sh.fi.currencies_CLF_plural"},"CLP":{"symbol":"CL$","name":"sh.fi.currencies_CLP","symbol_native":"$","decimal_digits":0,"rounding":0,"code":"CLP","name_plural":"sh.fi.currencies_CLP_plural"},"CNY":{"symbol":"CN¥","name":"sh.fi.currencies_CNY","symbol_native":"CN¥","decimal_digits":2,"rounding":0,"code":"CNY","name_plural":"sh.fi.currencies_CNY_plural"},"COP":{"symbol":"CO$","name":"sh.fi.currencies_COP","symbol_native":"$","decimal_digits":0,"rounding":0,"code":"COP","name_plural":"sh.fi.currencies_COP_plural"},"COU":{"symbol":"COU","name":"sh.fi.currencies_COU","symbol_native":"COU","decimal_digits":0,"rounding":0,"code":"COU","name_plural":"sh.fi.currencies_COU_plural"},"CRC":{"symbol":"₡","name":"sh.fi.currencies_CRC","symbol_native":"₡","decimal_digits":0,"rounding":0,"code":"CRC","name_plural":"sh.fi.currencies_CRC_plural"},"CUP":{"symbol":"$","name":"sh.fi.currencies_CUP","symbol_native":"$","decimal_digits":0,"rounding":0,"code":"CUP","name_plural":"sh.fi.currencies_CUP_plural"},"CVE":{"symbol":"CV$","name":"sh.fi.currencies_CVE","symbol_native":"CV$","decimal_digits":2,"rounding":0,"code":"CVE","name_plural":"sh.fi.currencies_CVE_plural"},"CZK":{"symbol":"Kč","name":"sh.fi.currencies_CZK","symbol_native":"Kč","decimal_digits":2,"rounding":0,"code":"CZK","name_plural":"sh.fi.currencies_CZK_plural"},"DJF":{"symbol":"Fdj","name":"sh.fi.currencies_DJF","symbol_native":"Fdj","decimal_digits":0,"rounding":0,"code":"DJF","name_plural":"sh.fi.currencies_DJF_plural"},"DKK":{"symbol":"Dkr","name":"sh.fi.currencies_DKK","symbol_native":"kr","decimal_digits":2,"rounding":0,"code":"DKK","name_plural":"sh.fi.currencies_DKK_plural"},"DOP":{"symbol":"RD$","name":"sh.fi.currencies_DOP","symbol_native":"RD$","decimal_digits":2,"rounding":0,"code":"DOP","name_plural":"sh.fi.currencies_DOP_plural"},"DZD":{"symbol":"DA","name":"sh.fi.currencies_DZD","symbol_native":"د.ج.‏","decimal_digits":2,"rounding":0,"code":"DZD","name_plural":"sh.fi.currencies_DZD_plural"},"EEK":{"symbol":"EEK","name":"sh.fi.currencies_EEK","symbol_native":"kr","decimal_digits":2,"rounding":0,"code":"EEK","name_plural":"sh.fi.currencies_EEK_plural"},"EGP":{"symbol":"EGP","name":"sh.fi.currencies_EGP","symbol_native":"ج.م.‏","decimal_digits":2,"rounding":0,"code":"EGP","name_plural":"sh.fi.currencies_EGP_plural"},"ERN":{"symbol":"Nfk","name":"sh.fi.currencies_ERN","symbol_native":"Nfk","decimal_digits":2,"rounding":0,"code":"ERN","name_plural":"sh.fi.currencies_ERN_plural"},"ETB":{"symbol":"Br","name":"sh.fi.currencies_ETB","symbol_native":"Br","decimal_digits":2,"rounding":0,"code":"ETB","name_plural":"sh.fi.currencies_ETB_plural"},"FJD":{"symbol":"$","name":"sh.fi.currencies_FJD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"FJD","name_plural":"sh.fi.currencies_FJD_plural"},"FKP":{"symbol":"£","name":"sh.fi.currencies_FKP","symbol_native":"£","decimal_digits":2,"rounding":0,"code":"FKP","name_plural":"sh.fi.currencies_FKP_plural"},"GBP":{"symbol":"£","name":"sh.fi.currencies_GBP","symbol_native":"£","decimal_digits":2,"rounding":0,"code":"GBP","name_plural":"sh.fi.currencies_GBP_plural"},"GEL":{"symbol":"GEL","name":"sh.fi.currencies_GEL","symbol_native":"GEL","decimal_digits":2,"rounding":0,"code":"GEL","name_plural":"sh.fi.currencies_GEL_plural"},"GHS":{"symbol":"GH₵","name":"sh.fi.currencies_GHS","symbol_native":"GH₵","decimal_digits":2,"rounding":0,"code":"GHS","name_plural":"sh.fi.currencies_GHS_plural"},"GIP":{"symbol":"£","name":"sh.fi.currencies_GIP","symbol_native":"£","decimal_digits":2,"rounding":0,"code":"GIP","name_plural":"sh.fi.currencies_GIP_plural"},"GMD":{"symbol":"D","name":"sh.fi.currencies_GMD","symbol_native":"D","decimal_digits":2,"rounding":0,"code":"GMD","name_plural":"sh.fi.currencies_GMD_plural"},"GNF":{"symbol":"FG","name":"sh.fi.currencies_GNF","symbol_native":"FG","decimal_digits":0,"rounding":0,"code":"GNF","name_plural":"sh.fi.currencies_GNF_plural"},"GTQ":{"symbol":"GTQ","name":"sh.fi.currencies_GTQ","symbol_native":"Q","decimal_digits":2,"rounding":0,"code":"GTQ","name_plural":"sh.fi.currencies_GTQ_plural"},"GWP":{"symbol":"GWP","name":"sh.fi.currencies_GWP","symbol_native":"GWP","decimal_digits":2,"rounding":0,"code":"GWP","name_plural":"sh.fi.currencies_GWP_plural"},"GYD":{"symbol":"$","name":"sh.fi.currencies_GYD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"GYD","name_plural":"sh.fi.currencies_GYD_plural"},"HKD":{"symbol":"HK$","name":"sh.fi.currencies_HKD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"HKD","name_plural":"sh.fi.currencies_HKD_plural"},"HNL":{"symbol":"HNL","name":"sh.fi.currencies_HNL","symbol_native":"L","decimal_digits":2,"rounding":0,"code":"HNL","name_plural":"sh.fi.currencies_HNL_plural"},"HRK":{"symbol":"kn","name":"sh.fi.currencies_HRK","symbol_native":"kn","decimal_digits":2,"rounding":0,"code":"HRK","name_plural":"sh.fi.currencies_HRK_plural"},"HTG":{"symbol":"G","name":"sh.fi.currencies_HTG","symbol_native":"G","decimal_digits":2,"rounding":0,"code":"HTG","name_plural":"sh.fi.currencies_HTG_plural"},"HUF":{"symbol":"Ft","name":"sh.fi.currencies_HUF","symbol_native":"Ft","decimal_digits":0,"rounding":0,"code":"HUF","name_plural":"sh.fi.currencies_HUF_plural"},"IDR":{"symbol":"Rp","name":"sh.fi.currencies_IDR","symbol_native":"Rp","decimal_digits":0,"rounding":0,"code":"IDR","name_plural":"sh.fi.currencies_IDR_plural"},"ILS":{"symbol":"₪","name":"sh.fi.currencies_ILS","symbol_native":"₪","decimal_digits":2,"rounding":0,"code":"ILS","name_plural":"sh.fi.currencies_ILS_plural"},"INR":{"symbol":"Rs","name":"sh.fi.currencies_INR","symbol_native":"টকা","decimal_digits":2,"rounding":0,"code":"INR","name_plural":"sh.fi.currencies_INR_plural"},"IQD":{"symbol":"IQD","name":"sh.fi.currencies_IQD","symbol_native":"د.ع.‏","decimal_digits":0,"rounding":0,"code":"IQD","name_plural":"sh.fi.currencies_IQD_plural"},"IRR":{"symbol":"IRR","name":"sh.fi.currencies_IRR","symbol_native":"﷼","decimal_digits":0,"rounding":0,"code":"IRR","name_plural":"sh.fi.currencies_IRR_plural"},"ISK":{"symbol":"Ikr","name":"sh.fi.currencies_ISK","symbol_native":"kr","decimal_digits":0,"rounding":0,"code":"ISK","name_plural":"sh.fi.currencies_ISK_plural"},"JMD":{"symbol":"J$","name":"sh.fi.currencies_JMD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"JMD","name_plural":"sh.fi.currencies_JMD_plural"},"JOD":{"symbol":"JD","name":"sh.fi.currencies_JOD","symbol_native":"د.أ.‏","decimal_digits":3,"rounding":0,"code":"JOD","name_plural":"sh.fi.currencies_JOD_plural"},"JPY":{"symbol":"¥","name":"sh.fi.currencies_JPY","symbol_native":"￥","decimal_digits":0,"rounding":0,"code":"JPY","name_plural":"sh.fi.currencies_JPY_plural"},"KES":{"symbol":"Ksh","name":"sh.fi.currencies_KES","symbol_native":"Ksh","decimal_digits":2,"rounding":0,"code":"KES","name_plural":"sh.fi.currencies_KES_plural"},"KHR":{"symbol":"KHR","name":"sh.fi.currencies_KHR","symbol_native":"៛","decimal_digits":2,"rounding":0,"code":"KHR","name_plural":"sh.fi.currencies_KHR_plural"},"KINA":{"symbol":"K","name":"sh.fi.currencies_KINA","symbol_native":"K","decimal_digits":2,"rounding":0,"code":"KINA","name_plural":"sh.fi.currencies_KINA_plural"},"KMF":{"symbol":"CF","name":"sh.fi.currencies_KMF","symbol_native":"FC","decimal_digits":0,"rounding":0,"code":"KMF","name_plural":"sh.fi.currencies_KMF_plural"},"KRW":{"symbol":"₩","name":"sh.fi.currencies_KRW","symbol_native":"₩","decimal_digits":0,"rounding":0,"code":"KRW","name_plural":"sh.fi.currencies_KRW_plural"},"KWD":{"symbol":"KD","name":"sh.fi.currencies_KWD","symbol_native":"د.ك.‏","decimal_digits":3,"rounding":0,"code":"KWD","name_plural":"sh.fi.currencies_KWD_plural"},"KYD":{"symbol":"$","name":"sh.fi.currencies_KYD","symbol_native":"$","decimal_digits":3,"rounding":0,"code":"KYD","name_plural":"sh.fi.currencies_KYD_plural"},"KZT":{"symbol":"KZT","name":"sh.fi.currencies_KZT","symbol_native":"тңг.","decimal_digits":2,"rounding":0,"code":"KZT","name_plural":"sh.fi.currencies_KZT_plural"},"LAK":{"symbol":"₭","name":"sh.fi.currencies_LAK","symbol_native":"₭","decimal_digits":2,"rounding":0,"code":"LAK","name_plural":"sh.fi.currencies_LAK_plural"},"LBP":{"symbol":"LB£","name":"sh.fi.currencies_LBP","symbol_native":"ل.ل.‏","decimal_digits":0,"rounding":0,"code":"LBP","name_plural":"sh.fi.currencies_LBP_plural"},"LKR":{"symbol":"SLRs","name":"sh.fi.currencies_LKR","symbol_native":"SL Re","decimal_digits":2,"rounding":0,"code":"LKR","name_plural":"sh.fi.currencies_LKR_plural"},"LRD":{"symbol":"$","name":"sh.fi.currencies_LRD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"LRD","name_plural":"sh.fi.currencies_LRD_plural"},"LSL":{"symbol":"L","name":"sh.fi.currencies_LSL","symbol_native":"L","decimal_digits":2,"rounding":0,"code":"LSL","name_plural":"sh.fi.currencies_LSL_plural"},"LTL":{"symbol":"LT","name":"sh.fi.currencies_LTL","symbol_native":"LT","decimal_digits":2,"rounding":0,"code":"LTL","name_plural":"sh.fi.currencies_LTL_plural"},"LVL":{"symbol":"LS","name":"sh.fi.currencies_LVL","symbol_native":"LS","decimal_digits":2,"rounding":0,"code":"LVL","name_plural":"sh.fi.currencies_LVL_plural"},"LYD":{"symbol":"LD","name":"sh.fi.currencies_LYD","symbol_native":"د.ل.‏","decimal_digits":3,"rounding":0,"code":"LYD","name_plural":"sh.fi.currencies_LYD_plural"},"MAD":{"symbol":"MAD","name":"sh.fi.currencies_MAD","symbol_native":"د.م.‏","decimal_digits":2,"rounding":0,"code":"MAD","name_plural":"sh.fi.currencies_MAD_plural"},"MDL":{"symbol":"MDL","name":"sh.fi.currencies_MDL","symbol_native":"MDL","decimal_digits":2,"rounding":0,"code":"MDL","name_plural":"sh.fi.currencies_MDL_plural"},"MGA":{"symbol":"MGA","name":"sh.fi.currencies_MGA","symbol_native":"MGA","decimal_digits":0,"rounding":0,"code":"MGA","name_plural":"sh.fi.currencies_MGA_plural"},"MKD":{"symbol":"MKD","name":"sh.fi.currencies_MKD","symbol_native":"MKD","decimal_digits":2,"rounding":0,"code":"MKD","name_plural":"sh.fi.currencies_MKD_plural"},"MMK":{"symbol":"MMK","name":"sh.fi.currencies_MMK","symbol_native":"K","decimal_digits":0,"rounding":0,"code":"MMK","name_plural":"sh.fi.currencies_MMK_plural"},"MNT":{"symbol":"₮","name":"sh.fi.currencies_MNT","symbol_native":"₮","decimal_digits":0,"rounding":0,"code":"MNT","name_plural":"sh.fi.currencies_MNT_plural"},"MOP":{"symbol":"MOP$","name":"sh.fi.currencies_MOP","symbol_native":"MOP$","decimal_digits":2,"rounding":0,"code":"MOP","name_plural":"sh.fi.currencies_MOP_plural"},"MRU":{"symbol":"UM","name":"sh.fi.currencies_MRU","symbol_native":"UM","decimal_digits":2,"rounding":0,"code":"MRU","name_plural":"sh.fi.currencies_MRU_plural"},"MUR":{"symbol":"MURs","name":"sh.fi.currencies_MUR","symbol_native":"MURs","decimal_digits":0,"rounding":0,"code":"MUR","name_plural":"sh.fi.currencies_MUR_plural"},"MVR":{"symbol":"MVR","name":"sh.fi.currencies_MVR","symbol_native":"MVR","decimal_digits":0,"rounding":0,"code":"MVR","name_plural":"sh.fi.currencies_MVR_plural"},"MWK":{"symbol":"MK","name":"sh.fi.currencies_MWK","symbol_native":"MK","decimal_digits":0,"rounding":0,"code":"MWK","name_plural":"sh.fi.currencies_MWK_plural"},"MXN":{"symbol":"MX$","name":"sh.fi.currencies_MXN","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"MXN","name_plural":"sh.fi.currencies_MXN_plural"},"MXV":{"symbol":"MXV","name":"sh.fi.currencies_MXV","symbol_native":"MXV","decimal_digits":2,"rounding":0,"code":"MXV","name_plural":"sh.fi.currencies_MXV_plural"},"MYR":{"symbol":"RM","name":"sh.fi.currencies_MYR","symbol_native":"RM","decimal_digits":2,"rounding":0,"code":"MYR","name_plural":"sh.fi.currencies_MYR_plural"},"MZN":{"symbol":"MTn","name":"sh.fi.currencies_MZN","symbol_native":"MTn","decimal_digits":2,"rounding":0,"code":"MZN","name_plural":"sh.fi.currencies_MZN_plural"},"NAD":{"symbol":"N$","name":"sh.fi.currencies_NAD","symbol_native":"N$","decimal_digits":2,"rounding":0,"code":"NAD","name_plural":"sh.fi.currencies_NAD_plural"},"NGN":{"symbol":"₦","name":"sh.fi.currencies_NGN","symbol_native":"₦","decimal_digits":2,"rounding":0,"code":"NGN","name_plural":"sh.fi.currencies_NGN_plural"},"NIO":{"symbol":"C$","name":"sh.fi.currencies_NIO","symbol_native":"C$","decimal_digits":2,"rounding":0,"code":"NIO","name_plural":"sh.fi.currencies_NIO_plural"},"NOK":{"symbol":"Nkr","name":"sh.fi.currencies_NOK","symbol_native":"kr","decimal_digits":2,"rounding":0,"code":"NOK","name_plural":"sh.fi.currencies_NOK_plural"},"NPR":{"symbol":"NPRs","name":"sh.fi.currencies_NPR","symbol_native":"नेरू","decimal_digits":2,"rounding":0,"code":"NPR","name_plural":"sh.fi.currencies_NPR_plural"},"NZD":{"symbol":"NZ$","name":"sh.fi.currencies_NZD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"NZD","name_plural":"sh.fi.currencies_NZD_plural"},"OMR":{"symbol":"OMR","name":"sh.fi.currencies_OMR","symbol_native":"ر.ع.‏","decimal_digits":3,"rounding":0,"code":"OMR","name_plural":"sh.fi.currencies_OMR_plural"},"PAB":{"symbol":"B/.","name":"sh.fi.currencies_PAB","symbol_native":"B/.","decimal_digits":2,"rounding":0,"code":"PAB","name_plural":"sh.fi.currencies_PAB_plural"},"PEN":{"symbol":"S/.","name":"sh.fi.currencies_PEN","symbol_native":"S/.","decimal_digits":2,"rounding":0,"code":"PEN","name_plural":"sh.fi.currencies_PEN_plural"},"PHP":{"symbol":"₱","name":"sh.fi.currencies_PHP","symbol_native":"₱","decimal_digits":2,"rounding":0,"code":"PHP","name_plural":"sh.fi.currencies_PHP_plural"},"PKR":{"symbol":"PKRs","name":"sh.fi.currencies_PKR","symbol_native":"₨","decimal_digits":0,"rounding":0,"code":"PKR","name_plural":"sh.fi.currencies_PKR_plural"},"PLN":{"symbol":"zł","name":"sh.fi.currencies_PLN","symbol_native":"zł","decimal_digits":2,"rounding":0,"code":"PLN","name_plural":"sh.fi.currencies_PLN_plural"},"PYG":{"symbol":"₲","name":"sh.fi.currencies_PYG","symbol_native":"₲","decimal_digits":0,"rounding":0,"code":"PYG","name_plural":"sh.fi.currencies_PYG_plural"},"QAR":{"symbol":"QR","name":"sh.fi.currencies_QAR","symbol_native":"ر.ق.‏","decimal_digits":2,"rounding":0,"code":"QAR","name_plural":"sh.fi.currencies_QAR_plural"},"RON":{"symbol":"RON","name":"sh.fi.currencies_RON","symbol_native":"RON","decimal_digits":2,"rounding":0,"code":"RON","name_plural":"sh.fi.currencies_RON_plural"},"RSD":{"symbol":"din.","name":"sh.fi.currencies_RSD","symbol_native":"дин.","decimal_digits":0,"rounding":0,"code":"RSD","name_plural":"sh.fi.currencies_RSD_plural"},"RUB":{"symbol":"RUB","name":"sh.fi.currencies_RUB","symbol_native":"руб.","decimal_digits":2,"rounding":0,"code":"RUB","name_plural":"sh.fi.currencies_RUB_plural"},"RWF":{"symbol":"RWF","name":"sh.fi.currencies_RWF","symbol_native":"FR","decimal_digits":0,"rounding":0,"code":"RWF","name_plural":"sh.fi.currencies_RWF_plural"},"SAR":{"symbol":"SR","name":"sh.fi.currencies_SAR","symbol_native":"ر.س.‏","decimal_digits":2,"rounding":0,"code":"SAR","name_plural":"sh.fi.currencies_SAR_plural"},"SCR":{"symbol":"Rs","name":"sh.fi.currencies_SCR","symbol_native":"Rs","decimal_digits":2,"rounding":0,"code":"SCR","name_plural":"sh.fi.currencies_SCR_plural"},"SDG":{"symbol":"SDG","name":"sh.fi.currencies_SDG","symbol_native":"SDG","decimal_digits":2,"rounding":0,"code":"SDG","name_plural":"sh.fi.currencies_SDG_plural"},"SEK":{"symbol":"Skr","name":"sh.fi.currencies_SEK","symbol_native":"kr","decimal_digits":2,"rounding":0,"code":"SEK","name_plural":"sh.fi.currencies_SEK_plural"},"SGD":{"symbol":"S$","name":"sh.fi.currencies_SGD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"SGD","name_plural":"sh.fi.currencies_SGD_plural"},"SHP":{"symbol":"£","name":"sh.fi.currencies_SHP","symbol_native":"£","decimal_digits":2,"rounding":0,"code":"SHP","name_plural":"sh.fi.currencies_SHP_plural"},"SLL":{"symbol":"Le","name":"sh.fi.currencies_SLL","symbol_native":"Le","decimal_digits":2,"rounding":0,"code":"SLL","name_plural":"sh.fi.currencies_SLL_plural"},"SOS":{"symbol":"Ssh","name":"sh.fi.currencies_SOS","symbol_native":"Ssh","decimal_digits":0,"rounding":0,"code":"SOS","name_plural":"sh.fi.currencies_SOS_plural"},"SRD":{"symbol":"$","name":"sh.fi.currencies_SRD","symbol_native":"$","decimal_digits":0,"rounding":0,"code":"SRD","name_plural":"sh.fi.currencies_SRD_plural"},"STN":{"symbol":"Db","name":"sh.fi.currencies_STN","symbol_native":"Db","decimal_digits":2,"rounding":0,"code":"STN","name_plural":"sh.fi.currencies_STN_plural"},"SVC":{"symbol":"₡","name":"sh.fi.currencies_SVC","symbol_native":"₡","decimal_digits":2,"rounding":0,"code":"SVC","name_plural":"sh.fi.currencies_SVC_plural"},"SYP":{"symbol":"SY£","name":"sh.fi.currencies_SYP","symbol_native":"ل.س.‏","decimal_digits":0,"rounding":0,"code":"SYP","name_plural":"sh.fi.currencies_SYP_plural"},"SZL":{"symbol":"L","name":"sh.fi.currencies_SZL","symbol_native":"L","decimal_digits":0,"rounding":0,"code":"SZL","name_plural":"sh.fi.currencies_SZL_plural"},"TJS":{"symbol":"SM","name":"sh.fi.currencies_TJS","symbol_native":"SM","decimal_digits":0,"rounding":0,"code":"TJS","name_plural":"sh.fi.currencies_TJS_plural"},"THB":{"symbol":"฿","name":"sh.fi.currencies_THB","symbol_native":"฿","decimal_digits":2,"rounding":0,"code":"THB","name_plural":"sh.fi.currencies_THB_plural"},"TMT":{"symbol":"m","name":"sh.fi.currencies_TMT","symbol_native":"m","decimal_digits":2,"rounding":0,"code":"TMT","name_plural":"sh.fi.currencies_TMT_plural"},"TND":{"symbol":"DT","name":"sh.fi.currencies_TND","symbol_native":"د.ت.‏","decimal_digits":3,"rounding":0,"code":"TND","name_plural":"sh.fi.currencies_TND_plural"},"TOP":{"symbol":"T$","name":"sh.fi.currencies_TOP","symbol_native":"T$","decimal_digits":2,"rounding":0,"code":"TOP","name_plural":"sh.fi.currencies_TOP_plural"},"TRY":{"symbol":"TL","name":"sh.fi.currencies_TRY","symbol_native":"TL","decimal_digits":2,"rounding":0,"code":"TRY","name_plural":"sh.fi.currencies_TRY_plural"},"TTD":{"symbol":"TT$","name":"sh.fi.currencies_TTD","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"TTD","name_plural":"sh.fi.currencies_TTD_plural"},"TWD":{"symbol":"NT$","name":"sh.fi.currencies_TWD","symbol_native":"NT$","decimal_digits":2,"rounding":0,"code":"TWD","name_plural":"sh.fi.currencies_TWD_plural"},"TZS":{"symbol":"TSh","name":"sh.fi.currencies_TZS","symbol_native":"TSh","decimal_digits":0,"rounding":0,"code":"TZS","name_plural":"sh.fi.currencies_TZS_plural"},"UAH":{"symbol":"₴","name":"sh.fi.currencies_UAH","symbol_native":"₴","decimal_digits":2,"rounding":0,"code":"UAH","name_plural":"sh.fi.currencies_UAH_plural"},"UGX":{"symbol":"USh","name":"sh.fi.currencies_UGX","symbol_native":"USh","decimal_digits":0,"rounding":0,"code":"UGX","name_plural":"sh.fi.currencies_UGX_plural"},"UYU":{"symbol":"$U","name":"sh.fi.currencies_UYU","symbol_native":"$","decimal_digits":2,"rounding":0,"code":"UYU","name_plural":"sh.fi.currencies_UYU_plural"},"UZS":{"symbol":"UZS","name":"sh.fi.currencies_UZS","symbol_native":"UZS","decimal_digits":0,"rounding":0,"code":"UZS","name_plural":"sh.fi.currencies_UZS_plural"},"VEF":{"symbol":"Bs.F.","name":"sh.fi.currencies_VEF","symbol_native":"Bs.F.","decimal_digits":2,"rounding":0,"code":"VEF","name_plural":"sh.fi.currencies_VEF_plural"},"VND":{"symbol":"₫","name":"sh.fi.currencies_VND","symbol_native":"₫","decimal_digits":0,"rounding":0,"code":"VND","name_plural":"sh.fi.currencies_VND_plural"},"VUV":{"symbol":"Vt","name":"sh.fi.currencies_VUV","symbol_native":"Vt","decimal_digits":0,"rounding":0,"code":"VUV","name_plural":"sh.fi.currencies_VUV_plural"},"WST":{"symbol":"T","name":"sh.fi.currencies_WST","symbol_native":"T","decimal_digits":0,"rounding":0,"code":"WST","name_plural":"sh.fi.currencies_WST_plural"},"XAF":{"symbol":"FCFA","name":"sh.fi.currencies_XAF","symbol_native":"FCFA","decimal_digits":0,"rounding":0,"code":"XAF","name_plural":"sh.fi.currencies_XAF_plural"},"XCD":{"symbol":"$","name":"sh.fi.currencies_XCD","symbol_native":"$","decimal_digits":0,"rounding":0,"code":"XCD","name_plural":"sh.fi.currencies_XCD_plural"},"XOF":{"symbol":"CFA","name":"sh.fi.currencies_XOF","symbol_native":"CFA","decimal_digits":0,"rounding":0,"code":"XOF","name_plural":"sh.fi.currencies_XOF_plural"},"XPF":{"symbol":"Fr","name":"sh.fi.currencies_XPF","symbol_native":"Fr","decimal_digits":2,"rounding":0,"code":"XPF","name_plural":"sh.fi.currencies_XPF_plural"},"YER":{"symbol":"YR","name":"sh.fi.currencies_YER","symbol_native":"ر.ي.‏","decimal_digits":0,"rounding":0,"code":"YER","name_plural":"sh.fi.currencies_YER_plural"},"ZAR":{"symbol":"R","name":"sh.fi.currencies_ZAR","symbol_native":"R","decimal_digits":2,"rounding":0,"code":"ZAR","name_plural":"sh.fi.currencies_ZAR_plural"},"ZMK":{"symbol":"ZK","name":"sh.fi.currencies_ZMK","symbol_native":"ZK","decimal_digits":0,"rounding":0,"code":"ZMK","name_plural":"sh.fi.currencies_ZMK_plural"},"ZWL":{"symbol":"ZWL","name":"sh.fi.currencies_ZWL","symbol_native":"ZWL","decimal_digits":0,"rounding":0,"code":"ZWL","name_plural":"sh.fi.currencies_ZWL_plural"}}')}}]);
//# sourceMappingURL=vendors.js.map