diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index 3326fb30b..8b4f8bc86 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -1,3 +1,3 @@ /*! For license information please see BookReader.js.LICENSE.txt */ -!function(){var t,e={9860:function(t,e,n){"use strict";n.d(e,{RS:function(){return d},Tm:function(){return p},_z:function(){return f}}),n(5827),n(1539),n(9600),n(2222),n(9714),n(6992),n(3948),n(6649),n(6078),n(2526),n(1817),n(9653),n(8674),n(2165),n(8783),n(2443),n(3680),n(3706),n(2703),n(489),n(4747),n(8309),n(5069),n(7042),n(1038),n(4916);var r=n(5311);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||a(t,e)||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.")}()}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}function l(t,e){for(var n=0;n",{class:"BRpagecontainer ".concat(e?"pagediv".concat(e.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==e?void 0:e.pageSide),o&&(this.$container.append(r('
')),this.$container.addClass("protected")),this.$img=null}var e,n;return e=t,n=[{key:"update",value:function(t){var e,n,o=t.dimensions,i=void 0===o?null:o,a=t.reduce,s=void 0===a?null:a;if(i&&this.$container.css(i),null!=s&&this.page){var l=this.imageCache.imageLoaded(this.page.index,s),f=!l&&this.imageCache.getBestLoadedReduce(this.page.index,s),d=this.imageCache.image(this.page.index,s);if((null===(e=this.$img)||void 0===e?void 0:e[0].src)==d[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=d.prependTo(this.$container);var h=[];return l||(this.$container.addClass("BRpageloading"),h.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),f&&h.push('url("'.concat(this.page.getURI(f,0),'") center/100% 100% no-repeat')),l||this.$img.css("background",h.join(",")).one("loadend",function(){var t,e=(t=u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(e.target).css({background:""}),r(e.target).parent().removeClass("BRpageloading");case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){c(i,r,o,a,s,"next",t)}function s(t){c(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),this}}}],n&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function d(t,e){var n=document.createElement("div");return n.style.width="".concat(t.width,"px"),n.style.height="".concat(t.height,"px"),n.setAttribute("class","BRPageLayer ".concat(e)),n}function h(t){var e=t.l,n=t.r,r=t.b,o=t.t,i=document.createElementNS("http://www.w3.org/2000/svg","rect");return i.setAttribute("x",e.toString()),i.setAttribute("y",o.toString()),i.setAttribute("width",(n-e).toString()),i.setAttribute("height",(r-o).toString()),i.setAttribute("rx","4"),i.setAttribute("ry","4"),i}function p(t,e,n,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=o.querySelector(".".concat(t)),c=u||function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("viewBox","0 0 ".concat(t.width," ").concat(t.height)),n.setAttribute("class","BRPageLayer ".concat(e)),n.setAttribute("preserveAspectRatio","none"),n}(n,t);if(!u){var l=o.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(o)}var f,d=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}(e.entries());try{for(d.s();!(f=d.n()).done;){var p=i(f.value,2),v=p[0],g=h(p[1]);s&&g.setAttribute("class",s[v]),c.appendChild(g)}}catch(t){d.e(t)}finally{d.f()}}},5685:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function p(){}function v(){}function g(){}var m={};l(m,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==e&&n.call(b,s)&&(m=b);var w=g.prototype=p.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function o(i,a,s,u){var c=d(t[i],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}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(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function i(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,u,"next",t)}function u(t){i(a,r,o,s,u,"throw",t)}s(void 0)}))}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:document,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.activeElement;return e&&null!=n&&n.shadowRoot?d(n.shadowRoot,!0):n}function h(){var t=d(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document);return"INPUT"==(null==t?void 0:t.tagName)||"TEXTAREA"==(null==t?void 0:t.tagName)}function p(t){var e=t.contentWindow||t.contentDocument;return e.document||e}function v(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/1&&void 0!==arguments[1]?arguments[1]:{},n=e.bubbles,r=void 0!==n&&n,o=e.cancelable,i=void 0!==o&&o,a=e.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r,i,s),u}function _(){var t=document.createElement("div");t.style.width="1in",document.body.appendChild(t);var e=t.offsetWidth;document.body.removeChild(t);var n=1.25*e;return 0==n?100:n}function S(t){return t.reduce((function(t,e){return t+e}),0)}function k(t){var e,n=[],r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;n.push(o)}}catch(t){r.e(t)}finally{r.f()}return n}function P(t,e){return t.length==e.length&&t.every((function(t,n){return t==e[n]}))}function E(t,e){return t&&e&&!P(t,e)}function O(t){return T.apply(this,arguments)}function T(){return(T=a(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){return setTimeout(t,e)})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t){return j.apply(this,arguments)}function j(){return j=a(o().mark((function t(e){var n,r,i,a,s,u,c,l,f,d,h,p=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=(n=p.length>1&&void 0!==p[1]?p[1]:{}).step,i=void 0===r?50:r,a=n.timeout,s=void 0===a?500:a,u=n.until,c=void 0===u?function(t){return Boolean(t)}:u,l=n._sleep,f=void 0===l?O:l,d=Date.now();case 2:if(!(Date.now()-d0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.vendor;return/chrome/i.test(t)&&/google inc/i.test(e)}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/firefox/i.test(t)}function i(){return"ongesturestart"in window&&navigator.maxTouchPoints>0}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/SamsungBrowser/i.test(t)}n.d(e,{Tv:function(){return a},gn:function(){return i},i7:function(){return r},vU:function(){return o}}),n(4916)},9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(4411),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7976),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},7556:function(t,e,n){var r=n(7293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1285:function(t,e,n){"use strict";var r=n(7908),o=n(1400),i=n(6244);t.exports=function(t){for(var e=r(this),n=i(e),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,o=n(9341)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var r=n(9974),o=n(6916),i=n(7908),a=n(3411),s=n(7659),u=n(4411),c=n(6244),l=n(6135),f=n(4121),d=n(1246),h=Array;t.exports=function(t){var e=i(t),n=u(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,p>2?arguments[2]:void 0));var m,y,b,w,x,_,S=d(e),k=0;if(!S||this===h&&s(S))for(m=c(e),y=n?new this(m):h(m);m>k;k++)_=g?v(e[k],k):e[k],l(y,k,_);else for(x=(w=f(e,S)).next,y=n?new this:[];!(b=o(x,w)).done;k++)_=g?a(w,v,[b.value,k],!0):b.value,l(y,k,_);return y.length=k,y}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,n){var r=n(9974),o=n(1702),i=n(8361),a=n(7908),s=n(6244),u=n(5417),c=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,f=6==t,d=7==t,h=5==t||f;return function(p,v,g,m){for(var y,b,w=a(p),x=i(w),_=r(v,g),S=s(x),k=0,P=m||u,E=e?P(p,S):n||d?P(p,0):void 0;S>k;k++)if((h||k in x)&&(b=_(y=x[k],k,w),t))if(e)E[k]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:c(E,y)}else switch(t){case 4:return!1;case 7:c(E,y)}return f?-1:o||l?l:E}};t.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)}},1194:function(t,e,n){var r=n(7293),o=n(5112),i=n(7392),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},3671:function(t,e,n){var r=n(9662),o=n(7908),i=n(8361),a=n(6244),s=TypeError,u=function(t){return function(e,n,u,c){r(n);var l=o(e),f=i(l),d=a(l),h=t?d-1:0,p=t?-1:1;if(u<2)for(;;){if(h in f){c=f[h],h+=p;break}if(h+=p,t?h<0:d<=h)throw s("Reduce of empty array with no initial value")}for(;t?h>=0:d>h;h+=p)h in f&&(c=n(c,f[h],h,l));return c}};t.exports={left:u(!1),right:u(!0)}},3658:function(t,e,n){"use strict";var r=n(9781),o=n(3157),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},1589:function(t,e,n){var r=n(1400),o=n(6244),i=n(6135),a=Array,s=Math.max;t.exports=function(t,e,n){for(var u=o(t),c=r(e,u),l=r(void 0===n?u:n,u),f=a(s(l-c,0)),d=0;c0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(d,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),h&&r(d,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=m(e),i=m(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(e)}}},9320:function(t,e,n){"use strict";var r=n(1702),o=n(9190),i=n(2423).getWeakData,a=n(5787),s=n(9670),u=n(8554),c=n(111),l=n(408),f=n(2092),d=n(2597),h=n(9909),p=h.set,v=h.getterFor,g=f.find,m=f.findIndex,y=r([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},_=function(t,e){return g(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,o){a(t,h),p(t,{type:e,id:b++,frozen:void 0}),u(o)||l(o,t[r],{that:t,AS_ENTRIES:n})})),h=f.prototype,g=v(e),m=function(t,e,n){var r=g(t),o=i(s(e),!0);return!0===o?w(r).set(e,n):o[r.id]=n,t};return o(h,{delete:function(t){var e=g(this);if(!c(t))return!1;var n=i(t);return!0===n?w(e).delete(t):n&&d(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!c(t))return!1;var n=i(t);return!0===n?w(e).has(t):n&&d(n,e.id)}}),o(h,n?{get:function(t){var e=g(this);if(c(t)){var n=i(t);return!0===n?w(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),f}}},7710:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(1702),a=n(4705),s=n(8052),u=n(2423),c=n(408),l=n(5787),f=n(614),d=n(8554),h=n(111),p=n(7293),v=n(7072),g=n(8003),m=n(9587);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=y?"set":"add",x=o[t],_=x&&x.prototype,S=x,k={},P=function(t){var e=i(_[t]);s(_,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!h(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(x)||!(b||_.forEach&&!p((function(){(new x).entries().next()})))))S=n.getConstructor(e,t,y,w),u.enable();else if(a(t,!0)){var E=new S,O=E[w](b?{}:-0,1)!=E,T=p((function(){E.has(1)})),C=v((function(t){new x(t)})),j=!b&&p((function(){for(var t=new x,e=5;e--;)t[w](e,e);return!t.has(-0)}));C||((S=e((function(t,e){l(t,_);var n=m(new x,t,S);return d(e)||c(e,n[w],{that:n,AS_ENTRIES:y}),n}))).prototype=_,_.constructor=S),(T||j)&&(P("delete"),P("has"),y&&P("get")),(j||O)&&P(w),b&&_.clear&&delete _.clear}return k[t]=S,r({global:!0,constructor:!0,forced:S!=x},k),g(S,t),b||n.setStrong(S,t,y),S}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=o(e),u=a.f,c=i.f,l=0;l9007199254740991)throw e("Maximum allowed index exceeded");return t}},8324:function(t){t.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}},8509:function(t,e,n){var r=n(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8886:function(t,e,n){var r=n(8113).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7871:function(t,e,n){var r=n(3823),o=n(5268);t.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},3823:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},256:function(t,e,n){var r=n(8113);t.exports=/MSIE|Trident/.test(r)},1528:function(t,e,n){var r=n(8113),o=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},8334:function(t,e,n){var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(t,e,n){var r=n(4326),o=n(7854);t.exports="process"==r(o.process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,o,i=n(7854),a=n(8113),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8008:function(t,e,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),s=n(3072),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,d,h,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(h=o(n,l))&&h.value:n[l],!c(v?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1470),o=n(8052),i=n(2261),a=n(7293),s=n(5112),u=n(8880),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var d=s(t),h=!a((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=h&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!h||!p||n){var v=r(/./[d]),g=e(d,""[t],(function(t,e,n,o,a){var s=r(t),u=e.exec;return u===i||u===l.exec?h&&!a?{done:!0,value:v(e,n,o)}:{done:!0,value:s(n,e,o)}:{done:!1}}));o(String.prototype,t,g[0]),o(l,d,g[1])}f&&u(l[d],"sham",!0)}},6790:function(t,e,n){"use strict";var r=n(3157),o=n(6244),i=n(7207),a=n(9974),s=function(t,e,n,u,c,l,f,d){for(var h,p,v=c,g=0,m=!!f&&a(f,d);g0&&r(h)?(p=o(h),v=s(t,e,h,p,v,l-1)-1):(i(v+1),t[v]=h),v++),g++;return v};t.exports=s},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},9974:function(t,e,n){var r=n(1470),o=n(9662),i=n(4374),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},7065:function(t,e,n){"use strict";var r=n(1702),o=n(9662),i=n(111),a=n(2597),s=n(206),u=n(4374),c=Function,l=r([].concat),f=r([].join),d={};t.exports=u?c.bind:function(t){var e=o(this),n=e.prototype,r=s(arguments,1),u=function(){var n=l(r,s(arguments));return this instanceof u?function(t,e,n){if(!a(d,e)){for(var r=[],o=0;o]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var h=n+t.length,p=r.length,v=l;return void 0!==f&&(f=o(f),v=c),s(d,v,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,h);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return o;if(l>p){var d=i(l/10);return 0===d?o:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):o}c=r[l-1]}return void 0===c?"":c}))}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.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")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},842:function(t,e,n){var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},9587:function(t,e,n){var r=n(614),o=n(111),i=n(7674);t.exports=function(t,e,n){var a,s;return i&&r(a=e.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(t,s),t}},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},2423:function(t,e,n){var r=n(2109),o=n(1702),i=n(3501),a=n(111),s=n(2597),u=n(3070).f,c=n(8006),l=n(1156),f=n(2050),d=n(9711),h=n(6677),p=!1,v=d("meta"),g=0,m=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},p=!0;var t=c.f,e=o([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),o=0,i=r.length;oy;y++)if((w=j(t[y]))&&c(v,w))return w;return new p(!1)}g=l(t,m)}for(x=P?t.next:g.next;!(_=o(x,g)).done;){try{w=j(_.value)}catch(t){d(g,"throw",t)}if("object"==typeof w&&w&&c(v,w))return w}return new p(!1)}},9212:function(t,e,n){var r=n(6916),o=n(9670),i=n(8173);t.exports=function(t,e,n){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return o(a),n}},3061:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),a=n(8003),s=n(7497),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},1656:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(1913),a=n(6530),s=n(614),u=n(3061),c=n(9518),l=n(7674),f=n(8003),d=n(8880),h=n(8052),p=n(5112),v=n(7497),g=n(3383),m=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=p("iterator"),_="keys",S="values",k="entries",P=function(){return this};t.exports=function(t,e,n,a,p,g,E){u(n,e,a);var O,T,C,j=function(t){if(t===p&&L)return L;if(!w&&t in A)return A[t];switch(t){case _:case S:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",R=!1,A=t.prototype,I=A[x]||A["@@iterator"]||p&&A[p],L=!w&&I||j(p),D="Array"==e&&A.entries||I;if(D&&(O=c(D.call(new t)))!==Object.prototype&&O.next&&(i||c(O)===b||(l?l(O,b):s(O[x])||h(O,x,P)),f(O,M,!0,!0),i&&(v[M]=P)),m&&p==S&&I&&I.name!==S&&(!i&&y?d(A,"name",S):(R=!0,L=function(){return o(I,this)})),p)if(T={values:j(S),keys:g?L:j(_),entries:j(k)},E)for(C in T)(w||R||!(C in A))&&h(A,C,T[C]);else r({target:e,proto:!0,forced:w||R},T);return i&&!E||A[x]===L||h(A,x,L,{name:p}),v[e]=L,T}},3383:function(t,e,n){"use strict";var r,o,i,a=n(7293),s=n(614),u=n(111),c=n(30),l=n(9518),f=n(8052),d=n(5112),h=n(1913),p=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):v=!0),!u(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:h&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(7293),o=n(614),i=n(2597),a=n(9781),s=n(6530).CONFIGURABLE,u=n(2788),c=n(9909),l=c.enforce,f=c.get,d=Object.defineProperty,h=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||s&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),h&&n&&i(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return i(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return o(this)&&f(this).source||u(this)}),"toString")},4310:function(t){t.exports=Math.sign||function(t){var e=+t;return 0==e||e!=e?e:e<0?-1:1}},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},5948:function(t,e,n){var r,o,i,a,s,u,c,l,f=n(7854),d=n(9974),h=n(1236).f,p=n(261).set,v=n(8334),g=n(1528),m=n(1036),y=n(5268),b=f.MutationObserver||f.WebKitMutationObserver,w=f.document,x=f.process,_=f.Promise,S=h(f,"queueMicrotask"),k=S&&S.value;k||(r=function(){var t,e;for(y&&(t=x.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},v||y||m||!b||!w?!g&&_&&_.resolve?((c=_.resolve(void 0)).constructor=_,l=d(c.then,c),a=function(){l(r)}):y?a=function(){x.nextTick(r)}:(p=d(p,f),a=function(){p(r)}):(s=!0,u=w.createTextNode(""),new b(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=k||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},8523:function(t,e,n){"use strict";var r=n(9662),o=TypeError,i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw o("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:function(t,e,n){var r=n(7850),o=TypeError;t.exports=function(t){if(r(t))throw o("The method doesn't accept regular expressions");return t}},3009:function(t,e,n){var r=n(7854),o=n(7293),i=n(1702),a=n(1340),s=n(3111).trim,u=n(1361),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,h=i(d.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!o((function(){c(Object(f))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(h(d,n)?16:10))}:c},1574:function(t,e,n){"use strict";var r=n(9781),o=n(1702),i=n(6916),a=n(7293),s=n(1956),u=n(5181),c=n(5296),l=n(7908),f=n(8361),d=Object.assign,h=Object.defineProperty,p=o([].concat);t.exports=!d||a((function(){if(r&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=d({},t)[n]||s(d({},e)).join("")!=o}))?function(t,e){for(var n=l(t),o=arguments.length,a=1,d=u.f,h=c.f;o>a;)for(var v,g=f(arguments[a++]),m=d?p(s(g),d(g)):s(g),y=m.length,b=0;y>b;)v=m[b++],r&&!i(h,g,v)||(n[v]=g[v]);return n}:d},30:function(t,e,n){var r,o=n(9670),i=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200),f="prototype",d="script",h=l("IE_PROTO"),p=function(){},v=function(t){return"<"+d+">"+t+""},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?g(r):(e=c("iframe"),n="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):g(r);for(var o=a.length;o--;)delete m[f][a[o]];return m()};s[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[f]=o(t),n=new p,p[f]=null,n[h]=t):n=m(),void 0===e?n:i.f(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3353),i=n(3070),a=n(9670),s=n(5656),u=n(1956);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=u(e),c=o.length,l=0;c>l;)i.f(t,n=o[l++],r[n]);return t}},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),s=n(4948),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=l(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),u=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),o=n(5656),i=n(8006).f,a=n(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},8006:function(t,e,n){var r=n(6324),o=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(2597),o=n(614),i=n(7908),a=n(6200),s=n(8544),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(r(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},2050:function(t,e,n){var r=n(7293),o=n(111),i=n(4326),a=n(7556),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!o(t)&&(!a||"ArrayBuffer"!=i(t))&&(!s||s(t))}:s},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);for(;e.length>c;)o(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),o=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},4699:function(t,e,n){var r=n(9781),o=n(1702),i=n(1956),a=n(5656),s=o(n(5296).f),u=o([].push),c=function(t){return function(e){for(var n,o=a(e),c=i(o),l=c.length,f=0,d=[];l>f;)n=c[f++],r&&!s(o,n)||u(d,t?[n,o[n]]:o[n]);return d}};t.exports={entries:c(!0),values:c(!1)}},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?u(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},3702:function(t,e,n){var r=n(7854),o=n(2492),i=n(614),a=n(4705),s=n(2788),u=n(5112),c=n(7871),l=n(3823),f=n(1913),d=n(7392),h=o&&o.prototype,p=u("species"),v=!1,g=i(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(o),e=t!==String(o);if(!e&&66===d)return!0;if(f&&(!h.catch||!h.finally))return!0;if(!d||d<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(v=n.then((function(){}))instanceof r))return!0}return!e&&(c||l)&&!g}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:v}},2492:function(t,e,n){var r=n(7854);t.exports=r.Promise},9478:function(t,e,n){var r=n(9670),o=n(111),i=n(8523);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},612:function(t,e,n){var r=n(2492),o=n(7072),i=n(3702).CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},2626:function(t,e,n){var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},7651:function(t,e,n){var r=n(6916),o=n(9670),i=n(614),a=n(4326),s=n(2261),u=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var c=r(n,t,e);return null!==c&&o(c),c}if("RegExp"===a(t))return r(s,t,e);throw u("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r,o,i=n(6916),a=n(1702),s=n(1340),u=n(7066),c=n(2999),l=n(2309),f=n(30),d=n(9909).get,h=n(9441),p=n(7168),v=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,y=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),_=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=c.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(_||k||S||h||p)&&(m=function(t){var e,n,r,o,a,c,l,h=this,p=d(h),P=s(t),E=p.raw;if(E)return E.lastIndex=h.lastIndex,e=i(m,E,P),h.lastIndex=E.lastIndex,e;var O=p.groups,T=S&&h.sticky,C=i(u,h),j=h.source,M=0,R=P;if(T&&(C=w(C,"y",""),-1===b(C,"g")&&(C+="g"),R=x(P,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(P,h.lastIndex-1))&&(j="(?: "+j+")",R=" "+R,M++),n=new RegExp("^(?:"+j+")",C)),k&&(n=new RegExp("^"+j+"$(?!\\s)",C)),_&&(r=h.lastIndex),o=i(g,T?n:h,R),T?o?(o.input=x(o.input,M),o[0]=x(o[0],M),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:_&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),k&&o&&o.length>1&&i(v,o[0],n,(function(){for(a=1;ab)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},4488:function(t,e,n){var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},1150:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},6340:function(t,e,n){"use strict";var r=n(5005),o=n(3070),i=n(5112),a=n(9781),s=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,o=n(2597),i=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,n){var r=n(9670),o=n(9483),i=n(8554),a=n(5112)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||i(n=r(s)[a])?e:o(n)}},8710:function(t,e,n){var r=n(1702),o=n(9303),i=n(1340),a=n(4488),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=i(a(e)),d=o(n),h=f.length;return d<0||d>=h?t?"":void 0:(r=u(f,d))<55296||r>56319||d+1===h||(l=u(f,d+1))<56320||l>57343?t?s(f,d):r:t?c(f,d,d+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3111:function(t,e,n){var r=n(1702),o=n(4488),i=n(1340),a=n(1361),s=r("".replace),u="["+a+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=i(o(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},6293:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},6532:function(t,e,n){var r=n(6916),o=n(5005),i=n(5112),a=n(8052);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},2015:function(t,e,n){var r=n(6293);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},261:function(t,e,n){var r,o,i,a,s=n(7854),u=n(2104),c=n(9974),l=n(614),f=n(2597),d=n(7293),h=n(490),p=n(206),v=n(317),g=n(8053),m=n(8334),y=n(5268),b=s.setImmediate,w=s.clearImmediate,x=s.process,_=s.Dispatch,S=s.Function,k=s.MessageChannel,P=s.String,E=0,O={},T="onreadystatechange";try{r=s.location}catch(t){}var C=function(t){if(f(O,t)){var e=O[t];delete O[t],e()}},j=function(t){return function(){C(t)}},M=function(t){C(t.data)},R=function(t){s.postMessage(P(t),r.protocol+"//"+r.host)};b&&w||(b=function(t){g(arguments.length,1);var e=l(t)?t:S(t),n=p(arguments,1);return O[++E]=function(){u(e,void 0,n)},o(E),E},w=function(t){delete O[t]},y?o=function(t){x.nextTick(j(t))}:_&&_.now?o=function(t){_.now(j(t))}:k&&!m?(a=(i=new k).port2,i.port1.onmessage=M,o=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(R)?(o=R,s.addEventListener("message",M,!1)):o=T in v("script")?function(t){h.appendChild(v("script"))[T]=function(){h.removeChild(this),C(t)}}:function(t){setTimeout(j(t),0)}),t.exports={set:b,clear:w}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),s=n(2140),u=n(5112),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:function(t,e,n){var r=n(648),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},5143:function(t,e,n){var r=n(7293),o=n(5112),i=n(1913),a=o("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"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}))},3307:function(t,e,n){var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t){var e=TypeError;t.exports=function(t,n){if(t=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=d("concat"),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!m},{concat:function(t){var e,n,r,o,i,a=s(this),d=f(a,0),h=0;for(e=-1,r=arguments.length;e1?arguments[1]:void 0)}})},4553:function(t,e,n){"use strict";var r=n(2109),o=n(2092).findIndex,i=n(1223),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},9826:function(t,e,n){"use strict";var r=n(2109),o=n(2092).find,i=n(1223),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},6535:function(t,e,n){"use strict";var r=n(2109),o=n(6790),i=n(9662),a=n(7908),s=n(6244),u=n(5417);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=a(this),r=s(n);return i(t),(e=u(n,0)).length=o(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},4944:function(t,e,n){"use strict";var r=n(2109),o=n(6790),i=n(7908),a=n(6244),s=n(9303),u=n(5417);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e),r=u(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:s(t)),r}})},1038:function(t,e,n){var r=n(2109),o=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:o})},6699:function(t,e,n){"use strict";var r=n(2109),o=n(1318).includes,i=n(7293),a=n(1223);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(t,e,n){"use strict";var r=n(5656),o=n(1223),i=n(7497),a=n(9909),s=n(3070).f,u=n(1656),c=n(6178),l=n(1913),f=n(9781),d="Array Iterator",h=a.set,p=a.getterFor(d);t.exports=u(Array,"Array",(function(t,e){h(this,{type:d,target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(t){}},9600:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(8361),a=n(5656),s=n(9341),u=o([].join),c=i!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(a(this),void 0===t?",":t)}})},1249:function(t,e,n){"use strict";var r=n(2109),o=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},5827:function(t,e,n){"use strict";var r=n(2109),o=n(3671).left,i=n(9341),a=n(7392),s=n(5268);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},5069:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(3157),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},7042:function(t,e,n){"use strict";var r=n(2109),o=n(3157),i=n(4411),a=n(111),s=n(1400),u=n(6244),c=n(5656),l=n(6135),f=n(5112),d=n(1194),h=n(206),p=d("slice"),v=f("species"),g=Array,m=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,f,d=c(this),p=u(d),y=s(t,p),b=s(void 0===e?p:e,p);if(o(d)&&(n=d.constructor,(i(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return h(d,y,b);for(r=new(void 0===n?g:n)(m(b-y,0)),f=0;y3)){if(p)return!0;if(g)return g<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){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++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;rc(n)?1:-1}}(t)),n=s(o),r=0;rw-r+n;g--)d(b,g-1)}else if(n>r)for(g=w-r;g>x;g--)y=g+n-1,(m=g+r-1)in b?b[y]=b[m]:d(b,y);for(g=0;g2)if(c=w(c),43===(e=O(c,0))||45===e){if(88===(n=O(c,2))||120===n)return NaN}else if(48===e){switch(O(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=E(c,2)).length,s=0;so)return NaN;return parseInt(i,r)}return+c}(e)}(t));return d(k,e=this)&&v((function(){b(e)}))?f(Object(n),this,C):n};C.prototype=k,T&&!o&&(k.constructor=C),r({global:!0,constructor:!0,wrap:!0,forced:T},{Number:C});var j=function(t,e){for(var n,r=i?g(e):"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(","),o=0;r.length>o;o++)l(e,n=r[o])&&!l(t,n)&&y(t,n,m(e,n))};o&&S&&j(s[x],S),(T||o)&&j(s[x],_)},9601:function(t,e,n){var r=n(2109),o=n(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},3371:function(t,e,n){var r=n(2109),o=n(6677),i=n(7293),a=n(111),s=n(2423).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},5003:function(t,e,n){var r=n(2109),o=n(7293),i=n(5656),a=n(1236).f,s=n(9781),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},9337:function(t,e,n){var r=n(2109),o=n(9781),i=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=s.f,c=i(r),l={},f=0;c.length>f;)void 0!==(n=o(r,e=c[f++]))&&u(l,e,n);return l}})},6210:function(t,e,n){var r=n(2109),o=n(7293),i=n(1156).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},9660:function(t,e,n){var r=n(2109),o=n(6293),i=n(7293),a=n(5181),s=n(7908);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},489:function(t,e,n){var r=n(2109),o=n(7293),i=n(7908),a=n(9518),s=n(8544);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},7941:function(t,e,n){var r=n(2109),o=n(7908),i=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},1539:function(t,e,n){var r=n(1694),o=n(8052),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},6833:function(t,e,n){var r=n(2109),o=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},1058:function(t,e,n){var r=n(2109),o=n(3009);r({global:!0,forced:parseInt!=o},{parseInt:o})},821:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(9662),a=n(8523),s=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=i(e.resolve),a=[],s=0,l=1;u(t,(function(t){var i=s++,u=!1;l++,o(n,e,t).then((function(t){u||(u=!0,a[i]=t,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},4164:function(t,e,n){"use strict";var r=n(2109),o=n(1913),i=n(3702).CONSTRUCTOR,a=n(2492),s=n(5005),u=n(614),c=n(8052),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(a)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},3401:function(t,e,n){"use strict";var r,o,i,a=n(2109),s=n(1913),u=n(5268),c=n(7854),l=n(6916),f=n(8052),d=n(7674),h=n(8003),p=n(6340),v=n(9662),g=n(614),m=n(111),y=n(5787),b=n(6707),w=n(261).set,x=n(5948),_=n(842),S=n(2534),k=n(8572),P=n(9909),E=n(2492),O=n(3702),T=n(8523),C="Promise",j=O.CONSTRUCTOR,M=O.REJECTION_EVENT,R=O.SUBCLASSING,A=P.getterFor(C),I=P.set,L=E&&E.prototype,D=E,$=L,N=c.TypeError,F=c.document,B=c.process,U=T.f,z=U,W=!!(F&&F.createEvent&&c.dispatchEvent),H="unhandledrejection",V=function(t){var e;return!(!m(t)||!g(e=t.then))&&e},G=function(t,e){var n,r,o,i=e.value,a=1==e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{s?(a||(2===e.rejection&&Z(e),e.rejection=1),!0===s?n=i:(f&&f.enter(),n=s(i),f&&(f.exit(),o=!0)),n===t.promise?c(N("Promise-chain cycle")):(r=V(n))?l(r,n,u,c):u(n)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,x((function(){for(var n,r=t.reactions;n=r.get();)G(n,t);t.notified=!1,e&&!t.rejection&&q(t)})))},X=function(t,e,n){var r,o;W?((r=F.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!M&&(o=c["on"+t])?o(r):t===H&&_("Unhandled promise rejection",n)},q=function(t){l(w,c,(function(){var e,n=t.facade,r=t.value;if(K(t)&&(e=S((function(){u?B.emit("unhandledRejection",r,n):X(H,n,r)})),t.rejection=u||K(t)?2:1,e.error))throw e.value}))},K=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){l(w,c,(function(){var e=t.facade;u?B.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(r){t(e,r,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw N("Promise can't be resolved itself");var r=V(e);r?x((function(){var n={done:!1};try{l(r,e,J(tt,n,t),J(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Q({done:!1},e,t)}}};if(j&&($=(D=function(t){y(this,$),v(t),l(r,this);var e=A(this);try{t(J(tt,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(r=function(t){I(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=f($,"then",(function(t,e){var n=A(this),r=U(b(this,D));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=u?B.domain:void 0,0==n.state?n.reactions.add(r):x((function(){G(r,n)})),r.promise})),o=function(){var t=new r,e=A(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},T.f=U=function(t){return t===D||void 0===t?new o(t):z(t)},!s&&g(E)&&L!==Object.prototype)){i=L.then,R||f(L,"then",(function(t,e){var n=this;return new D((function(t,e){l(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete L.constructor}catch(t){}d&&d(L,$)}a({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:D}),h(D,C,!1,!0),p(C)},8674:function(t,e,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(9662),a=n(8523),s=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s((function(){var a=i(e.resolve);u(t,(function(t){o(a,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},683:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return o(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),o=n(5005),i=n(1913),a=n(2492),s=n(3702).CONSTRUCTOR,u=n(9478),c=o("Promise"),l=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(t){return u(l&&this===c?a:this,t)}})},2419:function(t,e,n){var r=n(2109),o=n(5005),i=n(2104),a=n(7065),s=n(9483),u=n(9670),c=n(111),l=n(30),f=n(7293),d=o("Reflect","construct"),h=Object.prototype,p=[].push,v=f((function(){function t(){}return!(d((function(){}),[],t)instanceof t)})),g=!f((function(){d((function(){}))})),m=v||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(g&&!v)return d(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(p,r,e),new(i(a,t,r))}var o=n.prototype,f=l(c(o)?o:h),m=i(t,f,e);return c(m)?m:f}})},4819:function(t,e,n){var r=n(2109),o=n(6916),i=n(111),a=n(9670),s=n(5032),u=n(1236),c=n(9518);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return a(e)===f?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:o(r.get,f):i(l=c(e))?t(l,n,f):void 0}})},4603:function(t,e,n){var r=n(9781),o=n(7854),i=n(1702),a=n(4705),s=n(9587),u=n(8880),c=n(8006).f,l=n(7976),f=n(7850),d=n(1340),h=n(4706),p=n(2999),v=n(2626),g=n(8052),m=n(7293),y=n(2597),b=n(9909).enforce,w=n(6340),x=n(5112),_=n(9441),S=n(7168),k=x("match"),P=o.RegExp,E=P.prototype,O=o.SyntaxError,T=i(E.exec),C=i("".charAt),j=i("".replace),M=i("".indexOf),R=i("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,L=/a/g,D=new P(I)!==I,$=p.MISSED_STICKY,N=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!D||$||_||S||m((function(){return L[k]=!1,P(I)!=I||P(L)==L||"/a/i"!=P(I,"i")}))))){for(var F=function(t,e){var n,r,o,i,a,c,p=l(E,this),v=f(t),g=void 0===e,m=[],w=t;if(!p&&v&&g&&t.constructor===F)return t;if((v||l(E,t))&&(t=t.source,g&&(e=h(w))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),w=t,_&&"dotAll"in I&&(r=!!e&&M(e,"s")>-1)&&(e=j(e,/s/g,"")),n=e,$&&"sticky"in I&&(o=!!e&&M(e,"y")>-1)&&N&&(e=j(e,/y/g,"")),S&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=C(t,r)))e+=C(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:T(A,R(t,r+1))&&(r+=2,u=!0),o+=e,c++;continue;case">"===e&&u:if(""===l||y(a,l))throw new O("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],u=!1,l="";continue}u?l+=e:o+=e}return[o,i]}(t),t=i[0],m=i[1]),a=s(P(t,e),p?this:E,F),(r||o||m.length)&&(c=b(a),r&&(c.dotAll=!0,c.raw=F(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=C(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+C(t,++r);return o}(t),n)),o&&(c.sticky=!0),m.length&&(c.groups=m)),t!==w)try{u(a,"source",""===w?"(?:)":w)}catch(t){}return a},B=c(P),U=0;B.length>U;)v(F,P,B[U++]);E.constructor=F,F.prototype=E,g(o,"RegExp",F,{constructor:!0})}w("RegExp")},4916:function(t,e,n){"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},9714:function(t,e,n){"use strict";var r=n(6530).PROPER,o=n(8052),i=n(9670),a=n(1340),s=n(7293),u=n(4706),c="toString",l=RegExp.prototype[c],f=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=r&&l.name!=c;(f||d)&&o(RegExp.prototype,c,(function(){var t=i(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},7227:function(t,e,n){"use strict";n(7710)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5631))},189:function(t,e,n){n(7227)},7852:function(t,e,n){"use strict";var r,o=n(2109),i=n(1470),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),f=n(4964),d=n(1913),h=i("".endsWith),p=i("".slice),v=Math.min,g=f("endsWith");o({target:"String",proto:!0,forced:!(!d&&!g&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||g)},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=void 0===n?r:v(s(n),r),i=u(t);return h?h(e,i,o):p(e,o-i.length,o)===i}})},2023:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(3929),a=n(4488),s=n(1340),u=n(4964),c=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),a=n(1656),s=n(6178),u="String Iterator",c=i.set,l=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,e=l(this),n=e.string,o=e.index;return o>=n.length?s(void 0,!0):(t=r(n,o),e.index+=t.length,s(t,!1))}))},4723:function(t,e,n){"use strict";var r=n(6916),o=n(7007),i=n(9670),a=n(8554),s=n(7466),u=n(1340),c=n(4488),l=n(8173),f=n(1530),d=n(7651);o("match",(function(t,e,n){return[function(e){var n=c(this),o=a(e)?void 0:l(e,t);return o?r(o,e,n):new RegExp(e)[t](u(n))},function(t){var r=i(this),o=u(t),a=n(e,r,o);if(a.done)return a.value;if(!r.global)return d(r,o);var c=r.unicode;r.lastIndex=0;for(var l,h=[],p=0;null!==(l=d(r,o));){var v=u(l[0]);h[p]=v,""===v&&(r.lastIndex=f(o,s(r.lastIndex),c)),p++}return 0===p?null:h}]}))},5306:function(t,e,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),a=n(7007),s=n(7293),u=n(9670),c=n(614),l=n(8554),f=n(9303),d=n(7466),h=n(1340),p=n(4488),v=n(1530),g=n(8173),m=n(647),y=n(7651),b=n(5112)("replace"),w=Math.max,x=Math.min,_=i([].concat),S=i([].push),k=i("".indexOf),P=i("".slice),E="$0"==="a".replace(/./,"$0"),O=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,n){var i=O?"$":"$0";return[function(t,n){var r=p(this),i=l(t)?void 0:g(t,b);return i?o(i,t,r,n):o(e,h(r),t,n)},function(t,o){var a=u(this),s=h(t);if("string"==typeof o&&-1===k(o,i)&&-1===k(o,"$<")){var l=n(e,a,s,o);if(l.done)return l.value}var p=c(o);p||(o=h(o));var g=a.global;if(g){var b=a.unicode;a.lastIndex=0}for(var E=[];;){var O=y(a,s);if(null===O)break;if(S(E,O),!g)break;""===h(O[0])&&(a.lastIndex=v(s,d(a.lastIndex),b))}for(var T,C="",j=0,M=0;M=j&&(C+=P(s,j,A)+N,j=A+R.length)}return C+P(s,j)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!E||O)},4765:function(t,e,n){"use strict";var r=n(6916),o=n(7007),i=n(9670),a=n(8554),s=n(4488),u=n(1150),c=n(1340),l=n(8173),f=n(7651);o("search",(function(t,e,n){return[function(e){var n=s(this),o=a(e)?void 0:l(e,t);return o?r(o,e,n):new RegExp(e)[t](c(n))},function(t){var r=i(this),o=c(t),a=n(e,r,o);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,o);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},3123:function(t,e,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),a=n(7007),s=n(9670),u=n(8554),c=n(7850),l=n(4488),f=n(6707),d=n(1530),h=n(7466),p=n(1340),v=n(8173),g=n(1589),m=n(7651),y=n(2261),b=n(2999),w=n(7293),x=b.UNSUPPORTED_Y,_=4294967295,S=Math.min,k=[].push,P=i(/./.exec),E=i(k),O=i("".slice),T=!w((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=p(l(this)),a=void 0===n?_:n>>>0;if(0===a)return[];if(void 0===t)return[i];if(!c(t))return o(e,i,t,a);for(var s,u,f,d=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=new RegExp(t.source,h+"g");(s=o(y,m,i))&&!((u=m.lastIndex)>v&&(E(d,O(i,v,s.index)),s.length>1&&s.index=a));)m.lastIndex===s.index&&m.lastIndex++;return v===i.length?!f&&P(m,"")||E(d,""):E(d,O(i,v)),d.length>a?g(d,0,a):d}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:o(e,this,t,n)}:e,[function(e,n){var r=l(this),a=u(e)?void 0:v(e,t);return a?o(a,e,r,n):o(i,p(r),e,n)},function(t,r){var o=s(this),a=p(t),u=n(i,o,a,r,i!==e);if(u.done)return u.value;var c=f(o,RegExp),l=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(x?"g":"y"),g=new c(x?"^(?:"+o.source+")":o,v),y=void 0===r?_:r>>>0;if(0===y)return[];if(0===a.length)return null===m(g,a)?[a]:[];for(var b=0,w=0,k=[];w1?arguments[1]:void 0,e.length)),r=u(t);return h?h(e,r,n):p(e,n,n+r.length)===r}})},2443:function(t,e,n){n(6800)("asyncIterator")},4032:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(6916),a=n(1702),s=n(1913),u=n(9781),c=n(6293),l=n(7293),f=n(2597),d=n(7976),h=n(9670),p=n(5656),v=n(4948),g=n(1340),m=n(9114),y=n(30),b=n(1956),w=n(8006),x=n(1156),_=n(5181),S=n(1236),k=n(3070),P=n(6048),E=n(5296),O=n(8052),T=n(2309),C=n(6200),j=n(3501),M=n(9711),R=n(5112),A=n(6061),I=n(6800),L=n(6532),D=n(8003),$=n(9909),N=n(2092).forEach,F=C("hidden"),B="Symbol",U="prototype",z=$.set,W=$.getterFor(B),H=Object[U],V=o.Symbol,G=V&&V[U],Y=o.TypeError,X=o.QObject,q=S.f,K=k.f,Z=x.f,J=E.f,Q=a([].push),tt=T("symbols"),et=T("op-symbols"),nt=T("wks"),rt=!X||!X[U]||!X[U].findChild,ot=u&&l((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,it=function(t,e){var n=tt[t]=y(G);return z(n,{type:B,tag:t,description:e}),u||(n.description=e),n},at=function(t,e,n){t===H&&at(et,e,n),h(t);var r=v(e);return h(n),f(tt,r)?(n.enumerable?(f(t,F)&&t[F][r]&&(t[F][r]=!1),n=y(n,{enumerable:m(0,!1)})):(f(t,F)||K(t,F,m(1,{})),t[F][r]=!0),ot(t,r,n)):K(t,r,n)},st=function(t,e){h(t);var n=p(e),r=b(n).concat(ft(n));return N(r,(function(e){u&&!i(ut,n,e)||at(t,e,n[e])})),t},ut=function(t){var e=v(t),n=i(J,this,e);return!(this===H&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,F)&&this[F][e])||n)},ct=function(t,e){var n=p(t),r=v(e);if(n!==H||!f(tt,r)||f(et,r)){var o=q(n,r);return!o||!f(tt,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},lt=function(t){var e=Z(p(t)),n=[];return N(e,(function(t){f(tt,t)||f(j,t)||Q(n,t)})),n},ft=function(t){var e=t===H,n=Z(e?et:p(t)),r=[];return N(n,(function(t){!f(tt,t)||e&&!f(H,t)||Q(r,tt[t])})),r};c||(V=function(){if(d(G,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=M(t),n=function(t){this===H&&i(n,et,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),ot(this,e,m(1,t))};return u&&rt&&ot(H,e,{configurable:!0,set:n}),it(e,t)},O(G=V[U],"toString",(function(){return W(this).tag})),O(V,"withoutSetter",(function(t){return it(M(t),t)})),E.f=ut,k.f=at,P.f=st,S.f=ct,w.f=x.f=lt,_.f=ft,A.f=function(t){return it(R(t),t)},u&&(K(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||O(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),N(b(nt),(function(t){I(t)})),r({target:B,stat:!0,forced:!c},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?y(t):st(y(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:lt}),L(),D(V,B),j[F]=!0},1817:function(t,e,n){"use strict";var r=n(2109),o=n(9781),i=n(7854),a=n(1702),s=n(2597),u=n(614),c=n(7976),l=n(1340),f=n(3070).f,d=n(9920),h=i.Symbol,p=h&&h.prototype;if(o&&u(h)&&(!("description"in p)||void 0!==h().description)){var v={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(p,this)?new h(t):void 0===t?h():h(t);return""===t&&(v[e]=!0),e};d(g,h),g.prototype=p,p.constructor=g;var m="Symbol(test)"==String(h("test")),y=a(p.valueOf),b=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),_=a("".slice);f(p,"description",{configurable:!0,get:function(){var t=y(this);if(s(v,t))return"";var e=b(t),n=m?_(e,7,-1):x(e,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},763:function(t,e,n){var r=n(2109),o=n(5005),i=n(2597),a=n(1340),s=n(2309),u=n(2015),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(i(c,e))return c[e];var n=o("Symbol")(e);return c[e]=n,l[n]=e,n}})},2165:function(t,e,n){n(6800)("iterator")},2526:function(t,e,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(t,e,n){var r=n(2109),o=n(2597),i=n(2190),a=n(6330),s=n(2309),u=n(2015),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}})},6649:function(t,e,n){var r=n(6800),o=n(6532);r("toPrimitive"),o()},3680:function(t,e,n){var r=n(5005),o=n(6800),i=n(8003);o("toStringTag"),i(r("Symbol"),"Symbol")},1202:function(t,e,n){"use strict";var r,o=n(6677),i=n(7854),a=n(1702),s=n(9190),u=n(2423),c=n(7710),l=n(9320),f=n(111),d=n(9909).enforce,h=n(7293),p=n(4811),v=Object,g=Array.isArray,m=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,x=v.seal,_={},S={},k=!i.ActiveXObject&&"ActiveXObject"in i,P=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=c("WeakMap",P,l),O=E.prototype,T=a(O.set);if(p)if(k){r=l.getConstructor(P,"WeakMap",!0),u.enable();var C=a(O.delete),j=a(O.has),M=a(O.get);s(O,{delete:function(t){if(f(t)&&!m(t)){var e=d(this);return e.frozen||(e.frozen=new r),C(this,t)||e.frozen.delete(t)}return C(this,t)},has:function(t){if(f(t)&&!m(t)){var e=d(this);return e.frozen||(e.frozen=new r),j(this,t)||e.frozen.has(t)}return j(this,t)},get:function(t){if(f(t)&&!m(t)){var e=d(this);return e.frozen||(e.frozen=new r),j(this,t)?M(this,t):e.frozen.get(t)}return M(this,t)},set:function(t,e){if(f(t)&&!m(t)){var n=d(this);n.frozen||(n.frozen=new r),j(this,t)?T(this,t,e):n.frozen.set(t,e)}else T(this,t,e);return this}})}else o&&h((function(){var t=w([]);return T(new E,t,1),!y(t)}))&&s(O,{set:function(t,e){var n;return g(t)&&(y(t)?n=_:b(t)&&(n=S)),T(this,t,e),n==_&&w(t),n==S&&x(t),this}})},4129:function(t,e,n){n(1202)},5743:function(t,e,n){n(5837)},4747:function(t,e,n){var r=n(7854),o=n(8324),i=n(8509),a=n(8533),s=n(8880),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in o)o[c]&&u(r[c]&&r[c].prototype);u(i)},3948:function(t,e,n){var r=n(7854),o=n(8324),i=n(8509),a=n(6992),s=n(8880),u=n(5112),c=u("iterator"),l=u("toStringTag"),f=a.values,d=function(t,e){if(t){if(t[c]!==f)try{s(t,c,f)}catch(e){t[c]=f}if(t[l]||s(t,l,e),o[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var h in o)d(r[h]&&r[h].prototype,h);d(i,"DOMTokenList")},5556:function(t,e,n){"use strict";n(6992);var r=n(2109),o=n(7854),i=n(6916),a=n(1702),s=n(9781),u=n(5143),c=n(8052),l=n(9190),f=n(8003),d=n(3061),h=n(9909),p=n(5787),v=n(614),g=n(2597),m=n(9974),y=n(648),b=n(9670),w=n(111),x=n(1340),_=n(30),S=n(9114),k=n(4121),P=n(1246),E=n(8053),O=n(5112),T=n(4362),C=O("iterator"),j="URLSearchParams",M=j+"Iterator",R=h.set,A=h.getterFor(j),I=h.getterFor(M),L=Object.getOwnPropertyDescriptor,D=function(t){if(!s)return o[t];var e=L(o,t);return e&&e.value},$=D("fetch"),N=D("Request"),F=D("Headers"),B=N&&N.prototype,U=F&&F.prototype,z=o.RegExp,W=o.TypeError,H=o.decodeURIComponent,V=o.encodeURIComponent,G=a("".charAt),Y=a([].join),X=a([].push),q=a("".replace),K=a([].shift),Z=a([].splice),J=a("".split),Q=a("".slice),tt=/\+/g,et=Array(4),nt=function(t){return et[t-1]||(et[t-1]=z("((?:%[\\da-f]{2}){"+t+"})","gi"))},rt=function(t){try{return H(t)}catch(e){return t}},ot=function(t){var e=q(t,tt," "),n=4;try{return H(e)}catch(t){for(;n;)e=q(e,nt(n--),rt);return e}},it=/[!'()~]|%20/g,at={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},st=function(t){return at[t]},ut=function(t){return q(V(t),it,st)},ct=d((function(t,e){R(this,{type:M,iterator:k(A(t).entries),kind:e})}),"Iterator",(function(){var t=I(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(w(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?Q(t,1):t:x(t)))};lt.prototype={type:j,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,o,a,s,u,c=P(t);if(c)for(n=(e=k(t,c)).next;!(r=i(n,e)).done;){if(a=(o=k(b(r.value))).next,(s=i(a,o)).done||(u=i(a,o)).done||!i(a,o).done)throw W("Expected sequence with length 2");X(this.entries,{key:x(s.value),value:x(u.value)})}else for(var l in t)g(t,l)&&X(this.entries,{key:l,value:x(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=J(t,"&"),o=0;o0?arguments[0]:void 0))},dt=ft.prototype;if(l(dt,{append:function(t,e){E(arguments.length,2);var n=A(this);X(n.entries,{key:x(t),value:x(e)}),n.updateURL()},delete:function(t){E(arguments.length,1);for(var e=A(this),n=e.entries,r=x(t),o=0;oe.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=A(this).entries,r=m(t,arguments.length>1?arguments[1]:void 0),o=0;o1?vt(arguments[1]):{})}}),v(N)){var gt=function(t){return p(this,B),new N(t,arguments.length>1?vt(arguments[1]):{})};B.constructor=gt,gt.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:ft,getState:A}},1637:function(t,e,n){n(5556)},8496:function(t){t.exports=function(){var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(t){return!(!t||!t.Window)&&t instanceof t.Window};var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.getWindow=function(e){return(0,t.default)(e)?e:(e.ownerDocument||e).defaultView||r.window},e.init=o,e.window=e.realWindow=void 0;var n=void 0;e.realWindow=n;var r=void 0;function o(t){e.realWindow=n=t;var o=t.document.createTextNode("");o.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(o)===o&&(t=t.wrap(t)),e.window=r=t}e.window=r,"undefined"!=typeof window&&window&&o(window);var i={};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=function(t){return!!t&&"object"===a(t)},u=function(t){return"function"==typeof t},c={window:function(n){return n===e.window||(0,t.default)(n)},docFrag:function(t){return s(t)&&11===t.nodeType},object:s,func:u,number:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},string:function(t){return"string"==typeof t},element:function(t){if(!t||"object"!==a(t))return!1;var n=e.getWindow(t)||e.window;return/object|function/.test("undefined"==typeof Element?"undefined":a(Element))?t instanceof Element||t instanceof n.Element:1===t.nodeType&&"string"==typeof t.nodeName},plainObject:function(t){return s(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return s(t)&&void 0!==t.length&&u(t.splice)}};i.default=c;var l={};function f(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;"x"===n?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):"y"===n&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function d(t){var e=t.iEvent,n=t.interaction;if("drag"===n.prepared.name){var r=n.prepared.axis;if("x"===r||"y"===r){var o="x"===r?"y":"x";e.page[o]=n.coords.start.page[o],e.client[o]=n.coords.start.client[o],e.delta[o]=0}}}Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var h={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.draggable=h.draggable,e.map.drag=h,e.methodDict.drag="draggable",r.actions.drag=h.defaults},listeners:{"interactions:before-action-move":f,"interactions:action-resume":f,"interactions:action-move":d,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.buttons,o=n.options.drag;if(o&&o.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(r&n.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===o.lockAxis?o.startAxis:o.lockAxis},!1}},draggable:function(t){return i.default.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):i.default.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:f,move:d,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},p=h;l.default=p;var v={};Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var g={init:function(t){var e=t;g.document=e.document,g.DocumentFragment=e.DocumentFragment||m,g.SVGElement=e.SVGElement||m,g.SVGSVGElement=e.SVGSVGElement||m,g.SVGElementInstance=e.SVGElementInstance||m,g.Element=e.Element||m,g.HTMLElement=e.HTMLElement||g.Element,g.Event=e.Event,g.Touch=e.Touch||m,g.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function m(){}var y=g;v.default=y;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var w={init:function(t){var e=v.default.Element,n=t.navigator||{};w.supportsTouch="ontouchstart"in t||i.default.func(t.DocumentTouch)&&v.default.document instanceof t.DocumentTouch,w.supportsPointerEvent=!1!==n.pointerEnabled&&!!v.default.PointerEvent,w.isIOS=/iP(hone|od|ad)/.test(n.platform),w.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),w.isIe9=/MSIE 9/.test(n.userAgent),w.isOperaMobile="Opera"===n.appName&&w.supportsTouch&&/Presto/.test(n.userAgent),w.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",w.pEventTypes=w.supportsPointerEvent?v.default.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,w.wheelEvent=v.default.document&&"onmousewheel"in v.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},x=w;b.default=x;var _={};function S(t){var e=t.parentNode;if(i.default.docFrag(e)){for(;(e=e.host)&&i.default.docFrag(e););return e}return e}function k(t,n){return e.window!==e.realWindow&&(n=n.replace(/\/deep\//g," ")),t[b.default.prefixedMatchesSelector](n)}Object.defineProperty(_,"__esModule",{value:!0}),_.closest=function(t,e){for(;i.default.element(t);){if(k(t,e))return t;t=S(t)}return null},_.getActualElement=function(t){return t.correspondingUseElement||t},_.getElementClientRect=T,_.getElementRect=function(t){var n=T(t);if(!b.default.isIOS7&&n){var r=O(e.getWindow(t));n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n},_.getPath=function(t){for(var e=[];t;)e.push(t),t=S(t);return e},_.getScrollXY=O,_.indexOfDeepestElement=function(t){for(var n,r=[],o=0;o=(parseInt(e.getWindow(g).getComputedStyle(g).zIndex,10)||0)&&(n=o);else n=o}else n=o}var p,g;return n},_.matchesSelector=k,_.matchesUpTo=function(t,e,n){for(;i.default.element(t);){if(k(t,e))return!0;if((t=S(t))===n)return k(t,e)}return!1},_.nodeContains=function(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1},_.parentNode=S,_.trySelector=function(t){return!!i.default.string(t)&&(v.default.document.querySelector(t),!0)};var P=function(t){return t.parentNode||t.host};function E(t,e){for(var n,r=[],o=t;(n=P(o))&&o!==e&&n!==o.ownerDocument;)r.unshift(o),o=n;return r}function O(t){return{x:(t=t||e.window).scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop}}function T(t){var e=t instanceof v.default.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}var C={};Object.defineProperty(C,"__esModule",{value:!0}),C.default=function(t,e){for(var n in e)t[n]=e[n];return t};var j={};function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1?H(e):e[0];U(r,t.page),z(r,t.client),t.timeStamp=n},N.setZeroCoords=function(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0},N.touchAngle=function(t,e){var n=e+"X",r=e+"Y",o=W(t),i=o[1][n]-o[0][n],a=o[1][r]-o[0][r];return 180*Math.atan2(a,i)/Math.PI},N.touchBBox=function(t){if(!t.length)return null;var e=W(t),n=Math.min(e[0].pageX,e[1].pageX),r=Math.min(e[0].pageY,e[1].pageY),o=Math.max(e[0].pageX,e[1].pageX),i=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:r,left:n,top:r,right:o,bottom:i,width:o-n,height:i-r}},N.touchDistance=function(t,e){var n=e+"X",r=e+"Y",o=W(t),i=o[0][n]-o[1][n],a=o[0][r]-o[1][r];return(0,D.default)(i,a)};var V={};function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(V,"__esModule",{value:!0}),V.BaseEvent=void 0;var Y=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),G(this,"immediatePropagationStopped",!1),G(this,"propagationStopped",!1),this._interaction=e}var e,n;return e=t,(n=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(t,e){for(var n=0;ns.left&&f.xs.top&&f.y=s.left&&v<=s.right&&g>=s.top&&g<=s.bottom}return p&&i.default.number(c)&&(u=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=c),t.options.drop.checker&&(u=t.options.drop.checker(e,n,u,t,a,r,o)),u}(this,t,e,n,r,o,a)},n.dynamicDrop=function(e){return i.default.bool(e)?(t.dynamicDrop=e,n):t.dynamicDrop},(0,C.default)(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,o.actions.drop=ft.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;"drag"===e.prepared.name&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,r=(t.event,t.iEvent);if("drag"===n.prepared.name){var o=n.dropState;o.activeDrops=null,o.events=null,o.activeDrops=at(e,n.element),o.events=ut(n,0,r),o.events.activate&&(it(o.activeDrops,o.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":lt,"interactions:after-action-move":function(t,e){var n=t.interaction,r=t.iEvent;"drag"===n.prepared.name&&(ct(n,n.dropState.events),e.fire("actions/drop:move",{interaction:n,dragEvent:r}),n.dropState.events={})},"interactions:action-end":function(t,e){if("drag"===t.interaction.prepared.name){var n=t.interaction,r=t.iEvent;lt(t,e),ct(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:at,getDrop:st,getDropEvents:ut,fireDropEvents:ct,defaults:{enabled:!1,accept:null,overlap:"pointer"}},dt=ft;ot.default=dt;var ht={};function pt(t){var e=t.interaction,n=t.iEvent,r=t.phase;if("gesture"===e.prepared.name){var o=e.pointers.map((function(t){return t.pointer})),a="start"===r,s="end"===r,u=e.interactable.options.deltaSource;if(n.touches=[o[0],o[1]],a)n.distance=N.touchDistance(o,u),n.box=N.touchBBox(o),n.scale=1,n.ds=0,n.angle=N.touchAngle(o,u),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(s){var c=e.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=N.touchDistance(o,u),n.box=N.touchBBox(o),n.scale=n.distance/e.gesture.startDistance,n.angle=N.touchAngle(o,u),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,i.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=void 0;var vt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.gesturable=function(t){return i.default.object(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):i.default.bool(t)?(this.options.gesture.enabled=t,this):this.options.gesture},e.map.gesture=vt,e.methodDict.gesture="gesturable",r.actions.gesture=vt.defaults},listeners:{"interactions:action-start":pt,"interactions:action-move":pt,"interactions:action-end":pt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},gt=vt;ht.default=gt;var mt={};function yt(t,e,n,r,o,a,s){if(!e)return!1;if(!0===e){var u=i.default.number(a.width)?a.width:a.right-a.left,c=i.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?u:c)/2)),u<0&&("left"===t?t="right":"right"===t&&(t="left")),c<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t){var l=u>=0?a.left:a.right;return n.x=0?a.top:a.bottom;return n.y(u>=0?a.right:a.left)-s;if("bottom"===t)return n.y>(c>=0?a.bottom:a.top)-s}return!!i.default.element(r)&&(i.default.element(e)?e===r:_.matchesUpTo(r,e,o))}function bt(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var r=e;n.interactable.options.resize.square?("y"===n.resizeAxes?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,"x"===n.resizeAxes?r.delta.y=0:"y"===n.resizeAxes&&(r.delta.x=0))}}Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=void 0;var wt={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,o=t.defaults;wt.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),wt.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(e){return function(t,e,n){return i.default.object(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),i.default.string(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),i.default.bool(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:i.default.bool(e.square)&&(t.options.resize.square=e.square),t):i.default.bool(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=wt,e.methodDict.resize="resizable",o.actions.resize=wt.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=e,o=n.rect;n._rects={start:(0,C.default)({},o),corrected:(0,C.default)({},o),previous:(0,C.default)({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}}(t),bt(t)},"interactions:action-move":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=e,o=n.interactable.options.resize.invert,i="reposition"===o||"negate"===o,a=n.rect,s=n._rects,u=s.start,c=s.corrected,l=s.delta,f=s.previous;if((0,C.default)(f,c),i){if((0,C.default)(c,a),"reposition"===o){if(c.top>c.bottom){var d=c.top;c.top=c.bottom,c.bottom=d}if(c.left>c.right){var h=c.left;c.left=c.right,c.right=h}}}else c.top=Math.min(a.top,u.bottom),c.bottom=Math.max(a.bottom,u.top),c.left=Math.min(a.left,u.right),c.right=Math.max(a.right,u.left);for(var p in c.width=c.right-c.left,c.height=c.bottom-c.top,c)l[p]=c[p]-f[p];r.edges=n.prepared.edges,r.rect=c,r.deltaRect=l}}(t),bt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=e;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.element,o=t.rect,a=t.buttons;if(o){var s=(0,C.default)({},e.coords.cur.page),u=n.options.resize;if(u&&u.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(a&u.mouseButtons))){if(i.default.object(u.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var l in c)c[l]=yt(l,u.edges[l],s,e._latestPointer.eventTarget,r,o,u.margin||wt.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var f="y"!==u.axis&&s.x>o.right-wt.defaultMargin,d="x"!==u.axis&&s.y>o.bottom-wt.defaultMargin;(f||d)&&(t.action={name:"resize",axes:(f?"x":"")+(d?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,r=t.name,o=wt.cursors,i=null;if(n)i=o[r+n];else if(e){for(var a="",s=["top","bottom","left","right"],u=0;u=1){var l={x:jt.x*c,y:jt.y*c};if(l.x||l.y){var f=Rt(a);i.default.window(a)?a.scrollBy(l.x,l.y):a&&(a.scrollLeft+=l.x,a.scrollTop+=l.y);var d=Rt(a),h={x:d.x-f.x,y:d.y-f.y};(h.x||h.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:h,interaction:t,container:a})}jt.prevTime=s}jt.isScrolling&&(kt.default.cancel(jt.i),jt.i=kt.default.request(jt.scroll))},check:function(t,e){var n;return null==(n=t.options[e].autoScroll)?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&jt.check(e.interactable,e.prepared.name))if(e.simulation)jt.x=jt.y=0;else{var r,o,a,s,u=e.interactable,c=e.element,l=e.prepared.name,f=u.options[l].autoScroll,d=Mt(f.container,u,c);if(i.default.window(d))s=n.clientXd.innerWidth-jt.margin,a=n.clientY>d.innerHeight-jt.margin;else{var h=_.getElementClientRect(d);s=n.clientXh.right-jt.margin,a=n.clientY>h.bottom-jt.margin}jt.x=o?1:s?-1:0,jt.y=a?1:r?-1:0,jt.isScrolling||(jt.margin=f.margin,jt.speed=f.speed,jt.start(e))}}};function Mt(t,n,r){return(i.default.string(t)?(0,j.getStringOptionResult)(t,n,r):t)||(0,e.getWindow)(r)}function Rt(t){return i.default.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var At={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=jt,jt.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=jt.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,jt.stop(),jt.interaction&&(jt.interaction=null)},"interactions:stop":jt.stop,"interactions:action-move":function(t){return jt.onInteractionMove(t)}}},It=At;Ct.default=It;var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.copyAction=function(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t},Lt.sign=void 0,Lt.warnOnce=function(t,n){var r=!1;return function(){return r||(e.window.console.warn(n),r=!0),t.apply(this,arguments)}},Lt.sign=function(t){return t>=0?1:-1};var Dt={};function $t(t){return i.default.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Nt(t){return i.default.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=void 0;var Ft={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(e,n,r,o){var i=function(t,e,n,r,o){var i=t.getRect(r),a={action:null,interactable:t,interaction:n,element:r,rect:i,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return o.fire("auto-start:check",a),a.action}(this,n,r,o,t);return this.options.actionChecker?this.options.actionChecker(e,n,i,this,o,r):i},e.prototype.ignoreFrom=(0,Lt.warnOnce)((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=(0,Lt.warnOnce)((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Nt,e.prototype.styleCursor=$t}};Dt.default=Ft;var Bt={};function Ut(t,e,n,r,o){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&Vt(e,n,t,o)?t:null}function zt(t,e,n,r,o,i,a){for(var s=0,u=r.length;s=s)return!1;if(d.interactable===t){if((c+=h===n.name?1:0)>=i)return!1;if(d.element===e&&(l++,h===n.name&&l>=a))return!1}}}return s>0}function Gt(t,e){return i.default.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function Yt(t,e,n){var r=n.autoStart.cursorElement;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function Xt(t,e){var n=t.interactable,r=t.element,o=t.prepared;if("mouse"===t.pointerType&&n&&n.options.styleCursor){var a="";if(o.name){var s=n.options[o.name].cursorChecker;a=i.default.func(s)?s(o,n,r,t._interacting):e.actions.map[o.name].getCursor(o)}Yt(t.element,a||"",e)}else e.autoStart.cursorElement&&Yt(e.autoStart.cursorElement,"",e)}Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.default=void 0;var qt={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(Dt.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,C.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return Gt(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:Vt,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,r=t.pointer,o=t.event,i=t.eventTarget;n.interacting()||Ht(n,Wt(n,r,o,i,e),e)},"interactions:move":function(t,e){!function(t,e){var n=t.interaction,r=t.pointer,o=t.event,i=t.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||Ht(n,Wt(n,r,o,i,e),e)}(t,e),function(t,e){var n=t.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){e.fire("autoStart:before-start",t);var r=n.interactable,o=n.prepared.name;o&&r&&(r.options[o].manualStart||!Vt(r,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,r,n.element),Xt(n,e)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,r=n.interactable;r&&r.options.styleCursor&&Yt(n.element,"",e)}},maxInteractions:Gt,withinInteractionLimit:Vt,validateAction:Ut},Kt=qt;Bt.default=Kt;var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.default=void 0;var Jt={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,r=t.eventTarget,o=t.dx,a=t.dy;if("drag"===n.prepared.name){var s=Math.abs(o),u=Math.abs(a),c=n.interactable.options.drag,l=c.startAxis,f=s>u?"x":s0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;te(e)>0&&(e.prepared.name=null)}},getHoldDuration:te},ne=ee;Qt.default=ne;var re={};Object.defineProperty(re,"__esModule",{value:!0}),re.default=void 0;var oe={id:"auto-start",install:function(t){t.usePlugin(Bt.default),t.usePlugin(Qt.default),t.usePlugin(Zt.default)}};re.default=oe;var ie={};function ae(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):i.default.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault}function se(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}function ue(t){var n=t.Interactable;n.prototype.preventDefault=ae,n.prototype.checkAndPreventDefault=function(n){return function(t,n,r){var o=t.options.preventDefault;if("never"!==o)if("always"!==o){if(n.events.supportsPassive&&/^touch(start|move)$/.test(r.type)){var a=(0,e.getWindow)(r.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(r.type)||i.default.element(r.target)&&(0,_.matchesSelector)(r.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||r.preventDefault()}else r.preventDefault()}(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,r=202.5<=e&&e<337.5;return{up:r,down:!r&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(t,e){for(var n=0;nthis.pointerMoveTolerance);var a=this.getPointerIndex(t),s={pointer:t,pointerIndex:a,pointerInfo:this.pointers[a],event:e,type:"move",eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||N.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),i||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&N.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||N.setZeroCoords(this.coords.delta),(t=(0,C.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,e,n,r){var o=this.getPointerIndex(t);-1===o&&(o=this.updatePointer(t,e,n,!1));var i=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:".concat(i),{pointer:t,pointerIndex:o,pointerInfo:this.pointers[o],event:e,eventTarget:n,type:i,curEventTarget:r,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var e=N.getPointerId(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:X.findIndex(this.pointers,(function(t){return t.id===e}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,e,n,r){var o=N.getPointerId(t),i=this.getPointerIndex(t),a=this.pointers[i];return r=!1!==r&&(r||/(down|start)$/i.test(e.type)),a?a.pointer=t:(a=new Ae.PointerInfo(o,t,e,null,null),i=this.pointers.length,this.pointers.push(a)),N.setCoords(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),N.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),r&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,N.pointerExtend(this.downPointer,t),this.interacting()||(N.copyCoords(this.coords.start,this.coords.cur),N.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:r,pointerInfo:a,pointerIndex:i,interaction:this}),i}},{key:"removePointer",value:function(t,e){var n=this.getPointerIndex(t);if(-1!==n){var r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,e,n,r){return new Ee.InteractEvent(this,t,this.prepared.name,e,this.element,n,r)}},{key:"_fireEvent",value:function(t){var e;null==(e=this.interactable)||e.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var e=t.event,n=t.phase,r=t.preEnd,o=t.type,i=this.rect;if(i&&"move"===n&&(j.addEdges(this.edges,i,this.coords.delta[this.interactable.options.deltaSource]),i.width=i.right-i.left,i.height=i.bottom-i.top),!1===this._scopeFire("interactions:before-action-".concat(n),t))return!1;var a=t.iEvent=this._createPreparedEvent(e,n,r,o);return this._scopeFire("interactions:action-".concat(n),t),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),t),!0}},{key:"_now",value:function(){return Date.now()}}],n&&function(t,e){for(var n=0;nn.minSpeed&&o>n.endSpeed)this.startInertia();else{if(i.result=i.setAll(this.modifierArg),!i.result.changed)return!1;this.startSmoothEnd()}return e.modification.result.rect=null,e.offsetBy(this.targetOffset),e._doPhase({interaction:e,event:t,phase:"inertiastart"}),e.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),e.modification.result.rect=null,this.active=!0,e.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,e=this.interaction.coords.velocity.client,n=en(this.interaction),r=n.resistance,o=-Math.log(n.endSpeed/this.v0)/r;this.targetOffset={x:(e.x-o)/r,y:(e.y-o)/r},this.te=o,this.lambda_v0=r/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var i=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},i.result=i.setAll(a),i.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+i.result.delta.x,y:this.targetOffset.y+i.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var e=this;this.timeout=kt.default.request((function(){e.active&&t()}))}},{key:"inertiaTick",value:function(){var t,e,n,r,o,i=this,a=this.interaction,s=en(a).resistance,u=(a._now()-this.t0)/1e3;if(u=0;n--){var r=e[n],o=r.selector,a=r.context,s=r.listeners;o===this.target&&a===this._context&&e.splice(n,1);for(var u=s.length-1;u>=0;u--)this._scopeEvents.removeDelegate(this.target,this._context,t,s[u][0],s[u][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=0;a--){var h=f[a];if(h.selector===t&&h.context===e){for(var p=h.listeners,v=p.length-1;v>=0;v--){var g=xn(p[v],2),m=g[0],y=g[1],b=y.capture,w=y.passive;if(m===o&&b===s.capture&&w===s.passive){p.splice(v,1),p.length||(f.splice(a,1),u(e,n,c),u(e,n,l,!0)),d=!0;break}}if(d)break}}},delegateListener:c,delegateUseCapture:l,delegatedEvents:r,documents:o,targets:n,supportsOptions:!1,supportsPassive:!1};function s(t,e,r,o){var i=kn(o),s=X.find(n,(function(e){return e.eventTarget===t}));s||(s={eventTarget:t,events:{}},n.push(s)),s.events[e]||(s.events[e]=[]),t.addEventListener&&!X.contains(s.events[e],r)&&(t.addEventListener(e,r,a.supportsOptions?i:i.capture),s.events[e].push(r))}function u(t,e,r,o){var i=kn(o),s=X.findIndex(n,(function(e){return e.eventTarget===t})),c=n[s];if(c&&c.events)if("all"!==e){var l=!1,f=c.events[e];if(f){if("all"===r){for(var d=f.length-1;d>=0;d--)u(t,e,f[d],i);return}for(var h=0;h=2)continue;if(!o.interacting()&&e===o.pointerType)return o}return null}};function Tn(t,e){return t.pointers.some((function(t){return t.id===e}))}var Cn=On;En.default=Cn;var jn={};function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Rn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return An(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?An(t,e):void 0}}(t,e)||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.")}()}function An(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0;r--){var o=e.interactions.list[r];o.interactable===n&&(o.stop(),e.fire("interactions:destroy",{interaction:o}),o.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(r,1))}}},onDocSignal:Fn,doOnInteractions:$n,methodNames:Dn},Un=Bn;jn.default=Un;var zn={};function Wn(t){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(t)}function Hn(){return Hn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gn(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Hn.apply(this,arguments)}function Vn(t,e){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vn(t,e)}function Gn(t){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gn(t)}function Yn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xn(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);nMath.abs(c.y),u.coords,u.rect),(0,C.default)(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function yr(t,e,n){var r=t.startCoords,o=t.edgeSign;e?n.y=r.y+(n.x-r.x)*o.y:n.x=r.x+(n.y-r.y)*o.x}function br(t,e,n,r){var o=t.startRect,i=t.startCoords,a=t.ratio,s=t.edgeSign;if(e){var u=r.width/a;n.y=i.y+(u-o.height)*s.y}else{var c=r.height*a;n.x=i.x+(c-o.width)*s.x}}hr.aspectRatio=mr;var wr=(0,xe.makeModifier)(mr,"aspectRatio");hr.default=wr;var xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=void 0;var _r=function(){};_r._defaults={};var Sr=_r;xr.default=Sr;var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),Object.defineProperty(kr,"default",{enumerable:!0,get:function(){return xr.default}});var Pr={};function Er(t,e,n){return i.default.func(t)?j.resolveRectLike(t,e.interactable,e.element,[n.x,n.y,e]):j.resolveRectLike(t,e.interactable,e.element)}Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=void 0,Pr.getRestrictionRect=Er,Pr.restrict=void 0;var Or={start:function(t){var e=t.rect,n=t.startOffset,r=t.state,o=t.interaction,i=t.pageCoords,a=r.options,s=a.elementRect,u=(0,C.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(e&&s){var c=Er(a.restriction,o,i);if(c){var l=c.right-c.left-e.width,f=c.bottom-c.top-e.height;l<0&&(u.left+=l,u.right+=l),f<0&&(u.top+=f,u.bottom+=f)}u.left+=n.left-e.width*s.left,u.top+=n.top-e.height*s.top,u.right+=n.right-e.width*(1-s.right),u.bottom+=n.bottom-e.height*(1-s.bottom)}r.offset=u},set:function(t){var e=t.coords,n=t.interaction,r=t.state,o=r.options,i=r.offset,a=Er(o.restriction,n,e);if(a){var s=j.xywhToTlbr(a);e.x=Math.max(Math.min(s.right-i.right,e.x),s.left+i.left),e.y=Math.max(Math.min(s.bottom-i.bottom,e.y),s.top+i.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};Pr.restrict=Or;var Tr=(0,xe.makeModifier)(Or,"restrict");Pr.default=Tr;var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.restrictEdges=Cr.default=void 0;var jr={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Mr={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Rr(t,e){for(var n=["top","left","bottom","right"],r=0;rt.length)&&(e=t.length);for(var n=0,r=Array(e);n"),Y="div",X=0,q={};function K(n,r,o){var i=e.createElement(n);return r&&(i.id=N+r),o&&(i.style.cssText=o),t(i)}function Z(){return n.innerHeight?n.innerHeight:t(n).height()}function J(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var r;return void 0===this.cache[e]&&(void 0!==(r=t(this.el).attr("data-cbox-"+e))?this.cache[e]=r:void 0!==n[e]?this.cache[e]=n[e]:void 0!==D[e]&&(this.cache[e]=D[e])),this.cache[e]},this.get=function(e){var n=this.value(e);return t.isFunction(n)?n.call(this.el,this):n}}function Q(t){var e=f.length,n=(T+t)%e;return n<0?e+n:n}function tt(t,e){return Math.round((/%/.test(t)?("x"===e?d.width():Z())/100:1)*parseInt(t,10))}function et(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function nt(t,e){return t.get("retinaUrl")&&n.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function rt(t){"contains"in o[0]&&!o[0].contains(t.target)&&t.target!==r[0]&&(t.stopPropagation(),o.focus())}function ot(t){ot.str!==t&&(o.add(r).removeClass(ot.str).addClass(t),ot.str=t)}function it(n){t(e).trigger(n),G.triggerHandler(n)}var at=function(){var t,e,n=N+"Slideshow_",r="click."+N;function i(){clearTimeout(e)}function a(){(S.get("loop")||f[T+1])&&(i(),e=setTimeout(I.next,S.get("slideshowSpeed")))}function s(){y.html(S.get("slideshowStop")).unbind(r).one(r,u),G.bind(z,a).bind(U,i),o.removeClass(n+"off").addClass(n+"on")}function u(){i(),G.unbind(z,a).unbind(U,i),y.html(S.get("slideshowStart")).unbind(r).one(r,(function(){I.next(),s()})),o.removeClass(n+"on").addClass(n+"off")}function c(){t=!1,y.hide(),i(),G.unbind(z,a).unbind(U,i),o.removeClass(n+"off "+n+"on")}return function(){t?S.get("slideshow")||(G.unbind(W,c),c()):S.get("slideshow")&&f[1]&&(t=!0,G.one(W,c),S.get("slideshowAuto")?s():u(),y.show())}}();function st(i){var d,m;if(!R){if(d=t(i).data($),S=new J(i,d),m=S.get("rel"),T=0,m&&!1!==m&&"nofollow"!==m?(f=t("."+F).filter((function(){return new J(this,t.data(this,$)).get("rel")===m})),-1===(T=f.index(S.el))&&(f=f.add(S.el),T=f.length-1)):f=t(S.el),!j){j=M=!0,ot(S.get("className")),o.css({visibility:"hidden",display:"block",opacity:""}),h=K(Y,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(h),k=s.height()+l.height()+a.outerHeight(!0)-a.height(),P=u.width()+c.width()+a.outerWidth(!0)-a.width(),E=h.outerHeight(!0),O=h.outerWidth(!0);var y=tt(S.get("initialWidth"),"x"),b=tt(S.get("initialHeight"),"y"),w=S.get("maxWidth"),L=S.get("maxHeight");S.w=Math.max((!1!==w?Math.min(y,tt(w,"x")):y)-O-P,0),S.h=Math.max((!1!==L?Math.min(b,tt(L,"y")):b)-E-k,0),h.css({width:"",height:S.h}),I.position(),it(B),S.get("onOpen"),_.add(g).hide(),o.focus(),S.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",rt,!0),G.one(H,(function(){e.removeEventListener("focus",rt,!0)}))),S.get("returnFocus")&&G.one(H,(function(){t(S.el).focus()}))}var D=parseFloat(S.get("opacity"));r.css({opacity:D==D?D:"",cursor:S.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),S.get("closeButton")?x.html(S.get("close")).appendTo(a):x.appendTo("
"),function(){var e,r,o,i=I.prep,a=++X;if(M=!0,C=!1,it(V),it(U),S.get("onLoad"),S.h=S.get("height")?tt(S.get("height"),"y")-E-k:S.get("innerHeight")&&tt(S.get("innerHeight"),"y"),S.w=S.get("width")?tt(S.get("width"),"x")-O-P:S.get("innerWidth")&&tt(S.get("innerWidth"),"x"),S.mw=S.w,S.mh=S.h,S.get("maxWidth")&&(S.mw=tt(S.get("maxWidth"),"x")-O-P,S.mw=S.w&&S.w").hide().insertBefore(s),G.one(V,(function(){o.replaceWith(s)})),i(s)}else S.get("iframe")?i(" "):S.get("html")?i(S.get("html")):et(S,e)?(e=nt(S,e),C=S.get("createImg"),t(C).addClass(N+"Photo").bind("error."+N,(function(){i(K(Y,"Error").html(S.get("imgError")))})).one("load",(function(){a===X&&setTimeout((function(){var e;S.get("retinaImage")&&n.devicePixelRatio>1&&(C.height=C.height/n.devicePixelRatio,C.width=C.width/n.devicePixelRatio),S.get("scalePhotos")&&(r=function(){C.height-=C.height*e,C.width-=C.width*e},S.mw&&C.width>S.mw&&(e=(C.width-S.mw)/C.width,r()),S.mh&&C.height>S.mh&&(e=(C.height-S.mh)/C.height,r())),S.h&&(C.style.marginTop=Math.max(S.mh-C.height,0)/2+"px"),f[1]&&(S.get("loop")||f[T+1])&&(C.style.cursor="pointer",t(C).bind("click."+N,(function(){I.next()}))),C.style.width=C.width+"px",C.style.height=C.height+"px",i(C)}),1)})),C.src=e):e&&p.load(e,S.get("data"),(function(e,n){a===X&&i("error"===n?K(Y,"Error").html(S.get("xhrError")):t(this).contents())}))}()}}function ut(){o||(L=!1,d=t(n),o=K(Y).attr({id:$,class:!1===t.support.opacity?N+"IE":"",role:"dialog",tabindex:"-1"}).hide(),r=K(Y,"Overlay").hide(),v=t([K(Y,"LoadingOverlay")[0],K(Y,"LoadingGraphic")[0]]),i=K(Y,"Wrapper"),a=K(Y,"Content").append(g=K(Y,"Title"),m=K(Y,"Current"),w=t('\n "):""}},{key:"_renderControls",value:function(){var t=this;return["bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map((function(e){return t.controlFor(e)})).join("")}},{key:"_bindViewModeButton",value:function(){var t=this,r=this.br,o=r.options.controls.viewmode,i=[{mode:r.constMode1up,className:"onepg",title:"One-page view"},{mode:r.constMode2up,className:"twopg",title:"Two-page view"},{mode:r.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter((function(t){return!o.excludedModes.includes(t.mode)})),a=i.map((function(t){return t.mode}));o.excludedModes.includes(r.mode)&&r.switchMode(a[0]);for(var s=a.indexOf(r.mode),u=0;u<=s;u++)a.push(a.shift());i.length<2&&this.$nav.find(".".concat(o.className)).remove(),this.br.bind(e.PostInit,(function(){var e=t.$nav.find(".".concat(o.className)).off(".bindNavigationHandlers").on("click",(function(e){var o=a.shift(),s=i.find((function(t){return t.mode===o})),u=i.find((function(t){return t.mode===a[0]}));a.push(o),r.viewModeOrder=a,t.updateViewModeButton(n(e.currentTarget),u.className,u.title),r.switchMode(s.mode)})),s=i.find((function(t){return t.mode===a[0]}));t.updateViewModeButton(e,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(t,e,n){t.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(e)).end().find(".BRtooltip").text(n)}},{key:"switchNavbarControls",value:function(){"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMinimumNavbarControls():this.showMaximumNavbarControls())}},{key:"showMinimumNavbarControls",value:function(){this.minimumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.remove("hide")})),this.maximumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.remove("hide")})),this.minimumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.add("hide")}))}},{key:"init",value:function(){var t=this,e=this.br,r=e.options.navbarTitle,o="rl"===e.pageProgression,i=o?"book_flip_next":"book_flip_prev",a=o?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(i),this.br.options.controls.bookRight.className="book_right ".concat(a),e.refs.$BRfooter=this.$root=n('
'),e.refs.$BRnav=this.$nav=n('
\n '.concat(r?'
'.concat(r,"
"):"",'\n \n
")),this.$root.append(this.$nav),e.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:e.book.getNumLeafs()-1,value:e.currentIndex(),range:"min"});return s.on("slide",(function(e,n){return t.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,r){return t.updateNavPageNum(r.value),s.data("swallowchange")?s.data("swallowchange",!1):e.jumpToIndex(r.value),!0})),e.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(e.currentIndex()),this.$nav}},{key:"getNavPageNumString",value:function(t){var e=this.br,n=e.book.getPageNum(t),r=(e.book.getPageProp(t,"pageType"),e.book.getNumLeafs());if(!this.maxPageNum){for(var o,i=0,a=0;ai&&(i=o);this.maxPageNum=i}return function(t,e,n,r,o){if(!("n"!=n[0]))return"(".concat(t+1," of ").concat(e,")");var i=o?" of ".concat(o):"";return"".concat(n).concat(i)}(t,r,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(t){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(t))}},{key:"updateNavIndex",value:function(t){t=void 0!==t?t:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",t)}}])&&i(o.prototype,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t){var e="function"==typeof Map?new Map:void 0;return u=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,d(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,t)},u(t)}function c(t,e,n){return c=l()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&f(o,n.prototype),o},c.apply(null,arguments)}function l(){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(t){return!1}}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}r(2419),r(1532);var h={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:400,showToolbar:!0,showNavbar:!0,navBarTitle:"",showLogo:!0,logoURL:"https://archive.org",imagesBaseURL:"/BookReader/images/",reduceSet:"pow2",reductionFactors:[{reduce:.25,autofit:null},{reduce:.5,autofit:null},{reduce:1,autofit:null},{reduce:2,autofit:null},{reduce:3,autofit:null},{reduce:4,autofit:null},{reduce:6,autofit:null}],onePage:{autofit:"auto"},twoPage:{coverInternalPadding:0,coverExternalPadding:0,bookSpineDivWidth:64,autofit:"auto"},onePageMinBreakpoint:800,bookTitle:"",bookUrl:null,bookUrlText:null,bookUrlTitle:null,enableBookTitleLink:!0,bookLanguage:null,metadata:[],thumbnail:null,bookUrlMoreInfo:null,enableExperimentalControls:!1,el:"#BookReader",pageProgression:"lr",ppi:500,protected:!1,plugins:{textSelection:null},vars:{},data:[],getNumLeafs:null,getPageWidth:null,getPageHeight:null,getPageURI:null,getPageSide:null,getSpreadIndices:null,getPageNum:null,getPageProp:null,leafNumToIndex:null,getEmbedCode:null,controls:{bookLeft:{visible:!0,label:"Flip left",className:"book_left",iconClassName:"left-arrow"},bookRight:{visible:!0,label:"Flip right",className:"book_right",iconClassName:"left-arrow hflip"},onePage:{visible:!0,label:"One-page view",className:"onepg",iconClassName:"onepg"},twoPage:{visible:!0,label:"Two-page view",className:"twopg",iconClassName:"twopg"},thumbnail:{visible:!0,label:"Thumbnail view",className:"thumb",iconClassName:"thumb"},viewmode:{visible:!0,className:"viewmode",excludedModes:[]},zoomOut:{visible:!0,label:"Zoom out",className:"zoom_out",iconClassName:"magnify"},zoomIn:{visible:!0,label:"Zoom in",className:"zoom_in",iconClassName:"magnify plus"},fullScreen:{visible:!0,label:"Toggle fullscreen",className:"full",iconClassName:"fullscreen"}},startFullscreen:!1,enableFSLogoShortcut:!1,autoResize:!0,useSrcSet:!1},p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,n,r,o=(n=i,r=l(),function(){var t,e=d(n);if(r){var o=d(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(u(Error)),v=(r(5306),r(4581),r(5311));function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n
\n '):"";t.refs.$BRtoolbar=v('\n
\n
\n
\n '.concat(e,'\n \n
\n
\n \n \n \n \n
\n
\n
'));var n=t.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return t.bookUrl&&t.options.enableBookTitleLink?n.append(v("").attr({href:t.bookUrl,title:t.bookUrlTitle}).addClass("BRreturn").html(t.bookUrlText||t.bookTitle)):t.bookTitle&&n.append(t.bookUrlText||t.bookTitle),t.refs.$BRtoolbar}},{key:"initToolbar",value:function(t,n){var r=this.br;r.refs.$br.append(this.buildToolbarElement()),r.$(".BRnavCntl").addClass("BRup"),r.$(".pause").hide(),r.refs.$BRtoolbar.append(),r.canSwitchToMode(r.constMode2up)||r.$(".two_page_mode, .play, .pause").hide(),r.canSwitchToMode(r.constModeThumb)||r.$(".thumbnail_mode").hide(),r.canSwitchToMode(r.constMode2up)||r.canSwitchToMode(r.constModeThumb)||r.$(".one_page_mode").hide(),v('
').append(v('\n
\n
\n Share\n \n
\n
')).append(v('\n
')).appendTo(r.refs.$br),r.$(".BRinfo .BRfloatTitle a").attr({href:r.bookUrl}).text(r.bookTitle).addClass("title"),this.buildInfoDiv(r.$(".BRinfo")),this.buildShareDiv(r.$(".BRshare")),r.$(".share").colorbox({inline:!0,opacity:"0.5",href:r.$(".BRshare"),onLoad:function(){r.trigger(e.stop),r.$(".BRpageviewValue").val(window.location.href)}}),r.$(".info").colorbox({inline:!0,opacity:"0.5",href:r.$(".BRinfo"),onLoad:function(){r.trigger(e.stop)}})}},{key:"buildShareDiv",value:function(t){var e=this,n=this.br,r=document.location+"",o=(r+"").replace(/#.*/,""),i=n.getEmbedCode?'\n '):"",a=v('\n \n